this._D=this._D||{};(function(_){var window=this;
try{
_.r("rJmJrc");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("LEikZe");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("byfTOb");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sHns9b");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("symv");

_.U("c","",1,function(a,b){return(0,_.K)('<div jsname="'+_.J("v5a5C")+'">'+_.T(_.zm("b","grayCloudNotFilled",!1)(a,b))+"</div>")});

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("nQy7te");


_.w();

}catch(e){_._DumpException(e)}
try{
_.r("VLKYIb");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("vXcQ6e");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("n7wSQ");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("JMlBJd");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("h8Xfyd");

_.w();

}catch(e){_._DumpException(e)}
try{
_.Djb=function(a){a=parseInt(_.C(a,3)||"0",10);return 100<=a?"over":90<=a?"near":"under"};_.Ijb=function(a,b,c,d){var e=_.Fe.getService(a);a=e.mg(a,c);c=a.H.Wk;var f=new _.Ejb;b.C_&&_.B(f,2,b.C_);b.dE&&0<=b.dE&&_.B(f,1,b.dE);b.quotaType&&_.B(f,3,b.quotaType);_.Fjb(c,f);d&&(b=new _.Gjb,_.B(b,1,d),_.Hjb(c,b));e.ag(a)};_.Jjb=function(a){return isNaN(a)?0:100<=a?6:95<=a?5:90<=a?4:80<=a?3:70<=a?2:1};_.Kjb=function(a,b){return!_.E(a,6,!1)||_.E(b,15,!1)};_.Fjb=function(a,b){b&&(a=a.ld(),_.A(a,29,b))};
_.Hjb=function(a,b){b&&(a=a.ld(),_.A(a,38,b))};_.Ejb=function(a){_.Q(this,a,-1,null,null)};_.O(_.Ejb,_.N);_.Gjb=function(a){_.Q(this,a,-1,null,null)};_.O(_.Gjb,_.N);_.Gjb.prototype.Dh=function(){return _.C(this,1)};_.r("syn1");
_.Mjb=function(a,b,c){var d=_.H(a.get(_.wFa),1,""),e=_.Djb(b);d=new _.gj(d);a:switch(e){case "over":var f="o";break a;case "near":f="u";break a;default:f="m"}return _.oj(_.qj(_.qj(_.qj(_.qj(d,"i",f),"utm_source","drive"),"utm_medium","web"),"utm_campaign",_.Ljb(a,e,c)),-1!=parseInt(String(_.D(b,_.Uw,2)),10)?"upgrade":"")};
_.Ljb=function(a,b,c){switch(c){case "settings":return"settings";case "upload_dialog":return"upload_dialog_oos";case "widget":switch(b){case "over":return"widget_oos";case "near":return"widget_near_quota";default:return"widget_normal"}default:switch(b){case "near":case "over":return"upsell";default:return"manage"}}};
_.Njb=function(a,b,c){if(!b)return"g1_widget_unknown";a=Number(_.C(b,3));return c?isNaN(a)?"g1_settings":100<=a?"g1_settings_oos":90<=a?"g1_settings_ninety":80<=a?"g1_settings_eighty":70<=a?"g1_settings_seventy":"g1_settings_normal":isNaN(a)?"g1_widget_unknown":100<=a?"g1_widget_oos":90<=a?"g1_widget_ninety":80<=a?"g1_widget_eighty":70<=a?"g1_widget_seventy":"g1_widget_normal"};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sysf");

var Ojb=_.Ljb,Pjb=_.Mjb,Qjb=_.Njb;_.Ljb=function(a,b,c){return"over"==b&&_.E(a.get(_.Wb),18,!1)?"widget_trial":Ojb(a,b,c)};_.Mjb=function(a,b,c){c=Pjb(a,b,c);"over"===_.Djb(b)&&_.E(a.get(_.Wb),18,!1)&&_.qj(c,"eft","1");return c};_.Njb=function(a,b,c){b=Qjb(a,b,c);a=_.E(a.get(_.Wb),18,!1);return"g1_settings_oos"===b&&a?"g1_settings_trial":"g1_widget_oos"===b&&a?"g1_widget_trial":b};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("em0");


_.w();

}catch(e){_._DumpException(e)}
try{
var Prb,Srb;Prb=[4,5,6,7];_.nA=function(a){_.Q(this,a,-1,null,null)};_.O(_.nA,_.N);_.nA.prototype.Cb=function(){return _.C(this,1)};_.nA.prototype.Dc=function(a){return _.B(this,1,a)};_.nA.prototype.n$=function(){return _.C(this,2)};_.nA.prototype.Zb="JmcaR";_.Qrb=function(a){_.Q(this,a,-1,null,null)};_.O(_.Qrb,_.N);_.Qrb.prototype.O=function(){return _.L(this,1)};_.Qrb.prototype.Zb="dvhrqe";_.Rrb=function(a){_.Q(this,a,-1,null,null)};_.O(_.Rrb,_.N);_.Rrb.prototype.Ov=function(){return _.C(this,2)};
_.Rrb.prototype.ZVa=function(){return _.C(this,3)};Srb=[5];_.Trb=function(a){_.Q(this,a,-1,null,null)};_.O(_.Trb,_.N);_.Urb=function(a){_.Q(this,a,-1,Srb,null)};_.O(_.Urb,_.N);_.g=_.Urb.prototype;_.g.dP=function(){return _.C(this,1)};_.g.tT=function(){return _.C(this,3)};_.g.MQ=function(){return _.ek(this,_.Rrb,5)};_.g.Co=function(){return _.C(this,6)};_.g.Ex=function(){return _.C(this,7)};_.g.fz=function(){return _.C(this,10)};_.g.Zb="dzR11e";_.Vrb=function(a){_.Q(this,a,-1,Prb,null)};
_.O(_.Vrb,_.N);_.Vrb.prototype.O=function(){return _.D(this,_.Urb,1)};_.Vrb.prototype.HM=function(){return _.D(this,_.nA,8)};_.Vrb.prototype.V=function(){return _.D(this,_.Qrb,9)};_.r("symx");
_.oA=function(a){_.Q(this,a,-1,Wrb,null)};_.O(_.oA,_.N);_.oA.prototype.getUser=function(){return _.D(this,_.Qk,1)};_.oA.prototype.getMetadata=function(){return _.D(this,_.Vrb,3)};_.oA.prototype.hp=function(){return _.S(this,3)};var Wrb=[2];

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("symy");
var llb;_.yz=function(a){_.Q(this,a,-1,llb,null)};_.O(_.yz,_.N);_.yz.prototype.O=function(){return _.Id(this,1)};_.zz=function(a,b){return _.B(a,1,b||[])};_.yz.prototype.Am=function(){return _.Id(this,2)};_.Az=function(a,b){return _.B(a,2,b||[])};_.yz.prototype.te=function(){return _.D(this,_.ef,3)};_.Bz=function(a,b){return _.A(a,3,b)};_.mlb=function(a,b){return _.B(a,5,b)};llb=[1,2,6,11];

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("symz");

_.w();

}catch(e){_._DumpException(e)}
try{
_.sA=function(a){return a instanceof _.kc?a:a instanceof _.jc?new _.kc(void 0,a):a instanceof Error?new _.kc(a.message,void 0,a):new _.kc("Not an Error",void 0,Error("ob`"+JSON.stringify(a)))};_.Zrb=function(a){return a instanceof Error?_.sA(a).Ug:a instanceof _.kc?a.Ug:a};_.r("syn0");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syn2");
_.tA={XK:"eb",Wga:"fb",XT:"gb",WT:"hb"};_.$rb=new Map([[_.tA.XK,1],[_.tA.Wga,2],[_.tA.XT,2],[_.tA.WT,3]]);

_.w();

}catch(e){_._DumpException(e)}
try{
_.nz=function(a){if(Array.isArray(a))return a.map(_.nz).join("");if(_.C(a,2)){if(!a.getId())throw Error("jd");return a.getId()+"/"+_.C(a,2)+","}return""};_.r("syof");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syoj");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syok");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/

_.w();

}catch(e){_._DumpException(e)}
try{
var Stb;_.Rtb=function(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")};Stb=function(a){var b=_.paa(_.kGa,function(c){return a==c});if(void 0===b)throw Error("mb`"+a);return b};_.Ttb=function(a,b){void 0!==a.name?(this.name=a.name,this.code=_.kGa[a.name]):(this.code=a=a.code,this.name=Stb(a));_.ea.call(this,_.Rtb("%s %s",this.name,b))};_.Gf(_.Ttb,_.ea);var Utb=function(a,b){_.oi.call(this,a.type,b)};
_.Gf(Utb,_.oi);_.r("syol");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Vtb=function(){_.yi.call(this);this.H=new FileReader;this.H.onloadstart=(0,_.v)(this.d0,this);this.H.onprogress=(0,_.v)(this.d0,this);this.H.onload=(0,_.v)(this.d0,this);this.H.onabort=(0,_.v)(this.d0,this);this.H.onerror=(0,_.v)(this.d0,this);this.H.onloadend=(0,_.v)(this.d0,this)};_.Gf(_.Vtb,_.yi);_.g=_.Vtb.prototype;_.g.abort=function(){try{this.H.abort()}catch(a){throw new _.Ttb(a,"aborting read");}};_.g.getResult=function(){return this.H.result};
_.g.getError=function(){return this.H.error&&new _.Ttb(this.H.error,"reading file")};_.g.d0=function(a){this.dispatchEvent(new Utb(a,this))};_.g.Ya=function(){_.Vtb.ub.Ya.call(this);delete this.H};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sysp");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sysr");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sysw");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sysx");

_.w();

}catch(e){_._DumpException(e)}
try{
_.Eqb=function(a){_.Q(this,a,-1,null,null)};_.O(_.Eqb,_.N);_.Eqb.prototype.O=function(){return _.C(this,1)};_.Eqb.prototype.Cb=function(){return _.C(this,2)};_.Eqb.prototype.Dc=function(a){return _.B(this,2,a)};_.Eqb.prototype.V=function(){return _.C(this,3)};_.r("sysv");
_.Gqb=function(a){_.Q(this,a,-1,Fqb,null)};_.O(_.Gqb,_.N);_.Gqb.prototype.O=function(){return _.Id(this,1)};var Fqb=[1];
_.Iqb=function(a){_.Q(this,a,-1,Hqb,null)};_.O(_.Iqb,_.N);_.Iqb.prototype.O=function(){return _.ek(this,_.Eqb,1)};var Hqb=[1];
_.Kqb=function(a){_.Q(this,a,-1,Jqb,null)};_.O(_.Kqb,_.N);_.Kqb.prototype.O=function(){return _.ek(this,_.Iqb,1)};_.Kqb.prototype.addResult=function(a,b){return _.gk(this,1,a,_.Iqb,b)};var Jqb=[1];
_.Lqb=function(a){_.Q(this,a,-1,null,null)};_.O(_.Lqb,_.N);_.Lqb.prototype.V=function(){return _.D(this,_.Kqb,1)};_.Lqb.prototype.O=function(){return _.D(this,_.Gqb,2)};
_.gA=function(a){_.Q(this,a,-1,Mqb,null)};_.O(_.gA,_.N);_.g=_.gA.prototype;_.g.Cb=function(){return _.C(this,1)};_.g.Dc=function(a){return _.B(this,1,a)};_.g.Gd=function(){return _.ek(this,_.hl,2)};_.g.tw=function(a){return _.Cb(this,2,a)};_.g.Zg=function(a,b){return _.gk(this,2,a,_.hl,b)};_.g.Uj=function(){return _.C(this,3)};_.g.Zk=function(){return _.E(this,5,!0)};_.g.L5=function(){return _.D(this,_.Lqb,7)};_.g.wsa=function(){return _.L(this,8)};_.g.Hf=function(){return _.C(this,17)};
_.g.hP=function(a){return _.B(this,17,a)};_.g.jf=function(){return _.C(this,12)};_.g.Ti=function(a){return _.B(this,12,a)};_.g.Ln=function(){return _.C(this,15)};_.g.tka=function(){return _.Id(this,18)};var Mqb=[2,14,18];

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sysy");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sysz");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syu1");
_.SB=function(a){_.Q(this,a,-1,null,null)};_.O(_.SB,_.N);_.SB.prototype.getKey=function(){return _.D(this,_.Nb,1)};_.SB.prototype.Vr=function(){return _.S(this,1)};_.SB.prototype.te=function(){return _.D(this,_.ef,2)};
_.TB=function(a){_.Q(this,a,-1,null,null)};_.O(_.TB,_.N);_.TB.prototype.te=function(){return _.D(this,_.ef,2)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syu2");
_.RB=function(a){_.Q(this,a,-1,Szb,null)};_.O(_.RB,_.N);_.RB.prototype.te=function(){return _.D(this,_.ef,1)};var Szb=[3];

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syus");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.ZC=function(a,b,c){_.P.call(this);this.zn=null!=c?(0,_.v)(a,c):a;this.ka=b;this.Qg=(0,_.v)(this.p9a,this);this.O=!1;this.V=0;this.W=this.H=null;this.ha=[]};_.Gf(_.ZC,_.P);_.g=_.ZC.prototype;_.g.xe=function(a){this.ha=arguments;this.O=!1;this.H?this.W=_.Df()+this.ka:this.H=_.Ai(this.Qg,this.ka)};_.g.stop=function(){this.H&&(_.Bi(this.H),this.H=null);this.W=null;this.O=!1;this.ha=[]};_.g.pause=function(){++this.V};
_.g.resume=function(){this.V&&(--this.V,!this.V&&this.O&&(this.O=!1,this.zn.apply(null,this.ha)))};_.g.Ya=function(){this.stop();_.ZC.ub.Ya.call(this)};_.g.p9a=function(){this.H&&(_.Bi(this.H),this.H=null);this.W?(this.H=_.Ai(this.Qg,this.W-_.Df()),this.W=null):this.V?this.O=!0:(this.O=!1,this.zn.apply(null,this.ha))};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syx6");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syx7");
_.BE=function(a){_.Q(this,a,-1,null,null)};_.O(_.BE,_.N);_.BE.prototype.ha=function(){return _.Qj(this,1)};_.BE.prototype.V=function(){return _.Qj(this,2)};_.BE.prototype.O=function(){return _.Qj(this,3)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syxb");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syx9");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syxa");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syxd");
_.iF=function(a){_.Q(this,a,-1,null,null)};_.O(_.iF,_.N);_.iF.prototype.getName=function(){return _.C(this,1)};_.iF.prototype.$c=function(a){return _.B(this,1,a)};_.iF.prototype.te=function(){return _.D(this,_.ef,2)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syxe");
_.jF=function(a){_.Q(this,a,-1,null,null)};_.O(_.jF,_.N);_.g=_.jF.prototype;_.g.Ii=function(){return _.C(this,1)};_.g.di=function(a){return _.B(this,1,a)};_.g.getTitle=function(){return _.C(this,2)};_.g.setTitle=function(a){return _.B(this,2,a)};_.g.te=function(){return _.D(this,_.ef,3)};_.g.Cp=function(){return _.C(this,4)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syxf");
_.kF=function(a){_.Q(this,a,-1,null,null)};_.O(_.kF,_.N);_.kF.prototype.Ii=function(){return _.C(this,1)};_.kF.prototype.di=function(a){return _.B(this,1,a)};_.kF.prototype.te=function(){return _.D(this,_.ef,2)};_.kF.prototype.Zb="M7PX9c";

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syxg");
_.lF=function(a){_.Q(this,a,-1,rVb,null)};_.O(_.lF,_.N);_.lF.prototype.O=function(){return _.Id(this,1)};_.lF.prototype.Am=function(){return _.Id(this,2)};_.sVb=function(a,b){return _.B(a,2,b||[])};_.lF.prototype.te=function(){return _.D(this,_.ef,3)};var rVb=[1,2];

_.w();

}catch(e){_._DumpException(e)}
try{
_.mF=function(a){_.Q(this,a,-1,null,null)};_.O(_.mF,_.N);_.g=_.mF.prototype;_.g.getId=function(){return _.C(this,1)};_.g.Pb=function(a){return _.B(this,1,a)};_.g.getTitle=function(){return _.C(this,2)};_.g.setTitle=function(a){return _.B(this,2,a)};_.g.getState=function(){return _.C(this,5)};_.g.Od=function(a){return _.B(this,5,a)};_.g.Wr=function(){return _.S(this,5)};_.r("syxh");
_.nF=function(a){_.Q(this,a,-1,tVb,null)};_.O(_.nF,_.N);_.nF.prototype.Am=function(){return _.Id(this,1)};_.uVb=function(a,b){return _.B(a,1,b||[])};_.nF.prototype.te=function(){return _.D(this,_.ef,2)};var tVb=[1,3];

_.w();

}catch(e){_._DumpException(e)}
try{
_.oF=function(a,b){return _.B(a,4,b)};_.vVb=function(a,b){_.B(a,11,b)};_.wVb=function(a,b){return _.B(a,25,b)};_.r("syxi");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syxc");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syxn");
_.SVb=function(a){_.Q(this,a,-1,null,null)};_.O(_.SVb,_.N);_.SVb.prototype.Ii=function(){return _.C(this,3)};_.SVb.prototype.di=function(a){return _.B(this,3,a)};_.SVb.prototype.te=function(){return _.D(this,_.ef,5)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syy3");

_.w();

}catch(e){_._DumpException(e)}
try{
_.xF=function(a){return _.C(a,11)};_.r("syxq");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syxr");
_.yF=function(a){_.Q(this,a,-1,null,null)};_.O(_.yF,_.N);_.yF.prototype.Kc=function(){return _.C(this,1)};_.xWb=function(a){var b=new _.yF;return _.B(b,1,a)};_.yF.prototype.Ii=function(){return _.C(this,2)};_.yF.prototype.di=function(a){return _.B(this,2,a)};_.yF.prototype.te=function(){return _.D(this,_.ef,3)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syxs");

_.w();

}catch(e){_._DumpException(e)}
try{
_.bWb=function(a){_.Q(this,a,-1,null,null)};_.O(_.bWb,_.N);_.r("syxt");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syxv");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syxw");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syy2");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syy4");
_.rF=function(a){_.Q(this,a,-1,DVb,null)};_.O(_.rF,_.N);_.rF.prototype.getId=function(){return _.C(this,1)};_.rF.prototype.Pb=function(a){return _.B(this,1,a)};_.rF.prototype.rz=function(){return _.C(this,2)};var DVb=[5,6,9,10,12,13,15,16];
var EVb;_.sF=function(a){_.Q(this,a,-1,EVb,null)};_.O(_.sF,_.N);_.sF.prototype.Qm=function(){return _.C(this,1)};_.FVb=function(a,b){return _.B(a,1,b)};EVb=[2,4];

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy117");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.FG=function(a,b,c,d){this.ha=a;this.W=b;this.H=this.V=a;this.ka=c||0;this.ma=d||2};_.FG.prototype.O=0;_.FG.prototype.reset=function(){this.H=this.V=this.ha;this.O=0};_.FG.prototype.Za=function(){return this.V};_.GG=function(a){a.H=Math.min(a.W,a.H*a.ma);a.V=Math.min(a.W,a.H+(a.ka?Math.round(a.ka*(Math.random()-.5)*2*a.H):0));a.O++};

_.w();

}catch(e){_._DumpException(e)}
try{
_.iac=function(a,b,c){_.dj(a.url,function(d){d=d.target;d.Wu()?b(d.$k()):c(d.Cb())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)};_.jac=function(a,b,c,d){return _.H(a,1).split("/").pop()==d?(d=_.C(a,2),Array.isArray(d)?new b(d):c(_.jb(a.Za()))):null};_.r("sy111");
var lac=function(a){_.Q(this,a,-1,kac,null)};_.O(lac,_.N);var kac=[2];
_.mac=function(a){_.Q(this,a,-1,null,null)};_.O(_.mac,_.N);var nac=function(){var a=new _.mac,b=document.documentElement.getAttribute("lang");return _.B(a,5,b)};_.mac.prototype.Gi=function(){return _.C(this,7)};
_.oac=function(a){_.Q(this,a,-1,null,null)};_.O(_.oac,_.N);
var pac;_.HG=function(a){_.Q(this,a,31,pac,null)};_.O(_.HG,_.N);_.IG=function(a,b){return _.B(a,8,b)};pac=[3,20,27];
var rac=function(a){_.Q(this,a,17,qac,null)};_.O(rac,_.N);var sac=function(a){var b=Date.now().toString();return _.B(a,4,b)},tac=function(a,b){return _.Cb(a,3,b)},uac=function(a,b){return _.B(a,14,b)},qac=[3,5];
var wac=function(a){_.Q(this,a,6,vac,null)};_.O(wac,_.N);var vac=[5];
var xac=function(a){_.Q(this,a,-1,null,null)};_.O(xac,_.N);
var yac=new _.uk(175237375,xac);
_.JG=function(a,b,c,d,e,f,h,k,l,p,q){var t=this;_.yi.call(this);this.Yc=a;this.Ab=b||_.Bf;this.ka=new rac;this.Ka="";this.Fd=d;this.Gb=q;this.O=[];this.Nc="";this.Oe=_.rb(_.Kia,0,1);this.Ba=e||null;this.Ha=c||null;this.Pa=h||!1;this.$a=l||null;this.Qb=this.Wb=this.W=!1;this.Tc=this.kb=-1;this.yc=!1;this.ha=null;this.Vd=!k;this.Fa=null;this.va=0;this.ef=1;this.Hc=f||!1;this.nb=!1;this.ee=!this.Hc&&(_.xj.Xm&&_.tb(65)||_.xj.qw&&_.tb(45)||_.xj.Cu&&_.tb(12)||_.Ng()&&0<=_.cg(_.kia(),12))&&!!_.bf()&&!!_.bf().navigator&&
!!_.bf().navigator.sendBeacon;a=_.B(new _.oac,1,1);f||(f=nac(),_.A(a,11,f));_.A(this.ka,1,a);_.B(this.ka,2,this.Yc);this.ma=new _.FG(1E4,3E5,.1);this.H=new _.zi(this.ma.Za());this.Ma(this.H);_.qe(this.H,"tick",_.Nfa(zac(this,p)),!1,this);this.Ta=new _.zi(6E5);this.Ma(this.Ta);_.qe(this.Ta,"tick",_.Nfa(zac(this,p)),!1,this);this.Pa||this.Ta.start();this.Hc||(_.qe(_.bf(),"beforeunload",this.oa,!1,this),_.qe(_.bf(),"unload",this.oa,!1,this),_.qe(document,"visibilitychange",function(){"hidden"===document.visibilityState&&
t.oa()}),_.qe(document,"pagehide",this.oa,!1,this))};_.Gf(_.JG,_.yi);var zac=function(a,b){return b?function(){b().then(a.flush.bind(a))}:a.flush};_.JG.prototype.Ya=function(){this.oa();_.JG.ub.Ya.call(this)};var Aac=function(a){a.Ba||(a.Ba=.01>a.Oe()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.Ba};_.JG.prototype.V=function(a){a instanceof _.HG?this.log(a):(a=_.IG(new _.HG,a.Rb()),this.log(a))};
_.Bac=function(a,b){b?(a.ha||(a.ha=new lac),b=b.Rb(),_.B(a.ha,4,b)):a.ha&&_.Tj(a.ha,4)};_.Cac=function(a){a.Wb=a.ee};_.Dac=function(a,b){a.ma=new _.FG(1>b?1:b,3E5,.1);a.H.setInterval(a.ma.Za())};
_.JG.prototype.log=function(a){a=a.clone();var b=this.ef++;_.B(a,21,b);this.Ka&&_.B(a,26,this.Ka);if(!_.C(a,1)){b=a;var c=Date.now().toString();_.B(b,1,c)}_.S(a,15)||_.B(a,15,60*(new Date).getTimezoneOffset());this.ha&&(b=this.ha.clone(),_.A(a,16,b));for(;1E3<=this.O.length;)this.O.shift(),++this.va;this.O.push(a);this.dispatchEvent(new Eac(a));this.Pa||this.H.enabled||this.H.start()};
_.JG.prototype.flush=function(a,b){var c=this;if(0==this.O.length)a&&a();else if(this.nb)Fac(this);else{var d=Date.now();if(this.Tc>d&&this.kb<d)b&&b("throttled");else{var e=uac(tac(sac(this.ka.clone()),this.O),this.va);d={};var f=this.Ab();f&&(d.Authorization=f);var h=Aac(this);this.Ha&&(d["X-Goog-AuthUser"]=this.Ha,h=_.Zi(h,"authuser",this.Ha));this.$a&&(d["X-Goog-PageId"]=this.$a,h=_.Zi(h,"pageId",this.$a));if(f&&this.Nc==f)b&&b("stale-auth-token");else if(this.O=[],this.H.enabled&&this.H.stop(),
this.va=0,this.W)a&&a();else{var k=e.Rb(),l;this.Fa&&this.Fa.Vt(k.length)&&(l=this.Fa.M6b(k));var p={url:h,body:k,Rkb:1,requestHeaders:d,requestType:"POST",withCredentials:this.Vd,timeoutMillis:0},q=(0,_.v)(function(y){this.ma.reset();this.H.setInterval(this.ma.Za());if(y){try{var z=JSON.parse(y.replace(")]}'\n",""));var F=new wac(z)}catch(G){}F&&(y=_.yma(F,1,"-1"),y=Number(y),0<y&&(this.kb=Date.now(),this.Tc=this.kb+y),F=_.kk(F,yac))&&(F=_.Pj(F,1,-1),-1!=F&&(this.yc||_.Dac(this,F)))}a&&a()},this),
t=(0,_.v)(function(y){var z=_.ek(e,_.HG,3);_.GG(this.ma);this.H.setInterval(this.ma.Za());401==y&&f&&(this.Nc=f);if(500<=y&&600>y||401==y||0==y)this.O=z.concat(this.O),this.Pa||this.H.enabled||this.H.start();b&&b("net-send-failed",y)},this),u=function(){c.Gb?c.Gb.send(p,q,t):c.Fd(p,q,t)};l?l.then(function(y){p.requestHeaders["Content-Encoding"]="gzip";p.requestHeaders["Content-Type"]="application/binary";p.body=y;p.Rkb=2;u()},function(){u()}):u()}}}};
_.JG.prototype.oa=function(){this.W||(this.Wb&&Fac(this),this.Qb&&Gac(this),this.flush())};
var Fac=function(a){Hac(a,32,10,function(b,c){b=_.Zi(b,"format","json");b=_.bf().navigator.sendBeacon(b,c.Rb());a.nb&&!b&&(a.nb=!1);return b})},Gac=function(a){Hac(a,6,5,function(b,c){b=_.Vi(b,"format","base64json","p",_.yj(c.Rb(),3));_.vg(new Image,b);return!0})},Hac=function(a,b,c,d){if(0!=a.O.length){var e=_.xla(Aac(a),"format");e=_.Vi(e,"auth",a.Ab(),"authuser",a.Ha||"0");for(var f=0;f<c&&a.O.length;++f){var h=a.O.slice(0,b),k=tac(sac(a.ka.clone()),h);0===f&&uac(k,a.va);if(!d(e,k))break;a.O=a.O.slice(h.length)}a.H.enabled&&
a.H.stop();a.va=0}},Eac=function(){this.type="event-logged"};_.Gf(Eac,_.oi);

_.w();

}catch(e){_._DumpException(e)}
try{
var Iac=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;q=p=0}function b(t){for(var u=h,y=0;64>y;y+=4)u[y/4]=t[y]<<24|t[y+1]<<16|t[y+2]<<8|t[y+3];for(y=16;80>y;y++)t=u[y-3]^u[y-8]^u[y-14]^u[y-16],u[y]=(t<<1|t>>>31)&4294967295;t=e[0];var z=e[1],F=e[2],G=e[3],I=e[4];for(y=0;80>y;y++){if(40>y)if(20>y){var M=G^z&(F^G);var R=1518500249}else M=z^F^G,R=1859775393;else 60>y?(M=z&F|G&(z|F),R=2400959708):(M=z^F^G,R=3395469782);M=((t<<5|t>>>27)&4294967295)+
M+I+R+u[y]&4294967295;I=G;G=F;F=(z<<30|z>>>2)&4294967295;z=t;t=M}e[0]=e[0]+t&4294967295;e[1]=e[1]+z&4294967295;e[2]=e[2]+F&4294967295;e[3]=e[3]+G&4294967295;e[4]=e[4]+I&4294967295}function c(t,u){if("string"===typeof t){t=unescape(encodeURIComponent(t));for(var y=[],z=0,F=t.length;z<F;++z)y.push(t.charCodeAt(z));t=y}u||(u=t.length);y=0;if(0==p)for(;y+64<u;)b(t.slice(y,y+64)),y+=64,q+=64;for(;y<u;)if(f[p++]=t[y++],q++,64==p)for(p=0,b(f);y+64<u;)b(t.slice(y,y+64)),y+=64,q+=64}function d(){var t=[],
u=8*q;56>p?c(k,56-p):c(k,64-(p-56));for(var y=63;56<=y;y--)f[y]=u&255,u>>>=8;b(f);for(y=u=0;5>y;y++)for(var z=24;0<=z;z-=8)t[u++]=e[y]>>z&255;return t}for(var e=[],f=[],h=[],k=[128],l=1;64>l;++l)k[l]=0;var p,q;a();return{reset:a,update:c,digest:d,digestString:function(){for(var t=d(),u="",y=0;y<t.length;y++)u+="0123456789ABCDEF".charAt(Math.floor(t[y]/16))+"0123456789ABCDEF".charAt(t[y]%16);return u}}};_.r("sy112");
var Jac=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));c=a.substring(0,a.indexOf("://"));if(!c)throw Error("Ae`"+a);if("http"!==c&&"https"!==c&&"chrome-extension"!==c&&"moz-extension"!==c&&"file"!==c&&"android-app"!==c&&"chrome-search"!==c&&"chrome-untrusted"!==c&&"chrome"!==c&&"app"!==
c&&"devtools"!==c)throw Error("Be`"+c);a="";var d=b.indexOf(":");if(-1!=d){var e=b.substring(d+1);b=b.substring(0,d);if("http"===c&&"80"!==e||"https"===c&&"443"!==e)a=":"+e}return c+"://"+b+a};
var Lac=function(a,b,c){var d=String(_.n.location.href);return d&&a&&b?[b,Kac(Jac(d),a,c||null)].join(" "):null},Kac=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],_.Ka(d,function(k){e.push(k)}),Mac(e.join(" "));var f=[],h=[];_.Ka(c,function(k){h.push(k.key);f.push(k.value)});c=Math.floor((new Date).getTime()/1E3);e=_.na(f)?[c,b,a]:[f.join(":"),c,b,a];_.Ka(d,function(k){e.push(k)});a=Mac(e.join(" "));a=[c,a];_.na(h)||a.push(h.join(""));return a.join("_")},Mac=function(a){var b=
Iac();b.update(a);return b.digestString().toLowerCase()};
var Nac={};
var Oac,Qac;Oac=function(a){return!!Nac.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};_.Pac=function(a){a=void 0===a?!1:a;var b=_.n.__SAPISID||_.n.__APISID||_.n.__3PSAPISID||_.n.__OVERRIDE_SID;Oac(a)&&(b=b||_.n.__1PSAPISID);if(b)return!0;var c=new _.Jgb(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID");Oac(a)&&(b=b||c.get("__Secure-1PAPISID"));return!!b};Qac=function(a,b,c,d){(a=_.n[a])||(a=(new _.Jgb(document)).get(b));return a?Lac(a,c,d):null};
_.Rac=function(a,b){b=void 0===b?!1:b;var c=Jac(String(_.n.location.href)),d=[];if(_.Pac(b)){c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:");var e=c?_.n.__SAPISID:_.n.__APISID;e||(e=new _.Jgb(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?Lac(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&Oac(b)&&((b=Qac("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=Qac("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",
a))&&d.push(a))}return 0==d.length?null:d.join(" ")};

_.w();

}catch(e){_._DumpException(e)}
try{
_.YG=function(a,b){a.H=b;a.ka=0};_.ZG=function(a,b){return _.B(a,b,[])};_.r("sy118");
_.$G=function(a,b,c,d,e,f,h){_.JG.call(this,a,_.Rac,b,_.iac,c,d,e,void 0,f,h)};_.O(_.$G,_.JG);

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy120");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy140");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.oRc=function(a,b){return _.nRc()?(new _.n.Intl.Collator([a||"en-CA"],b||{})).compare:function(c,d){return c.localeCompare(d)}};_.nRc=function(){var a=_.n.Intl;return!(!a||!a.Collator)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy145");
_.pRc=function(a){_.Q(this,a,-1,null,null)};_.O(_.pRc,_.N);_.g=_.pRc.prototype;_.g.getKey=function(){return _.C(this,1)};_.g.Vr=function(){return _.S(this,1)};_.g.Za=function(){return _.C(this,2)};_.g.Jb=function(a){return _.B(this,2,a)};_.g.vi=function(){return _.Tj(this,2)};_.g.hh=function(){return _.S(this,2)};
_.rK=function(a){_.Q(this,a,-1,qRc,null)};_.O(_.rK,_.N);_.rK.prototype.oz=function(){return _.C(this,1)};_.rK.prototype.getUrl=function(){return _.C(this,3)};var qRc=[2,4,6];

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy146");
_.rRc={drive:1,appDataFolder:2,photos:3,androidBackup:4};_.sRc=_.$a(_.rRc);

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy14l");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy14m");
var tRc=function(a,b){this.O=null;this.O=a;this.H=null;this.V=b};tRc.prototype.get=function(a){return uRc(this)[a]||null};tRc.prototype.set=function(a){uRc(this)[this.V(a)]=a;this.O=null};var uRc=function(a){a.H||(a.H=_.maa(a.O,a.V));return a.H};
_.sK=function(a,b){this.H=a;this.MA=b};
_.sK.prototype.jz=function(a,b){a:{b:{var c=Math.min(a.length,b.length);for(var d=0;d<c;d++)if(!vRc(this,a[d],b[d])){c=d;break b}c=-1}if(-1==c){if(a.length==b.length){c=[];break a}if(a.length>b.length){c=[];for(var e=d=b.length;e<a.length;e++)c.push(this.H.ZL(a[e],d));break a}if(a.length<b.length){c=[];for(d=a.length;d<b.length;d++)c.push(this.H.$L(b[d],d));break a}}d=a.length-1;for(e=b.length-1;0<=d&&0<=e&&vRc(this,a[d],b[e]);d--,e--);e=a.length-1-d;var f=a.length-e;d=a.slice(c,f);f=b.length-e;e=
b.slice(c,f);var h,k=[];for(f=0;f<d.length+1;f++)k[f]=[],k[f][0]=0;for(h=0;h<e.length+1;h++)k[0][h]=0;for(f=1;f<=d.length;f++)for(h=1;h<=e.length;h++)vRc(this,d[f-1],e[h-1])?k[f][h]=k[f-1][h-1]+1:k[f][h]=Math.max(k[f-1][h],k[f][h-1]);var l=[];f=d.length;for(h=e.length;0<f||0<h;)0<f&&0<h&&vRc(this,d[f-1],e[h-1])?(h--,f--):0<h&&(0==f||k[f][h-1]>k[f-1][h])?(l.unshift(this.H.$L(e[h-1],f)),h--):0<f&&(0==h||k[f][h-1]<=k[f-1][h])&&(l.unshift(this.H.ZL(d[f-1],f-1)),f--);d=l;e={};for(f=0;f<d.length;f++)if(h=
this.MA(this.H.CM(d[f])),void 0!==e[h]){h=e[h];l=d[h];var p=d[f];k=1==l.getType()?l:p;l=2==l.getType()?l:p;if(k=this.jE(l,k))d[h]=k,d.splice(f,1),f--}else e[h]=f;e=[];if(null!=d)for(f=0;f<d.length;f++){l=d[f];p=l.Ji()||0;var q=l.Mx()||0;l.setPosition((l.Ji()||0)+wRc(e,l.Ji()||0));d[f].setPosition((d[f].Ji()||0)+c);3==d[f].getType()&&(l.qy((l.Mx()||0)+wRc(e,l.Mx()||0)),d[f].qy((d[f].Mx()||0)+c));h=e;k=h.push;b:switch(l.getType()){case 1:l={offset:1,start:p,end:Number.MAX_VALUE};break b;case 2:l={offset:-1,
start:p,end:Number.MAX_VALUE};break b;case 3:l=p>q?{offset:-1,start:q,end:p}:{offset:1,start:p,end:q};break b;default:l={offset:0,start:-1,end:-1}}k.call(h,l)}c=d}d=[];a=new tRc(a,this.MA);for(e=0;e<b.length;e++)f=b[e],(h=a.get(this.MA(f)))&&!_.mk(h||void 0,f||void 0)&&d.push(this.H.XP(f,e));return c.concat(d)};var wRc=function(a,b){for(var c=0,d=0;d<a.length;d++)a[d].start<=b&&b<=a[d].end&&(c+=a[d].offset);return c};
_.sK.prototype.jE=function(a,b){var c=b.Ji()||0;c>(a.Ji()||0)&&--c;return this.H.jE(this.H.CM(b),a.Ji()||0,c)};var vRc=function(a,b,c){return a.MA(b)==a.MA(c)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.xRc=function(a){_.Q(this,a,-1,null,null)};_.O(_.xRc,_.N);_.g=_.xRc.prototype;_.g.getType=function(){return _.C(this,1)};_.g.getItem=function(){return _.D(this,_.hl,2)};_.g.setItem=function(a){return _.A(this,2,a)};_.g.Mx=function(){return _.C(this,3)};_.g.qy=function(a){return _.B(this,3,a)};_.g.Ji=function(){return _.C(this,4)};_.g.setPosition=function(a){return _.B(this,4,a)};_.yRc=function(a){var b=new _.xRc;return _.B(b,1,a)};_.r("sy15r");
var zRc=function(){};_.g=zRc.prototype;_.g.$L=function(a,b){return _.yRc(1).setItem(a).setPosition(b)};_.g.ZL=function(a,b){return _.yRc(2).setPosition(b).setItem(a)};_.g.jE=function(a,b,c){return _.yRc(3).qy(b).setPosition(c).setItem(a)};_.g.XP=function(a,b){return _.yRc(4).setItem(a).setPosition(b)};_.g.CM=function(a){return a.getItem()};
var BRc;_.ARc=function(){_.sK.call(this,new zRc,function(a){return a.getId()})};_.O(_.ARc,_.sK);_.CRc=function(){BRc||(BRc=new _.ARc);return BRc};

_.w();

}catch(e){_._DumpException(e)}
try{
_.DRc=function(a,b){for(var c=[],d=0;d<b;d++)c[d]=a;return c};_.r("sy16a");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.ERc=function(){this.blockSize=-1};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy16e");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.tK=function(a,b,c){_.P.call(this);this.zn=null!=c?a.bind(c):a;this.ha=b;this.W=null;this.O=!1;this.V=0;this.H=null};_.O(_.tK,_.P);_.g=_.tK.prototype;_.g.xe=function(a){this.W=arguments;this.H||this.V?this.O=!0:FRc(this)};_.g.stop=function(){this.H&&(_.Bi(this.H),this.H=null,this.O=!1,this.W=null)};_.g.pause=function(){this.V++};_.g.resume=function(){this.V--;this.V||!this.O||this.H||(this.O=!1,FRc(this))};_.g.Ya=function(){_.P.prototype.Ya.call(this);this.stop()};
var FRc=function(a){a.H=_.Ai(function(){a.H=null;a.O&&!a.V&&(a.O=!1,FRc(a))},a.ha);var b=a.W;a.W=null;a.zn.apply(null,b)};

_.w();

}catch(e){_._DumpException(e)}
try{
var GRc,JRc;GRc=[3,42];_.HRc=function(a){_.Q(this,a,-1,GRc,null)};_.O(_.HRc,_.N);_.HRc.prototype.getMimeType=function(){return _.C(this,27)};_.IRc=function(a){return _.Bb(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};JRc=function(a,b){if(b&&a in b)return a;var c=_.dHa();return c?(c=c.toLowerCase(),a=c+_.fia(a),void 0===b||a in b?a:null):null};_.r("sy16f");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var KRc=function(a){_.oi.call(this,"visibilitychange");this.hidden=a};_.O(KRc,_.oi);
_.LRc=function(a){_.yi.call(this);this.qd=a||_.eh();if(this.IA=this.prb())this.H=_.qe(this.qd.Yb(),this.IA,(0,_.v)(this.l$a,this))};_.Gf(_.LRc,_.yi);_.g=_.LRc.prototype;_.g.prb=_.Aca(function(){var a=this.Vt(),b="hidden"!=this.Xza();if(a){var c;b?c=((_.dHa()||"")+"visibilitychange").toLowerCase():c="visibilitychange";a=c}else a=null;return a});_.g.Xza=_.Aca(function(){return JRc("hidden",this.qd.Yb())});_.g.Wsb=_.Aca(function(){return JRc("visibilityState",this.qd.Yb())});_.g.Vt=function(){return!!this.Xza()};
_.g.dR=function(){return!!this.qd.Yb()[this.Xza()]};_.g.l$a=function(){var a=this.Vt()?this.qd.Yb()[this.Wsb()]:null;a=new KRc(this.dR(),a);this.dispatchEvent(a)};_.g.Ya=function(){_.vi(this.H);_.LRc.ub.Ya.call(this)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy16g");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.uK=function(){this.blockSize=-1;this.blockSize=64;this.H=Array(4);this.W=Array(this.blockSize);this.V=this.O=0;this.reset()};_.Gf(_.uK,_.ERc);_.uK.prototype.reset=function(){this.H[0]=1732584193;this.H[1]=4023233417;this.H[2]=2562383102;this.H[3]=271733878;this.V=this.O=0};
var MRc=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.H[0];c=a.H[1];e=a.H[2];var f=a.H[3];var h=b+(f^c&(e^f))+d[0]+3614090360&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[1]+3905402710&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[2]+606105819&4294967295;e=f+(h<<17&4294967295|h>>>
15);h=c+(b^e&(f^b))+d[3]+3250441966&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[4]+4118548399&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[5]+1200080426&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[6]+2821735955&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[7]+4249261313&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[8]+1770035416&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[9]+2336552879&4294967295;f=b+(h<<12&4294967295|
h>>>20);h=e+(c^f&(b^c))+d[10]+4294925233&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[11]+2304563134&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[12]+1804603682&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[13]+4254626195&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[14]+2792965006&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[15]+1236535329&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(e^f&(c^e))+d[1]+4129170786&4294967295;b=c+(h<<
5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[6]+3225465664&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[11]+643717713&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[0]+3921069994&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[5]+3593408605&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[10]+38016083&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[15]+3634488961&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[4]+3889429448&4294967295;c=
e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[9]+568446438&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[14]+3275163606&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[3]+4107603335&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[8]+1163531501&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[13]+2850285829&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[2]+4243563512&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[7]+1735328473&4294967295;
e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[12]+2368359562&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(c^e^f)+d[5]+4294588738&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[8]+2272392833&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[11]+1839030562&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[14]+4259657740&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[1]+2763975236&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[4]+1272893353&4294967295;f=b+(h<<11&4294967295|
h>>>21);h=e+(f^b^c)+d[7]+4139469664&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[10]+3200236656&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[13]+681279174&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[0]+3936430074&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[3]+3572445317&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[6]+76029189&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[9]+3654602809&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[12]+
3873151461&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[15]+530742520&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[2]+3299628645&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(e^(c|~f))+d[0]+4096336452&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[7]+1126891415&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[14]+2878612391&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[5]+4237533241&4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[12]+1700485571&
4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[3]+2399980690&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[10]+4293915773&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[1]+2240044497&4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[8]+1873313359&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[15]+4264355552&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[6]+2734768916&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[13]+1309151649&
4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[4]+4149444226&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[11]+3174756917&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[2]+718787259&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[9]+3951481745&4294967295;a.H[0]=a.H[0]+b&4294967295;a.H[1]=a.H[1]+(e+(h<<21&4294967295|h>>>11))&4294967295;a.H[2]=a.H[2]+e&4294967295;a.H[3]=a.H[3]+f&4294967295};
_.uK.prototype.update=function(a,b){void 0===b&&(b=a.length);for(var c=b-this.blockSize,d=this.W,e=this.O,f=0;f<b;){if(0==e)for(;f<=c;)MRc(this,a,f),f+=this.blockSize;if("string"===typeof a)for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.blockSize){MRc(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.blockSize){MRc(this,d);e=0;break}}this.O=e;this.V+=b};
_.uK.prototype.digest=function(){var a=Array((56>this.O?this.blockSize:2*this.blockSize)-this.O);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;var c=8*this.V;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.H[b]>>>d&255;return a};

_.w();

}catch(e){_._DumpException(e)}
try{
var NRc;NRc=[2];_.ORc=function(a){_.Q(this,a,-1,NRc,null)};_.O(_.ORc,_.N);_.ORc.prototype.Cb=function(){return _.C(this,1)};_.ORc.prototype.Dc=function(a){return _.B(this,1,a)};_.ORc.prototype.Uj=function(){return _.C(this,3)};_.r("sy175");
var PRc;_.vK=function(a){_.Q(this,a,-1,PRc,null)};_.O(_.vK,_.N);_.vK.prototype.O=function(){return _.Id(this,1)};_.vK.prototype.te=function(){return _.D(this,_.ef,2)};_.QRc=function(a,b){return _.A(a,2,b)};_.vK.prototype.Ii=function(){return _.Pj(this,3,20)};_.vK.prototype.di=function(a){return _.B(this,3,a)};_.vK.prototype.zm=function(){return _.L(this,4)};_.RRc=function(a,b){return _.B(a,4,b)};PRc=[1];

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy17k");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.SRc=function(a){_.P.call(this);this.O=a;this.H={};this.O.bO((0,_.v)(this.V,this))};_.Gf(_.SRc,_.P);_.URc=function(a,b){if(-1!=b.indexOf(":"))throw Error("Fe`"+b);if(b in a.H)throw Error("Ge`"+b);var c=new TRc(a,b);return a.H[b]=c};_.SRc.prototype.V=function(a,b){if(a=a.match(/^([^:]*):(.*)/)){var c=a[1];a=a[2];c in this.H&&(c=this.H[c])&&c.O&&c.O(a,b)}};_.SRc.prototype.Ya=function(){_.Na(this.H,function(a){_.aa(a)});_.aa(this.O);delete this.H;delete this.O};
var TRc=function(a,b){_.P.call(this);this.Jg=a;this.H=b};_.Gf(TRc,_.P);_.g=TRc.prototype;_.g.connect=function(a){a&&a()};_.g.isConnected=function(){return!0};_.g.registerService=function(a,b,c){this.Jg.O.registerService(this.H+":"+a,(0,_.v)(this.YSa,this,b),c)};_.g.bO=function(a){this.O=(0,_.v)(this.YSa,this,a)};_.g.send=function(a,b){if(this.isDisposed())throw Error("He");this.Jg.O.send(this.H+":"+a,b)};_.g.YSa=function(a,b){this.isDisposed()||a.apply({},Array.prototype.slice.call(arguments,1))};
_.g.Ya=function(){this.Jg=this.Jg.H[this.H]=null};

_.w();

}catch(e){_._DumpException(e)}
try{
var VRc=function(a){null!==a&&"removeAttribute"in a&&a.removeAttribute(_.Dfa);try{delete a[_.Dfa]}catch(b){}},wK=function(a){var b=[],c=[],d={},e=function(f,h){var k=h+"  ";try{if(void 0===f)b.push("undefined");else if(null===f)b.push("NULL");else if("string"===typeof f)b.push('"'+f.replace(/\n/g,"\n"+h)+'"');else if("function"===typeof f)b.push(String(f).replace(/\n/g,"\n"+h));else if(_.Da(f)){f[_.Dfa]||c.push(f);var l=_.Ea(f);if(d[l])b.push("*** reference loop detected (id="+l+") ***");else{d[l]=
!0;b.push("{");for(var p in f)"function"!==typeof f[p]&&(b.push("\n"),b.push(k),b.push(p+" = "),e(f[p],k));b.push("\n"+h+"}");delete d[l]}}else b.push(f)}catch(q){b.push("*** "+q+" ***")}};e(a,"");for(a=0;a<c.length;a++)VRc(c[a]);return b.join("")};_.r("sy17l");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var WRc,yK,YRc,XRc;_.xK=function(a,b,c){if("number"===typeof a)var d={name:XRc(a)};else d=a,a=YRc(a.name);this.code=a;this.O=d;b="Error "+b+": "+this.getName();c&&(b+=", "+c);_.ea.call(this,b)};_.Gf(_.xK,_.ea);_.xK.prototype.getName=function(){return this.O.name||""};yK={Fib:1,Vhb:2,NOT_FOUND_ERR:3,l8a:4,s8a:5,Xhb:6,Aib:7,ABORT_ERR:8,jib:9,V4b:10,TIMEOUT_ERR:11,gib:12,INVALID_ACCESS_ERR:13,INVALID_STATE_ERR:14};_.ZRc=(_.n.VH||_.n.MK||yK).Fib;_.$Rc=(_.n.VH||_.n.MK||yK).Vhb;_.aSc=(_.n.VH||_.n.MK||yK).NOT_FOUND_ERR;
_.bSc=(_.n.VH||_.n.MK||yK).l8a;_.cSc=(_.n.VH||_.n.MK||yK).s8a;_.dSc=(_.n.VH||_.n.MK||yK).Xhb;_.eSc=(_.n.VH||_.n.MK||yK).Aib;_.fSc=(_.n.VH||_.n.MK||yK).ABORT_ERR;_.gSc=(_.n.VH||_.n.MK||yK).jib;_.hSc=(_.n.VH||_.n.MK||yK).TIMEOUT_ERR;_.iSc=(_.n.VH||_.n.MK||yK).gib;_.jSc=(_.n.DOMException||yK).INVALID_ACCESS_ERR;_.kSc=(_.n.DOMException||yK).INVALID_STATE_ERR;
YRc=function(a){switch(a){case "UnknownError":return _.ZRc;case "NotFoundError":return _.aSc;case "ConstraintError":return _.bSc;case "DataError":return _.cSc;case "TransactionInactiveError":return _.eSc;case "AbortError":return _.fSc;case "ReadOnlyError":return _.gSc;case "TimeoutError":return _.hSc;case "QuotaExceededError":return _.iSc;case "InvalidAccessError":return _.jSc;case "InvalidStateError":return _.kSc;default:return _.ZRc}};
XRc=function(a){switch(a){case _.ZRc:return"UnknownError";case _.aSc:return"NotFoundError";case _.bSc:return"ConstraintError";case _.cSc:return"DataError";case _.eSc:return"TransactionInactiveError";case _.fSc:return"AbortError";case _.gSc:return"ReadOnlyError";case _.hSc:return"TimeoutError";case _.iSc:return"QuotaExceededError";case _.jSc:return"InvalidAccessError";case _.kSc:return"InvalidStateError";default:return"UnknownError"}};
_.zK=function(a,b){return"error"in a?new _.xK(a.error,b):new _.xK({name:"UnknownError"},b)};_.AK=function(a,b){if("name"in a)return b=b+": "+a.message,new _.xK(a,b);if("code"in a){var c=XRc(a.code);b=b+": "+a.message;return new _.xK({name:c},b)}return new _.xK({name:"UnknownError"},b)};
_.lSc=function(a){this.H=a};_.mSc=_.n.IDBKeyRange||_.n.webkitIDBKeyRange;_.lSc.prototype.range=function(){return this.H};
var nSc=function(a){this.H=a};nSc.prototype.getName=function(){return this.H.name};var oSc=function(a,b,c,d){var e=new _.$h;try{var f=a.H[b](d)}catch(h){return c+=" with key "+wK(d),e.Kd(_.AK(h,c)),e}f.onsuccess=function(h){e.callback(h.target.result)};f.onerror=function(h){c+=" with key "+wK(d);e.Kd(_.zK(h.target,c))};return e};nSc.prototype.get=function(a){return oSc(this,"get","getting from index "+this.getName(),a)};
nSc.prototype.getKey=function(a){return oSc(this,"getKey","getting key from index "+this.getName(),a)};nSc.prototype.getAll=function(a,b){return _.pSc(this,"getAll","getting all from index "+this.getName(),a,b)};
_.pSc=function(a,b,c,d,e){var f;void 0===d?f=void 0:f=d instanceof _.lSc?d.range():(new _.lSc(_.mSc.only(d))).range();var h=new _.$h;try{var k=a.H[b](f,e)}catch(l){return c+=" for range "+(f?wK(f):"<all>"),h.Kd(_.AK(l,c)),h}k.onsuccess=function(){h.callback(k.result)};k.onerror=function(l){c+=" for range "+(f?wK(f):"<all>");h.Kd(_.zK(l.target,c))};return h};
var qSc=function(a){this.H=a};qSc.prototype.getName=function(){return this.H.name};var rSc=function(a,b,c,d,e){var f=new _.$h;try{var h=e?a.H[b](d,e):a.H[b](d)}catch(k){return c+=wK(d),e&&(c+=", with key "+wK(e)),f.Kd(_.AK(k,c)),f}h.onsuccess=function(k){f.callback(k.target.result)};h.onerror=function(k){c+=wK(d);e&&(c+=", with key "+wK(e));f.Kd(_.zK(k.target,c))};return f};_.g=qSc.prototype;_.g.put=function(a,b){return rSc(this,"put","putting into "+this.getName()+" with value",a,b)};
_.g.add=function(a,b){return rSc(this,"add","adding into "+this.getName()+" with value ",a,b)};_.g.remove=function(a){var b=new _.$h;try{var c=this.H["delete"](a instanceof _.lSc?a.range():a)}catch(e){return c="removing from "+this.getName()+" with key "+wK(a),b.Kd(_.AK(e,c)),b}c.onsuccess=function(){b.callback()};var d=this;c.onerror=function(e){var f="removing from "+d.getName()+" with key "+wK(a);b.Kd(_.zK(e.target,f))};return b};
_.g.get=function(a){var b=new _.$h;try{var c=this.H.get(a)}catch(e){return c="getting from "+this.getName()+" with key "+wK(a),b.Kd(_.AK(e,c)),b}c.onsuccess=function(e){b.callback(e.target.result)};var d=this;c.onerror=function(e){var f="getting from "+d.getName()+" with key "+wK(a);b.Kd(_.zK(e.target,f))};return b};_.g.getAll=function(a,b){return sSc(this,"getting all from index "+this.getName(),a,b)};
var sSc=function(a,b,c,d){var e;void 0===c?e=void 0:e=c instanceof _.lSc?c.range():(new _.lSc(_.mSc.only(c))).range();var f=new _.$h;try{var h=a.H.getAll(e,d)}catch(k){return b+=" for range "+(e?wK(e):"<all>"),f.Kd(_.AK(k,b)),f}h.onsuccess=function(){f.callback(h.result)};h.onerror=function(k){b+=" for range "+(e?wK(e):"<all>");f.Kd(_.zK(k.target,b))};return f};
qSc.prototype.clear=function(){var a="clearing store "+this.getName(),b=new _.$h;try{var c=this.H.clear()}catch(d){return b.Kd(_.AK(d,a)),b}c.onsuccess=function(){b.callback()};c.onerror=function(d){b.Kd(_.zK(d.target,a))};return b};qSc.prototype.getIndex=function(a){try{return new nSc(this.H.index(a))}catch(b){throw _.AK(b,"getting index "+a);}};
qSc.prototype.count=function(a){var b=new _.$h;try{var c=this.H.count(a?a.range():null);c.onsuccess=function(e){b.callback(e.target.result)};var d=this;c.onerror=function(e){b.Kd(_.zK(e.target,d.getName()))}}catch(e){b.Kd(_.AK(e,this.getName()))}return b};
var tSc=function(a,b){_.yi.call(this);this.H=a;this.O=b;this.wb=new _.De(this);this.wb.listen(this.H,"complete",(0,_.v)(this.dispatchEvent,this,"complete"));this.wb.listen(this.H,"abort",(0,_.v)(this.dispatchEvent,this,"abort"));this.wb.listen(this.H,"error",this.m$a)};_.Gf(tSc,_.yi);_.g=tSc.prototype;_.g.m$a=function(a){a.target instanceof _.xK?this.dispatchEvent({type:"error",target:a.target}):this.dispatchEvent({type:"error",target:_.zK(a.target,"in transaction")})};_.g.Ih=function(){return this.H.mode};
_.g.objectStore=function(a){try{return new qSc(this.H.objectStore(a))}catch(b){throw _.AK(b,"getting object store "+a);}};_.g.commit=function(a){if(this.H.commit||!a)try{this.H.commit()}catch(b){throw _.AK(b,"cannot commit the transaction");}};
_.g.wait=function(){var a=new _.$h;_.He(this,"complete",(0,_.v)(a.callback,a));var b=_.He(this,"abort",function(){_.vi(c);a.Kd(new _.xK(_.fSc,"waiting for transaction to complete"))});var c=_.He(this,"error",function(e){_.vi(b);a.Kd(e.target)});var d=this.O;return a.addCallback(function(){return d})};_.g.abort=function(){this.H.abort()};_.g.Ya=function(){tSc.ub.Ya.call(this);this.wb.dispose()};
var uSc=function(a){_.yi.call(this);this.H=a;this.wb=new _.De(this);this.wb.listen(this.H,"abort",(0,_.v)(this.dispatchEvent,this,"abort"));this.wb.listen(this.H,"error",this.n$a);this.wb.listen(this.H,"versionchange",this.Dob);this.wb.listen(this.H,"close",(0,_.v)(this.dispatchEvent,this,"close"))};_.Gf(uSc,_.yi);_.g=uSc.prototype;_.g.Ksa=!0;_.g.n$a=function(a){a=(a=a.target)&&a.error;this.dispatchEvent({type:"error",errorCode:a&&a.severity})};
_.g.Dob=function(a){this.dispatchEvent(new vSc(a.oldVersion,a.newVersion))};_.g.close=function(){this.Ksa&&(this.H.close(),this.Ksa=!1)};_.g.Cg=function(){return this.Ksa};_.g.getName=function(){return this.H.name};_.g.xi=function(){return Number(this.H.version)};_.wSc=function(a,b,c){try{return new qSc(a.H.createObjectStore(b,c))}catch(d){throw _.AK(d,"creating object store "+b);}};
_.xSc=function(a,b,c){try{var d=c?a.H.transaction(b,c):a.H.transaction(b);return new tSc(d,a)}catch(e){throw _.AK(e,"creating transaction");}};uSc.prototype.Ya=function(){uSc.ub.Ya.call(this);this.wb.dispose()};var vSc=function(a,b){_.oi.call(this,"versionchange");this.oldVersion=a;this.newVersion=b};_.Gf(vSc,_.oi);
_.ySc=function(){void 0==WRc&&(WRc=_.n.indexedDB||_.n.mozIndexedDB||_.n.webkitIndexedDB||_.n.moz_indexedDB);return WRc};
_.zSc=function(a,b,c,d){var e=new _.$h;b=b?_.ySc().open(a,b):_.ySc().open(a);b.onsuccess=function(f){f=new uSc(f.target.result);e.callback(f)};b.onerror=function(f){e.Kd(_.zK(f.target,"opening database "+a))};b.onupgradeneeded=function(f){if(c){var h=new uSc(f.target.result);c(new vSc(f.oldVersion,f.newVersion),h,new tSc(f.target.transaction,h))}};b.onblocked=function(f){d&&d(new vSc(f.oldVersion,f.newVersion))};return e};

_.w();

}catch(e){_._DumpException(e)}
try{
_.ASc=function(a,b){this.ma=a;this.Ba=b;this.V="https://play.google.com/log?format=json&hasfast=true";this.W=!1;this.oa=_.iac;this.H=""};_.BSc=function(a,b){var c=_.Rr,d;if(d=a)d=_.In.prototype.matches.call(c,a)&&"function"===typeof a.DC&&(!b||a.DC().toString()==b.toString());return d?a:null};_.r("sy17m");
_.ASc.prototype.build=function(){var a=new _.JG(this.ma,this.ha?this.ha:_.Rac,this.Ba,this.oa,this.V,this.W,!1,void 0,void 0,void 0,this.va?this.va:void 0);if(this.Ha){var b=this.Ha;_.C(b,1)||_.B(b,1,1);_.A(a.ka,1,b)}if(this.O){b=this.O;var c=_.D(a.ka,_.oac,1),d=_.D(c,_.mac,11);d||(d=new _.mac);_.B(d,7,b);_.A(c,11,d);_.C(c,1)||_.B(c,1,1);_.A(a.ka,1,c)}this.ka&&(a.Fa=this.ka);this.H&&(a.Ka=this.H);this.Fa&&_.Bac(a,this.Fa);this.Ka&&(b=this.Ka,a.yc=!0,_.Dac(a,b));return a};

_.w();

}catch(e){_._DumpException(e)}
try{
var ESc;_.CSc=function(a,b){var c=_.D(a.H,_.MAa,9);null==c&&(c=new _.MAa);var d=_.C(b.H,10);d=_.B(c,5,d);b=_.C(b.H,12);_.B(d,2,b);_.A(a.H,9,c)};_.DSc=function(a,b,c){a.O[b.getId()]=c;a.H&&c.O(a.H)};ESc=function(){};_.r("sy17n");
_.FSc=function(a){var b;this.O=(b=void 0===b?!1:b)?null:a;this.H=b?a:null};_.FSc.prototype.Tz=function(a){var b=this.H?ESc.prototype.V.bind(this.H):_.JG.prototype.log.bind(this.O),c=this.H?ESc.prototype.flush.bind(this.H):_.JG.prototype.flush.bind(this.O);a=_.IG(new _.HG,a.Rb());b(a);return new _.Qh(function(d){c(d,function(){d()})}.bind(this))};
_.GSc=function(a){var b;this.O=(b=void 0===b?!1:b)?null:a;this.H=b?a:null;_.Cac(this.O)};_.GSc.prototype.Tz=function(a){var b=this.H?ESc.prototype.V.bind(this.H):_.JG.prototype.log.bind(this.O),c=this.H?ESc.prototype.flush.bind(this.H):_.JG.prototype.flush.bind(this.O);a=_.IG(new _.HG,a.Rb());b(a);c()};

_.w();

}catch(e){_._DumpException(e)}
try{
var HSc=function(a){_.Q(this,a,-1,null,null)};_.O(HSc,_.N);HSc.prototype.getEmail=function(){return _.H(this,3,"")};HSc.prototype.Ep=function(){return _.S(this,3)};_.BK=function(a){return _.E(a,5,!1)};_.CK=function(a){return _.D(a,HSc,36,1)};_.ISc=function(a){var b=_.dla(a);if("undefined"==typeof b)throw Error("V");var c=new _.pj(null,void 0);a=_.cla(a);for(var d=0;d<b.length;d++){var e=b[d],f=a[d];Array.isArray(f)?_.Yla(c,e,f):c.add(e,f)}return c};_.r("sy177");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy176");
_.DK=function(a){_.Q(this,a,-1,null,null)};_.O(_.DK,_.N);_.DK.prototype.te=function(){return _.D(this,_.ef,1)};_.EK=function(a,b){return _.A(a,1,b)};_.DK.prototype.Gg=function(){return _.C(this,4)};_.DK.prototype.Yoa=function(a){return _.B(this,4,a)};

_.w();

}catch(e){_._DumpException(e)}
try{
var JSc=function(a){_.Q(this,a,-1,null,null)},OSc;_.O(JSc,_.N);var KSc=function(a){_.Q(this,a,-1,null,null)};_.O(KSc,_.N);_.FK=function(a){_.Q(this,a,-1,null,null)};_.O(_.FK,_.N);_.FK.prototype.h4=function(a){_.B(this,3,a)};_.FK.prototype.El=function(a){return _.A(this,5,a)};_.FK.prototype.getMimeType=function(){return _.C(this,7)};var LSc=[2],MSc=function(a){_.Q(this,a,-1,LSc,null)};_.O(MSc,_.N);var NSc=function(a){_.Q(this,a,-1,null,null)};_.O(NSc,_.N);OSc=function(a){this.H=a};
_.PSc=function(a){this.ad=a};_.PSc.prototype.getId=function(){return this.ad};var QSc=function(a){_.Q(this,a,-1,null,null)};_.O(QSc,_.N);QSc.prototype.xi=function(){return _.C(this,1)};var RSc=function(a){_.Q(this,a,-1,null,null)};_.O(RSc,_.N);
var TSc=function(){this.O=this.ha=!1;this.H=null;for(var a=this.W=this.V=0;a<_.XCa.length;a++){var b=_.XCa[a];if(b&&b.chrome&&b.chrome.runtime&&b.chrome.runtime.connect){this.ha=!0;SSc(this,b);break}}},SSc=function(a,b){a.H=b.chrome.runtime.connect("ciiamoeghmklpofjbocenebdfbgjapaa");a.O=!0;a.H.onDisconnect.addListener(function(){a.O=!1});document.addEventListener("mousemove",function(c){a.V=c.clientX;a.W=c.clientY})};
TSc.prototype.Tz=function(a){if(this.ha&&this.O){var b=_.D(a,_.Ib,2)||new _.Ib,c=_.D(a,_.sp,5)||new _.sp,d=_.D(a,_.FK,3)||new _.FK;a=_.ek(a,_.iBa,1);a=_.m(a);for(var e=a.next();!e.done;e=a.next())this.H.postMessage({detail:{impression:e.value.Rb(),session_info:b.Rb(),session_invariants:c.Rb(),client_info:d.Rb()}});document.dispatchEvent(new CustomEvent("ripple",{detail:{clientX:this.V,clientY:this.W}}))}};_.r("sy17a");
var USc=function(){_.np.call(this)};_.O(USc,_.np);USc.prototype.Vu=function(){return 1==_.C(_.D(this.H,JSc,7),1)};var VSc=new _.jp("high_frequency_builder");
var WSc=function(a,b,c){a=new _.zi(a);c.Ma(a);var d=new _.De(c);c.Ma(d);d.listen(a,"tick",b);a.start()};
var XSc=function(){_.np.call(this)};_.O(XSc,_.np);var YSc=function(a,b,c){var d=1E3*Date.now();if(0==b){b=new _.ap;var e=new _.KAa;e=_.B(e,1,d);_.A(b,1,e);_.B(b,3,1);_.A(a.H,8,b);_.B(a.H,12,c);_.B(a.H,13,c);_.B(a.H,4,d);_.B(a.H,3,c)}else 1==b&&(b=new _.ap,e=new _.LAa,d=_.B(e,1,d),_.A(b,2,d),_.B(b,3,2),_.A(a.H,8,b),_.B(a.H,12,c),_.B(a.H,3,c));return a},ZSc=new _.jp("system_builder");
var $Sc=function(a,b){_.P.call(this);this.O=a;this.H=new _.LRc(b);this.Ma(this.H);this.wb=new _.De(this);this.Ma(this.wb);this.H.Vt()&&this.wb.listen(this.H,"visibilitychange",this.V)};_.O($Sc,_.P);$Sc.prototype.V=function(){if(this.O.uT()){var a=this.H.dR()?102001:102E3;a=this.O.rF(a,0);this.O.fq(a)}};
var aTc=function(a,b,c){c=void 0===c?!1:c;_.P.call(this);this.H=a;this.O=b;this.Ma(this.O);this.W=c;this.V=null};_.O(aTc,_.P);_.g=aTc.prototype;_.g.fq=function(a){var b=this.H;_.B(a.H,6,b.W);a=a.build();b.H.add(a);b.V=!0;b=this.O;3<=b.H.H.lc()&&b.O.xe();return new OSc(a)};_.g.rF=function(a,b){a=YSc(bTc(this.H,a),b,this.H.ha++);1==b&&this.H.ka.add(a);return a};_.g.bL=function(){return this.H.O};
_.g.kM=function(a){var b=this.H,c=_.op(a,ZSc),d=b.ha++,e=_.D(_.D(c.H,_.ap,8),_.LAa,2),f=1E3*Date.now();_.B(e,2,f);_.B(c.H,13,d);b.ka.remove(_.C(a.H,12))};_.g.uZ=function(){var a=this.O;if(!a.ha||a.H.V){var b=cTc(a.H,691).build();b=dTc(a.H,[b]);a.ka.Tz(b)}a.W();this.H.ma=!1;this.V&&(_.aa(this.V),this.V=null)};_.g.vZ=function(){var a=this.H,b=cTc(a,716);eTc(a,b);b=b.build();a.H.add(b);a.va=!0;a.ma=!0;this.O.initialize();this.O.O.xe();this.W&&(this.V=new $Sc(this))};_.g.vja=function(){this.O.W();return _.Wh(Array.from(this.O.V)).then()};
_.g.uT=function(){var a=this.H;return a.va&&a.ma&&!0};
var fTc=function(a,b,c,d,e){_.P.call(this);this.H=a;this.oa=b;this.ka=c;this.O=new _.tK(this.W,3E3,this);this.V=new Set;this.ha=d;this.ma=e||6E4};_.O(fTc,_.P);fTc.prototype.initialize=function(){WSc(this.ma,this.O.xe,this.O);WSc(36E5,this.va,this)};fTc.prototype.W=function(){var a=this;if(0!=this.H.H.lc()&&(!this.ha||this.H.V)){var b=gTc(this.H),c=this.oa.Tz(b);c&&(_.Yh(c,function(){return void a.V.delete(c)}),this.V.add(c))}};
fTc.prototype.va=function(){var a=this.H,b=cTc(a,1153).build();a.H.add(b);this.O.xe()};
var hTc=function(a){_.P.call(this);this.H=a;this.Ma(this.H)};_.O(hTc,_.P);_.g=hTc.prototype;_.g.fq=function(a){a=this.H.fq(a);this.vja();return a};_.g.rF=function(a,b){return this.H.rF(a,b)};_.g.bL=function(){return this.H.bL()};_.g.kM=function(a){return this.H.kM(a)};_.g.uZ=function(){return this.H.uZ()};_.g.vZ=function(){return this.H.vZ()};_.g.vja=function(){return this.H.vja()};_.g.uT=function(){return this.H.uT()};
var iTc=function(){};iTc.prototype.tQ=function(){return new USc};
var jTc=function(){this.H=[]};jTc.prototype.add=function(a){this.H.push(a)};jTc.prototype.lc=function(){return this.H.length};
var kTc=function(){this.H={}};kTc.prototype.add=function(a){var b=_.C(a.H,12);this.H[b]=a};kTc.prototype.remove=function(a){delete this.H[a]};
var lTc=function(a,b){this.O=a;this.Ba=b;this.ha=1;this.oa=this.W=null;this.ka=new kTc;this.H=new jTc;this.ma=this.va=this.V=!1},bTc=function(a,b){a=_.op((new _.np).initialize(new _.iBa,a.Ba),ZSc);_.B(a.H,10,b);return a},gTc=function(a){var b=a.H,c=b.H;b.H=[];return dTc(a,c)},dTc=function(a,b){var c=new _.nCa;var d=a.O.W.clone();c=_.A(c,2,d);d=a.O;(d=d.O?d.O.clone():null)&&_.A(c,5,d);var e;d=a.O;for(var f,h=b.length-1;0<=h;h--){var k=_.D(b[h],_.hp,5);if(k&&_.D(k,_.HRc,1)){k=_.D(k,_.HRc,1);_.S(k,12)&&
void 0===e&&(e=_.L(k,12));k=_.D(k,KSc,20);if(void 0!==k&&void 0===f){f=new RSc;var l=_.L(k,2);void 0!==l&&_.B(f,2,l);k=_.L(k,1);void 0!==k&&_.B(f,1,k)}if(void 0!==e&&void 0!==f)break}}d=d.H?d.H.clone():null;if(void 0!==e||void 0!==f)d||(d=new _.FK),void 0!==e&&_.B(d,6,e),void 0!==f&&_.A(d,13,f);(e=d)&&_.A(c,3,e);a=a.O.ha.clone();_.A(c,4,a);_.Cb(c,1,b);return c},cTc=function(a,b){var c=YSc(bTc(a,b),0,a.ha++);var d=a.ka;var e=Object.keys(d.H);if(0==e.length)d=null;else{for(var f=[],h=0;h<e.length;h++){var k=
Number(e[h]),l=d.H[k],p=new NSc;k=_.B(p,1,k);l=_.C(l.H,10);l=_.B(k,2,l);f.push(l)}d=f}716!=b&&(b=a.oa,_.B(c.H,6,a.W),e=new MSc,b=_.B(e,1,b),d&&_.Cb(b,2,d),d=_.pp(c),_.A(d,3,b));eTc(a,c);return c},eTc=function(a,b){a.W=_.C(b.H,12);a.oa=_.C(_.D(_.D(b.H,_.ap,8),_.KAa,1),1)};
var mTc=function(){};mTc.prototype.tQ=function(){return new XSc};
var nTc=function(){this.H=this.O=null};nTc.prototype.build=function(){null==this.H&&(this.H=new _.LBa);_.rp(this.H,ZSc,new mTc);_.rp(this.H,VSc,new iTc);var a=this.H;var b=this.O;if(!_.S(_.oTc(b),1)){var c=_.oTc(b),d=new _.cCa;_.A(c,1,d)}b=_.D(_.oTc(b),_.cCa,1);a.H=b;b=_.Sa(a.O);for(c=0;c<b.length;c++)b[c].O(a.H);return new lTc(this.O,this.H)};
var pTc=function(){this.W=new _.Ib;this.O=null;this.ha=new QSc;_.B(this.ha,1,6);this.H=this.V=null};pTc.prototype.setSessionId=function(a){this.W.setSessionId(a);return this};_.qTc=function(a,b){_.B(a.W,2,b);return a};_.rTc=function(a,b){if(null==a.V){a.V=new _.lCa;var c=_.oTc(a);_.A(c,2,a.V)}_.B(a.V,1,b)};_.oTc=function(a){null==a.O&&(a.O=new _.sp);return a.O};_.sTc=function(a){null==a.H&&(a.H=new _.FK);return a.H};
_.tTc=function(){this.H=this.ha=null;this.W=new pTc;this.V=null;this.ka=this.ma=!1;this.O=null};_.uTc=function(a,b){a.ha=b;return a};_.vTc=function(a,b){a.H=b;return a};_.wTc=function(a,b){a.V=b;return a};_.tTc.prototype.setSessionId=function(a){this.W.setSessionId(a);return this};_.xTc=function(a,b){_.B(a.W.W,6,b);return a};
_.tTc.prototype.build=function(){var a=new nTc;a.O=this.W;null!=this.V&&(a.H=this.V);a=a.build();if(this.ka){var b=new TSc;this.H=this.ha=b}b=new fTc(a,this.ha,this.H,this.ma,this.O);a=new aTc(a,b,!1);this.ka&&(a=new hTc(a));return a};

_.w();

}catch(e){_._DumpException(e)}
try{
_.GK=function(a){return a instanceof Error};_.HK=function(a){return _.E(a,84,!1)};_.r("sy171");
_.yTc=function(a){_.Q(this,a,-1,null,null)};_.O(_.yTc,_.N);
_.IK=function(a){_.Q(this,a,-1,null,null)};_.O(_.IK,_.N);_.IK.prototype.getOptions=function(){return _.D(this,_.yTc,1)};_.IK.prototype.Ln=function(){return _.C(this,2)};_.IK.prototype.yd=function(){return _.D(this,_.Te,3)};
_.zTc=function(a){_.Q(this,a,-1,null,_.JK)};_.O(_.zTc,_.N);_.JK=[[3,4,5,6,7,8,9,10]];
var KK,BTc;KK={};_.ATc=(KK[1]="modifiedDate",KK[2]="modifiedByMeDate",KK[3]="quotaBytesUsed",KK[4]="title",KK[6]="lastViewedByMeDate",KK[10]="createdDate",KK[7]="sharedWithMeDate",KK[9]="starred",KK[11]="recency",KK[5]="relevance",KK[12]="trashedDate",KK[13]="lastViewedByMeDate",KK);BTc={};_.CTc=(BTc[1]="asc",BTc[2]="desc",BTc);
_.DTc=new Map([[157,"categoryReferences"],[5,"hidden"]]);
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.ETc=function(a,b,c,d,e,f,h){a="number"===typeof a?Date.UTC(a,b||0,c||1,d||0,e||0,f||0,h||0):a?a.getTime():_.Df();this.date=new Date(a)};_.Gf(_.ETc,_.wt);_.g=_.ETc.prototype;_.g.clone=function(){var a=new _.ETc(this.date);a.cG=this.cG;a.TU=this.TU;return a};_.g.add=function(a){(a.W||a.V)&&_.vt.prototype.add.call(this,new _.ut(a.W,a.V));this.date=new Date(this.date.getTime()+1E3*(a.seconds+60*(a.O+60*(a.H+24*a.Jv))))};_.g.getTimezoneOffset=function(){return 0};_.g.getFullYear=_.wt.prototype.getUTCFullYear;
_.g.getMonth=_.wt.prototype.getUTCMonth;_.g.getDate=_.wt.prototype.getUTCDate;_.g.getHours=_.wt.prototype.getUTCHours;_.g.getMinutes=_.wt.prototype.getUTCMinutes;_.g.getSeconds=_.wt.prototype.Y8a;_.g.getMilliseconds=_.wt.prototype.X8a;_.g.getDay=_.wt.prototype.getUTCDay;_.g.setFullYear=_.wt.prototype.setUTCFullYear;_.g.setMonth=_.wt.prototype.setUTCMonth;_.g.setDate=_.wt.prototype.setUTCDate;_.g.setHours=_.wt.prototype.MLa;_.g.setMinutes=_.wt.prototype.NLa;_.g.setSeconds=_.wt.prototype.OLa;
_.g.setMilliseconds=_.wt.prototype.Z8a;
var FTc,HTc;FTc={};_.GTc=(FTc[1]="0",FTc[2]="1",FTc[3]="2",FTc);HTc={};_.ITc=(HTc[1]="asc",HTc[2]="desc",HTc);
_.JTc=new _.jp("drive_dataservice_builder");
_.KTc=_.Sg&&0>_.cg(_.Xg,"533");
_.LTc=new _.PSc("drive_dataservice_invariants");
_.MTc=new Map([[[1],1],[[6],7],[[2],2]]);_.NTc=new Map([[[1],3],[[2],4],[[3],5],[[4],6],[[5],7],[[6],8],[[10],12],[[7],9],[[8],10],[[9],11]]);
_.OTc=new Map([[12,function(a){return _.L(a,69)}],[24,function(a){return _.E(a,3,!1)}],[9,function(a){return _.E(a,17,!1)}],[21,function(a){return _.HK(a)}],[13,function(a){return _.L(a,60)}],[2,function(a){return _.E(a,8,!0)}],[6,function(a){return _.E(a,11,!1)}],[14,function(){return!0}],[16,function(a){return _.E(a,56,!1)}],[17,function(a){return _.E(a,57,!1)}],[18,function(a){return _.E(a,54,!1)}],[19,function(a){return _.E(a,53,!1)}],[23,function(){return!0}],[28,function(){return!0}]]);
_.PTc=new Map([[36,function(a){return _.E(a,11,!1)}],[34,function(a){return _.E(a,9,!1)}],[25,function(a){return _.E(a,1,!1)}],[33,function(a){return _.E(a,8,!1)}],[26,function(a){return _.E(a,2,!1)}],[27,function(a){return _.E(a,3,!1)}],[29,function(a){return _.E(a,4,!1)}],[32,function(a){return _.E(a,7,!1)}],[37,function(a){return _.E(a,12,!1)}],[30,function(a){return _.E(a,5,!1)}],[31,function(a){return _.E(a,6,!1)}],[35,function(a){return _.E(a,10,!1)}],[38,function(a){return _.E(a,13,!1)}],[39,
function(a){return _.E(a,14,!1)}]]);_.QTc=new Map([[[1],1],[[2],2],[[3],3],[[4],4]]);
_.RTc=new Map([[[3,4,5,6,8],3],[[1],1],[[15],15],[[2],2],[[7],4],[[9],5],[[10],6],[[11],7],[[16],16],[[12],8],[[13],9],[[14],10],[[200],200],[[201],201],[[202],202],[[203],203],[[204],204],[[205],205],[[206],206],[[207],207],[[208],208],[[209],209],[[210],210],[[211],211],[[212],212],[[213],213],[[214],214],[[215],215],[[216],216],[[217],217],[[218],218],[[219],219],[[220],220],[[221],221],[[222],222],[[223],223],[[224],224],[[225],225],[[226],226],[[227],227],[[228],228],[[229],229],[[230],230],
[[231],231],[[232],232],[[233],233],[[234],234],[[235],235],[[236],236],[[237],237],[[238],238],[[239],239],[[240],240],[[241],241],[[242],242],[[243],243],[[244],244],[[245],245],[[246],246],[[247],247],[[248],248],[[249],249],[[250],250]]);_.STc=new Map([[[2],3],[[1],2],[[0],1]]);_.TTc=new Map([[[0],1],[[1],2],[[3],3],[[5],4],[[6],5]]);_.UTc=new Map([[[_.$Rc],1],[[_.aSc],2],[[_.bSc],3],[[_.cSc],4],[[_.dSc],5],[[_.eSc],6],[[_.fSc],7],[[_.gSc],8],[[_.hSc],10],[[_.iSc],11],[[_.jSc],12],[[_.kSc],13]]);
_.VTc=new Map([[[0],1],[[1],2],[[2],3],[[3],4],[[4],5],[[5],6],[[6],7]]);

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy174");
_.LK=function(a){_.Q(this,a,-1,WTc,null)};_.O(_.LK,_.N);_.LK.prototype.Kc=function(){return _.C(this,2)};_.NK=function(a,b){return _.B(a,2,b)};_.g=_.LK.prototype;_.g.qk=function(){return _.E(this,3,!1)};_.g.getItem=function(){return _.D(this,_.hl,4)};_.g.setItem=function(a){return _.A(this,4,a)};_.g.Bc=function(){return _.C(this,7)};_.g.Q9=function(){return _.C(this,13)};_.g.FHa=function(a){_.B(this,13,a)};var WTc=[8,17];

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy179");

_.w();

}catch(e){_._DumpException(e)}
try{
var $Tc;_.QK=function(a){if(a instanceof _.jc)return a;if(_.GK(a)){if(a=_.Zrb(a))return a}else a="string"===typeof a?_.aGa(a):_.aGa("Converting an unexpected reason type to drive.ds.Error which should be drive.ds.Error, Error, or string. Found:"+a);_.OK(a,2);_.PK(a,6);return a};_.XTc=function(a){var b=a.mk();a=a.DF();return 15===b||32===b||33===b||401===a};_.YTc=function(){return _.n.WorkerGlobalScope&&self instanceof _.n.WorkerGlobalScope};_.ZTc=function(a){_.Q(this,a,-1,null,null)};_.O(_.ZTc,_.N);
_.RK=function(a){return _.Pj(a,1,0)};_.SK=function(a){return _.D(a,_.ZTc,4)};_.OK=function(a,b){return _.B(a,1,b)};_.PK=function(a,b){return _.B(a,2,b)};$Tc=[8,9,10,13,14,27,28,29,31,32,33,34,38];_.TK=function(a){_.Q(this,a,-1,$Tc,null)};_.O(_.TK,_.N);_.g=_.TK.prototype;_.g.getId=function(){return _.C(this,1)};_.g.Pb=function(a){return _.B(this,1,a)};_.g.getTitle=function(){return _.C(this,2)};_.g.setTitle=function(a){return _.B(this,2,a)};_.g.Bg=function(){return _.C(this,3)};
_.g.tm=function(a){return _.B(this,3,a)};_.g.jv=function(a){return _.B(this,4,a)};_.g.Nh=function(){return _.L(this,5)};_.g.Vm=function(a){return _.B(this,5,a)};_.g.getMimeType=function(){return _.C(this,6)};_.g.aE=function(a,b){_.ck(this,8,a,b)};_.g.Pi=function(){return _.C(this,12)};_.g.te=function(){return _.D(this,_.ef,17)};_.g.xi=function(){return _.C(this,20)};_.g.Bc=function(){return _.C(this,21)};_.UK=function(a,b){return _.B(a,16,b)};_.r("sy173");
_.VK=function(a){_.Q(this,a,-1,aUc,null)};_.O(_.VK,_.N);_.VK.prototype.CQ=function(){return _.Pj(this,2,100)};_.VK.prototype.kS=function(a){return _.B(this,2,a)};_.VK.prototype.te=function(){return _.D(this,_.ef,6)};_.VK.prototype.Bc=function(){return _.C(this,8)};var aUc=[5];
var bUc;bUc={};_.cUc=(bUc[0]="/drive/v2internal",bUc[1]="/drive/v2internal.corp",bUc[2]="/drive/v2internal.scary",bUc[4]="/drive/v2internal.scary",bUc[5]="/drive/v2beta",bUc[6]="/drive/v2.1beta",bUc);
_.dUc=new Set([0,1,2,3]);
_.eUc=new Map([[1,"connected"],[2,"unauthenticated/online"],[3,"offline"]]);
_.fUc=_.B(new _.TK,15,!0);_.gUc=_.UK(new _.TK,!0);_.hUc=_.UK(new _.TK,!1);
_.iUc=new Map([["CacheSize","Number of items currently in the in-memory cache."],["SecondaryFields","List of secondary fields"],["CachedCorpusType","Type of corpus cached (full, partial)."],["InitialChanges","Status of initial catchup changelog requests."],["SdkBackfillEnabled","Whether backfill via Drive SDK is enabled."],["UploadFailureCount","Number of failed uploads."],["UploadSuccessCount","Number of successful uploads."],["UploadTotalCount","Number of initiated uploads."],["InitialViewDataLoaded",
"Whether initial view data was loaded before the initial query."]]);

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy17i");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy178");
_.jUc=new Set([7,4,5,9,6,10,11,12]);

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy17j");

_.w();

}catch(e){_._DumpException(e)}
try{
_.kUc=function(a){for(var b in a)delete a[b]};_.lUc=function(a){a=_.Nf(a);return 0===a.length?_.qha:new _.hg(a,_.oha)};_.mUc=function(a,b){a=_.Ni(a);b=_.Ni(b);return a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]};_.r("sy17o");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.nUc=function(a,b,c){this.blockSize=-1;this.H=a;this.blockSize=c||a.blockSize||16;this.V=Array(this.blockSize);this.O=Array(this.blockSize);a=b;a.length>this.blockSize&&(this.H.update(a),a=this.H.digest(),this.H.reset());for(c=0;c<this.blockSize;c++)b=c<a.length?a[c]:0,this.V[c]=b^92,this.O[c]=b^54;this.H.update(this.O)};_.Gf(_.nUc,_.ERc);_.nUc.prototype.reset=function(){this.H.reset();this.H.update(this.O)};_.nUc.prototype.update=function(a,b){this.H.update(a,b)};
_.nUc.prototype.digest=function(){var a=this.H.digest();this.H.reset();this.H.update(this.V);this.H.update(a);return this.H.digest()};_.oUc=function(a,b){a.reset();a.update(b);return a.digest()};
_.pUc=function(){this.blockSize=-1;this.blockSize=64;this.H=[];this.ha=[];this.ka=[];this.W=[];this.W[0]=128;for(var a=1;a<this.blockSize;++a)this.W[a]=0;this.V=this.O=0;this.reset()};_.Gf(_.pUc,_.ERc);_.pUc.prototype.reset=function(){this.H[0]=1732584193;this.H[1]=4023233417;this.H[2]=2562383102;this.H[3]=271733878;this.H[4]=3285377520;this.V=this.O=0};
var qUc=function(a,b,c){c||(c=0);var d=a.ka;if("string"===typeof b)for(var e=0;16>e;e++)d[e]=b.charCodeAt(c)<<24|b.charCodeAt(c+1)<<16|b.charCodeAt(c+2)<<8|b.charCodeAt(c+3),c+=4;else for(e=0;16>e;e++)d[e]=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4;for(e=16;80>e;e++){var f=d[e-3]^d[e-8]^d[e-14]^d[e-16];d[e]=(f<<1|f>>>31)&4294967295}b=a.H[0];c=a.H[1];var h=a.H[2],k=a.H[3],l=a.H[4];for(e=0;80>e;e++){if(40>e)if(20>e){f=k^c&(h^k);var p=1518500249}else f=c^h^k,p=1859775393;else 60>e?(f=c&h|k&(c|h),p=2400959708):
(f=c^h^k,p=3395469782);f=(b<<5|b>>>27)+f+l+p+d[e]&4294967295;l=k;k=h;h=(c<<30|c>>>2)&4294967295;c=b;b=f}a.H[0]=a.H[0]+b&4294967295;a.H[1]=a.H[1]+c&4294967295;a.H[2]=a.H[2]+h&4294967295;a.H[3]=a.H[3]+k&4294967295;a.H[4]=a.H[4]+l&4294967295};
_.pUc.prototype.update=function(a,b){if(null!=a){void 0===b&&(b=a.length);for(var c=b-this.blockSize,d=0,e=this.ha,f=this.O;d<b;){if(0==f)for(;d<=c;)qUc(this,a,d),d+=this.blockSize;if("string"===typeof a)for(;d<b;){if(e[f]=a.charCodeAt(d),++f,++d,f==this.blockSize){qUc(this,e);f=0;break}}else for(;d<b;)if(e[f]=a[d],++f,++d,f==this.blockSize){qUc(this,e);f=0;break}}this.O=f;this.V+=b}};
_.pUc.prototype.digest=function(){var a=[],b=8*this.V;56>this.O?this.update(this.W,56-this.O):this.update(this.W,this.blockSize-(this.O-56));for(var c=this.blockSize-1;56<=c;c--)this.ha[c]=b&255,b/=256;qUc(this,this.ha);for(c=b=0;5>c;c++)for(var d=24;0<=d;d-=8)a[b]=this.H[c]>>d&255,++b;return a};

_.w();

}catch(e){_._DumpException(e)}
try{
_.WK=function(a,b){return _.B(a,82,b)};_.XK=function(a){return _.B(a,3,!0)};_.rUc=function(a,b){return _.B(a,7,b)};_.r("sy172");
_.sUc=new Map([[1,3],[4,3],[2,3],[3,2]]);
_.tUc=new Map([[6,3],[7,3],[4,2],[8,2]]);
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.YK={e_:"Versions",M6:"Metadata",x5:"Data",WT:"Offline"};_.uUc=new Map([[_.YK.e_,"versionKey"],[_.YK.M6,"k"]]);_.vUc=new Set([1004]);

_.w();

}catch(e){_._DumpException(e)}
try{
var zUc;_.wUc=function(a){var b={};_.Na(a,function(c,d){b[d.toLowerCase()]=c});return b};_.xUc=function(a){return(a=a&&_.wUc(a))&&a["x-guploader-uploadid"]};_.yUc=function(a){return(a=a&&_.wUc(a))&&a["x-google-trace"]};zUc=[6];_.ZK=function(a){_.Q(this,a,-1,zUc,null)};_.O(_.ZK,_.N);_.$K=function(a,b){return _.B(a,14,b)};_.r("sy17q");
var AUc,CUc;
_.BUc=function(a,b,c,d,e,f,h,k,l){l=void 0===l?!1:l;if(200===a||204===a||308===a||206===a)return null;e=AUc(e)||new _.jc;_.B(e,8,!0);k&&(k=_.nj(new _.gj(k),void 0).toString(),_.B(e,19,k));e.DF()||_.B(e,15,a||f);e.getMessage()||_.iq(e,["HTTP status code: "+a,"HTTP status text: "+b,"XHR error code: "+f,"XHR error text: "+h].join(", "));_.C(e,4)||_.jq(e,d);e.mk()||(5===f?_.$K(e,7):0!==a||d?403===a?_.$K(e,22):503===a||429===a?_.$K(e,24):(_.Tj(e,14),_.B(e,10,1),_.B(e,8,!0)):l||_.$K(e,2));e.Sca(_.xUc(c));e.Eca(_.yUc(c));
return e};AUc=function(a){if(!_.Da(a))return null;var b=new _.jc,c=a.error;if(!c)return _.jq(b,JSON.stringify(a)),null;_.B(b,15,c.code);_.iq(b,c.message);a=c.errors&&c.errors[0];if(!a)return b;c=a.reason;var d=CUc[c];d?_.B(b,10,d):c&&!d&&_.B(b,10,2);(a=a.debugInfo)&&_.jq(b,a);return b};
CUc={appliedCategoryLimitExceeded:64,authError:15,backendError:9,badContent:14,badRequest:11,cannotAddParent:63,cannotMoveTrashedItemIntoTeamDrive:45,conflict:8,conversionCorruptedInput:16,conversionInputDoesNotMatchSpecifiedMimeType:17,conversionInputTooLarge:18,conversionInvalidRequest:19,conversionInvalidLanguage:20,conversionMissingCredentials:21,conversionOutputTooLarge:22,conversionQuotaExceeded:23,conversionTimeout:24,conversionTooManyCharts:25,conversionTooManyDrawings:26,conversionTooManyImages:27,
conversionUnsupportedConversionPath:28,conversionUnsupportedLanguage:29,conversionUnsupportedFormat:30,deadlineExceeded:31,expiredMoveValidationToken:66,fileOwnerNotMemberOfTeamDrive:42,fileOwnerNotMemberOfTeamDriveDomain:43,fileOwnerNotMemberOfWriterDomain:47,fileWriterTeamDriveMoveInDisabled:46,forbidden:10,internalError:3,invalid:12,missingCookie:33,notFound:4,quotaExceeded:6,rateLimitExceeded:7,responseTooLarge:5,required:32,uploadBrokenConnection:35,shareOutNotPermittedForContent:50,crossDomainMoveRestriction:52,
teamDriveFileLimitExceeded:40,teamDriveHierarchyTooDeep:49,teamDriveMembershipRequired:48,teamDriveNameRequired:59,teamDriveNameTooLong:44,teamDrivesFileTypeNotSupported:39,teamDrivesFolderMoveInNotSupported:36,teamDrivesFolderMoveOutNotSupported:37,teamDrivesParentLimit:41,teamDrivesShortcutFileNotSupported:38,tooManyFiles:53,tooManySourceIdsForMove:65,tooManyUnmovableFiles:54,transientError:13,userCannotCreateFileForMimeType:51,userRateLimitExceeded:7,richContentLimitExceeded:55,numChildrenLimitExceeded:56,
shortcutLimitExceeded:57,shortcutPerCreatorLimitExceeded:58,simultaneousPreflightLimitExceeded:67,mimeTypeSizeExceeded:60,onlyCriticalWritesAllowed:61,wrappedKeyExceededLimit:62};

_.w();

}catch(e){_._DumpException(e)}
try{
_.DUc=function(a,b){return _.B(a,1,b)};_.EUc=function(a,b){return _.A(a,1,b)};_.FUc=function(a,b){return _.B(a,2,b)};_.GUc=function(a,b){return _.A(a,3,b)};_.r("sy17r");

_.w();

}catch(e){_._DumpException(e)}
try{
_.HUc=function(a,b,c){c&&(a=_.Dg(a));a.length>b&&(a=a.substring(0,b-3)+"...");c&&(a=_.Cg(a));return a};_.IUc=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);128>e?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296==(e&64512)&&d+1<a.length&&56320==(a.charCodeAt(d+1)&64512)?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b};_.r("sy180");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.JUc=function(a,b,c){void 0===c&&(c=a.size);return a.slice?a.slice(b,c):null};

_.w();

}catch(e){_._DumpException(e)}
try{
var KUc,LUc,PUc,TUc,UUc,VUc,mVc,SL,nVc,oVc,vVc,RUc,dWc,QUc,AWc,CWc,EWc,GWc,HWc,IWc,KWc,aXc,bXc,eXc,fXc,gXc,iXc,jXc,lXc,oXc,fVc,sXc,gVc,tXc,uXc,vXc,rM,tM,xXc,zXc,CXc,DXc,EXc,FXc,GXc,HXc,KXc,MXc,NXc,PXc,QXc,eYc,dYc,jYc,kYc,lYc,qYc,tYc,vYc,wYc,CYc,BYc,AYc,yYc,zYc,wVc,KYc,LYc,GYc,MYc,HYc,pVc,NYc,qVc,rVc,sVc,tVc,uVc,OYc,QYc;_.aL=function(a,b,c){var d=new _.jc,e=_.bka(_.aL);_.B(d,20,e);_.PK(d,a);_.OK(d,b?b:2);c&&_.$K(d,c);return d};
_.bL=function(a){var b;a instanceof _.jc?b=new _.kc(null,a):b=_.GK(a)?a:_.n.ErrorEvent&&a instanceof ErrorEvent?a.error instanceof Error?a.error:Error(a.message):"string"===typeof a?Error(a):Error("nb`"+a);b.stack||(b.stack=_.bka(_.bL));return b};_.cL=function(a){throw _.sA(a);};KUc=function(a){return 7===a.mk()||24===a.xp()&&(a=a.DF(),503===a||429===a)?!0:!1};LUc=function(a,b){return b?b+"("+a+")":a};
_.dL=function(a,b,c){var d={},e=[];b&&e.push("kind");a.$zb&&e.push("searchResultSource");a.fields.forEach(function(p){if(!_.MUc.includes(p)){var q=_.G6a.get(p);if(q){var t=_.J6a[p];a.aG&&t&&(q=t);a.Wq&&(a.aG?(p=_.I6a[p])&&(q=p):(p=_.H6a[p])&&(q=p));q.split(",").forEach(function(u){var y=_.gia(u,"/",1);1<y.length?(d[y[0]]||(d[y[0]]=[]),d[y[0]].push(y[1])):e.push(u)})}}});for(var f={},h=_.m(Object.entries(d)),k=h.next();!k.done;f={q5:f.q5},k=h.next()){var l=_.m(k.value);k=l.next().value;l=l.next().value;
f.q5=[];l.forEach(function(p){return function(q){p.q5.push(q)}}(f));"owners"==k&&b&&f.q5.push("kind");e.push(LUc(f.q5.join(","),k))}return LUc(e.join(","),c)};_.NUc=function(a){var b=new _.qp;b.append(_.dL(a,!0));return b.toString()};_.OUc=function(a,b){return a.filter(function(c){return b.includes(c)})};PUc=function(a){a=a.filter(function(b){return!_.G6a.has(b)});if(a.length)throw Error("Dc`"+a.join(", "));};
_.SUc=function(a){if(a){var b=a.getMimeType();b&&_.oF(a,b.toLowerCase());QUc(a,_.ek(a,RUc,58).map(function(c){var d=c.getMimeType();d&&_.B(c,1,d.toLowerCase());return c}))}};TUc=function(a){if(_.Va(a))return"\r\n";var b="";_.Na(a,function(c,d){b+=d+": "+c+"\r\n"});return b};UUc=function(a,b){b&&(_.qj(a,"openDrive",!!_.E(b,2,!1)),_.qj(a,"reason",_.C(b,1)||0),_.qj(a,"syncType",_.C(b,3)||0),_.qj(a,"errorRecovery",!!_.E(b,4,!1)))};
VUc=function(a){a=_.iq(_.$K(_.OK(new _.jc,2),39),"Multiple resource key definitions found for itemId "+a);throw _.sA(a);};
mVc=function(a){if(a instanceof _.eL)return"request access";if(a instanceof _.fL)return"admin migrate to TD";if(a instanceof _.gL)return"authorize app";if(a instanceof _.hL)return"copy item";if(a instanceof _.iL)return"change category links";if(a instanceof _.jL)return"create item";if(a instanceof _.kL)return"create ws";if("undefined"!=typeof _.lL&&a instanceof _.lL)return"delete app";if("undefined"!=typeof _.mL&&a instanceof _.mL)return"delete backup";if(a instanceof _.nL)return"delete item";if("undefined"!=
typeof _.oL&&a instanceof _.oL)return"delete permission";if(a instanceof _.pL)return"delete revision";if(a instanceof _.qL)return"delete TD";if(a instanceof _.SB)return"delete pref";if(a instanceof _.rL)return"delete ws";if(a instanceof _.sL)return"download item";if(a instanceof _.tL||a instanceof _.uL)return"empty trash";if(a instanceof _.yz)return"find by ID";if(a instanceof _.WUc)return"item export start";if("undefined"!=typeof _.vL&&a instanceof _.vL)return"get app";if("undefined"!=typeof _.wL&&
a instanceof _.wL)return"insert app";if("undefined"!=typeof _.xL&&a instanceof _.xL)return"insert permission";if(a instanceof _.IK)return a=a.yd(),_.yL(a)?"quick access item query":_.zL(a)?"people predict item query":_.AL(a)?"drive priority query":"item query";if("undefined"!=typeof _.BL&&a instanceof _.BL)return"list android backup items request";if(a instanceof _.CL){var b="unknown";switch(a.getType()){case 1:b="installed";break;case 2:b="installed w/ app data";break;case 3:b="all installable";
break;case 4:b="installed w/ quota"}return"list apps ["+b+"]"}return"undefined"!=typeof _.XUc&&a instanceof _.XUc?"list backups":a instanceof _.VK?"list changes":a instanceof _.DL?"list permissions":"undefined"!=typeof _.EL&&a instanceof _.EL?"list revisions":a instanceof _.FL?"partial download item":a instanceof _.GL?"people api":a instanceof _.iF?"get published category":"undefined"!=typeof _.HL&&a instanceof _.HL?"get remaining changes":a instanceof _.IL?"remove item":"undefined"!=typeof _.JL&&
a instanceof _.JL?"reparent item":a instanceof _.KL?"restore item":a instanceof _.jF?"list suggested workspace items":a instanceof _.kF?"list suggested workspaces":"undefined"!=typeof _.LL&&a instanceof _.LL?"update app":a instanceof _.ML?"update category metadata":a instanceof _.TK?"update item":a instanceof _.NL?"update revision":a instanceof _.OL?"update TD":a instanceof _.TB?"update pref":a instanceof _.PL?"update ws":a instanceof _.DK?"get account":a instanceof _.nF?"get workspace":a instanceof
_.YUc?"list activity":a instanceof _.ZUc?"list category metadata":a instanceof _.$Uc?"create TD":"undefined"!=typeof _.aVc&&a instanceof _.aVc?"item export cancel":"undefined"!=typeof _.bVc&&a instanceof _.bVc?"item export status":"undefined"!=typeof _.cVc&&a instanceof _.cVc?"generate cse token":"undefined"!=typeof _.dVc&&a instanceof _.dVc?"get largest change ID":a instanceof _.RB?"list prefs":a instanceof _.QL?"multipart upload":a instanceof _.eVc?"list published categories":a instanceof fVc?"init resumable upload":
a instanceof gVc?"resumable upload chunk":a instanceof _.hVc?"resumable upload":a instanceof _.lF?"get TD":"undefined"!=typeof _.iVc&&a instanceof _.iVc?"move TD preflight":a instanceof _.RL?"list TDs":"undefined"!=typeof _.jVc&&a instanceof _.jVc?"get TD stats":a instanceof _.kVc?"test connection":"undefined"!=typeof _.lVc&&a instanceof _.lVc?"list workspaces":"unknown"};SL=function(a,b,c){null!=c&&(Array.isArray(c)?0<c.length&&a.push(b+": "+c.join(", ")):a.push(b+": "+c))};
nVc=function(a){if(a instanceof _.jL||a instanceof _.QL||a instanceof _.hVc||a instanceof fVc||a instanceof gVc)return(new _.TL).Dc(8);throw Error("Ye");};oVc=function(a){if(a instanceof _.TK){var b=_.Uj(_.Tj(a.clone(),1),17);b=_.mk(b,_.fUc)}else b=!1;b||(a instanceof _.TK?(a=_.Uj(_.Tj(a.clone(),1),17),b=_.mk(a,_.gUc)||_.mk(a,_.hUc)):b=!1);return b?!1:!0};_.UL=function(a){return pVc.includes(a.constructor)?oVc(a):!1};
vVc=function(a,b){if(qVc.includes(a.constructor))return!0;if(b){if(_.E(b,54,!1)&&rVc.includes(a.constructor))return!0;var c=_.SK(b);if(c&&!_.E(c,7,!1)&&sVc.includes(a.constructor)&&!_.VL(a)||_.E(b,56,!1)&&_.VL(a)||_.E(b,57,!1)&&tVc.includes(a.constructor)||!(!_.E(b,53,!1)||rVc.includes(a.constructor)||sVc.includes(a.constructor)||_.VL(a)||tVc.includes(a.constructor)||uVc.includes(a.constructor)))return!0}return!1};
_.WL=function(a,b,c,d,e){if(_.E(a,89,!1)){if(c&&c.length&&d){c=b.concat(wVc(d,c));var f=void 0===f?!1:f;a=new Map;b=[];c=_.m(c);for(d=c.next();!d.done;d=c.next()){d=d.value;var h=d.getId();a.has(h)?f&&a.get(h)!==_.C(d,2)&&VUc(h):(a.set(h,_.C(d,2)),b.push(d))}f=b}else f=b;f.length&&(f=_.nz(f),f.length&&(e["X-Goog-Drive-Resource-Keys"]=f))}};_.xVc=function(a){_.Q(this,a,-1,null,null)};_.O(_.xVc,_.N);_.XL=function(a){return _.E(a,2,!1)};_.yVc=function(a){var b=new _.Qk;return _.B(b,1,a)};
_.zVc=function(a,b){return _.B(a,7,b)};_.AVc=function(a,b){return _.B(a,8,b)};_.BVc=function(a,b){return _.B(a,11,b)};_.CVc=function(a,b){return _.B(a,1,b)};_.DVc=function(a,b){return _.B(a,4,b)};_.EVc=function(a,b){return _.B(a,5,b)};_.FVc=function(a,b){return _.B(a,6,b)};_.GVc=function(a,b){return _.B(a,7,b)};_.HVc=function(a,b){return _.B(a,8,b)};_.IVc=function(a,b){return _.B(a,9,b)};_.JVc=function(a,b){return _.B(a,10,b)};_.KVc=function(a,b){return _.B(a,11,b)};
_.LVc=function(a,b){return _.B(a,12,b)};_.MVc=function(a,b){return _.B(a,16,b)};_.NVc=function(a,b){return _.B(a,17,b)};_.OVc=function(a,b){return _.B(a,20,b)};_.PVc=function(a,b){return _.B(a,21,b)};_.QVc=function(a,b){return _.B(a,31,b)};_.RVc=function(a,b){return _.B(a,32,b)};_.SVc=function(a,b){return _.B(a,33,b)};_.TVc=function(a,b){return _.B(a,42,b)};_.UVc=function(a,b){return _.B(a,43,b)};_.VVc=function(a,b){return _.B(a,46,b)};_.WVc=function(a,b){return _.B(a,47,b)};
_.XVc=function(a,b){return _.B(a,48,b)};_.YL=function(a){_.Q(this,a,-1,null,null)};_.O(_.YL,_.N);_.YVc=function(a){_.Q(this,a,-1,null,null)};_.O(_.YVc,_.N);_.ZVc=function(a,b){return _.B(a,1,b)};_.$Vc=function(a,b){return _.B(a,2,b)};RUc=function(a){_.Q(this,a,-1,null,null)};_.O(RUc,_.N);RUc.prototype.getMimeType=function(){return _.C(this,1)};RUc.prototype.getUrl=function(){return _.C(this,2)};_.ZL=function(a){_.Q(this,a,-1,null,null)};_.O(_.ZL,_.N);_.ZL.prototype.Me=function(){return _.C(this,2)};
_.ZL.prototype.mh=function(a){return _.B(this,2,a)};_.ZL.prototype.jh=function(a){return _.B(this,3,a)};_.aWc=function(a,b){return _.B(a,1,b)};_.bWc=function(a,b){return _.Cb(a,2,b)};_.cWc=function(a,b){return _.Cb(a,3,b)};dWc=[2];_.$L=function(a){_.Q(this,a,-1,dWc,null)};_.O(_.$L,_.N);_.$L.prototype.Bg=function(){return _.C(this,1)};_.$L.prototype.tm=function(a){return _.B(this,1,a)};_.$L.prototype.rva=function(a,b){return _.ck(this,2,a,b)};_.aM=function(a){_.Q(this,a,-1,null,null)};_.O(_.aM,_.N);
_.aM.prototype.Me=function(){return _.C(this,1)};_.aM.prototype.mh=function(a){return _.B(this,1,a)};_.aM.prototype.jh=function(a){return _.B(this,2,a)};_.bM=function(a,b){return _.B(a,2,b||[])};_.eWc=function(a,b){_.B(a,8,b)};_.fWc=function(a,b){return _.Cb(a,15,b)};_.gWc=function(a,b){return _.A(a,17,b)};_.hWc=function(a,b){return _.B(a,19,b)};_.iWc=function(a,b){_.B(a,26,b)};_.jWc=function(a,b){_.B(a,31,b)};_.kWc=function(a,b){_.B(a,34,b)};_.lWc=function(a,b){return _.B(a,44,b)};
_.mWc=function(a,b){return _.B(a,52,b)};QUc=function(a,b){_.Cb(a,58,b)};_.nWc=function(a,b){return _.B(a,72,b)};_.cM=function(a,b){return _.A(a,84,b)};_.oWc=function(a,b){_.A(a,85,b)};_.pWc=function(a,b){return _.B(a,92,b)};_.qWc=function(a,b){return _.B(a,93,b)};_.dM=function(a){_.Q(this,a,-1,null,null)};_.O(_.dM,_.N);_.dM.prototype.Za=function(){return _.C(this,1)};_.dM.prototype.Jb=function(a){return _.B(this,1,a)};_.dM.prototype.vi=function(){return _.Tj(this,1)};
_.dM.prototype.hh=function(){return _.S(this,1)};var rWc=[3],sWc=function(a){_.Q(this,a,-1,rWc,null)};_.O(sWc,_.N);sWc.prototype.Qi=function(){var a=_.C(this,3);this.Pa||(this.Pa={});if(!this.Pa[3]){for(var b=0;b<a.length;b++)a[b]=!!a[b];this.Pa[3]=!0}_.gb(this)&&_.hb(a);return a};var tWc=[3],uWc=function(a){_.Q(this,a,-1,tWc,null)};_.O(uWc,_.N);uWc.prototype.Qi=function(){return _.Id(this,3)};var vWc=[3],wWc=function(a){_.Q(this,a,-1,vWc,null)};_.O(wWc,_.N);
wWc.prototype.Qi=function(){return _.Id(this,3)};_.eM=function(a){_.Q(this,a,-1,null,null)};_.O(_.eM,_.N);_.eM.prototype.Za=function(){return _.C(this,1)};_.eM.prototype.Jb=function(a){return _.B(this,1,a)};_.eM.prototype.vi=function(){return _.Tj(this,1)};_.eM.prototype.hh=function(){return _.S(this,1)};_.fM=function(a){return _.ek(a,_.Xe,6)};_.gM=function(a){return _.ek(a,_.Vc,12)};_.hM=function(a){return _.Oj(a,45,1)};_.yL=function(a){return _.E(a,47,!1)};_.zL=function(a){return _.E(a,49,!1)};
_.AL=function(a){return _.E(a,52,!1)};_.iM=function(a){return _.H(a,2,"")};_.xWc=function(a,b){return _.B(a,27,b||[])};_.jM=function(a){return _.Oj(a,39,0)};_.kM=function(a){return _.E(a,40,!1)};_.yWc=function(a){return _.vt.prototype.zY.call(a,!0)+"T"+_.Hg(a.getHours(),2)+":"+_.Hg(a.getMinutes(),2)+":"+_.Hg(a.getSeconds(),2)+a.l$()};_.zWc=function(a,b){return _.B(a,18,b||[])};AWc=function(a,b){return _.pSc(a,"getAllKeys","getting all keys index "+a.getName(),b,void 0)};
_.BWc=function(a,b){try{a.H.deleteObjectStore(b)}catch(c){throw _.AK(c,"deleting object store "+b);}};CWc=function(){var a=new _.tTc;a.O=12E4;a.ma=!0;return a};_.DWc=function(a){_.Q(this,a,-1,null,null)};_.O(_.DWc,_.N);EWc=[3,4,10,18,19,28];_.jL=function(a){_.Q(this,a,-1,EWc,null)};_.O(_.jL,_.N);_.g=_.jL.prototype;_.g.getMimeType=function(){return _.C(this,1)};_.g.getTitle=function(){return _.C(this,2)};_.g.setTitle=function(a){return _.B(this,2,a)};_.g.aE=function(a,b){_.ck(this,3,a,b)};
_.g.te=function(){return _.D(this,_.ef,7)};_.g.Zi=function(){return _.C(this,9)};_.g.Bc=function(){return _.C(this,14)};_.g.iz=function(){return _.D(this,_.DWc,15)};_.g.n1=function(){return _.C(this,21)};_.g.Kc=function(){return _.C(this,23)};_.lM=function(a,b){return _.B(a,1,b)};_.mM=function(a,b){return _.B(a,3,b||[])};_.FWc=function(a,b){return _.B(a,12,b)};_.nL=function(a){_.Q(this,a,-1,null,null)};_.O(_.nL,_.N);_.nL.prototype.getId=function(){return _.C(this,1)};
_.nL.prototype.Pb=function(a){return _.B(this,1,a)};_.nL.prototype.te=function(){return _.D(this,_.ef,3)};_.qL=function(a){_.Q(this,a,-1,null,null)};_.O(_.qL,_.N);_.qL.prototype.getId=function(){return _.C(this,1)};_.qL.prototype.Pb=function(a){return _.B(this,1,a)};_.qL.prototype.te=function(){return _.D(this,_.ef,2)};GWc=[7,8];_.OL=function(a){_.Q(this,a,-1,GWc,null)};_.O(_.OL,_.N);_.g=_.OL.prototype;_.g.getId=function(){return _.C(this,1)};_.g.Pb=function(a){return _.B(this,1,a)};
_.g.getTitle=function(){return _.C(this,2)};_.g.setTitle=function(a){return _.B(this,2,a)};_.g.te=function(){return _.D(this,_.ef,4)};_.g.zm=function(){return _.L(this,15)};_.RL=function(a){_.Q(this,a,-1,null,null)};_.O(_.RL,_.N);_.RL.prototype.getOptions=function(){return _.D(this,_.yTc,1)};_.RL.prototype.Ln=function(){return _.C(this,2)};_.RL.prototype.yd=function(){return _.D(this,_.vK,3)};HWc=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};IWc=null;
_.JWc=function(a){if(_.ima)return _.n.atob(a);var b="";_.kma(a,function(c){b+=String.fromCharCode(c)});return b};KWc=function(){this.O=0;this.H=[]};_.g=KWc.prototype;_.g.add=function(a){var b=this.H[this.O];this.H[this.O]=a;this.O=(this.O+1)%40;return b};_.g.get=function(a){a=LWc(this,a);return this.H[a]};_.g.set=function(a,b){a=LWc(this,a);this.H[a]=b};_.g.lc=function(){return this.H.length};_.g.vc=function(){return 0==this.H.length};_.g.clear=function(){this.O=this.H.length=0};
_.g.yg=function(){var a=this.lc(),b=this.lc(),c=[];for(a=this.lc()-a;a<b;a++)c.push(this.get(a));return c};_.g.rf=function(){for(var a=[],b=this.lc(),c=0;c<b;c++)a[c]=c;return a};_.g.He=function(a){return a<this.lc()};_.g.rq=function(a){for(var b=this.lc(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};var LWc=function(a,b){if(b>=a.H.length)throw Error("da");return 40>a.H.length?b:(a.O+Number(b))%40},MWc=function(a){_.Q(this,a,-1,null,null)};_.O(MWc,_.N);_.NWc=function(a){_.Q(this,a,-1,null,null)};
_.O(_.NWc,_.N);_.NWc.prototype.jf=function(){return _.C(this,1)};_.NWc.prototype.Ti=function(a){return _.B(this,1,a)};_.NWc.prototype.Cb=function(){return _.C(this,4)};_.NWc.prototype.Dc=function(a){return _.B(this,4,a)};var OWc=function(a){_.Q(this,a,-1,null,null)};_.O(OWc,_.N);OWc.prototype.Nu=function(){return _.C(this,5)};var PWc=function(a,b){_.B(a,6,b)},QWc=function(a){_.Q(this,a,-1,null,null)};_.O(QWc,_.N);_.g=QWc.prototype;_.g.Ygb=function(a){_.B(this,1,a)};
_.g.bNb=function(a){_.B(this,2,a)};_.g.Ox=function(){return _.L(this,3)};_.g.Zgb=function(a){_.B(this,3,a)};_.g.JMb=function(a){_.B(this,4,a)};var RWc=function(a){_.Q(this,a,-1,null,null)};_.O(RWc,_.N);RWc.prototype.Ox=function(){return _.L(this,2)};var SWc=function(a,b){return _.B(a,2,b)},TWc=function(a,b){_.B(a,3,b)};RWc.prototype.XA=function(){return _.C(this,6)};var UWc=function(a,b){return _.B(a,8,b)},VWc=function(a){_.Q(this,a,-1,null,null)};_.O(VWc,_.N);
var WWc=function(a){_.Q(this,a,-1,null,null)};_.O(WWc,_.N);WWc.prototype.Ox=function(){return _.L(this,1)};WWc.prototype.Nu=function(){return _.C(this,5)};WWc.prototype.Bm=function(){return _.C(this,6)};WWc.prototype.Zs=function(a){return _.B(this,6,a)};var XWc=function(a){_.Q(this,a,-1,null,null)};_.O(XWc,_.N);var YWc=function(a,b){_.B(a,4,b)},ZWc=function(a){_.Q(this,a,-1,null,null)};_.O(ZWc,_.N);_.g=ZWc.prototype;_.g.yd=function(){return _.D(this,_.NWc,1)};
_.g.getState=function(){return _.D(this,OWc,2)};_.g.Od=function(a){return _.A(this,2,a)};_.g.Wr=function(){return _.S(this,2)};_.g.wE=function(){return _.D(this,WWc,16)};var $Wc=function(a){_.Q(this,a,-1,null,null)};_.O($Wc,_.N);$Wc.prototype.getEnvironment=function(){return _.C(this,2)};$Wc.prototype.setEnvironment=function(a){return _.B(this,2,a)};_.MUc=[42,1005,20,50,18,1003,1002];aXc=[73,71];_.nM=function(a){_.Q(this,a,-1,null,null)};_.O(_.nM,_.N);
_.nM.prototype.getId=function(){return _.C(this,1)};_.nM.prototype.Pb=function(a){return _.B(this,1,a)};_.nM.prototype.getMimeType=function(){return _.C(this,2)};_.nM.prototype.wF=function(){return _.C(this,8)};bXc=[22];_.TL=function(a){_.Q(this,a,-1,bXc,null)};_.O(_.TL,_.N);_.g=_.TL.prototype;_.g.Cb=function(){return _.C(this,1)};_.g.Dc=function(a){return _.B(this,1,a)};_.g.getItem=function(){return _.D(this,_.hl,2)};_.g.setItem=function(a){return _.A(this,2,a)};
_.g.Uj=function(){return _.C(this,3)};_.g.Kc=function(){return _.C(this,5)};_.cXc=function(a,b){return _.B(a,5,b)};_.g=_.TL.prototype;_.g.rJ=function(){return _.C(this,7)};_.g.Sca=function(a){return _.B(this,7,a)};_.g.ufa=function(a){_.B(this,9,a)};_.g.uMa=function(a){_.B(this,10,a)};_.g.AM=function(){return _.C(this,16)};_.g.Eca=function(a){return _.B(this,16,a)};var dXc=function(a){_.oi.call(this,a);this.connectionState=_.$rb.get(a)};_.O(dXc,_.oi);
eXc=function(a){var b=new _.$h;a.listen("loadend",_.rb(function(c,d){var e=d.getResult(),f=d.getError();null==e||f?c.Kd(f):c.callback(e);d.dispose()},b,a));return b};_.eL=function(a){_.Q(this,a,-1,null,null)};_.O(_.eL,_.N);_.eL.prototype.Kc=function(){return _.C(this,1)};_.fL=function(a){_.Q(this,a,-1,null,null)};_.O(_.fL,_.N);_.fL.prototype.getId=function(){return _.C(this,1)};_.fL.prototype.Pb=function(a){return _.B(this,1,a)};_.fL.prototype.Ck=function(){return _.C(this,2)};
_.gL=function(a){_.Q(this,a,-1,null,null)};_.O(_.gL,_.N);_.gL.prototype.qh=function(){return _.C(this,1)};_.gL.prototype.Kc=function(){return _.C(this,2)};_.gL.prototype.te=function(){return _.D(this,_.ef,4)};fXc=[3,7];_.hL=function(a){_.Q(this,a,-1,fXc,null)};_.O(_.hL,_.N);_.g=_.hL.prototype;_.g.getId=function(){return _.C(this,1)};_.g.Pb=function(a){return _.B(this,1,a)};_.g.getTitle=function(){return _.C(this,2)};_.g.setTitle=function(a){return _.B(this,2,a)};
_.g.aE=function(a,b){_.ck(this,3,a,b)};_.g.te=function(){return _.D(this,_.ef,5)};_.kL=function(a){_.Q(this,a,-1,null,null)};_.O(_.kL,_.N);_.kL.prototype.getTitle=function(){return _.C(this,1)};_.kL.prototype.setTitle=function(a){return _.B(this,1,a)};_.kL.prototype.te=function(){return _.D(this,_.ef,2)};_.pL=function(a){_.Q(this,a,-1,null,null)};_.O(_.pL,_.N);_.pL.prototype.Kc=function(){return _.C(this,1)};_.pL.prototype.te=function(){return _.D(this,_.ef,3)};
_.rL=function(a){_.Q(this,a,-1,null,null)};_.O(_.rL,_.N);_.rL.prototype.getId=function(){return _.C(this,1)};_.rL.prototype.Pb=function(a){return _.B(this,1,a)};_.rL.prototype.te=function(){return _.D(this,_.ef,3)};_.tL=function(a){_.Q(this,a,-1,null,null)};_.O(_.tL,_.N);_.tL.prototype.te=function(){return _.D(this,_.ef,1)};_.IL=function(a){_.Q(this,a,-1,null,null)};_.O(_.IL,_.N);_.g=_.IL.prototype;_.g.getId=function(){return _.C(this,1)};_.g.Pb=function(a){return _.B(this,1,a)};
_.g.getParent=function(){return _.C(this,2)};_.g.Dg=function(a){return _.B(this,2,a)};_.g.te=function(){return _.D(this,_.ef,3)};_.KL=function(a){_.Q(this,a,-1,null,null)};_.O(_.KL,_.N);_.g=_.KL.prototype;_.g.getId=function(){return _.C(this,1)};_.g.Pb=function(a){return _.B(this,1,a)};_.g.getParent=function(){return _.C(this,2)};_.g.Dg=function(a){return _.B(this,2,a)};_.g.te=function(){return _.D(this,_.ef,3)};_.NL=function(a){_.Q(this,a,-1,null,null)};_.O(_.NL,_.N);
_.NL.prototype.Kc=function(){return _.C(this,1)};_.NL.prototype.te=function(){return _.D(this,_.ef,4)};_.PL=function(a){_.Q(this,a,-1,null,null)};_.O(_.PL,_.N);_.g=_.PL.prototype;_.g.getId=function(){return _.C(this,1)};_.g.Pb=function(a){return _.B(this,1,a)};_.g.getTitle=function(){return _.C(this,2)};_.g.setTitle=function(a){return _.B(this,2,a)};_.g.getState=function(){return _.C(this,3)};_.g.Od=function(a){return _.B(this,3,a)};_.g.Wr=function(){return _.S(this,3)};
_.g.te=function(){return _.D(this,_.ef,5)};gXc=[2,3];_.iL=function(a){_.Q(this,a,-1,gXc,null)};_.O(_.iL,_.N);_.iL.prototype.Bc=function(){return _.C(this,1)};_.iL.prototype.te=function(){return _.D(this,_.ef,4)};_.hXc={1:"default",2:"teamDrive",3:"default,allTeamDrives"};iXc=[3,4];_.CL=function(a){_.Q(this,a,-1,iXc,null)};_.O(_.CL,_.N);_.CL.prototype.getType=function(){return _.C(this,1)};_.CL.prototype.te=function(){return _.D(this,_.ef,2)};jXc=[1];_.GL=function(a){_.Q(this,a,-1,jXc,null)};
_.O(_.GL,_.N);_.GL.prototype.Am=function(){return _.Id(this,1)};_.kXc=function(a){_.Q(this,a,-1,null,null)};_.O(_.kXc,_.N);_.g=_.kXc.prototype;_.g.getKey=function(){return _.C(this,1)};_.g.Vr=function(){return _.S(this,1)};_.g.Za=function(){return _.C(this,2)};_.g.Jb=function(a){return _.B(this,2,a)};_.g.vi=function(){return _.Tj(this,2)};_.g.hh=function(){return _.S(this,2)};_.g.Bg=function(){return _.C(this,3)};_.g.tm=function(a){return _.B(this,3,a)};_.g.getType=function(){return _.C(this,4)};
lXc=[1];_.mXc=function(a){_.Q(this,a,-1,lXc,null)};_.O(_.mXc,_.N);_.nXc=function(){var a=void 0===a?1E3:a;this.O=new _.cm;this.H=new _.cm;this.startTime=Date.now();this.V=!1;this.W=Math.ceil(a/2);this.ha=Math.floor(a/2)};_.pXc=function(a){var b=a.O.yg();a.V&&b.push(oXc("...","...","...","..."));_.wa(b,a.H.yg());return b};_.qXc=function(a){var b=[];a=_.pXc(a);for(var c=0;c<a.length;c++){var d=a[c];b.push(d.totalTime+"\t|\t"+d.level+"\t|\t"+d.logName+"\t|\t"+d.message)}return b.join("\n")};
_.nXc.prototype.info=function(a,b){_.oM(this,a,b,"info")};_.nXc.prototype.config=function(a,b){_.oM(this,a,b,"config")};_.nXc.prototype.log=function(a,b,c){if(!IWc){IWc={};for(var d=0,e;e=_.gka[d];d++)IWc[e.value]=e,IWc[e.name]=e}_.oM(this,a,b,c)};_.oM=function(a,b,c,d){a.H.lc()>=a.ha&&(a.V=!0,_.dm(a.H));var e=Date.now()-a.startTime;b=oXc(b,c,d,1E3<e?(e/1E3).toFixed(1)+"s":e+"ms");a.O.lc()<a.W?a.O.enqueue(b):a.H.enqueue(b)};
oXc=function(a,b,c,d){var e={};return e.logName=a,e.message=b,e.level=c,e.totalTime=d,e};_.YUc=function(a,b,c){this.request=a;this.pageSize=b;this.pageToken=c};_.$Uc=function(a){this.request=a;this.requestId=_.Kg()};_.rXc=function(a,b,c,d,e){this.id=a;this.jwt=b;this.currentKaclsId=c;this.currentKaclsName=void 0===d?"":d;this.customerId=void 0===e?"":e};_.QL=function(a,b,c,d){this.request=a;this.file=b;this.RP=void 0===c?null:c;this.metadata=d};
_.hVc=function(a,b,c,d){this.request=a;this.file=b;this.RP=void 0===c?null:c;this.metadata=d};fVc=function(a,b){this.request=a;this.metadata=b};sXc=function(a,b,c){this.O=a;this.H=b;this.V=c};gVc=function(a,b,c,d,e,f,h){this.W=a;this.blob=b;this.H=c;this.O=d;this.V=e;this.contentType=f;this.revisionId=h};_.kVc=function(){this.H=_.ff(new _.ef,312)};tXc=function(){};_.ZUc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};_.eVc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};
uXc=function(a,b){this.H=a;this.O=b};vXc=function(a){_.oi.call(this,"Ab");this.H=a};_.O(vXc,_.oi);vXc.prototype.Ye=function(){return this.H};_.pM=function(a){a.supportsTeamDrives=!0};_.wXc=function(a){this.O=new Set;this.H=[].concat(_.jd(_.Id(a,27)));this.initialize(a)};
_.wXc.prototype.initialize=function(a){var b=_.OUc(this.H,_.Id(a,28));if(0<b.length)throw Error("Je`"+b.join(","));this.H.push(21);this.H.push(70);this.H.push(83);this.H.push(87);_.BK(_.CK(a))||(this.H.push(45),this.H.push(25),this.H.push(35),this.H.push(96),this.H.push(1004),this.H.push(28),this.H.push(189),this.H.push(190));_.Fa(this.H);this.H.sort();PUc(this.H)};_.qM=function(a){return[].concat(_.jd(a.H))};rM=function(a){return"'"+a.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"};
_.sM=function(a,b,c){0!==b.length&&(a.mI.length&&a.append(" "+(c||"and")+" "),a.append(b))};tM=function(a,b,c,d){if(c){var e=[];(void 0===d?0:d)&&e.push("not");e.push(rM(c));e.push("in");e.push(b);_.sM(a,e.join(" "))}};_.uM=function(a,b,c,d){d=void 0===d?"and":d;if(null!=c){var e=[];e.push(b);e.push("=");e.push((!!c).toString());_.sM(a,e.join(" "),d)}};xXc=function(a,b,c){if(b.length){var d=[];d.push(c?"not (":"(");d.push(b.join(" or "));d.push(")");_.sM(a,d.join(""))}};
_.yXc=function(a){var b=new _.ETc;b.setTime(a);return b};zXc=function(a,b){b=_.Id(b,33)[0];if(null!=b){var c=[];c.push("teamDriveId");c.push("=");c.push(rM(b));_.sM(a,c.join(" "))}};_.AXc=function(a){a=_.ek(a,_.eM,25);if(null==a||0==a.length)return"";for(var b=[],c=0;c<a.length;c++)b.push(a[c].Za());return b.join(",")};_.BXc=function(a){a=a.ZA();return null==a||0==a.length?"":a.map(function(b){b=_.C(b,1);if(0==b)throw Error("Ke");return _.sRc[b]}).join(",")};
CXc=function(a,b){if(a.length){var c=new _.qp;a=_.m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=[];e.push(b?"shortcutDetails.targetMimeType":"mimeType");e.push("contains");e.push(rM(d.Za()));_.sM(c,e.join(" "),"or")}return c.toString()}return""};DXc=function(a,b,c){if(a.length){var d=[];b&&d.push("not");d.push(c?"shortcutDetails.targetMimeType":"mimeType");d.push("in");a=a.map(function(e){return rM(e.Za())});d.push(a.join(", "));return d.join(" ")}return""};
EXc=function(a){if(_.L(a,2))return"any";switch(a.Za()){case 0:return"mentions";case 1:return"suggestions";case 2:return"todos";default:return""}};FXc=function(a){switch(a){case 1:return"<=";case 2:return"<";case 3:return"=";case 4:return">";case 5:return">=";default:return""}};GXc=function(a,b,c){if(null!=_.C(c,2)){var d=FXc(_.C(c,1));c=rM(_.yWc(_.yXc(_.C(c,2)||0)));_.sM(a,[b,d,c].join(" "))}};
HXc=function(a){switch(a){case 1:return"anyoneCanFind";case 2:return"anyoneWithLink";case 3:return"domainCanFind";case 4:return"domainWithLink";case 5:return"limited"}return""};
_.IXc=function(a){for(var b=new _.qp,c=_.ek(a,_.vl,4),d=0;d<c.length;d++){var e=c[d],f=e.Za();if(f){var h=_.C(e,1),k=_.E(e,3,!1),l=[];k&&1==h&&l.push("not");l.push("title");l.push(1==h?"contains":k?"!=":"=");l.push(rM(f));_.sM(b,l.join(" "))}}for(var p=_.ek(a,_.ul,5),q=0;q<p.length;q++){var t=p[q],u=t.Za();if(u){var y=[];_.E(t,2,!1)&&y.push("not");y.push("fullText");y.push("contains");y.push(rM(u));_.sM(b,y.join(" "))}}var z=_.fM(a);if(z&&0!=z.length){for(var F=[],G=[],I=[],M=[],R=[],Z=[],fa=0;fa<
z.length;fa++){var ra=z[fa];ra.Za()&&(1===_.Oj(ra,3,0)?_.L(ra,4)?G.push(ra):F.push(ra):_.L(ra,4)?_.E(ra,2,!1)?Z.push(ra):R.push(ra):_.E(ra,2,!1)?M.push(ra):I.push(ra))}var Ba=CXc(F,!1),za=CXc(G,!0),Aa=DXc(I,!1,!1),La=DXc(M,!0,!1),Ca=DXc(R,!1,!0),Lb=DXc(Z,!0,!0),uc=new _.qp;if(Aa||Ca||Ba||za)_.sM(uc,Aa,"or"),_.sM(uc,Ca,"or"),_.sM(uc,Ba,"or"),_.sM(uc,za,"or");uc.mI.length&&_.sM(b,"("+uc.toString()+")","and");var fc=new _.qp;if(La||Lb)_.sM(fc,La,"and"),_.sM(fc,Lb,"and");fc.mI.length&&_.sM(b,"("+fc.toString()+
")","and")}for(var gd=_.ek(a,_.sl,7),Ed=0;Ed<gd.length;Ed++)GXc(b,"modifiedDate",gd[Ed]);for(var Zb=_.ek(a,_.sl,8),Lc=0;Lc<Zb.length;Lc++)GXc(b,"lastViewedByMeDate",Zb[Lc]);_.uM(b,"trashed",a.Nh());_.uM(b,"explicitlyTrashed",_.L(a,17));_.uM(b,"starred",_.L(a,10));_.uM(b,"hidden",a.zm());for(var md=_.gM(a),gf=0;gf<md.length;gf++){var yc=md[gf];tM(b,"parents",yc.Za(),_.E(yc,2,!1))}for(var ub=_.ek(a,_.Ve,13),Vg=0;Vg<ub.length;Vg++){var ph=ub[Vg];tM(b,"owners",ph.Za(),_.E(ph,2,!1))}for(var $d=_.ek(a,
_.Ve,14),qg=0;qg<$d.length;qg++){var Bj=$d[qg];tM(b,"writers",Bj.Za(),_.E(Bj,2,!1))}for(var hj=_.ek(a,_.Ve,15),Gi=0;Gi<hj.length;Gi++){var Nn=hj[Gi];tM(b,"readers",Nn.Za(),_.E(Nn,2,!1))}_.L(a,16)&&_.sM(b,"sharedWithMe");_.uM(b,"unparented",_.L(a,34));for(var of=_.ek(a,_.dM,35)||[],Ig=_.m(of),qh=Ig.next();!qh.done;qh=Ig.next())tM(b,"ancestors",qh.value.Za(),!1);for(var xk=_.ek(a,_.dM,38)||[],rh=_.m(xk),wi=rh.next();!wi.done;wi=rh.next())tM(b,"descendants",wi.value.Za(),!1);for(var yk=_.ek(a,_.tl,37)||
[],sh=_.m(yk),Th=sh.next();!Th.done;Th=sh.next())tM(b,"folderFeatures",Th.value.Za(),!1);for(var eg=_.Id(a,39),en=_.m(eg),Ff=en.next();!Ff.done;Ff=en.next()){var Vj=Ff.value,Xk=[];Xk.push("templateData.description");Xk.push("contains");Xk.push(rM(Vj));_.sM(b,Xk.join(" "))}for(var Lj=_.Id(a,40),zk=0;zk<Lj.length;zk++){var Wi=[];0==zk&&Wi.push("(");Wi.push(rM(Lj[zk]));Wi.push("in");Wi.push("templateData.categories");zk==Lj.length-1&&Wi.push(")");_.sM(b,Wi.join(" "),0==zk?"and":"or")}var th=_.C(a,41);
if(null!=th){var uh=[];uh.push("templateData.galleryState");uh.push("=");uh.push(rM(_.GTc[th]||""));_.sM(b,uh.join(" "))}var Wg=_.C(a,42);if(null!=Wg){var Hh=[];Hh.push("visibility");Hh.push("=");Hh.push(rM(HXc(Wg)));_.sM(b,Hh.join(" "))}for(var gh=_.ek(a,_.pl,44),Xi=0;Xi<gh.length;++Xi){var Ih=gh[Xi];tM(b,"actionItems",EXc(Ih),_.E(Ih,3,!1))}if(_.S(a,50)){var ki=[];ki.push("pairedDocType");var Ml=_.E(a,50,!1)?"!=":"=";ki.push(Ml);ki.push(rM("NONE"));_.sM(b,ki.join(" "))}tM(b,"workspaceIds",a.Cp(),
!1);for(var Yk=_.ek(a,_.ql,57),Ak=0;Ak<Yk.length;Ak++){var pf=[];0==Ak&&pf.push("(");pf.push(rM(Yk[Ak].Za()));pf.push("in");pf.push("approvals");Ak==Yk.length-1&&pf.push(")");_.sM(b,pf.join(" "),0==Ak?"and":"or")}if(_.S(a,58)){var vh=a.yq(),hc=vh.Za(),Uh=_.E(vh,2,!1);if(hc){var ij=[];Uh&&ij.push("not");ij.push("creator");ij.push("=");ij.push(rM(hc));_.sM(b,ij.join(" "))}}var se=_.D(a,_.yoa,59);if(se)for(var li=_.m(_.ek(se,_.voa,1)),vf=li.next();!vf.done;vf=li.next()){var Ao=vf.value;tM(b,"categoryMetadata",
Ao.Qm());for(var hm=_.m(_.ek(Ao,_.toa,2)),Hi=hm.next();!Hi.done;Hi=hm.next()){var Be=Hi.value,jj=_.C(Be,1),fn=_.Kj(Be,_.rl[0]);if(10==fn){_.D(Be,_.moa,10);var ik=_.L(Be,15);(void 0===ik?0:ik)?_.sM(b,jj+" is null"):_.sM(b,"not ("+jj+" is null)")}else{var Wf=new _.qp,ke=void 0;switch(fn){case 3:ke=_.D(Be,sWc,3);for(var Ii=_.m(ke.Qi()),Ye=Ii.next();!Ye.done;Ye=Ii.next())_.uM(Wf,jj,Ye.value,"or");break;case 14:for(var Em=ke=_.D(Be,_.foa,14),jk=new Map([[1,"="],[2,">"],[3,"<"]]),Mj=_.m(Em.Qi()),wf=Mj.next();!wf.done;wf=
Mj.next()){var gn=wf.value,hn=jk.get(_.C(Em,2));if(!hn)throw Error("Le");var jn=[jj,hn,rM(gn.getYear()+"-"+gn.getMonth()+"-"+gn.getDay())];_.sM(Wf,jn.join(" "),"or")}break;case 8:for(var Gp=ke=_.D(Be,_.loa,8),Pl=new Map([[1,"="],[2,">"],[3,"<"]]),pi=_.m(Gp.Qi()),Jk=pi.next();!Jk.done;Jk=pi.next()){var Kk=Jk.value,To=Pl.get(_.C(Gp,2));if(!To)throw Error("Le");_.sM(Wf,[jj,To,Kk].join(" "),"or")}break;case 9:for(var um=ke=_.D(Be,uWc,9),tn=new Map([[1,"in"]]),Uo=_.m(um.Qi()),Hp=Uo.next();!Hp.done;Hp=
Uo.next()){var tR=Hp.value,TM=tn.get(_.C(um,2));if(!TM)throw Error("Le");_.sM(Wf,[tR,TM,jj].join(" "),"or")}break;case 6:for(var EI=ke=_.D(Be,_.qoa,6),nxa=new Map([[1,"="]]),oxa=_.m(EI.Qi()),Aga=oxa.next();!Aga.done;Aga=oxa.next()){var Bga=Aga.value,Cga=nxa.get(_.C(EI,2));if(!Cga)throw Error("Le");_.sM(Wf,[jj,Cga,rM(Bga)].join(" "),"or")}break;case 7:for(var c6=ke=_.D(Be,_.ooa,7),vxb=new Map([[1,"in"]]),wxb=_.m(c6.Qi()),pxa=wxb.next();!pxa.done;pxa=wxb.next()){var xxb=pxa.value,yxb=vxb.get(_.C(c6,
2));if(!yxb)throw Error("Le");_.sM(Wf,[rM(xxb),yxb,jj].join(" "),"or")}break;case 4:for(var zxb=ke=_.D(Be,_.soa,4),FYa=new Map([[1,"="],[2,"contains"],[3,"starts with"]]),GYa=_.m(zxb.Qi()),Dga=GYa.next();!Dga.done;Dga=GYa.next()){var Axb=Dga.value,Bxb=FYa.get(_.C(zxb,2));if(!Bxb)throw Error("Le");_.sM(Wf,[jj,Bxb,rM(Axb)].join(" "),"or")}break;case 5:for(var HYa=ke=_.D(Be,wWc,5),Cxb=new Map([[1,"in"]]),IYa=_.m(HYa.Qi()),Ega=IYa.next();!Ega.done;Ega=IYa.next()){var Dxb=Ega.value,Exb=Cxb.get(_.C(HYa,
2));if(!Exb)throw Error("Le");_.sM(Wf,[rM(Dxb),Exb,jj].join(" "),"or")}break;case 12:for(var Fxb=ke=_.D(Be,_.joa,12),hrc=new Map([[1,"="]]),Tx=_.m(Fxb.Qi()),qxa=Tx.next();!qxa.done;qxa=Tx.next()){var JYa=qxa.value,KYa=hrc.get(_.C(Fxb,2));if(!KYa)throw Error("Le");_.sM(Wf,[jj,KYa,rM(JYa)].join(" "),"or")}break;case 11:for(var Gxb=ke=_.D(Be,_.hoa,11),UM=new Map([[1,"in"]]),Hxb=_.m(Gxb.Qi()),LYa=Hxb.next();!LYa.done;LYa=Hxb.next()){var irc=LYa.value,Ixb=UM.get(_.C(Gxb,2));if(!Ixb)throw Error("Le");_.sM(Wf,
[rM(irc),Ixb,jj].join(" "),"or")}}_.L(Be,15)?_.sM(b,"not ("+Wf+")"):_.sM(b,1<ke.Qi().length?"("+Wf+")":""+Wf)}}}null!=_.L(a,60)&&_.uM(b,"linkShareMetadata.securityUpdateEligible",_.L(a,60));var Jxb=_.L(a,65);if(null!=Jxb){var rxa=[];rxa.push("clientEncryptionDetails.encryptionState");rxa.push("=");rxa.push(rM(Jxb?"encrypted":"unencrypted"));_.sM(b,rxa.join(" "))}var Kxb=_.ek(a,_.Ve,68);if(Kxb.length){for(var Lxb=[],MYa=[],NYa=_.m(Kxb),Fga=NYa.next();!Fga.done;Fga=NYa.next()){var OYa=Fga.value,Mxb=
"sharedFrom = "+rM(OYa.Za());_.E(OYa,2,!1)?MYa.push(Mxb):Lxb.push(Mxb)}xXc(b,Lxb,!1);xXc(b,MYa,!0)}var Nxb=_.ek(a,_.Ve,67);if(Nxb.length){for(var Oxb=[],Pxb=[],Qxb=_.m(Nxb),sxa=Qxb.next();!sxa.done;sxa=Qxb.next()){var PYa=sxa.value,txa="sharedTo = "+rM(PYa.Za());_.E(PYa,2,!1)?Pxb.push(txa):Oxb.push(txa)}xXc(b,Oxb,!1);xXc(b,Pxb,!0)}null!=_.L(a,69)&&_.uM(b,"linkShareMetadata.allowLessSecureLink",_.L(a,69));1==_.hM(a)&&zXc(b,a);return b.toString()};
_.JXc=function(a){var b=new _.qp(_.IXc(a));_.yL(a)?_.sM(b,"isQuickAccessRequest"):_.zL(a)?_.sM(b,"isPeoplePredictRequest"):_.AL(a)&&_.sM(b,"isDrivePriorityRequest");var c=a.Ac();if(c){var d=[];d.push("sortBy");d.push(_.ATc[c.getType()]);d.push(_.ITc[_.Oj(c,2,1)]);_.L(c,3)&&d.push("foldersFirst");_.sM(b,d.join(" "))}_.uM(b,"domainSearch",_.L(a,18));_.uM(b,"offline",_.L(a,19));_.ek(a,_.eM,25).length&&(c=[],c.push("sources"),c.push("contains"),c.push(_.AXc(a)),_.sM(b,c.join(" ")));a.ZA().length&&(c=
[],c.push("spaces"),c.push("contains"),c.push(_.BXc(a)),_.sM(b,c.join(" ")));if(c=_.hM(a))d=[],d.push("corpora"),d.push("="),d.push(rM(_.hXc[c])),_.sM(b,d.join(" "));_.E(a,66,!0)||_.uM(b,"includeItemsFromAllDrives",_.E(a,66,!0));1!=_.hM(a)&&zXc(b,a);_.E(a,48,!1)&&_.sM(b,"cachedOnly");return b.toString()};
_.VL=function(a){if(a instanceof _.IK)a=a.yd();else if(!a)return!1;return a instanceof _.kF||a instanceof _.jF||"undefined"!=typeof _.vM&&a instanceof _.vM||a instanceof _.Te&&(_.yL(a)||_.zL(a)||_.AL(a))};KXc=function(){_.np.call(this);this.V=this.O=null;this.ka=!1;this.ha=null};_.O(KXc,_.np);_.LXc=function(a){!a.ka&&a.V&&(a.V(),a.ka=!0)};MXc=function(a,b){a.V||(a.V=b)};KXc.prototype.Tj=function(){_.LXc(this);(0,this.ha)()};NXc=function(a,b){a.ha||(a.ha=b)};
_.wM=function(a){if(!a.O){a.O=new ZWc;var b=_.pp(a);_.A(b,56,a.O)}return a.O};KXc.prototype.getState=function(){var a=_.wM(this).getState();a||(a=new OWc,_.wM(this).Od(a));return a};var OXc=function(a,b){var c=new MWc;_.B(c,1,b);a=_.pp(a);_.A(a,12,c)};KXc.prototype.wE=function(){var a=_.wM(this).wE();if(!a){a=new WWc;var b=_.wM(this);_.A(b,16,a)}return a};KXc.prototype.ma=function(){var a=_.D(_.wM(this),QWc,4);if(!a){a=new QWc;var b=_.wM(this);_.A(b,4,a)}return a};
PXc=function(a){var b=_.D(_.wM(a),RWc,8);b||(b=new RWc,a=_.wM(a),_.A(a,8,b));return b};QXc=function(a){var b=_.D(_.wM(a),XWc,19);b||(b=new XWc,a=_.wM(a),_.A(a,19,b));return b};_.RXc=function(a,b){a=void 0===a?1:a;b=void 0===b?!1:b;_.yi.call(this);this.H=!1;this.connectionState=b?1:a;this.O=b?!0:1===a;this.V=b};_.O(_.RXc,_.yi);_.g=_.RXc.prototype;_.g.isConnected=function(){return!this.H&&1===this.connectionState};_.g.Um=function(){return 1===this.connectionState||2===this.connectionState};
_.g.Ye=function(){return 3===this.connectionState};_.g.get=function(){return this.connectionState};_.g.update=function(a){if(this.V)return!1;if(this.connectionState!==a||this.H&&1===a){if(2===a)var b=3===this.connectionState?_.tA.XT:_.tA.Wga;else 1===a?(b=_.tA.XK,this.O=!0):3===a&&(b=_.tA.WT);if(b)return b=new dXc(b),this.connectionState=a,this.H=!1,this.dispatchEvent(b),!0}return!1};
var SXc=function(a,b){this.userId=a;this.H=b;this.db=null},UXc=function(a,b){a.H.info("drive.ds.sync.logging.ImpressionPersister","Persisting offline impressions.");return TXc(a,function(c){return c.count().then(function(d){return 1E3>d?a.add(c,b):a.handleError(Error("Re"))},function(d){return a.handleError(d)})},"readwrite")};SXc.prototype.add=function(a,b){var c=this,d={};return a.add((d.userId=this.userId,d.Yzb=b.je(),d)).then(null,function(e){c.handleError(e)})};
var VXc=function(a){return new _.Qh(function(b){var c=new Map;TXc(a,function(d){return AWc(d.getIndex("userId"),a.userId).then(function(e){e=new Map(e.map(function(l){return[l,d.get(l)]}));for(var f={},h=_.m(e),k=h.next();!k.done;f={zra:f.zra},k=h.next())k=_.m(k.value),f.zra=k.next().value,k.next().value.then(function(l){return function(p){p&&c.set(l.zra,new _.nCa(p.Yzb))}}(f));return _.Wh([].concat(_.jd(e.values()))).then(function(){return b(c)})})})})},WXc=function(a,b){return TXc(a,function(c){return c.remove(b)},
"readwrite")},TXc=function(a,b,c){c=void 0===c?"readonly":c;return XXc(a).then(function(d){try{var e=_.xSc(d,["OfflineImpressions"],c).objectStore("OfflineImpressions");return b(e)}catch(f){return a.handleError(f)}},function(d){return a.handleError(d)})},XXc=function(a){return a.db?_.Rh(a.db):_.zSc("GoogleDriveDsImpressions",2,function(b,c){c.H.objectStoreNames.contains("OfflineImpressions")&&_.BWc(c,"OfflineImpressions");b=_.wSc(c,"OfflineImpressions",{autoIncrement:!0});try{b.H.createIndex("userId",
"userId",void 0)}catch(d){throw _.AK(d,"creating new index userId with key path userId");}},function(){return a.handleError(Error("Se"))}).then(function(b){return a.db=b},function(b){return _.Sh(_.bL(b))})};SXc.prototype.handleError=function(a){a||(a=Error("Te"));_.oM(this.H,"drive.ds.sync.logging.ImpressionPersister",a.message,"severe");return _.Rh()};_.YXc=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;_.yi.call(this);this.V=b;this.O=null;this.H=b?!1:a};_.O(_.YXc,_.yi);_.YXc.prototype.Ye=function(){return this.H};
_.YXc.prototype.El=function(a){var b=this.H!==a;!this.V&&b&&(this.H=a,this.dispatchEvent(new vXc(a)))};_.YXc.prototype.py=function(a){this.O=a};var $Xc=function(a,b,c,d,e,f){_.yi.call(this);var h=this;this.V=a;this.H=b;this.connectionState=c;this.O=d;this.Mb=new _.De(this);this.Mb.listen(b,"Ab",function(k){k.Ye()||ZXc(h)});this.Mb.listen(c,[_.tA.XK,_.tA.XT],function(){return void ZXc(h)});this.W=e;f.then(function(){return ZXc(h)})};_.O($Xc,_.yi);
$Xc.prototype.Tz=function(a){return(this.H.Ye()||this.connectionState.Ye())&&this.H.O?UXc(this.O,a):this.V.Tz(a)};
var ZXc=function(a){return a.H.O?VXc(a.O).then(function(b){b.forEach(function(c,d){a.V.Tz(c).then(function(){return aYc(a,d)},function(){a.log("Unable to send offline impression batch "+d+".")})})}):Promise.resolve()},aYc=function(a,b){a.log("Sent offline impression batch "+b+".");a.dispatchEvent("Bb");return WXc(a.O,b).then(function(){a.log("Removed offline impression batch "+b+".")},function(){a.log("Unable to remove offline impression batch "+b+".")})};
$Xc.prototype.log=function(a){this.W.info("drive.ds.sync.logging.ClearcutOfflineTransport",a)};var bYc=function(){};bYc.prototype.tQ=function(){return new KXc};var cYc=function(){this.H=new $Wc};cYc.prototype.O=function(a){_.A(a,13,this.H)};cYc.prototype.setEnvironment=function(a){this.H.setEnvironment(a);return this};
eYc=function(a,b,c,d){this.V=b;this.connectionState=c;this.Hr=d;this.O=this.H=null;this.client=_.xM(_.RTc,_.jM(a));this.W=_.C(a,94);this.ka=_.xM(_.VTc,_.Oj(a.Sf(),8,0));this.cxa=_.xM(_.STc,_.Oj(a.Sf(),9,2));this.ma=_.E(a,10,!1);this.St=_.BK(_.CK(a));this.nCa=_.kM(a);this.ha=dYc(a);this.buildLabel=a.Gi()};dYc=function(a){var b=[].concat(_.jd(_.OTc.keys())),c=[].concat(_.jd(_.PTc.keys())),d=_.SK(a);return b.filter(function(e){return _.OTc.get(e)(a)}).concat(c.filter(function(e){return d&&_.PTc.get(e)(d)}))};
_.xM=function(a,b){a=_.m(a);for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;if(c.includes(b))return d}return 0};eYc.prototype.Nu=function(a){return null==a?0:a?2:1};var fYc=function(a){if(a.O)return a.O.H("aU7Ts")};
eYc.prototype.Cb=function(a){return a instanceof _.gA||"undefined"!=typeof _.yM&&a instanceof _.yM||"undefined"!=typeof _.zM&&a instanceof _.zM||"undefined"!=typeof _.AM&&a instanceof _.AM?a.Cb():"undefined"!=typeof _.BM&&a instanceof _.BM||"undefined"!=typeof _.CM&&a instanceof _.CM||"undefined"!=typeof _.DM&&a instanceof _.DM||"undefined"!=typeof _.EM&&a instanceof _.EM||"undefined"!=typeof _.FM&&a instanceof _.FM?a.response?a.response.Cb():null:null};eYc.prototype.Gi=function(){return this.buildLabel};
var gYc=function(a){return a.V.Ye()||a.connectionState.Ye()?2:1};eYc.prototype.getEnvironment=function(){return this.Hr};var hYc=function(a,b){this.H=a;var c=new _.XAa;_.YAa(c,b.ha);a=this.H.bL();var d=_.sTc(a);_.A(d,10,c);(c=b.Gi())&&_.rTc(a,c);this.H.vZ();this.O=b};hYc.prototype.isRunning=function(){return this.H.uT()};
_.iYc=function(a,b,c){var d=_.op(a.H.rF(b,c),_.JTc);OXc(d,gYc(a.O));b=fYc(a.O);"boolean"===typeof b&&PWc(d.getState(),b);1===c&&MXc(d,function(){return void a.H.kM(d)});NXc(d,function(){var e=a.O;e=e.H?e.H.Nd():void 0;var f=d.getState();_.B(f,1,e);a.H.fq(d)});return d};
jYc=function(a){var b=new _.LBa,c=new cYc;_.B(c.H,1,a.client);_.B(c.H,8,a.W);_.B(c.H,3,a.ka);_.B(c.H,4,a.cxa);_.B(c.H,5,a.ma);_.B(c.H,6,a.St);_.B(c.H,7,a.nCa);a=c.setEnvironment(a.getEnvironment());_.DSc(b,_.LTc,a);_.rp(b,_.JTc,new bYc);return b};
kYc=function(a,b,c,d,e,f,h,k){k=void 0===k?!1:k;var l=new _.$G(906,b,void 0,_.YTc());l.W=!1;var p=new _.FSc(l);b=new Date;l=_.xTc(_.wTc(_.vTc(CWc(),new _.GSc(l)),jYc(c)),109).setSessionId(b.getTime()+"_"+_.Kg());if(k){a=new $Xc(p,d,e,new SXc(a,f),f,h);_.uTc(l,a);d=l.build();_.qTc(d.bL(),1E3*b.getTime());var q=new hYc(d,c);(new _.De).listen(a,"Bb",function(){_.iYc(q,106008,0).Tj()});return q}_.uTc(l,p);a=l.build();_.qTc(a.bL(),1E3*b.getTime());return new hYc(a,c)};
lYc=function(a,b){this.V=a;this.W=b};lYc.prototype.O=function(a,b){this.V&&this.isRunning()&&(a=_.iYc(this.V,a,0),b&&_.CSc(a,b),a.Tj())};_.mYc=function(a,b){if(a.V&&a.isRunning()){a=_.iYc(a.V,106018,0);var c=_.D(_.wM(a),VWc,15);if(!c){c=new VWc;var d=_.wM(a);_.A(d,15,c)}c=_.B(c,1,1);_.B(c,2,b);a.Tj()}};lYc.prototype.H=function(a,b){return this.V&&this.isRunning()?(a=_.iYc(this.V,a,1),b&&_.CSc(a,b),a):null};lYc.prototype.isRunning=function(){return!(!this.V||!this.V.isRunning())};
_.nYc=function(a,b,c,d,e,f){var h=_.L(a,59),k=_.RK(_.CK(a)).toString(),l=_.iM(_.CK(a));f=new eYc(a,b,c,f);a=h?kYc(l,k,f,b,c,d,e,_.E(a,17,!1)):null;return new lYc(a,f)};_.oYc=function(a){_.Q(this,a,-1,null,null)};_.O(_.oYc,_.N);_.oYc.prototype.getId=function(){return _.C(this,1)};_.oYc.prototype.Pb=function(a){return _.B(this,1,a)};_.oYc.prototype.te=function(){return _.D(this,_.ef,2)};_.DL=function(a){_.Q(this,a,-1,null,null)};_.O(_.DL,_.N);_.DL.prototype.Ln=function(){return _.C(this,2)};
_.DL.prototype.yd=function(){return _.D(this,_.oYc,3)};_.uL=function(a){_.Q(this,a,-1,null,null)};_.O(_.uL,_.N);_.uL.prototype.yd=function(){return _.D(this,_.tL,1)};_.uL.prototype.Pt=function(){return _.C(this,2)};_.uL.prototype.Zca=function(a){return _.B(this,2,a)};_.uL.prototype.IXa=function(){return _.S(this,2)};_.sL=function(a){_.Q(this,a,-1,null,null)};_.O(_.sL,_.N);_.sL.prototype.getId=function(){return _.C(this,1)};_.sL.prototype.Pb=function(a){return _.B(this,1,a)};
_.pYc=function(a,b){return _.B(a,2,b)};_.FL=function(a){_.Q(this,a,-1,null,null)};_.O(_.FL,_.N);_.FL.prototype.yd=function(){return _.D(this,_.sL,1)};qYc=[2];_.ML=function(a){_.Q(this,a,-1,qYc,null)};_.O(_.ML,_.N);_.ML.prototype.Kc=function(){return _.C(this,1)};_.ML.prototype.jV=function(){return _.ek(this,_.sF,2)};_.ML.prototype.te=function(){return _.D(this,_.ef,3)};_.rYc=function(a){_.Q(this,a,-1,null,null)};_.O(_.rYc,_.N);_.rYc.prototype.nk=function(){return _.C(this,1)};
_.sYc=function(a){var b=new _.rYc;return _.B(b,1,a)};tYc=[1];_.WUc=function(a){_.Q(this,a,-1,tYc,null)};_.O(_.WUc,_.N);_.uYc=function(){this.H={}};vYc=function(a,b,c){if(a.H[b])throw Error("Ue");a.H[b]=c};_.uYc.prototype.notify=function(a,b){for(var c=0;c<a.length;c++)if(this.H[a[c]])try{this.H[a[c]](b)}catch(d){_.n.setTimeout(function(){throw d;},0)}};wYc=function(a,b){for(var c=0;c<b.length;c++)delete a.H[b[c]]};
_.xYc=function(a,b){this.H=a;this.V=b;this.O=_.cUc[_.Oj(a.Sf(),8,0)];this.W=_.cUc[_.Oj(a.Sf(),51,5)];this.nonce=_.Kg()};
_.xYc.prototype.tc=function(a,b){if(b.pN)yYc(this,a,b),zYc(this,a,b);else if(11===a.Nm){if(b.XIb){var c=b.iD||_.H(this.H.Sf(),37,"");_.qj(a.uri,"key",c)}yYc(this,a,b);AYc(this,a,b)}else switch(a.uri=BYc(this,a.Nm,a.uri),a.Nm){case 1:AYc(this,a,b);yYc(this,a,b);break;case 0:_.E(this.H,83,!1)&&(b.St||_.BK(_.CK(this.H))||_.qj(a.uri,"dsNonce",this.nonce));AYc(this,a,b);zYc(this,a,b);yYc(this,a,b);break;case 2:case 3:case 4:case 5:AYc(this,a,b);zYc(this,a,b);yYc(this,a,b);break;case 8:case 9:case 10:case 13:case 12:case 7:AYc(this,
a,b);zYc(this,a,b);break;default:throw Error("Ve`"+a.Nm);}};CYc=function(a,b){var c=BYc(a,b,new _.gj);if(!c.H)throw Error("Xe");return _.mj(_.lj(_.kj(new _.gj,c.O),c.H),c.W).ti(_.dUc.has(b)?"/batch"+a.O:"/batch")};
BYc=function(a,b,c){var d=_.C(a.H.Sf(),57);switch(b){case 0:a=d+a.O;break;case 1:a=d+"/batch"+a.O;break;case 2:a=d+"/upload"+a.O;break;case 3:a=d+"/upload"+a.O+"/batch";break;case 4:return c;case 5:a=d+a.W;break;case 7:a=_.H(a.H.Sf(),62,"");break;case 8:a=_.C(a.H.Sf(),53);break;case 9:a=_.C(a.H.Sf(),56);break;case 10:a=_.C(a.H.Sf(),22);break;case 13:a=_.C(a.H.Sf(),55);break;case 12:a=_.C(a.H.Sf(),43);break;default:throw Error("Ve`"+b);}a&&a.endsWith("/")&&(a=a.slice(0,-1));c=c.toString();if(!c)return new _.gj(a);
_.wd(c,"/")&&(c=c.slice(1));return new _.gj(a+"/"+c)};AYc=function(a,b,c){a=_.CK(a.H);c.St||_.BK(a)||(c=[{key:"u",value:_.iM(a)}],b.headers.authorization=_.Rac(c)||"",c=_.RK(a),0<=c&&(b.headers["x-goog-authuser"]=String(c)))};
yYc=function(a,b,c){var d=_.CK(a.H),e=a.H.Sf(),f=c.r6a||!!_.C(e,13);c=c.s6a||_.E(e,14,!1);var h=11===b.Nm;f&&((f=_.C(e,13))&&_.wd(f,"email:")?_.qj(b.uri,"trace",f):f&&"trace:true"===f?_.qj(b.uri,"$trace","true"):f?_.qj(b.uri,"trace","token:"+f):_.qj(b.uri,"trace","email:"+d.getEmail().replace(/(@|\+).*$/,"")),h||_.qj(b.uri,"trace.deb","genoa:3:all,driveService:3:all"+(2===_.Oj(e,9,2)?"":",cospel:3:all,DriveService:3:all")));c&&!h&&a.V&&a.V.O(b.headers,b.method,b.uri.toString())};
zYc=function(a,b,c){c.St||_.BK(_.CK(a.H))?_.qj(b.uri,"key",_.H(a.H.Sf(),36,"")):(a=c.iD||_.H(a.H.Sf(),37,""),_.qj(b.uri,"key",a))};_.DYc=function(a,b){_.FG.call(this,a?a:500,b?b:6E5)};_.O(_.DYc,_.FG);_.EYc=function(a,b){this.O=b;this.H=new Map;this.Bla(_.ek(a,_.wl,91))};_.EYc.prototype.Bla=function(a){a=_.m(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;b=c.getId();c=_.C(c,2);if(!b||!c)break;var d=_.FYc(this,b);if(d){d!==c&&VUc(b);break}this.H.set(b,c)}};
wVc=function(a,b){return[].concat(_.jd(new Set(b))).map(function(c){var d=(new _.wl).Pb(c);a.H.has(c)?_.xl(d,a.H.get(c)):a.O&&(c=a.O.H(c))&&_.xl(d,_.ol(c));return d}).filter(function(c){return _.S(c,2)})};_.FYc=function(a,b){return a.H.has(b)?String(a.H.get(b)):a.O&&(a=a.O.H(b))&&_.S(a,140)?_.ol(a):null};_.GM=function(a,b,c,d){this.state=a;this.ma=b;this.ka=c;this.zd=d;this.ha=this.O=this.timeout=this.W=null;this.V=!1;this.H=null};_.GM.prototype.getState=function(){return this.state};
_.GM.prototype.QL=function(a){var b=this;if(this.W)return this.W;var c=_.Xh();this.W=c.promise.then(function(){return _.sYc(1)},function(d){d=_.sA(d).Ug;var e=0;2===d.xp()?e=3:_.XTc(d)&&(e=2);return _.sYc(e)});a&&this.W.then(function(d){3===d.nk()&&_.mYc(b.zd,186469046)});this.H&&(a=_.C(QXc(this.H),4)||0,YWc(QXc(this.H),a+1));setTimeout(function(){b.W=null},5E3);GYc(this,c);return this.W};_.JYc=function(a){HYc(a,3)&&_.IYc(a)};_.GM.prototype.reset=function(){this.O=null;KYc(this)};
KYc=function(a){a.timeout&&(clearTimeout(a.timeout),a.timeout=null)};_.IYc=function(a){if(!a.O&&!a.V){a.H=a.zd.H(106025);if(a.H){var b=QXc(a.H);var c=!(!a.state.isConnected()&&a.state.Um());b=_.B(b,1,c);_.B(b,2,a.state.O)}a.O=new _.DYc(5E3,6E4);LYc(a)}};LYc=function(a){KYc(a);GYc(a);a.O&&(a.timeout=setTimeout(function(){return void LYc(a)},a.O.Za()),_.GG(a.O))};
GYc=function(a,b){_.Yh((a.ha?a.ha():_.Rh()).then(null,function(){return null}),function(){if(a.H){var c=_.C(QXc(a.H),3)||0,d=QXc(a.H);_.B(d,3,c+1)}MYc(a,b)})};MYc=function(a,b){a.log("Checking connection state.");var c=a.ma.then(function(d){return d.Ve(new _.kVc)}).then(null,function(d){d=_.sA(d);_.XTc(d.Ug)&&HYc(a,2);return _.Sh(d)});b?b.resolve(c):c.then(null,function(){return null})};_.GM.prototype.log=function(a){this.ka.info("drive.ds.sync.connection.StateManager",a)};
HYc=function(a,b){return!a.V&&a.state.update(b)?(a.log("Connection status: "+_.eUc.get(b)),!0):!1};pVc=[_.eL,_.gL,_.fL,_.iL,_.hL,_.jL,_.kL,_.nL,_.pL,_.qL,_.rL,_.tL,_.uL,_.IL,_.KL,_.ML,_.TK,_.NL,_.OL,_.PL,_.$Uc,_.QL];NYc=[_.VK];qVc=[_.iF,_.eVc];rVc=[_.DL,_.DK,_.RB,_.RL];sVc=[_.IK,_.yz,_.VK,_.ZUc];tVc=[_.RL,_.lF];uVc=[_.sL,_.WUc,_.CL,_.FL,_.GL,_.YUc,_.QL,gVc,fVc];
OYc=function(a){return a instanceof _.IK||a instanceof _.RL||"undefined"!=typeof _.HM&&a instanceof _.HM||a instanceof _.OL||a instanceof _.qL||a instanceof _.jL||a instanceof _.nL||a instanceof _.TK&&_.UL(a)};_.PYc=function(a,b){this.O=b;this.H={};this.aj=new KWc;b=_.dL({fields:_.Id(a,28),Wq:_.BK(_.CK(a))});this.Jb("SecondaryFields",b);this.Jb("SdkBackfillEnabled",!!_.E(a,45,!1)+" (Include corpus cache: "+!!_.E(a,46,!1)+")")};_.PYc.prototype.Jb=function(a,b){this.H[a]=QYc(a,b)};
var RYc=function(a,b){var c=a.H[b];c||(c=QYc(b,0,2),a.H[b]=c);c.Jb(String(Number(c.Za())+1))};_.PYc.prototype.iz=function(a){var b=_.Sa(this.H);this.O&&b.push(QYc("CacheSize",this.O.Nd()));b.push(QYc("InitialViewDataLoaded",a));a=new _.mXc;_.Cb(a,1,b);return _.ei(a)};QYc=function(a,b,c){var d=new _.kXc;_.B(d,1,a);_.B(d,4,c||1);d.Jb(String(b));d.tm(_.iUc.get(a));return d};
_.SYc=function(a,b,c){var d=new _.zTc;_.B(d,2,"Pending...");b instanceof _.IK?_.fk(d,3,_.JK[0],b):b instanceof _.RL?_.fk(d,4,_.JK[0],b):"undefined"!=typeof _.HM&&b instanceof _.HM?_.fk(d,5,_.JK[0],b):b instanceof _.OL?_.fk(d,6,_.JK[0],b):b instanceof _.qL?_.fk(d,7,_.JK[0],b):b instanceof _.jL?_.fk(d,8,_.JK[0],b):b instanceof _.nL?_.fk(d,9,_.JK[0],b):b instanceof _.TK&&_.fk(d,10,_.JK[0],b);var e=mVc(b),f=[];if(b instanceof _.fL)SL(f,"ID",b.getId()),SL(f,"Parent ID",b.Ck());else if(b instanceof _.qL)SL(f,
"TD ID",b.getId());else if(b instanceof _.IK)b=_.JXc(b.yd()),SL(f,"Query",b);else if(b instanceof _.RL)SL(f,"Query","All");else if(b instanceof _.OL)SL(f,"TD ID",b.getId()),SL(f,"Title",b.getTitle()),SL(f,"Theme Image ID",_.C(b,3));else if(b instanceof _.jL)SL(f,"MimeType",b.getMimeType()),SL(f,"Title",b.getTitle()),SL(f,"Parents",_.Id(b,3)),SL(f,"Convert",_.L(b,8)),SL(f,"Request ID",b.Zi()),SL(f,"Parent Request IDs",_.Id(b,10)),SL(f,"Revision Item ID",_.C(b,12)),SL(f,"Pinned",_.L(b,8));else if(b instanceof
_.kL)SL(f,"Title",b.getTitle());else if(b instanceof _.nL)SL(f,"ID",b.getId());else if(b instanceof _.rL)SL(f,"WS ID",b.getId());else if(b instanceof _.TK){if(SL(f,"ID",b.getId()),SL(f,"Title",b.getTitle()),SL(f,"Description",b.Bg()),SL(f,"Starred",_.L(b,4)),SL(f,"Trashed",b.Nh()),SL(f,"MimeType",b.getMimeType()),SL(f,"Parents",_.Id(b,8)),SL(f,"Parents to add",_.Id(b,9)),SL(f,"Parents to remove",_.Id(b,10)),SL(f,"Restricted",_.L(b,11)),SL(f,"Folder Color",b.Pi()),SL(f,"Update Last Viewed",_.L(b,15)),
SL(f,"Subscribed",_.L(b,16)),SL(f,"Available Offline",_.L(b,18)),SL(f,"Wksp to add",_.Id(b,31)),SL(f,"Wksp to remove",_.Id(b,32)),b=_.D(b,_.el,25))SL(f,"Read Only",_.L(b,1)),SL(f,"Reason",_.C(b,2))}else b instanceof _.PL?(SL(f,"WS ID",b.getId()),SL(f,"Title",b.getTitle()),SL(f,"State",b.getState())):b instanceof _.$Uc&&SL(f,"Title",b.request.getTitle());_.B(d,1,"Request: "+e+(c?" ("+c+")":"")+"\n"+f.join("\n"));a.aj.add(d);return d};
_.TYc=function(a,b){for(var c=new _.qp,d=0;d<b.length&&20>d;d++){var e=b[d];c.append(e.getId()+":"+_.HUc(e.getTitle()||"",20)+"\n")}20<b.length&&c.append(b.length-20+" more item(s)");_.B(a,2,c.toString()||"Done.")};_.PYc.prototype.LQ=function(){return this.aj.yg()};_.r("sy17u");
_.IM=function(a){_.Q(this,a,-1,null,null)};_.O(_.IM,_.N);_.IM.prototype.ud=function(){return _.D(this,_.gA,1)};_.UYc=function(a,b){return _.A(a,1,b)};_.IM.prototype.Ln=function(){return _.C(this,3)};
_.VYc=function(a,b,c){_.oi.call(this,"Lb");this.requestId=a;this.progress=b;this.totalBytes=c};_.O(_.VYc,_.oi);
_.WYc=function(a,b){this.O=a;this.V=b;this.H=null};
var JM=function(a){_.yi.call(this);this.name=a};_.O(JM,_.yi);_.g=JM.prototype;_.g.w3=function(){};_.g.EEa=function(){};_.g.g0a=function(){};_.g.tMa=function(){};_.g.f0a=function(){};_.g.sF=function(){this.dispatchEvent(new _.oi("Mb"))};_.g.toString=function(){return this.name+": "+this.max(Infinity)};
var XYc=function(a,b){JM.call(this,"Online");var c=this;this.O=a;this.H=b;this.Oc=new _.De(this);this.Ma(this.Oc);this.Oc.listen(this.O,"Ab",function(d){d.Ye()||c.sF()});this.Oc.listen(this.H,"ib",this.sF)};_.O(XYc,JM);XYc.prototype.max=function(){var a=this.O.Ye(),b=this.H.hB();return!a&&b?Infinity:0};XYc.prototype.w3=function(){this.sF()};
var YYc=function(a){JM.call(this,"Online");var b=this;this.connectionState=a;this.Oc=new _.De(this);this.Ma(this.Oc);this.Oc.listen(this.connectionState,[_.tA.XK,_.tA.Wga,_.tA.XT],function(){return b.sF()})};_.O(YYc,JM);YYc.prototype.max=function(){return this.connectionState.isConnected()?Infinity:0};YYc.prototype.w3=function(){this.sF()};
_.ZYc=function(a,b){this.H=a;this.O=b};_.$Yc=function(a){return a.H instanceof _.GM?new YYc(a.H.getState()):new XYc(a.O,a.H)};_.ZYc.prototype.Gj=function(){return this.H instanceof _.GM?this.H.getState():this.O};
var bZc;_.aZc=function(a,b,c){this.OJ=c;this.O=!0;this.V=0;this.H=new _.FG(a,b,.5)};bZc=function(a){return a.H.O+a.V};
_.KM=function(a,b){JM.call(this,"Backoff");this.H=a;this.O=b};_.O(_.KM,JM);_.KM.prototype.max=function(){return this.H.O?Infinity:0};_.KM.prototype.tMa=function(){var a=this.H;a.V=0;a.H.reset()};_.KM.prototype.f0a=function(a){var b=this;cZc(a)&&this.H.O&&(this.H.O=!1,a=this.H.H.Za(),this.log("Stopping new requests for "+a+" ms."),_.n.setTimeout(function(){b.log("Backoff complete, allowing requests.");b.H.O=!0;b.sF()},a),_.GG(this.H.H))};
var cZc=function(a){return(a=a.CB.length&&_.ha(a.CB).response)?KUc(_.Zrb(a)):!1};_.KM.prototype.log=function(a){this.O.info("drive.ds.network.queue.BackoffState",a)};
_.dZc=function(a,b){JM.call(this,"Batch");this.O=a;this.V=b;this.H=null};_.O(_.dZc,JM);_.dZc.prototype.max=function(a){return a>=this.O?this.O:null!=this.H?this.V<=Date.now()-this.H?this.O:0:0};_.dZc.prototype.w3=function(a){a>=this.O?this.sF():null==this.H&&eZc(this)};_.dZc.prototype.EEa=function(a,b){0<b?eZc(this):this.H=null};var eZc=function(a){a.H=Date.now()-1;_.n.setTimeout(a.sF.bind(a),a.V)};
_.LM=function(){this.aj=[]};_.g=_.LM.prototype;_.g.add=function(a,b){b?this.aj.unshift(a):this.aj.push(a);return!0};_.g.Lsa=function(a){return _.ya(this.aj,0,a)};_.g.Nd=function(){return this.aj.length};_.g.cancel=function(a){return _.ta(this.aj,function(b){return b.gv.config.requestId===a?(b.oe.resolve(nVc(b.gv.request)),!0):!1})};_.g.xJ=function(){return _.Zf(this.aj,function(a){return _.UL(a.gv.request)})};
var fZc=function(){JM.call(this,"Immediate")};_.O(fZc,JM);fZc.prototype.max=function(){return Infinity};fZc.prototype.w3=function(){this.sF()};
var gZc=function(){JM.call(this,"One Request")};_.O(gZc,JM);gZc.prototype.max=function(){return 1};
_.MM=function(a){JM.call(this,"Parallel");this.limit=a;this.H=0};_.O(_.MM,JM);_.MM.prototype.max=function(){return Math.max(0,this.limit-this.H)};_.MM.prototype.w3=function(){this.H<this.limit&&this.sF()};_.MM.prototype.EEa=function(a){this.H+=a.length};_.MM.prototype.g0a=function(a){this.H-=a.length;this.H<this.limit&&this.sF()};
var hZc=function(){_.yi.apply(this,arguments)};_.O(hZc,_.yi);var jZc=function(a,b){a.dispatchEvent(new iZc(b))};hZc.prototype.O=function(){};var iZc=function(a){_.oi.call(this,"Nb");this.request=a};_.O(iZc,_.oi);
_.NM=function(a,b,c,d,e,f){_.yi.call(this);var h=this;this.ha=a;this.V=b;this.H=c;this.buckets=d;this.O=e;this.ma=0;this.W=new Map;this.Oc=new _.De(this);this.Ma(this.Oc);for(a=0;a<this.H.length;a++)this.Oc.listen(this.H[a],"Mb",this.e_a);for(a=0;a<this.O.length;a++)this.Oc.listen(this.O[a],"Nb",function(k){kZc(h,!0,k.request)});this.ka=_.kt("drive.ds.network.queue.Queue [%s]",f)};_.O(_.NM,_.yi);_.NM.prototype.add=function(a){return kZc(this,!1,{gv:a,oe:_.Xh(),CB:[]})};
_.NM.prototype.cancel=function(a){var b=this.V.cancel(a),c=this.buckets.some(function(d){return d.cancel(a)});b?this.log("Canceled ID "+a+" during execution."):c&&this.log("Canceled ID "+a+" inside bucket.");return b||c};_.NM.prototype.xJ=function(){return this.V.xJ()?!0:this.buckets.some(function(a){return a.xJ()})};
var kZc=function(a,b,c){if(!a.buckets.some(function(f){return f.add(c,b)}))return a=_.iq(new _.jc,"No queue bucket accepted request."),_.Sh(_.sA(a));for(var d=lZc(a),e=0;e<a.H.length;e++)a.H[e].w3(d);return c.oe.promise};_.g=_.NM.prototype;
_.g.e_a=function(){var a=lZc(this);if(a){for(var b=this.H.reduce(function(e,f){return Math.min(e,f.max(a))},Infinity),c=[],d=0;d<this.buckets.length&&0===c.length;d++)c=this.buckets[d].Lsa(b);0<c.length&&(this.log("Executing "+c.length+"/"+a+" requests. States: {"+this.H.join(", ")+"}"),this.execute(c))}};
_.g.execute=function(a){var b=this,c=String(this.ma++);this.W.set(c,a);for(var d=this.V.execute(a),e=0;e<a.length;e++)d[e].then(this.$ub.bind(this,a[e]),this.Zub.bind(this,a[e]));e=lZc(this);for(var f=0;f<this.H.length;f++)this.H[f].EEa(a,e);_.Yh(_.Wh(d).then(this.Yub.bind(this,a)),function(){b.W.delete(c)});_.n.setTimeout(this.e_a.bind(this),0)};
_.g.$ub=function(a,b){var c=a.gv.config;this.log(mVc(a.gv.request)+" request completed successfully. xd4: "+!(!c||!c.pN));this.H.forEach(function(d){return d.tMa()});this.O.forEach(function(d){return d.O(a)});a.oe.resolve(b)};
_.g.Zub=function(a,b){b=_.sA(b);this.log(mVc(a.gv.request)+(" request failed with error: "+b.ha+"."));a.CB.push({response:b,FPb:Date.now()});for(var c=0;c<this.H.length;c++)this.H[c].f0a(a);a.gv.config.sna||!this.O.some(function(d){return d.intercept(a)})?a.oe.reject(b):this.log(mVc(a.gv.request)+" encountered an error, but was intercepted to be retried.")};_.g.Yub=function(a){lZc(this);for(var b=0;b<this.H.length;b++)this.H[b].g0a(a)};
var lZc=function(a){for(var b=0,c=0;c<a.buckets.length;c++)if(a.buckets[c].Nd()){b=a.buckets[c].Nd();break}return b};_.NM.prototype.log=function(a){this.ha.info(this.ka,a)};
_.mZc=function(a,b,c,d){hZc.call(this);this.V=b;this.ka=c;this.W=d;this.H=new Map;this.ha=_.Pj(a,21,1E3);this.oa=_.Pj(a,1,1);this.ma=function(){return new _.aZc(_.Pj(a,63,1E3),_.Pj(a,64,3E5),_.Pj(a,65,10))}};_.O(_.mZc,hZc);
_.mZc.prototype.intercept=function(a){var b=a.CB.length,c=0<b&&_.ha(a.CB).response||null;if(c){c=_.QK(c);if(2===c.xp())return nZc(this,a);if(_.XTc(c))return 2>=b?(jZc(this,a),a=!0):a=!1,a;var d=c.mk();if(3===d||31===d||13===d||9===d)return oZc(this,a,b);if(KUc(c))return b=bZc(this.V),c=this.V,bZc(c)<c.OJ?(this.log("Backoff number "+b+" for a User Rate Limit error."),jZc(this,a),a=!0):(this.log("Done retrying User Rate Limit errors after "+(b+" backoffs.")),a=!1),a}return!1};
var nZc=function(a,b){var c=pZc(a,b),d=bZc(c);if(bZc(c)<c.OJ)return a.log("Retry "+(d+1)+" for a failed request due to an offline error."),a.ka.Ye()?(d=c.H.Za(),_.n.setTimeout(function(){return jZc(a,b)},d),_.GG(c.H)):(_.n.setTimeout(function(){return jZc(a,b)}),c.V++),!0;a.H.delete(b);return!1},pZc=function(a,b){a.H.has(b)||a.H.set(b,a.ma());return a.H.get(b)},oZc=function(a,b,c){var d=a.oa;if(c<=d)return a.log("Retry number "+(c+1)+" for a retryable error."),_.n.setTimeout(function(){return jZc(a,
b)},a.ha*Math.pow(2,c)),!0;a.log("Done retrying retriable requests after "+d+" retries.");return!1};_.mZc.prototype.O=function(a){this.H.delete(a)};_.mZc.prototype.log=function(a){this.W.info("drive.ds.network.queue.RetryInterceptor",a)};
var qZc=function(a){try{if("undefined"!==typeof FileReaderSync&&_.YTc()){var b=new FileReaderSync;return Promise.resolve(b.readAsDataURL(a))}var c=new _.Vtb,d=eXc(c);c.H.readAsDataURL(a);return d.then()}catch(e){return Promise.reject(new _.Ttb(e,"reading data"))}},rZc=function(a){return qZc(a.size?a.slice(0,1):a).then(function(){return null},function(b){return b.name})};
var sZc=function(a,b,c,d,e,f,h){this.Ha=a;this.H=b;this.Ka=c;this.W=d;this.Pa=e;this.request=f;this.config=h;this.O=this.oa=this.progress=0;this.Fa=this.va=this.ha=null;this.oe=_.Xh();this.finished=!1;this.Ba=this.gu=0;this.ka=null;this.ma=!1;this.V=null;a=f.request.iz();a=_.YTc()&&a?_.C(a,1):null;this.fileSize="number"===typeof a?a:f.file.size;this.requestId=h.requestId;this.YN="progress_"+this.requestId;h.YN=this.YN;this.ma=!!f.metadata};
sZc.prototype.log=function(a){this.Ka.info("drive.ds.sync.request.ResumableUpload",a)};sZc.prototype.start=function(){var a=this,b=new fVc(this.request.request,this.request.metadata),c=tZc(this);this.Ha.then(function(d){return d.Ve(b,c)}).then(function(d){a.ha=d.O;a.va=d.H;a.Fa=d.V;uZc(a)},function(d){return void a.oe.reject(d)});return _.Yh(this.oe.promise.then(function(d){vZc(a,d);return d},function(d){d=_.sA(d);vZc(a,d.Ug);return _.Sh(d)}),function(){wYc(a.H,[a.YN])})};
var tZc=function(a){var b=_.Za(a.config);vYc(a.H,a.YN,HWc(function(){return void a.H.notify([a.requestId],0)}));return b};sZc.prototype.cancel=function(){return this.finished?!1:(this.finished=!0,this.oe.resolve(nVc(this.request)),!0)};
var uZc=function(a){a.finished||(a.log("Uploading chunk "+a.Ba+" for "+a.ha+"."),wZc(a,4))},wZc=function(a,b){xZc(a).then(function(c){if(c){var d=yZc(a,c.blob.size);a.Ha.then(function(f){return f.Ve(c,d)}).then(function(f){a.V=null;var h=c.blob.size;a.progress+=a.O;a.oa+=h;a.Ba++;f.rJ()&&(a.va=f.rJ());f.AM()&&(a.Fa=f.AM());a.progress<a.fileSize?uZc(a):a.oe.resolve(f)},function(f){if(d.sna)a.cancel();else{var h=_.QK(f);h.IBa()||h.rla()||a.ma?zZc(a,b,h,!1):rZc(c.blob).then(function(k){k=k?_.lGa.get(k)||
25:38;_.$K(h,k);k=38===h.xp();var l=38!==h.xp()&&25!==h.xp();zZc(a,b,h,k,l)},function(){})}})}else{var e=_.sA(_.$K(_.iq(new _.jc,"Could not read more of the file. Read "+a.progress+"/"+a.fileSize+" bytes."),5));a.oe.reject(e)}})},zZc=function(a,b,c,d,e){e=void 0===e?!1:e;var f=4-b;c.ufa(f);!e&&0<b?(a.gu++,d&&(a.W=Math.max(262144*Math.floor(a.W/262144/2),8388608)),setTimeout(function(){b--;a.log("Retrying chunk "+a.Ba+" with "+b+" attempts remaining "+((d?"and chunk size lowered to "+(a.W+" bytes "):
"")+"for ")+(a.ha+"."));wZc(a,b)},a.Pa*Math.pow(1.5,f))):a.oe.reject(_.sA(c))},xZc=function(a,b){return a.ma&&a.V?_.Rh(a.V):AZc(a,b).then(function(c){if(!c)return null;if(a.ma&&0<a.fileSize&&0===c.size)return xZc(a,Math.min(2*a.O,a.fileSize-a.progress));a.ka&&(c=new Blob([a.ka,c]),a.ka=null);var d=c.size%262144;a.finished=a.progress+a.O===a.fileSize;0<d&&!a.finished&&(a.ka=c.slice(-1*d),c=c.slice(0,-1*d));a.V=new gVc(a.ha,c,a.oa,a.oa+c.size-1,a.finished,a.request.request.getMimeType(),_.C(a.request.request,
12)||void 0);return a.V})},AZc=function(a,b){a.O=b?b:Math.min(a.fileSize-a.progress,a.W);b=a.progress;return a.request.RP?a.request.RP(b,a.O):_.Rh(_.JUc(a.request.file,b,b+a.O))},yZc=function(a,b){var c=_.Za(a.config);c.eRa=!0;var d=a.progress/a.fileSize,e=b/a.fileSize;wYc(a.H,[a.YN]);vYc(a.H,a.YN,function(f){a.H.notify([a.requestId],Math.min(d+e*f,1))});return c},vZc=function(a,b){b.uMa(3);b.ufa(a.gu);b.rJ()||b.Sca(a.va);b.AM()||b.Eca(a.Fa)};
_.BZc=function(a,b,c,d,e){this.ha=a;this.V=b;this.H=c;this.W=d;this.O=e};_.BZc.prototype.create=function(a,b){return new sZc(this.ha,this.V,this.H,this.W,this.O,a,b)};
_.CZc=function(a){this.O=a;this.H={}};_.CZc.prototype.execute=function(a){for(var b=[],c=0;c<a.length;c++)if(a[c].gv.request instanceof _.hVc)b.push(DZc(this,a[c].gv));else{var d=_.iq(new _.jc,"ResumableUploadExecutor only supports ResumableUploadRequests.");b.push(Promise.reject(_.sA(d)))}return b};_.CZc.prototype.cancel=function(a){return!!this.H[a]&&this.H[a].cancel()};_.CZc.prototype.xJ=function(){return!_.Va(this.H)};
var DZc=function(a,b){var c=a.O.create(b.request,b.config),d=c.start(),e=b.config.requestId;a.H[e]=c;return _.Yh(d,function(){delete a.H[e]})};
_.EZc=function(a,b){return new _.NM(b,a,[new fZc],[new _.LM],[],"immediate")};_.FZc=function(a,b,c,d,e){return new _.NM(e,a,[_.$Yc(d),new _.KM(c,e),new gZc],[new _.LM],[new _.mZc(b,c,d.Gj(),e)],"connected")};_.GZc=function(a,b,c,d,e,f,h){h=void 0===h?_.Pj(b,10,50):h;return new _.NM(e,a,[_.$Yc(d),new _.dZc(h,_.Pj(b,12,10)),new _.MM(3*h),new _.KM(c,e)],[new _.LM],[new _.mZc(b,c,d.Gj(),e)],f)};_.HZc=function(a,b,c){b=_.Pj(b,46,1);return new _.NM(c,a,[new _.MM(b)],[new _.LM],[],"resumable_upload")};
_.IZc=function(a,b,c,d,e,f,h,k){this.OH=a;this.ma=b;this.ha=c;this.H=d;this.V=e;this.W=f;this.ka=h;this.O=k};_.IZc.prototype.Ve=function(a,b){return JZc(this,a,b).then(null,function(c){c=_.sA(c);var d=c.Ug;oVc(a)||_.kq(d);return _.Sh(c)})};
var JZc=function(a,b,c){c=void 0===c?{}:c;var d=a.OH.validate(b);if(d)return _.Sh(_.sA(d));var e=a.ma.translate(b);d=a.ha.execute(a,e,c)||void 0;return _.Rh(d).then(function(){if(e instanceof _.jc)return _.Sh(_.sA(e));if(Array.isArray(e)){var f=e.map(function(h){return KZc(a,b,h,c)});return _.Wh(f)}return KZc(a,b,e,c)},function(f){return _.Sh(_.sA(f))})},KZc=function(a,b,c,d){var e=LZc(a,c);if(!e)return b=_.$K(_.iq(new _.jc,"Failed to choose a queue for server request."),18),_.Sh(_.sA(b));if(e===
a.H[7]||e===a.H[8])d.pN=!0;d=e.add({request:c,config:d});(_.UL(b)||_.UL(c))&&_.Yh(d,function(){var f=a.V;f.O()||(f.H&&(f.H.resolve(),f.H=null),f.V())});b=a.W.apply(c,d);d.then(function(f){a.ka.apply(c,f)},function(){});return b};_.IZc.prototype.cancel=function(a){return _.Qa(this.H,function(b){return b.cancel(a)})};
var LZc=function(a,b){var c=!1;b instanceof _.yz?c=!!_.L(b,7):b instanceof _.IK&&(c=(c=b.yd())&&!!_.L(c,46));return(b instanceof _.kVc||b instanceof _.rK&&_.L(b,9))&&a.H[1]?a.H[1]:b instanceof _.hVc&&a.H[5]?a.H[5]:c&&vVc(b,a.O)&&a.H[7]?a.H[7]:vVc(b,a.O)&&a.H[8]?a.H[8]:c&&b instanceof _.yz&&a.H[6]?a.H[6]:(c||NYc.includes(b.constructor))&&a.H[3]?a.H[3]:pVc.includes(b.constructor)&&a.H[4]?a.H[4]:a.H[2]||a.H[1]};
var MZc=function(a){this.H=a};MZc.prototype.build=function(a,b){var c="====="+_.Kg()+"=====",d=a[0].Nm,e=b.every(function(l){return l.pN});if(e){var f=d;var h={"content-type":"text/plain; charset=UTF-8"};d="POST";var k=CYc(this.H,a[0].Nm);_.qj(k,"$ct",'multipart/mixed; boundary="'+c+'"')}else f=NZc[d],h=OZc[d]||{},h["content-type"]=_.kt('multipart/mixed; boundary="%s"',c),d=PZc[d],k=new _.gj("");a=QZc(this,a,b,c,e);return{Nm:f,body:a,headers:h,method:d,uri:k}};
var QZc=function(a,b,c,d,e){for(var f=TUc(RZc[b[0].Nm]||{}),h="",k=0;k<b.length;k++){e&&AYc(a.H,b[k],c[k]);var l=b[k],p=a.H,q=l,t=c[k];q.uri=BYc(p,q.Nm,q.uri);switch(q.Nm){case 0:case 5:zYc(p,q,t);yYc(p,q,t);break;case 2:AYc(p,q,t);zYc(p,q,t);var u=q,y=_.C(p.H.Sf(),57);u.headers.host=_.vj(y).H;u.headers.origin=_.n.location.origin?_.n.location.origin:_.n.location.protocol+"//"+_.n.location.host;yYc(p,q,t);break;case 12:case 10:case 13:break;case 8:case 7:throw Error("We`"+q.Nm);default:throw Error("Ve`"+
q.Nm);}p=l;q=p.uri.clone();_.kj(q,"");_.lj(q,"");_.mj(q,null);l=f+"\r\n"+(p.method+" "+q+" HTTP/1.1\r\n")+TUc(l.headers)+"\r\n"+(l.body?l.body+"\r\n":"");h+="--"+d+"\r\n";h+=l}return h+("--"+d+"--\r\n")},SZc={},NZc=(SZc[0]=1,SZc[2]=3,SZc),TZc={},PZc=(TZc[0]="POST",TZc[2]="PUT",TZc[12]="POST",TZc),UZc={},VZc={},OZc=(VZc[2]=(UZc["x-goog-upload-protocol"]="batch",UZc),VZc),WZc={},XZc={},YZc={},ZZc={},RZc=(ZZc[0]=(WZc["content-type"]="application/http",WZc["content-transfer-encoding"]="binary",WZc),ZZc[12]=
(XZc["content-type"]="application/http",XZc["content-transfer-encoding"]="binary",XZc),ZZc[2]=(YZc["content-type"]="application/http",YZc),ZZc);
var $Zc=/^HTTP\/1\.1 (\d+) ([\w ]+)/,a_c=/^multipart\/mixed; boundary="?([^"]+)"?$/;
var b_c=function(a,b,c,d,e){this.V=a;this.W=b;this.ha=c;this.H=d;this.O=e;this.aj=new Map};b_c.prototype.add=function(a,b){var c="DEFAULT";b.pN&&(c=CYc(this.V,a.Nm).toString());this.aj.has(c)||this.aj.set(c,[]);c=this.aj.get(c);if(1<=c.length&&!b.pN&&!NZc[a.Nm])return a=_.iq(new _.jc,"Unsupported batch API: "+a.Nm),_.Sh(_.sA(a));var d=_.Xh();c.push({request:a,config:b,oe:d});return d.promise};
b_c.prototype.send=function(){var a=this;this.aj.forEach(function(b,c){try{c_c(a,b)}catch(f){var d=_.jq(_.iq(new _.jc,"Error executing XHR: "+f.message),f.stack),e=_.sA(d);b.forEach(function(h){h.oe.reject(e)});a.aj.delete(c)}})};
var c_c=function(a,b){if(1===b.length){var c=b[0];if(!c.config.kCa&&!c.config.pN){var d=!1;if(NZc[c.request.Nm]){var e={Nm:c.request.Nm,headers:{},method:c.request.method,uri:c.request.uri.clone()};a.V.tc(e,c.config);2E3<e.uri.toString().length&&(d=!0)}if(!d){d_c(a,c);return}}}e_c(a,b)},d_c=function(a,b){var c=b.oe;a.W.Xg(b.request,b.config).then(function(d){c.resolve(d);f_c(a,b)},function(d){a.handleError(b,d);c.reject(_.sA(d))})},e_c=function(a,b){var c=[],d=[];b.forEach(function(e){c.push(e.request);
d.push(e.config)});a.W.Xg(a.ha.build(c,d),{kCa:!0,pN:d.every(function(e){return e.pN})}).then(function(e){e.headers=_.wUc(e.headers);var f=a_c.exec(e.headers["content-type"]);var h=f&&f[1]?"--"+f[1]:null;if(!h)throw new _.kc("Could not extract batch boundary.",_.$K(_.jq(new _.jc,JSON.stringify(e)),14));f=h+"\r\n";h=e.text.split(h+"--");if(2===h.length&&_.wd(_.Yha(h[0]),f)&&_.Xd(h[1]))h=_.Yha(h[0]).substring(f.length);else throw new _.kc("Could not parse batch response; did not begin and end with boundary.",
_.$K(_.jq(new _.jc,JSON.stringify(e)),15));f=h.split(f);h=c.length===f.length;for(var k=[],l=0;l<f.length;l++){var p=h?c[l]:void 0,q=k,t=q.push;var u=void 0;var y,z=e.headers,F=f[l],G=p&&p.uri,I=F.split("\r\n\r\n");if(2>I.length)u=new _.kc("Individual batch response contained too few parts.",_.$K(_.jq(new _.jc,F),17));else{var M=I[1].split("\r\n");if(y=$Zc.exec(M[0])){p=_.Db(y[1]);y=y[2];M.shift();z=_.Za(z);for(var R=Object,Z=R.assign,fa={},ra=0;ra<M.length;ra++){var Ba=_.gia(M[ra],":",1);Ba&&2===
Ba.length&&(fa[(0,_.bg)(Ba[0])]=(0,_.bg)(Ba[1]))}M=_.wUc(fa);Z.call(R,z,M);try{u=_.Xd(_.Jg(I[2]))?void 0:JSON.parse(I[2])}catch(za){}u=(p=_.BUc(p,y,z,F,u,void 0,void 0,G&&G.toString()))?_.sA(p):{headers:z,text:F,json:u||void 0}}else u=new _.kc("Could not extract HTTP status code and text.",_.$K(_.jq(new _.jc,F),16))}t.call(q,u)}return k}).then(null,function(e){e=_.sA(e);return _.DRc(e,b.length)}).then(function(e){for(var f=!1,h=0;h<b.length;h++){var k=b[h].oe,l=e[h];l instanceof _.jc||l instanceof
_.kc?(l=_.sA(l),f||(f=a.handleError(b[h],l)),k.reject(l)):k.resolve(l)}f||f_c(a,b[0])})},f_c=function(a,b){var c=b.request.Nm;b=!b.config.St&&_.ma(g_c,c);if(a.H){if(a=a.H,c=b?1:2,!a.state.isConnected()||b)c=HYc(a,c),b&&c&&a.reset(),a.H&&c&&(b||!a.state.O)&&(a.H.Tj(),a.H=null)}else a.O&&b&&a.O.va()};
b_c.prototype.handleError=function(a,b){a=_.Zrb(b);if(2===a.xp()){if(this.H)return _.JYc(this.H),!0}else if(_.XTc(a)){if(this.H){a=this.H;if(b=!a.V)b=a.state,b=!b.V&&b.isConnected()?b.H=!0:!1;b&&_.IYc(a);return!0}if(this.O)return this.O.oa(),!0}return!1};var g_c=[0,2,4,7,8];
var h_c=function(){_.cj.apply(this,arguments)};_.O(h_c,_.cj);h_c.prototype.getAllResponseHeaders=function(){return _.Yha(_.cj.prototype.getAllResponseHeaders.call(this))};
var i_c=function(a,b){this.W=a;this.V=b;this.O={};this.H={}};_.g=i_c.prototype;_.g.Xg=function(a,b){try{this.W.tc(a,b);var c=new h_c;c.YB=!0;var d=b.requestId||"",e=_.Xh();c.listen("complete",this.o$a.bind(this,c,e,d,b.kCa,4===a.Nm));d&&b.YN&&!b.pN&&(this.O[d]=c,this.H[d]=b,c.Gb=!0,c.listen("uploadprogress",(0,_.v)(this.Lyb,this,b)),b.eRa||c.listen("downloadprogress",(0,_.v)(this.Jub,this,b)));c.send(a.uri,a.method,a.body,a.headers);return e.promise}catch(f){return _.Sh(_.sA(f))}};
_.g.cancel=function(a){var b=this.O[a];a=this.H[a];return b&&b.isActive()?(a.sna=!0,b.abort(),!0):!1};_.g.o$a=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;c&&(delete this.O[c],delete this.H[c]);c={headers:_.Mla(a),text:a.$k()};if(!d)try{c.json=_.fj(a)}catch(f){}d=_.BUc(a.Cb(),_.Jla(a),c.headers,c.text,c.json,a.O,_.Nla(a),String(a.oa),e);a.dispose();d?b.reject(_.sA(d)):b.resolve(c)};_.g.Lyb=function(a,b){b.lengthComputable&&this.V.notify([a.YN],a.eRa?b.loaded/b.total:b.loaded/b.total/2)};
_.g.Jub=function(a,b){b.lengthComputable&&this.V.notify([a.YN],b.loaded/b.total/2+.5)};
_.j_c=function(a,b,c,d,e,f,h){this.O=a;this.va=b;this.Ba=c;this.oa=d;this.ma=e;this.ha=f;this.H=h;this.V=[];this.ka=new MZc(this.O);this.W=new i_c(this.O,this.va)};_.g=_.j_c.prototype;
_.g.execute=function(a){for(var b=[],c=[],d=0;d<a.length;d++){var e=a[d].gv;this.V.push(e);b.push(this.Ba.iE(e,a[d].CB));c.push(OYc(e.request)?_.SYc(this.ma,e.request):void 0)}if(this.H&&this.H.V){var f=Promise.reject(_.sA(_.BUc(0,"",{},"",void 0,-99)));return a.map(function(){return f})}var h=new b_c(this.O,this.W,this.ka,this.H||void 0,this.ha||void 0);d=[];e={};for(var k=0;k<a.length;e={qra:e.qra},k++){e.qra=a[k].gv.config;var l=b[k].then(function(p){return function(q){return h.add(q,p.qra)}}(e));
d.push(l)}Promise.allSettled(b).then(function(){h.send()});b=[];for(e=0;e<a.length;e++)k=a[e].gv,l=d[e].then(this.Tmb.bind(this,k.request,c[e],a[e].CB)).then(null,function(p){return Promise.reject(_.sA(p))}),l.then(this.vMa.bind(this,k),this.vMa.bind(this,k)),b.push(l);return b};_.g.Tmb=function(a,b,c,d){a=this.oa.iE(a,d,c);b&&_.TYc(b,a.Gd?a.Gd():[]);return a};_.g.cancel=function(a){return this.W.cancel(a)};_.g.xJ=function(){return this.V.some(function(a){return _.UL(a.request)})};
_.g.vMa=function(a){_.sa(this.V,a)};
_.k_c=function(){};_.k_c.prototype.execute=function(){return null};
var l_c;l_c=function(a){this.H=a};_.OM=function(a,b){if(!_.Da(b))throw new _.kc("Expected an object, but got a "+_.Cfa(b)+".",_.aL(11,void 0,8));var c=b.kind;if(!c)throw new _.kc("Expected 'kind' parameter in response: "+JSON.stringify(b),_.aL(11,void 0,21));if(!a.includes(c))throw new _.kc("Expected "+a.join(" or ")+" but got a "+c+".",_.aL(11,void 0,9));};_.PM=function(a){return null!=a?(new Date(a)).getTime():void 0};
_.m_c=function(a){var b=null!=a.canDelete?a.canDelete:a.canDeleteTeamDrive;var c=_.CVc(new _.cl,a.canAddChildren);c=_.B(c,18,a.canChangeTeamDriveBackground);c=_.B(c,2,a.canComment);c=_.B(c,3,a.canCopy);b=_.LVc(_.GVc(_.MVc(_.NVc(_.OVc(_.KVc(_.JVc(_.FVc(_.EVc(_.DVc(c,b),a.canDownload),a.canEdit),a.canManageMembers),a.canManageVisitors),a.canMoveItemIntoTeamDrive),a.canMoveTeamDriveItem),a.canReadTeamDrive),a.canRemoveChildren),a.canRename);b=_.B(b,13,a.canRenameTeamDrive);b=_.PVc(_.IVc(_.HVc(b,a.canShare),
a.canTrash),a.canUntrash);b=_.B(b,27,a.canModifyContentRestriction);b=_.B(b,26,a.canShareOutsideDomain);b=_.SVc(_.RVc(_.QVc(_.B(b,30,a.canMoveItemWithinTeamDrive),a.canMoveItemOutOfTeamDrive),a.canMoveChildrenWithinTeamDrive),a.canMoveChildrenOutOfTeamDrive);b=_.B(b,34,a.canDeleteChildren);b=_.B(b,35,a.canTrashChildren);b=_.B(b,36,a.canRequestApproval);b=_.B(b,37,a.canReadCategoryMetadata);b=_.B(b,38,a.canEditCategoryMetadata);b=_.B(b,39,a.canChangeCategoryReferences);b=_.B(b,49,a.canSetMissingRequiredFields);
b=_.B(b,40,a.canAddMyDriveParent);b=_.B(b,41,a.canRemoveMyDriveParent);b=_.UVc(_.TVc(b,a.canShareChildFiles),a.canShareChildFolders);b=_.B(b,44,a.canRead);b=_.XVc(_.WVc(_.VVc(_.B(b,45,a.canMoveItemWithinDrive),a.canMoveItemOutOfDrive),a.canMoveChildrenWithinDrive),a.canAddFolderFromAnotherDrive);b=_.B(b,50,a.canChangeSecurityUpdateEnabled);b=_.B(b,51,a.canRemoveSecureLinkUpdateForAllFiles);b=_.B(b,52,a.canCreateDecryptedCopy);b=_.B(b,53,a.canCreateEncryptedCopy);b=_.B(b,54,void 0===a.canAddEncryptedChildren?
a.canAddChildren:a.canAddEncryptedChildren);return _.B(b,55,a.canBlockOwner)};_.QM=function(a,b){_.OM(["drive#user"],b);var c=_.AVc(_.BVc(_.yVc(1).Pb(b.permissionId),b.id).$c(b.displayName),b.emailAddress);b.picture&&c.Fn(b.picture.url);_.HK(a.H)&&_.AVc(c,b.emailAddressFromAccount||b.emailAddress);_.zVc(c,a.Pf(b.id));_.B(c,9,b.domain);return c};l_c.prototype.Pf=function(a){if(a)return _.iM(_.CK(this.H))==a};
var n_c,t_c,I_c,q_c,y_c,x_c,z_c,B_c,D_c,p_c,F_c,E_c,G_c,H_c,J_c,K_c,A_c;n_c=function(a,b){this.H=a;this.O=b};
_.r_c=function(a,b,c){var d=new _.IM,e=new _.gA,f=e.tw;_.OM(["drive#fileList","drive#file"],b);var h=[];if("drive#file"==b.kind)(a=_.o_c(a,b))&&h.push(a);else if("drive#fileList"==b.kind)for(var k=b.items||[],l=0;l<k.length;l++){var p=_.o_c(a,k[l]);h.push(p)}e=f.call(e,h);e=_.B(e,8,b.incompleteSearch);if("drive#fileList"==b.kind){_.OM(["drive#fileList"],b);if(h=b.spellResponse){f=[];var q=h.spellCorrections;for(h=0;h<q.length;h++){k=q[h].spellFragments;a=[];for(l=0;l<k.length;l++){p=k[l];var t=(new _.Eqb).Dc(p_c[p.status]);
t=_.B(t,1,p.original);p=_.B(t,3,p.correction);a.push(p)}k=new _.Iqb;a=_.Cb(k,1,a);f.push(a)}q=new _.Kqb;_.Cb(q,1,f)}if((f=b.suggestedNlpQueries)&&0<f.length){var u=new _.Gqb;_.B(u,1,f||[])}q||u?(f=new _.Lqb,q&&_.A(f,1,q),u&&_.A(f,2,u),u=f):u=null;_.A(e,7,u);_.zWc(e,q_c(b))}d=_.UYc(d,e);c=_.yUc(c);c=_.B(d,2,c);b.nextPageToken&&_.B(c,3,b.nextPageToken);return c};
t_c=function(a,b,c,d,e){_.OM(["drive#adminFile","drive#file","drive#revision"],b);var f=_.cXc(new _.TL,c);"drive#adminFile"==b.kind?(_.OM(["drive#adminFile"],b),c=(new _.hl).Pb(b.id),b.parentId&&_.bM(c,[b.parentId]),_.nWc(c,b.teamDriveId),f.setItem(c),_.cXc(f,c.getId())):"drive#file"==b.kind?(b=_.o_c(a,b),f.setItem(b),c||_.cXc(f,b.getId())):"drive#revision"==b.kind&&(b=_.s_c(a,b),_.A(f,4,b));f.Sca(_.xUc(d));f.Eca(_.yUc(d));(d=(d=d&&_.wUc(d))&&d["x-server-object-version"])&&e&&(e=(new _.nM).Pb(d),
_.A(f,4,e));f.Dc(1);return f};_.u_c=function(a,b){return _.cXc(new _.TL,a).Dc(1).Sca(_.xUc(b)).Eca(_.yUc(b))};_.w_c=function(a,b,c,d){d||_.OM(["drive#permissionList"],b);var e=[];b=b[c]||[];for(c=0;c<b.length;c++){var f=_.v_c(a,b[c],d);f&&e.push(f)}return e};
_.v_c=function(a,b,c){c||_.OM(["drive#permission"],b);c=_.zVc(_.BVc(_.yVc(x_c[b.type]).Pb(b.id),b.userId),a.H.Pf(b.userId));c=_.B(c,4,b.withLink);c=_.AVc(c.$c(b.name).Fn(b.photoLink),b.emailAddress);c=_.B(c,9,b.domain);c=_.B(c,10,b.deleted);c=_.B(c,12,b.audienceId);c=_.B(c,13,b.customerId);c.getId()||c.Pb(b.type+"|"+(b.domain||"")+"|"+b.withLink);_.HK(a.O)&&c.$c(b.nameIfNotUser);a=y_c[b.role];2==a&&b.additionalRoles&&"commenter"==b.additionalRoles[0]?a=4:2==a&&"published"==b.view&&(a=6);_.B(c,6,a);
return c};
_.o_c=function(a,b){_.OM(["drive#file"],b);var c=b.title,d=(new _.hl).Pb(b.id),e=[];if(b&&b.parents)for(var f=b.parents,h=0;h<f.length;h++)e.push(f[h].id);c=_.lWc(_.hWc(_.oF(_.bM(d,e).setTitle(c),b.mimeType),b.alternateLink),b.hasThumbnail);null!=b.thumbnailVersion&&_.B(c,90,Number(b.thumbnailVersion));_.B(c,21,b.iconLink);c.tm(b.description);_.iWc(c,b.explicitlyTrashed);_.B(c,22,b.shared);null!=b.quotaBytesUsed&&_.B(c,28,Number(b.quotaBytesUsed));null!=b.fileSize&&_.B(c,14,Number(b.fileSize));_.B(c,
30,b.copyable);b.labels&&(d=b.labels,c.jv(d.starred),_.B(c,6,d.hidden),c.Vm(d.trashed),_.eWc(c,d.restricted),_.B(c,9,d.viewed));_.B(c,10,_.PM(b.createdDate));_.B(c,69,_.PM(b.serverCreatedDate));_.vVb(c,_.PM(b.modifiedDate));_.B(c,12,_.PM(b.modifiedByMeDate));_.B(c,13,_.PM(b.lastViewedByMeDate));_.B(c,23,_.PM(b.sharedWithMeDate));_.B(c,62,_.PM(b.subscribedDate));_.B(c,70,_.PM(b.recency));b.recencyReason&&_.B(c,71,z_c[b.recencyReason]||0);d=[];if(b&&b.owners)for(e=b.owners,f=0;f<e.length;f++)(h=_.QM(a.H,
e[f]))&&d.push(h);_.fWc(c,d);b.lastModifyingUser&&(d=_.QM(a.H,b.lastModifyingUser),_.gWc(c,d));b.userPermission&&_.wVb(c,y_c[b.userPermission.role]);b.imageMediaMetadata&&(e=b.imageMediaMetadata,d=(new _.ZL).mh(e.width).jh(e.height),d=_.B(d,4,e.rotation),e.date&&(e=e.date,f=new _.ETc,f.setMilliseconds(0),A_c.parse(e,f),_.B(d,1,f.getTime())),_.A(c,27,d));null!=b.folderColor&&_.kWc(c,Number(b.folderColor));_.jWc(c,b.subscribed);_.B(c,45,b.fileExtension);_.B(c,50,b.folderFeatures||[]);_.B(c,36,b.flaggedForAbuse);
_.B(c,53,b.gplusMedia);_.B(c,46,b.primarySyncParentId||void 0);_.B(c,35,b.hasChildFolders);b.source&&(_.B(c,42,b.source.client_service_id),_.B(c,43,b.source.value));b.sharingUser&&(d=_.QM(a.H,b.sharingUser),_.A(c,47,d));b.sources?_.B(c,56,b.sources||[]):b.gplusMedia&&_.B(c,56,["GOOGLE_PHOTOS"]);if(b.spaces){d=b.spaces;e=[];for(f=0;f<d.length;f++)h=d[f],_.rRc[h]&&(h=_.Re(new _.Qe,_.rRc[h]),e.push(h));c.ty(e)}_.B(c,63,b.ownedByMe);_.B(c,29,b.shareable);b.sourceAppId&&_.B(c,61,b.sourceAppId);_.B(c,74,
b.changed);null!=b.recursiveFileSize&&_.B(c,77,Number(b.recursiveFileSize));null!=b.recursiveFileCount&&_.B(c,79,Number(b.recursiveFileCount));if(b.actionItems){d=b.actionItems;e=[];for(f=0;f<d.length;f++)if(h=d[f],h.id&&h.type){var k=(new _.Rna).Pb(h.id);h=_.B(k,2,B_c[h.type]);e.push(h)}_.Cb(c,83,e)}b.capabilities&&_.cM(c,_.m_c(b.capabilities));b.permissionsSummary&&_.oWc(c,_.C_c(a,b.permissionsSummary));b.headRevisionId&&_.B(c,78,b.headRevisionId);b.templateData&&(d=b.templateData,e=(new _.$L).tm(d.description),
e=_.B(e,3,D_c[d.galleryState]),d=_.B(e,2,d.category||[]),_.A(c,86,d));_.nWc(c,b.teamDriveId);_.B(c,76,b.hasAugmentedPermissions);_.B(c,137,b.ancestorHasAugmentedPermissions);b.creator&&(d=_.QM(a.H,b.creator),_.A(c,91,d));_.pWc(c,b.primaryDomainName);_.qWc(c,b.organizationDisplayName);_.B(c,94,b.passivelySubscribed);b.trashingUser&&(d=_.QM(a.H,b.trashingUser),_.A(c,95,d));c.Zca(_.PM(b.trashedDate));b.version&&_.B(c,75,Number(b.version));_.B(c,98,b.hasVisitorPermissions);_.B(c,102,b.hasAppsScriptAddOn);
(d=b.pairedDocType)&&_.B(c,101,E_c[d]);b.videoMediaMetadata&&(d=b.videoMediaMetadata,e=(new _.aM).mh(d.width).jh(d.height),d.durationMillis&&_.B(e,3,Number(d.durationMillis)),_.A(c,103,e));_.B(c,104,b.detectors||[]);_.B(c,108,b.containsUnsubscribedChildren);if(b.contentRestrictions){d=[];e=_.m(b.contentRestrictions);for(f=e.next();!f.done;f=e.next())f=f.value,f=_.$Vc(_.ZVc(new _.el,f.readOnly),f.reason),d.push(f);_.Cb(c,125,d)}if(d=b.publishingInfo)_.B(c,118,d.published),_.B(c,119,d.publishedUrl);
_.B(c,120,b.workspaceIds||[]);b.approvalMetadata&&b.approvalMetadata.approvalVersion&&_.B(c,126,b.approvalMetadata.approvalVersion);if(b.approvalMetadata&&b.approvalMetadata.approvalSummaries){d=[];e=_.m(b.approvalMetadata.approvalSummaries);for(f=e.next();!f.done;f=e.next())f=f.value,f=(new _.Tna).Pb(f.approvalId).Dc(F_c[f.status]),d.push(f);_.Cb(c,127,d)}b.shortcutDetails&&(d=b.shortcutDetails,e=new _.coa,e=_.B(e,1,d.targetId),e=_.B(e,3,d.targetMimeType),e=_.B(e,6,d.canRequestAccessToTarget),d.targetLookupStatus&&
_.B(e,4,G_c[d.targetLookupStatus]||0),d.targetFile&&(d=_.o_c(a,d.targetFile),_.A(e,5,d)),_.A(c,132,e));b.clientEncryptionDetails&&(d=b.clientEncryptionDetails,e=new _.YL,e=_.B(e,1,H_c[d.encryptionState]),d.decryptionMetadata&&(d=I_c(d.decryptionMetadata),_.A(e,2,d)),_.A(c,138,e));b.linkShareMetadata&&(d=b.linkShareMetadata,e=new _.Una,e=_.B(e,2,d.securityUpdateEligible),e=_.B(e,3,d.securityUpdateEnabled),d=_.B(e,5,d.securityUpdateExplicitlySet),_.A(c,139,d));_.B(c,140,b.resourceKey);_.B(c,135,b.authorizedAppIds||
[]);_.B(c,136,b.customerId);_.SUc(c);_.HK(a.O)&&_.mWc(c,5);return c};_.s_c=function(a,b){_.OM(["drive#revision"],b);var c=(new _.nM).Pb(b.id);c=_.B(c,2,b.mimeType);c=_.B(c,3,_.PM(b.modifiedDate));c=_.B(c,4,b.pinned);c=_.B(c,5,b.downloadUrl);c=_.B(c,7,b.originalFilename);null!=b.fileSize&&_.B(c,8,Number(b.fileSize));b.lastModifyingUser&&(a=_.QM(a.H,b.lastModifyingUser),_.A(c,9,a));b.decryptionMetadata&&(b=I_c(b.decryptionMetadata),_.A(c,10,b));return c};
_.C_c=function(a,b){a=_.cWc(_.bWc(_.aWc(new _.Yna,b.entryCount),_.w_c(a,b,"visibility",!0)),_.w_c(a,b,"selectPermissions",!0));a=_.B(a,4,b.memberCount);a=_.B(a,5,b.userEntryCount);return _.B(a,6,b.groupEntryCount)};I_c=function(a){var b=a.wrappedKey;var c=new _.YVc;b=b?_.JWc(b):void 0;c=_.B(c,1,b);c=_.B(c,2,Number(a.kaclsId));c=_.B(c,5,a.kaclsName);c=_.B(c,3,J_c[a.aes256GcmChunkSize]);c=_.B(c,6,K_c[a.keyFormat]);return _.B(c,4,a.jwt)};
q_c=function(a){_.OM(["drive#fileList"],a);var b=[];(a.items||[]).forEach(function(c){var d=c.id;!d||"1"!=c.searchResultSource&&"3"!=c.searchResultSource||b.push(d)});return b};y_c={fileOrganizer:7,organizer:5,owner:1,reader:2,writer:3};x_c={anyone:4,audience:5,domain:3,group:2,user:1};z_c={createdByMe:1,modifiedByMe:2,modified:3,viewedByMe:4};B_c={MENTION:0,SUGGESTION:1,ASSIGNMENT:2};D_c={UNAVAILABLE:1,AVAILABLE:2,PENDING:3};p_c={CORRECT:1,INCORRECT:2,SUSPICIOUS:3};
F_c={IN_PROGRESS:1,APPROVED:2,CANCELLED:3};E_c={docs:1,sheets:2,slides:3};G_c={ok:1,notFound:2,permissionDenied:3};H_c={unencrypted:1,encrypted:2};J_c={unset:0,"default":1,small:2,size16kb:3};K_c={unsetKeyFormat:0,tinkKeyset:1,tinkAesGcmKey:2};A_c=new _.tWa("yyyy:MM:dd HH:mm:ss");
var O_c;_.L_c=function(a){this.V=new l_c(a);this.QE=new n_c(this.V,a)};_.L_c.prototype.iE=function(a,b,c){c=void 0===c?[]:c;try{return M_c(this,a,b,c)}catch(d){_.cL(d)}};
var M_c=function(a,b,c,d){var e=a.ha(b,c);if(e)return e;if(b instanceof _.jL)return _.N_c(a,b,c);if(b instanceof _.sL)return O_c(0,c,d);if(b instanceof _.yz){if(!c.json)throw _.RM();return _.r_c(a.QE,c.json,c.headers)}if(b instanceof _.QL)return _.N_c(a,b,c);if("undefined"!=typeof _.cVc&&b instanceof _.cVc){if(!c.json)throw _.RM();a=c.json;return new _.rXc(a.fileId,a.jwt,Number(a.currentKaclsId),a.currentKaclsName,a.customerId)}if("undefined"!=typeof _.P_c&&b instanceof _.P_c){if(!c.json)throw _.RM();
return _.s_c(a.QE,c.json)}if(b instanceof _.FL)return O_c(b.yd(),c,d);if(b instanceof gVc){if(b.V){if(!c.json)throw _.RM();a=t_c(a.QE,c.json,null,c.headers,!!b.revisionId)}else a=_.u_c(null,c.headers);return a}if(b instanceof fVc){a=_.wUc(c.headers);b=a.location;if(!b)throw a=_.$K(new _.jc,10),new _.kc("No upload session URI included.",a);return new sXc(b,_.xUc(a),_.yUc(a))}if(b instanceof _.kVc)return new tXc;throw new _.kc("FromXhrConverter: Unsupported request type.",new _.jc);};
_.L_c.prototype.ha=function(){return null};O_c=function(a,b,c){return"base64"===b.headers["x-goog-safety-encoding"]?new uXc(_.Aaa(b.text),c.length):new uXc(new Uint8Array(_.cma(b.text)),c.length)};_.N_c=function(a,b,c){if(!c.json){if(b instanceof _.TK)return _.u_c(_.Q_c(b));throw _.RM();}var d=!1;b instanceof _.QL&&(d=!!_.C(b.request,12));return t_c(a.QE,c.json,_.Q_c(b),c.headers,d)};_.RM=function(){var a=_.$K(new _.jc,11);return new _.kc("FromXhrConverter: JSON required, but none found",a)};
_.Q_c=function(a){return a.getId?a.getId():a.Kc?a.Kc():null};
var U_c,V_c,X_c,R_c,Y_c,S_c;
U_c=function(a,b){var c={};_.Xd(_.Jg(a.getTitle()))||(_.C(a,12)?c.originalFilename=a.getTitle():c.title=a.getTitle());if(a.getMimeType()&&(c.mimeType=a.getMimeType(),a.Kc()&&_.sea(a.getMimeType())&&b)){var d=b.V(),e=b.O(),f={encryptionState:"encrypted"},h={};f.decryptionMetadata=(h.wrappedKey=_.yj(b.ha()),h.kaclsId=b.ma(),h.aes256GcmChunkSize=R_c[d?d.O():0],h.keyFormat=S_c[e?e.O():0],h);c.clientEncryptionDetails=f}_.T_c(c,_.Id(a,3));(b=a.Kc())&&(c.id=b);_.C(a,16)&&(c.embeddingParent=_.C(a,16));a.n1()&&
(c.shortcutDetails={},c.shortcutDetails.targetId=a.n1());"number"===typeof _.C(a,26)&&(c.modifiedDate=_.yWc(_.yXc(_.C(a,26)||0)));return c};_.T_c=function(a,b){if(b.length){a.parents=[];for(var c=0;c<b.length;c++){var d={};d.id=b[c];a.parents.push(d)}}};V_c={};_.W_c=(V_c[1]="active",V_c[2]="archived",V_c);X_c={};R_c=(X_c[0]="unset",X_c[1]="default",X_c[2]="small",X_c[3]="size16kb",X_c);Y_c={};S_c=(Y_c[0]="unsetKeyFormat",Y_c[1]="tinkKeyset",Y_c[2]="tinkAesGcmKey",Y_c);
var a0c=function(a,b,c){return(a.RP?a.RP(0,a.file.size):Promise.resolve(a.file)).then(function(d){return qZc(d)}).then(function(d){return Z_c(a,b,d,c)},$_c)},Z_c=function(a,b,c,d){var e=!!_.C(a.request,12),f="files";e&&(f+="/"+_.C(a.request,12));f=new _.gj(f);_.qj(f,"uploadType","multipart");_.qj(f,"supportsTeamDrives",!0);_.qj(f,"pinned",!!_.E(a.request,13,!1));null!=_.L(a.request,8)&&_.qj(f,"convert",_.L(a.request,8));_.qj(f,"fields",_.NUc({fields:_.qM(b).filter(function(q){return 194!=q}),Wq:!1}));
UUc(f,a.request.te());var h=U_c(a.request,a.metadata),k=_.Kg();b={};b=(b["content-type"]=_.kt('multipart/related; boundary="%s"',k),b);var l=c.indexOf(",");c=0<=l?c.substring(l+1):"";h=JSON.stringify(h);l={};l=(l["content-type"]="application/json; charset=UTF-8",l);var p={};p=(p["content-transfer-encoding"]="base64",p);a.request.getMimeType()&&(p["content-type"]=a.request.getMimeType());_.WL(d,_.ek(a.request,_.wl,28),[],null,b);a="--"+k;a=a+"\r\n"+TUc(l)+"\r\n"+h+"\r\n"+a+"\r\n"+TUc(p)+"\r\n"+c+"\r\n"+
a+"--";return{Nm:2,headers:b,method:e?"PUT":"POST",uri:f,body:a}},$_c=function(a){if(a instanceof _.Ttb){var b=new _.jc;_.iq(b,"fs.Error: "+a.message);a=(a=a.name)?_.lGa.get(a)||25:38;_.$K(b,a);a=_.sA(b)}return Promise.reject(a)};
_.SM=function(a,b,c,d){this.H=a;this.Mg=b;this.O=c;this.zd=d;this.ka=_.SK(a)||new _.ZTc};_.SM.prototype.iE=function(a,b){try{return a.request instanceof _.QL?a0c(a.request,this.Mg,this.H):Promise.resolve(this.V(a.request,a.config,b))}catch(c){return c instanceof _.kc?a=c.Ug:(a=new _.jc,_.iq(a,"Error converting XHR: "+c.message),_.jq(a,c.stack),_.$K(a,4)),Promise.reject(a)}};
_.SM.prototype.V=function(a,b,c){var d=0,e,f={},h="GET",k={},l=!1,p=!1;if(a instanceof _.jL){h=(e=!!_.C(a,12))?"PUT":"POST";var q="files";e&&(q+="/"+_.C(a,12),k.pinned=!!_.E(a,13,!1));null!=_.L(a,8)&&(k.convert=_.L(a,8));k.fields=_.NUc({fields:this.Gg(c),Wq:_.BK(_.CK(this.H)),aG:_.HK(this.H)});e=U_c(a);f["content-type"]="application/json";var t=a.te();p=!0;_.pM(k);_.b0c(this.H,k);_.WL(this.H,_.ek(a,_.wl,28),_.Id(a,3).concat([_.C(a,16),a.n1(),a.Kc()]),this.O,f)}else if(a instanceof _.sL||a instanceof
_.FL)a instanceof _.FL?(l=a.yd(),_.S(a,2)&&(q="bytes="+_.C(a,2)+"-",_.S(a,3)&&(q+=_.C(a,3)),f.range=q)):l=a,q="files/"+l.getId(),_.C(l,2)&&(k.revisionId=_.C(l,2)),k.alt="media",f["X-Goog-Encode-Response-If-Executable"]="base64",_.WL(this.H,[_.xl((new _.wl).Pb(l.getId()),_.C(l,3))],[l.getId()],this.O,f),p=l=!0;else if(a instanceof _.yz)p=a.Am()[0],q="files/"+p,t=_.ua(this.Gg(c),this.Gg(c,a.O())),_.Fa(t),k.fields=_.NUc({fields:t,Wq:_.BK(_.CK(this.H)),aG:_.HK(this.H)}),_.pM(k),_.c0c(this.H,k),_.d0c(this.H,
k),this.W(p,k),t=a.te(),p=!0,_.L(a,7)&&(b.kCa=!0),_.WL(this.H,_.ek(a,_.wl,11),a.Am(),this.O,f);else if("undefined"!=typeof _.cVc&&a instanceof _.cVc)q="files/generateCseToken",a.id&&(k.fileId=a.id),k.role=a.role,t=a.H;else if("undefined"!=typeof _.P_c&&a instanceof _.P_c)k.fields="kind,id,modifiedDate,originalFilename,fileSize,mimeType,decryptionMetadata(wrappedKey,kaclsId,aes256GcmChunkSize,jwt,keyFormat)",q="files/"+a.id+"/revisions/"+a.revisionId,p=l=!0;else if(a instanceof gVc){d=4;h="PUT";q=
a.W;a.contentType&&(f["content-type"]=a.contentType);if(a.O>=a.H){var u=a.H;b=a.O;f["content-range"]=a.V?_.kt("bytes %d-%d/%d",u,b,b+1):_.kt("bytes %d-%d/*",u,b)}u=a.blob;p=!0}else a instanceof fVc?(d=2,h=(e=!!_.C(a.request,12))?"PUT":"POST",q="files",e&&(q+="/"+_.C(a.request,12)),k.uploadType="resumable",k.pinned=!!_.E(a.request,13,!1),null!=_.L(a.request,8)&&(k.convert=_.L(a.request,8)),k.fields=_.NUc({fields:this.Gg(c).filter(function(y){return 194!=y}),Wq:_.BK(_.CK(this.H)),aG:_.HK(this.H)}),
_.pM(k),e=U_c(a.request,a.metadata),f["content-type"]="application/json",null!=a.request.getMimeType()&&(f["x-upload-content-type"]=a.request.getMimeType()),_.WL(this.H,[],_.Id(a.request,3),this.O,f),t=a.request.te(),p=!0):a instanceof _.kVc?(q="about",k.fields="kind",t=a.H,p=!0):_.e0c(a);p&&_.f0c(c,k);0!=d||l||t&&_.C(t,1)||_.mYc(this.zd,74438989);return _.g0c(this,d,q,k,f,h,t,e,u)};
_.g0c=function(a,b,c,d,e,f,h,k,l){c=new _.gj(c);[10,12,13].includes(b)||UUc(c,h);_.E(a.ka,11,!1)&&(a=a.H.Gi())&&(e["X-Goog-Drive-Client-Version"]=a);d=_.m(Object.entries(d));for(a=d.next();!a.done;a=d.next())h=_.m(a.value),a=h.next().value,h=h.next().value,_.rj(c,a,h);return{Nm:b,headers:e,method:f,uri:c,body:k?JSON.stringify(k):l}};_.c0c=function(a,b){_.E(a.Sf(),23,!1)&&(b.includePermissionsForView="published")};_.SM.prototype.W=function(){};
_.d0c=function(a,b){_.E(a,14,!1)&&(b.useLegacyDomainPermissionBehavior=!1)};_.b0c=function(a,b){_.E(a,3,!1)&&(b.enforceSingleParent=!0)};_.f0c=function(a,b){a&&a.length?(b.retryCount=a.length,b.msSinceLastAttempt=Date.now()-_.ha(a).FPb):b.retryCount=0};_.SM.prototype.Gg=function(a,b){b||(b=_.qM(this.Mg));0<a.length&&(b=b.slice(0),_.jaa(b,function(c){return aXc.includes(c)}));return b};_.e0c=function(a){var b=_.$K(new _.jc,4);throw new _.kc("ToXhrConverter: Unsupported request type: "+mVc(a),b);};
_.VM=function(a,b,c,d,e,f){_.yi.call(this);var h=this;this.O=a;this.V=b;this.Ba=c;this.W=d;this.va=e;this.oa=f;this.aj={};this.ha={};this.zd=null;_.te(this,function(){h.KF()})};_.O(_.VM,_.yi);_.VM.prototype.WP=function(){return _.Lg()};
_.VM.prototype.upload=function(a,b,c,d){RYc(this.V,"UploadTotalCount");var e=a.Zi();if(e&&this.aj[e])throw new _.kc("Upload requested with a duplicate request ID.");var f=_.Id(a,10);if(f&&f.length){if(1!==f.length)throw new _.kc("Multi-parented uploads are not supported.");var h=this.aj[f[0]];if(!h)throw new _.kc("The parent upload request must precede this request.");}!_.C(a,26)&&b&&b.lastModified&&_.B(a,26,b.lastModified);e||(e=this.WP(),_.B(a,9,e));a=a.clone();f=h0c(this,e);this.aj[e]={request:a,
file:b,og:f,lM:!1,gu:0,success:!1,gE:!1,children:[],metadata:c,Cla:void 0,RP:d};h?i0c(this,e,h):this.ka(e);return f.Om()};
var h0c=function(a,b){var c=new _.$h;c.Mf(_.rb(a.Fa,b),_.rb(a.Ha,b),a);return c},i0c=function(a,b,c,d){var e=a.aj[b];c.children.push(b);_.Fa(c.children);c.og.then(function(f){if(1===f.Cb()&&(f=f.Kc(),_.Id(e.request,3).push(f),_.ZG(e.request,10),!c.gE||d)){a.ka(b);return}a.log('[Cancel] Upload of "'+e.request.getTitle()+'" was cancelled due to parent upload cancellation.');a.cancel(b)},function(f){e.og.Kd(_.GK(f)?f:Error(f))})};
_.VM.prototype.Fa=function(a,b){RYc(this.V,"UploadSuccessCount");a=this.aj[a];a.success=1===b.Cb();(b=a.Cla)&&!a.gE&&(SWc(UWc(PXc(b),a.gu),!0),b.Tj())};_.VM.prototype.Ha=function(a,b){var c=_.D(this.O,_.ZK,58);c&&_.E(c,1,!1)&&(this.ha[a]=b);RYc(this.V,"UploadFailureCount");c=this.aj[a];(a=c.Cla)&&!c.gE&&(SWc(UWc(PXc(a),c.gu),!1),b=(c=b&&b.Ug)&&c.mk(),c=c&&c.xp(),b?TWc(PXc(a),j0c.get(b)||13):c&&TWc(PXc(a),k0c.get(c)||0),a.Tj())};
_.VM.prototype.ka=function(a){var b=this.aj[a];if(!b.lM){b.lM=!0;a=this.aj[a];var c=a.request,d=_.D(this.O,_.ZK,58);d&&_.E(d,4,!1)&&(d=c.getTitle().match(l0c))&&(!d[1]||a.gu<Number(d[1].substr(1)))&&(c=c.clone(),_.pa(_.Id(c,3),"$#@! Invalid parent ID."));a=c;c=(c=b.request.iz())?_.C(c,1)||0:0;var e=b.file&&b.file.size||c;c=this.O.Sf();d=_.Pj(c,33,1048576);d=b.file&&b.file&&e>d?2:b.file?1:3;if(this.oa&&3!==d){var f=this.oa.H(106012);if(f){b.Cla=f;f=PXc(f);f=_.B(f,1,2===d?2:1);f=_.B(f,4,!!b.metadata);
var h=!!_.C(a,12);f=_.B(f,5,h);e=_.B(f,6,e);c=_.Pj(c,32,1073741824);_.B(e,7,c)}}switch(d){case 2:b.file&&m0c(this,new _.hVc(a,b.file,b.RP,b.metadata),b.og,a.Zi());break;case 1:b.file&&(c=b.og,d=b.file,e=b.metadata,b=b.RP,f=_.D(this.O,_.xVc,2),m0c(this,new _.QL(a,d,b,f&&_.XL(f)?e:void 0),c,a.Zi()));break;case 3:m0c(this,a,b.og,a.Zi());break;default:throw new _.kc("Upload type ${uploadType} not supported.");}}};
var m0c=function(a,b,c,d){vYc(a.Ba,d,a.ma.bind(a,d));_.Yh(a.W.then(function(e){return e.Ve(b,{requestId:d})}).then(null,function(e){return n0c(a,b,e)}),function(){wYc(a.Ba,[d])}).then(c.callback,c.Kd,c)},n0c=function(a,b,c){var d=_.sA(c),e=b instanceof _.QL&&b.request.Kc()||"";c=d.Ug;if(e&&8===c.mk()){a.log("Create failed with 409 Conflict, re-querying: "+e);var f=_.Az(new _.yz,[e]);return _.fi(a.W.then(function(h){return h.Ve(f)}).then(function(h){h=h.ud().Gd()[0];var k=b.request;if(h&&!h.Nh()&&
(h.getMimeType()||"").replace(/\s/g,"")===(k.getMimeType()||"").replace(/\s/g,"")&&h.getTitle()===k.getTitle())return a.log("Matching item found for: "+e),_.cXc((new _.TL).setItem(h),e).Dc(1);a.log("No matching item found for: "+e);return _.Sh(d)}))}return _.gi(d)};_.g=_.VM.prototype;
_.g.cancel=function(a){var b=this,c=this.aj[a];if(c&&(!c.gE||0!==c.children.length))if(c.gE=!0,c.og.Wf())this.log('[Cancel] Response for "'+c.request.getTitle()+'" already received. Cannot cancel.'+(c.children.length?" Attempting to cancel children.":"")),_.Ka(c.children,this.cancel,this);else{var d=c.Cla;d&&(TWc(SWc(UWc(PXc(d),c.gu),!1),2),d.Tj());var e=_.Xh();c.lM?this.W.then(function(f){return void e.resolve(f.cancel(a))}):(c.lM=!0,d=new _.TL,d.Dc(8),c.og.callback(d),e.resolve(!0));e.promise.then(function(f){return b.log('[Cancel] Upload of "'+
c.request.getTitle()+'" was '+(f?"cancelled.":"in-flight. Cannot cancel."))})}};_.g.KF=function(){var a=this;_.Na(this.aj,function(b,c){a.cancel(c)})};
_.g.retry=function(a){var b=this,c=new Set(a),d=[],e={};a.forEach(function(f){if(!e[f])if(b.aj[f]){var h=[];do{h.push(f);var k=(_.Id(b.aj[f].request,10)||[])[0];if(k){var l=b.aj[k];if(l.success||!l.og.Wf()||e[k])break;else if(!c.has(k)){e[f]=new _.kc("Unable to retry request due to failed parent upload.");break}}f=k}while(f);_.ia(h,function(p){var q=b.aj[p];q.gu++;if(!e[p])if(!q.og.Wf()||q.success)e[p]=new _.kc("Unable to retry request.");else{var t=(_.Id(q.request,10)||[])[0];e[t]instanceof _.kc?
e[p]=e[t]:(q.og=h0c(b,p),q.lM=!1,q.gE=!1,(t=t?b.aj[t]:null)?i0c(b,p,t,!0):d.push(p),e[p]=q.og.Om())}})}else e[f]=new _.kc("Retry request with unknown ID.")});a=a.map(function(f){f=e[f];return f instanceof _.$h?f:_.gi(f)});_.Ka(d,this.ka,this);return a};_.g.log=function(){this.isDisposed()};_.g.yd=function(a){return this.aj[a]};var l0c=/^uploadTestFailMe(\.[1-9])?$/,k0c=new Map([[2,12],[5,1],[27,3],[29,4],[30,5],[31,6],[35,7],[36,8],[37,9],[38,10],[25,11]]),j0c=new Map([[3,14]]);

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy17w");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy17x");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy17y");

_.w();

}catch(e){_._DumpException(e)}
try{
_.WM=function(a,b){return _.B(a,33,b||[])};_.o0c=function(a,b){return _.Cb(a,37,b)};_.XM=function(a,b){return _.B(a,45,b)};_.lc=function(a){_.oi.call(this,_.wc);this.error=a};_.O(_.lc,_.oi);_.r("sy17z");
_.p0c=new Map([[5,2],[4,3],[3,1],[2,4]]);

_.w();

}catch(e){_._DumpException(e)}
try{
var q0c;q0c=[1];_.YM=function(a){_.Q(this,a,-1,q0c,null)};_.O(_.YM,_.N);_.YM.prototype.O=function(){return _.Id(this,1)};_.r("sy17v");
var r0c;_.ZM=function(a){_.Q(this,a,-1,r0c,null)};_.O(_.ZM,_.N);_.ZM.prototype.Cb=function(){return _.C(this,1)};_.ZM.prototype.Dc=function(a){return _.B(this,1,a)};_.ZM.prototype.ak=function(){return _.ek(this,_.hl,2)};_.s0c=function(a,b){return _.Cb(a,2,b)};_.ZM.prototype.Vq=function(a,b){return _.gk(this,2,a,_.hl,b)};_.ZM.prototype.Hf=function(){return _.C(this,4)};_.t0c=function(a,b){return _.B(a,4,b)};r0c=[2];

_.w();

}catch(e){_._DumpException(e)}
try{
_.$M=function(a,b){_.B(a,1,b)};_.r("sy181");

_.w();

}catch(e){_._DumpException(e)}
try{
_.v0c=function(a){return _.je(a).Gg(_.E(a.get(_.yp),19,!1)?u0c:_.he)};_.r("sy183");
var u0c=[9,42,41,44,38,20,21,16,12,3,10,11,18,14,32,1,67,68,210,7,24,25,159,154,158,155,55,4,83,19,2,6,27];

_.w();

}catch(e){_._DumpException(e)}
try{
var w0c,x0c,y0c,z0c,A0c,B0c,C0c,D0c,E0c,F0c,H0c,I0c,J0c,K0c,L0c,bN,Q0c,R0c,cN,dN,S0c,T0c,V0c,W0c,X0c,Z0c,$0c,a1c,b1c,c1c,d1c,e1c,g1c,i1c,o1c,q1c,t1c,u1c,x1c,A1c,jN,B1c,C1c,D1c,E1c,F1c,G1c,H1c,J1c,K1c,L1c,M1c,P1c,O1c,S1c,U1c,W1c,Y1c,b2c,d2c,e2c,f2c,g2c,h2c,k2c,m2c,n2c,o2c,p2c,q2c,N0c,eN,M0c,O0c,P0c,H3c,I3c,pN,L3c,W3c,Z3c,$3c,a4c,N1c,d4c,rN,A4c,B4c,C4c,D4c,F4c,G4c,H4c,I4c,J4c,sN,K4c,L4c,M4c,N4c,O4c,P4c,Q4c,R4c,S4c,T4c,U4c,V4c,Y4c,Z4c,$4c,I1c,a5c,b5c,i5c,k5c,l5c,c6c,m6c,n6c,o6c,p6c,s6c,u6c,E6c,H6c,I6c,
P6c,Z6c,r7c,y7c,F7c,J7c,P7c,g8c,i8c,j8c,A8c,B8c,a2c,C8c,y9c,l1c,z9c,C9c,Ecd,Fcd,Gcd,Hcd,Icd,Jcd,Kcd,Lcd,Mcd,Ncd;w0c=function(a){a={Title:a.getTitle(),Type:a.getMimeType(),Parents:_.Id(a,3),Convert:_.L(a,8),ID:a.Zi()};var b=[];_.Na(a,function(c,d){c&&b.push(d+": "+c)});return b.join("; ")};
x0c=function(a){var b=[];b.push(w0c(a.request));if(a.file){var c=[];c.push("Size: "+a.file.size);a.file.type&&c.push("Type: "+a.file.type);a.file.lastModifiedDate&&c.push("Last modified: "+a.file.lastModifiedDate);b.push("File: "+c.join("; "))}a.gu&&b.push("# of retries by client: "+a.gu);var d="";a.lM?a.og.Wf()?a.og.Mf(function(){d="Completed successfully."},function(e){d=e instanceof _.ai?"Canceled.":"Completed with failure. See attachment."}):d="In progress.":d="Not yet executed.";b.push("State: "+
d);return b.join("\n")};
y0c=function(a,b,c,d,e,f){var h=_.kt("Drive Upload Report: %d/%d failed",_.Ra(f),_.Ra(e));a=a.Sf();d.push("Batch query interval: "+_.Pj(a,12,10)+"ms");d.push("Max resumable upload chunk size: "+_.Pj(a,32,1073741824)/1024/1024+" MiB");d.push("Max batch upload file size: "+_.Pj(a,33,1048576)/1024/1024+" MiB");d.push("Max files in an upload batch: "+_.Pj(a,35,10)+" files");d.push("Max files in a non-upload batch: "+_.Pj(a,10,50)+" files");d=d.join("\n");var k=[],l=[];_.Na(e,function(p){l.push(x0c(p))});k.push({name:"AllUploadRequests.txt",
content:l.join("\n---------\n")});k.push({name:"DataserviceLogs.txt",content:_.qXc(b)});_.Na(f,function(p,q){var t=k.push;q=e[q].request;q=_.kt('ErrorResponseFor"%s"(ID:%s).txt',q.getTitle()||"",q.Zi()||"");var u=p.Ug;u=u?_.C(u,4):"No detail.";t.call(k,{name:q,content:p.toString()+"\n"+u})});return{title:h,description:d,GP:k,Cd:152391,S8:c,Y_:361003}};z0c=function(a){return Array.prototype.concat.apply([],arguments)};A0c=function(a,b,c){c=_.Ha(a,b,c);return 0>c?(_.ya(a,-(c+1),0,b),!0):!1};
B0c=function(a){return String.fromCharCode(10>a?48+a:87+a)};C0c=function(a){var b=Array(18);b[0]="0";b[1]="x";for(var c=0;8>c;c++){var d=a.charCodeAt(7-c);b[2*c+2]=B0c(d>>4);b[2*c+3]=B0c(d&15)}return b.join("")};D0c=function(a){var b=new _.qp;b.append("kind,largestChangeId,nextPageToken,");b.append("items(deleted,fileId,id,kind,");b.append(_.dL(a,!0,"file"));a.X6&&(b.append(",teamDriveId,teamDrive("),b.append(a.X6),b.append(")"));b.append(")");return b.toString()};
E0c=function(a){var b=new _.qp;b.append("kind,nextPageToken,items(");b.append(_.dL(a,!0));b.append("),incompleteSearch");a.X6&&(b.append(","),b.append(a.X6));return b.toString()};
F0c=function(a,b){for(var c=0;c<b.length;c++){var d=a,e=b[c],f=d.getCapabilities(),h=_.D(d,_.YL,138),k=_.D(d,_.el,111),l=_.D(d,_.ZL,27),p=_.nl(d),q=d.yf(),t=d.xh(),u=_.D(d,_.aM,103);switch(e){case 74:_.Wj(d,83);break;case 188:_.Tj(d,137);break;case 149:_.ZG(d,128);break;case 148:_.Wj(d,127);break;case 138:_.Tj(d,126);break;case 184:_.ZG(d,135);break;case 76:f&&_.Tj(f,1);break;case 223:f&&_.Tj(f,54);break;case 208:f&&_.Tj(f,48);break;case 185:f&&_.Tj(f,40);break;case 224:f&&_.Tj(f,55);break;case 213:f&&
_.Tj(f,50);break;case 156:f&&_.Tj(f,39);break;case 61:f&&_.Tj(f,2);break;case 216:f&&_.Tj(f,52);break;case 217:f&&_.Tj(f,53);break;case 77:f&&_.Tj(f,4);break;case 134:f&&_.Tj(f,34);break;case 147:f&&_.Tj(f,38);break;case 81:f&&_.Tj(f,10);break;case 82:f&&_.Tj(f,11);break;case 114:f&&_.Tj(f,27);break;case 133:f&&_.Tj(f,33);break;case 202:f&&_.Tj(f,47);break;case 132:f&&_.Tj(f,32);break;case 101:f&&_.Tj(f,20);break;case 201:f&&_.Tj(f,46);break;case 131:f&&_.Tj(f,31);break;case 200:f&&_.Tj(f,45);break;
case 130:f&&_.Tj(f,30);break;case 93:f&&_.Tj(f,17);break;case 191:f&&_.Tj(f,44);break;case 146:f&&_.Tj(f,37);break;case 90:f&&_.Tj(f,16);break;case 78:f&&_.Tj(f,7);break;case 186:f&&_.Tj(f,41);break;case 222:f&&_.Tj(f,51);break;case 85:f&&_.Tj(f,12);break;case 137:f&&_.Tj(f,36);break;case 209:f&&_.Tj(f,49);break;case 79:f&&_.Tj(f,8);break;case 189:f&&_.Tj(f,42);break;case 190:f&&_.Tj(f,43);break;case 80:f&&_.Tj(f,9);break;case 135:f&&_.Tj(f,35);break;case 102:f&&_.Tj(f,21);break;case 69:_.Tj(d,74);
break;case 194:h&&_.Uj(h,2);break;case 193:h&&_.Tj(h,1);break;case 1004:_.Tj(d,108);break;case 136:_.Wj(d,125);break;case 115:k&&_.Tj(k,1);break;case 116:k&&_.Tj(k,2);break;case 34:_.Tj(d,30);f&&_.Tj(f,3);break;case 9:_.Tj(d,10);break;case 91:_.Uj(d,91);break;case 43:_.Tj(d,42);_.Tj(d,43);break;case 187:_.Tj(d,136);break;case 26:_.Tj(d,24);break;case 108:_.ZG(d,104);break;case 41:_.Tj(d,40);f&&_.Tj(f,5);break;case 42:_.Tj(d,41);break;case 1005:_.Wj(d,117);break;case 59:f&&_.Tj(f,6);break;case 28:_.Tj(d,
26);break;case 44:_.Tj(d,45);break;case 13:_.Tj(d,14);break;case 48:_.Tj(d,36);break;case 38:_.Tj(d,34);break;case 49:_.ZG(d,50);break;case 51:_.Tj(d,53);break;case 104:_.Tj(d,102);break;case 39:_.Tj(d,35);break;case 87:_.Tj(d,76);break;case 100:_.Tj(d,98);break;case 72:_.Tj(d,78);break;case 5:_.Tj(d,6);break;case 20:_.Tj(d,21);break;case 21:break;case 29:l&&_.Tj(l,1);break;case 31:l&&_.Tj(l,3);break;case 92:l&&_.Tj(l,4);break;case 30:l&&_.Tj(l,2);break;case 16:_.Uj(d,17);break;case 12:_.Tj(d,13);
break;case 211:p&&_.Tj(p,2);break;case 212:p&&_.Tj(p,3);break;case 220:p&&_.Tj(p,5);break;case 157:t&&_.Wj(t,8);break;case 3:_.Tj(d,4);break;case 11:_.Tj(d,12);break;case 10:_.Tj(d,11);break;case 50:_.Tj(d,49);_.Tj(d,51);_.Uj(d,81);break;case 18:_.Tj(d,19);break;case 95:_.Tj(d,93);break;case 58:_.Tj(d,63);break;case 14:_.Wj(d,15);break;case 103:_.Tj(d,101);break;case 1:_.ZG(d,2);break;case 96:_.Tj(d,94);break;case 1003:_.Wj(d,107);break;case 75:_.Uj(d,85);break;case 94:_.Tj(d,92);break;case 45:_.Tj(d,
46);break;case 124:_.Tj(d,118);break;case 125:_.Tj(d,119);break;case 1002:_.Uj(d,100);break;case 32:_.Tj(d,28);break;case 67:_.Tj(d,70);break;case 68:_.Tj(d,71);break;case 73:_.Tj(d,79);break;case 71:_.Tj(d,77);break;case 221:t&&_.Tj(t,9);break;case 210:_.Tj(d,140);break;case 7:_.Tj(d,8);break;case 122:_.Uj(d,109);break;case 66:_.Tj(d,69);break;case 33:_.Tj(d,29);break;case 24:_.Tj(d,22);break;case 25:_.Tj(d,23);break;case 46:_.Uj(d,47);break;case 192:q&&_.Tj(q,6);break;case 159:q&&_.Uj(q,5);break;
case 154:q&&_.Tj(q,1);break;case 158:q&&_.Tj(q,4);break;case 155:q&&_.Tj(q,3);break;case 52:_.ZG(d,56);break;case 56:_.Tj(d,61);break;case 55:_.Wj(d,60);break;case 4:_.Tj(d,5);break;case 35:_.Tj(d,31);break;case 57:_.Tj(d,62);break;case 83:_.Tj(d,72);break;case 84:_.Uj(d,86);break;case 19:_.Tj(d,20);_.Tj(d,44);_.Tj(d,90);break;case 2:_.Tj(d,3);break;case 6:_.Tj(d,7);break;case 98:_.Tj(d,96);break;case 97:_.Uj(d,95);break;case 27:_.Tj(d,25);break;case 70:_.Tj(d,75);break;case 107:u&&_.Tj(u,3);break;
case 106:u&&_.Tj(u,2);break;case 105:u&&_.Tj(u,1);break;case 8:_.Tj(d,9);break;case 126:_.ZG(d,120);break;default:throw Error("Ac`"+e);}}};H0c=function(a,b){if(0!=a.length){var c=new Set([].concat(_.jd(a),_.jd(G0c)));a=[].concat(_.jd(_.G6a.keys())).filter(function(e){return!c.has(e)});for(var d=0;d<b.length;d++)F0c(b[d],a)}};
I0c=function(a,b){var c=a.getCapabilities()||new _.cl,d=_.D(a,_.YL,138),e=_.D(a,_.el,111),f=_.D(a,_.ZL,27),h=_.nl(a),k=a.yf(),l=a.xh(),p=_.D(a,_.aM,103);switch(b){case 74:return 0<a.Kr().length;case 188:return null!=_.L(a,137);case 149:return 0<_.Id(a,128).length;case 148:return 0<a.ha().length;case 138:return null!=a.V();case 184:return 0<_.Id(a,135).length;case 76:return null!=_.dl(c);case 223:return null!=_.L(c,54);case 208:return null!=_.L(c,48);case 185:return null!=_.L(c,40);case 224:return null!=
_.L(c,55);case 213:return null!=_.L(c,50);case 156:return null!=_.L(c,39);case 61:return null!=_.L(c,2);case 216:return null!=_.L(c,52);case 217:return null!=_.L(c,53);case 77:return null!=_.L(c,4);case 134:return null!=_.L(c,34);case 147:return null!=_.L(c,38);case 81:return null!=_.L(c,10);case 82:return null!=_.L(c,11);case 114:return null!=_.L(c,27);case 133:return null!=_.L(c,33);case 202:return null!=_.L(c,47);case 132:return null!=_.L(c,32);case 101:return null!=_.L(c,20);case 201:return null!=
_.L(c,46);case 131:return null!=_.L(c,31);case 200:return null!=_.L(c,45);case 130:return null!=_.L(c,30);case 93:return null!=_.L(c,17);case 191:return null!=_.L(c,44);case 146:return null!=_.L(c,37);case 90:return null!=_.ee(c);case 78:return null!=_.L(c,7);case 186:return null!=_.L(c,41);case 222:return null!=_.L(c,51);case 85:return null!=_.L(c,12);case 137:return null!=_.L(c,36);case 209:return null!=_.L(c,49);case 79:return null!=_.L(c,8);case 189:return null!=_.L(c,42);case 190:return null!=
_.L(c,43);case 80:return null!=_.L(c,9);case 135:return null!=_.L(c,35);case 102:return null!=_.L(c,21);case 69:return null!=_.L(a,74);case 194:return null!=d&&null!=_.D(d,_.YVc,2);case 193:return null!=d&&null!=_.C(d,1);case 1004:return null!=_.L(a,108);case 136:return 0<a.O().length;case 115:return null!=e&&null!=_.L(e,1);case 116:return null!=e&&null!=_.C(e,2);case 34:return null!=_.L(a,30)||null!=_.L(c,3);case 9:return null!=a.AC();case 91:return null!=a.yq();case 43:return null!=_.C(a,42)||null!=
_.C(a,43);case 187:return null!=_.C(a,136);case 26:return null!=a.Bg();case 108:return 0<_.Id(a,104).length;case 41:return null!=_.L(c,5);case 42:return null!=_.C(a,41);case 1005:return 0<_.ml(a).length;case 59:return null!=_.L(c,6);case 28:return null!=a.lI();case 44:return null!=_.C(a,45);case 13:return null!=a.wF();case 48:return null!=_.L(a,36);case 38:return null!=a.Pi();case 49:return 0<_.Id(a,50).length;case 51:return null!=_.L(a,53);case 104:return null!=_.L(a,102);case 39:return null!=a.ika();
case 87:return null!=_.jl(a);case 100:return null!=_.L(a,98);case 72:return null!=_.C(a,78);case 5:return null!=a.zm();case 20:return null!=a.We();case 21:return null!=a.getId();case 29:return!(!f||null==_.C(f,1));case 31:return!(!f||null==_.C(f,3));case 92:return!(!f||null==_.C(f,4));case 30:return!(!f||null==f.Me());case 16:return null!=a.jm();case 12:return null!=a.Ky();case 211:return null!=h&&null!=_.L(h,2);case 212:return null!=h&&null!=_.L(h,3);case 220:return null!=h&&null!=_.L(h,5);case 157:return!(!l||
!_.ek(l,_.gl,8));case 3:return null!=a.getMimeType();case 11:return null!=a.QA();case 10:return null!=a.oq();case 50:return null!=_.L(a,49)||null!=_.L(a,51)||null!=a.dk();case 18:return null!=a.Dq();case 14:return 0<_.il(a).length;case 95:return null!=a.Sm();case 58:return null!=_.L(a,63);case 103:return null!=_.C(a,101);case 1:return 0<a.lk().length;case 96:return null!=_.L(a,94);case 1003:return 0<_.ll(a).length;case 75:return null!=a.xw();case 94:return null!=a.RM();case 45:return null!=a.Vv();
case 124:return null!=_.L(a,118);case 125:return null!=_.C(a,119);case 1002:return null!=_.kl(a);case 32:return null!=a.Au();case 67:return null!=a.pJ();case 68:return null!=_.C(a,71);case 73:return null!=_.C(a,79);case 71:return null!=a.h1();case 221:return null!=l&&null!=_.L(l,9);case 210:return null!=_.ol(a);case 7:return null!=a.I6();case 122:return null!=_.aN(a);case 66:return null!=_.C(a,69);case 33:return null!=_.L(a,29);case 24:return null!=a.Fj();case 25:return null!=a.Nx();case 46:return null!=
a.Cv();case 192:return null!=k&&null!=_.L(k,6);case 159:return null!=k&&null!=_.Md(k);case 154:return null!=k&&null!=_.C(k,1);case 158:return null!=k&&null!=_.Od(k);case 155:return null!=k&&null!=_.C(k,3);case 52:return 0<_.Id(a,56).length;case 55:return 0<a.ZA().length;case 56:return null!=_.C(a,61);case 4:return null!=a.tA();case 35:return null!=_.L(a,31);case 57:return null!=_.C(a,62);case 83:return null!=a.Bc();case 84:return null!=_.D(a,_.$L,86);case 2:return null!=a.getTitle();case 19:return null!=
a.mx()||null!=_.L(a,44)||null!=_.C(a,90);case 6:return null!=a.Nh();case 98:return null!=a.Pt();case 97:return null!=a.PC();case 27:return null!=a.Uo();case 70:return null!=a.xi();case 107:return null!=p&&null!=_.C(p,3);case 106:return null!=p&&null!=_.C(p,2);case 105:return null!=p&&null!=p.Me();case 8:return null!=_.L(a,9);case 126:return 0<_.Id(a,120).length;default:throw Error("Bc`"+b);}};J0c=function(a,b){return b.every(function(c){return I0c(a,c)})};
K0c=function(a,b,c){var d=a.concat((void 0===c?0:c)?_.MUc:[]);return b.every(function(e){return(new Set(d)).has(e)})};L0c=function(a,b){var c=new Set(b.concat(_.MUc));return a.filter(function(d){return!c.has(d)})};
bN=function(a,b,c){b=b.clone();var d=b.getCapabilities();c.forEach(function(e){if(I0c(b,e))if(_.K6a.has(e)){if(d){var f=a.getCapabilities()||new _.cl;_.cM(a,f);switch(e){case 76:_.CVc(f,_.dl(d));break;case 223:var h=_.L(d,54);_.B(f,54,h);break;case 208:_.XVc(f,_.L(d,48));break;case 185:var k=_.L(d,40);_.B(f,40,k);break;case 224:var l=_.L(d,55);_.B(f,55,l);break;case 213:var p=_.L(d,50);_.B(f,50,p);break;case 156:var q=_.L(d,39);_.B(f,39,q);break;case 61:var t=_.L(d,2);_.B(f,2,t);break;case 216:var u=
_.L(d,52);_.B(f,52,u);break;case 217:var y=_.L(d,53);_.B(f,53,y);break;case 77:_.DVc(f,_.L(d,4));break;case 134:var z=_.L(d,34);_.B(f,34,z);break;case 147:var F=_.L(d,38);_.B(f,38,F);break;case 81:_.JVc(f,_.L(d,10));break;case 82:_.KVc(f,_.L(d,11));break;case 114:var G=_.L(d,27);_.B(f,27,G);break;case 133:_.SVc(f,_.L(d,33));break;case 202:_.WVc(f,_.L(d,47));_.RVc(f,_.L(d,32));break;case 132:_.RVc(f,_.L(d,32));break;case 101:_.OVc(f,_.L(d,20));break;case 201:_.VVc(f,_.L(d,46));break;case 131:_.QVc(f,
_.L(d,31));break;case 200:var I=_.L(d,45);_.B(f,45,I);break;case 130:var M=_.L(d,30);_.B(f,30,M);break;case 93:_.NVc(f,_.L(d,17));break;case 191:var R=_.L(d,44);_.B(f,44,R);break;case 146:var Z=_.L(d,37);_.B(f,37,Z);break;case 90:_.MVc(f,_.ee(d));break;case 78:_.GVc(f,_.L(d,7));break;case 186:var fa=_.L(d,41);_.B(f,41,fa);break;case 222:var ra=_.L(d,51);_.B(f,51,ra);break;case 85:_.LVc(f,_.L(d,12));break;case 137:var Ba=_.L(d,36);_.B(f,36,Ba);break;case 209:var za=_.L(d,49);_.B(f,49,za);break;case 79:_.HVc(f,
_.L(d,8));break;case 189:_.TVc(f,_.L(d,42));break;case 190:_.UVc(f,_.L(d,43));break;case 80:_.IVc(f,_.L(d,9));break;case 135:var Aa=_.L(d,35);_.B(f,35,Aa);break;case 102:_.PVc(f,_.L(d,21));break;case 34:var La=_.L(b,30);_.B(a,30,La);var Ca=_.L(d,3);_.B(f,3,Ca);break;case 41:var Lb=_.L(b,40);_.B(a,40,Lb);_.EVc(f,_.L(d,5));break;case 59:_.FVc(f,_.L(d,6))}}}else if(_.L6a.has(e)){var uc=_.D(b,_.YL,138);if(uc){var fc=_.D(a,_.YL,138)||new _.YL;_.A(a,138,fc);switch(e){case 194:var gd=_.D(uc,_.YVc,2);_.A(fc,
2,gd);break;case 193:var Ed=_.C(uc,1);_.B(fc,1,Ed)}}}else if(_.M6a.has(e)){var Zb=_.D(b,_.el,111);if(Zb){var Lc=_.D(a,_.el,111)||new _.el;_.A(a,111,Lc);switch(e){case 115:_.ZVc(Lc,_.L(Zb,1));break;case 116:_.$Vc(Lc,_.C(Zb,2))}}}else if(_.N6a.has(e)){var md=_.D(b,_.ZL,27);if(md){var gf=_.D(a,_.ZL,27)||new _.ZL;_.A(a,27,gf);switch(e){case 29:var yc=_.C(md,1);_.B(gf,1,yc);break;case 31:gf.jh(_.C(md,3));break;case 92:var ub=_.C(md,4);_.B(gf,4,ub);break;case 30:gf.mh(md.Me())}}}else if(_.O6a.has(e)){var Vg=
_.nl(b);if(Vg){var ph=_.nl(a)||new _.Una;_.A(a,139,ph);switch(e){case 211:var $d=_.L(Vg,2);_.B(ph,2,$d);break;case 212:var qg=_.L(Vg,3);_.B(ph,3,qg);break;case 220:var Bj=_.L(Vg,5);_.B(ph,5,Bj)}}}else if(_.P6a.has(e)){var hj=b.yf();if(hj){var Gi=a.yf()||new _.coa;_.A(a,132,Gi);switch(e){case 192:var Nn=_.L(hj,6);_.B(Gi,6,Nn);break;case 159:var of=_.Md(hj);_.A(Gi,5,of);break;case 154:var Ig=_.C(hj,1);_.B(Gi,1,Ig);break;case 158:var qh=_.Od(hj);_.B(Gi,4,qh);break;case 155:var xk=_.C(hj,3);_.B(Gi,3,
xk)}}}else if(_.Q6a.has(e)){var rh=b.xh();switch(e){case 157:if(rh){var wi=a.xh()||new _.aoa;M0c(a,wi);N0c(wi,_.ek(rh,_.gl,8))}break;case 221:if(rh){var yk=a.xh()||new _.aoa;M0c(a,yk);var sh=_.L(rh,9);_.B(yk,9,sh)}}}else if(_.R6a.has(e)){var Th=_.D(b,_.aM,103);if(Th){var eg=_.D(a,_.aM,103)||new _.aM;_.A(a,103,eg);switch(e){case 107:var en=_.C(Th,3);_.B(eg,3,en);break;case 106:eg.jh(_.C(Th,2));break;case 105:eg.mh(Th.Me())}}}else switch(e){case 74:var Ff=b.Kr();_.Cb(a,83,Ff);break;case 188:var Vj=
_.L(b,137);_.B(a,137,Vj);break;case 149:var Xk=_.Id(b,128);_.B(a,128,Xk||[]);break;case 148:var Lj=b.ha();_.Cb(a,127,Lj);break;case 138:var zk=b.V();_.B(a,126,zk);break;case 184:var Wi=_.Id(b,135);_.B(a,135,Wi||[]);break;case 69:var th=_.L(b,74);_.B(a,74,th);break;case 1004:var uh=_.L(b,108);_.B(a,108,uh);break;case 136:var Wg=b.O();_.Cb(a,125,Wg);break;case 9:var Hh=b.AC();_.B(a,10,Hh);break;case 91:var gh=b.yq();_.A(a,91,gh);break;case 43:var Xi=_.C(b,42);_.B(a,42,Xi);var Ih=_.C(b,43);_.B(a,43,
Ih);break;case 187:var ki=_.C(b,136);_.B(a,136,ki);break;case 26:a.tm(b.Bg());break;case 108:var Ml=_.Id(b,104);_.B(a,104,Ml||[]);break;case 42:var Yk=_.C(b,41);_.B(a,41,Yk);break;case 1005:var Ak=_.ml(b);_.Cb(a,117,Ak);break;case 28:_.iWc(a,b.lI());break;case 44:var pf=_.C(b,45);_.B(a,45,pf);break;case 13:var vh=b.wF();_.B(a,14,vh);break;case 48:var hc=_.L(b,36);_.B(a,36,hc);break;case 38:_.kWc(a,b.Pi());break;case 49:var Uh=_.Id(b,50);_.B(a,50,Uh||[]);break;case 51:var ij=_.L(b,53);_.B(a,53,ij);
break;case 104:var se=_.L(b,102);_.B(a,102,se);break;case 39:var li=b.ika();_.B(a,35,li);break;case 87:var vf=_.jl(b);_.B(a,76,vf);break;case 100:var Ao=_.L(b,98);_.B(a,98,Ao);break;case 72:var hm=_.C(b,78);_.B(a,78,hm);break;case 5:var Hi=b.zm();_.B(a,6,Hi);break;case 20:var Be=b.We();_.B(a,21,Be);break;case 21:a.Pb(b.getId());break;case 16:_.gWc(a,b.jm());break;case 12:var jj=b.Ky();_.B(a,13,jj);break;case 3:_.oF(a,b.getMimeType());break;case 11:var fn=b.QA();_.B(a,12,fn);break;case 10:_.vVb(a,
b.oq());break;case 50:var ik=_.L(b,49);_.B(a,49,ik);var Wf=_.L(b,51);_.B(a,51,Wf);var ke=b.dk();_.A(a,81,ke);break;case 95:_.qWc(a,b.Sm());break;case 18:_.hWc(a,b.Dq());break;case 58:var Ii=_.L(b,63);_.B(a,63,Ii);break;case 14:_.fWc(a,_.il(b));break;case 1:_.bM(a,b.lk());break;case 96:var Ye=_.L(b,94);_.B(a,94,Ye);break;case 103:var Em=_.C(b,101);_.B(a,101,Em);break;case 1003:O0c(a,_.ll(b));break;case 75:_.oWc(a,b.xw());break;case 94:_.pWc(a,b.RM());break;case 45:var jk=b.Vv();_.B(a,46,jk);break;
case 124:var Mj=_.L(b,118);_.B(a,118,Mj);break;case 125:var wf=_.C(b,119);_.B(a,119,wf);break;case 1002:var gn=_.kl(b);_.A(a,100,gn);break;case 32:var hn=b.Au();_.B(a,28,hn);break;case 67:var jn=b.pJ();_.B(a,70,jn);break;case 68:var Gp=_.C(b,71);_.B(a,71,Gp);break;case 73:var Pl=_.C(b,79);_.B(a,79,Pl);break;case 71:var pi=b.h1();_.B(a,77,pi);break;case 210:var Jk=_.ol(b);_.B(a,140,Jk);break;case 7:_.eWc(a,b.I6());break;case 122:P0c(a,_.aN(b));break;case 66:var Kk=_.C(b,69);_.B(a,69,Kk);break;case 33:var To=
_.L(b,29);_.B(a,29,To);break;case 24:var um=b.Fj();_.B(a,22,um);break;case 25:var tn=b.Nx();_.B(a,23,tn);break;case 46:var Uo=b.Cv();_.A(a,47,Uo);break;case 52:var Hp=_.Id(b,56);_.B(a,56,Hp||[]);break;case 56:var tR=_.C(b,61);_.B(a,61,tR);break;case 55:a.ty(b.ZA());break;case 4:a.jv(b.tA());break;case 35:_.jWc(a,_.L(b,31));break;case 57:var TM=_.C(b,62);_.B(a,62,TM);break;case 83:_.nWc(a,b.Bc());break;case 84:var EI=_.D(b,_.$L,86);_.A(a,86,EI);break;case 98:a.Zca(b.Pt());break;case 97:var nxa=b.PC();
_.A(a,95,nxa);break;case 19:var oxa=b.mx();_.B(a,20,oxa);_.lWc(a,_.L(b,44));var Aga=_.C(b,90);_.B(a,90,Aga);break;case 2:a.setTitle(b.getTitle());break;case 6:a.Vm(b.Nh());break;case 27:_.wVb(a,b.Uo());break;case 70:var Bga=b.xi();_.B(a,75,Bga);break;case 8:var Cga=_.L(b,9);_.B(a,9,Cga);break;case 126:var c6=_.Id(b,120);_.B(a,120,c6||[]);break;default:throw Error("Cc`"+e);}})};Q0c=function(a,b){var c=_.Lx[a];return b.filter(function(d){return!c||!c.has(d)})};
R0c=function(a,b,c){a=Q0c(c,a);return K0c(b,a,!0)};cN=function(a){return a?"application/vnd.google-apps.shortcut"===a.getMimeType():!1};dN=function(a,b){b=void 0===b?!1:b;if(!a)return!1;var c=a.getMimeType();return b&&cN(a)?(a=a.yf(),!!a&&"application/vnd.google-apps.folder"===_.C(a,3)):"application/vnd.google-apps.folder"===c};S0c=function(a){var b=a&&a.getId()||null;a&&cN(a)&&(a=(a=a.yf())&&_.C(a,1))&&(b=a);return b};T0c=function(a){return!!_.L(a,31)&&!_.L(a,94)};
V0c=function(a){return U0c.some(function(b){return I0c(a,b)})};W0c=function(a){return a.filter(function(b){return b}).some(function(b){return[4,5,2].includes(eN(b))})};X0c=function(a){return W0c(a.filter(function(b){return b}).map(function(b){return b.getItem()}))};_.Y0c=function(a,b){a=0===b?1:a/b;return 1<=a?6:.95<=a?5:.9<=a?4:.8<=a?3:.7<=a?2:1};Z0c=function(a,b){var c=_.wUc(b||{}),d=new Map;a.forEach(function(e){d.set(e,c[e]||null)});return d};$0c=function(a,b){return 0<=b?!a||a<=b:!0};
a1c=function(a,b){if(b){var c=[];_.L(b,3)&&c.push("folder");var d=_.nRc()&&4===b.getType()?"title_natural":_.ATc[b.getType()];b=_.CTc[_.Oj(b,2,1)];d&&(b&&(d+=" "+b),c.push(d));c.length&&(a.orderBy=c.join(","))}};b1c=function(a,b){var c=a.dk();c||(c=new _.Vna,b&&_.A(a,81,c));return c};c1c=function(a){if(dN(a))_.$M(b1c(a,!0),!0);else if(dN(a,!0)){var b=a.yf();if(b=b&&_.Md(b))_.$M(b1c(b,!0),!0),_.$M(b1c(a,!0),!0)}};d1c=function(a){return!!a.dk()&&!dN(a)};
e1c=function(a){var b=[];_.Ka(a,function(c){if(3!=eN(c)){var d=c;if(null!=_.L(d,49)||null!=_.L(d,51)||null!=d.dk())c=c.clone(),_.Tj(c,49),_.Tj(c,51),_.Uj(c,81);b.push(c)}});return b};g1c=function(a){for(var b=0;b<a.length;b++){var c=a[b];c&&c instanceof _.N?a[b]=c.Rb():c&&c instanceof _.yM?a[b]=c.Rb(function(d){return d?d.Rb():null}):c&&c instanceof f1c&&(a[b]=c.Rb())}};i1c=function(a){var b=a.slice(0),c=new Set(b);h1c.forEach(function(d){c.has(d)||b.push(d)});b.sort();return b};
o1c=function(a,b,c){var d=_.D(a,j1c,66);if(d){var e=_.C(d,1),f=_.kM(a);a=_.RK(_.CK(a));e=new _.gj(e);var h=new _.gj(window.location);var k=h.O+"://"+h.H;null!=h.W&&(k+=":"+h.W);h=_.yj(k,3);_.qj(e,"co",h);h=e.Le();!f&&0<a&&(h+="u/"+a+"/");e.ti(h+"_/dataservice/cacheproxy");f=_.C(d,5)||"";if(_.mUc(window.location.href,e.toString())&&f)return e=i1c(c),c=_.C(d,6),b="#"+b+"_",d=new _.uK,d.update(e.join(",")),b+=_.IRc(d.digest()),c&&(b+="&jobset="+c),b=_.qx(f+"?"+b),_.n.SharedWorker?(c=new SharedWorker(_.qga(b),
void 0),b=new k1c(c.port),c.port.start()):b=new k1c(new Worker(_.qga(b),void 0)),new l1c(new fN(b,!1,!0),1,f,e);c=e.toString();b="cpiframe_"+_.Lg();c=_.mh("IFRAME",{name:b,id:b,src:c});c.style.cssText=_.pha(_.lUc(_.Of("display: none;")));document.body.appendChild(c);c=_.Zla(e.O,void 0,e.H,e.W).toString();return new l1c(new fN(m1c(window.frames[b],c),!1,!0),0,e.toString())}b=new n1c;return new l1c(new fN(b.O,!1,!1),2,"inline",c,new fN(b.H,!1,!1))};
q1c=function(a){var b=new p1c;if(a instanceof _.eL)_.fk(b,16,gN[0],a);else if(a instanceof _.fL)_.fk(b,1,gN[0],a);else if(a instanceof _.gL)_.fk(b,2,gN[0],a);else if(a instanceof _.hN)_.fk(b,17,gN[0],a);else if(a instanceof _.jL)_.fk(b,3,gN[0],a);else if(a instanceof _.HM)_.fk(b,4,gN[0],a);else if(a instanceof _.hL)_.fk(b,5,gN[0],a);else if(a instanceof _.nL)_.fk(b,6,gN[0],a);else if(a instanceof _.pL)_.fk(b,7,gN[0],a);else if(a instanceof _.qL)_.fk(b,8,gN[0],a);else if(a instanceof _.tL)_.fk(b,9,
gN[0],a);else if(a instanceof _.IL)_.fk(b,10,gN[0],a);else if(a instanceof _.JL)_.fk(b,11,gN[0],a);else if(a instanceof _.KL)_.fk(b,12,gN[0],a);else if(a instanceof _.TK)_.fk(b,13,gN[0],a);else if(a instanceof _.NL)_.fk(b,14,gN[0],a);else if(a instanceof _.OL)_.fk(b,15,gN[0],a);else throw new _.kc("Unsupported request type");return b};
t1c=function(a){a=a.map(function(c){var d=new r1c;if(c instanceof _.eL)_.fk(d,6,iN[0],c);else if(c instanceof _.hN)_.fk(d,7,iN[0],c);else if(c instanceof _.nL)_.fk(d,1,iN[0],c);else if(c instanceof _.IL)_.fk(d,2,iN[0],c);else if(c instanceof _.JL)_.fk(d,3,iN[0],c);else if(c instanceof _.TK)_.fk(d,4,iN[0],c);else if(c instanceof _.OL)_.fk(d,5,iN[0],c);else throw new _.kc("Unsupported request type");return d});var b=new s1c;_.Cb(b,1,a);return b};
u1c=function(a){return _.ek(a,r1c,1).map(function(b){return _.D(b,_.eL,6)||_.D(b,_.nL,1)||_.D(b,_.IL,2)||_.D(b,_.JL,3)||_.D(b,_.TK,4)||_.D(b,_.OL,5)||_.D(b,_.hN,7)})};x1c=function(a){var b=new v1c;if(a instanceof _.SB)_.fk(b,1,w1c[0],a);else if(a instanceof _.TB)_.fk(b,2,w1c[0],a);else throw new _.kc("Unsupported request type");return b};
A1c=function(a){var b=new y1c;if(a instanceof _.kL)_.fk(b,1,z1c[0],a);else if(a instanceof _.rL)_.fk(b,2,z1c[0],a);else if(a instanceof _.PL)_.fk(b,3,z1c[0],a);else throw new _.kc("Unsupported request type");return b};jN=function(a,b,c){return b?new c(JSON.parse(a)):a};B1c=function(a){a={t:a.title,d:a.description,c:a.Cd,fi:a.S8,dti:a.Y_,a:a.GP?a.GP.map(function(b){return JSON.stringify({n:b.name,c:b.content,ct:b.contentType,ec:b.A8})}):void 0};return JSON.stringify(a)};
C1c=function(a){a=JSON.parse(a);return{title:a.t,description:a.d,Cd:a.c,S8:a.fi,Y_:a.dti,GP:a.a?a.a.map(function(b){b=JSON.parse(b);return{name:b.n,content:b.c,contentType:b.ct,A8:b.ec}}):void 0}};D1c=function(a,b,c){a=a?1:2;a=_.Zc(_.Yc(new _.Xc,12),a);var d=(new _.Te).Vm(!0);d=_.B(d,17,!0);a=_.Ue(d,a);c&&_.zl(a,c);c=new _.yTc;b&&_.DUc(c,b);return _.EUc(_.GUc(new _.IK,a),c)};E1c=function(a){return a.map(function(b){return b.getItem()})};
F1c=function(a){var b={};a.forEach(function(c){b[c.getId()]=c.getItem()});return b};G1c=function(a,b){var c=new _.gj(_.H(b,16,"")+"/open"),d=a.getId();cN(a)&&(d=S0c(a));_.qj(c,"id",d);_.qj(c,"authuser",_.RK(_.CK(b)));_.E(b,89,!1)&&_.S(a,140)&&_.qj(c,"resourcekey",_.ol(a));return c.toString()};
H1c=function(a){_.Ef("drive.DebugUtil.printFindById",function(c){a.pM(c).addCallback(function(d){window.console.log(JSON.stringify(d))})});_.Ef("drive.DebugUtil.getLogs",function(){return _.qXc(a.Tf())});_.Ef("drive.DebugUtil.printLogs",function(){window.console.log(_.qXc(a.Tf()))});_.Ef("drive.DebugUtil.printRequestHistory",function(){a.LQ().addCallback(function(c){c.forEach(function(d){window.console.log(_.C(d,1));window.console.log(_.C(d,2))})})});_.Ef("drive.DebugUtil.getState",function(){return a.getState()});
var b=a.La();b&&_.E(b,1,!1)&&(_.Ef("drive.DebugUtil.getContext",function(){return a.getContext()}),_.Ef("drive.DebugUtil.setOffline",function(c){return void a.El(c)}))};J1c=function(a,b){var c=new _.YM,d=new Set;if(6===a){a=_.m(b);for(b=a.next();!b.done;b=a.next())(b=b.value)?(b=_.p0c.get(eN(b)))&&d.add(b):d.add(1);0===d.size&&d.add(0)}I1c(c,[].concat(_.jd(d)));return c};
K1c=function(a){var b=[],c={};a=_.m(a);for(var d=a.next();!d.done;c={Tea:c.Tea},d=a.next())if(d=d.value){c.Tea=new Map;[].concat(_.jd(_.il(d)),[d.jm(),d.Cv(),d.yq()]).forEach(function(l){return function(p){p&&l.Tea.set(_.xF(p),p)}}(c));for(var e=[],f=_.m(c.Tea.values()),h=f.next();!h.done;h=f.next())if(h=h.value){var k=h.getName();e.push(_.xF(h)+"-"+((k?k.length:k)+"-")+_.Oj(h,16,0))}b.push(d.getId()+","+eN(d)+","+(e.length?e.join(","):"-"))}return b.length?"People: "+b.join("|"):""};
L1c=function(a,b){var c={};a=_.Oa(a,function(d){return!!d});b=_.Oa(b,function(d){return!!d});_.Na(a,function(d,e){var f=b[e];f?_.mk(d,f)||(d=_.yRc(4).setItem(f),c[e]=d):(d=_.yRc(2).setItem(d),c[e]=d)});_.Na(b,function(d,e){a[e]||(d=_.yRc(1).setItem(d),c[e]=d)});return c};M1c=function(a,b){return _.Ra(a)!==_.Ra(b)||!_.Va(L1c(a,b))};
P1c=function(a,b){b.info("drive.ds.sync.api.Dump","Requesting dump stats.");b=new _.ef;_.ff(b,305);_.hf(b,!0);_.B(b,3,2);var c=new _.RB;_.A(c,1,b);N1c(c,[7]);a=a.then(function(d){return d.Ve(c)}).then(O1c);return _.fi(a)};O1c=function(a){a=_.ek(a,_.Ip,3);var b=new Q1c;a.forEach(function(c){var d=c.getKey();"corpusSize"===(d&&_.C(d,2))&&(c=_.Db(c.Za()),_.B(b,3,c))});return"number"===typeof _.C(b,3)?b:null};
S1c=function(a,b){var c=R1c(a.dm,b.Kc());if(c){var d=c.getItem(),e=d.xw();if(e){var f=e.PQ(),h=_.ta(f,function(k){return k.getId()===_.C(b,2)});_.bWc(e,f);h||(f=_.ek(e,_.Qk,3),_.ta(f,function(k){return k.getId()===_.C(b,2)}),_.cWc(e,f));_.aWc(e,(_.C(e,1)||1)-1);a.jl([d],c.H)}}};
U1c=function(a,b,c){if(b=R1c(a.dm,b.Kc())){var d=b.getItem(),e=d.xw();if(e){if(1===c.getType()||2===c.getType()){var f=_.ek(e,_.Qk,3);f.push(c);_.Ia(f,T1c);_.cWc(e,f)}else f=e.PQ(),f.push(c),_.Ia(f,T1c),_.bWc(e,f);_.aWc(e,(_.C(e,1)||0)+1);a.jl([d],b.H)}}};W1c=function(a){return a.map(function(b){var c=new _.Rrb;c=_.B(c,3,V1c[b.serviceName]);return _.B(c,2,Number(b.bytesUsed))})};
Y1c=function(a){return(a.quotaBytesByService||[]).reduce(function(b,c){return X1c.has(c.serviceName)?b+Number(c.bytesUsed):b},0)};
b2c=function(a){var b=a.json.exportJob,c=Z1c[b.status]||0,d=Number(a.json.percentDone),e=b.items?b.items.length:0;a=a.json.numFetchedFiles||0;var f=0,h=0,k=_.Bb(b.archives||[],function(l){f=f+Number(l.sizeOfContents)||0;h=h+Number(l.compressedSize)||0;return l.storagePath});b=_.Bb(b.failedItemInfos||[],function(l){var p=_.oF((new _.hl).Pb(l.docId).setTitle(l.title),l.mediaType);p=(new _.$1c).setItem(p);p=_.B(p,3,l.relativePath);return _.B(p,4,l.cause)});return new a2c(c,d,k,f,h,e,a,b)};
d2c=function(a){var b={},c=a.getKey(),d=c&&_.C(c,2);b.key=d;b.value=a.Za();(a=c&&_.Jp(c))&&(b.namespace=c2c[a]);return b};e2c=function(a){for(var b=[],c=0;c<a.length;c++)b.push(c2c[a[c]]);return b};f2c=function(a){return"kind,defaultAppIds,items("+a+")"};g2c=function(a,b){return _.E(b,93,!1)?a+",adminSecureLinkSetting":a};h2c=function(){var a=!(!_.n.IDBObjectStore||!_.n.IDBObjectStore.prototype.getAll);return!!(_.n.indexedDB||_.n.mozIndexedDB||_.n.webkitIndexedDB||_.n.moz_indexedDB)&&a};
k2c=function(a,b){_.B(b,75,1<_.n.devicePixelRatio);var c=_.E(b,61,!1);var d=_.SK(b),e=!!d&&_.E(d,10,!1);if(_.BK(_.CK(b))||!c&&!e)_.B(b,61,!1),_.Uj(b,66),d&&_.B(d,10,!1),c=!1;else{if(c){_.n.SharedWorker||(c=!1);var f=_.D(b,j1c,66);f&&_.C(f,1)||(c=!1);_.kM(b)&&!_.E(b,52,!1)&&(c=!1)}c?d&&_.B(d,10,!1):(_.B(b,61,!1),_.Uj(b,66));c=c||e}if(c)return c=_.E(b,61,!1)?3:5,b=new kN(a,b,c),new lN(b);c=_.BK(_.CK(b))?2:1;a=new mN(a,b,c,void 0,void 0,void 0);return _.BK(_.CK(b))?new i2c(a):new j2c(a)};
m2c=function(a){return _.je(a).Gg(_.E(a.get(_.yp),19,!1)?l2c:_.IVa)};n2c=function(a,b){a.H.push(b>>>0&255);a.H.push(b>>>8&255);a.H.push(b>>>16&255);a.H.push(b>>>24&255)};o2c=function(a,b){return _.Cb(a,1,b)};p2c=[1];q2c=function(a){_.Q(this,a,-1,p2c,null)};_.O(q2c,_.N);q2c.prototype.PM=function(){return _.ek(this,_.Qk,1)};q2c.prototype.kha=function(a){_.gk(this,1,a,_.Qk,void 0)};
var r2c=function(a){var b=new q2c;return _.Cb(b,1,a)},s2c=function(a,b){return _.A(a,1,b)},t2c=function(a,b){_.Cb(a,2,b)},u2c=function(a,b){_.A(a,6,b)},v2c=function(a,b){return _.fk(a,3,_.Tk[0],b)},w2c=function(a){_.Q(this,a,-1,null,null)};_.O(w2c,_.N);var x2c=function(a){_.Q(this,a,-1,null,null)};_.O(x2c,_.N);var nN=function(a){_.Q(this,a,-1,null,null)};_.O(nN,_.N);var y2c=function(a){_.Q(this,a,-1,null,null)};_.O(y2c,_.N);var z2c=function(a){_.Q(this,a,-1,null,null)};_.O(z2c,_.N);
var A2c=function(a){_.Q(this,a,-1,null,null)};_.O(A2c,_.N);var B2c=function(a){_.Q(this,a,-1,null,null)};_.O(B2c,_.N);var C2c=function(a){_.Q(this,a,-1,null,null)};_.O(C2c,_.N);var D2c=function(a){_.Q(this,a,-1,null,null)};_.O(D2c,_.N);var E2c=function(a){_.Q(this,a,-1,null,null)};_.O(E2c,_.N);var F2c=function(a){_.Q(this,a,-1,null,null)};_.O(F2c,_.N);var G2c=function(a){_.Q(this,a,-1,null,null)};_.O(G2c,_.N);var H2c=function(a){_.Q(this,a,-1,null,null)};_.O(H2c,_.N);
var I2c=function(a){_.Q(this,a,-1,null,null)};_.O(I2c,_.N);var J2c=function(a,b){_.Cb(a,1,b)},K2c=function(a,b){return _.B(a,2,b)},L2c=function(a,b){return _.A(a,3,b)},M2c=function(a,b){return _.B(a,4,b)},N2c=[[1,2,3,4]],O2c=function(a){_.Q(this,a,-1,null,N2c)};_.O(O2c,_.N);var P2c=function(a,b){_.Cb(a,1,b)},Q2c=function(a,b){return _.A(a,2,b)},R2c=[[1]],S2c=function(a){_.Q(this,a,-1,null,R2c)};_.O(S2c,_.N);
var T2c=function(a,b){_.Cb(a,1,b)},U2c=function(a,b){return _.A(a,4,b)},V2c=function(a,b){_.A(a,5,b)},W2c=function(a,b){_.Cb(a,2,b)},X2c=function(a,b){_.Cb(a,4,b)},Y2c=function(a,b){return _.A(a,5,b)},Z2c=[[1,2]],$2c=function(a){_.Q(this,a,-1,null,Z2c)};_.O($2c,_.N);var a3c=function(a,b){_.Cb(a,1,b)},b3c=function(a,b){return _.A(a,2,b)},c3c=[[1]],d3c=function(a){_.Q(this,a,-1,null,c3c)};_.O(d3c,_.N);
var e3c=function(a,b){_.Cb(a,2,b)},f3c=function(a){var b=new _.$k;return _.Cb(b,3,a)},g3c=[[1,2]],h3c=function(a){_.Q(this,a,-1,null,g3c)};_.O(h3c,_.N);h3c.prototype.mG=function(){return _.D(this,nN,1)};h3c.prototype.lg=function(a){return _.fk(this,1,g3c[0],a)};var i3c=[1],j3c=function(a){_.Q(this,a,-1,i3c,null)};_.O(j3c,_.N);j3c.prototype.Cp=function(){return _.C(this,2)};
var k3c=function(a,b){_.Cb(a,1,b)},l3c=function(a,b){return _.B(a,2,b)},m3c=function(a,b){return _.A(a,3,b)},n3c=[[1]],o3c=function(a){_.Q(this,a,-1,null,n3c)};_.O(o3c,_.N);var p3c=[2],q3c=function(a){_.Q(this,a,-1,p3c,null)};_.O(q3c,_.N);var r3c=function(a,b){_.Cb(a,2,b)},s3c=function(a,b){return _.A(a,3,b)},t3c=[[1]],u3c=function(a){_.Q(this,a,-1,null,t3c)};_.O(u3c,_.N);u3c.prototype.mG=function(){return _.D(this,y2c,1)};u3c.prototype.lg=function(a){return _.fk(this,1,t3c[0],a)};
var v3c=function(a,b){_.Cb(a,1,b)},w3c=function(a,b){return _.Cb(a,2,b)},x3c=[[1,2]],y3c=function(a){_.Q(this,a,-1,null,x3c)};_.O(y3c,_.N);var z3c=function(a,b){_.Cb(a,1,b)},A3c=function(a,b){return _.A(a,2,b)},B3c=[[1]],C3c=function(a){_.Q(this,a,-1,null,B3c)};_.O(C3c,_.N);var D3c=function(a,b){return _.A(a,1,b)},E3c=function(a,b){return _.B(a,2,b)},F3c=function(a,b){return _.B(a,3,b)},G3c=function(a){_.Q(this,a,-1,null,null)};_.O(G3c,_.N);N0c=function(a,b){_.Cb(a,8,b)};
eN=function(a){return _.Oj(a,52,1)};M0c=function(a,b){return _.A(a,73,b)};O0c=function(a,b){_.Cb(a,107,b)};_.aN=function(a){return _.D(a,G3c,109)};P0c=function(a,b){_.A(a,109,b)};H3c=function(a){var b=new _.nk;var c=_.C(a,1);null!=c&&_.sk(b,1,c);c=_.C(a,2);null!=c&&_.sk(b,2,c);return _.pk(b)};I3c=function(a){_.Q(this,a,-1,null,null)};_.O(I3c,_.N);var j1c=function(a){_.Q(this,a,-1,null,null)};_.O(j1c,_.N);var J3c=[11],K3c=function(a){_.Q(this,a,-1,J3c,null)};_.O(K3c,_.N);
var oN=function(a){_.Q(this,a,-1,null,null)};_.O(oN,_.N);oN.prototype.getKey=function(){return _.C(this,2)};oN.prototype.Vr=function(){return _.S(this,2)};pN=function(a){return _.H(a,4,"en")};_.qN=function(a){return _.D(a,K3c,34,1)};L3c=function(a,b){return _.B(a,5,b)};_.M3c=function(a,b){return _.B(a,2,b)};_.N3c=function(a,b){return _.B(a,3,b)};_.O3c=function(a,b){return _.B(a,1,b)};_.P3c=function(a,b){return _.B(a,2,b)};_.Q3c=function(a,b){return _.Cb(a,5,b)};
_.R3c=function(a,b){return _.B(a,6,b)};_.S3c=function(a,b){return _.B(a,7,b)};_.T3c=function(a,b){return _.B(a,8,b)};_.U3c=function(a,b){return _.B(a,10,b)};_.V3c=function(a,b){return _.B(a,15,b)};W3c=[2];_.X3c=function(a){_.Q(this,a,-1,W3c,null)};_.O(_.X3c,_.N);_.X3c.prototype.Dh=function(){return _.C(this,1)};_.Y3c=function(a,b){return _.A(a,1,b)};Z3c=function(a,b){return _.B(a,2,b)};$3c=function(a,b){return _.B(a,3,b)};a4c=function(a,b){_.Cb(a,4,b)};_.b4c=function(a,b){_.A(a,8,b)};
_.c4c=function(a,b){_.A(a,9,b)};N1c=function(a,b){_.B(a,3,b||[])};d4c=function(a){_.Q(this,a,-1,null,null)};_.O(d4c,_.N);d4c.prototype.Za=function(){return _.Qj(this,1)};d4c.prototype.Jb=function(a){return _.Xj(this,1,a,0)};rN=function(a,b,c){if(b.length!=c.length)return!0;for(a=0;a<b.length;a++)if(!_.mk(b[a]||void 0,c[a]||void 0))return!0;return!1};_.e4c=function(a){_.Q(this,a,-1,null,null)};_.O(_.e4c,_.N);_.e4c.prototype.getId=function(){return _.C(this,1)};
_.e4c.prototype.Pb=function(a){return _.B(this,1,a)};_.e4c.prototype.Me=function(){return _.C(this,4)};_.e4c.prototype.mh=function(a){return _.B(this,4,a)};_.HM=function(a){_.Q(this,a,-1,null,null)};_.O(_.HM,_.N);_.HM.prototype.getTitle=function(){return _.C(this,1)};_.HM.prototype.setTitle=function(a){return _.B(this,1,a)};_.HM.prototype.te=function(){return _.D(this,_.ef,2)};
var f4c=function(a,b){return _.B(a,9,b||[])},g4c=function(a,b){return _.B(a,10,b||[])},h4c=function(a,b){return _.B(a,36,b)},i4c=function(a,b){return _.Cb(a,38,b)},j4c=function(a,b){return _.B(a,2,b)},k4c=function(a,b){return _.A(a,3,b)},l4c=function(a){_.Q(this,a,-1,null,null)};_.O(l4c,_.N);var m4c=function(a){_.Q(this,a,-1,null,null)};_.O(m4c,_.N);var n4c=function(a){_.Q(this,a,-1,null,null)};_.O(n4c,_.N);var o4c=function(a){_.Q(this,a,-1,null,null)};_.O(o4c,_.N);
var p4c=function(a){_.Q(this,a,-1,null,null)};_.O(p4c,_.N);var q4c=function(a,b){return _.B(a,1,b)},r4c=function(a,b){return _.B(a,3,b)},s4c=function(a,b){return _.B(a,4,b)},t4c=function(a,b){_.B(a,7,b)},u4c=function(a){_.Q(this,a,-1,null,null)};_.O(u4c,_.N);u4c.prototype.Ox=function(){return _.L(this,2)};var v4c=function(a,b){_.B(a,1,b)},w4c=function(a){_.Q(this,a,-1,null,null)};_.O(w4c,_.N);w4c.prototype.Bm=function(){return _.C(this,3)};w4c.prototype.Zs=function(a){return _.B(this,3,a)};
w4c.prototype.Nu=function(){return _.C(this,4)};var x4c=function(a){_.Q(this,a,-1,null,null)};_.O(x4c,_.N);var y4c=[1,3,5],z4c=function(a){_.Q(this,a,-1,y4c,null)};_.O(z4c,_.N);z4c.prototype.yE=function(){return _.Id(this,1)};z4c.prototype.Ox=function(){return _.L(this,2)};z4c.prototype.Nu=function(){return _.C(this,7)};A4c=function(a,b){_.B(a,2,b)};B4c=function(a,b){_.ck(a,5,b,void 0)};C4c=function(a,b){_.B(a,6,b)};D4c=function(a,b){_.B(a,7,b)};_.E4c=function(a,b){_.A(a,2,b)};
F4c=function(a,b){return _.B(a,1,b||[])};G4c=function(a,b,c){_.oM(a,b,c,"warning")};H4c=function(a){return[].concat(_.jd(a.O))};I4c=function(a){return a.H.concat([].concat(_.jd(a.O)))};J4c=function(a,b){var c=new Set;b=_.m(b);for(var d=b.next();!d.done;d=b.next())d=d.value,a.H.includes(d)||a.O.has(d)||(a.O.add(d),c.add(d));return[].concat(_.jd(c))};sN=function(a){var b=_.wM(a).yd();b||(b=new _.NWc,a=_.wM(a),_.A(a,1,b));return b};
K4c=function(a){var b=_.D(_.wM(a),z4c,3);b||(b=new z4c,a=_.wM(a),_.A(a,3,b));return b};L4c=function(a){var b=_.D(_.wM(a),n4c,7);b||(b=new n4c,a=_.wM(a),_.A(a,7,b));return b};M4c=function(a){var b=_.D(_.wM(a),p4c,12);b||(b=new p4c,a=_.wM(a),_.A(a,12,b));return b};N4c=function(a){var b=_.D(_.wM(a),u4c,17);b||(b=new u4c,a=_.wM(a),_.A(a,17,b));return b};
O4c=function(a){if(a instanceof _.vK)return 2;if(a instanceof _.lF)return 10;if(a instanceof _.Te)return _.yL(a)?3:_.zL(a)?7:_.AL(a)?8:1;if(a instanceof _.yz)return 9;if(a instanceof _.yF)return 11;if(a instanceof _.GL)return 15;if(a instanceof _.DK)return 6;if(a instanceof _.CL){a=a.getType();if(1==a)return 5;if(2==a)return 16;if(4==a)return 17;if(3==a)return 18}else{if(a instanceof _.RB)return 4;if(a instanceof _.gz)return 12;if(a instanceof _.nF)return 13}return 0};
P4c=function(a){var b=null;a instanceof _.gA||"undefined"!=typeof _.yM&&a instanceof _.yM||"undefined"!=typeof _.zM&&a instanceof _.zM?b=a.jf()||0:"undefined"!=typeof _.BM&&a instanceof _.BM||"undefined"!=typeof _.CM&&a instanceof _.CM||"undefined"!=typeof _.DM&&a instanceof _.DM||"undefined"!=typeof _.EM&&a instanceof _.EM||"undefined"!=typeof _.FM&&a instanceof _.FM?b=a.Pe:"undefined"!=typeof _.AM&&a instanceof _.AM&&(b=a.jf());return b||0};
Q4c=function(a,b,c){return a.V&&a.isRunning()?(a=_.iYc(a.V,b,0),c&&_.CSc(a,c),a):null};R4c=function(a){a.V&&a.isRunning()&&(a=a.V,a.isRunning()&&a.H.uZ())};S4c=function(a,b){return _.A(a,1,b)};T4c=function(a,b){a.ha=b};U4c=[2];V4c=function(a){_.Q(this,a,-1,U4c,null)};_.O(V4c,_.N);_.g=V4c.prototype;_.g.Cb=function(){return _.C(this,1)};_.g.Dc=function(a){return _.B(this,1,a)};_.g.PM=function(){return _.ek(this,_.Qk,2)};_.g.kha=function(a){_.gk(this,2,a,_.Qk,void 0)};
_.g.Uj=function(){return _.C(this,3)};var W4c=[2],X4c=function(a){_.Q(this,a,-1,W4c,null)};_.O(X4c,_.N);X4c.prototype.Cb=function(){return _.C(this,1)};X4c.prototype.Dc=function(a){return _.B(this,1,a)};X4c.prototype.Uj=function(){return _.C(this,3)};Y4c=function(a){return a.H?a.H.promise:a.O()?(a.H=new _.po,a.H.promise):null};Z4c=function(a){var b=[];a.aj.forEach(function(c){(c=c.gv.config.timestamp)&&b.push(c)});return b};
$4c=function(a){var b=[];a.W.forEach(function(c){c.forEach(function(d){(d=d.gv.config.timestamp)&&b.push(d)})});a.buckets.forEach(function(c){_.wa(b,Z4c(c))});return b};I1c=function(a,b){return _.B(a,1,b||[])};a5c=function(a,b){if(!(a instanceof b.constructor))throw Error("aa");var c=_.kb(a,!0);b=_.kb(b,!0);var d=[],e=0,f=c.length>b.length?c.length:b.length;a.constructor.messageId&&(d[0]=a.constructor.messageId,e=1);for(;e<f;e++)_.Bma(c[e],b[e])||(d[e]=b[e]);return new a.constructor(d)};b5c=[2,6];
_.zM=function(a){_.Q(this,a,-1,b5c,null)};_.O(_.zM,_.N);_.g=_.zM.prototype;_.g.Cb=function(){return _.C(this,1)};_.g.Dc=function(a){return _.B(this,1,a)};_.g.Gd=function(){return _.ek(this,_.hl,2)};_.g.tw=function(a){return _.Cb(this,2,a)};_.g.Zg=function(a,b){return _.gk(this,2,a,_.hl,b)};_.g.Uj=function(){return _.C(this,3)};_.g.Zk=function(){return _.E(this,4,!0)};var c5c=function(a,b){return _.Cb(a,6,b)};_.zM.prototype.Hf=function(){return _.C(this,10)};
_.zM.prototype.hP=function(a){return _.B(this,10,a)};_.zM.prototype.jf=function(){return _.C(this,9)};_.zM.prototype.Ti=function(a){return _.B(this,9,a)};
var d5c={SUCCESS:1,e5b:2,lXb:3,WSb:4,r5b:5,M_b:6,D_b:7,BTb:8,c4b:9,r4b:10,d5b:11,fVb:12,JUb:13,mYb:14,FWb:15,NUb:16,MUb:17,SUb:18,PUb:19,QUb:20,I4b:21,n5b:22,d0b:23,k_b:24,uTb:25,PERMISSION_DENIED:26,CZb:27,GTb:28,FTb:29,INTERRUPTED:30,C0b:31,V0b:32,uVb:33,AVb:34,j4b:35,HVb:36,GWb:37,zVb:38,C_b:39,nUb:40,x0b:41,X0b:42,a4b:43,ZTb:44,mUb:45,DWb:46,xZb:47,B_b:48,V_b:49,y0b:50,U3b:51,KUb:52,b4b:53,$3b:54,eUb:55,bUb:56,RVb:57,VZb:58,z0b:59,XYb:60,m2b:61,a3b:62,H3b:63,BYb:64,m_b:65,u5b:66,JVb:67,HWb:68,
c5b:69,FYb:70,ETb:71,RTb:72,i3b:73,I3b:74,E3b:75,C3b:76,X2b:190,B3b:191,j3b:192,p3b:126,l3b:128,m3b:129,n3b:130,o3b:131,q3b:132,r3b:133,v2b:127,s2b:134,t2b:135,x2b:136,y2b:137,z2b:138,u2b:194,w2b:195,A2b:196,r2b:197,$2b:189,l2b:139,n2b:140,B2b:141,C2b:142,O2b:143,R2b:144,S2b:145,T2b:146,U2b:147,V2b:148,W2b:149,Z2b:150,e3b:151,g3b:152,h3b:153,k3b:154,s3b:155,u3b:156,v3b:157,w3b:158,x3b:159,y3b:160,z3b:161,D3b:162,G3b:163,J3b:164,o2b:165,p2b:166,q2b:167,j2b:168,k2b:169,F2b:170,D2b:171,E2b:172,G2b:173,
H2b:174,I2b:175,J2b:176,K2b:177,L2b:178,M2b:179,N2b:180,P2b:181,Q2b:182,Y2b:106,f3b:183,t3b:184,A3b:185,b3b:186,c3b:187,d3b:188,F3b:244,w0b:77,h5b:78,m5b:79,JZb:80,rYb:81,tYb:82,QVb:83,CWb:84,DZb:85,B4b:86,yVb:87,HYb:88,GYb:89,M3b:90,K3b:91,L3b:92,i5b:93,AUb:94,zUb:95,wUb:96,yUb:97,xUb:98,t5b:99,W1b:100,VUb:101,OUb:102,TUb:103,RUb:104,UUb:105,IWb:107,o4b:108,Q1b:109,X4b:110,LWb:111,KWb:112,bZb:113,cZb:114,a1b:115,fUb:116,jZb:117,$Vb:118,j5b:119,I_b:120,J_b:121,nYb:193,LUb:122,oVb:123,qYb:124,g_b:125,
IYb:198,H0b:199,yYb:200,zSb:201,DYb:202,CYb:203,HTb:204,S5b:205,qZb:206,tUb:207,F_b:208,W0b:209,S1b:210,$Sb:211,$Yb:212,gZb:213,e4b:214,d4b:215,AYb:216,lYb:217,zYb:218,LVb:219,s4b:220,MVb:221,YYb:222,l4b:223,D5b:224,q_b:225,k4b:226,qVb:227,pZb:228,PVb:229,pUb:230,z4b:231,h_b:232,FILE_TOO_LARGE:233,EYb:234,KVb:235,zWb:236,S0b:237,n_b:238,kSb:239,qUb:240,u_b:241,b2b:242,wVb:243,xSb:245,uYb:246,X_b:247,sYb:248,IZb:249,l_b:250,EWb:251,sXb:252,aZb:253,cUb:254,JWb:255,s5b:256,eXb:257,SZb:258,h1b:259,G0b:260,
OYb:261,aVb:262,xVb:263,tTb:264,BZb:265,q5b:266,oSb:267},G0c=[1004,1005,1002,1003],U0c=[1002,1003,1005],e5c=[1,2],f5c=function(a){_.Q(this,a,-1,e5c,null)};_.O(f5c,_.N);var g5c=function(a){_.Q(this,a,-1,null,null)};_.O(g5c,_.N);g5c.prototype.Cb=function(){return _.C(this,1)};g5c.prototype.Dc=function(a){return _.B(this,1,a)};g5c.prototype.Tm=function(){return _.D(this,_.mF,2)};var h5c=function(a){_.oi.call(this,a)};_.O(h5c,_.oi);i5c=[3];_.tN=function(a){_.Q(this,a,-1,i5c,null)};_.O(_.tN,_.N);
_.tN.prototype.getType=function(){return _.C(this,1)};_.tN.prototype.Kc=function(){return _.C(this,2)};_.hN=function(a){_.Q(this,a,-1,null,null)};_.O(_.hN,_.N);_.hN.prototype.getId=function(){return _.C(this,1)};_.hN.prototype.Pb=function(a){return _.B(this,1,a)};_.hN.prototype.te=function(){return _.D(this,_.ef,3)};_.j5c=function(a){_.Q(this,a,-1,null,null)};_.O(_.j5c,_.N);_.j5c.prototype.getFeature=function(){return _.C(this,1)};k5c=[1];_.vM=function(a){_.Q(this,a,-1,k5c,null)};_.O(_.vM,_.N);
l5c=[2,3,8];_.JL=function(a){_.Q(this,a,-1,l5c,null)};_.O(_.JL,_.N);_.JL.prototype.getId=function(){return _.C(this,1)};_.JL.prototype.Pb=function(a){return _.B(this,1,a)};_.JL.prototype.te=function(){return _.D(this,_.ef,4)};_.JL.prototype.Bc=function(){return _.C(this,5)};var m5c=function(a){_.Q(this,a,-1,null,null)};_.O(m5c,_.N);var n5c=[1,2,4],o5c=function(a){_.Q(this,a,-1,null,null)};_.O(o5c,_.N);o5c.prototype.O=function(){return _.D(this,_.BE,1)};
o5c.prototype.V=function(){return _.D(this,_.BE,2)};o5c.prototype.ha=function(){return _.D(this,_.BE,3)};var p5c=function(a){_.Q(this,a,-1,null,null)};_.O(p5c,_.N);_.g=p5c.prototype;_.g.C9a=function(){return _.L(this,1)};_.g.Qk=function(a){return _.B(this,1,a)};_.g.zm=function(){return _.L(this,2)};_.g.B9a=function(){return _.L(this,3)};_.g.D9a=function(){return _.L(this,4)};var uN=[[13,19,12,11,10,15,14,9,8,18,17,16]],q5c=function(a){_.Q(this,a,-1,null,null)};_.O(q5c,_.N);
q5c.prototype.O=function(){return _.L(this,1)};q5c.prototype.V=function(){return _.L(this,2)};var r5c=function(a){_.Q(this,a,-1,null,null)};_.O(r5c,_.N);r5c.prototype.MUa=function(){return _.C(this,1)};r5c.prototype.O=function(){return _.C(this,4)};var s5c=function(a){_.Q(this,a,-1,null,null)};_.O(s5c,_.N);s5c.prototype.V=function(){return _.C(this,1)};s5c.prototype.O=function(){return _.C(this,2)};var t5c=function(a){_.Q(this,a,-1,null,null)};_.O(t5c,_.N);
t5c.prototype.V=function(){return _.C(this,1)};t5c.prototype.O=function(){return _.C(this,2)};var u5c=function(a){_.Q(this,a,-1,null,null)};_.O(u5c,_.N);var v5c=[1],w5c=function(a){_.Q(this,a,-1,null,null)};_.O(w5c,_.N);w5c.prototype.O=function(){return _.L(this,1)};w5c.prototype.V=function(){return _.L(this,2)};var x5c=function(a){_.Q(this,a,-1,null,null)};_.O(x5c,_.N);_.g=x5c.prototype;_.g.R9a=function(){return _.L(this,1)};_.g.Qk=function(a){return _.B(this,1,a)};
_.g.zm=function(){return _.L(this,2)};_.g.O9a=function(){return _.D(this,o5c,3)};_.g.S9a=function(){return _.S(this,3)};_.g.Q9a=function(){return _.D(this,o5c,4)};_.g.U9a=function(){return _.S(this,4)};_.g.P9a=function(){return _.C(this,5)};_.g.T9a=function(){return _.S(this,5)};var y5c=function(a){_.Q(this,a,-1,null,null)};_.O(y5c,_.N);_.g=y5c.prototype;_.g.getLabel=function(){return _.C(this,1)};_.g.Ad=function(a){return _.B(this,1,a)};_.g.qr=function(){return _.S(this,1)};
_.g.Za=function(){return _.C(this,2)};_.g.Jb=function(a){return _.B(this,2,a)};_.g.vi=function(){return _.Tj(this,2)};_.g.hh=function(){return _.S(this,2)};_.g.Bg=function(){return _.C(this,5)};_.g.tm=function(a){return _.B(this,5,a)};_.g.N9a=function(){return _.S(this,5)};_.g.getCapabilities=function(){return _.D(this,w5c,3)};_.g.M9a=function(){return _.D(this,x5c,4)};var z5c=function(a){_.Q(this,a,-1,v5c,null)};_.O(z5c,_.N);z5c.prototype.O=function(){return _.ek(this,y5c,1)};
var A5c=function(a,b){_.Cb(a,1,b)},B5c=function(a){_.Q(this,a,-1,null,null)};_.O(B5c,_.N);B5c.prototype.Mt=function(){return _.C(this,1)};B5c.prototype.PV=function(){return _.S(this,1)};B5c.prototype.getOptions=function(){return _.D(this,z5c,2)};var C5c=function(a){_.Q(this,a,-1,null,null)};_.O(C5c,_.N);C5c.prototype.Mt=function(){return _.C(this,1)};C5c.prototype.PV=function(){return _.S(this,1)};C5c.prototype.getOptions=function(){return _.D(this,t5c,2)};var D5c=function(a){_.Q(this,a,-1,null,null)};
_.O(D5c,_.N);var E5c=function(a){_.Q(this,a,-1,null,null)};_.O(E5c,_.N);E5c.prototype.Mt=function(){return _.C(this,1)};E5c.prototype.PV=function(){return _.S(this,1)};E5c.prototype.getOptions=function(){return _.D(this,D5c,2)};var vN=[[3,4,5,6,7,8,9,10,11,12]],F5c=function(a){_.Q(this,a,-1,null,vN)};_.O(F5c,_.N);_.g=F5c.prototype;_.g.Xca=function(a){return _.fk(this,3,vN[0],a)};_.g.t4a=function(a){return _.fk(this,4,vN[0],a)};_.g.G3a=function(a){return _.fk(this,5,vN[0],a)};
_.g.F3a=function(a){return _.fk(this,6,vN[0],a)};_.g.t3a=function(a){return _.fk(this,7,vN[0],a)};_.g.g4a=function(a){return _.fk(this,8,vN[0],a)};_.g.f4a=function(a){return _.fk(this,9,vN[0],a)};_.g.y4a=function(a){return _.fk(this,10,vN[0],a)};_.g.opa=function(a){return _.fk(this,11,vN[0],a)};_.g.Voa=function(a){return _.fk(this,12,vN[0],a)};var G5c=function(a){_.Q(this,a,-1,null,null)};_.O(G5c,_.N);var H5c=function(a){_.Q(this,a,-1,null,null)};_.O(H5c,_.N);
H5c.prototype.Mt=function(){return _.C(this,1)};H5c.prototype.PV=function(){return _.S(this,1)};H5c.prototype.getOptions=function(){return _.D(this,G5c,2)};var I5c=function(a){_.Q(this,a,-1,null,uN)};_.O(I5c,_.N);_.g=I5c.prototype;_.g.getId=function(){return _.C(this,1)};_.g.Pb=function(a){return _.B(this,1,a)};_.g.G9a=function(){return _.C(this,2)};_.g.Fe=function(){return _.C(this,4)};_.g.F9a=function(){return _.D(this,p5c,5)};_.g.getCapabilities=function(){return _.D(this,q5c,6)};
_.g.L9a=function(){return _.C(this,7)};_.g.t3a=function(a){return _.fk(this,13,uN[0],a)};_.g.E9a=function(){return _.D(this,r5c,19)};_.g.Voa=function(a){return _.fk(this,19,uN[0],a)};_.g.F3a=function(a){return _.fk(this,12,uN[0],a)};_.g.G3a=function(a){return _.fk(this,11,uN[0],a)};_.g.bsb=function(){return _.D(this,s5c,10)};_.g.H9a=function(){return _.D(this,B5c,15)};_.g.f4a=function(a){return _.fk(this,15,uN[0],a)};_.g.I9a=function(){return _.D(this,z5c,14)};
_.g.g4a=function(a){return _.fk(this,14,uN[0],a)};_.g.t4a=function(a){return _.fk(this,9,uN[0],a)};_.g.J9a=function(){return _.D(this,t5c,8)};_.g.Xca=function(a){return _.fk(this,8,uN[0],a)};_.g.K9a=function(){return _.D(this,H5c,18)};_.g.opa=function(a){return _.fk(this,18,uN[0],a)};_.g.y4a=function(a){return _.fk(this,17,uN[0],a)};var J5c=[5],K5c=function(a){_.Q(this,a,-1,null,null)};_.O(K5c,_.N);K5c.prototype.ha=function(){return _.L(this,1)};K5c.prototype.O=function(){return _.L(this,2)};
K5c.prototype.ma=function(){return _.L(this,3)};K5c.prototype.V=function(){return _.L(this,4)};var wN=function(a){_.Q(this,a,-1,J5c,null)};_.O(wN,_.N);wN.prototype.getName=function(){return _.C(this,1)};wN.prototype.$c=function(a){return _.B(this,1,a)};wN.prototype.Qm=function(){return _.C(this,2)};var L5c=function(a,b){return _.B(a,2,b)};wN.prototype.V=function(){return _.C(this,14)};var M5c=function(a,b){return _.B(a,14,b)};_.g=wN.prototype;_.g.getTitle=function(){return _.C(this,3)};
_.g.setTitle=function(a){return _.B(this,3,a)};_.g.Bg=function(){return _.C(this,4)};_.g.tm=function(a){return _.B(this,4,a)};_.g.W9a=function(){return _.C(this,15)};_.g.V9a=function(){return _.ek(this,I5c,5)};var N5c=function(a,b){_.Cb(a,5,b)},O5c=function(a,b){_.A(a,6,b)},P5c=function(a,b){_.A(a,7,b)},Q5c=function(a,b){_.A(a,8,b)};wN.prototype.O=function(){return _.D(this,p5c,12)};var R5c=function(a,b){_.A(a,12,b)};wN.prototype.getCapabilities=function(){return _.D(this,K5c,13)};
var S5c=function(a,b){_.A(a,13,b)},T5c=[5,7,9],U5c=function(a){_.Q(this,a,-1,T5c,null)};_.O(U5c,_.N);_.g=U5c.prototype;_.g.getUser=function(){return _.D(this,_.Qk,1)};_.g.nA=function(a){_.B(this,2,a)};_.g.setBooleanValue=function(a){return _.B(this,3,a)};_.g.setTextValue=function(a){return _.B(this,4,a)};_.g.kpa=function(a){return _.B(this,5,a||[])};_.g.addTextValues=function(a,b){return _.ck(this,5,a,b)};_.g.setSelectionValue=function(a){return _.B(this,6,a)};
_.g.gpa=function(a){return _.B(this,7,a||[])};_.g.addSelectionValues=function(a,b){return _.ck(this,7,a,b)};_.g.setIntegerValue=function(a){return _.B(this,8,a)};_.g.Zoa=function(a){return _.B(this,9,a||[])};_.g.addIntegerValues=function(a,b){return _.ck(this,9,a,b)};var V5c=[7,10,12,16,13,3],xN=function(a){_.Q(this,a,-1,V5c,null)};_.O(xN,_.N);var yN=function(a){return _.C(a,4)};_.g=xN.prototype;_.g.nA=function(a){_.B(this,4,a)};_.g.setBooleanValue=function(a){return _.B(this,5,a)};
_.g.$9a=function(){return _.C(this,6)};_.g.setTextValue=function(a){return _.B(this,6,a)};_.g.kpa=function(a){return _.B(this,7,a||[])};_.g.addTextValues=function(a,b){return _.ck(this,7,a,b)};_.g.Y9a=function(){return _.C(this,8)};_.g.setLongTextValue=function(a){return _.B(this,8,a)};_.g.Z9a=function(){return _.C(this,9)};_.g.setSelectionValue=function(a){return _.B(this,9,a)};_.g.gMa=function(){return _.Id(this,10)};_.g.gpa=function(a){return _.B(this,10,a||[])};
_.g.addSelectionValues=function(a,b){return _.ck(this,10,a,b)};_.g.X9a=function(){return _.C(this,11)};_.g.setIntegerValue=function(a){return _.B(this,11,a)};_.g.Zoa=function(a){return _.B(this,12,a||[])};_.g.addIntegerValues=function(a,b){return _.ck(this,12,a,b)};_.g.hMa=function(){return _.D(this,_.Qk,15)};_.g.setUserValue=function(a){return _.A(this,15,a)};_.g.WAa=function(){return _.ek(this,_.Qk,16)};var W5c=function(a,b){_.Cb(a,16,b)};
xN.prototype.addUserValues=function(a,b){return _.gk(this,16,a,_.Qk,b)};xN.prototype.O=function(){return _.C(this,17)};xN.prototype.setDateStringValue=function(a){return _.B(this,17,a)};xN.prototype.V=function(){return _.S(this,17)};var X5c=function(a,b){_.Cb(a,13,b)};xN.prototype.getId=function(){return _.C(this,14)};xN.prototype.Pb=function(a){return _.B(this,14,a)};xN.prototype.getName=function(){return _.C(this,1)};xN.prototype.$c=function(a){return _.B(this,1,a)};
var Y5c=[2],zN=function(a){_.Q(this,a,-1,Y5c,null)};_.O(zN,_.N);zN.prototype.getName=function(){return _.C(this,1)};zN.prototype.$c=function(a){return _.B(this,1,a)};zN.prototype.O=function(){return _.ek(this,xN,2)};var Z5c=function(a,b){_.Cb(a,2,b)};zN.prototype.Kc=function(){return _.C(this,3)};var $5c=function(a,b){return _.B(a,3,b)},a6c={k5b:0,TZb:1,e0b:2,T_b:3,JYb:4,XSb:5,UZb:6,U_b:7,SXb:8,sTb:9,R_b:10},AN=function(){this.map={};this.status=6;this.Pe=null};AN.prototype.Cb=function(){return this.status};
AN.prototype.Dc=function(a){this.status=a};AN.prototype.jf=function(){return this.Pe};AN.prototype.Ti=function(a){this.Pe=a};var b6c=function(a,b){a.map=b};AN.prototype.Rb=function(a){var b=[];_.Na(this.map,function(c,d){b.push({k:d,v:c?a(c):null})});return JSON.stringify({s:this.status,d:this.Pe,me:b})};c6c=function(a,b,c){c=JSON.parse(c);a.Dc(c.s);a.Ti(c.d);var d={};c.me.forEach(function(e){d[e.k]=e.v?b(e.v):null});a.map=d};_.yM=function(){AN.apply(this,arguments)};_.O(_.yM,AN);
var d6c=function(){AN.apply(this,arguments)};_.O(d6c,AN);var e6c=function(a){_.Q(this,a,-1,null,null)};_.O(e6c,_.N);e6c.prototype.getType=function(){return _.C(this,1)};var f6c=function(a){var b=new e6c;return _.B(b,1,a)},g6c=function(a,b){return _.A(a,2,b)};e6c.prototype.Mx=function(){return _.C(this,3)};e6c.prototype.qy=function(a){return _.B(this,3,a)};e6c.prototype.Ji=function(){return _.C(this,4)};e6c.prototype.setPosition=function(a){return _.B(this,4,a)};
var h6c=[2],i6c=function(a){_.Q(this,a,-1,h6c,null)};_.O(i6c,_.N);i6c.prototype.Cb=function(){return _.C(this,1)};i6c.prototype.Dc=function(a){return _.B(this,1,a)};var j6c=[2],BN=function(a){_.Q(this,a,-1,j6c,null)};_.O(BN,_.N);BN.prototype.Cb=function(){return _.C(this,1)};BN.prototype.Dc=function(a){return _.B(this,1,a)};BN.prototype.O=function(){return _.ek(this,zN,2)};var k6c=function(a,b){return _.Cb(a,2,b)};BN.prototype.Uj=function(){return _.C(this,3)};
var l6c=function(a){_.Q(this,a,-1,null,null)};_.O(l6c,_.N);l6c.prototype.Cb=function(){return _.C(this,1)};l6c.prototype.Dc=function(a){return _.B(this,1,a)};l6c.prototype.k$=function(){return _.D(this,_.hl,2)};m6c=function(a,b){return _.A(a,2,b)};n6c={0:"UNSPECIFIED_FEEDBACK",1:"IMPLICIT_REJECT",2:"NOT_HELPFUL_RIGHT_NOW"};o6c=function(a,b){return new _.lSc(_.mSc.bound(a,b,void 0,void 0))};
p6c=function(){var a=new _.$h,b=_.ySc().deleteDatabase("GoogleDriveDs");b.onsuccess=function(){a.callback()};b.onerror=function(c){a.Kd(_.zK(c.target,"deleting database GoogleDriveDs"))};b.onblocked=function(){};return a};_.q6c=function(a){_.Q(this,a,-1,null,null)};_.O(_.q6c,_.N);_.q6c.prototype.vq=function(){return _.C(this,1)};_.q6c.prototype.Nd=function(){return _.C(this,2)};_.q6c.prototype.setSize=function(a){return _.B(this,2,a)};_.q6c.prototype.getUrl=function(){return _.C(this,3)};
_.r6c=function(a){_.Q(this,a,-1,null,null)};_.O(_.r6c,_.N);_.r6c.prototype.getType=function(){return _.C(this,1)};s6c=[2,3];_.t6c=function(a){_.Q(this,a,-1,s6c,null)};_.O(_.t6c,_.N);u6c=[4,5,6,17,18,24];_.CN=function(a){_.Q(this,a,-1,u6c,null)};_.O(_.CN,_.N);_.CN.prototype.getId=function(){return _.C(this,1)};_.CN.prototype.Pb=function(a){return _.B(this,1,a)};_.CN.prototype.getName=function(){return _.C(this,2)};_.CN.prototype.$c=function(a){return _.B(this,2,a)};
var v6c=function(a,b){return _.B(a,4,b||[])},w6c=function(a,b){return _.B(a,5,b||[])};_.CN.prototype.uQ=function(){return _.C(this,8)};_.CN.prototype.zAa=function(){return _.L(this,22)};_.CN.prototype.getType=function(){return _.C(this,23)};_.CN.prototype.zm=function(){return _.L(this,33)};var x6c=[3],DN=function(a){_.Q(this,a,-1,x6c,null)};_.O(DN,_.N);DN.prototype.ap=function(){return _.C(this,1)};var y6c=function(a,b){return _.B(a,1,b)};DN.prototype.getTitle=function(){return _.C(this,2)};
DN.prototype.setTitle=function(a){return _.B(this,2,a)};DN.prototype.Gd=function(){return _.ek(this,_.hl,3)};var z6c=function(a,b){return _.Cb(a,3,b)};DN.prototype.Zg=function(a,b){return _.gk(this,3,a,_.hl,b)};DN.prototype.V=function(){return _.C(this,4)};var A6c=function(a,b){return _.B(a,4,b)};DN.prototype.O=function(){return _.D(this,_.Sk,5)};var B6c=function(a,b){return _.A(a,5,b)},Q1c=function(a){_.Q(this,a,-1,null,null)};_.O(Q1c,_.N);var C6c=[2],EN=function(a){_.Q(this,a,-1,C6c,null)};
_.O(EN,_.N);EN.prototype.Cb=function(){return _.C(this,1)};EN.prototype.Dc=function(a){return _.B(this,1,a)};EN.prototype.Fk=function(){return _.ek(this,DN,2)};var D6c=function(a,b){return _.Cb(a,2,b)};EN.prototype.Hf=function(){return _.C(this,4)};E6c=function(a,b){return _.B(a,4,b)};_.AM=function(a){_.Q(this,a,-1,null,null)};_.O(_.AM,_.N);_.g=_.AM.prototype;_.g.Cb=function(){return _.C(this,1)};_.g.Dc=function(a){return _.B(this,1,a)};_.g.vT=function(){return _.Rj(this,2,_.mF)};
_.g.Uj=function(){return _.C(this,3)};_.g.jf=function(){return _.C(this,5)};_.g.Ti=function(a){return _.B(this,5,a)};var F6c=function(a){_.Q(this,a,-1,null,null)};_.O(F6c,_.N);F6c.prototype.Bg=function(){return _.H(this,1)};F6c.prototype.tm=function(a){return _.ak(this,1,a)};F6c.prototype.getUrl=function(){return _.H(this,2)};_.G6c=function(a){_.Q(this,a,-1,null,null)};_.O(_.G6c,_.N);_.G6c.prototype.getType=function(){return _.Oj(this,1,0)};
_.G6c.prototype.getContext=function(){return _.D(this,F6c,2)};_.G6c.prototype.dj=function(a){return _.A(this,2,a)};H6c=[1];I6c=[2];_.J6c=function(a){_.Q(this,a,-1,I6c,null)};_.O(_.J6c,_.N);_.J6c.prototype.getLabel=function(){return _.H(this,1)};_.J6c.prototype.Ad=function(a){return _.ak(this,1,a)};_.K6c=function(a){_.Q(this,a,-1,H6c,null)};_.O(_.K6c,_.N);_.L6c=[[2,3,4]];_.FN=function(a){_.Q(this,a,-1,null,null)};_.O(_.FN,_.N);_.FN.prototype.Fe=function(){return _.H(this,3)};
_.FN.prototype.Fn=function(a){return _.ak(this,4,a)};_.M6c=function(a){_.Q(this,a,-1,null,null)};_.O(_.M6c,_.N);_.N6c=function(a){_.Q(this,a,-1,null,_.L6c)};_.O(_.N6c,_.N);var O6c=function(a){_.Q(this,a,-1,null,null)};_.O(O6c,_.N);P6c=[3,5];_.GN=[[8,9,10,11,12,13,14]];_.Q6c=function(a){_.Q(this,a,-1,null,null)};_.O(_.Q6c,_.N);_.R6c=function(a){_.Q(this,a,-1,P6c,_.GN)};_.O(_.R6c,_.N);_.R6c.prototype.Cb=function(){return _.Oj(this,6,0)};_.R6c.prototype.Dc=function(a){return _.bk(this,6,a)};
var S6c=function(a){_.Q(this,a,-1,null,null)};_.O(S6c,_.N);var T6c=function(a){_.Q(this,a,-1,null,null)};_.O(T6c,_.N);var U6c=function(a){_.Q(this,a,-1,null,null)};_.O(U6c,_.N);var V6c=[1],W6c=function(a){_.Q(this,a,-1,V6c,null)};_.O(W6c,_.N);var X6c=function(a){_.Q(this,a,-1,null,null)};_.O(X6c,_.N);var Y6c=function(a){_.Q(this,a,-1,null,null)};_.O(Y6c,_.N);Z6c=[7];_.$6c=[[1,2,3]];_.a7c=function(a){_.Q(this,a,-1,null,null)};_.O(_.a7c,_.N);_.b7c=function(a){_.Q(this,a,-1,null,null)};_.O(_.b7c,_.N);
_.c7c=function(a){_.Q(this,a,-1,null,null)};_.O(_.c7c,_.N);_.d7c=function(a){_.Q(this,a,-1,Z6c,_.$6c)};_.O(_.d7c,_.N);_.e7c=function(a){_.Q(this,a,-1,null,null)};_.O(_.e7c,_.N);_.e7c.prototype.getName=function(){return _.H(this,1)};_.e7c.prototype.$c=function(a){return _.ak(this,1,a)};var f7c=function(a){_.Q(this,a,-1,null,null)};_.O(f7c,_.N);f7c.prototype.getName=function(){return _.H(this,1)};f7c.prototype.$c=function(a){return _.ak(this,1,a)};f7c.prototype.getTitle=function(){return _.H(this,2)};
f7c.prototype.setTitle=function(a){return _.ak(this,2,a)};var g7c=function(a){_.Q(this,a,-1,null,null)};_.O(g7c,_.N);g7c.prototype.getName=function(){return _.H(this,1)};g7c.prototype.$c=function(a){return _.ak(this,1,a)};g7c.prototype.getTitle=function(){return _.H(this,2)};g7c.prototype.setTitle=function(a){return _.ak(this,2,a)};var h7c=[[1,4]],i7c=function(a){_.Q(this,a,-1,null,h7c)};_.O(i7c,_.N);i7c.prototype.getUser=function(){return _.D(this,_.N6c,1)};
i7c.prototype.k$=function(){return _.D(this,g7c,2)};var j7c=[[8,9,10]],k7c=function(a){_.Q(this,a,-1,null,null)};_.O(k7c,_.N);_.l7c=function(a){_.Q(this,a,-1,null,null)};_.O(_.l7c,_.N);_.l7c.prototype.getType=function(){return _.Oj(this,6,0)};_.m7c=function(a){_.Q(this,a,-1,null,null)};_.O(_.m7c,_.N);var n7c=function(a){_.Q(this,a,-1,null,j7c)};_.O(n7c,_.N);_.g=n7c.prototype;_.g.getName=function(){return _.H(this,1)};_.g.$c=function(a){return _.ak(this,1,a)};
_.g.getTitle=function(){return _.H(this,2)};_.g.setTitle=function(a){return _.ak(this,2,a)};_.g.getFile=function(){return _.D(this,k7c,3)};_.g.xi=function(){return _.Pj(this,5)};_.g.getMimeType=function(){return _.H(this,6)};_.g.HC=function(){return _.D(this,i7c,7)};var o7c=function(a){_.Q(this,a,-1,null,null)};_.O(o7c,_.N);var p7c=[[8,9,10]],q7c=function(a){_.Q(this,a,-1,null,p7c)};_.O(q7c,_.N);_.g=q7c.prototype;_.g.getName=function(){return _.H(this,1)};_.g.$c=function(a){return _.ak(this,1,a)};
_.g.getTitle=function(){return _.H(this,2)};_.g.setTitle=function(a){return _.ak(this,2,a)};_.g.getFile=function(){return _.D(this,k7c,3)};r7c=[[1,3]];_.s7c=function(a){_.Q(this,a,-1,null,r7c)};_.O(_.s7c,_.N);_.s7c.prototype.Oi=function(){return _.D(this,q7c,1)};_.s7c.prototype.k$=function(){return _.D(this,g7c,2)};_.t7c=[[1,2,3]];_.u7c=function(a){_.Q(this,a,-1,null,null)};_.O(_.u7c,_.N);_.v7c=function(a){_.Q(this,a,-1,null,_.t7c)};_.O(_.v7c,_.N);var w7c=function(a){_.Q(this,a,-1,null,null)};
_.O(w7c,_.N);var x7c=function(a){_.Q(this,a,-1,null,null)};_.O(x7c,_.N);y7c=[2,3];_.z7c=function(a){_.Q(this,a,-1,y7c,null)};_.O(_.z7c,_.N);_.z7c.prototype.getType=function(){return _.Oj(this,1,0)};_.A7c=function(a){_.Q(this,a,-1,null,null)};_.O(_.A7c,_.N);_.A7c.prototype.getType=function(){return _.Oj(this,1,0)};var B7c=function(a){_.Q(this,a,-1,null,null)};_.O(B7c,_.N);B7c.prototype.getType=function(){return _.Oj(this,1,0)};var C7c=function(a){_.Q(this,a,-1,null,null)};_.O(C7c,_.N);
_.D7c=function(a){_.Q(this,a,-1,null,null)};_.O(_.D7c,_.N);var E7c=function(a){_.Q(this,a,-1,null,null)};_.O(E7c,_.N);F7c=[1,2,4];_.G7c=function(a){_.Q(this,a,-1,null,null)};_.O(_.G7c,_.N);_.H7c=function(a){_.Q(this,a,-1,F7c,null)};_.O(_.H7c,_.N);_.HN=function(a){_.Q(this,a,-1,null,null)};_.O(_.HN,_.N);_.HN.prototype.getEmail=function(){return _.H(this,1)};_.HN.prototype.getTitle=function(){return _.H(this,2)};_.HN.prototype.setTitle=function(a){return _.ak(this,2,a)};_.IN=[[2,3,4,5]];
_.JN=function(a){_.Q(this,a,-1,null,_.IN)};_.O(_.JN,_.N);_.JN.prototype.Vf=function(){return _.Oj(this,1,0)};_.JN.prototype.getUser=function(){return _.D(this,_.N6c,2)};var I7c=function(a){_.Q(this,a,-1,null,null)};_.O(I7c,_.N);J7c=[1,2,3,4];_.K7c=function(a){_.Q(this,a,-1,J7c,null)};_.O(_.K7c,_.N);_.L7c=function(a){_.Q(this,a,-1,null,null)};_.O(_.L7c,_.N);_.M7c=function(a){_.Q(this,a,-1,null,null)};_.O(_.M7c,_.N);_.N7c=function(a){_.Q(this,a,-1,null,null)};_.O(_.N7c,_.N);
_.O7c=function(a){_.Q(this,a,-1,null,null)};_.O(_.O7c,_.N);_.O7c.prototype.getType=function(){return _.Oj(this,1,0)};P7c=[1];_.Q7c=function(a){_.Q(this,a,-1,null,null)};_.O(_.Q7c,_.N);_.Q7c.prototype.getFeature=function(){return _.Oj(this,1,0)};_.R7c=function(a){_.Q(this,a,-1,P7c,null)};_.O(_.R7c,_.N);var S7c=function(a){_.Q(this,a,-1,null,null)};_.O(S7c,_.N);var T7c=function(a){_.Q(this,a,-1,null,null)};_.O(T7c,_.N);var U7c=function(a){_.Q(this,a,-1,null,null)};_.O(U7c,_.N);
U7c.prototype.getType=function(){return _.Oj(this,1,0)};_.KN=[[1,2,3,4,5,6,7,8,9,10,11,12,13,18,15,16,19,20,21]];_.LN=function(a){_.Q(this,a,-1,null,_.KN)};_.O(_.LN,_.N);_.LN.prototype.sz=function(){return _.D(this,U7c,10)};_.V7c=function(a){_.Q(this,a,-1,null,null)};_.O(_.V7c,_.N);var W7c=function(a){_.Q(this,a,-1,null,null)};_.O(W7c,_.N);_.X7c=function(a){_.Q(this,a,-1,null,null)};_.O(_.X7c,_.N);_.Y7c=function(a){_.Q(this,a,-1,null,null)};_.O(_.Y7c,_.N);
_.Y7c.prototype.getType=function(){return _.Oj(this,1,0)};_.Z7c=[[1,2,3,4,5]];_.$7c=function(a){_.Q(this,a,-1,null,_.Z7c)};_.O(_.$7c,_.N);_.$7c.prototype.getUser=function(){return _.D(this,_.N6c,1)};var a8c=function(a){_.Q(this,a,-1,null,null)};_.O(a8c,_.N);a8c.prototype.getType=function(){return _.Oj(this,2,0)};a8c.prototype.qh=function(){return _.H(this,1)};_.b8c=function(a){_.Q(this,a,-1,null,null)};_.O(_.b8c,_.N);_.g=_.b8c.prototype;_.g.getName=function(){return _.H(this,1)};
_.g.$c=function(a){return _.ak(this,1,a)};_.g.getTitle=function(){return _.H(this,2)};_.g.setTitle=function(a){return _.ak(this,2,a)};_.g.Na=function(){return _.D(this,n7c,3)};_.c8c=function(a){_.Q(this,a,-1,null,null)};_.O(_.c8c,_.N);_.c8c.prototype.getParent=function(){return _.D(this,n7c,4)};_.c8c.prototype.Dg=function(a){return _.A(this,4,a)};var d8c=function(a){_.Q(this,a,-1,null,null)};_.O(d8c,_.N);_.g=d8c.prototype;_.g.getName=function(){return _.H(this,1)};
_.g.$c=function(a){return _.ak(this,1,a)};_.g.getTitle=function(){return _.H(this,2)};_.g.setTitle=function(a){return _.ak(this,2,a)};_.g.Na=function(){return _.D(this,n7c,3)};_.e8c=[[1,5,3]];_.f8c=function(a){_.Q(this,a,-1,null,_.e8c)};_.O(_.f8c,_.N);_.f8c.prototype.Oi=function(){return _.D(this,n7c,1)};_.f8c.prototype.k$=function(){return _.D(this,d8c,2)};_.MN=function(a){_.Q(this,a,-1,null,null)};_.O(_.MN,_.N);_.MN.prototype.TX=function(a){_.A(this,1,a)};
_.MN.prototype.kr=function(){return _.D(this,_.Rw,2)};_.MN.prototype.YE=function(a){_.A(this,2,a)};g8c=[[5,6]];_.h8c=function(a){_.Q(this,a,-1,null,g8c)};_.O(_.h8c,_.N);_.h8c.prototype.Dh=function(){return _.D(this,a8c,2)};_.h8c.prototype.O=function(a){_.fk(this,5,g8c[0],a)};i8c=[3,4,5];j8c=[[6,7]];_.k8c=function(a){_.Q(this,a,-1,i8c,j8c)};_.O(_.k8c,_.N);_.k8c.prototype.O=function(a){_.fk(this,6,j8c[0],a)};var l8c=[1],iN=[[1,2,3,4,5,6,7]],r1c=function(a){_.Q(this,a,-1,null,iN)};_.O(r1c,_.N);
var s1c=function(a){_.Q(this,a,-1,l8c,null)};_.O(s1c,_.N);var NN=function(a){_.Q(this,a,-1,null,null)};_.O(NN,_.N);NN.prototype.getQuery=function(){return _.D(this,_.Te,1,1)};var m8c=function(a,b){return _.A(a,1,b)};NN.prototype.Ln=function(){return _.C(this,4)};var n8c=function(a,b){return _.A(a,5,b)},o8c=[1,2,5,7,9,10,12],ON=function(a){_.Q(this,a,-1,o8c,null)};_.O(ON,_.N);ON.prototype.Gd=function(){return _.ek(this,_.hl,1)};var p8c=function(a,b){return _.Cb(a,1,b)};
ON.prototype.Zg=function(a,b){return _.gk(this,1,a,_.hl,b)};ON.prototype.PM=function(){return _.ek(this,_.Qk,2)};ON.prototype.kha=function(a){_.gk(this,2,a,_.Qk,void 0)};var q8c=function(a,b){return _.B(a,3,b)};ON.prototype.Mn=function(){return _.C(this,4)};ON.prototype.ku=function(a){return _.B(this,4,a)};var r8c=function(a,b){return _.Cb(a,5,b)},s8c=function(a,b){return _.B(a,6,b)};ON.prototype.Bh=function(){return _.D(this,_.oA,8)};var t8c=function(a,b){return _.B(a,12,b||[])};
ON.prototype.Nu=function(){return _.Oj(this,13,0)};var u8c=function(a,b){return _.B(a,13,b)},v8c={wTb:0,vTb:1,iZb:2,m4b:3,p4b:4},gN=[[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]],p1c=function(a){_.Q(this,a,-1,null,gN)};_.O(p1c,_.N);var w1c=[[1,2]],v1c=function(a){_.Q(this,a,-1,null,w1c)};_.O(v1c,_.N);var z1c=[[1,2,3]],y1c=function(a){_.Q(this,a,-1,null,z1c)};_.O(y1c,_.N);var w8c=[1],x8c=function(a){_.Q(this,a,-1,w8c,null)};_.O(x8c,_.N);x8c.prototype.Lx=function(){return _.H(this,2)};
var y8c=function(a,b){return 1<a?2===b:a===b},z8c=function(a,b){if(0<=b)return!a||a<b?b:a;if(-1===b)return!a||1>=a?2:a+1;if(-2===b)return!a||2>=a?1:a-1;throw Error("Ie");},PN=function(a,b,c,d){this.item=a;this.count=void 0===b?0:b;this.H=void 0===c?1:c;this.O=d};_.g=PN.prototype;_.g.clone=function(){return new PN(this.item.clone(),this.count,this.H,this.O)};_.g.getId=function(){return this.item.getId()};_.g.lc=function(){return this.count};_.g.getItem=function(){return this.item};
_.g.setItem=function(a){this.item=a};_.g.pK=function(a){this.H=a};_.g.equals=function(a){return this.count===a.lc()&&this.H===a.H&&this.O===a.O&&_.mk(this.item,a.getItem())};_.BM=function(a,b,c){this.response=a;this.Pe=void 0===b?0:b;this.D_=void 0===c?null:c};_.aVc=function(a){this.H=a};A8c=function(){};B8c=function(a){this.H=a};_.bVc=function(a){this.H=a};a2c=function(a,b,c,d,e,f,h,k){this.status=a;this.O=b;this.V=c;this.ka=d;this.ha=e;this.Iz=f;this.H=h;this.W=k};
_.DM=function(a,b,c){this.response=a;this.Pe=void 0===b?0:b;this.D_=void 0===c?null:c};_.iVc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};_.lVc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};_.EM=function(a,b,c){this.response=a;this.Pe=void 0===b?0:b;this.D_=void 0===c?null:c};_.FM=function(a,b,c,d){this.response=a;this.pageToken=void 0===b?"":b;this.H=void 0===c?!1:c;this.Pe=void 0===d?0:d};
_.CM=function(a,b,c,d){this.response=a;this.pageToken=void 0===b?"":b;this.H=void 0===c?!1:c;this.Pe=void 0===d?0:d};C8c=function(a){_.CM.call(this,a,void 0,void 0,void 0);this.q3a=new _.po};_.O(C8c,_.CM);
var D8c=function(a,b){this.response=a;this.pageToken=void 0===b?"":b},E8c=function(a){return[].concat(_.jd(new Set(a.map(function(b){return _.DTc.get(b)}).filter(function(b){return b})))).join(",")},QN=function(a,b,c){b=void 0===b?[]:b;c=void 0===c?!1:c;b=[].concat(_.jd(b));b=E8c(b);var d=_.HK(a)?"kind,id,name,colorRgb,backgroundImageLink,creator(kind,permissionId,id,emailAddressFromAccount),permissionsSummary(entryCount,userEntryCount,groupEntryCount,memberCount,selectPermissions(kind,id,userId,emailAddress,domain,role,type,additionalRoles,view,audienceId,customerId)),trusted,primaryDomainName,organizationDisplayName,restrictions,backgroundImageGridViewLink,backgroundImageListViewLink,hidden":
_.E(a,80,!1)?"kind,id,name,colorRgb,backgroundImageLink,creator,permissionsSummary(entryCount,userEntryCount,groupEntryCount,memberCount,selectPermissions(kind,id,userId,emailAddress,domain,role,type,additionalRoles,view,audienceId,customerId,name,photoLink)),trusted,primaryDomainName,organizationDisplayName,restrictions,backgroundImageGridViewLink,backgroundImageListViewLink,hidden":"kind,id,name,colorRgb,backgroundImageLink,creator,permissionsSummary,trusted,primaryDomainName,organizationDisplayName,restrictions,backgroundImageGridViewLink,backgroundImageListViewLink,hidden";
c=c?"canAddChildren,canChangeDriveBackground,canComment,canCopy,canDeleteDrive,canDownload,canEdit,canManageMembers,canShare,canRename,canRenameDrive,canDeleteChildren,canTrashChildren":"canAddChildren,canAddFolderFromAnotherDrive,canChangeTeamDriveBackground,canComment,canCopy,canDeleteTeamDrive,canDownload,canEdit,canManageMembers,canManageVisitors,canRemoveChildren,canRename,canRenameTeamDrive,canShareOutsideDomain,canDeleteChildren,canTrashChildren";_.E(a,77,!1)&&(c+=",canChangeCategoryReferences");
_.E(a,93,!1)&&(c+=",canRemoveSecureLinkUpdateForAllFiles",d+=",removeSecureLinkUpdateForAllFiles");return(b.length?d+","+b:d)+",capabilities("+c+")"},F8c=function(a,b){b=void 0===b?[]:b;return"kind,nextPageToken,items("+QN(a,b,!1)+")"},RN=function(a){return a instanceof _.hl?null!=a.getId()&&a.getId()==a.Bc():null!=a.Kc()&&a.Kc()==a.Bc()},G8c=function(a,b,c){c=void 0===c?[]:c;var d=a.clone(),e=b.xh();null!=e&&M0c(a,e.clone());if((e=b.getCapabilities())&&null!=_.L(e,13)){var f=a.getCapabilities()||
new _.cl,h=_.L(e,13);_.B(f,13,h);_.cM(a,f)}e&&null!=_.L(e,18)&&(f=a.getCapabilities()||new _.cl,e=_.L(e,18),_.B(f,18,e),_.cM(a,f));bN(a,b,[76,208,156,61,77,134,81,82,101,93,90,78,222,85,79,189,190,80,135,102,34,91,41,59,95,75,94,221,122,2]);d.xh()&&bN(a,d,c)},H8c=function(a,b,c){c=void 0===c?[]:c;if(!b||!RN(a)&&!RN(b))return a;if(2==eN(a)){c=_.C(a,82);var d=b.clone();G8c(d,a);_.mWc(d,eN(b));_.WK(d,c);return d}a=a.clone();G8c(a,b,c);return a},I8c=function(a){return(a=a?a.xh():null)&&a.zm()||!1},J8c=
function(a,b){this.V=a;this.items={};this.fields=new Set;this.H={};this.O=new Set;this.W=new Set(b)},K8c=function(a,b,c,d){d.length&&(new Set(d.filter(function(e){return!a.W.has(e)&&!c.has(e)}))).forEach(function(e){a.log("Creating field cache for field: "+e);c.add(e);b[e]={}})},M8c=function(a,b,c){b.every(function(d){return RN(d)})?L8c(b,c,a.H,a.O):b.every(function(d){return!RN(d)})&&L8c(b,c,a.items,a.fields)},L8c=function(a,b,c,d){var e=_.OUc(b,[].concat(_.jd(d)));0!==e.length&&a.forEach(function(f){e.forEach(function(h){var k=
c[h][f.getId()];k&&bN(f,k,[h])})})};J8c.prototype.update=function(a,b,c){b&&RN(b)?N8c(a,b,this.H,this.O,c):N8c(a,b,this.items,this.fields,c)};J8c.prototype.WI=function(a){var b=this;_.Na(this.items,function(c,d){_.Wa(b.items[d],a)});_.Na(this.H,function(c,d){_.Wa(b.H[d],a)})};var N8c=function(a,b,c,d,e){_.Na(c,function(f,h){h=Number(h);if(e.includes(h))if(f[a]&&!b)_.Wa(f,a);else if(b&&J0c(b,[h])){var k=new _.hl;k.Pb(b.getId());bN(k,b,[h]);f[a]=k}});b&&F0c(b,[].concat(_.jd(d)))};
J8c.prototype.clear=function(){var a=this;_.Na(this.items,function(b,c){a.items[c]={}});_.Na(this.H,function(b,c){a.H[c]={}})};J8c.prototype.log=function(a){this.V.info("drive.ds.sync.cache.FieldsCache",a)};var O8c=function(a,b,c){var d=this;this.aw=b;this.Xx=c;this.Pd=new Map;this.rootId="";a.addCallback(function(e){d.rootId=e})};_.g=O8c.prototype;_.g.dz=function(){return this.Pd};
_.g.Dk=function(a){var b=new Map;a=_.m(a.Am());for(var c=a.next();!c.done;c=a.next())c=c.value,this.Pd.has(c)&&b.set(c,this.Pd.get(c).getItem());return b};_.g.query=function(a,b){var c=[];if(P8c(a)){for(var d=_.m(this.Pd.values()),e=d.next();!e.done;e=d.next())e=e.value,Q8c(this.aw,a,e.getItem())&&(void 0===b||y8c(e.H,b))&&c.push(e);this.Xx.sort(a,c)}return c};_.g.get=function(a){return this.Pd.get(a)};
_.g.getAll=function(a){var b=[];a=_.m(a);for(var c=a.next();!c.done;c=a.next())(c=this.Pd.get(c.value))&&b.push(c);return b};_.g.update=function(a){a.H?(a.H.count++,a.O&&a.O.count--,R8c(this,a.H)?(this.Pd.delete(a.id),a.H.count--):this.Pd.set(a.id,a.H)):(this.Pd.delete(a.id),a.O.count--)};var R8c=function(a,b){return 1<b.lc()||y8c(b.H,2)||b.getItem().lI()||d1c(b.getItem())?!1:"root"!==b.getId()&&b.getId()!==a.rootId};
O8c.prototype.WI=function(){for(var a=_.m(this.Pd.values()),b=a.next();!b.done;b=a.next())b=b.value,R8c(this,b)&&(this.Pd.delete(b.getId()),b.count--)};var S8c=function(a,b,c,d){this.Mg=a;this.W=b;this.O=c;this.V=d},R1c=function(a,b){return(b=a.O.get(b))?(b=b.clone(),M8c(a.V,[b.getItem()],I4c(a.Mg)),b):null};S8c.prototype.H=function(a){return(a=R1c(this,a))?a.getItem():null};
var T8c=function(a,b){var c={};b.forEach(function(d){var e=R1c(a,d);e&&(c[d]=e)});return c},U8c=function(a,b){return _.Pa(T8c(a,b),function(c){return c.getItem()})},V8c=function(a,b){b=SN(a.W,b);return a.O.query(b).map(function(c){return c.clone()})};S8c.prototype.query=function(a){return V8c(this,a).map(function(b){return b.getItem()})};S8c.prototype.Nd=function(){return this.O.dz().size};
var W8c=function(a){var b=new Set;a=_.m(a.O.dz().values());for(var c=a.next();!c.done;c=a.next()){c=c.value.getItem();for(var d=_.m(_.il(c)),e=d.next();!e.done;e=d.next())e=e.value,b.add(e.getId()||_.xF(e));(d=c.jm())&&b.add(d.getId()||_.xF(d));(d=c.Cv())&&b.add(d.getId()||_.xF(d));(d=c.yq())&&b.add(d.getId()||_.xF(d));(c=c.PC())&&b.add(c.getId()||_.xF(c))}return b.size},X8c=function(a){var b=new _.qp;_.uM(b,"hidden",a.zm());a=_.L(a,6);null!=a&&_.uM(b,"canRemoveSecureLinkUpdateForAllFiles",a);return b.toString()},
Y8c=function(a){switch(a?a.getType():-1){case 1:return[10];case 2:return[11];case 3:return[32];case 4:return[2];case 6:return[12];case 7:return[25];case 9:return[4];case 10:return[9];case 11:return[67];case 12:return[98];default:return null}},Z8c=function(a){var b=_.nRc(),c={};b&&(c.numeric=b);this.H=_.oRc(a,c)};Z8c.prototype.compare=function(a,b,c){b=$8c(b);c=$8c(c);a=a.Ac();var d=Y8c(a);if(a&&d){d=a9c(this,a);var e=4===a.getType()?this.H:_.Ga;return b9c(a,d,e,b,c)}return _.Ga(b.getId(),c.getId())};
Z8c.prototype.sort=function(a,b,c){a=a.Ac();var d=Y8c(a);a&&d&&(d=a9c(this,a),d=c9c(b,d),_.Ia(b,d9c(this,a,d)));c&&0<c&&_.ya(b,c,b.length-c)};
var $8c=function(a){return a instanceof _.hl?a:a.getItem()},a9c=function(a,b){b=Y8c(b);return _.v(a.O,a,b,_.Ga)},c9c=function(a,b){var c={};a.forEach(function(d){d=$8c(d);var e=d.getId();c[e]=b(d)});return c},d9c=function(a,b,c){return function(d,e){var f=4===b.getType()?a.H:_.Ga;d=$8c(d);e=$8c(e);return b9c(b,function(h){return c[h.getId()]},f,d,e)}},b9c=function(a,b,c,d,e){var f=1===_.Oj(a,2,1)?1:-1;if(_.L(a,3)){a=dN(d,!0);var h=dN(e,!0);a=a===h?0:a?-1:1}else a=0;return a||f*(c(b(d),b(e))||_.Ga(d.getId(),
e.getId()))};Z8c.prototype.O=function(a,b,c){for(var d=e9c(a[0],c),e=1;e<a.length;e++){var f=e9c(a[e],c);d=1===b(f,d)?f:d}return d};
var e9c=function(a,b){switch(a){case 21:return b.getId()||"";case 3:return b.getMimeType()||"";case 4:return b.tA()||!1;case 12:return b.Ky()||0;case 11:return b.QA()||0;case 10:return b.oq()||0;case 2:return(b.getTitle()||"").toLowerCase();case 25:return b.Nx()||0;case 57:return _.C(b,62)||0;case 32:return b.Au()||0;case 9:return b.AC()||0;case 67:return b.pJ()||0;case 98:return b.Pt()||0;default:return""}},f9c=function(a,b){this.fields=a;this.rootId="";this.fields.sort();this.H=b;this.Wq=_.BK(_.CK(b));
a=_.SK(b);this.V=!(!a||!_.E(a,1,!1));this.O=!(!a||!_.E(a,8,!1))};f9c.prototype.ku=function(a){this.rootId=a||""};
var SN=function(a,b,c){b=b.clone();"root"===b.getId()&&b.Pb(a.rootId);_.gM(b).filter(function(d){return"root"===d.Za()}).forEach(function(d){return d.Jb(a.rootId)});_.$e(b,_.fM(b).map(function(d){d.Jb(d.Za().toLowerCase());return d}));c&&_.yl(b,a.fields);b.O().sort();return b},TN=function(a,b,c){if(b instanceof _.Te){b=SN(a,b);var d=_.JXc(b)}else if(b instanceof _.yz)d=b.Am().sort().join(","),_.E(b,5,!1)&&(d+="|cachedOnly");else{if(b instanceof _.vK)return d=X8c(b),d+"|tdList";if(b instanceof _.lF)return d=
b.Am().sort().join(","),b.O().length&&(d+="|"+E8c(b.O())),d+"|tdMap";throw Error("Me");}return 3===c?d:d+"|"+g9c(a,b.O(),2===c)},g9c=function(a,b,c){var d="default";if(0===b.length)return d;var e=new Set(b),f=new Set(a.fields);c?(f.forEach(function(h){return e.delete(h)}),f.clear()):[].concat(_.jd(e)).filter(function(h){return f.has(h)}).forEach(function(h){e.delete(h);f.delete(h)});f.size&&(d=d+" - "+_.dL({fields:[].concat(_.jd(f)),Wq:a.Wq}));e.size&&(d=d+" + "+_.dL({fields:[].concat(_.jd(e)),Wq:a.Wq}));
return d};f9c.prototype.equals=function(a,b,c){var d;c&&(d=3);return TN(this,a,d)===TN(this,b,d)};
var h9c=function(a){if(!a.Am().every(function(b){return!_.Xd(b)}))throw new _.kc("Invalid ids for FindByIdsRequest");},j9c=function(a,b,c){if(_.zL(b))throw new _.kc("Did not expect a PeoplePredict request. Use peoplePredictQuery() for PeoplePredict requests. ");i9c(a,b,c)},i9c=function(a,b,c){var d;a.O||(d=_.aL(3));if(b.getId())throw new _.kc("Use findByIds() for find by id queries.",d?d:_.aL(3));if(!b.Ii()||0>=b.Ii())throw new _.kc("A positive limit is required on an ItemQueryRequest.",d?d:_.aL(3));
_.Id(b,33);a.V&&c||(d=a.fields.slice(),c&&(d=d.concat(c)),k9c(a,d,b.O()));if(c=(c=b.Ac())&&Y8c(c))d=b.O().length?b.O():a.fields,k9c(a,d,c);if(_.yL(b)){if(a.Wq)throw new _.kc("User must be authenticated for a Quick Access request.");if(!l9c(a)&&20<b.Ii())throw new _.kc("Limit must be in the range [1, 20].");c=2===_.hM(b);d=_.Id(b,33).length;if(c&&1!==d||d&&!c)throw new _.kc("A Team Drive Quick Access request must specify the Team Drive corpora and a single Team Drive id.");c=_.Wj(_.Tj(_.Tj(_.Tj(_.ZG(_.Tj(_.Uj(_.ZG(b.clone(),
1),30),32),33),45),47),48),6);d=new _.Te;if(!_.mk(c,d))throw new _.kc("Some fields specified are not valid for a Quick Access request. Valid: field, request_descriptor, limit, team_drive, corpora, is_quick_access_request and mime_type. Extra: "+a5c(d,c));}if(_.AL(b)){if(a.Wq)throw new _.kc("User must be authenticated for a DrivePriority request.");if(2===_.hM(b))throw new _.kc("Team Drive corpora is not valid for a Drive Priority request.");a=_.Tj(_.Tj(_.Tj(_.Uj(_.ZG(b.clone(),1),30),32),45),52);
b=new _.Te;if(!_.mk(a,b))throw new _.kc("Some fields specified are not valid for a Drive Priority request. Valid: field, request_descriptor, limit, corpora and is_drive_priority_request. Extra: "+a5c(b,a));}},m9c=function(a,b,c){if(!_.zL(b))throw new _.kc("Expected a PeoplePredict request.");i9c(a,b,c);if(a.Wq)throw new _.kc("User must be authenticated for a People Predict request.");if(2===_.hM(b))throw new _.kc("Team Drive corpora is not valid for a People Predict request.");a=_.Tj(_.Tj(_.Tj(_.Uj(_.ZG(b.clone(),
1),30),32),45),49);b=new _.Te;if(!_.mk(a,b))throw new _.kc("Some fields specified are not valid for a People Predict request. Valid: field, request_descriptor, limit, corpora and is_people_predict_request. Extra: "+a5c(b,a));},k9c=function(a,b,c){var d;a.O||(d=_.aL(3));if(!K0c(b,c,!0)){var e=_.dL({fields:c,Wq:a.Wq}),f=_.dL({fields:b,Wq:a.Wq});a=_.dL({fields:L0c(c,b),Wq:a.Wq});throw new _.kc("Requested field was not previously specified. Needed "+e+", but had "+(f+". Missing: "+a+"."),d?d:_.aL(3));
}},l9c=function(a){return 200<=_.jM(a.H)&&300>_.jM(a.H)},n9c=function(a){var b=new Set;_.fM(a).forEach(function(c){switch(_.nOa(c.Za())){case 7:b.add("IMAGE_ALL");break;case 2:b.add("AUDIO_ALL");break;case 14:b.add("VIDEO_ALL");break;case 4:b.add("DRAWING_ALL");break;case 10:b.add("PRESENTATION_ALL");break;case 12:b.add("SPREADSHEET_ALL");break;case 3:b.add("DOCUMENT_ALL");break;case 6:b.add("FORM_ALL")}});return[].concat(_.jd(b))},o9c=function(a){switch(_.jM(a)){case 3:case 12:case 204:return"GOOGLE_DOCS";
case 4:case 13:case 207:return"GOOGLE_SHEETS";case 5:case 14:case 205:case 208:return"GOOGLE_SLIDES";case 6:case 203:return"GOOGLE_FORMS";case 232:return"GOOGLE_MEET";case 8:case 201:return"GOOGLE_SITES";case 229:case 216:return"GOOGLE_CLASSROOM";case 202:case 1:case 9:return"GOOGLE_DRIVE";case 228:return"GOOGLE_GMAIL";case 236:return"GOOGLE_CHAT";default:return"UNSPECIFIED_APPLICATION"}},p9c=function(a){_.P.call(this);this.H=a};_.Gf(p9c,_.P);_.g=p9c.prototype;_.g.cancel=function(){this.H.cancel()};
_.g.connect=function(a){a&&a()};_.g.isConnected=function(){return!0};_.g.registerService=function(a,b,c){this.H.addCallback(function(d){d.registerService(a,b,c)})};_.g.bO=function(a){this.H.addCallback(function(b){b.bO(a)})};_.g.send=function(a,b){this.H.addCallback(function(c){c.send(a,b)})};_.g.Ya=function(){this.cancel();p9c.ub.Ya.call(this)};var k1c=function(a){_.sx.call(this);this.H=a;this.V=_.qe(this.H,"message",this.bob,!1,this)};_.Gf(k1c,_.sx);_.g=k1c.prototype;_.g.zd=null;
_.g.send=function(a,b){var c=[];b=this.Kya(c,b);a={serviceName:a,payload:b,"--goog.messaging.PortChannel":!0};_.KTc&&(a=(0,_.Di)(a));this.H.postMessage(a,c)};_.g.bob=function(a){a=a.De;var b=a.data;if(_.KTc)try{b=JSON.parse(b)}catch(e){return}if(_.Da(b)&&b["--goog.messaging.PortChannel"]&&"serviceName"in b&&"payload"in b){var c=b.serviceName;b=b.payload;var d=this.getService(c,b);d&&(b=this.O(c,this.cCa(a.ports||[],b),d.KEa),null!=b&&d.callback(b))}};
_.g.Kya=function(a,b){return b&&"[object MessagePort]"==Object.prototype.toString.call(b)?(a.push(b),{_port:{type:"real",index:a.length-1}}):Array.isArray(b)?_.Bb(b,(0,_.v)(this.Kya,this,a)):b&&b.constructor==Object?_.Pa(b,function(c,d){c=this.Kya(a,c);return"_port"==d?{type:"escaped",val:c}:c},this):b};
_.g.cCa=function(a,b){return Array.isArray(b)?_.Bb(b,(0,_.v)(this.cCa,this,a)):b&&b.constructor==Object?b._port&&"real"==b._port.type?a[b._port.index]:_.Pa(b,function(c,d){return this.cCa(a,"_port"==d?c.val:c)},this):b};_.g.Ya=function(){_.vi(this.V);"[object MessagePort]"==Object.prototype.toString.call(this.H)?this.H.close():"[object Worker]"==Object.prototype.toString.call(this.H)&&this.H.terminate();delete this.H;k1c.ub.Ya.call(this)};
var m1c=function(a,b){if("*"==b)return new p9c(_.gi(Error("Ne")));var c=new _.zi(50),d=_.rb(_.aa,c),e=new _.$h(d);_.bi(e,d);c.start();_.qe(c,"tick",function(){var f=new MessageChannel,h=function(){f.port1.removeEventListener("message",h,!0);c.isDisposed()||e.callback(new k1c(f.port1))};f.port1.start();f.port1.addEventListener("message",h,!0);a.postMessage({"--goog.messaging.PortChannel":!0},b,[f.port2])});return new p9c(e)},q9c=function(a){_.P.call(this);this.H=new _.SRc(a);this.V={};this.O=_.URc(this.H,
"private");this.W=_.URc(this.H,"public");this.O.registerService("mics",(0,_.v)(this.Alb,this),!0)};_.Gf(q9c,_.P);_.g=q9c.prototype;_.g.rEb=0;_.g.Ya=function(){_.aa(this.H);delete this.H;delete this.W;delete this.O};_.g.send=function(a,b,c){var d=this.rEb++;this.V[d]=c;c={signature:d};c.data=b;this.W.send(a,c)};_.g.Alb=function(a){var b=a.signature;a=a.data;b in this.V&&((0,this.V[b])(a),delete this.V[b])};_.g.registerService=function(a,b){this.W.registerService(a,(0,_.v)(this.zlb,this,b),!0)};
_.g.zlb=function(a,b){a=a(b.data);var c=b.signature;_.Rh(a).then((0,_.v)(function(d){var e={};e.data=d;e.signature=c;this.O&&this.O.send("mics",e)},this))};var fN=function(a,b,c){_.P.call(this);this.W=c;this.started=!1;this.H=new _.SRc(a);this.Ma(this.H);this.O=new q9c(_.URc(this.H,"direct"));this.Ma(this.O);a=_.URc(this.H,"passthrough");this.V=b?a:new q9c(a);this.Ma(this.V);this.iW=b};_.O(fN,_.P);fN.prototype.registerService=function(a,b){this.O.registerService(a,b)};
fN.prototype.send=function(a,b,c){this.O.send(a,b||{},c||_.Bf)};var UN=function(a,b,c){if(a.iW)throw Error("Oe");a.V.registerService(b,c,!0)},VN=function(a,b,c,d){if(a.iW)throw Error("Pe");a.V.send(b,c||{},d||_.Bf)};fN.prototype.start=function(){this.started||(this.started=!0);if(this.iW)throw Error("Qe");};var h1c=[],r9c=function(){_.sx.call(this);this.H=null};_.O(r9c,_.sx);r9c.prototype.send=function(a,b){_.A3a(this.H,a,b)};
var n1c=function(){this.O=new r9c;this.H=new r9c;var a=this.O;a.H||(a.H=this.H);a=this.H;a.H||(a.H=this.O)},s9c=function(a,b,c,d){this.clientId=a;this.method=b;this.args=c;this.requestId=d||null;this.Rb=null},t9c=function(a,b){b=void 0===b?!1:b;null==a.Rb&&(a.Rb=b)&&g1c(a.args);return{c:a.clientId,m:a.method,a:a.args,req:a.requestId,s:a.Rb}},u9c=function(a){var b=new s9c(a.c,a.m,a.a,a.req);b.Rb=a.s;return b},v9c=function(a,b,c){this.data=b?void 0:a;this.error=b;this.H=c;this.Rb=null},w9c=function(a,
b){b=void 0===b?!1:b;null==a.Rb&&a.data&&(a.Rb=b)&&g1c(a.data);return{d:a.data,err:a.error&&b?a.error.Rb():a.error,uid:a.H,s:b}},x9c=function(a){var b=a.s,c=a.err&&b?new _.jc(JSON.parse(a.err)):a.err;a=new v9c(c?void 0:a.d,c,a.uid);c||(a.Rb=b);return a},f1c=function(a,b){this.H=a;this.CB=b};f1c.prototype.get=function(){for(var a={},b=0;b<this.H.length;b++)a[this.H[b]]=this.CB[b];return a};
f1c.prototype.Rb=function(){for(var a={},b={},c=0;c<this.CB.length;c++){var d=this.CB[c],e=this.H[c];d instanceof Error?b[e]=_.QK(d).Rb():a[e]=d.Rb()}return JSON.stringify([a,b])};y9c=function(a){a=JSON.parse(a);var b=[],c=[];_.Na(a[0],function(d,e){b.push(e);c.push(new _.TL(JSON.parse(d)))});_.Na(a[1],function(d,e){b.push(e);d=new _.jc(JSON.parse(d));c.push(_.bL(d))});return new f1c(b,c)};l1c=function(a,b,c,d,e){this.channel=a;this.H=b;this.endpoint=c;this.V=d;this.O=e};
z9c={jSb:0,DSb:1,wYb:3,E5b:5,dib:6,0:"ACCOUNT",1:"APPS",3:"ITEMS",5:"USER_PREFS",6:"PEOPLE"};_.lL=function(a){_.Q(this,a,-1,null,null)};_.O(_.lL,_.N);_.lL.prototype.qh=function(){return _.C(this,1)};_.lL.prototype.te=function(){return _.D(this,_.ef,3)};_.oL=function(a){_.Q(this,a,-1,null,null)};_.O(_.oL,_.N);_.oL.prototype.Kc=function(){return _.C(this,1)};_.oL.prototype.te=function(){return _.D(this,_.ef,3)};_.vL=function(a){_.Q(this,a,-1,null,null)};_.O(_.vL,_.N);
_.vL.prototype.qh=function(){return _.C(this,1)};_.vL.prototype.te=function(){return _.D(this,_.ef,2)};_.wL=function(a){_.Q(this,a,-1,null,null)};_.O(_.wL,_.N);_.wL.prototype.qh=function(){return _.C(this,1)};_.wL.prototype.te=function(){return _.D(this,_.ef,2)};_.xL=function(a){_.Q(this,a,-1,null,null)};_.O(_.xL,_.N);_.g=_.xL.prototype;_.g.Kc=function(){return _.C(this,1)};_.g.Vf=function(){return _.C(this,2)};_.g.getType=function(){return _.C(this,3)};_.g.Za=function(){return _.C(this,4)};
_.g.Jb=function(a){return _.B(this,4,a)};_.g.vi=function(){return _.Tj(this,4)};_.g.hh=function(){return _.S(this,4)};_.g.te=function(){return _.D(this,_.ef,7)};_.EL=function(a){_.Q(this,a,-1,null,null)};_.O(_.EL,_.N);_.EL.prototype.Kc=function(){return _.C(this,1)};_.EL.prototype.te=function(){return _.D(this,_.ef,2)};_.EL.prototype.Ii=function(){return _.Pj(this,3,1E3)};_.EL.prototype.di=function(a){return _.B(this,3,a)};_.HL=function(a){_.Q(this,a,-1,null,null)};_.O(_.HL,_.N);
_.HL.prototype.te=function(){return _.D(this,_.ef,1)};var A9c=function(){var a=new _.HL,b=_.ff(new _.ef,301);return _.A(a,1,b)};_.HL.prototype.Bc=function(){return _.C(this,3)};_.jVc=function(a){_.Q(this,a,-1,null,null)};_.O(_.jVc,_.N);_.jVc.prototype.Bc=function(){return _.C(this,1)};_.LL=function(a){_.Q(this,a,-1,null,null)};_.O(_.LL,_.N);_.LL.prototype.qh=function(){return _.C(this,1)};_.LL.prototype.te=function(){return _.D(this,_.ef,4)};var B9c=function(a){_.Q(this,a,-1,null,null)};_.O(B9c,_.N);
C9c=function(a,b){return _.B(a,1,b)};_.mL=function(a){_.Q(this,a,-1,null,null)};_.O(_.mL,_.N);_.mL.prototype.getId=function(){return _.C(this,1)};_.mL.prototype.Pb=function(a){return _.B(this,1,a)};_.BL=function(a){_.Q(this,a,-1,null,null)};_.O(_.BL,_.N);_.BL.prototype.getId=function(){return _.C(this,1)};_.BL.prototype.Pb=function(a){return _.B(this,1,a)};_.XUc=function(a){_.Q(this,a,-1,null,null)};_.O(_.XUc,_.N);
var D9c=function(a,b,c){_.yi.call(this);this.Ba=a;this.ma=b;this.O=!0;this.ha=this.H=this.timeout=this.W=null;this.V=!1;this.ka=c};_.O(D9c,_.yi);D9c.prototype.hB=function(){return this.O};D9c.prototype.PP=function(){var a=this;if(this.W)return this.W;var b=_.Xh();this.W=b.promise;_.n.setTimeout(function(){a.W=null},5E3);E9c(this,b);return b.promise};D9c.prototype.oa=function(){!0===this.O&&(this.log("Became unauthenticated."),this.O=!1,this.V=!0,F9c(this))};
D9c.prototype.va=function(){!1===this.O&&(this.log("Became authenticated."),this.O=!0,this.H=null,this.V=!1,this.timeout&&(_.n.clearTimeout(this.timeout),this.timeout=null),this.dispatchEvent(new h5c("ib")))};
var G9c=function(a,b){a.ha=b},F9c=function(a){a.H||(a.H=new _.DYc(5E3),a.timeout=_.n.setTimeout(function(){return H9c(a)},a.H.Za()))},H9c=function(a){E9c(a);a.H&&(_.GG(a.H),a.timeout=_.n.setTimeout(function(){return H9c(a)},a.H.Za()))},E9c=function(a,b){var c=_.Rh();a.ha&&(c=a.ha());c.then(function(){return I9c(a,b)})},I9c=function(a,b){a.log("Checking authentication state.");var c=a.Ba.then(function(d){return d.Ve(new _.kVc)});b?c.then(function(){b.resolve(C9c(new B9c,1))},function(d){var e=_.sA(d).Ug;
d=0;_.XTc(e)?(a.log("Checked authentication state: unauthenticated."),d=2):(a.log("Checked authentication state: error occurred."),_.kq(e),_.B(e,21,"Checked authentication state: error occurred."),a.ka(e));e=new B9c;C9c(e,d);b.resolve(e)}):c.then(null,function(d){d=_.sA(d);_.XTc(d.Ug)&&a.V&&(a.dispatchEvent(new h5c("jb")),a.V=!1)})};D9c.prototype.log=function(a){this.ma.info("drive.ds.sync.auth.StateManager",a)};
var J9c=function(a){return _.D(a,_.IK,3)||_.D(a,_.RL,4)||_.D(a,_.HM,5)||_.D(a,_.OL,6)||_.D(a,_.qL,7)||_.D(a,_.jL,8)||_.D(a,_.nL,9)||_.D(a,_.TK,10)},K9c=function(a){_.Q(this,a,-1,null,null)};_.O(K9c,_.N);_.g=K9c.prototype;_.g.getId=function(){return _.C(this,1)};_.g.Pb=function(a){return _.B(this,1,a)};_.g.oz=function(){return _.C(this,3)};_.g.Le=function(){return _.C(this,4)};_.g.ti=function(a){return _.B(this,4,a)};var L9c=function(a){this.zd=a;this.H=new Map;this.O=this.zd.W};
L9c.prototype.create=function(a,b){if(0!=O4c(b)){var c=this.zd.H(106001);if(c){var d=O4c(b),e=sN(c);_.B(e,2,d);d=sN(c);e=null;if(b instanceof _.yF||b instanceof _.yz||b instanceof _.Te||b instanceof _.CL||b instanceof _.RB||b instanceof _.lF||b instanceof _.vK||b instanceof _.DK||b instanceof _.nF||b instanceof _.gz)e=b.te();e=e&&_.E(e,2,!1);_.B(d,7,"boolean"==typeof e?e:void 0);d=sN(c);b=b instanceof _.Te?0<_.gM(b).length:void 0;_.B(d,8,b);this.H.set(a,c)}}};
var M9c=function(a,b,c){if(a=a.H.get(b))a=sN(a),_.B(a,5,c)},N9c=function(a,b,c){(a=a.H.get(b))&&_.L(sN(a),8)&&(a=sN(a),_.B(a,9,c))},O9c=function(a,b,c,d,e){var f=a.H.get(b);f&&(sN(f).Dc(c),sN(f).Ti(d),null!=e&&(c=sN(f),_.B(c,6,e)),f.Tj(),a.H.delete(b))},P9c=function(a,b,c){var d=a.H.get(b);if(d){var e=a.O.Cb(c);c=P4c(c);if(1==e||2==c)e=_.xM(_.NTc,c),d=sN(d),d=3==e||8==e?!_.L(d,5):0!=e?_.jUc.has(e):null,O9c(a,b,1,e,d)}},Q9c=function(a,b,c){var d=a.O.Cb(c);d=_.xM(_.MTc,d||22);var e=P4c(c);e=_.xM(_.NTc,
e);O9c(a,b,d,e,"undefined"!=typeof _.BM&&c instanceof _.BM||"undefined"!=typeof _.DM&&c instanceof _.DM||"undefined"!=typeof _.EM&&c instanceof _.EM?c.D_:null)},WN=function(a,b,c){c=void 0===c?3:c;var d=a.H.get(b);d&&(sN(d).Dc(c),d.Tj(),a.H.delete(b))},XN=function(a,b){_.oi.call(this,"Gb");this.error=a;this.H=b};_.O(XN,_.oi);var R9c=[2,4],YN=function(a){_.Q(this,a,-1,R9c,null)};_.O(YN,_.N);YN.prototype.Cb=function(){return _.C(this,1)};YN.prototype.Dc=function(a){return _.B(this,1,a)};
YN.prototype.Uj=function(){return _.C(this,3)};var S9c=[4,9],T9c=function(a){_.Q(this,a,-1,S9c,null)};_.O(T9c,_.N);_.g=T9c.prototype;_.g.Cb=function(){return _.C(this,1)};_.g.Dc=function(a){return _.B(this,1,a)};_.g.AVa=function(){return _.C(this,2)};_.g.qMa=function(){return _.C(this,3)};_.g.Rrb=function(){return _.ek(this,_.LK,4)};var U9c={l5b:0,P_b:1,S_b:2,OTHER:3,Q_b:4},V9c=function(a){_.Q(this,a,-1,null,null)};_.O(V9c,_.N);V9c.prototype.getUrl=function(){return _.C(this,1)};
var ZN=function(a){_.Q(this,a,-1,null,null)};_.O(ZN,_.N);var W9c=function(a,b){return _.B(a,1,b)};ZN.prototype.getName=function(){return _.C(this,2)};ZN.prototype.$c=function(a){return _.B(this,2,a)};ZN.prototype.getEmail=function(){return _.C(this,3)};var X9c=function(a,b){return _.B(a,3,b)};ZN.prototype.Ep=function(){return _.S(this,3)};var Y9c=[1],Z9c=function(a){_.Q(this,a,-1,Y9c,null)};_.O(Z9c,_.N);var $9c=function(a,b){return _.Cb(a,1,b)},a$c=function(a){_.Q(this,a,-1,null,null)};_.O(a$c,_.N);
_.g=a$c.prototype;_.g.Kc=function(){return _.C(this,1)};_.g.Cb=function(){return _.C(this,2)};_.g.Dc=function(a){return _.B(this,2,a)};_.g.getError=function(){return _.D(this,_.jc,3)};_.g.Te=function(a){return _.A(this,3,a)};_.g.wn=function(){return _.S(this,3)};var b$c=[2],$N=function(a){_.Q(this,a,-1,b$c,null)};_.O($N,_.N);$N.prototype.Cb=function(){return _.C(this,1)};$N.prototype.Dc=function(a){return _.B(this,1,a)};$N.prototype.Fk=function(){return _.ek(this,_.mF,2)};
var c$c=function(a,b){return _.Cb(a,2,b)};$N.prototype.Uj=function(){return _.C(this,3)};var d$c=[1],e$c=function(a){_.Q(this,a,-1,d$c,null)};_.O(e$c,_.N);var f$c=function(a,b){return _.B(a,1,b||[])},g$c=function(a,b){this.O=a|0;this.H=b|0};g$c.prototype.equals=function(a){return this===a?!0:a instanceof g$c?this.O===a.O&&this.H===a.H:!1};g$c.prototype.Ic=function(){return 31*this.O+17*this.H|0};
var h$c=function(a,b){return new g$c(a,b)},i$c=function(a,b){b=~b;a?a=~a+1:b+=1;return h$c(a,b)},j$c=function(a){var b="-"===a[0];a=a.slice(b?3:2);return(b?i$c:h$c)(parseInt(a.slice(-8),16),parseInt(a.slice(-16,-8)||"",16))},k$c=function(){this.H=this.W=this.O=this.V=null},l$c=function(a,b,c){this.id=a;this.O=b;this.H=c},m$c=function(a,b){return new l$c((a?a:b).getId(),a,b)},aO=function(a){return new l$c(a.getId(),null,a)},n$c=function(a){this.W=a;this.O=new Map;this.V=new Set;this.enabled=!0;this.error=
null;this.started=!1},bO=function(a,b,c){if(a.started)throw Error("Ze");c={to:new Set(b),callback:c};b=_.m(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=a.O.get(d)||[];e.push(c);a.O.set(d,e)}},cO=function(a,b){if(!a.started)throw Error("$e");if(!a.enabled)throw Error("af`"+a.error+"`"+(a.error.stack?"\nOriginal stack: "+a.error.stack:""));a.log("Passing Milestone: "+b);a.V.add(b);var c=a.O.get(b);if(c){a.O.delete(b);for(var d=0;d<c.length;++d){var e=c[d];e.to.delete(b);if(0===e.to.size)try{e.callback()}catch(f){throw a.enabled=
!1,a.error=f,f;}}}};n$c.prototype.H=function(a){return this.V.has(a)};n$c.prototype.start=function(){this.started=!0};n$c.prototype.log=function(a){this.W.info("drive.ds.MilestoneManager",a)};var o$c=function(){_.yi.call(this);this.H=Date.now()};_.O(o$c,_.yi);o$c.prototype.NE=function(){this.H=Date.now();this.dispatchEvent("Hb")};var p$c=function(a,b){this.aw=a;this.Xx=b;this.jN=!0;this.O7=!1;this.Pe=0},q$c=function(a){a.jN=!1;a.WI()};_.g=p$c.prototype;
_.g.ZAa=function(a,b){var c=this;if(5===this.zI(a))throw Error("bf");var d=[];_.Ka(this.dz(),function(e){Q8c(c.aw,a,e.getItem())&&d.push(e)});this.Xx.sort(a,d,b);return d};_.g.Nd=function(){return this.dz().length};_.g.Dk=function(a){var b=this.ZAa(a,void 0);b=E1c(b);var c=new _.gA;c.tw(b);c.Dc(this.fR(a)?6:1);return c};_.g.update=function(a){var b=this.Xt(a.O),c=this.Xt(a.H);if(!b&&!c)return!1;b&&this.NI(a.O);c&&this.bR(a.H);return!0};_.g.zI=function(a){return this.jN&&this.O7?P8c(a)?1:5:5};
_.g.g3=function(){this.O7=!0};_.g.Xt=function(a){return!!a&&this.jN};_.g.Ti=function(a){this.Pe=a};_.g.jf=function(){return this.Pe};var dO=function(a,b,c,d,e,f){f=void 0===f?"":f;p$c.call(this,a,b);var h=this;this.W=c;this.nextPageToken=f;this.Pd=[];this.O={};this.request=SN(c,d,!0);this.H=!e;r$c(this,e);this.V=function(k,l){return h.Xx.compare(h.request,k,l)}};_.O(dO,p$c);_.g=dO.prototype;_.g.yd=function(){return this.request};
_.g.bR=function(a){var b=this.O[a.getId()];b&&this.NI(b);A0c(this.Pd,a,this.V);this.O[a.getId()]=a;a.count++;this.Pd.length>this.request.Ii()&&(this.NI(_.ha(this.Pd)),this.H=!1)};_.g.NI=function(a){var b=this.Pd,c=_.Ha(b,a,this.V);0<=c&&_.qa(b,c);_.Wa(this.O,a.getId());a.count--};_.g.WI=function(){this.Pd.forEach(function(a){a.count--});this.Pd=[];this.O={}};_.g.dz=function(){return this.Pd};
_.g.zI=function(a){var b;if(b=this.W.equals(this.request,a,!0))a=a.O(),b=this.request.O(),b=K0c(b,a,!0);return b?this.H?1:6:5};_.g.ZAa=function(a,b){if(5===this.zI(a))throw Error("bf");b=b?Math.min(b,this.Pd.length):this.Pd.length;return _.xa(this.Pd,0,b)};_.g.Xt=function(a){if(!p$c.prototype.Xt.call(this,a)||!Q8c(this.aw,this.request,a.getItem()))return!1;if(this.H||_.E(this.request,48,!1))return!0;var b=_.ha(this.Pd);return!!b&&0>=this.V(a,b)};_.g.fR=function(){return this.H?!1:!0};
_.g.getType=function(){return"CacheHintCorpusCache"};_.g.jl=function(a,b){var c=this,d=_.ha(this.Pd);!this.H&&d&&_.ka(a,function(e){return e.getId()===d.getId()})&&(b?(this.NI(d),r$c(this,_.ha(a))):this.H=!0);_.Ka(a,function(e){c.update(aO(e))})};var r$c=function(a,b){b&&Q8c(a.aw,a.request,b.getItem())&&a.bR(b)};dO.prototype.Lx=function(){return this.nextPageToken};var eO=function(a,b){p$c.call(this,a,b);this.Pd=new Map};_.O(eO,p$c);eO.prototype.bR=function(a){this.Pd.set(a.getId(),a);a.count++};
eO.prototype.NI=function(a){this.Pd.delete(a.getId());a.count--};eO.prototype.WI=function(){for(var a=_.m(this.Pd.values()),b=a.next();!b.done;b=a.next())b.value.count--;this.Pd=new Map};eO.prototype.dz=function(){return Array.from(this.Pd.values())};var fO=function(a,b,c,d){eO.call(this,a,b);var e=this;this.H=d;bO(c,["aU7Ts","BNEDtc"],function(){return e.g3()})};_.O(fO,eO);
fO.prototype.zI=function(a){var b=this,c=eO.prototype.zI.call(this,a);if(5==c)return c;if(0<_.Id(a,33).length)return 5;a=_.gM(a);return 0<a.length&&!a.every(function(d){d=b.Pd.get(d.Za());return null!=d&&!d.getItem().Bc()&&T0c(d.getItem())&&!_.L(d.getItem(),108)})?5:1};fO.prototype.Xt=function(a){return eO.prototype.Xt.call(this,a)&&s$c(this,a.getItem())};
var s$c=function(a,b){if(b.Bc())return!1;if(_.L(b,31)||!a.O7)return!0;var c=a.H();return b.lk().some(function(d){var e=a.Pd.get(d);return d==c||null!=e&&T0c(e.getItem())})};fO.prototype.g3=function(){eO.prototype.g3.call(this);for(var a=_.m(this.Pd),b=a.next();!b.done;b=a.next()){var c=_.m(b.value);b=c.next().value;c=c.next().value;s$c(this,c.getItem())||(c.count--,this.Pd.delete(b))}};fO.prototype.yd=function(){return new _.Te};fO.prototype.getType=function(){return"SubscribedCorpusCache"};
fO.prototype.fR=function(){return!1};var t$c=/^[\x00-\x7F]*$/,u$c=function(){this.rootId=""};u$c.prototype.ku=function(a){this.rootId=a||""};
var P8c=function(a){return v$c(a)&&0==_.Id(a,40).length&&void 0==_.C(a,41)},v$c=function(a){var b=!0;_.ek(a,_.Ve,13).forEach(function(d){"me"!=d.Za()&&(b=!1)});var c=a.Ac();c=!c||5!=c.getType();return 0==_.ek(a,_.ul,5).length&&0==_.ek(a,_.Ve,14).length&&0==_.ek(a,_.Ve,15).length&&!_.S(a,58)&&!_.L(a,18)&&!_.L(a,34)&&0==_.ek(a,_.dM,35).length&&0==_.ek(a,_.dM,38).length&&c&&b&&0==_.Id(a,39).length&&!_.C(a,42)&&0==_.ek(a,_.pl,44).length&&!_.yL(a)&&!_.zL(a)&&!_.AL(a)&&0==_.ek(a,_.ql,57).length&&w$c(a)&&
!_.D(a,_.yoa,59)&&null==_.L(a,60)&&0==_.ek(a,_.Ve,68).length&&0==_.ek(a,_.Ve,67).length&&null==_.L(a,69)},w$c=function(a){return _.ek(a,_.vl,4).every(function(b){return t$c.test(b.Za())})};u$c.prototype.J8=function(a,b){var c=this;return b.filter(function(d){return Q8c(c,a,d)})};
var Q8c=function(a,b,c){var d;if(d=!!c)d=c.getId()!=a.rootId&&!RN(c);if(d){d=!0;var e=_.ek(b,_.vl,4);if(w$c(b))for(var f=0;f<e.length&&d;f++){var h=e[f];if(h.Za()){var k=_.E(h,3,!1),l=(c.getTitle()||"").toLowerCase(),p=h.Za().toLowerCase();if(2==_.C(h,1))l=p==l,d=d&&(k?!l:l);else{h=[];if(0<=p.indexOf("-"))for(var q=/\w*-[\w-]*/,t=_.m(p.match(q)||[]),u=t.next();!u.done;u=t.next())h.push(u.value),p=p.replace(q,"");h.push.apply(h,_.jd(p.split(/\b/)));for(p=0;p<h.length&&d;p++)q=h[p],t=!0,0!=(0,_.bg)(q).length&&
(0==q.replace(/\./g,"").length&&(t=!1),q=!!l.match(t?new RegExp("(^|[^\\w])"+_.Fg(q)+"($|[^\\w])|(^|[ ])"+_.Fg(q)):new RegExp(_.Fg(q))),d=d&&(k?!q:q))}}}else d=!0}if(d){l=_.fM(b);e=d=0;k=f=!1;l=_.m(l);for(h=l.next();!h.done;h=l.next())h=h.value,h.Za()&&(q=c.getMimeType()||"",_.L(h,4)&&(q=(p=c.yf())&&_.C(p,3)||""),p=_.E(h,2,!1),t=h.Za(),_.VL(b)&&(t=t.toLowerCase(),q=q.toLowerCase()),h=0===_.Oj(h,3,0)?t===q:q.includes(t),p?(e++,k=k||h):(d++,f=f||h));d=d&&!f||e&&k?!1:!0}if(d)for(d=!0,e=_.ek(b,_.sl,7),
e=_.m(e),f=e.next();!f.done;f=e.next())f=f.value,k=c.oq(),d=d&&x$c(k,f);if(d)for(d=!0,e=_.ek(b,_.sl,8),e=_.m(e),f=e.next();!f.done;f=e.next())f=f.value,k=c.Ky(),d=d&&x$c(k,f);d&&(d=b.Nh(),e=(e=_.hM(b))&&(2==e||3==e),d=null==d||d==!!c.Nh()&&(!d||1==c.Uo()||!!e));d&&(d=null==_.L(b,10)||_.L(b,10)==!!c.tA());d&&(d=null==b.zm()||b.zm()==!!c.zm());if(d)a:{d=_.gM(b);d=_.m(d);for(e=d.next();!e.done;e=d.next())if(e=e.value,e.Za()&&(f="root"==e.Za()&&a.rootId||e.Za(),f=c.lk().includes(f),_.E(e,2,!1)?f:!f)){d=
!1;break a}d=!0}if(a=d)a:{a=_.ek(b,_.Ve,13);a=_.m(a);for(d=a.next();!d.done;d=a.next())if(d=d.value,"me"==d.Za()&&(e=1==c.Uo(),_.E(d,2,!1)?e:!e)){a=!1;break a}a=!0}a&&(a=null==_.L(b,16)||(_.L(b,16)?null!=c.Nx():!0));a&&(a=_.L(b,17),d=(d=_.hM(b))&&(2==d||3==d),a=null==a||a==!!c.lI()&&(!a||1==c.Uo()||!!d));a&&(a=b1c(c),a=null==_.L(b,19)||_.L(b,19)==!!_.fl(a));a&&(a=!0);if(a=a&&y$c(b,c)&&z$c(b,c))a=_.Id(b,33),a=!a.length||a.includes(c.Bc()||"");if(a=a&&A$c(b,c))_.C(b,41)?(a=_.D(c,_.$L,86),a=null!=a&&
_.C(b,41)==_.C(a,3)):a=!0;if(a=a&&B$c(b,c))a=_.hM(b),1==a?(a=_.L(c,31),a=!!_.gM(b).length||!!_.ek(b,_.dM,35).length||1==_.L(b,18)||_.yL(b)||_.zL(b)||_.AL(b)||!!b.Cp()||null==a||a):a=2==a?!!c.Bc():!0;a&&(a=_.yL(b)?!!_.kl(c)&&!c.Nh():!0);a&&(a=_.zL(b)?!!_.ll(c).length&&!c.Nh():!0);a&&(a=_.AL(b)?!!_.ml(c).length&&!c.Nh():!0);a&&(a=_.S(b,50)?_.E(b,50,!1)?_.S(c,101)&&0!==_.C(c,101):!_.S(c,101):!0);a&&(a=b.Cp(),a=!a||_.Id(c,120).includes(a));a&&(c=_.D(c,_.YL,138),null==_.L(b,65)||null==c?a=!0:(c=2==_.C(c,
1),a=_.L(b,65)==c));return a},x$c=function(a,b){if(null!=_.C(b,2))switch(_.C(b,1)){case 1:return a<=_.C(b,2);case 2:return a<_.C(b,2);case 3:return a==_.C(b,2);case 4:return a>_.C(b,2);case 5:return a>=_.C(b,2);default:return!1}return!0},y$c=function(a,b){var c=_.bb(_.Id(b,56));a=_.ek(a,_.eM,25);return 0==a.length?!0:a.every(function(d){return c[d.Za()]})},z$c=function(a,b){if(0==a.ZA().length)return!0;var c=_.bb(b.ZA().map(function(d){return _.C(d,1)}));a=_.bb(a.ZA().map(function(d){return _.C(d,
1)}));return _.Qa(a,function(d,e){return c[e]})},A$c=function(a,b){var c=_.bb(_.Id(b,50));a=_.ek(a,_.tl,37);return 0==a.length?!0:a.every(function(d){return c[d.Za()]})},B$c=function(a,b){if(_.Id(a,40).length){if(b=_.D(b,_.$L,86)){var c=_.bb(_.Id(b,2));return _.Id(a,40).some(function(d){return c[d]})}return!1}return!0},gO=function(a,b,c,d){d=void 0===d?5E3:d;eO.call(this,a,b);this.teamDriveId=c;this.limit=d};_.O(gO,eO);_.g=gO.prototype;
_.g.zI=function(a){var b=this,c=eO.prototype.zI.call(this,a);if(5==c)return c;c=_.gM(a);var d=c.every(function(e){var f=e.Za();return(null!=b.Pd.get(f)||b.teamDriveId==f)&&!_.E(e,2,!1)});if(0<c.length&&d)return 1;a=_.Id(a,33);return 0!=a.length&&a.includes(this.teamDriveId)?1:5};_.g.Xt=function(a){return eO.prototype.Xt.call(this,a)&&!!a&&a.getItem().Bc()==this.teamDriveId&&!RN(a.getItem())};_.g.fR=function(){return!1};_.g.yd=function(){var a=new _.Te;_.WM(a,[this.teamDriveId]);_.XM(a,2);return a};
_.g.Bc=function(){return this.teamDriveId};_.g.getType=function(){return"TeamDriveCorpusCache: "+this.teamDriveId};var C$c=function(a){this.W=a;this.V=[];this.H=null;this.O=[];a=new _.Te;_.B(a,48,!0);var b=new _.Xc;_.Yc(b,11);_.Zc(b,2);_.Ue(a,b);this.ha=SN(this.W,a,!0)};C$c.prototype.addAll=function(a){var b=this;a.forEach(function(c){c instanceof fO?b.H=c:c instanceof dO?b.V.push(c):c instanceof gO&&b.O.push(c)})};
C$c.prototype.removeAll=function(a){var b=this;a.forEach(function(c){if(c instanceof fO)b.H&&(q$c(b.H),b.H=null);else if(c instanceof dO){var d=_.ja(b.V,function(e){return b.W.equals(e.yd(),c.yd())});0<=d&&(q$c(b.V[d]),_.qa(b.V,d))}else c instanceof gO&&(d=_.ja(b.O,function(e){return b.W.equals(e.yd(),c.yd())}),0<=d&&(q$c(b.O[d]),_.qa(b.O,d)))})};
var D$c=function(a){var b=[];a.H&&b.push(a.H);_.wa(b,_.va(a.V));_.wa(b,_.va(a.O));return b},E$c=function(a,b){b=void 0===b?!1:b;return a.V.filter(function(c){return a.H&&b?(c=c.yd().clone(),_.Tj(c,32),_.Wj(c,26),!_.mk(a.ha,c)):!0})};C$c.prototype.DV=function(){return _.va(this.O)};
var F$c=function(a,b){return _.Zf(a.O,function(c){return c.Bc()===b})},G$c=function(a,b){return E$c(a).find(function(c){return a.W.equals(c.yd(),SN(a.W,b,!0))})},H$c=function(a,b){_.oi.call(this,"Ib");this.ids=a;this.error=b};_.O(H$c,_.oi);H$c.prototype.getError=function(){return this.error};H$c.prototype.H=function(){return this.ids};var I$c=function(a){_.oi.call(this,"Jb");this.people=a};_.O(I$c,_.oi);I$c.prototype.getPeople=function(){return this.people};
var J$c=function(a){_.oi.call(this,"Kb");this.people=a};_.O(J$c,_.oi);J$c.prototype.getPeople=function(){return this.people};var L$c=function(a,b,c){this.person=a;this.Pe=void 0===c?0:c;this.O=this.V=null;this.H=new Set(b?[b]:[]);K$c(this)};L$c.prototype.jf=function(){return this.Pe};
var M$c=function(a,b,c){if(_.C(b,1)!==_.C(a.person.clone(),1))return!1;var d=_.sUc.get(a.Pe)||1,e=a.jf();if(4===c?0:1===e?1===c:3===e||2===e||4===e?0!==c&&e!==c:1)return b=X9c(b.clone(),a.getEmail(b)),e=!_.mk(a.person,b),a.person=b,a.Pe=c,K$c(a),e||d!==(_.sUc.get(a.Pe)||1);if(4===c)return a.Pe=c,K$c(a),d!==(_.sUc.get(a.Pe)||1);c=b;return!a.person.getEmail()&&c.getEmail()?(X9c(a.person,a.getEmail(b)),!0):!1};
L$c.prototype.getEmail=function(a){var b=this.person.getEmail();a=a.getEmail();return!a&&b&&0!==b.length?b:a};var K$c=function(a){1===a.Pe?(a.V=Date.now(),a.O=null):4===a.Pe&&(a.O=Date.now())},O$c=function(a,b,c,d){_.yi.call(this);var e=this;this.O=a;this.V=b;this.W=c;this.ha=d;this.H=[];this.ka=new _.tK(function(){return N$c(e)},100,this)};_.O(O$c,_.yi);O$c.prototype.Xg=function(a){a&&_.HK(this.O)&&(this.H.includes(a)||this.H.push(a),this.ka.xe())};
var N$c=function(a){a.ha.then(function(){for(;a.H.length;){var b=a.H.splice(0,50);a.log("Querying for people. Size: "+b.length+". Pending: "+(a.H.length+" "+b));a.sendRequest(b)}})};O$c.prototype.sendRequest=function(a){var b=this;return this.W.then(function(c){return c.Ve(F4c(new _.GL,a))}).then(function(c){c=_.ek(c,ZN,1);b.dispatchEvent(new I$c(c))},function(c){c=_.sA(c);b.dispatchEvent(new H$c(a,c))})};O$c.prototype.log=function(a){this.V.info("drive.ds.sync.query.PeopleQueryRunner",a)};
var hO=function(a,b,c,d,e,f){_.yi.call(this);var h=this;this.H=new Map;this.W=new Set;this.ha=new Map;this.Oc=new _.De(this);this.Ma(this.Oc);this.va=b;this.V=d;this.oa=e;this.O=!_.E(a,90,!1);this.ma=_.Pj(_.D(a,I3c,85)||new I3c,1,864E5);this.ka=new O$c(a,b,c,f);this.Ba=new _.ZC(function(){var k=Q4c(h.oa,106015);if(k){var l=_.D(_.wM(k),o4c,11);if(!l){l=new o4c;var p=_.wM(k);_.A(p,11,l)}l=_.B(l,1,h.H.size);_.B(l,2,h.W.size);k.Tj()}},500,this);this.Oc.listen(this.ka,"Jb",function(k){k=k.getPeople();
P$c(h,k,1);h.Ba.xe()});this.Oc.listen(this.ka,"Ib",function(k){Q$c(h,k)})};_.O(hO,_.yi);hO.prototype.get=function(a){var b=this.O?_.Kg():"";this.O&&this.V.create(b,F4c(new _.GL,[a]));var c=this.H.get(a);if(c)return R$c(this,c)?(this.O&&WN(this.V,b,this.CG(c)?6:5),S$c(this,a)):this.O&&O9c(this.V,b,1,_.xM(_.NTc,10),null),c;this.O&&WN(this.V,b,5);return null};var S$c=function(a,b){if(!b)return Promise.resolve();if(a.ha.has(b))return a.ha.get(b).promise;a.ka.Xg(b);var c=new _.po;a.ha.set(b,c);return c.promise};
hO.prototype.Vb=function(a){var b=this,c=this.O?_.Kg():"";this.O&&this.V.create(c,F4c(new _.GL,[a]));return T$c(this,a)?(this.O&&O9c(this.V,c,1,_.xM(_.NTc,10),null),Promise.resolve(this.H.get(a))):S$c(this,a).then(function(){b.O&&(T$c(b,a)?O9c(b.V,c,1,_.xM(_.NTc,1),null):WN(b.V,c,3));return b.H.get(a)})};hO.prototype.vc=function(){return 0===this.H.size};hO.prototype.clear=function(){this.log("Clearing the PeopleCache.");this.H.clear();this.W.clear()};
var U$c=function(a){return[].concat(_.jd(a.H.values())).filter(function(b){return[1,4,2].includes(b.jf())&&4!==b.jf()}).map(function(b){return b.person.clone()})},V$c=function(a,b){return(a=a.H.get(b))?[].concat(_.jd(a.H)):[]},W$c=function(a,b,c){c=_.m(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=a.H.get(d);e&&(e.H.delete(b),0===[].concat(_.jd(e.H)).length&&(a.H.delete(d),a.W.delete(d)))}},P$c=function(a,b,c){if(![1,2].includes(c))throw Error("cf");0!==b.length&&(a.log("Importing "+b.length+
" from "+(Object.keys(U9c)[c]+".")),X$c(a,b,c))},Z$c=function(a,b,c,d){0!==b.length&&Y$c(a,b,c,void 0===d?0:d)},T$c=function(a,b){b=a.H.get(b);return!(!b||![1,4,2].includes(b.jf())||R$c(a,b))},Y$c=function(a,b,c,d){d=void 0===d?0:d;var e=!1;b=_.m(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var h=_.C(f,1),k=a.H.get(h);if(k)M$c(k,f,d)&&(e=!0),c&&k.H.add(c);else if(4!==d){e=!0;k=a;var l=d,p=c;1!==l&&S$c(k,_.C(f,1));l=new L$c(f,p,l);k.H.set(_.C(f,1),l)}e&&1===d&&(f.getName()?a.W.delete(h):a.W.add(h))}return e};
hO.prototype.CG=function(a){return 1===a.jf()&&Date.now()-Number(a.V)>this.ma};var R$c=function(a,b){switch(b.jf()){case 1:return Date.now()-Number(b.V)>a.ma;case 4:return 1E3<Date.now()-Number(b.O);default:return!0}};hO.prototype.log=function(a,b){this.va.log("drive.ds.sync.cache.PeopleCache",a,void 0===b?"info":b)};
var Q$c=function(a,b){b=b.H().map(function(c){var d=a.H.get(c);return d?d.person.clone():W9c(new ZN,c)});X$c(a,b,4)},X$c=function(a,b,c){for(var d=_.m(b),e=d.next();!e.done;e=d.next()){e=_.C(e.value,1);var f=a.ha.get(e);f&&(f.resolve(),a.ha.delete(e))}Y$c(a,b,void 0,c)&&a.dispatchEvent(new J$c(b))},$$c=function(a,b,c,d,e,f){_.yi.call(this);var h=this;this.Oc=new _.De(this);this.Ma(this.Oc);this.H=new hO(a,b,c,d,e,f);this.O=_.SK(a)||new _.ZTc;this.Oc.listen(this.H,"Kb",function(k){return h.dispatchEvent(k)})};
_.O($$c,_.yi);$$c.prototype.QO=function(a){var b=this;if(a.H){var c=a.H.getItem(),d=iO(this,[c]).map(function(e){return aad(b,e)});Z$c(this.H,d,a.H.getId(),this.jf(_.C(c,82)))}a.O&&W$c(this.H,a.id,bad(this,a))};$$c.prototype.jf=function(a){return _.tUc.get(a)||0};
var bad=function(a,b){var c=cad(a,b.O),d=cad(a,b.H);return c.filter(function(e){return!d.includes(e)})},cad=function(a,b){return b?iO(a,[b.getItem()]).map(function(c){return _.xF(c)}):[]},ead=function(a,b){b=b.getUser();Z$c(a.H,[aad(a,b)],"ACCOUNT");dad(a,b)},gad=function(a,b){var c=_.ek(b,_.nM,2).map(function(d){var e=_.D(d,_.Qk,9,1);return a.H.Vb(_.xF(e)).then(function(){return void fad(a,[e])})});return Promise.all(c).then(function(){return b})},fad=function(a,b){b=_.m(b);for(var c=b.next();!c.done;c=
b.next())c=c.value,_.xF(c)&&dad(a,c)},had=function(a,b,c){for(var d=new Set,e=_.m(b),f=e.next();!f.done;f=e.next())f=f.value,_.xF(f)&&(d.add(_.xF(f)),Z$c(a.H,[aad(a,f)],c));return Promise.all([].concat(_.jd(d)).map(function(h){return a.H.Vb(h)})).then(function(){return fad(a,b)})},jad=function(a,b){return iO(a,[b]).some(function(c){return!iad(a,_.xF(c))})},iad=function(a,b){return T$c(a.H,b)},iO=function(a,b){return b.map(function(c){var d=c.xw();d=d?[].concat(_.jd(d.PQ()),_.jd(_.ek(d,_.Qk,3))):[];
var e=c.yf();e=(e=e&&_.Md(e))?iO(a,[e]):[];return[].concat(_.jd(_.il(c)),[c.jm(),c.Cv(),c.yq(),c.PC()],_.jd(d),_.jd(e))}).flat().filter(function(c){return c&&!!_.xF(c)})};$$c.prototype.getItems=function(a){return V$c(this.H,a).filter(function(b){return"ACCOUNT"!==b})};
var kad=function(a,b){return b.map(function(c){c=c.clone();var d=iO(a,[c]);d=_.m(d);for(var e=d.next();!e.done;e=d.next())e=e.value,_.Tj(e,3),_.Tj(e,8),_.Tj(e,5);return c})},mad=function(a,b){return b.some(function(c){return lad(a,c)})},lad=function(a,b){return iO(a,[b]).some(function(c){return _.S(c,3)||c.Ep()||_.S(c,5)})},dad=function(a,b){var c=a.H.get(_.xF(b));if(c){a=c.person.clone();var d=_.AVc(b.$c(a.getName()),a.getEmail());c=_.sUc.get(c.Pe)||1;_.B(d,16,c);(a=_.D(a,V9c,4))&&b.Fn(a.getUrl())}},
aad=function(a,b){var c=_.xF(b);c=X9c(W9c(new ZN,c).$c(b.getName()),b.getEmail());var d=new V9c;var e=_.C(b,5);d=_.B(d,1,e);c=_.A(c,4,d);_.E(a.O,9,!1)&&(_.Tj(b,3),_.Tj(b,8),_.Tj(b,5));return c},nad=function(){this.suggestionSessionId=this.W=null;this.V=[];this.incompleteSearch=!1;this.O=[];this.H=!0};nad.prototype.Hf=function(){return this.suggestionSessionId};nad.prototype.lAa=function(){return this.O};nad.prototype.vc=function(){return this.H};
var oad=function(a){if(!a)return null;a=a.split("/");return 2>a.length?null:a[1]},pad=function(a,b){a=oad(a);b=oad(b);return!(!a||!b||a!==b)},qad=function(a){return a.Kc()+"_"+oad(a.getName())},rad=function(a,b){var c=_.Id(a,1).map(function(d,e){return b[Number(e)].value.q3a.promise});return Promise.allSettled(c).then(function(d){return _.Id(a,1).map(function(e,f){e=e.toString();var h=new a$c;e=_.B(h,1,e);f=d[Number(f)];"fulfilled"===f.status?e.Dc(1):(e.Dc(3),e.Te(f.reason.Ug));return e})})},jO=function(a,
b){_.P.call(this);this.O=a;this.request=b;this.Yx=new Set;this.status=6;this.V=new Map;this.Pe=0};_.O(jO,_.P);_.g=jO.prototype;_.g.Th=function(a){var b=this;this.Yx.add(a);return this.resize().then(function(){return b.$N(a)})};_.g.Yj=function(a){this.Yx.delete(a);0===this.Yx.size&&this.dispose()};_.g.jf=function(){return this.Pe};_.g.Ti=function(a){this.Pe=a};
_.g.WC=function(a,b,c){var d=this;c=void 0===c?1:c;var e=!1;a.forEach(function(f){e=d.uu(f,c)||e});b||(e=1!==this.status||e,this.status=1);return e?this.qX():_.Rh([])};_.g.qX=function(){for(var a=[],b=_.m(this.Yx.values()),c=b.next();!c.done;c=b.next())a.push(this.$N(c.value));return _.Vh(a)};
_.g.pX=function(a){this.status=3;for(var b=[],c={},d=_.m(this.Yx.values()),e=d.next();!e.done;c={ura:c.ura},e=d.next())c.ura=e.value,b.push(this.O.then(function(f){return function(h){return void h.pX(f.ura,a)}}(c)));return _.Vh(b)};_.g.Kz=function(){for(var a=this,b=[],c={},d=_.m(this.Yx.values()),e=d.next();!e.done;c={vra:c.vra},e=d.next())c.vra=e.value,b.push(this.O.then(function(f){return function(h){return void h.Kz(f.vra)}}(c)));return _.Vh(b).then(function(){a.Ti(0===a.jf()?1:6)})};
_.g.resize=function(){var a=this;return this.O.then(function(b){var c=0;a.Yx.forEach(function(d){d=b.Ika(d);c=Math.max(c,d.Ii?d.Ii()||0:0)});a.tfa(c)})};var sad=function(a,b){return b?a.V.get(a.nka(b))||null:null};_.g=jO.prototype;_.g.CH=function(a,b){var c=sad(this,a);b=z8c(c,b);this.V.set(this.nka(a),b)};_.g.nka=function(a){return a};_.g.rMa=function(){return[]};_.g.$N=function(a){var b=this;return this.O.then(function(c){return void c.$N(a,b.Dk())})};_.g.removeItem=function(){};
var kO=function(a,b){_.yi.call(this);this.request=a;this.pageToken="";this.H=this.O=!1;this.data=[];this.limit=0;this.W=b};_.O(kO,_.yi);var tad=function(a){return!a.O||""!==a.pageToken};kO.prototype.Xg=function(a){this.limit=void 0===a?1E5:a;return!this.H&&this.data.length<=this.limit&&tad(this)?uad(this):_.Rh()};
var uad=function(a){a.O=!0;a.H=!0;var b=a.iia(a.request,a.limit-a.data.length,a.pageToken);return a.W(b).then(function(c){return vad(a,c)},function(c){return a.handleError(c)})},vad=function(a,b){a.H=!1;a.pageToken=a.Cka(b);b=a.Qja(b);b.forEach(function(c){return a.data.push(c)});a.M5(b);return a.data.length<a.limit&&tad(a)?_.Vh([_.Rh(b),uad(a)]).then(function(c){return c[0].concat(c[1])}):_.Rh(b)};
kO.prototype.handleError=function(a){this.H=!1;a=_.QK(a);var b=new XN(a);this.sMa(b);this.dispatchEvent(b);return _.Sh(a)};kO.prototype.M5=function(){};kO.prototype.sMa=function(){};var wad=function(a,b,c){kO.call(this,c,function(d){return a.then(function(e){return e.Ve(d)}).Ag(function(e){return void _.cL(e)})});this.V=b};_.O(wad,kO);_.g=wad.prototype;_.g.iia=function(a,b,c){a=a.clone();a.di(b);return new _.ZUc(a,c)};_.g.Cka=function(a){return a.pageToken||""};_.g.Qja=function(a){return a.response.O()};
_.g.M5=function(a){this.V.WC(a,!1,1)};_.g.sMa=function(a){this.V.aB(this.request,a)};var xad=function(a,b,c,d){jO.call(this,a,d.clone());this.ha=b;this.W=c;this.data=[];this.H=null};_.O(xad,jO);_.g=xad.prototype;_.g.refresh=function(){this.Kz();this.H=new wad(this.ha,this.W,this.request);return this.H.Xg(this.request.Ii()||100)};_.g.vq=function(a){return this.data.find(function(b){return pad(b.getName(),a)})};
_.g.tfa=function(a){this.H&&a===this.request.Ii()||(this.request.di(a),this.H?this.H.Xg(a):this.refresh())};_.g.Dk=function(){var a=this,b=k6c((new BN).Dc(this.status),this.data.filter(function(c){return a.W.bDa(c)}).map(function(c){return c.clone()}));return new _.CM(b,void 0,void 0,this.jf())};_.g.WC=function(a,b,c){var d=this;a=a.filter(function(e){return e.Kc()===d.request.Kc()});return jO.prototype.WC.call(this,a,b,c)};
_.g.uu=function(a,b){b=void 0===b?1:b;if(!$0c(sad(this,a.getName()),b))return!1;var c=-1===b?0:this.data.length,d=this.data.findIndex(function(e){return pad(e.getName(),a.getName())});-1<d&&(this.data.splice(d,1),c=d);this.data.splice(c,0,a);this.CH(a.getName(),b);return!0};_.g.removeItem=function(a){_.ta(this.data,function(b){return pad(b.getName(),a)})&&(this.V.delete(this.nka(a)),this.qX())};_.g.nka=function(a){return oad(a)};_.g.CH=function(a,b){this.vq(a)&&jO.prototype.CH.call(this,a,b)};
_.g.rMa=function(a){var b=this;return a instanceof _.ML&&a.Kc()!==this.request.Kc()?[]:a.jV().map(function(c){return b.vq(c.Qm())}).filter(function(c){return c}).map(function(c){return c.clone()})};var lO=function(){this.H=new Map};lO.prototype.Th=function(a,b){var c=this.getKey(b),d=this.H.get(c),e=!d;d||(d=this.kia(b),this.H.set(c,d));d.Th(a);return e};var yad=function(a,b,c){var d=a.getKey(c),e=a.H.get(d),f=!e;e||(e=a.jxa(c),a.H.set(d,e));e.Th(b);return f};
lO.prototype.Yj=function(a,b){var c=this.H.get(this.getKey(b));c&&(c.Yj(a),c.isDisposed()&&this.H.delete(this.getKey(b)))};var zad=function(a,b,c){var d=a.H.get(a.getKey(c));d&&(d.Yj(b),d.isDisposed()&&a.H.delete(a.getKey(c)))},Aad=function(a,b){return a.H.get(b)};lO.prototype.WC=function(a,b,c){var d=this;c=void 0===c?1:c;var e=a.filter(function(f){return d.bDa(f)});this.H.forEach(function(f){f.WC(e,b,c)})};lO.prototype.removeItem=function(a,b){b=b?this.H.get(b):null;(b?[b]:this.H).forEach(function(c){c.removeItem(a)})};
var Bad=function(a,b){a=Array.from(a.H.values()).map(function(c){return c.rMa(b)});return[].concat.apply([],_.jd(a))};lO.prototype.CH=function(a,b){this.H.forEach(function(c){c.CH(a,b)})};lO.prototype.bDa=function(){return!0};lO.prototype.aB=function(a,b){(a=this.H.get(this.getKey(a)))&&a.pX(b)};lO.prototype.b2=function(a,b,c,d){var e=this.getKey(b),f=this.H.get(e);f||(f=this.kia(b),f.Ti(c),this.H.set(e,f),this.WC(a,d))};var Cad=function(){this.V=new Set;this.O=0;this.H=[]},Dad=function(a,b){a.V.add(b)};
Cad.prototype.W=function(a){this.V.delete(a)};var Ead=function(a,b){var c;if(c=b instanceof _.hl)c=b.Pt(),c=!!(b.Nh()&&c&&c<=Math.max.apply(Math,_.jd([a.O].concat(_.jd(a.H)))));if(c)return!0;b=b instanceof _.hl?b.getId():b;return a.V.has(b)},Fad=function(a,b){return _.ta(a.H,function(c){return c===b})&&b>a.O?(a.O=b,!0):!1};Cad.prototype.J8=function(a){var b=this;return a.filter(function(c){return!Ead(b,c)})};var Gad=function(a,b){this.H=new Map;this.V=a;this.W=b;this.O=new Cad};_.O(Gad,lO);
var Had=function(a,b){Dad(a.O,qad(b));(a=Aad(a,b.Kc()))&&a.qX()};_.g=Gad.prototype;_.g.getKey=function(a){return a.Kc()};_.g.kia=function(a){return new xad(this.V,this.W,this,a)};_.g.jxa=function(a){return new xad(this.V,this.W,this,a)};_.g.Ho=function(a){a=_.m(a);for(var b=a.next();!b.done;b=a.next())(b=b.value.getItem())&&(b=Aad(this,b.getId()))&&b.refresh()};_.g.bDa=function(a){return!Ead(this.O,qad(a))};
var Iad=function(a,b){this.O=a;this.H=b},Jad=function(a,b){b=_.xWb(b);var c=new wad(a.O,a.H,b);new Promise(function(d,e){return c.Xg(100).then(d,e)})},Kad=function(){this.Pd={}},mO=function(a,b){Lad(a,"subscribed");b&&Lad(a,b);return a.Pd[b||"subscribed"].oe.promise},Lad=function(a,b){a.Pd[b]||(a.Pd[b]={count:0,iR:[],s1a:[],oe:_.Xh()});a.Pd[b].count++},Nad=function(a,b){b&&!Mad(a,b)||Mad(a,"subscribed")},Mad=function(a,b){if(!a.Pd[b])return!1;a.Pd[b].count--;0===a.Pd[b].count&&(a.Pd[b].oe.resolve({items:a.Pd[b].iR,
MJb:a.Pd[b].s1a}),_.Wa(a.Pd,b));return!0};Kad.prototype.Ho=function(a,b){var c=this,d=b||"subscribed";a.forEach(function(e){var f=e.Bc();f&&f===e.Kc()&&c.Pd[f]&&c.Pd[f].s1a.push(e);c.Pd[d]&&c.Pd[d].iR.push(e)})};var Oad=function(a,b,c){kO.call(this,a,c);this.V=b};_.O(Oad,kO);Oad.prototype.iia=function(a,b){return a.clone().di(b)};Oad.prototype.Cka=function(){return""};Oad.prototype.Qja=function(a){return[a]};Oad.prototype.M5=function(a){this.V(a)};
var Pad=function(a,b,c,d){jO.call(this,a,d.clone());this.ha=b;this.H=this.AS=null;this.W=c};_.O(Pad,jO);Pad.prototype.refresh=function(){var a=this;this.Kz();this.H=new Oad(this.request,this.W,function(b){return a.ha.then(function(c){return c.Ve(b)})});return this.H.Xg(this.request.Ii()||0)};Pad.prototype.tfa=function(a){1===this.status||this.H&&a===this.request.Ii()||(this.request.di(a),this.H?this.H.Xg(a):this.refresh())};
Pad.prototype.Dk=function(){if(this.AS)return this.AS;var a=new EN;a.Dc(this.status);return a};Pad.prototype.uu=function(a){this.AS=a;return!0};var Qad=function(a,b,c){this.H=new Map;this.O=a;this.W=b;this.V=c};_.O(Qad,lO);_.g=Qad.prototype;_.g.log=function(a){this.V.info("drive.ds.sync.cache.SuggestedWorkspaceCacheManager",a)};_.g.getKey=function(a){return a.toString()};_.g.kia=function(a){var b=this;return new Pad(this.O,this.W,function(c){b.WC(c,!1)},a)};_.g.jxa=function(){throw Error("df");};
_.g.b2=function(a,b,c,d){var e=a[0].Fk();this.log("Initialized "+e.length+" suggested workspaces: "+e.map(function(f){return f.ap()}).join(", "));lO.prototype.b2.call(this,a,b,c,d)};var nO=function(a,b,c,d){_.yi.call(this);this.request=a;this.Fa=b;this.oa=c;this.Ba=d;this.ma=0;this.oe=null;this.O=new Set};_.O(nO,_.yi);
nO.prototype.Xg=function(){var a=this;if(this.oe)return this.oe.promise;this.oe=_.Xh();this.W(this.request).forEach(function(b,c){a.ma++;a.Fa.then(function(d){return d.Ve(b)}).then(a.va.bind(a,c),a.handleError.bind(a,c))});return this.oe.promise};nO.prototype.va=function(a,b){this.V(b);Rad(this,a)};var Rad=function(a,b){a.O.add(b);a.O.size===a.ma?(a.ha(a.request),a.dispatchEvent("Fb"),a.oe.resolve()):a.dispatchEvent("Cb")};
nO.prototype.handleError=function(a,b){b=_.sA(b);var c=b.Ug;5===c.Ls()||4===c.mk()?(this.Ba.info("drive.ds.sync.query.SimpleFindByIdsRunner","Deleting "+a+" due to: "+b.message),this.ka(a),Rad(this,a)):(a=new XN(c,_.Pj(this.oa.Sf(),1,1)),this.dispatchEvent(a),this.oe.reject(b))};var Sad=function(a){var b=new _.mF;b.Pb(a);return b},Tad=function(a,b,c,d,e){nO.call(this,a.clone(),c,d,e);this.H=b};_.O(Tad,nO);
Tad.prototype.W=function(a){var b=new Map;a.Am().forEach(function(c){var d=_.uVb(a.clone(),[c]);b.set(c,d)});return b};Tad.prototype.V=function(a){var b=[];a.vT().forEach(function(c){b.push(c)});this.H(b,!0)};Tad.prototype.ha=function(){this.H([],!1)};Tad.prototype.ka=function(a){this.H([Sad(a)],!0)};var Uad=function(a,b,c,d,e,f){jO.call(this,a,f.clone());this.ma=b;this.W=c;this.ka=d;this.ha=e;this.Tk={};this.H=null};_.O(Uad,jO);
Uad.prototype.refresh=function(){this.H=new Tad(this.request,this.ha,this.ma,this.W,this.ka);return this.H.Xg()};Uad.prototype.tfa=function(){this.H||this.refresh()};Uad.prototype.Dk=function(){var a=new _.AM;a.Dc(this.status);_.Na(this.Tk,function(b,c){a.vT().set(c,b||new _.mF)});a.Ti(this.jf());return a};Uad.prototype.uu=function(a){var b=a.getId();if(_.mk(a,Sad(a.getId()))){if(this.Tk[b])return delete this.Tk[b],!0}else if(0<=this.request.Am().indexOf(b))return this.Tk[b]=a,!0;return!1};
var Vad=function(a,b){a=a.getState();return null==a||b.getState()==a},Wad=function(a,b,c){kO.call(this,a,c);this.V=b};_.O(Wad,kO);Wad.prototype.iia=function(a,b,c){a=a.clone();a.di(b);return new _.lVc(a,c)};Wad.prototype.Cka=function(a){return a.pageToken||""};Wad.prototype.Qja=function(a){return a.response.Fk()};Wad.prototype.M5=function(a){this.V(a)};var Xad=function(a){this.H=_.oRc(a,{numeric:!0})};
Xad.prototype.O=function(a,b,c){var d=b.getTitle()||"",e=c.getTitle()||"",f;d!==e?f=this.H(d,e)*(a?1:-1):f=_.Ga(b.getId(),c.getId())*(a?1:-1);return f};Xad.prototype.V=function(a,b,c){var d=_.C(b,4),e=_.C(c,4),f;d!==e?f=_.Ga(d,e)*(a?1:-1):f=_.Ga(b.getId(),c.getId())*(a?1:-1);return f};var Yad=function(a,b,c,d,e){jO.call(this,a,e.clone());this.ha=b;this.Tk=[];this.H=null;this.W=d;a=new Xad(c);b=(c=this.request.Wv())?c.getType():0;c=c?_.C(c,2):0;this.ka=1===b?a.O.bind(a,2!==c):a.V.bind(a,1===c)};
_.O(Yad,jO);Yad.prototype.refresh=function(){var a=this;this.Kz();this.H=new Wad(this.request,this.W,function(b){return a.ha.then(function(c){return c.Ve(b)})});return this.H.Xg(this.request.Ii()||0)};Yad.prototype.tfa=function(a){1===this.status||this.H&&a===this.request.Ii()||(this.request.di(a),this.H?this.H.Xg(a):this.refresh())};Yad.prototype.Dk=function(){var a=new $N;a.Dc(this.status);c$c(a,this.Tk.map(function(b){return b.clone()}));return new _.FM(a,void 0,1!==this.status&&tad(this.H),this.jf())};
Yad.prototype.uu=function(a){var b=_.ta(this.Tk,function(c){return c.getId()===a.getId()});return a&&Vad(this.request,a)&&!_.mk(a,Sad(a.getId()))?A0c(this.Tk,a,this.ka):b};var Zad=function(a,b,c,d){this.H=new Map;this.V=a;this.ha=b;this.W=c;this.O=d};_.O(Zad,lO);_.g=Zad.prototype;_.g.log=function(a){this.W.info("drive.ds.sync.cache.WorkspaceCacheManager",a)};_.g.getKey=function(a){return a.toString()};
_.g.kia=function(a){var b=this;return new Yad(this.V,this.ha,pN(_.CK(this.O)),function(c){return void b.WC(c,!1)},a)};_.g.jxa=function(a){var b=this;return new Uad(this.V,this.ha,this.O,this.W,function(c,d){return b.WC(c,d)},a)};_.g.b2=function(a,b,c,d){this.log("Initialized "+a.length+" items for workspaces: "+a.map(function(e){return e.getId()}).join(", "));lO.prototype.b2.call(this,a,b,c,d)};
var $ad=function(a,b){b=void 0===b?!1:b;var c=a.getMimeType();cN(a)&&(c=(c=a.yf())?_.C(c,3):"");dN(a)&&(a.Pi()&&(c+="+"+String(a.Pi())),a.Fj()&&(c+="+shared"));return _.bUa(c,b?"32":"16")},abd=function(a,b){b=Object.entries(b);return 0===b.length?a:a+"?"+b.map(function(c){var d=_.m(c);c=d.next().value;d=d.next().value;return c+"="+d}).join("&")},bbd=function(a,b){var c=_.L(a,44),d=a.yf();if(d){if(1!==_.Od(d))return null;c=(c=_.Md(d))?_.L(c,44):!0}if(!c)return null;c={};d=a.getId();cN(a)&&(d=S0c(a));
d=[_.H(b,65,"https://lh3.google.com"),"u",_.RK(_.CK(b)),"d",d].join("/");d+="={size}";_.E(b,89,!1)&&_.S(a,140)&&(c.resourcekey=_.ol(a));return d=abd(d,c)},cbd=function(a){this.H=a},ebd=function(a,b,c){if(c.includes(20)&&c.includes(3)){var d=$ad(b,_.E(a.H,75,!1));_.B(b,21,d)}c.includes(18)&&_.hWc(b,G1c(b,a.H));c.includes(19)&&(d=bbd(b,a.H),_.B(b,20,d));dbd(a,b,c);if(cN(b)){if(d=(d=b.yf())&&_.Md(d)){if(c.includes(20)&&c.includes(3)){var e=$ad(d,_.E(a.H,75,!1));_.B(d,21,e)}c.includes(18)&&_.hWc(d,G1c(d,
a.H));c.includes(19)&&(e=bbd(d,a.H),_.B(d,20,e));dbd(a,d,c)}_.lWc(b,!!b.mx())}},dbd=function(a,b,c){var d=c.includes(41);c=c.includes(42);if(d||c){var e=b.getMimeType();e&&(e=!dN(b)&&!cN(b)&&!_.vd(e)&&(!b.I6()||2!==b.Uo()),d&&_.B(b,40,e),e&&c&&(a=a.H,d=b.getId(),cN(b)&&(d=S0c(b)),c=new _.gj(_.H(a,16,"")+"/uc"),_.qj(c,"id",d),_.qj(c,"authuser",_.RK(_.CK(a))),_.qj(c,"export","download"),_.E(a,89,!1)&&_.S(b,140)&&_.qj(c,"resourcekey",_.ol(b)),_.B(b,41,c.toString())))}},fbd=function(a,b){this.tia="";
this.startTime=b||new Date;this.Rda=a;this.M$=C0c(a)};fbd.prototype.clone=function(){return new fbd(this.Rda,this.startTime)};var gbd=function(){this.H=null;this.gY=[]},hbd=function(a){return _.Bb(a.gY,function(b){return _.Za(b)})};gbd.prototype.WM=function(){return this.H};
gbd.prototype.O=function(a,b,c){if(this.H){var d=this.H;if(!a["X-Google-DapperTraceInfo"]){var e=new k$c;e.V=j$c(d.M$);var f=_.Kg().substring(0,8);d=C0c(f);f=(new K9c).Pb(f);f=_.B(f,2,d);b=_.B(f,3,b).ti(c);this.gY.push(b);e.O=j$c(d);e.H=h$c(808464432,808464432);e.W=41;b=String.fromCharCode;c=b.apply;d=new _.nk;if(e.V){f=e.V.O>>>0;var h=e.V.H>>>0;_.ok(d,1,1);var k=d.O;n2c(k,f);n2c(k,h)}e.O&&(f=e.O.O>>>0,h=e.O.H>>>0,_.ok(d,2,1),k=d.O,n2c(k,f),n2c(k,h));f=e.W;null!=f&&(_.ok(d,3,5),n2c(d.O,f));e.H&&(f=
e.H.O>>>0,e=e.H.H>>>0,_.ok(d,4,1),h=d.O,n2c(h,f),n2c(h,e));e=_.pk(d);a["X-Google-DapperTraceInfo"]=_.n.btoa(c.call(b,null,e))}}};var ibd=function(){this.Bb=[];this.O=this.H=0};ibd.prototype.discard=function(a){for(var b=this.H,c=this.O,d=this.Bb,e=0;e<a;++e){b=b+1&255;c=c+d[b]&255;var f=d[b];d[b]=d[c];d[c]=f}this.H=b;this.O=c};
var jbd=function(a,b){if(!c)var c=b.length;for(var d=a.H,e=a.O,f=a.Bb,h=0;h<c;++h){d=d+1&255;e=e+f[d]&255;var k=f[d];f[d]=f[e];f[e]=k;b[h]^=f[f[d]+f[e]&255]}a.H=d;a.O=e},kbd=function(a){this.key=a;this.H=new _.pUc;this.O=new _.nUc(new _.pUc,_.cma(a))};kbd.prototype.encrypt=function(a){for(var b=[],c=0;16>c;c++)b[c]=Math.floor(256*Math.random());b=_.dma(b);c=lbd(this,a);return b.concat(c,mbd(this,b,a,!0))};
var nbd=function(a,b){var c=mbd(a,b.substring(0,16),b.substring(36),!1);b=b.substring(16,36);a=lbd(a,c);if(b!==a)throw Error("ef");return c},lbd=function(a,b){a=_.oUc(a.O,_.IUc(b));return _.dma(a)},mbd=function(a,b,c,d){a.H.reset();a.H.update(b);a.H.update(a.key);b=new ibd;a=a.H.digest();if(!e)var e=a.length;for(var f=b.Bb,h=0;256>h;++h)f[h]=h;var k=0;for(h=0;256>h;++h){k=k+f[h]+a[h%e]&255;var l=f[h];f[h]=f[k];f[k]=l}b.H=0;b.O=0;b.discard(1536);if(d){d="";for(e=0;e<c.length/8192;e++)a=_.IUc(c.substring(8192*
e,8192*(e+1))),jbd(b,a),d+=_.dma(a);return d}d=[];for(e=0;e<c.length/8192;e++){a=c.substring(8192*e,8192*(e+1));f=_.n.Uint8Array?new Uint8Array(a.length):Array(a.length);for(h=0;h<a.length;h++)f[h]=a.charCodeAt(h)&255;a=f;jbd(b,a);d.push(a)}if(d.length){for(c=0;c<d.length-1;c++)if(8192!==d[c].length)throw Error("ff");c=8192*(d.length-1)+d[d.length-1].length;b=Array(c);for(a=e=0;e<c;)f=obd(d,e++),128>f?b[a++]=String.fromCharCode(f):191<f&&224>f?(h=obd(d,e++),b[a++]=String.fromCharCode((f&31)<<6|h&
63)):239<f&&365>f?(h=obd(d,e++),k=obd(d,e++),l=obd(d,e++),f=((f&7)<<18|(h&63)<<12|(k&63)<<6|l&63)-65536,b[a++]=String.fromCharCode(55296+(f>>10)),b[a++]=String.fromCharCode(56320+(f&1023))):(h=obd(d,e++),k=obd(d,e++),b[a++]=String.fromCharCode((f&15)<<12|(h&63)<<6|k&63));b.length=a;d=b.join("")}else d="";return d},obd=function(a,b){return a[Math.floor(b/8192)][b%8192]},pbd=function(a,b,c){this.data=a;this.gZa=b;this.H=c;this.isEncrypted=!1};pbd.prototype.getData=function(){return this.data};
pbd.prototype.Bm=function(){return this.gZa};var qbd=function(a,b,c,d){this.O=a;this.H=_.Xh();this.jp=!1;this.V=_.H(b,7,"");this.W=_.Pj(_.qN(b),6,2E7);this.aG=_.HK(b);this.ha=_.Pj(_.qN(b),12,0);this.ka=c;this.zd=d||null};qbd.prototype.initialize=function(){var a=this;this.jp||(this.jp=!0,this.O.initialize().then(function(){a.H.resolve()},function(b){a.H.reject(b)}));return _.fi(this.H.promise)};
qbd.prototype.DC=function(a){if(a instanceof _.oA)return 0;if(a instanceof YN)return 1;if(a instanceof f5c)return 5;if(a instanceof ON)return 3;if(a instanceof Z9c)return 6;throw new _.kc("Unsupported dataShard in getDataType");};var rbd=function(a){if(0==a)return _.oA;if(1==a)return YN;if(5==a)return f5c;if(3==a)return ON;if(6==a)return Z9c;throw new _.kc("Unsupported dataType:"+a+" in getDataTypeCtor");};qbd.prototype.Nu=function(a){if(a instanceof ON)return a.Nu()};
qbd.prototype.Bm=function(a){if(a instanceof ON)return a.Gd().length};
var wbd=function(a,b,c,d){if(0==c.length)return _.Rh();var e=a.DC(c[0]);c.forEach(function(){});var f=a.Nu(c[0]),h=0;3==e&&sbd(a,c);var k=!!b;return tbd(a,c).then(function(l){if(k){var p=a.zd?a.zd.H(106023,d):null;h=l.reduce(function(t,u){return t+u.Bm()},0);var q=ubd(a,b,l.map(function(t){return t.getData()})).then(function(t){if(t.length!=l.length)return _.Sh(Error("gf"));t.forEach(function(u,y){y=l[y];y.data=u;y.isEncrypted=!0});return l});p&&(t4c(s4c(r4c(p.wE(),_.xM(_.TTc,e)),_.xM(_.QTc,f)),!0),
q.then(function(){var t=h;q4c(p.wE(),!0).Zs(t);p.Tj()},function(){var t=h;q4c(p.wE(),!1).Zs(t);p.Tj()}));return q}return l}).then(function(l){return a.H.promise.then(function(){return vbd(a.O,l,e,f,k,d)})})},tbd=function(a,b){return new _.Qh(function(c,d){var e=!1,f=[];b.forEach(function(l){if(!e){var p=l.Rb();if(p.length>a.W)e=!0;else{var q=f.push,t=a.Bm(l);l instanceof ON?(l=_.L(l,6),l=null!=l?l:void 0):l=void 0;q.call(f,new pbd(p,t,l))}}});if(e){var h=Error("hf"),k=new _.jc;_.OK(k,2);_.$K(k,23);
_.B(k,21,h.message);_.kq(k);a.ka(k);d(h)}c(f)})},sbd=function(a,b){a.Nu(b[0]);b.forEach(function(){});a.aG||xbd(b);ybd(a,b)},oO=function(a,b,c,d,e,f){var h=_.Xh(),k;_.Yh(a.H.promise.then(function(){return zbd(a.O,c,d,e)}).then(function(l){var p=l.map(function(t){return t.data}),q=new _.$h;if(l[0]&&l[0].n0){if(k=a.zd?a.zd.H(106022,f):null)t4c(s4c(r4c(k.wE(),_.xM(_.TTc,c)),_.xM(_.QTc,d)),!0),q.Om().then(function(t){var u=k;t=void 0!=t;q4c(u.wE(),t);_.LXc(u)});Abd(a,q,b,p)}else q.callback(p);return q.then()},
function(){}).then(function(l){var p=[];if(l){var q=0;l.forEach(function(t){t=new (rbd(c))(JSON.parse(t));q+=a.Bm(t);p.push(t)});3==c&&(a.aG||Bbd(p),Cbd(p));k&&k.wE().Zs(q)}h.resolve(p)}),function(){k&&k.Tj()}).Ag(h.reject,h);return h.promise},xbd=function(a){if(a.length){for(var b=0;b<a.length;b++)if(a[b].PM().length)return;var c=new Map,d=new Map;a.forEach(function(f){(f.Gd()||[]).forEach(function(h){_.fWc(h,Dbd(_.il(h),c,d));_.gWc(h,Dbd([h.jm()],c,d)[0]);var k=Dbd([h.Cv()],c,d)[0];_.A(h,47,k);
k=Dbd([h.yq()],c,d)[0];_.A(h,91,k);k=Dbd([h.PC()],c,d)[0];_.A(h,95,k);if(h=h.xw())_.bWc(h,Dbd(h.PQ(),c,d)),_.cWc(h,Dbd(_.ek(h,_.Qk,3),c,d))})});var e=[];c.forEach(function(f){e.push(f)});_.Cb(a[0],2,e)}},Dbd=function(a,b,c){if(!a)return a;var d=[];a.forEach(function(e){if(e&&e.getId()){var f=e.getId();b.has(f)?_.mk(e,b.get(f))?d.push(c.get(f)):d.push(e):(b.set(f,e.clone()),e=new _.Qk,e.Pb(f),c.set(f,e),d.push(e))}else d.push(e)});return d},Bbd=function(a){var b=new Map,c=new Map;a[0]&&a[0].PM()&&
a[0].PM().forEach(function(d){b.set(d.getId(),d);d=(new _.Qk).Pb(d.getId());c.set(d.getId(),d)});b.size&&a.forEach(function(d){(d.Gd()||[]).forEach(function(e){_.fWc(e,Ebd(_.il(e),b,c));_.gWc(e,Ebd([e.jm()],b,c)[0]);var f=Ebd([e.Cv()],b,c)[0];_.A(e,47,f);f=Ebd([e.yq()],b,c)[0];_.A(e,91,f);f=Ebd([e.PC()],b,c)[0];_.A(e,95,f);if(e=e.xw())_.bWc(e,Ebd(e.PQ(),b,c)),_.cWc(e,Ebd(_.ek(e,_.Qk,3),b,c))});_.Wj(d,2)})},Ebd=function(a,b,c){if(!a)return a;var d=[];a.forEach(function(e){if(e&&e.getId()){var f=e.getId();
_.mk(c.get(f),e)?d.push(b.get(f).clone()):d.push(e)}else d.push(e)});return d},ybd=function(a,b){if(a.ha){a=a.ha;for(var c=b.length-1;0<=c;c--)if(b[c].Nu()){for(var d=[],e=b[c].Gd();e.length>a;){var f=_.ya(e,a-1,a);f=p8c(new ON,f);d.push(f)}p8c(b[c],e);d.length&&_.rb(_.ya,b,c+1,0).apply(null,d)}}},Cbd=function(a){for(var b={},c=1;c<a.length;b={qea:b.qea},c++)if(!a[c].Nu()){for(var d=0,e=c;e<a.length&&!a[e].Nu();e++)d++;e=a[c-1];d=_.ya(a,c,d);b.qea=e.Gd();d.forEach(function(f){return function(h){_.wa(f.qea,
h.Gd())}}(b));p8c(e,b.qea)}},ubd=function(a,b,c){if(!_.YTc()&&a.V){var d=new Worker(_.qga(_.qx(a.V)),void 0),e=new _.$h;d.addEventListener("message",function(k){d.terminate();e.callback(k.data)},!1);d.addEventListener("error",function(k){d.terminate();e.Kd(Error(k))},!1);c=f$c(new e$c,c);d.postMessage({command:"encrypt",data:{request:c.Rb(),key:b}});return e}try{a=[];var f=new kbd(b);for(b=0;b<c.length;b++)a.push(f.encrypt(c[b]));var h=_.ei(a)}catch(k){h=_.gi(k)}return h},Abd=function(a,b,c,d){for(var e=
0;e<d.length;e++)if(d[e].length>a.W){b.callback(void 0);return}if(!_.YTc()&&a.V){var f=new Worker(_.qga(_.qx(a.V)),void 0);f.addEventListener("message",function(k){f.terminate();b.callback(k.data)},!1);f.addEventListener("error",function(){f.terminate();b.callback(void 0)},!1);f.postMessage({command:"decrypt",data:{dumps:d,key:c}})}else try{a=[];var h=new kbd(c);for(c=0;c<d.length;c++)a.push(nbd(h,d[c]));b.callback(a)}catch(k){b.callback(void 0)}},Fbd=function(a,b,c){return[a.rz(),a.clientId,b?"#":
pO(a)].join(":")+":"+(c||"")},Gbd=function(a,b,c){this.global=void 0===c?!1:c;this.key=a;this.value=b};Gbd.prototype.getKey=function(){return this.key};Gbd.prototype.Za=function(){return this.value};
var Hbd=function(a,b){a=Fbd(a,b);return o6c(a+"A",a+"z")},Ibd=function(a,b){this.H=a;this.O=b},Jbd=function(a){return a?new Ibd(a.versionKey,a.versionChangeTimestamp):null},Kbd=function(a,b){return a+":"+b},Lbd=function(a,b,c,d,e){this.data=a;this.index=b;this.size=c;this.timestamp=d;this.n0=void 0===e?null:e},Mbd=function(a){return{data:a.data,index:a.index,size:a.size,timestamp:a.timestamp,e:a.n0}},Nbd=function(a,b,c,d){a=pO(a)+"_"+b;3===b&&(a+="_"+d);return a+=_.kt(":%02d",c)},Obd=function(a,b,
c,d){c=Nbd(a,b,void 0===c?0:c,d);a=pO(a)+"_"+b;3===b&&(a+="_"+d);return o6c(c,a+":a")},Pbd=function(a){var b=pO(a)+"_";a=pO(a)+"_A";return o6c(b,a)},Qbd=function(a){return a?new Lbd(a.data,a.index,a.size,a.timestamp,a.e):null},Rbd=function(a,b,c,d,e,f){f=void 0===f?Date.now():f;this.userId=a;this.clientId=b;this.W=c;this.V=d;this.O=null;this.ha=this.ka=!1;this.ma=void 0;this.fields=_.va(e);_.Ia(this.fields);_.Fa(this.fields);this.H=f};Rbd.prototype.rz=function(){return this.userId};
Rbd.prototype.Gg=function(){return _.va(this.fields)};
var pO=function(a){if(!a.O){var b=new _.uK;b.update([a.userId,a.clientId,a.W,a.V].join(":"));b.update(a.fields);a.O=_.IRc(b.digest())}return a.O},Sbd=function(a){return{versionKey:pO(a),versionInfo:{u:a.userId,c:a.clientId,pv:a.W,phk:a.V,f:a.fields},lastAccessedTimestamp:a.H}},Tbd=function(a){var b=!0;b=void 0===b?!1:b;if(!a)return null;var c=a.versionInfo,d=a.versionKey;if(!c||!d)return null;a=new Rbd(c.u,c.c,c.pv,c.phk,c.f,a.lastAccessedTimestamp);b?a.O=d:pO(a)!==d&&(a=null);return a},qO=function(a,
b,c,d){c=void 0===c?null:c;d=void 0===d?!1:d;_.P.call(this);var e=this;this.zd=b;this.W=c;this.readOnly=d;this.H=this.version=null;this.Ba=!1;this.va=!0;this.V=null;this.ka=!1;this.O="";this.ma=null;this.Pa=a.then(function(f){e.version=f});this.Mb=new _.De(this);this.Ma(this.Mb)};_.O(qO,_.P);qO.prototype.initialize=function(){return Ubd(this)};
var Ubd=function(a,b){a.V||(a.V=_.Xh(),a.Pa.then(function(){b?(a.va=!1,Vbd(a,b),a.log("Initialized database GoogleDriveDs with existing IndexedDb"),a.V.resolve()):(a.W&&(a.ma=a.W.H(106004)),a.log("Opening database GoogleDriveDs (version 2)"),_.zSc("GoogleDriveDs",2,a.Fa.bind(a),a.oa.bind(a)).Mf(a.Ka.bind(a),a.oa.bind(a)),_.Ci(2E4).then(a.Ha.bind(a)))},function(c){a.V.reject(new _.kc("Database version error",void 0,_.GK(c)?c:void 0))}));return a.V.promise},Vbd=function(a,b){a.H=b;a.Mb.listen(a.H,"close",
a.ha.bind(a,"Browser closing database"));a.Mb.listen(a.H,"versionchange",a.ha.bind(a,"Database version change detected, closing"))};qO.prototype.Fa=function(a,b){this.log("Upgrading GoogleDriveDs to version "+a.newVersion);this.Ba=!0;_.Ka(b.H.objectStoreNames,function(c){return _.BWc(b,c)});_.Na(_.YK,function(c){var d=_.uUc.get(c);_.wSc(b,c,d?{keyPath:d}:void 0)})};
qO.prototype.oa=function(a){var b;a&&a instanceof _.xK&&"InvalidStateError"==a.getName()&&_.xj.qw?b=Error("jf"):_.GK(a)&&(b=a);this.ha("Unable to open database GoogleDriveDs (version 2)");this.V.reject(b);Wbd(this,!1)};qO.prototype.Ka=function(a){this.ka?a.dispose():(Vbd(this,a),this.Ma(this.H),this.readOnly||Xbd(this).Ag(function(){}),this.log("Initialized database GoogleDriveDs"),this.V.resolve(),Wbd(this,!0))};
var Wbd=function(a,b){if(a.ma){var c=a.ma,d=_.D(_.wM(c),l4c,5);d||(d=new l4c,c=_.wM(c),_.A(c,5,d));d=_.B(d,1,2);c=a.xi().W;d=_.B(d,2,c);c=a.xi().ka;d=_.B(d,5,c);b=_.B(d,3,b);b=_.B(b,4,a.Ba);d=a.xi().ma;_.B(b,6,d);a.ma.Tj();a.ma=null}};qO.prototype.Ha=function(){this.H||this.Ig()||(this.ha("Opening database GoogleDriveDs timed out."),this.oa(Error("kf")))};qO.prototype.ha=function(a){this.log(a);this.ka||(this.ka=!0,this.O="Database disabled: "+a,this.H&&this.va&&this.H.close())};qO.prototype.Ig=function(){return this.ka};
var Ybd=function(a){return a.ka?a.O:null};qO.prototype.xi=function(){return this.version};
var rO=function(a,b,c){c=void 0===c?"readonly":c;if(a.readOnly&&"readonly"!=c)return null;a=a.H;try{return _.xSc(a,[b],c)}catch(d){return null}},Xbd=function(a){var b=_.YK.e_,c=rO(a,b,"readwrite");if(!c)return _.Sh(Error("lf"));c.objectStore(b).put(Sbd(a.xi()));return c.wait().then(function(){})},Zbd=function(a){if(!a.H)return _.Sh(Error("mf"));if(a.Ig())return _.Sh(Error(a.O));var b=_.YK.e_,c=rO(a,b,"readwrite");return c?c.objectStore(b).remove(pO(a.xi())).then():_.Sh(Error("nf"))},$bd=function(a,
b,c){if(!a.length)return b.resolve([]),null;var d=[];a.forEach(function(h){(h=Qbd(h))&&(d[h.index]=h)});if(!d[0])return b.reject(Error("of")),0;a=d[0].timestamp;if(!a)return b.reject(Error("pf")),0;var e=d[0].size;if(!e)return b.reject(Error("qf")),0;if(e>d.length)return b.reject(Error("rf`"+e+"`"+d.length)),0;for(var f=0;f<e;f++)if(!d[f]||d[f].size!=e||d[f].timestamp!=a)return b.reject(Error("sf`"+e)),0;if(c&&a<c)return b.reject(Error("tf`"+a+"`"+c)),d.length>e?e:null;if(d.length>e)return b.resolve(d.slice(0,
e)),e;b.resolve(d);return null},zbd=function(a,b,c,d){if(!a.H||3==b&&void 0==c)return _.Sh(Error("uf"));if(a.Ig())return _.Sh(Error(a.O));var e=Obd(a.xi(),b,0,c),f=_.YK.x5,h=rO(a,f);if(!h)return _.Sh(Error("vf"));e=h.objectStore(f).getAll(e);var k=_.Xh();e.Mf(function(l){l=$bd(l,k,d);a.readOnly||null==l||acd(a,b,c,l).Ag(function(){})},k.reject);return k.promise},vbd=function(a,b,c,d,e,f){if(a.H){if(a.Ig())return _.Sh(Error(a.O));if(100<b.length||3==c&&void 0==d)return _.Sh(Error("wf"))}else return _.Sh(Error("xf"));
var h=Date.now(),k=b.length;b=b.map(function(t,u){return{key:Nbd(a.xi(),c,u,d),data:new Lbd(t.getData(),u,k,h,e),metadata:t}});var l=_.YK.x5,p=rO(a,l,"readwrite");if(!p)return _.Sh(Error("yf"));var q=p.objectStore(l);b.forEach(function(t){var u=bcd(a,c,d,t.metadata,f);q.put(Mbd(t.data),t.key).then(function(){u&&(q4c(u.wE(),!0),u.Tj())},function(y){var z=y instanceof _.xK?y.code:_.ZRc;u&&a.W&&(y=q4c(u.wE(),!1),z=_.xM(_.UTc,z),_.B(y,2,z),u.Tj())})});return p.wait().then(function(){})},bcd=function(a,
b,c,d,e){if(a.W){var f=a.W.W;if(a=a.W.H(106019,e))b=s4c(r4c(a.wE(),_.xM(_.TTc,b)),_.xM(_.QTc,c)),f=f.Nu(d.H),f=_.B(b,5,f),t4c(f,d.isEncrypted),void 0!=d.Bm()&&a.wE().Zs(d.Bm());return a}return null},acd=function(a,b,c,d){d=void 0===d?0:d;if(a.H){if(a.Ig())return _.Sh(Error(a.O));if(3==b&&void 0==c)return _.Sh(Error("zf"))}else return _.Sh(Error("Af"));b=Obd(a.xi(),b,d,c);c=_.YK.x5;a=rO(a,c,"readwrite");if(!a)return _.Sh(Error("Bf"));a.objectStore(c).remove(b);return a.wait().then(function(){})},ccd=
function(a){if(!a.H)return _.Sh(Error("Cf"));if(a.Ig())return _.Sh(Error(a.O));var b=Pbd(a.xi()),c=_.YK.x5;a=rO(a,c,"readwrite");if(!a)return _.Sh(Error("Df"));a.objectStore(c).remove(b);return a.wait().then(function(){})};
qO.prototype.getMetadata=function(a){if(this.H){if(this.Ig())return _.Sh(Error(this.O));if(a&&0==a.length)return _.Sh(Error("Ef"))}else return _.Sh(Error("Ff"));var b=this.xi(),c=_.YK.M6,d=rO(this,c);if(!d)return _.Sh(Error("Gf"));var e=d.objectStore(c);if(a){var f=[];a.forEach(function(k){f.push(e.get(Fbd(b,k.global,k.key)).then())});a=_.Vh(f)}else a=_.Vh([e.getAll(Hbd(b,!1)).then(),e.getAll(Hbd(b,!0)).then()]).then(function(k){return z0c(k[0],k[1])});var h=_.Xh();a.then(function(k){h.resolve(k.map(function(l){if(l){var p=
l.k.split(":"),q="#"===p[2];l=4!==p.length||!q&&p[2]!==pO(b)||p[0]!==b.rz()||p[1]!==String(b.clientId)?null:new Gbd(p[3],l.v,q)}else l=null;return l}))},h.reject);return h.promise};
var dcd=function(a,b){if(a.H){if(a.Ig())return _.Sh(Error(a.O));if(0==b.length)return _.Sh(Error("Hf"))}else return _.Sh(Error("If"));var c=_.YK.M6,d=rO(a,c,"readwrite");if(!d)return _.Sh(Error("Jf"));var e=d.objectStore(c),f=[];b.forEach(function(h){var k=f.push,l=e.put,p=a.xi();h={k:Fbd(p,h.global,h.key),v:h.value};k.call(f,l.call(e,h).then())});return _.Vh(f).then(function(){})},ecd=function(a,b){b=void 0===b?!1:b;if(a.H){if(a.Ig())return _.Sh(Error(a.O))}else return _.Sh(Error("Lf"));var c=a.xi(),
d=_.YK.M6;a=rO(a,d,"readwrite");if(!a)return _.Sh(Error("Mf"));d=a.objectStore(d);a=[];a.push(d.remove(Hbd(c,!1)).then());b&&a.push(d.remove(Hbd(c,!0)).then());return _.Vh(a).then(function(){})},fcd=function(a){if(!a.H)return _.Sh(Error("Nf"));if(a.Ig())return _.Sh(Error(a.O));var b=Kbd(a.xi().rz(),a.xi().clientId),c=_.YK.WT;return(a=rO(a,c))?a.objectStore(c).get(b).then(function(d){return Jbd(d)}):_.Sh(Error("Of"))},gcd=function(a,b){b=void 0===b?!1:b;if(!a.H)return _.Sh(Error("Pf"));if(a.Ig())return _.Sh(Error(a.O));
var c=a.xi(),d=Kbd(c.rz(),c.clientId);b=new Ibd(pO(c),b?Date.now():void 0);c=_.YK.WT;a=rO(a,c,"readwrite");if(!a)return _.Sh(Error("Qf"));a.objectStore(c).put({versionKey:b.H,versionChangeTimestamp:b.O},d);return a.wait().then(function(){})};
qO.prototype.El=function(a){var b=this;return this.H?this.Ig()?_.Sh(Error(this.O)):fcd(this).then(function(c){var d=pO(b.xi());if(c)if(a){if(!c.O&&d==c.H&&d!=pO(a))return gcd(b,!0);if(c.O&&d==pO(a))return gcd(b)}else{if(d!=c.H)return gcd(b)}else if(!a)return gcd(b)}):_.Sh(Error("Rf"))};var hcd=function(a){if(!a.H)return _.Sh(Error("Sf"));if(a.Ig())return _.Sh(Error(a.O));var b=a.xi(),c=Kbd(b.rz(),b.clientId);return fcd(a).then(function(d){if(d){d=_.YK.WT;var e=rO(a,d,"readwrite");if(e)return e.objectStore(d).remove(c).then()}})};
qO.prototype.clear=function(a){var b=this;a=void 0===a?!1:a;return this.H?this.Ig()?_.Sh(Error(this.O)):fcd(this).then(function(c){var d=c&&c.H==pO(b.xi());return d&&!a?!1:(c&&d?hcd(b):_.Rh()).then(function(){return _.Vh([ecd(b,a),ccd(b),Zbd(b)]).then(function(){return!0},function(){return!1})},function(){return!1})}):_.Sh(Error("Tf"))};qO.prototype.close=function(){this.ha("Closing database")};qO.prototype.log=function(a){this.zd.info("drive.ds.sync.storage.VersionedDb",a)};
var icd=function(a){if(1>=a.xi())return!1;var b=a.H.objectStoreNames;return _.Sa(_.YK).every(function(c){return b&&b.contains(c)})},jcd=function(){var a=_.Xh();_.zSc("GoogleDriveDs").Mf(function(b){b?icd(b)?a.resolve(b):(b.close(),_.Yh(p6c().then(),function(){a.resolve(null)})):a.resolve(null)},function(){a.resolve(null)});return a.promise},kcd=function(a,b,c){var d=_.Xh();a?_.xSc(a,[_.YK.e_],"readonly").objectStore(_.YK.e_).getAll().Mf(function(e){e=_.Sa(e).map(function(f){return Tbd(f)}).filter(function(f){return null!=
f});d.resolve(e.filter(function(f){return(!b||f.rz()==b)&&(!c||f.clientId==c)}))},d.reject):d.resolve([]);return d.promise},lcd=function(a,b,c){var d=_.Xh();jcd().then(function(e){if(e){var f=_.YK.WT;_.xSc(e,[f],"readonly").objectStore(f).get(a+":"+b).then(function(h){return Jbd(h)}).then(function(h){if(h){var k=0;"number"==typeof c&&"number"==typeof h.O&&(k=c+h.O-Date.now());var l=_.YK.e_,p=_.xSc(e,[l],"readonly");p.objectStore(l).get(h.H).then(function(q){(q=Tbd(q))?(q.ka=!0,0>k?q.ha=!0:0<k&&(q.ma=
k),d.resolve(q)):d.resolve(null)});_.bi(p.wait(),function(){e.close()})}else d.resolve(null),e.close()},function(h){d.reject(h);e.close()})}else d.resolve(null)},d.reject);return d.promise},mcd=function(a,b,c){var d=_.Xh(),e=new qO(_.Rh(a),b);Ubd(e,c).then(function(){return d.resolve(e)},d.reject);return d.promise},ncd=function(a,b,c,d,e){e=void 0===e?!1:e;var f=[];a.forEach(function(h){var k=mcd(h,b,c);f.push(k.then(function(l){return l.clear(e)}).then(function(l){return l?h:void 0}))});_.Vh(f).then(function(h){var k=
[];h.forEach(function(l){l&&(k.push(l),b.info("drive.ds.sync.storage.VersionedDb","Cleared version: "+pO(l)))});d.resolve(k)})},ocd=function(a,b,c){var d=Date.now()-12096E5,e=_.Xh();jcd().then(function(f){f?(_.Yh(e.promise,function(){f.close()}),kcd(f,a,b).then(function(h){return h.filter(function(k){return k.H<d})},function(){return[]}).then(function(h){ncd(h,c,f,e)})):e.resolve([])});return e.promise},pcd=function(a,b,c){var d=_.Xh();jcd().then(function(e){e?(_.Yh(d.promise,function(){e.close()}),
kcd(e,a,b).then(function(f){ncd(f,c,e,d,!0)})):d.resolve([])});return d.promise},qcd=function(a,b,c,d){if(a.length){var e=_.YK.x5,f=a.shift(),h=Nbd(f,3,0,1);try{_.xSc(c,[e],"readonly").objectStore(e).get(h).then(function(k){(k=Qbd(k))&&(!k.n0||k.n0&&d.has(f.V))?b.resolve(f):qcd(a,b,c,d)},function(){return b.resolve(null)})}catch(k){b.resolve(null)}}else b.resolve(null)},rcd=function(a,b,c,d,e,f,h){var k=_.Xh();jcd().then(function(l){l?(_.Yh(k.promise,function(){l.close()}),kcd(l,a,b).then(function(p){return p.filter(function(q){return(!h||
h!=pO(q))&&q.W==c&&q.H>=e&&R0c(d.filter(function(t){return!_.vUc.has(t)}),q.Gg(),b)})},function(){return[]}).then(function(p){p.length?(p.sort(function(q,t){return t.H-q.H}),qcd(p,k,l,new Set(f))):k.resolve(null)})):k.resolve(null)});return k.promise},scd={key:"rid",global:!0},tcd={key:"ooi",global:!0},ucd={key:"rtds",global:!1},vcd={key:"dct",global:!1},wcd={key:"pc",global:!1},xcd=function(a){this.H=new _.Qh(function(b){a?a.initialize().then(function(){return b(a)},function(){return b(null)}):b(null)})};
xcd.prototype.get=function(a){return this.H.then(function(b){if(b&&!b.Ig())return b.getMetadata([a]).then(function(c){return(c=c[0])?c.Za():void 0},function(){})})};xcd.prototype.set=function(a,b){return this.H.then(function(c){return c&&!c.Ig()?dcd(c,[new Gbd(a.key,b,a.global)]).then(function(){return!0},function(){return!1}):!1})};xcd.prototype.Mn=function(){return this.get(scd).then(function(a){return a?a:null})};xcd.prototype.ku=function(a){return this.set(scd,a)};
var ycd=function(a){return a.get(tcd).then(function(b){return"boolean"===typeof b?b:null})};xcd.prototype.py=function(a){return this.set(tcd,a)};var zcd=function(a){return a.get(wcd).then(function(b){return"boolean"===typeof b?b:null})},Acd=function(a){return a.get(ucd).then(function(b){return Array.isArray(b)?b:null})},Bcd=function(a){return a.get(vcd).then(function(b){return"number"===typeof b?b:null})},Ccd=function(){this.aj=[]};_.O(Ccd,_.LM);
Ccd.prototype.add=function(a,b){var c=a.gv.request;return c instanceof _.QL&&_.C(c.request,12)?_.LM.prototype.add.call(this,a,b):!1};Ccd.prototype.Lsa=function(a){return this.aj.splice(0,Math.min(a,1))};var Dcd=function(a,b){this.aj=[];this.H=b};_.O(Dcd,_.LM);Dcd.prototype.add=function(a,b){return a.gv.request instanceof _.QL?!1:_.LM.prototype.add.call(this,a,b)};
Dcd.prototype.Lsa=function(a){for(var b=[],c=[],d={},e=0,f=0;f<this.aj.length&&b.length<a;f++){var h=this.aj[f],k=h.gv.request;k instanceof _.lL||k instanceof _.wL||k instanceof _.LL?k="app|"+k.qh():k instanceof _.gL||k instanceof _.hL||k instanceof _.nL||k instanceof _.TK?k="item|"+(k instanceof _.gL?k.Kc():k.getId()):k instanceof _.oL||k instanceof _.xL?k="item|"+k.Kc():k instanceof _.pL||k instanceof _.NL?k="item|"+k.Kc():k instanceof _.TB||k instanceof _.SB?(k=k instanceof _.TB?_.D(k,_.Ip,1).getKey():
k.getKey(),k="pref|"+_.C(k,2)+"|"+_.Jp(k)):k=k instanceof _.qL?"td|"+k.getId():null;var l=h.gv.request;if(l instanceof _.jL)l=!!_.L(l,8);else if(l instanceof _.hL){l=this.H.H(l.getId());var p;if(p=!!l)p=!!(l&&l.getMimeType()&&_.S6a.has(l.getMimeType()));l=p}else l=!1;if(k&&d[k]||l&&5===e)break;b.push(h);c.unshift(f);k&&(d[k]=!0);l&&e++}for(a=0;a<c.length;a++)_.qa(this.aj,c[a]);return b};
Ecd=function(a,b,c,d,e,f,h,k,l){a=a.Sf();h=new _.BZc(k,h,d,_.Pj(a,32,1073741824),_.Pj(a,21,1E3));h=new _.CZc(h);k=new _.aZc(_.Pj(a,59,2E3),_.Pj(a,60,2E4),_.Pj(a,61,6));c=new _.ZYc(l?l:c,l?void 0:e);e={};e[1]=_.EZc(b,d);e[2]=_.FZc(b,a,k,c,d);e[3]=_.GZc(b,a,k,c,d,"batch");l=_.Pj(a,10,50);f=new _.NM(d,b,[_.$Yc(c),new _.dZc(l,_.Pj(a,11,100)),new _.MM(l),new _.KM(k,d)],[new Dcd(a,f),new Ccd,new _.LM],[new _.mZc(a,k,c.Gj(),d)],"mutation");return e[4]=f,e[5]=_.HZc(h,a,d),e[6]=_.GZc(b,a,k,c,d,"find_by_ids_batch"),
e[7]=_.GZc(b,a,k,c,d,"xd4_batch"),e[8]=_.GZc(b,a,k,c,d,"xd4_batch_one",1),e};Fcd=function(a){return a.nextPageToken?a.nextPageToken:a.continuationToken?a.continuationToken:""};Gcd=function(a){var b={};return b.parentId=a.Ck(),b};Hcd=function(a){var b={};_.Xd(_.Jg(a.getTitle()))||(b.title=a.getTitle());_.T_c(b,_.Id(a,3));_.L(a,8)&&(b.description="",a={},b.labels=(a.starred=!1,a));return b};
Icd=function(a){var b={};null!=a.getTitle()&&(b.title=a.getTitle());null!=_.C(a,3)&&(b.workspaceToken=_.C(a,3));return b};Jcd=function(a){var b={};b.sourceIds=_.Id(a.request,1);b.destinationFolderId=_.C(a.request,2);a.pageToken&&(b.continuationToken=a.pageToken);return b};
Kcd=function(a){var b={},c={};_.Xd(_.Jg(a.getTitle()))||(b.title=a.getTitle());null!=a.Bg()&&(b.description=a.Bg());null!=_.L(a,4)&&(c.starred=_.L(a,4));null!=a.Nh()&&(c.trashed=a.Nh());_.Xd(_.Jg(a.getMimeType()))||(b.mimeType=a.getMimeType());"number"===typeof _.C(a,7)&&(b.modifiedDate=_.yWc(_.yXc(_.C(a,7)||0)));null!=_.L(a,11)&&(c.restricted=_.L(a,11));_.Ra(c)&&(b.labels=c);null!=a.Pi()&&(b.folderColor=a.Pi());null!=_.L(a,16)&&(b.subscribed=_.L(a,16));null!=_.L(a,40)&&(c={},b.linkShareMetadata=
(c.securityUpdateEnabled=_.L(a,40),c));if(c=_.D(a,_.el,25)){b.contentRestrictions=[];var d={};null!=_.L(c,1)&&(d.readOnly=_.L(c,1));null!=_.C(c,2)&&(d.reason=_.C(c,2));b.contentRestrictions.push(d)}_.T_c(b,_.Id(a,8));return b};Lcd=function(a){var b={};null!=_.L(a,3)&&(b.pinned=_.L(a,3));return b};
Mcd=function(a){var b={};null!=a.getTitle()&&(b.name=a.getTitle());if(null!=_.C(a,3))b.backgroundImageId=_.C(a,3);else{var c=_.C(a,6);null!=c&&(c=c.toString(16),b.colorRgb="#"+(0,_.Gg)("0",6-c.length)+c);c=_.D(a,_.e4c,9);if(null!=c){a={};var d=c.getId();d&&(a.id=d);d=_.C(c,2);"number"===typeof d&&(a.xCoordinate=d);d=_.C(c,3);"number"===typeof d&&(a.yCoordinate=d);(c=c.Me())&&(a.width=c);b.backgroundImageFile=a}}return b};
Ncd=function(a){var b={};null!=a.getTitle()&&(b.title=a.getTitle());null!=a.getState()&&(a=_.W_c[a.getState()])&&(b.state=a);return b};_.Ocd=function(a){_.Q(this,a,-1,null,null)};_.O(_.Ocd,_.N);_.Ocd.prototype.O=function(){return _.C(this,1)};var Pcd=function(a){_.Q(this,a,-1,null,null)};_.O(Pcd,_.N);Pcd.prototype.O=function(){return _.L(this,1)};Pcd.prototype.V=function(){return _.C(this,2)};_.sO=function(a){_.Q(this,a,-1,null,null)};_.O(_.sO,_.N);_.g=_.sO.prototype;
_.g.getId=function(){return _.C(this,1)};_.g.Pb=function(a){return _.B(this,1,a)};_.g.getTitle=function(){return _.C(this,2)};_.g.setTitle=function(a){return _.B(this,2,a)};_.g.Nsa=function(){return _.C(this,3)};_.g.Fy=function(){return _.C(this,4)};_.g.q$=function(){return _.D(this,Pcd,6)};_.g.lrb=function(){return _.D(this,_.Ocd,7)};_.g.XUa=function(){return _.C(this,8)};_.g.Msa=function(){return _.L(this,9)};_.tO=function(a){_.Q(this,a,-1,null,null)};_.O(_.tO,_.N);_.g=_.tO.prototype;
_.g.getType=function(){return _.C(this,1)};_.g.getId=function(){return _.C(this,2)};_.g.Pb=function(a){return _.B(this,2,a)};_.g.getTitle=function(){return _.C(this,3)};_.g.setTitle=function(a){return _.B(this,3,a)};_.g.Nd=function(){return _.C(this,5)};_.g.setSize=function(a){return _.B(this,5,a)};_.g.p$a=function(){return _.C(this,6)};_.Qcd=function(a,b){return _.B(a,6,b)};_.tO.prototype.Bg=function(){return _.C(this,8)};_.tO.prototype.tm=function(a){return _.B(this,8,a)};
_.tO.prototype.O=function(){return _.L(this,9)};_.uO=function(a,b,c,d,e,f){_.yi.call(this);var h=this;this.V=a;this.va=b;this.Fa=c;this.request=e;this.Ba=f;this.H=[];this.items=[];this.ha=!0;this.O=!1;this.suggestionSessionId=null;this.Ha=d;this.status=6;this.ka=I1c(new _.YM,[1]);this.limit=e.Ii();this.Pe=0;_.te(this,function(){h.O=!1;h.H=[]})};_.O(_.uO,_.yi);_.g=_.uO.prototype;_.g.Ki=function(){return String(_.Ea(this))};_.g.isActive=function(){return this.O};
_.g.activate=function(){this.O=!0;_.na(this.items)&&6===this.Cb()&&this.Oj()||Rcd(this)};_.g.yd=function(){return this.request};_.g.Ii=function(){return this.limit};_.g.Cb=function(){return this.status};_.g.Fq=function(){return this.ka};_.g.Oj=function(){return this.ha};_.g.Lr=function(){var a=_.CRc().jz(this.H,this.items),b=(new _.ORc).Dc(this.Cb());a=_.Cb(b,2,a);this.H=this.items;return a};_.g.sr=function(a){this.O&&(this.limit+=a||50,this.Ha(this.Ki(),this.limit))};
var Scd=function(a,b){return a.Cb()!==b.Cb()||rN(_.CRc(),a.items,b.Gd())},Tcd=function(a,b){a.items=b.Gd();a.status=b.Cb();_.HK(a.Ba)&&(a.ka=J1c(a.status,a.items));a.ha=b.Zk();a.Pe=b.jf()};_.uO.prototype.aB=function(a){this.dispatchEvent(new _.lc(new _.kc("Error occurred running a query after "+a.H+" retries.",a.error)))};_.uO.prototype.NV=function(){this.dispatchEvent(new _.oi(_.jGa))};
_.uO.prototype.eu=function(a,b){var c=this;b+="\n\n\nQuery:\n"+TN(this.V,this.yd());return _.fi(this.va.then(function(d){return d.QKb(a,b,c.yd(),c.Ii(),c.items)}))};
var Rcd=function(a){a.isActive()&&(a.log("Livelist "+a.Ki()+" returning "+a.items.length+". Status: "+(_.$a(d5c)[a.Cb()]+". Datasource: ")+(_.$a(a6c)[a.Pe]+". Query: ")+(TN(a.V,a.request)+" ")+K1c(a.items)),Ucd(a,a.items,a.request),a.dispatchEvent(new _.oi(_.xc,a)))},Ucd=function(a,b,c){if(_.yL(c))c="quick access";else if(_.zL(c))c="people predict";else if(_.AL(c))c="drive priority";else return;b=b.map(function(d){return d.getId()}).join(", ");a.log("Livelist "+a.Ki()+" returning "+a.items.length+
" for "+(c+": "+b))};_.uO.prototype.refresh=function(){};_.uO.prototype.log=function(a){this.Fa.info(this.W,a)};var l2c=[90,59,75];_.r("sy17t");
var Vcd=function(a){_.Q(this,a,-1,null,null)};_.O(Vcd,_.N);
var Wcd=function(a){_.Q(this,a,-1,null,null)};_.O(Wcd,_.N);Wcd.prototype.getType=function(){return _.C(this,1)};var Xcd=function(a){var b=new Wcd;return _.B(b,1,a)},Ycd=function(a,b){return _.A(a,2,b)};Wcd.prototype.Mx=function(){return _.C(this,3)};Wcd.prototype.qy=function(a){return _.B(this,3,a)};Wcd.prototype.Ji=function(){return _.C(this,4)};Wcd.prototype.setPosition=function(a){return _.B(this,4,a)};
var vO=function(a){_.Q(this,a,-1,null,null)};_.O(vO,_.N);vO.prototype.getType=function(){return _.C(this,1)};var Zcd=function(a){var b=new vO;return _.B(b,1,a)};vO.prototype.Tm=function(){return _.D(this,DN,2)};var $cd=function(a,b){return _.A(a,2,b)};vO.prototype.Mx=function(){return _.C(this,3)};vO.prototype.qy=function(a){return _.B(this,3,a)};vO.prototype.Ji=function(){return _.C(this,4)};vO.prototype.setPosition=function(a){return _.B(this,4,a)};
var wO=function(a){_.Q(this,a,-1,null,null)};_.O(wO,_.N);wO.prototype.getType=function(){return _.C(this,1)};var add=function(a){var b=new wO;return _.B(b,1,a)};wO.prototype.Tm=function(){return _.D(this,_.mF,2)};var bdd=function(a,b){return _.A(a,2,b)};wO.prototype.Mx=function(){return _.C(this,3)};wO.prototype.qy=function(a){return _.B(this,3,a)};wO.prototype.Ji=function(){return _.C(this,4)};wO.prototype.setPosition=function(a){return _.B(this,4,a)};
var cdd=function(a){_.Q(this,a,-1,null,null)};_.O(cdd,_.N);cdd.prototype.Cb=function(){return _.C(this,1)};cdd.prototype.Dc=function(a){return _.B(this,1,a)};cdd.prototype.gr=function(){return _.D(this,_.CN,2)};
var edd=function(a){_.Q(this,a,-1,ddd,null)};_.O(edd,_.N);edd.prototype.Cb=function(){return _.C(this,1)};edd.prototype.Dc=function(a){return _.B(this,1,a)};edd.prototype.Uj=function(){return _.C(this,3)};var ddd=[2];
var fdd=function(a){_.Q(this,a,-1,null,null)};_.O(fdd,_.N);fdd.prototype.ud=function(){return _.D(this,V4c,1)};fdd.prototype.Ln=function(){return _.C(this,2)};
var gdd=function(a){_.Q(this,a,-1,null,null)};_.O(gdd,_.N);_.g=gdd.prototype;_.g.Cb=function(){return _.C(this,1)};_.g.Dc=function(a){return _.B(this,1,a)};_.g.gr=function(){return _.D(this,_.CN,2)};_.g.Uj=function(){return _.C(this,3)};_.g.qh=function(){return _.C(this,4)};
var xO=function(a){_.Q(this,a,-1,null,null)};_.O(xO,_.N);xO.prototype.Cb=function(){return _.C(this,1)};xO.prototype.Dc=function(a){return _.B(this,1,a)};xO.prototype.Uj=function(){return _.C(this,3)};
var hdd=function(a){_.Q(this,a,-1,null,null)};_.O(hdd,_.N);_.g=hdd.prototype;_.g.Cb=function(){return _.C(this,1)};_.g.Dc=function(a){return _.B(this,1,a)};_.g.Uj=function(){return _.C(this,2)};_.g.wMa=function(){return _.D(this,_.Ip,3)};_.g.getKey=function(){return _.D(this,_.Nb,4)};_.g.Vr=function(){return _.S(this,4)};
var jdd=function(a){_.Q(this,a,-1,null,idd)};_.O(jdd,_.N);jdd.prototype.getKey=function(){return _.C(this,1)};jdd.prototype.Vr=function(){return _.S(this,1)};var ldd=function(a){_.Q(this,a,-1,kdd,null)};_.O(ldd,_.N);var idd=[[2,4,6,10],[3,5,7,8,9]],kdd=[1];
var mdd=function(a){_.Q(this,a,-1,null,null)};_.O(mdd,_.N);
var yO=function(a){_.Q(this,a,-1,ndd,null)};_.O(yO,_.N);yO.prototype.Cb=function(){return _.C(this,1)};yO.prototype.Dc=function(a){return _.B(this,1,a)};yO.prototype.O=function(){return _.ek(this,wN,2)};var odd=function(a,b){return _.Cb(a,2,b)};yO.prototype.Uj=function(){return _.C(this,3)};var ndd=[2];
var pdd=function(a){_.Q(this,a,-1,null,null)};_.O(pdd,_.N);pdd.prototype.Cb=function(){return _.C(this,1)};pdd.prototype.Dc=function(a){return _.B(this,1,a)};pdd.prototype.O=function(){return _.D(this,wN,2)};pdd.prototype.Uj=function(){return _.C(this,3)};
var qdd=function(a){_.Q(this,a,-1,null,null)};_.O(qdd,_.N);qdd.prototype.Lx=function(){return _.C(this,2)};
var sdd=function(a){_.Q(this,a,-1,rdd,null)};_.O(sdd,_.N);sdd.prototype.Cb=function(){return _.C(this,1)};sdd.prototype.Dc=function(a){return _.B(this,1,a)};sdd.prototype.ak=function(){return _.ek(this,_.xRc,2)};sdd.prototype.Vq=function(a,b){return _.gk(this,2,a,_.xRc,b)};var rdd=[2];
var udd=function(a){_.Q(this,a,-1,tdd,null)};_.O(udd,_.N);udd.prototype.Cb=function(){return _.C(this,1)};udd.prototype.Dc=function(a){return _.B(this,1,a)};udd.prototype.Fk=function(){return _.ek(this,vO,2)};var tdd=[2];
_.wdd=function(a){_.Q(this,a,-1,vdd,null)};_.O(_.wdd,_.N);var vdd=[1];
var ydd=function(a){_.Q(this,a,-1,xdd,null)},Bdd,Cdd;_.O(ydd,_.N);ydd.prototype.Ln=function(){return _.C(this,1)};var zdd=function(a,b){return _.B(a,1,b)},Add=function(a,b){return _.B(a,2,b)};ydd.prototype.Cb=function(){return _.C(this,3)};ydd.prototype.Dc=function(a){return _.B(this,3,a)};Bdd=function(a,b){return _.B(a,4,b)};Cdd=function(a,b){return _.Cb(a,5,b)};_.Ddd=function(a){_.Q(this,a,-1,null,null)};_.O(_.Ddd,_.N);_.Ddd.prototype.lc=function(){return _.C(this,2)};
_.Fdd=function(a){_.Q(this,a,-1,Edd,null)};_.O(_.Fdd,_.N);var Gdd=function(a,b){return _.B(a,1,b)},Hdd=function(a,b){return _.B(a,2,b)},Idd=function(a,b){return _.Cb(a,3,b)},xdd=[5],Edd=[3];
_.zO=function(a){_.Q(this,a,-1,Jdd,null)};_.O(_.zO,_.N);_.zO.prototype.jV=function(){return _.ek(this,_.sF,2)};_.zO.prototype.te=function(){return _.D(this,_.ef,3)};var Jdd=[1,2];
_.AO=function(a){_.Q(this,a,-1,null,null)};_.O(_.AO,_.N);_.AO.prototype.Cb=function(){return _.C(this,1)};_.AO.prototype.Dc=function(a){return _.B(this,1,a)};_.AO.prototype.Bh=function(){return _.D(this,_.oA,2)};_.Kdd=function(a,b){return _.A(a,2,b)};_.AO.prototype.Uj=function(){return _.C(this,3)};
var Ldd=function(a){_.Q(this,a,-1,null,null)};_.O(Ldd,_.N);Ldd.prototype.Cb=function(){return _.C(this,1)};Ldd.prototype.Dc=function(a){return _.B(this,1,a)};
var Ndd=function(a){_.Q(this,a,-1,Mdd,null)};_.O(Ndd,_.N);Ndd.prototype.Cb=function(){return _.C(this,1)};Ndd.prototype.Dc=function(a){return _.B(this,1,a)};Ndd.prototype.Fk=function(){return _.ek(this,wO,2)};var Mdd=[2];
var Odd=function(a){_.Q(this,a,-1,null,null)};_.O(Odd,_.N);Odd.prototype.getType=function(){return _.C(this,1)};var Pdd=function(a){var b=new Odd;return _.B(b,1,a)};Odd.prototype.Mx=function(){return _.C(this,3)};Odd.prototype.qy=function(a){return _.B(this,3,a)};Odd.prototype.Ji=function(){return _.C(this,4)};Odd.prototype.setPosition=function(a){return _.B(this,4,a)};
var Rdd=function(a){_.Q(this,a,-1,Qdd,null)};_.O(Rdd,_.N);Rdd.prototype.Cb=function(){return _.C(this,1)};Rdd.prototype.Dc=function(a){return _.B(this,1,a)};Rdd.prototype.Uj=function(){return _.C(this,3)};var Qdd=[2];
_.Sdd=function(a){_.Q(this,a,-1,null,null)};_.O(_.Sdd,_.N);_.Sdd.prototype.getId=function(){return _.C(this,1)};_.Sdd.prototype.Pb=function(a){return _.B(this,1,a)};_.Sdd.prototype.te=function(){return _.D(this,_.ef,4)};
var Udd=function(a){_.Q(this,a,-1,Tdd,null)};_.O(Udd,_.N);Udd.prototype.Cb=function(){return _.C(this,1)};Udd.prototype.Dc=function(a){return _.B(this,1,a)};Udd.prototype.Uj=function(){return _.C(this,3)};var Tdd=[2,4];
_.BO=function(a){_.Q(this,a,-1,null,null)};_.O(_.BO,_.N);_.BO.prototype.getType=function(){return _.C(this,1)};var Vdd=function(a){var b=new _.BO;return _.B(b,1,a)},Wdd=function(a,b){return _.A(a,2,b)};_.BO.prototype.Mx=function(){return _.C(this,3)};_.BO.prototype.qy=function(a){return _.B(this,3,a)};_.BO.prototype.Ji=function(){return _.C(this,4)};_.BO.prototype.setPosition=function(a){return _.B(this,4,a)};
_.$1c=function(a){_.Q(this,a,-1,null,null)};_.O(_.$1c,_.N);_.g=_.$1c.prototype;_.g.getItem=function(){return _.D(this,_.hl,1)};_.g.setItem=function(a){return _.A(this,1,a)};_.g.getError=function(){return _.D(this,_.jc,2)};_.g.Te=function(a){return _.A(this,2,a)};_.g.wn=function(){return _.S(this,2)};_.g.Ls=function(){return _.C(this,4)};
var Ydd=function(a){_.Q(this,a,-1,Xdd,null)};_.O(Ydd,_.N);var Xdd=[2,4];
var $dd=function(a){_.Q(this,a,-1,Zdd,null)};_.O($dd,_.N);var Zdd=[1];
var bed=function(a){_.Q(this,a,-1,aed,null)};_.O(bed,_.N);bed.prototype.Cb=function(){return _.C(this,1)};bed.prototype.Dc=function(a){return _.B(this,1,a)};bed.prototype.Uj=function(){return _.C(this,3)};var aed=[2];
var ded=function(a){_.Q(this,a,-1,ced,null)};_.O(ded,_.N);ded.prototype.Cb=function(){return _.C(this,1)};ded.prototype.Dc=function(a){return _.B(this,1,a)};ded.prototype.Uj=function(){return _.C(this,3)};var ced=[2];
var eed=function(a){_.Q(this,a,-1,null,null)};_.O(eed,_.N);
var ged=function(a){_.Q(this,a,-1,fed,null)};_.O(ged,_.N);ged.prototype.O=function(){return _.C(this,2)};var hed=function(a,b){_.B(a,2,b)},fed=[1];
var ied=function(a){_.oi.call(this,"Ob");this.dataType=a};_.O(ied,_.oi);
var jed=function(a,b){_.oi.call(this,"Pb");this.iPa=a;this.mua=b};_.O(jed,_.oi);
var ked=function(){};_.g=ked.prototype;_.g.$L=function(a,b){return g6c(f6c(1),a).setPosition(b)};_.g.ZL=function(a,b){return g6c(f6c(2).setPosition(b),a)};_.g.jE=function(a,b,c){return g6c(f6c(3).qy(b).setPosition(c),a)};_.g.XP=function(a,b){return g6c(f6c(4),a).setPosition(b)};_.g.CM=function(a){return _.D(a,zN,2)};
var led=function(){_.sK.call(this,new ked,function(a){return a&&a.getName()})};_.O(led,_.sK);
var CO=function(a,b,c){c=void 0===c?50:c;_.yi.call(this);var d=this;this.W=a;this.connectionState=b;this.limit=c;this.active=!1;this.status=6;this.va=I1c(new _.YM,[1]);this.ha=this.H=!1;this.Oc=new _.De(this);this.Ma(this.Oc);_.te(this,function(){d.active=!1;d.Oc.removeAll()})};_.O(CO,_.yi);_.g=CO.prototype;_.g.Ki=function(){return String(_.Ea(this))};_.g.Ye=function(){return this.W.Ye()||this.connectionState.Ye()};
_.g.activate=function(){var a=this;this.active||(this.active=!0,this.Oc.listen(this.W,"Ab",_.rb(this.Bt)),this.Oc.listen(this.connectionState,[].concat(_.jd(Object.values(_.tA))),_.rb(this.Bt)),this.W.Ye()?this.Oc.od(this.W,"Ab",function(b){b.Ye()||(a.tG(),a.dispatchEvent(new _.oi(_.pq)))}):this.connectionState.Ye()?this.Oc.od(this.connectionState,[_.tA.XK,_.tA.XT],function(){a.tG();a.dispatchEvent(new _.oi(_.pq))}):(this.tG(),this.dispatchEvent(new _.oi(_.pq))))};_.g.tG=function(){};
_.g.sr=function(a){var b=this;if(this.Oj()){var c=this.limit;this.limit+=a||50;this.lc()>c&&this.Bt();this.W.Ye()?this.Oc.od(this.W,"Ab",function(d){d.Ye()||b.NO()}):this.NO()}};_.g.cL=function(){this.Ye()&&!this.H?this.status=2:this.status=this.H?1:6};_.g.Cb=function(){return this.status};_.g.Fq=function(){return this.va};_.g.handleError=function(a){this.dispatchEvent(new _.lc(a))};_.g.NV=function(){this.dispatchEvent(new _.oi(_.jGa))};_.g.Oj=function(){return!this.H||this.ha};
_.g.refresh=function(){this.H=this.active=!1;this.status=6;this.Oc.removeAll();this.activate()};_.g.NO=function(){};
var med=function(a,b,c,d,e){CO.call(this,a,b,e.Ii()||void 0);this.ka=c;this.request=e;this.O=[];this.data=[];this.changed=!1;this.V=new led;this.ma=d};_.O(med,CO);_.g=med.prototype;_.g.tG=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.oi(_.xc,this))};_.g.getData=function(){return k6c(new BN,this.data).Dc(this.status)};_.g.Lr=function(){var a=this.V.jz(this.O,this.data);this.O=this.data;var b=(new i6c).Dc(this.status);return _.Cb(b,2,a)};
_.g.NO=function(){this.ma(this.Ki(),this.limit)};_.g.Bt=function(){if(this.active){var a=this.status;this.cL();if(this.changed||a!==this.status)this.changed=!1,ned(this)}};_.g.lc=function(){return this.data.length};_.g.yd=function(){return this.request};_.g.update=function(a){var b=a.response;if(this.status!==b.Cb()||rN(0,this.data,b.O()))this.H=!0,this.status=b.Cb(),this.data=b.O(),this.ha=a.H,ned(this)};
var ned=function(a){a.log("Livelist "+a.Ki()+" returning "+a.data.length+" for "+(a.request.Kc()+". Status: ")+(_.$a(d5c)[a.Cb()]+"."));a.dispatchEvent(new _.oi(_.xc,a))};med.prototype.aB=function(a){this.dispatchEvent(new _.lc(new _.kc("Error occurred running a category metadata query after "+a.H+" retries.",a.error)))};med.prototype.log=function(a){this.ka.info("drive.ds.sync.CategoryMetadataLiveList",a)};
var oed=function(a,b,c,d,e,f,h){_.uO.call(this,a,b,c,e,f,d);this.zd=h;this.W="drive.ds.sync.ViewCacheLiveList";this.oa=null;this.ma=void 0};_.O(oed,_.uO);oed.prototype.getData=function(){this.H=this.items;var a=L3c((new _.gA).Dc(this.Cb()).tw(this.items),this.Oj());a=_.A(a,7,this.oa);return _.zWc(a.hP(this.suggestionSessionId).Ti(this.Pe),this.ma)};
oed.prototype.update=function(a){if(Scd(this,a)&&(Tcd(this,a),this.oa=a.L5(),this.suggestionSessionId=a.Hf(),this.ma=a.tka(),Rcd(this),this.suggestionSessionId&&l9c(this.V)&&(a=this.zd.H(106027)))){var b=_.D(_.wM(a),x4c,20);if(!b){b=new x4c;var c=_.wM(a);_.A(c,20,b)}_.B(b,1,this.suggestionSessionId);a.Tj()}};
var ped=function(a,b){var c={};a=_.Oa(a,function(d){return!!d});b=_.Oa(b,function(d){return!!d});_.Na(a,function(d,e){var f=b[e];f?_.mk(d,f)||(d=bdd(add(4),f),c[e]=d):(d=bdd(add(2),d),c[e]=d)});_.Na(b,function(d,e){a[e]||(d=bdd(add(1),d),c[e]=d)});return c},qed=function(a,b){return _.Ra(a)!==_.Ra(b)||!_.Va(ped(a,b))};
var red=function(a,b){_.yi.call(this);this.request=b;this.active=!1;this.status=6;this.H={};this.data={}};_.O(red,_.yi);_.g=red.prototype;_.g.activate=function(){this.active||(this.active=!0,_.Va(this.data)&&6===this.status||this.dispatchEvent(new _.oi(_.xc,this)))};_.g.Cb=function(){return this.status};_.g.Fq=function(){return new _.YM};_.g.getData=function(){this.H=this.data;var a=(new _.AM).Dc(this.status);_.Na(this.data,function(b,c){a.vT().set(c,b||new _.mF)});return a};
_.g.Lr=function(){var a=ped(this.H,this.data);this.H=this.data;var b=(new Ldd).Dc(this.status);_.Na(a,function(c,d){_.Rj(b,2,wO).set(d,c)});return b};_.g.QS=function(){throw Error("Uf");};_.g.Ki=function(){return String(_.Ea(this))};_.g.yd=function(){return this.request};_.g.update=function(a){var b={};a.vT().forEach(function(c,d){c||(c=Sad(d));b[d]=c});if(this.status!==a.Cb()||qed(this.H,b))this.status=a.Cb(),this.data=b,this.active&&this.dispatchEvent(new _.oi(_.xc,this))};
_.g.aB=function(a){this.dispatchEvent(new _.lc(new _.kc("Error occurred running a Workspace find by id after "+a.H+" retries.",a.error)))};_.g.NV=function(){this.dispatchEvent(new _.oi(_.jGa))};
var sed=function(a,b,c,d,e,f){_.yi.call(this);var h=this;this.V=a;this.ka=b;this.ha=c;this.ma=d;this.oa=e;this.request=f;this.O=!1;this.H={};this.items={};this.status=6;this.W=I1c(new _.YM,[1]);this.log("Creating find by ids live map: "+this.request.Am().join(", "));_.te(this,function(){h.O=!1;h.H=[]})};_.O(sed,_.yi);_.g=sed.prototype;_.g.Ki=function(){return String(_.Ea(this))};_.g.activate=function(){this.O=!0;_.Va(this.items)&&6===this.status||ted(this)};_.g.yd=function(){return this.request};
_.g.getData=function(){this.H=this.items;var a=new _.yM;_.HK(this.V)?a.Dc(W0c(Object.values(this.items))?6:this.status):a.Dc(this.status);a.map=this.items;return a};_.g.Lr=function(){var a=L1c(this.H,this.items),b=new d6c;b.Dc(this.status);b.map=a;this.H=this.items;return b};_.g.Cb=function(){return this.status};_.g.Fq=function(){return this.W};_.g.QS=function(a){h9c(a);var b=this.request;this.request=a;this.oa(this.Ki(),b,a)};
_.g.update=function(a){var b=this;0<=_.la(this.yd().Am(),"root")?this.ma.addCallback(function(c){var d=a.map[c];d&&(_.Wa(a.map,c),a.map.root=d);ued(b,a)}):ued(this,a)};var ued=function(a,b){if(a.status!==b.Cb()||M1c(a.items,b.map))a.status=b.Cb(),a.items=b.map,_.HK(a.V)&&(a.W=J1c(a.status,Object.values(a.items))),ted(a)};sed.prototype.aB=function(a){this.dispatchEvent(new _.lc(new _.kc("Error occurred running a find-by-IDs query after "+a.H+" retries.",a.error)))};sed.prototype.NV=function(){this.dispatchEvent(new _.oi(_.jGa))};
var ted=function(a){a.O&&(a.log("Livelist "+a.Ki()+" returning "+(Object.values(a.items).length+". Status: ")+(_.$a(d5c)[a.Cb()]+". Query: ")+(TN(a.ka,a.request)+" ")+K1c(Object.values(a.items))),a.dispatchEvent(new _.oi(_.xc,a)))};sed.prototype.log=function(a){this.ha.info("drive.ds.sync.IdViewCacheLiveMap",a)};
var ved=function(a,b,c,d,e,f){_.uO.call(this,a,b,c,d,e,f);this.ma=[];this.W="drive.ds.sync.PeoplePredictLiveList"};_.O(ved,_.uO);ved.prototype.getData=function(){this.H=this.items;var a=(new _.zM).Dc(this.Cb()).tw(this.items);var b=this.Oj();a=_.B(a,4,b);return c5c(a,this.ma).hP(this.suggestionSessionId).Ti(this.Pe)};ved.prototype.update=function(a){Scd(this,a)&&(Tcd(this,a),this.ma=_.ek(a,_.Qk,6),this.suggestionSessionId=a.Hf(),Rcd(this))};
var wed=function(){};_.g=wed.prototype;_.g.$L=function(a,b){return $cd(Zcd(1),a).setPosition(b)};_.g.ZL=function(a,b){return $cd(Zcd(2).setPosition(b),a)};_.g.jE=function(a,b,c){return $cd(Zcd(3).qy(b).setPosition(c),a)};_.g.XP=function(a,b){return $cd(Zcd(4),a).setPosition(b)};_.g.CM=function(a){return a.Tm()};
var xed=function(){_.sK.call(this,new wed,function(a){return a&&a.ap()})};_.O(xed,_.sK);
var yed=function(a,b,c){CO.call(this,a.Gj(),a.nk(),b.Ii()||10);this.request=b;this.O=[];this.data=[];this.changed=!1;this.V=new xed;this.suggestionSessionId=null;this.ka=c};_.O(yed,CO);_.g=yed.prototype;_.g.tG=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.oi(_.xc,this))};_.g.getData=function(){this.O=this.data;return E6c(D6c((new EN).Dc(this.status),this.data.slice(0)),this.suggestionSessionId)};
_.g.Lr=function(){var a=this.V.jz(this.O,this.data);this.O=this.data;var b=(new udd).Dc(this.status);return _.Cb(b,2,a)};_.g.NO=function(){};_.g.Bt=function(){var a=this.status;this.cL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.oi(_.xc,this))};_.g.lc=function(){return this.data.length};_.g.yd=function(){return this.request};
_.g.update=function(a){if(this.status!==a.Cb()||rN(0,this.data,a.Fk())){this.changed=this.H=!0;this.data=a.Fk();if(a=a.Hf())this.suggestionSessionId=a;this.Bt()}};_.g.refresh=function(){this.ka()};_.g.aB=function(a){this.dispatchEvent(new _.lc(new _.kc("Error occurred running a Suggested Workspace query after "+(a.H+" retries."),a.error)))};
var zed=function(a,b,c){_.yi.call(this);var d=this;this.request=a;this.ka=b;this.ha=c;this.V=[];this.items=[];this.H=!1;this.status=6;this.W=I1c(new _.YM,[1]);this.O=!0;this.limit=a.Ii();_.te(this,function(){d.H=!1;d.V=[]})};_.O(zed,_.yi);_.g=zed.prototype;_.g.Ki=function(){return String(_.Ea(this))};_.g.activate=function(){this.H=!0;_.na(this.items)&&6===this.status&&this.O||this.dispatchEvent(new _.oi(_.xc,this))};_.g.yd=function(){return this.request};_.g.Cb=function(){return this.status};
_.g.Fq=function(){return this.W};_.g.Oj=function(){return this.O};_.g.getData=function(){this.V=this.items;return L3c((new _.gA).Dc(this.status).tw(this.items),this.O)};_.g.Lr=function(){var a=_.CRc().jz(this.V,this.items),b=(new _.ORc).Dc(this.status);a=_.Cb(b,2,a);this.V=this.items;return a};_.g.sr=function(a){this.H&&(this.limit+=a||20,this.ka.fF(this.Ki(),this.limit))};
_.g.update=function(a){if(this.status!==a.Cb()||rN(_.CRc(),this.items,a.Gd()))this.items=a.Gd(),this.status=a.Cb(),_.HK(this.ha)&&(this.W=J1c(this.status,this.items)),this.O=a.Zk(),this.H&&this.dispatchEvent(new _.oi(_.xc,this))};_.g.aB=function(a){this.dispatchEvent(new _.lc(new _.kc("Error occurred running a Team Drive query after "+a.H+" retries.",a.error)))};_.g.NV=function(){this.dispatchEvent(new _.oi(_.jGa))};_.g.eu=function(){throw Error("Vf");};_.g.refresh=function(){};
var Aed=function(a,b,c){_.yi.call(this);var d=this;this.context=a;this.ha=b;this.request=c;this.V=!1;this.O={};this.H={};this.status=6;this.W=I1c(new _.YM,[1]);this.context.Tf().info("drive.ds.sync.TeamDriveLiveMap","Creating TD find by ids live map: "+this.request.Am().join(", "));_.te(this,function(){d.V=!1;d.O=[]})};_.O(Aed,_.yi);_.g=Aed.prototype;_.g.Ki=function(){return String(_.Ea(this))};
_.g.activate=function(){this.V=!0;(0<Object.values(this.H).length||6!==this.status)&&this.dispatchEvent(new _.oi(_.xc,this))};_.g.yd=function(){return this.request};_.g.getData=function(){this.O=this.H;var a=new _.yM;a.Dc(this.status);a.map=this.H;return a};_.g.Lr=function(){var a=L1c(this.O,this.H),b=new d6c;b.Dc(this.status);b.map=a;this.O=this.H;return b};_.g.Cb=function(){return this.status};_.g.Fq=function(){return this.W};
_.g.QS=function(a){var b=this.request;this.request=a;this.ha.HY(this.Ki(),b,a)};_.g.update=function(a){if(this.status!==a.Cb()||M1c(this.H,a.map))this.status=a.Cb(),this.H=a.map,_.HK(this.context.Qc)&&(this.W=J1c(this.status,Object.values(this.H))),this.V&&this.dispatchEvent(new _.oi(_.xc,this))};_.g.aB=function(a){this.dispatchEvent(new _.lc(new _.kc("Error occurred running a team drive find-by-IDs query after "+a.H+" retries.",a.error)))};_.g.NV=function(){this.dispatchEvent(new _.oi(_.jGa))};
var Bed=function(){};_.g=Bed.prototype;_.g.$L=function(a,b){return bdd(add(1),a).setPosition(b)};_.g.ZL=function(a,b){return bdd(add(2).setPosition(b),a)};_.g.jE=function(a,b,c){return bdd(add(3).qy(b).setPosition(c),a)};_.g.XP=function(a,b){return bdd(add(4),a).setPosition(b)};_.g.CM=function(a){return a.Tm()};
var Ced=function(){_.sK.call(this,new Bed,function(a){return a&&a.getId()})};_.O(Ced,_.sK);
var Ded=function(a,b,c){CO.call(this,a.Gj(),a.nk(),b.Ii()||10);this.request=b;this.ka=c;this.O=[];this.data=[];this.changed=!1;this.V=new Ced};_.O(Ded,CO);_.g=Ded.prototype;_.g.tG=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.oi(_.xc,this))};_.g.getData=function(){this.O=this.data;return c$c((new $N).Dc(this.status),this.data.slice(0))};_.g.Lr=function(){var a=this.V.jz(this.O,this.data);this.O=this.data;var b=(new Ndd).Dc(this.status);return _.Cb(b,2,a)};
_.g.NO=function(){this.ka.fF(this.Ki(),this.limit)};_.g.Bt=function(){var a=this.status;this.cL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.oi(_.xc,this))};_.g.lc=function(){return this.data.length};_.g.yd=function(){return this.request};_.g.update=function(a){var b=a.response;if(this.status!==b.Cb()||rN(0,this.data,b.Fk()))this.H=!0,this.status=b.Cb(),this.data=b.Fk(),this.ha=a.H,this.dispatchEvent(new _.oi(_.xc,this))};
_.g.aB=function(a){this.dispatchEvent(new _.lc(new _.kc("Error occurred running a Workspace query after "+a.H+" retries.",a.error)))};
var Eed=function(a,b){this.context=a;this.ha=b;this.H={};this.ka={};this.ma={};this.V=null;this.W=a.xf;this.O=this.context.yfa;this.oa=this.context.N5};_.g=Eed.prototype;_.g.kxa=function(a){var b=this,c=new oed(this.context.$m,this.context.LP,this.context.Tf(),this.context.Qc,function(d,e){b.fF(d,e)},a,this.context.Mk());this.Th(c);_.te(c,function(){b.Yj(c)});return c};
_.g.nxa=function(a){var b=this,c=new ved(this.context.$m,this.context.LP,this.context.Tf(),function(d,e){b.fF(d,e)},a,this.context.Qc);this.Th(c);_.te(c,function(){b.Yj(c)});return c};_.g.hxa=function(a){var b=this,c=new sed(this.context.Qc,this.context.$m,this.context.Tf(),this.context.wZ,this.HY.bind(this),a);this.Th(c);_.te(c,function(){b.Yj(c)});return c};_.g.qxa=function(a){var b=this,c=new zed(a,this,this.context.Qc);this.Th(c);_.te(c,function(){b.Yj(c)});return c};
_.g.rxa=function(a){var b=this,c=new Aed(this.context,this,a);this.Th(c);_.te(c,function(){b.Yj(c)});return c};_.g.uxa=function(a){var b=this,c=new Ded(this.context,a,this);this.Th(c);_.te(c,function(){b.Yj(c)});return c};_.g.oxa=function(a){var b=this,c=new yed(this.context,a,function(){if(a instanceof _.kF){var d=Fed(b.context);Aad(d,d.getKey(a)).refresh()}});this.Th(c);_.te(c,function(){b.Yj(c)});return c};
_.g.vxa=function(a){var b=this,c=new red(this.context,a);this.Th(c);_.te(c,function(){b.Yj(c)});return c};_.g.exa=function(a){var b=this,c=new med(this.context.Gj(),this.context.nk(),this.context.Tf(),function(d,e){b.fF(d,e)},a);this.Th(c);_.te(c,function(){b.Yj(c)});return c};
_.g.Th=function(a){var b=a.Ki();this.H[b]=a;this.ha.create(b,a.yd());a=a.yd()instanceof _.gz?this.O.Th(b,a.yd()):a.yd()instanceof _.nF?yad(this.O,b,a.yd()):a.yd()instanceof _.kF?Fed(this.context).Th(b,a.yd()):a.yd()instanceof _.yF?this.oa.Th(b,a.yd()):this.W.Th(b,a.yd());"boolean"===typeof a&&M9c(this.ha,b,a)};
_.g.Yj=function(a){a.yd()instanceof _.gz?this.O.Yj(a.Ki(),a.yd()):a.yd()instanceof _.nF?zad(this.O,a.Ki(),a.yd()):a.yd()instanceof _.kF?Fed(this.context).Yj(a.Ki(),a.yd()):a.yd()instanceof _.yF?this.oa.Yj(a.Ki(),a.yd()):this.W.Yj(a.Ki(),a.yd());WN(this.ha,a.Ki(),4);delete this.H[a.Ki()]};_.g.HY=function(a,b,c){this.W.Yj(a,b);this.W.Th(a,c)};
_.g.fF=function(a,b){var c=Ged(this,a).yd();c.di(b);c instanceof _.gz?this.O.Th(a,c):c instanceof _.nF?yad(this.O,a,c):c instanceof _.yF?this.oa.Th(a,c):this.W.Th(a,c)};_.g.$N=function(a,b){this.ka[a]=b;this.V||(this.V=_.Ai(this.N8,50,this))};_.g.pX=function(a,b){this.ma[a]=b;this.V||(this.V=_.Ai(this.N8,50,this))};_.g.Kz=function(a){(a=this.H[a])&&a.NV()};
_.g.N8=function(){_.Bi(this.V);this.V=null;var a=Object.keys(this.ka),b=Object.keys(this.ma);a=_.m(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=this.ka[c];if(d){delete this.ka[c];var e=this.H[c];e&&(P9c(this.ha,c,d),e.update(d))}}b=_.m(b);for(c=b.next();!c.done;c=b.next())if(a=c.value,c=this.ma[a])if(delete this.ma[a],d=this.H[a])WN(this.ha,a,3),d.aB(c)};_.g.Ika=function(a){return Ged(this,a).yd()};var Ged=function(a,b){if(!a.H[b])throw Error("Wf`"+b);return a.H[b]};
var DO=function(a,b){_.yi.call(this);this.O=a;this.request=b;this.oe=_.Xh();this.complete=!1;this.H=""};_.O(DO,_.yi);DO.prototype.start=function(){var a=this;this.O.then(function(b){return b.Ve(a.request)}).then(this.W.bind(this)).Ag(this.handleError.bind(this));return this.oe.promise};DO.prototype.W=function(a){this.H=a.H;this.dispatchEvent(new jed(0,this.H));Hed(this)};
var Hed=function(a){_.n.setTimeout(function(){a.O.then(function(b){return b.Ve(new _.bVc(a.H))}).then(a.ha.bind(a)).Ag(a.handleError.bind(a))},5E3)};
DO.prototype.ha=function(a){if(1===a.status||3===a.status||2===a.status)this.dispatchEvent(new jed(a.O,this.H)),Hed(this);else{this.complete=!0;if(4===a.status){var b=new Ydd;b=_.B(b,2,a.V||[]);b=_.B(b,3,this.H);b=_.B(b,5,a.ka);b=_.B(b,6,a.ha);b=_.B(b,7,a.Iz);b=_.B(b,8,a.H);a=_.Cb(b,4,a.W);this.oe.resolve(a)}else a=_.PK(_.jq(_.iq(new _.jc,"Export failed for request "+this.H+": "+a.status),JSON.stringify(a)),8),this.handleError(a);this.dispose()}};DO.prototype.cancel=function(){var a=this;this.O.then(function(b){return b.Ve(new _.aVc(a.H))}).then(this.V.bind(this)).Ag(this.handleError.bind(this))};
DO.prototype.V=function(){if(!this.complete){var a=new Ydd;a=_.B(a,3,this.H);a=_.B(a,1,!0);this.oe.resolve(a);this.complete=!0;this.dispose()}};DO.prototype.handleError=function(a){this.complete=!0;this.oe.reject(_.bL(a));this.dispose()};
var Ied=function(){_.oi.call(this,"VbxEwf")};_.O(Ied,_.oi);
var Jed=function(a,b){this.context=a;this.H=null;this.wc=b||null};_.g=Jed.prototype;_.g.La=function(){return _.D(this.context.Qc,_.ZK,58)};_.g.getContext=function(){return this.context};_.g.iz=function(){return this.context.oA.iz(this.H)};_.g.Tf=function(){return this.context.Tf()};_.g.pM=function(a){return _.ei(this.context.xf.dm.H(a))};_.g.LQ=function(){return _.ei(this.context.oA.LQ())};
_.g.J4=function(a,b,c){var d=new _.$h;if(_.D(a,_.IK,3)||_.D(a,_.RL,4)||_.D(a,_.HM,5)||_.D(a,_.OL,6)||_.D(a,_.qL,7)||_.D(a,_.jL,8)||_.D(a,_.nL,9)||_.D(a,_.TK,10)){var e=J9c(a);this.context.Cm().then(function(f){return f.Ve(e,{r6a:b,s6a:c})}).then(this.q$a.bind(this,d),d.Kd,d);return d}throw Error("Xf");};
_.g.q$a=function(a,b){var c=[],d="";if(b instanceof _.IM){c=b.ud().Gd();var e=_.C(b,2);d=b.Ln()}else if(b instanceof _.TL)b.getItem()&&c.push(b.getItem()),e=b.AM();else throw Error("Yf");a.callback({items:c,tia:e,pageToken:d})};_.g.tqa=function(){var a=this.context.Qc,b=a.Sf();a="email:"+_.CK(a).getEmail().replace(/@.*$/,"");_.B(b,13,a)};_.g.Sha=function(){this.context.zs.NR();var a=this.context.Qc;pcd(_.iM(_.CK(a)),_.jM(a),this.context.Tf()).Ag(function(){})};
_.g.b9=function(){return _.cUc[_.Oj(this.context.Qc.Sf(),8,0)]};_.g.sda=function(){this.context.tF.H=new fbd(_.Kg().substring(0,8))};_.g.zS=function(){var a=this.context.tF.WM(),b=null;a&&(b=hbd(this.context.tF),b={traceId:a,spanRecs:b});a=this.context.tF;a.H=null;a.gY=[];return _.ei(b)};_.g.WM=function(){return _.ei(this.context.tF.WM())};
_.g.getState=function(a){var b=this.context.Ej,c=b.H.bind(b);b={};b.b=this.context.Qc.Gi();b.m_ril=c("jroI5d");b.m_cil=c("T8oKm");b.m_icp=c("aU7Ts");b.m_idl=c("ZA9qG");b.m_il=c("W6J7De");b.m_if=c("DEJoH");b.m_pl=c("zaOY7");b.m_ps=c("mrK8ic");b.m_sls=c("Gv4zef");b.m_cp=c("BNEDtc");b.cs_cs=this.context.xf.dm.Nd();c=this.context.xf.Aw;var d=c.H;d&&(b.cs_sutd=d.O7,b.cs_ss=d.Nd());b.cs_ch=E$c(c).length;b.cs_td=c.DV().length;(c=this.context.O5)&&(b.t_cps=c.Isb().join(","));b.t_id=Ked(this.context);var e=
[];Led(this.context.KQ()).forEach(function(f,h){e.push(h+":"+f.join(";"))});b.t_ct=e.join(",");b.n_a=this.context.Gy?this.context.nk().isConnected():this.context.aI.hB();b.n_o=this.context.Gy?this.context.nk().Ye():this.context.Gj().Ye();b.n_csm=!!this.context.Gy;a&&(b.csw_cc=_.Ra(a.channels),b.csw_ac=a.O,b.csw_mcc=a.H);return _.ei(JSON.stringify(b))};_.g.zpa=function(){this.wc&&(this.wc.dispatchEvent(new Ied),this.wc.mu())};
_.g.El=function(a){var b=this.context.Gy;b&&a!==b.V&&(b.V=a,b.reset(),a?b.state.update(3):_.IYc(b))};
var Oed=function(a,b){this.context=a;this.Mg=b;this.H=_.OUc(_.qM(this.Mg),Med);this.O=_.OUc(_.qM(this.Mg),Ned)};
Oed.prototype.jl=function(a){var b=this,c=this.context.AP.Bh().Bh(),d=(c=c?c.getUser():null)?c.getId():null,e={};a.forEach(function(h){_.SUc(h);var k=h.getId(),l=b.context.Mn();_.mWc(h,3);_.WK(h,5);var p=b1c(h,!0);h.getCapabilities()||_.cM(h,new _.cl);_.L(p,2)&&((p=h.lk())&&p.length?_.B(h,46,p[0]):(_.bM(h,[l]),_.B(h,46,l)),l=h.oq(),_.B(h,12,l),l=new _.Qk,l.Pb(d),_.B(l,6,1),_.zVc(l,!0),_.gWc(h,l),_.fWc(h,[l]),_.wVb(h,1));e[k]=h});a=Object.keys(e);c=this.context.xf;var f=T8c(c.dm,a);_.Na(f,function(h,
k){bN(h.getItem(),e[k],b.H);(b.context.Gj().Ye()||b.context.nk().Ye()||3===eN(h.getItem()))&&bN(h.getItem(),e[k],b.O);_.Wa(e,k)});_.Na(e,function(h){_.fl(h.dk())&&(f[h.getId()]=new PN(h))});Ped(c,Object.values(f))};
var Qed=function(a,b){var c=[];b.forEach(function(d){c.push(d.getItem())});a.jl(c)},Red=function(a){a=a.context.xf;var b=new _.Te;b.El(!0);b=V8c(a.dm,b);for(var c=[],d=[],e=0;e<b.length;e++){var f=b[e].getItem();if(3===eN(f)){var h=new _.LK;_.NK(h,f.getId());_.XK(h);d.push(h)}else h=new _.Vna,_.$M(h,!1),_.B(h,2,!1),_.A(f,81,h),c.push(b[e])}Ped(a,c);a.Ho(d)},Med=[50],Ned=[12,11,10,67,68];
var Sed=function(a){this.context=a;this.H=null;this.V=!1;this.O=new Oed(a,a.Mg)};_.g=Sed.prototype;_.g.MX=function(a){this.H=a;this.V=!1;if(a){if(this.H){a=this.s$a.bind(this);var b=this.r$a.bind(this);this.log("Querying all offline items.");this.H.aV().Mf(a,b);this.V||(this.H.o_((0,_.v)(this.wwb,this)),this.V=!0)}}else Red(this.O)};_.g.s$a=function(a){this.log("Processing all offline item(s): "+a.length);this.O.jl(a);cO(this.context.Ej,"GZTDpc")};_.g.r$a=function(){this.log("Error fetching offline items.")};
_.g.wwb=function(a){this.log("Handling offline change(s): "+a.length);Qed(this.O,a)};_.g.log=function(a){this.context.Tf().info("drive.ds.sync.offline.LocalDataService",a)};
var EO=function(a){_.yi.call(this);this.context=a;this.Ba="drive.ds.sync.BaseItemService";this.Oc=new _.De(this);this.ma=null;this.Ta=this.va=!1;var b=new Sed(a);this.context.ha=b;this.Fa=new Jed(a,this);H1c(this.Fa);(b=_.D(a.Qc,_.ZK,58))&&_.E(b,1,!1);this.Ma(this.Oc);this.O=this.context.Ej;this.W=a.wfa;this.V=new Eed(a,this.W);a=this.context;b=this.V;a.W=b;a.O.resolve(b);this.PRa()};_.O(EO,_.yi);_.g=EO.prototype;_.g.PRa=function(){};
_.g.initialize=function(){var a=this;if(!this.ma){this.ma=_.Xh();var b=this.context.Mk().H(106E3);this.ma.promise.then(function(){b&&b.Tj()},function(){_.mYc(a.context.Mk(),181008852)});var c=_.kM(this.context.Qc)?"(coldstart) ":"";this.context.Tf().info(this.Ba,"Initializing "+c+"with client build: "+this.context.Qc.Gi());this.Oc.listen(this.context,_.wc,this.Ztb);this.Oc.listen(this.context.aI,["ib","jb"],function(d){return void a.dispatchEvent(d)});this.Oc.listen(this.context.nk(),[].concat(_.jd(Object.values(_.tA))),
function(d){return void a.dispatchEvent(d)});this.$a();this.O.start();cO(this.O,"NSockf")}return this.ma.promise};_.g.AWa=function(){this.context.Tf().info(this.Ba,"Ready to process requests.");this.va||(this.va=!0,this.ma.resolve())};_.g.Ztb=function(a){var b=a.error,c=b.Ug;c&&3===c.getType()&&!this.va?(this.va=!0,this.ma.reject(b)):this.dispatchEvent(a)};_.g.uY=function(){throw FO("teamDriveQuery");};_.g.jqa=function(){throw FO("teamDriveFindByIds");};
_.g.kqa=function(){throw FO("teamDriveMovePreflight");};_.g.GFa=function(){throw FO("peoplePredictQuery");};_.g.query=function(a){j9c(this.context.$m,a,H4c(this.context.Mg));this.NE();var b=a.clone();b=this.V.kxa(b);this.Ta||(a=a.te(),a&&121===_.C(a,1)||(this.Ta=!0,this.Oc.listen(b,_.xc,this.xMa)));return b};_.g.xMa=function(a){a=a.currentTarget;if(1===a.Cb()){var b=this.O.H("W6J7De");this.Fa.H=b;this.Oc.Xc(a,_.xc,this.xMa)}};_.g.Ir=function(a){this.NE();h9c(a);return this.V.hxa(a.clone())};
_.g.pva=function(){throw FO("activityQuery");};_.g.ewa=function(){throw FO("backupsQuery");};_.g.nGa=function(){throw FO("refreshBackups");};_.g.bV=function(){throw FO("getAndroidBackupItems");};_.g.f8=function(){throw FO("deleteBackup");};_.g.JFa=function(){throw FO("permissionQuery");};_.g.Y$=function(){throw FO("insertPermission");};_.g.g8=function(){throw FO("deletePermission");};_.g.wd=function(){throw FO("mutate");};_.g.AN=function(){throw FO("mutateWorkspace");};
_.g.Sy=function(){throw FO("bulkMutate");};_.g.gxa=function(){throw FO("createFileUploader");};_.g.dSa=function(a){return new DO(this.context.Cm(),a)};_.g.uq=function(a){if(3===a.getType())return _.fi(this.context.Cm().then(function(b){return b.Ve(a)}).then(null,_.cL));throw FO("getApps with type "+a.getType());};_.g.gr=function(){throw FO("getApp");};_.g.$$=function(){throw FO("installApp");};_.g.e8=function(){throw FO("deleteApp");};_.g.MS=function(){throw FO("updateApp");};
_.g.aN=function(){throw FO("getUserAccount");};_.g.rG=function(){throw FO("getUserPrefs");};_.g.CR=function(){throw FO("mutateUserPref");};_.g.Ot=function(){throw FO("getRevisions");};_.g.KBa=function(){return!1};_.g.El=function(a){this.context.Gy?a?_.JYc(this.context.Gy):this.context.nk().Ye()&&this.context.Gy.QL(!0).then(null,function(){}):this.context.Gj().El(a)};_.g.py=function(){throw FO("setOfflineOptIn");};_.g.MX=function(){throw FO("setLocalItemService");};_.g.NE=function(){};
_.g.ER=function(){this.context.ER();this.context.Mk().O(106006)};_.g.v9=function(){return this.Fa};_.g.JX=function(){};_.g.hB=function(){return this.context.aI.hB()};_.g.PP=function(){return _.E(this.context.Qc.Sf(),52,!1)?_.Rh(C9c(new B9c,0)):this.context.aI.PP()};_.g.isConnected=function(){return 1===this.context.nk().get()};_.g.z7=function(){var a=this.context.Gy;return a?a.QL():_.Rh(_.sYc(0))};_.g.sync=function(){throw FO("sync");};_.g.mu=function(){return this.context.mu()};
_.g.rba=function(){throw FO("offlineDataLoaded");};_.g.Zna=function(a){return this.context.Cm().then(function(b){return b.Ve(a)}).then(function(b){return b})};_.g.Fwa=function(){throw FO("categoryMetadataQuery");};_.g.y7=function(){throw FO("changeCategoryLinks");};_.g.PO=function(){throw FO("updateCategoryMetadata");};_.g.$Fa=function(){throw FO("publishedCategoriesQuery");};_.g.loa=function(){throw FO("publishedCategoryQuery");};_.g.XKa=function(){throw FO("workspaceFindByIdsRequest");};
_.g.gra=function(){throw FO("workspaceQueryRequest");};_.g.oJa=function(){throw FO("suggestedWorkspaceItemQueryRequest");};_.g.aqa=function(){throw FO("suggestedWorkspaceQueryRequest");};_.g.l_=function(){throw FO("addCacheHint");};_.g.T_=function(){throw FO("createUserFeedback");};_.g.Ho=function(){throw FO("handleChanges");};var FO=function(a){return new _.kc(a+" is unsupported",_.aL(3))};
var i2c=function(a){EO.call(this,a);this.Ba="drive.ds.sync.AnonymousItemService";a.ku("")};_.O(i2c,EO);i2c.prototype.$a=function(){bO(this.O,["NSockf"],this.AWa.bind(this))};
var Ted=new Set([1,2,4,5,6]),Ued=function(a,b,c,d,e){this.O=a;this.ka=b;this.ha=c;this.W=d;this.V=e;this.H=null;this.status=3;this.Pe=0};Ued.prototype.Bh=function(){var a=new _.AO;a.Dc(this.status);this.H&&_.Kdd(a,this.H?this.H.clone():null);return a};
var Ved=function(a,b,c,d){d=void 0===d?!1:d;var e=Ted.has(c);if(1===a.status&&!e)return!1;a.Pe=c;var f=a.status;c=!a.H;if(_.HK(a.O)){var h=(h=b&&b.getUser())&&_.xF(h);h=!(!h||!iad(a.ka,h));a.status=h&&e||d?1:6}f=!_.mk(a.H,b)||(_.HK(a.O)?a.status!==f:6===a.status&&e);a.H=b.clone();_.HK(a.O)||(a.status=e||d?1:6);c&&(cO(a.ha,"toquGd"),a.W.info("drive.ds.sync.account.InMemoryAccountCache","Account loaded from "+(e?"server":"cache")));f&&a.V.update(0);return f};Ued.prototype.jf=function(){return this.Pe};
var Wed=function(a){_.yi.call(this);this.ha=a;this.Pe=0};_.O(Wed,_.yi);var Xed=function(a){a=a.clone();var b=function(c){return c.toLowerCase()};v6c(a,_.Id(a,4).map(b));w6c(a,_.Id(a,5).map(b));return a};_.g=Wed.prototype;_.g.uq=function(){};_.g.put=function(){};_.g.remove=function(){};_.g.MP=function(){};_.g.UC=function(){return 0!==this.Pe};_.g.jf=function(){return this.Pe};
var Yed=new Set([1,2,4,5,6]),Zed=function(a,b,c){Wed.call(this,b);this.W=a;this.V=c;this.H={};this.O=[];this.status=6;this.jp=!1};_.O(Zed,Wed);Zed.prototype.uq=function(){var a=new YN;if(!_.Va(this.H)){_.B(a,4,this.O||[]);var b=[];_.Na(this.H,function(c){b.push(c.clone())});_.Cb(a,2,b)}a.Dc(this.status);return a};Zed.prototype.put=function(a){this.H[a.getId()]=Xed(a);this.V.update(1);this.dispatchEvent(new _.oi("Qb",this))};Zed.prototype.remove=function(a){_.Wa(this.H,a)&&this.V.update(1)};
Zed.prototype.MP=function(a,b,c){c=void 0===c?!1:c;var d=!Yed.has(b);1===this.status&&d||(this.Pe=b,$ed(this,a,!d||c),d||this.V.update(1),this.jp||(this.jp=!0,this.W.info("drive.ds.sync.appsettings.InMemoryAppSettingsCache","Apps initialized."),cO(this.ha,"nVUlO")))};
var $ed=function(a,b,c){var d=!1,e=c?1:6;d=e!==a.status;a.status=e;e=_.Id(b,4);if(!d)if(e.length!==a.O.length)d=!0;else{var f=e.concat(a.O);_.Fa(f);d=f.length!==a.O.length}a.O=e;var h=_.Za(a.H);_.kUc(a.H);b=_.ek(b,_.CN,2);d||(d=b.length!==_.Ra(h));b.forEach(function(k){var l=Xed(k);a.H[k.getId()]=l;d||(k=h[k.getId()],d=!k||!_.mk(l,k))});a.W.info("drive.ds.sync.appsettings.InMemoryAppSettingsCache",(c?"Fresh":"Stale")+" apps loaded: "+b.length);d&&a.dispatchEvent(new _.oi("Qb",a))};
var GO=function(a){_.P.call(this);this.context=a;this.Yx=new Set;this.ao=6;this.Pe=0;this.Oc=new _.De(this);this.Ma(this.Oc)};_.O(GO,_.P);_.g=GO.prototype;_.g.Th=function(a){this.dRa(a);this.Yx.add(a);this.resize(!0);this.$N(a)};_.g.dRa=function(){};_.g.Yj=function(a){this.Yx.delete(a);0!=this.Yx.size||this.NYa()?this.resize(!1):this.dispose()};_.g.jf=function(){return this.Pe};_.g.Ti=function(a){this.Pe=a};_.g.vM=function(){return this.ao};_.g.refresh=function(){};_.g.Dk=function(){};
var bfd=function(a,b,c){if(Array.isArray(c))c.forEach(function(f,h,k){k[h]=f.clone()});else{for(var d in c){var e=c[d];c[d]=e?e.clone():null}c=Object.values(c).filter(function(f){return null!=f})}afd(a.context.xf,c,b);d=c.filter(function(f){return!RN(f)});H0c(b,d);c.forEach(function(f){ebd(a.context.BMa,f,b);if(f.Bc()){var h=f.getCapabilities();RN(f)?h&&(_.LVc(h,_.L(h,13)),_.IVc(h,!1),_.PVc(h,!1)):dN(f)?(h&&_.B(h,3,!1),_.B(f,30,!1)):h&&(_.TVc(h,!1),_.UVc(h,!1))}f.getCapabilities()||_.cM(f,new _.cl)})};
GO.prototype.resize=function(){};GO.prototype.yd=function(){};GO.prototype.jl=function(a,b){var c=this,d=!1;a.forEach(function(e){e=aO(e);d=c.uu(e,!0)||d});b||(1!=this.ao&&(d=!0),this.ao=1);d&&this.qX()};var cfd=function(a,b){var c=!1;b.forEach(function(d){c=a.uu(d)||c});c&&a.qX();return c};_.g=GO.prototype;_.g.update=function(a){return cfd(this,[a])};_.g.uu=function(){};_.g.qX=function(){var a=this;this.cRa();this.Yx.forEach(function(b){a.$N(b)})};_.g.cRa=function(){};
_.g.$N=function(a){var b=dfd(this.context).Ika(a);this.ZXa(b)||(b=this.Dk(b),dfd(this.context).$N(a,b))};_.g.pX=function(a){var b=this;this.ao=3;this.Yx.forEach(function(c){dfd(b.context).pX(c,a)})};_.g.Kz=function(){var a=this;this.Yx.forEach(function(b){dfd(a.context).Kz(b)});this.Ti(0==this.jf()?1:6)};_.g.NYa=function(){return!1};_.g.ZXa=function(){return!1};
var efd=function(a){_.oi.call(this,"Db");this.id=a};_.O(efd,_.oi);
var ffd=function(a,b,c,d){d=void 0===d?!1:d;_.yi.call(this);this.request=a;this.context=b;this.PKa=d;this.oe=null;this.items={};this.W=[];this.V=[];this.H=null;this.originalRequest=c||a;this.O=new Set};_.O(ffd,_.yi);
ffd.prototype.Xg=function(){var a=this;if(this.oe)return this.oe.promise;this.oe=_.Xh();this.request.Am().forEach(function(b){var c=_.Az(a.request.clone(),[b]),d;a.PKa&&(d={PKa:!0});a.context.Cm().then(function(e){return e.Ve(c,d)}).then(function(e){return void gfd(a,e)},function(e){e=_.sA(e);5===e.Ug.Ls()||4===e.Ug.mk()?(a.context.Tf().info("drive.ds.sync.query.ViewCacheFindByIdsRunner","Deleting "+b+" due to: "+e.message),a.V.push(b),hfd(a)):a.handleError(e)})});return this.oe.promise};
var gfd=function(a,b){b.ud().Gd().forEach(function(c){_.WK(c,1);a.W.push(c)});hfd(a)},hfd=function(a){a.H||(a.H=_.n.setTimeout(a.ha.bind(a),10))};ffd.prototype.ha=function(){_.n.clearTimeout(this.H);this.H=null;ifd(this);jfd(this);this.O.size===this.request.Am().length?(this.context.xf.jl([],1,this.originalRequest,!1),this.dispatchEvent("Fb"),this.oe.resolve(this.items)):this.dispatchEvent("Cb")};
var ifd=function(a){var b=a.W;a.W=[];b=a.context.xfa.J8(b);if(_.BK(_.CK(a.context.Qc))){var c=a.context.xf.dm;_.Ka(b,function(d){var e=c.H(d.getId());e&&_.bM(d,e.lk())})}b.forEach(function(d){a.O.add(d.getId());a.items[d.getId()]=d});a.context.xf.jl(b,1,a.originalRequest,!0)},jfd=function(a){var b=a.V;a.V=[];b.forEach(function(c){var d=_.XK(_.NK(new _.LK,c));a.context.xf.Ho([d]);a.O.add(c);a.items[c]=null;a.dispatchEvent(new efd(c))})};
ffd.prototype.handleError=function(a){var b=new XN(a.Ug,_.Pj(this.context.Qc.Sf(),1,1));this.context.xf.aB(this.request,b);this.dispatchEvent(b);this.oe.reject(a)};
var kfd=function(a,b,c,d){GO.call(this,a);this.Mg=b;this.request=c;this.Pd={};this.H=_.SK(a.Qc)||new _.ZTc;d&&this.jl(d,!0)};_.O(kfd,GO);
kfd.prototype.refresh=function(){var a=this;this.ao=6;if(_.E(this.request,5,!1))return this.ao=1,_.Rh();var b=!K0c(_.qM(this.Mg),this.request.O()),c=[],d=this.context.Mn();this.request.Am().forEach(function(k){if("root"!==k&&k!==d){var l=a.Pd[k],p=l&&l.getItem();if(l=!l||p&&1!==eN(p)||b)p=p&&p.dk(),l=!(p&&_.L(p,2));l&&c.push(k)}});if(0===c.length)return this.jl([],!1),_.Rh();var e=this.request.clone();_.Az(e,c);var f=new ffd(e,this.context,this.request),h=_.Xh();this.context.Gj().Ye()?(this.Oc.listen(this.context.Gj(),
"Ab",function(k){k.Ye()||(a.Oc.Xc(a.context.Gj(),"Ab"),lfd(a,f,h))}),this.ao=0<Object.values(this.Pd).length?1:2):(this.context.nk().Ye()&&(this.ao=0<Object.values(this.Pd).length?1:2),lfd(this,f,h));return h.promise};var lfd=function(a,b,c){a.Oc.listen(b,"Db",function(d){a.Pd[d.id]=null});a.Kz();b.Xg().then(function(){c.resolve()},c.reject)};_.g=kfd.prototype;
_.g.Oha=function(a){var b=this;return this.context.$m.equals(a,this.request)?_.E(this.H,5,!1)&&_.E(this.H,3,!1)?a.Am().every(function(c){return(c=b.Pd[c])&&_.L(c.getItem(),31)}):K0c(_.qM(this.Mg),a.O()):!1};_.g.Dk=function(a){var b=new _.yM;_.HK(this.context.Qc)?b.Dc(X0c(Object.values(this.Pd))?6:this.ao):b.Dc(this.ao);b.Ti(this.jf());b6c(b,_.Pa(this.Pd,function(c){return c?c.getItem():null}));bfd(this,a.O(),b.map);return b};_.g.resize=function(){};_.g.yd=function(){return this.request};
_.g.uu=function(a){var b=this.Xt(a.O),c=this.Xt(a.H);if(b||c)c?(this.Pd[a.id]=a.H,a.H.count++,b&&a.O.count--):(this.Pd[a.id]=null,a.O.count--);else return!1;return!0};_.g.Xt=function(a){return!!a&&_.ma(this.request.Am(),a.getId())};
var mfd=function(a,b){_.oi.call(this,a);this.changes=b};_.O(mfd,_.oi);
var nfd=function(a){var b=new nad;if(a.Hf()){var c=a.Hf();b.H=!1;b.suggestionSessionId=c}a instanceof _.zM&&_.ek(a,_.Qk,6).length?(a=_.ek(a,_.Qk,6),b.H=!1,b.V=a):a instanceof _.gA&&(a.L5()||a.wsa()||a.tka().length)&&(c=a.L5(),b.H=!1,b.W=c,c=a.wsa()||!1,b.H=!1,b.incompleteSearch=c,a=a.tka(),b.H=!1,b.O=a);return b};
var HO=function(a,b,c,d,e){e=void 0===e?"":e;_.yi.call(this);this.context=a;this.request=b;this.nextPageToken=e;this.W=0;this.va=!1;this.V=[];this.O=!1;this.ka=0;this.Ka=a.Tf();this.Ba=new Set;this.ma=c||!1;this.Ha=d||!1;this.Fa=this.XFa(b);this.ha=new nad};_.O(HO,_.yi);var ofd=function(a){return!a.va||""!==a.nextPageToken},qfd=function(a,b){a.W=b;return a.V.length<a.W&&!a.O&&ofd(a)?pfd(a):_.ei()};HO.prototype.lc=function(){return this.V.length};HO.prototype.H=function(){return this.V.slice()};
var pfd=function(a){var b=a.W-a.V.length+a.ka;a.log("Get more items called with limit of "+b);var c=a.nextPageToken,d=new _.$h;d.addCallback(function(f){return void rfd(a,c,f)});var e=_.FUc(_.GUc(new _.IK,a.Fa),c);b=_.DUc(new _.yTc,b);a.Ha&&_.B(b,10,!0);_.EUc(e,b);a.va=!0;a.O=!0;a.context.Cm().then(function(f){return f.Ve(e)}).then(a.oa.bind(a,d),a.handleError.bind(a,d,b));return d};
HO.prototype.oa=function(a,b){this.O=!1;if(b instanceof _.zM)var c=b;else c=b.ud(),this.nextPageToken=b.Ln()||"";this.ha=nfd(c);this.ha.vc()||this.dispatchEvent("Eb");a.callback(c.Gd())};
HO.prototype.handleError=function(a,b,c){c=_.sA(c);this.O=!1;if(5===c.Ug.Ls())a.callback([]);else{if(10===c.Ug.Ls()&&(_.DUc(b,Math.ceil(_.Pj(b,1,1E3)/2-2E-15)),1<_.Pj(b,1,1E3))){var d=_.EUc(_.FUc(_.GUc(new _.IK,this.Fa),this.nextPageToken),b);this.O=!0;this.context.Cm().then(function(e){return e.Ve(d)}).then(this.oa.bind(this,a),this.handleError.bind(this,a,b));return}b=new XN(c.Ug,_.Pj(this.context.Qc.Sf(),1,1));this.yMa(b);this.dispatchEvent(b);a.Kd(c)}};
var rfd=function(a,b,c){for(var d=new Set,e=_.m(c),f=e.next();!f.done;f=e.next()){f=f.value;if(d.has(f.getId())){f="Encountered duplicate item in server query response. itemId: "+(f.getId()+", query: ")+(_.JXc(a.request)+" paginationToken: ")+b;b=_.kq(_.iq(_.PK(_.OK(new _.jc,2),9),f));a.context.dispatchEvent(new _.lc(new _.kc(f,b)));break}d.add(f.getId())}f=c.filter(function(h){var k=a.Ba.has(h.getId());a.Ba.add(h.getId());return!k});a.ka+=c.length-f.length;c=_.m(f);for(b=c.next();!b.done;b=c.next())_.WK(b.value,
a.ma?2:1);c=[];b=_.m(a.r1a(f));for(f=b.next();!f.done;f=b.next())f=f.value,a.V.push(f.getId()),f=_.NK(new _.LK,f.getId()).setItem(f),c.push(f);c.length&&a.dispatchEvent(new mfd("Cb",c));if(a.V.length<a.W&&a.nextPageToken)return pfd(a);a.dispatchEvent("Fb")};_.g=HO.prototype;_.g.r1a=function(a){return a};_.g.yMa=function(){};_.g.yd=function(){return this.request};_.g.XFa=function(a){a=a.clone();this.ma&&_.B(a,46,!0);return a};_.g.log=function(a){this.Ka.info("drive.ds.sync.query.QueryRunner",a)};
var sfd=function(a,b,c,d){HO.call(this,a,b,void 0,c,d)};_.O(sfd,HO);sfd.prototype.r1a=function(a){a=this.context.xfa.J8(a);this.context.xf.jl(a,1,this.request,ofd(this));return a};sfd.prototype.yMa=function(a){this.context.xf.aB(this.request,a)};sfd.prototype.XFa=function(a){var b=a=HO.prototype.XFa.call(this,a),c=_.gM(b);0===_.Id(b,33).length&&1===c.length&&(c=this.context.xf.dm.H(c[0].Za()))&&(c=c.Bc())&&(_.WM(b,[c]),_.XM(b,2));tfd(this,a);return a};
var tfd=function(a,b){if(_.gM(b).some(function(d){return(d=a.context.xf.dm.H(d.Za()))&&_.L(d,108)})){var c=b.te();c||(c=new _.ef,_.zl(b,c));_.ff(c,937)}};
var ufd=function(a,b,c,d){this.context=a;this.Mg=b;this.W=d;this.aoa=0;this.H=c},yfd=function(a,b){if(b){a.log("Processing potential rejoin for TD: "+b);var c=_.XM(_.yl(_.WM(new _.Te,[b]),_.qM(a.Mg)),1),d=_.ff(new _.ef,306);_.zl(c,d);vfd(a);c=new sfd(a.context,c);qfd(c,5E3).addCallback(a.V.bind(a,c));wfd(a);xfd(a,b)}},wfd=function(a){var b=_.Sa(a.H);b=b.filter(function(d){return d instanceof kfd});var c=new Set;b.forEach(function(d){d.yd().Am().forEach(function(e){a.W.get(e)||c.add(e)})});b=_.ff(new _.ef,
310);a.log("Re-querying missing find-by-ids :"+c.size);a.SR([].concat(_.jd(c)),b)},xfd=function(a,b){var c=[];(a.context.xf.eGa.VP[b||"subscribed"]||[]).forEach(function(d){_.Na(a.H,function(e){_.mk(e.yd(),d)&&c.push(e)})});_.Fa(c);0<c.length&&(vfd(a),c.forEach(function(d){d=TN(a.context.$m,d.yd(),3);a.log("Refreshing "+b+" cache: "+d)}),_.Yh(_.Vh(c.map(function(d){return d.refresh().Ag(_.Bf)})),a.O.bind(a)))};
ufd.prototype.SR=function(a,b,c,d,e){c=void 0===c?!1:c;a=a.filter(function(f){return!_.Xd(f)});if(0===a.length)return _.Rh({});a=_.B(_.zz(_.Az(new _.yz,a),d||_.qM(this.Mg)),7,!0);_.Bz(a,b);e&&e.length&&_.Cb(a,11,e);vfd(this);b=new ffd(a,this.context,void 0,c);return _.Yh(b.Xg(),this.V.bind(this,b))};ufd.prototype.V=function(a){a.dispose();this.O()};var vfd=function(a){a.aoa++;a.context.zs.setActive(!1)};ufd.prototype.O=function(){this.aoa--;0===this.aoa&&this.context.zs.setActive(!0)};
ufd.prototype.log=function(a){this.context.Tf().info("drive.ds.sync.cache.CacheRefresher",a)};
var zfd=function(a,b,c){_.P.call(this);this.context=a;this.H=b;this.request=c;this.O=this.oe=null;a=new _.ef;_.hf(a,!1);_.ff(a,305);_.zl(this.request,a);this.Oc=new _.De(this);this.Ma(this.Oc)};_.O(zfd,_.P);
zfd.prototype.Xg=function(){if(!this.oe){this.oe=_.Xh();if(_.E(this.request,48,!1))return this.H.Ti(9),this.oe.resolve(this.H),this.oe.promise;this.O=new HO(this.context,this.request,!0);this.Oc.listen(this.O,"Cb",this.W);this.Oc.listen(this.O,"Fb",this.V.bind(this));this.Oc.listen(this.O,"Gb",this.oe.reject.bind(this.oe));qfd(this.O,this.request.Ii())}return this.oe.promise};zfd.prototype.W=function(a){var b=this;_.Ka(a.changes,function(c){c=c.getItem();b.H.update(aO(new PN(c)))})};
zfd.prototype.V=function(){this.H instanceof dO?this.H.H=!ofd(this.O):ofd(this.O)&&q$c(this.H);this.H.Ti(5);this.oe.resolve(this.H)};
var Bfd=function(a,b){_.oi.call(this,Afd);this.cache=a;this.changes=b};_.O(Bfd,_.oi);var Afd="Rb";
var Cfd=function(a,b){return new _.Qh(function(c,d){b.then(function(e){var f={};a.dz().forEach(function(h){var k=h.getId();c1c(h.getItem());f[k]=new PN(h.getItem())});e.items.forEach(function(h){var k=h.Kc();k=f[k];h.qk()?k&&a.update(new l$c(k.getId(),k,null)):(h=h.getItem(),c1c(h),a.update(m$c(k,new PN(h))))});a.g3();c(e.MJb)},d)})};
var Dfd=function(a,b){_.P.call(this);this.context=a;this.Mg=b};_.O(Dfd,_.P);
Dfd.prototype.Xg=function(a){this.log("Running initial view populator (IVDP).");try{var b=new ON(JSON.parse(a))}catch(q){this.handleError("Error parsing initial view dump.",q);return}a=_.CK(this.context.Qc);if(!_.BK(a)){var c=b.Bh();if(c){var d=c.getUser();d&&d.getId()===_.H(a,6,"")&&Ved(this.context.AP,c,4)}(a=b.Mn())&&this.context.ku(a,6)}var e=_.C(b,3)||void 0;e&&Efd(this.context,e,!0);if((a=_.ek(b,_.Ip,9))&&a.length){c=(c=this.context.Qc.Sf())&&_.Id(c,30)||[];var f=new Set(c);a.forEach(function(q){(q=
(q=q.getKey())&&_.Jp(q))&&f.add(q)});this.context.ND.MP(a,4,[].concat(_.jd(f.values())))}a=b.Gd();a.forEach(function(q){_.SUc(q);_.WK(q,6)});if(c=_.ek(b,NN,5)[0])if(b=this.context.$m,R0c(_.qM(this.Mg),c.getQuery().O(),_.jM(this.context.Qc)))if((d=c.getQuery().Ac())&&4===d.getType()&&!_.nRc())this.handleError("Invalid initial view data, natural sort unsupported");else{if(0<a.length){d=SN(b,c.getQuery());var h=_.C(c,2)||void 0;d.di(h);h=a.map(function(q){return new PN(q,void 0,1,e)});var k=_.D(c,_.hl,
3);if(k&&_.C(c,2)){var l=h[h.length-1];_.WK(k,6);if(!_.mk(k,l.getItem())){this.handleError("Invalid last item in initial view data.");return}}c=(k=_.SK(this.context.Qc))&&_.E(k,2,!1)&&c.Ln()||"";var p=new dO(this.context.aw,this.context.Xx,this.context.$m,d,l,c);p.Ti(4);h.forEach(function(q){p.update(aO(q))});Ffd(this.context.xf,p);l=p.yd();this.log("Imported "+a.length+" initial view items (IVDP) into a cache\n                hint corpus cache. Query: "+TN(b,l));b=new _.IK;_.GUc(b,l);l=_.SYc(this.context.oA,
b,"IVDP");_.TYc(l,a);cO(this.context.Ej,"W6J7De")}}else this.handleError("Invalid initial view data, fields: "+g9c(b,c.getQuery().O()));else this.handleError("No initial query found")};Dfd.prototype.handleError=function(a,b){var c=b?void 0:_.kq(_.PK(_.OK(new _.jc,2),6));b=new _.kc(a,c,b);this.context.RI(b.Ug);this.log("Initial view dump population failed. Message: "+a);cO(this.context.Ej,"DEJoH")};Dfd.prototype.log=function(a){this.context.Tf().info("drive.ds.sync.cache.InitialViewPopulator",a)};
var Gfd=function(a){_.yi.call(this);this.context=a;this.W="drive.ds.sync.cache.CorpusCachePopulator";this.V=0;this.O=new fO(a.aw,a.Xx,a.Ej,function(){return a.Mn()})};_.O(Gfd,_.yi);var Hfd=function(a,b){var c=_.Pj(a.context.Qc,31,2E4);("number"===typeof _.C(b,3)?_.C(b,3):c+1)>c?(q$c(a.O),b="partialCorpus",a.log("Too many subscribed items; skipping cache.")):(b="fullCorpus",a.log("Caching all subscribed items."));a.context.oA.Jb("CachedCorpusType",b)};
Gfd.prototype.log=function(a,b){this.context.Tf().log(this.W,a,b||"info")};var Ifd=function(a,b){0===a.V&&(a.V=b)};
var Jfd=function(a,b){var c;if(c=!!b&&!!b.xh())a=a.zm(),c=null==a||!!b.xh().zm()==a;return c};
var Kfd=function(a,b){_.yi.call(this);this.context=a;this.request=b;this.V=[];this.nextPageToken="";this.H=this.O=!1};_.O(Kfd,_.yi);Kfd.prototype.Xg=function(){return this.H||this.O&&""===this.nextPageToken?_.ei():Lfd(this)};Kfd.prototype.lc=function(){return this.V.length};
var Lfd=function(a){a.O=!0;a.H=!0;var b=j4c(k4c(new _.RL,a.request),a.nextPageToken),c=_.SYc(a.context.oA,b);return _.fi(a.context.Cm().then(function(d){return d.Ve(b)}).then(function(d){var e=d.ud().Gd();a.nextPageToken=d.Ln()||"";Mfd(a,c,e)},function(d){return void a.handleError(d)}))},Mfd=function(a,b,c){_.TYc(b,c);for(b=0;b<c.length;b++)_.WK(c[b],1);a.context.xf.jl(c,1,a.request,!a.O||""!==a.nextPageToken);var d=[];_.Ka(c,function(e){this.V.push(e.getId());e=_.NK(new _.LK,e.getId()).setItem(e);
d.push(e)},a);d.length&&a.dispatchEvent(new mfd("Cb",d));a.nextPageToken?Lfd(a):(a.H=!1,a.dispatchEvent("Fb"))};Kfd.prototype.handleError=function(a){this.H=!1;a=new XN(_.QK(a),_.Pj(this.context.Qc.Sf(),1,1));this.dispatchEvent(a)};Kfd.prototype.yd=function(){return this.request};
var Nfd=function(a){this.H=_.oRc(a,{numeric:!0})};Nfd.prototype.sort=function(a){_.Ia(a,this.compare.bind(this))};Nfd.prototype.compare=function(a,b){a=a.getItem();b=b.getItem();var c=this.H(a.getTitle(),b.getTitle());return 0===c?_.Ga(a.getId(),b.getId()):c};
var Ofd=function(a,b,c,d){d=void 0===d?!1:d;GO.call(this,a);this.Mg=b;this.Pd=[];this.oe=null;this.request=c.clone();this.av=new Kfd(a,this.request);this.uOb=new Nfd(pN(_.CK(a.Qc)));this.iW=null!=_.L(this.request,6);_.te(this,this.fmb,this);d&&(this.oe=_.Xh(),this.oe.resolve())};_.O(Ofd,GO);_.g=Ofd.prototype;_.g.refresh=function(){3===this.ao&&(this.ao=6,this.oe=null);return this.rca()};_.g.isInitialized=function(){return!!this.oe};
_.g.rca=function(){var a=this;if(this.isInitialized())return this.oe.promise;this.oe=_.Xh();this.context.Gj().Ye()?this.Oc.listen(this.context.Gj(),"Ab",function(b){b.Ye()||(a.Oc.Xc(a.context.Gj(),"Ab"),a.Kz(),a.av.Xg().Mf(a.oe.resolve,a.oe.reject,a.oe))}):this.context.nk().Ye()?this.Oc.od(this.context.nk(),[_.tA.XK,_.tA.XT],function(){a.Kz();a.av.Xg().Mf(a.oe.resolve,a.oe.reject,a.oe)}):(this.Kz(),this.av.Xg().Mf(this.oe.resolve,this.oe.reject,this.oe));return this.oe.promise};_.g.resize=function(){};
_.g.yd=function(){return this.request};_.g.dz=function(){return this.Pd};_.g.Oha=function(a){return this.context.$m.equals(a,this.request)};_.g.Dk=function(a){a=a.Ii();this.uOb.sort(this.Pd);var b=E1c(_.xa(this.Pd,0,Math.min(a,this.Pd.length)));bfd(this,I4c(this.Mg),b);var c=new _.gA;c.tw(b);c.Dc(this.Twa(a));c.Ti(this.jf());L3c(c,a<this.Pd.length||!(this.context.Gj().Ye()||this.context.nk().Ye())&&1!==this.ao);return c};
_.g.Twa=function(a){return 1===this.ao||a<=this.Pd.length?1:this.context.Gj().Ye()||this.context.nk().Ye()?0<this.Pd.length?1:2:6};_.g.jl=function(a,b){this.isInitialized()&&GO.prototype.jl.call(this,a,b)};_.g.uu=function(a,b){b=void 0===b?!1:b;if(!this.isInitialized())return!1;var c=a.id,d=_.ka(this.Pd,function(h){return h.getId()===c}),e=!!d;b=this.Xt(a.H,b);var f=a.O;d&&(f=d,e=!0);if(e||b)e?b?this.yKa(f,a.H):this.NI(f):this.bR(a.H);else return!1;return!0};_.g.bR=function(a){this.Pd.push(a);a.count++};
_.g.NI=function(a){_.sa(this.Pd,a);a.count--};_.g.Sya=function(a){return _.la(this.Pd,a)};_.g.yKa=function(a,b){this.Pd[this.Sya(a)]=b;b.count++;a.count--};_.g.Xt=function(a,b){b=void 0===b?!1:b;if(!a)return!1;if(this.iW&&null!=_.L(this.request,6)){if(b)return!0;var c=a.getId();b=!!this.Pd.find(function(d){return c===d.getId()},this);a=RN(a.getItem())&&Jfd(this.request,a.getItem());return b&&a}return RN(a.getItem())&&Jfd(this.request,a.getItem())};_.g.fmb=function(){this.Pd.forEach(function(a){a.count--})};
_.g.NYa=function(){return!0};_.g.getType=function(){return"TeamDriveViewCache"};_.g.Nd=function(){return this.Pd.length};_.g.g3=function(){this.ao=1};
var Pfd=function(a){this.H=a},Qfd=function(a,b,c,d,e){if(0===e||null===b){var f=new qdd;_.B(f,2,b);_.B(f,1,d);return _.Rh(f)}var h=A9c();_.B(h,2,b);c&&_.B(h,3,c);return a.H.then(function(k){return k.Ve(h)}).then(function(k){var l,p=null!==(l=k.Lx())&&void 0!==l?l:null;k=d+_.C(k,1);return Qfd(a,p,c,k,e-1)})};
var Rfd=function(a,b){Gfd.call(this,a);this.Mg=b;this.ha=void 0;this.ka=null;this.ma=!1;this.jD=void 0;this.W="drive.ds.sync.cache.LocalDumpPopulator";this.H=a.Qc};_.O(Rfd,Gfd);Rfd.prototype.handleError=function(){this.log("Local dump population failed.");cO(this.context.Ej,"mrK8ic")};
Rfd.prototype.Xg=function(){var a=this;if(this.ka)return this.ka;if(this.context.fQ){var b=new _.$h;this.ka=b;this.initialize().then(function(){var c=_.ek(_.qN(a.H),oN,11);c=c[0]&&c[0].getKey()||"";return Sfd(a,a.context.fQ,c,4)}).Ag(function(c){if(_.E(a.H,8,!0))return Tfd(a);throw c;}).then(function(){_.HK(a.H)||a.context.xf.Sq.H.clear();cO(a.context.Ej,"zaOY7");b.callback()},function(c){Ifd(a,8);a.handleError();b.Kd(c)});return b}this.handleError();return _.gi(Error("Zf"))};
Rfd.prototype.initialize=function(){var a=this;return this.context.fQ.initialize().then(function(){if(!_.kM(a.H)){var b=_.Pj(_.qN(a.H),7,432E6);b&&(a.ha=Date.now()-b);return new _.Qh(function(c,d){zcd(a.context.dD).then(function(e){e?c():d(Error("$f"))})})}})};
var Sfd=function(a,b,c,d){var e=a.ha;Ufd(a,b,c,e);Vfd(a,b,c,e);Wfd(a,b,c,e);return Xfd(a,b,c,e).then(function(){return Promise.all([Yfd(a,b,c,d,e),Zfd(a,b,c,d,e),$fd(a,b,c,d,e),agd(a,b,c,d,e)])})},Ufd=function(a,b,c,d){var e=function(){return a.log("Failed to load account from storage.")};oO(b,c,0,void 0,d,a.jD).then(function(f){f[0]?Ved(a.context.AP,f[0],a.jf(),_.kM(a.H)):e()},function(){return e()})},Vfd=function(a,b,c,d){var e=function(){return a.log("Failed to load apps from storage.")};oO(b,
c,1,void 0,d,a.jD).then(function(f){f[0]?a.context.xZ.MP(f[0],a.jf(),_.kM(a.H)):e()},function(){return e()})},Wfd=function(a,b,c,d){var e=function(){return a.log("Failed to load user prefs from storage.")};oO(b,c,5,void 0,d,a.jD).then(function(f){if(f[0]){f=f[0];var h=_.ek(f,_.Ip,1);h.length&&a.context.ND.MP(h,a.jf(),_.Id(f,2),_.kM(a.H))}else e()},function(){return e()})},Yfd=function(a,b,c,d,e){var f=new _.po;oO(b,c,3,1,e,a.jD).then(function(h){return bgd(a,h[0])}).then(function(h){if(h){b!==a.context.fQ||
R0c(_.Id(h,12),_.qM(a.Mg),_.jM(a.H))||(a.log("Disabling dump updater due to inconsistent fields.","warning"),a.context.zs.NR());var k=_.C(h,3);if(!k||0>k)throw Error("cg");a.context.ku(h.Mn(),d);k=_.C(h,3);"number"===typeof k&&Efd(a.context,Number(k));_.kM(a.H)&&(a.log("Coldstart: Firing INITIAL_CHANGES_PROCESSED."),a.context.NDa());a.jl(h,d);f.resolve()}else f.reject("Failed to load cache hints from storage.")},f.reject,f);return f.promise},Zfd=function(a,b,c,d,e){var f=new _.po;oO(b,c,3,2,e,a.jD).then(function(h){h[0]?
(a.jl(h[0],d),f.resolve()):f.reject(Error("ag"))},f.reject,f);return f.promise},$fd=function(a,b,c,d,e){var f=new _.po;oO(b,c,3,4,e,a.jD).then(function(h){h.forEach(function(k){a.jl(k,d)});f.resolve()},f.reject,f);return f.promise},agd=function(a,b,c,d,e){var f=new _.po;oO(b,c,3,3,e,a.jD).then(function(h){h.length?h.forEach(function(k){a.jl(k,d)}):cO(a.context.Ej,"rVezo");f.resolve()},f.reject,f);return f.promise},Xfd=function(a,b,c,d){var e=new _.po;oO(b,c,6,void 0,d,a.jD).then(function(f){f=_.m(f);
for(var h=f.next();!h.done;h=f.next())h=h.value,_.ek(h,ZN,1).length&&(a.log("Importing "+_.ek(h,ZN,1).length+" people into the PeopleCache."),h=_.ek(h,ZN,1),P$c(a.context.xf.Sq.H,h,2));e.resolve()},e.reject,e);return e.promise},bgd=function(a,b){var c=_.C(b,3);if(c&&!_.kM(a.H)){var d=new Pfd(a.context.Cm()),e=_.Pj(_.qN(a.context.Qc),13,5);return Qfd(d,c,null,0,e).then(function(f){return _.S(f,2)?(a.log("Encrypted dump too stale."),a.context.Mk().O(106007),Ifd(a,9),null):b},function(){return b})}return _.Rh(b)},
Tfd=function(a){var b=pO(a.context.eL.xi()),c=_.ek(_.qN(a.H),oN,11).filter(function(d){return d.Vr()});return rcd(_.iM(_.CK(a.H)),_.jM(a.H),_.Pj(_.qN(a.H),10,0)||0,_.qM(a.Mg),a.ha||0,c.map(function(d){return _.C(d,1)}),b).then(function(d){if(d){var e=c.find(function(k){return d.V===_.C(k,1)}),f=new qO(_.Rh(d),a.context.Tf(),null,!0),h=new qbd(f,a.H,function(k){a.context.RI(k)});h.initialize();a.ma=!0;return Sfd(a,h,e?e.getKey():null,8).then(function(){return f.getMetadata([wcd])}).then(function(k){if(k[0])return k=
k[0].Za(),a.context.dD.set(wcd,k)}).then(function(){f.close()})}return _.Sh(Error("bg"))})},fgd=function(a,b,c){switch(b.Nu()){case 1:return cgd(a,b,c);case 2:b=_.D(b,Q1c,11);if(!b)throw Error("dg");Hfd(a,b);a.O.jN?(a.O.Ti(a.jf()),a=[{cache:a.O,changes:mO(a.context.Ty,null)}]):a=[];return a;case 3:return dgd(a,b);case 4:return egd(a,b);default:return null}},cgd=function(a,b,c){var d=[];_.ek(b,NN,5).forEach(function(e){var f=void 0,h=_.D(e,_.hl,3);h&&(_.SUc(h),_.L(a.H,67)&&F0c(h,U0c),_.WK(h,c),f=new PN(h));
var k=e.getQuery();if(!_.E(k,48,!1)||_.ek(a.H,_.Te,44).some(function(l){if(!_.E(l,48,!1))return!1;l=SN(a.context.$m,l,!0);return _.mk(l,k)}))e=new dO(a.context.aw,a.context.Xx,a.context.$m,k,f),e.Ti(a.jf()),d.push({cache:e,changes:mO(a.context.Ty,null)})});return d},egd=function(a,b){return _.ek(b,NN,5).map(function(c){c=new Ofd(a.context,a.Mg,_.D(c,_.vK,5),!0);c.Ti(a.jf());return{cache:c,changes:mO(a.context.Ty,null)}})},dgd=function(a,b){var c=_.Id(_.ek(b,NN,5)[0].getQuery(),33)[0],d=_.C(b,3)||
void 0;b=mO(a.context.Ty,c);IO(a.context).addCallback(function(f){f.zva(c,d)});var e=new gO(a.context.aw,a.context.Xx,c);e.Ti(a.jf());return[{cache:e,changes:b}]};
Rfd.prototype.jl=function(a,b){var c=this,d=fgd(this,a,b);d&&0!==d.length?(a.Gd().forEach(function(e){_.SUc(e);_.L(c.H,67)&&F0c(e,U0c);_.WK(e,b);if(!_.HK(c.H)&&!c.context.xf.Sq.H.vc()){var f=c.context.xf.Sq;fad(f,iO(f,[e]))}e=new PN(e);for(f=0;f<d.length;f++)d[f].cache.update(aO(e))}),d.forEach(function(e){var f=e.cache;c.dispatchEvent(new Bfd(f,e.changes));c.log("Imported "+f.Nd()+" items into the "+f.getType());var h=null;f instanceof gO&&(h=f.Bc());c.context.W$.promise.then(function(){Nad(c.context.Ty,
h)})}),1===a.Nu()&&cO(this.context.Ej,"ZA9qG")):this.log("Ignoring corpus cache for "+a.Nu()+".")};Rfd.prototype.jf=function(){return this.ma?7:3};
var ggd=function(a){_.P.call(this);this.context=a};_.O(ggd,_.P);ggd.prototype.Xg=function(a){try{hgd(this,new jdd(JSON.parse(a)))}catch(b){this.handleError("Error parsing prefetched request.",b)}};
var hgd=function(a,b){a.log("Running prefetched request populator for "+b.getKey()+".");switch(b.getKey()){case 1:case 3:igd(a,b);break;case 4:jgd(a,b);break;case 6:kgd(a,b);break;case 2:lgd(a,b);break;case 7:mgd(a,b);break;case 5:_.ek(_.D(b,ldd,7),jdd,1).forEach(function(c){hgd(a,c)});break;default:a.handleError("Unsupported prefetched request.")}},igd=function(a,b){var c=_.D(b,_.Te,2);b=JSON.parse(_.C(b,3)||"{}");var d=new _.IK;_.GUc(d,c);b=a.context.KQ().Psa.iE(d,{headers:{},text:"",json:b}).ud();
ngd(a,c,b)},kgd=function(a,b){ngd(a,_.D(b,_.Te,2),_.D(b,_.gA,9))},ngd=function(a,b,c){for(var d=c.Gd(),e=_.m(d),f=e.next();!f.done;f=e.next())_.WK(f.value,7);c=nfd(c);a=a.context.xf;b=SN(a.context.$m,b);e=JO(a,b);a.log("Initializing cache with "+d.length+" items for key '"+e+"'");f=a.H[e];f||(f=new KO(a.context,b),f.Ti(2),a.H[e]=f);c.vc()||f.Osa(c);a.jl(d,1,b)},lgd=function(a,b){b=_.D(b,_.Ky,5);var c=a.context.Qc.Sf();c=c&&_.Id(c,30)||[];var d=new Set(c);_.ek(b,_.Ip,3).forEach(function(e){(e=(e=e.getKey())&&
_.Jp(e))&&d.add(e)});a.context.ND.MP(_.ek(b,_.Ip,3),2,[].concat(_.jd(d.values())))},jgd=function(a,b){a.context.yfa.b2(_.D(b,$N,8).Fk(),_.D(b,_.gz,6),2,!1)},mgd=function(a,b){var c=_.D(b,_.kF,10);b=JSON.parse(_.C(b,3)||"{}");b=a.context.KQ().Psa.iE(c,{headers:{},text:"",json:b});Fed(a.context).b2([b],c,2,!1)};ggd.prototype.handleError=function(a,b){var c=b?void 0:_.kq(_.PK(_.OK(new _.jc,2),6));this.context.dispatchEvent(new _.lc(new _.kc(a,c,b)));this.log("Prefetched request population failed.")};
ggd.prototype.log=function(a){this.context.Tf().info("drive.ds.sync.cache.PrefetchedRequestPopulator",a)};
var LO=function(a){Gfd.call(this,a);this.H=[];this.ha=[];this.W="drive.ds.sync.cache.SdkCachePopulator";this.ma=Math.ceil(1.1*_.Pj(a.Qc,31,2E4))};_.O(LO,Gfd);LO.prototype.Xg=function(){if(!_.E(this.context.Qc,45,!1))return Ifd(this,5),this.handleError(),_.gi(Error("eg"));this.log("Drive SDK cache population initiated.");return this.context.gVa().addCallback(this.va,this).addCallback(this.oa,this).wg(this.handleError,this)};
LO.prototype.va=function(){var a=this;cO(this.context.Ej,"L6uQWd");IO(this.context).addCallback(function(b){b.Vda()});if(_.E(this.context.Qc,46,!1))return P1c(this.context.Cm(),this.context.Tf()).addCallback(function(b){if(!b)throw Ifd(a,4),Error("fg");Hfd(a,b)});this.log("Subscribed corpus cache population disabled.");q$c(this.O);return _.ei()};
LO.prototype.oa=function(){var a=this;this.context.NDa();var b=new _.$h;if(this.O.jN){this.log("Starting subscribed corpus cache population.");var c=this.O.yd();c.di(this.ma);this.O.Ti(5);ogd(this,this.O,c)}c=_.ek(this.context.Qc,_.Te,44);_.Ka(c,function(d){d=new dO(a.context.aw,a.context.Xx,a.context.$m,d);d.Ti(5);ogd(a,d,d.yd());d=TN(a.context.$m,d.yd());a.log("Starting "+d+" cache hint corpus cache population.")});_.Vh(this.ha).then(b.callback,this.ka.bind(this,b),b);return b};
var ogd=function(a,b,c){var d=mO(a.context.Ty,null);b=new zfd(a.context,b,c);a.H.push(b);b=_.Yh(b.Xg().then(function(e){!e.jN&&e instanceof fO&&(a.log("Subscribed corpus cache disabled, too many backfill items."),a.context.oA.Jb("CachedCorpusType","errorUncachedCorpus"));a.dispatchEvent(new Bfd(e,d))}),function(){a.context.W$.promise.then(function(){Nad(a.context.Ty,null)})});a.ha.push(b)};
LO.prototype.ka=function(a,b){_.Ka(this.H,function(d){d.dispose()});Ifd(this,7);var c=b;b instanceof XN?c=_.bL(b.error):_.GK(b)||(c=Error("gg`"+b));a.Kd(c)};LO.prototype.handleError=function(){this.log("Drive SDK cache population failed.");cO(this.context.Ej,"Gv4zef")};LO.prototype.jf=function(){return 5};
var pgd=function(a,b){_.P.call(this);this.context=a;this.V=b;this.Oc=new _.De(this);this.impression=null;this.W=[];this.Ma(this.Oc);this.H=new Rfd(this.context,this.context.Mg);this.Ma(this.H);this.O=new LO(this.context);this.Ma(this.O)};_.O(pgd,_.P);
pgd.prototype.Xg=function(){var a=this;this.log("Corpus cache population initiated.");this.impression=this.context.Mk().H(106002);_.n._DRIVE_dsp&&qgd(this);_.n._DRIVE_dspc=function(c){qgd(a,c)};mO(this.context.Ty,null);_.E(this.context.Qc,24,!1)&&!_.kM(this.context.Qc)&&(_.n._DRIVE_ivd||null===_.n._DRIVE_ivd?rgd(this):_.n._DRIVE_ivdc=function(){rgd(a)});var b=this.context.fQ;if(b)return this.Oc.listen(this.H,Afd,this.ha),this.Oc.listen(this.O,Afd,this.ha),(!_.E(this.context.Qc,10,!1)&&_.L(this.context.Qc,
69)?this.context.eX.promise:Promise.resolve()).then(function(){return b.initialize().then(function(){a.log("Dump storage initialized.");a.impression&&(a.H.jD=a.impression);return a.H.Xg().Mf(function(){return sgd(a,a.H.jf())},function(){tgd(a,a.H.jf(),a.H.V);return _.kM(a.context.Qc)?a.handleError(Error("hg")):a.O.Xg().then(function(){return sgd(a,a.O.jf())},function(c){tgd(a,a.O.jf(),a.O.V);return a.handleError(c)})})},function(c){a.handleError(_.GK(c)?c:void 0,!0)})});this.handleError(void 0,!0)};
var qgd=function(a,b){var c=new ggd(a.context);(_.n._DRIVE_dsp||[]).filter(function(d,e){return d&&[,!0,!0,!0,!0,,!0,!0][e]&&(!b||e===b)}).forEach(function(d){c.Xg(d)});c.dispose()};pgd.prototype.ha=function(a){var b=a.cache;this.log("Cache populated: "+b.getType());this.W.push(ugd(this,b,a.changes))};
var sgd=function(a,b){Nad(a.context.Ty,null);cO(a.context.Ej,"L6uQWd");IO(a.context).addCallback(function(c){c.Vda()});return Promise.all(a.W).then(function(){vgd(a,b)})},vgd=function(a,b){if(!a.isDisposed()){_.kM(a.context.Qc)||wgd(a.V,_.ek(a.context.Qc,_.Te,44));a.log("Corpus cache population complete.");var c=a.context.Ej;c.H("mrK8ic")?c.H("Gv4zef")||a.context.zs.ODa():zcd(a.context.dD).then(function(d){d&&a.context.zs.ODa()},function(){});cO(c,"rVezo");cO(c,"BNEDtc");a.impression&&(b=_.xM(_.NTc,
b),B4c(K4c(a.impression),b),A4c(K4c(a.impression),!0),C4c(K4c(a.impression),W8c(a.V.dm)),D4c(K4c(a.impression),a.context.xf.Nu()),a.impression.Tj());a.dispose()}},tgd=function(a,b,c){a.impression&&(b=_.xM(_.NTc,b),B4c(K4c(a.impression),b),a=K4c(a.impression),_.ck(a,3,c,void 0))};
pgd.prototype.handleError=function(a,b){b=void 0===b?!1:b;Nad(this.context.Ty,null);var c=this.context.Ej;cO(c,"L6uQWd");IO(this.context).addCallback(function(d){d.Vda()});cO(c,"mrK8ic");cO(c,"Gv4zef");cO(c,"rVezo");cO(c,"BNEDtc");this.context.oA.Jb("CachedCorpusType","partialCorpus");c=!!this.H.context.fQ||_.E(this.O.context.Qc,45,!1);a&&!b&&c?(c=void 0,b="Corpus population failed: ",_.GK(a)?(c=a,b+=c.message):b+=String(a),this.log(b),a=new _.kc(b,void 0,c),c=a.Ug,_.OK(c,_.kM(this.context.Qc)?3:
1),_.PK(c,6),_.iq(c,b),_.kq(c),this.context.dispatchEvent(new _.lc(a))):this.log("Corpus population skipped");this.impression&&(A4c(K4c(this.impression),!1),this.impression.Tj());this.dispose()};
var ugd=function(a,b,c){return Cfd(b,c).then(function(d){d.some(function(e){return b instanceof gO&&e.qk()&&e.Kc()===b.Bc()})||Ffd(a.V,b,d)},function(){return a.handleError(Error("ig"))})},rgd=function(a){if(_.n._DRIVE_ivd){var b=new Dfd(a.context,a.context.Mg);a.Ma(b);b.Xg(_.n._DRIVE_ivd)}else cO(a.context.Ej,"DEJoH")};pgd.prototype.log=function(a){this.context.Tf().info("drive.ds.sync.cache.CorpusCachePopulatorManager",a)};
var xgd=function(){eO.apply(this,arguments)};_.O(xgd,eO);xgd.prototype.Xt=function(a){var b;if(b=eO.prototype.Xt.call(this,a))a=a&&a.getItem()&&a.getItem().dk(),b=!(!a||!_.L(a,3));return b};xgd.prototype.yd=function(){};xgd.prototype.getType=function(){};xgd.prototype.fR=function(){};
var ygd=function(a,b){this.context=a;this.H=b;this.VP={}},Agd=function(a,b){if(!_.yL(b)){var c=_.Id(b,33);if(1===c.length)zgd(a,c[0],b);else{c=_.gM(b);if(1===c.length&&!_.E(c[0],2,!1)){var d=c[0].Za();c=a.H.get(d);if(!c){c=a.context.xf.dL;var e=_.ff(new _.ef,310);c.SR([d],e).then(function(f){if((f=f[d])&&f.Bc()){var h=f.getCapabilities();h&&_.ee(h)&&(f=f.Bc(),zgd(a,f,b))}else zgd(a,null,b)});return}if(c.getItem().Bc()&&_.ee(c.getItem().getCapabilities())){c=c.getItem().Bc();zgd(a,c,b);return}}zgd(a,
null,b)}}},zgd=function(a,b,c){if(b){var d=a.H.get(b);if(d&&!RN(d.getItem()))return}d=b||"subscribed";a.VP[d]||(a.VP[d]=[]);a.VP[d].push(c);b&&(IO(a.context).addCallback(function(e){e.zva(b)}),Bgd(a.context.AJa,b))},Cgd=function(a,b){if(!_.yL(b)){var c={},d;for(d in a.VP){c.hT=d;for(var e=0;e<a.VP[c.hT].length;e++)if(_.mk(b,a.VP[c.hT][e])){_.qa(a.VP[c.hT],e);"subscribed"!==c.hT&&IO(a.context).addCallback(function(f){return function(h){h.HGa(f.hT,!1)}}(c));return}c={hT:c.hT}}}};
var Dgd=function(){this.H=new Map;this.O=[];this.V=[]};
Dgd.prototype.update=function(a){var b=this,c=a.id,d=a.O;a=a.H;var e=(d||a).getItem();cN(e)&&(a?(e=a.getItem().yf())&&_.C(e,1)&&(1===_.Od(e)||3===_.Od(e))&&(e=_.C(e,1),this.H.has(e)||this.H.set(e,new Set),this.H.get(e).add(c)):!a&&d&&this.H.forEach(function(f,h,k){f.delete(c)&&0===f.size&&k.delete(h)}));!a&&d&&this.H.has(c)?(this.H.get(c).forEach(function(f){b.O.push(f)}),this.H.delete(c)):this.H.has(c)&&a&&(!d||d&&!_.mk(a.getItem(),d.getItem()))&&this.H.get(c).forEach(function(f){b.V.push(f)})};
var Egd=function(a){return a.V.filter(function(b){return!a.O.includes(b)})},Fgd=function(a){a.O=[];a.V=[]};
var Ggd=function(a,b){nO.call(this,a.clone(),b.Cm(),b.Qc,b.Tf());this.context=b};_.O(Ggd,nO);Ggd.prototype.W=function(a){var b=new Map;a.Am().forEach(function(c){var d=_.sVb(a.clone(),[c]);b.set(c,d)});return b};Ggd.prototype.V=function(a){a=a.Gd()[0];this.context.xf.jl([a],1,void 0,!0,this.request.O())};Ggd.prototype.ha=function(a){this.context.xf.jl([],1,a,!1,this.request.O())};Ggd.prototype.ka=function(a){a=_.XK(_.NK(new _.LK,a));this.context.xf.Ho([a])};
var Hgd=function(a,b,c,d){GO.call(this,a);this.Mg=b;this.request=c;this.Pd={};d&&this.jl(d,!0)};_.O(Hgd,GO);_.g=Hgd.prototype;
_.g.refresh=function(){var a=this;this.ao=6;var b=QN(this.context.Qc)!==QN(this.context.Qc,this.request.O()),c=[];this.request.Am().forEach(function(h){var k=a.Pd[h];k&&k.getItem().xh()&&!b||c.push(h)});if(0===c.length)return this.jl([],!1),_.Rh();var d=this.request.clone();_.sVb(d,c);var e=new Ggd(d,this.context),f=_.Xh();this.context.Gj().Ye()?(this.Oc.listen(this.context.Gj(),"Ab",function(h){h.Ye()||(a.Oc.Xc(a.context.Gj(),"Ab"),a.Kz(),e.Xg().then(f.resolve,f.reject,f))}),this.ao=0<_.Ra(this.Pd)?
1:2):(this.context.nk().Ye()&&(this.ao=0<_.Ra(this.Pd)?1:2),this.Kz(),e.Xg().then(f.resolve,f.reject,f));return f.promise};_.g.Oha=function(a){return this.context.$m.equals(a,this.request)&&K0c(_.qM(this.Mg),a.O())};_.g.Dk=function(a){var b=new _.yM;b.Dc(this.ao);b.Ti(this.jf());b6c(b,_.Pa(this.Pd,function(c){return c?c.getItem():null}));bfd(this,a.O(),b.map);return b};_.g.resize=function(){};_.g.yd=function(){return this.request};
_.g.uu=function(a){var b=this.Xt(a.O),c=this.Xt(a.H);if(b||c)c?(this.Pd[a.id]=a.H,a.H.count++,b&&a.O.count--):(this.Pd[a.id]=null,a.O.count--);else return!1;return!0};_.g.Xt=function(a){return!!a&&this.request.Am().includes(a.getId())};
var KO=function(a,b,c,d,e){GO.call(this,a);var f=this;this.V=0;this.Pd=[];this.O=new Map;this.ka=null;this.incompleteSearch=!1;this.ha=[];this.W=[];this.suggestionSessionId=null;this.count=0;this.ma=this.Ba=null;this.oa=Date.now();this.request=b.clone();this.av=new sfd(this.context,this.request,!1,e);b=this.request.Ac()&&Y8c(this.request.Ac());var h=this.context.Xx;this.H=b?function(k,l){return h.compare(f.request,k,l)}:null;this.iW=!b||!P8c(this.request)||_.BK(_.CK(a.Qc));this.Fa=v$c(this.request);
c&&this.jl(c,!d);this.va=_.Pj(a.Qc.Sf(),16,36E5);_.VL(this.request)&&this.Oc.listen(this.context.eha,"Hb",this.Ha);_.te(this,function(){_.aa(f.av);f.clear()})};_.O(KO,GO);KO.prototype.refresh=function(){return Igd(this,!1)};var Igd=function(a,b){a.ao=6;if(_.E(a.request,48,!1))return a.ao=1,_.Rh();if(_.VL(a.request)){var c=Jgd,d=a.context.eha.H;d=Math.max(Date.now()-d,a.va);c(a,Math.min(d,2592E5))}return Kgd(a,b)};
KO.prototype.initialize=function(){return this.count>=this.request.Ii()||1===this.ao?_.Rh():this.refresh()};KO.prototype.clear=function(){Lgd(this)};var Lgd=function(a){a.Pd.forEach(function(b){b.count--});a.count=0;a.Pd=[];a.O.clear()},Jgd=function(a,b){_.n.clearTimeout(a.Ba);a.Ba=_.n.setTimeout(function(){return Igd(a,!0)},b)};KO.prototype.Ha=function(){Date.now()-this.oa>this.va&&Jgd(this,0)};
var Kgd=function(a,b){a.av&&(a.Oc.Xc(a.av,"Eb",a.Osa),a.Oc.Xc(a.av,"Fb",a.zMa),a.av.dispose());var c=a.request.te();c&&_.hf(c,!1);a.av=new sfd(a.context,a.request,b);a.V=0;a.Oc.listen(a.av,"Eb",function(){return a.Osa(a.av.ha)});a.Oc.listen(a.av,"Fb",a.zMa);return a.rca()};
KO.prototype.rca=function(){var a=this,b=_.Xh();this.context.Gj().Ye()?this.Oc.listen(this.context.Gj(),"Ab",function(c){c.Ye()||(a.Oc.Xc(a.context.Gj(),"Ab"),Mgd(a,b))}):this.context.nk().Ye()?this.Oc.od(this.context.nk(),[_.tA.XK,_.tA.XT],function(){Mgd(a,b)}):Mgd(this,b);return b.promise};var Mgd=function(a,b){a.Kz();var c=a.request.Ii()+a.V;_.Rja(qfd(a.av,c).Mf(b.resolve,b.reject,b),function(){return a.oa=Date.now()})};_.g=KO.prototype;
_.g.resize=function(a){var b=0;for(var c=_.m(new Set([].concat(_.jd(this.Yx)))),d=c.next();!d.done;d=c.next())d=d.value,d=dfd(this.context).Ika(d),b=Math.max(b,d.Ii());_.VL(this.request)?(this.request.di(b),2!==this.jf()&&!this.av.O&&(b>this.count||a)?this.refresh():this.WI()):this.request.Ii()!==b&&(this.request.di(b),b>this.count?this.rca():this.WI())};_.g.yd=function(){return this.request};_.g.Oha=function(a){return this.context.$m.equals(a,this.request)};
_.g.Dk=function(a){var b=a.Ii(),c,d=!1;if(_.zL(this.request)){var e=this.Pd.slice();var f=this.W.slice(0,b);if(this.W.length>b){var h=f.map(function(l){return l.getId()});for(c=0;c<e.length;c++){var k=e[c];d=_.ll(k.getItem()).filter(function(l){return h.includes(_.D(l,_.Qk,1).getId())});k=k.clone();O0c(k.getItem(),d);e[c]=k}e=e.filter(function(l){return _.ll(l.getItem()).length})}d=X0c(e);c=new _.zM;_.B(c,4,!1);c5c(c,f)}else e=this.Pd.slice(0,b),c=new _.gA,L3c(c,b<this.Pd.length||!(this.context.Gj().Ye()||
this.context.nk().Ye())&&1!==this.ao),_.A(c,7,this.ka),_.B(c,8,this.incompleteSearch),_.zWc(c,this.ha),d=X0c(e);e=E1c(e);bfd(this,a.O(),e);c.tw(e);c.Dc(d?6:this.Twa(b));c.Ti(this.jf());c.hP(this.suggestionSessionId);return c};_.g.Twa=function(a){return 1===this.ao||a<=this.count?1:this.context.Gj().Ye()||this.context.nk().Ye()?0<this.Pd.length?1:2:6};_.g.Osa=function(a){this.ka=a.W;this.incompleteSearch=a.incompleteSearch;this.ha=a.lAa();this.W=a.V;this.suggestionSessionId=a.Hf()};
_.g.zMa=function(){var a=this.request.Ii()-this.count;0<a&&ofd(this.av)&&(this.V+=a,this.rca())};_.g.jl=function(a,b){_.VL(this.request)&&Lgd(this);var c=!1;a=_.m(a);for(var d=a.next();!d.done;d=a.next())d=aO(d.value),c=this.uu(d,!0)||c;b||(1!==this.ao&&(c=!0),this.ao=1);if(a=this.H){a:{a=this.Pd;d=this.H||_.Ga;for(var e=1;e<a.length;e++)if(0<d(a[e-1],a[e])){a=!1;break a}a=!0}a=!a}a&&(this.An("ViewCache unsorted after import"),this.context.Xx.sort(this.request,this.Pd));c&&(this.qX(),Ngd(this,b))};
var Ngd=function(a,b){_.gM(a.request).length&&a.Pd.length&&a.context.wZ.then(function(c){var d=Q4c(a.context.Mk(),106024,a.ma);if(d){var e=_.gM(a.request)[0].Za(),f=_.D(_.wM(d),w4c,18);if(!f){f=new w4c;var h=_.wM(d);_.A(h,18,f)}f=_.B(f,1,!b);c=_.B(f,2,c===e).Zs(a.Pd.length);e=a.context.xf.Nu();_.B(c,4,e);a.ma=d;d.Tj()}})};_.g=KO.prototype;
_.g.uu=function(a,b){var c=this.O.get(a.id),d=!!c,e=this.Xt(a.H,b),f=a.O;c&&(d?a.O&&a.O!==c&&this.An("Updating different wrapper from the existing one"):this.An("Updating existing item but old wrapper did not match"),f=c,d=!0);if(d||e)if(d)e?this.yKa(f,a.H):(this.NI(f),_.VL(this.request)&&Jgd(this,0));else{if(_.VL(this.request)&&!b)return!1;this.bR(a.H)}else return!1;return!0};_.g.bR=function(a){this.H?A0c(this.Pd,a,this.H):this.Pd.push(a);a.count++;Ogd(a)&&this.count++;this.O.set(a.getId(),a)};
_.g.NI=function(a){if(this.H){var b=this.Pd,c=_.Ha(b,a,this.H);0<=c&&_.qa(b,c)}else _.sa(this.Pd,a);a.count--;Ogd(a)&&this.count--;this.O.delete(a.getId())};_.g.Sya=function(a){return this.H?_.Ha(this.Pd,a,this.H):_.la(this.Pd,a)};_.g.yKa=function(a,b){this.H&&0!==this.H(a,b)?(this.NI(a),this.bR(b)):(this.Pd[this.Sya(a)]=b,b.count++,Ogd(b)&&this.count++,a.count--,Ogd(a)&&this.count--,this.O.delete(a.getId()),this.O.set(b.getId(),b))};
_.g.Xt=function(a,b){if(!a)return!1;if(this.iW&&!_.VL(this.request)){if(b)return!0;if(!this.Fa){var c=a.getId();b=!!this.Pd.find(function(e){return c===e.getId()},this);a=Q8c(this.context.aw,this.request,a.getItem());return b&&a}}if(!Q8c(this.context.aw,this.request,a.getItem()))return!1;var d=1.2*this.request.Ii();if(1===this.ao||!this.H||y8c(a.H,2)||this.count<d||b||d1c(a.getItem()))return!0;b=0===this.Pd.length?null:this.Pd[this.Pd.length-1];return!!b&&0>=this.H(a,b)};
_.g.WI=function(){if(1!==this.ao&&!this.context.Gj().Ye()&&!this.context.nk().Ye()){var a=1.2*this.request.Ii();if(!(a>=this.count||this.av&&a>=this.av.lc())){a=this.count-this.request.Ii();for(var b=this.Pd.length-1;0<=b&&0<a;b--){var c=this.Pd[b];y8c(c.H,2)||d1c(c.getItem())||(c.count--,Ogd(c)&&this.count--,this.O.delete(c.getId()),_.qa(this.Pd,b),a--)}Kgd(this,!1)}}};_.g.An=function(a){var b=new _.jc;_.OK(b,2);_.PK(b,6);_.kq(b);this.context.dispatchEvent(new _.lc(new _.kc(a,b)))};
var Ogd=function(a){return!y8c(a.H,2)&&3!==eN(a.getItem())};KO.prototype.dRa=function(a){var b=this,c=_.gM(this.request);c.length&&(c=c.some(function(d){return(d=b.context.xf.dm.H(d.Za()))&&_.L(d,108)}),N9c(this.context.wfa,a,c))};KO.prototype.cRa=function(){this.WI()};KO.prototype.ZXa=function(a){return 1!==this.ao&&a.Ii()>this.count&&this.av.O};
var MO=function(a,b){_.P.call(this);var c=this;this.H={};this.W=new Dgd;this.Oc=new _.De(this);this.Ma(this.Oc);this.context=a;this.Mg=b;this.Aw=new C$c(a.$m);this.O=new O8c(a.wZ,a.aw,a.Xx);_.L(a.Qc,60)&&(this.va=new xgd(a.aw,a.Xx));this.V=new J8c(a.Tf(),_.qM(this.Mg));Pgd(this,_.Id(this.context.Qc,28));this.dm=new S8c(this.Mg,this.context.$m,this.O,this.V);this.context.Mk().W.H=this.dm;this.dL=new ufd(this.context,this.Mg,this.H,this.O);this.eGa=new ygd(this.context,this.O);this.ka=new pgd(this.context,
this);_.te(this.ka,function(){c.ka=null});this.oa=_.OUc(_.qM(this.Mg),Qgd);bO(this.context.Ej,["NSockf"],function(){return c.initialize()});bO(this.context.Ej,["NSockf","jroI5d"],function(){var d=c.context.Qc;if(_.D(d,_.hl,12))d=_.D(d,_.hl,12);else{var e=_.zVc(_.BVc(new _.Qk,_.iM(_.CK(d))),!0);e=_.B(e,6,1);var f=_.H(_.CK(d),6,"");f&&e.Pb(f);e=_.wVb(_.fWc(_.gWc(_.oF((new _.hl).Pb(c.context.Mn()).setTitle(_.H(d,38,"My Drive")),"application/vnd.google-apps.folder").Vm(!1),e),[e]),1);e=_.B(e,29,!0);e=
_.B(e,63,!0);d=_.CVc(new _.cl,_.E(d,6,!0));d=_.B(d,2,!1);d=_.cM(e,_.PVc(_.IVc(_.HVc(_.LVc(_.MVc(_.KVc(_.JVc(_.GVc(_.FVc(_.EVc(_.DVc(_.B(d,3,!1),!1),!1),!0),!0),!1),!1),!1),!1),!1),!1),!1))}c.jl([d],1);cO(c.context.Ej,"hVFf7")});this.ha=_.Xh();bO(this.context.Ej,["BNEDtc"],function(){c.ha.resolve()});this.Sq=new $$c(this.context.Qc,this.context.Tf(),a.Cm(),a.wfa,this.context.Mk(),this.context.eX.promise);_.HK(this.context.Qc)&&this.Oc.listen(this.Sq,"Kb",this.ma);this.AMa=new _.EYc(this.context.Qc,
this.dm)};_.O(MO,_.P);MO.prototype.ma=function(a){a=a.getPeople();this.log("Handling PeopleCache updated with "+a.length+".");var b=new Set;a=_.m(a);for(var c=a.next();!c.done;c=a.next())this.Sq.getItems(_.C(c.value,1)).forEach(function(f){return b.add(f)});a=[];c=_.m(b);for(var d=c.next();!d.done;d=c.next()){var e=d.value;(d=this.O.get(e))?(e=d.getItem().clone(),Rgd(this,e),a.push(m$c(d,new PN(e,void 0,1)))):this.log("b/154479164 Unexpected missing wrapper for "+e+".","warning")}Sgd(this,a,[]);this.context.zs.update(6)};
MO.prototype.initialize=function(){this.ka.Xg()};
MO.prototype.Th=function(a,b){if(b instanceof _.Te)b=SN(this.context.$m,b),Tgd(this,b.O()),Agd(this.eGa,b),b=Ugd(this,b),b.cache.Th(a);else if(b instanceof _.yz)b=Vgd(this,b),Tgd(this,b.O()),b=Wgd(this,b),b.cache.Th(a);else if(b instanceof _.vK){var c=JO(this,b),d=this.H[c];d?(3==d.vM()?(this.log(c+" | TeamDriveQueryRequest backed by refreshing existing cache"),d.refresh()):this.log(c+" | TeamDriveQueryRequest backed by existing view cache"),b={cache:d,Vu:!1}):(this.log(c+" | ItemQueryRequest backed by new cache"),
d=new Ofd(this.context,this.Mg,b),d.refresh().Ag(_.Bf),this.H[c]=d,b={cache:d,Vu:!0});b.cache.Th(a)}else if(b instanceof _.lF)c=b.O(),d=this.V,K8c(d,d.H,d.O,c),b=Wgd(this,b),b.cache.Th(a);else throw Error("jg");return b.Vu};
MO.prototype.Yj=function(a,b){if(b instanceof _.Te)b=SN(this.context.$m,b),Cgd(this.eGa,b);else if(b instanceof _.yz)b=Vgd(this,b);else if(!(b instanceof _.vK||b instanceof _.lF))throw Error("jg");b=JO(this,b);var c=this.H[b];c&&(c.Yj(a),this.log("Unregistering live request: "+b),c.isDisposed()&&delete this.H[b])};
var JO=function(a,b){return TN(a.context.$m,b,2)},Ugd=function(a,b){var c=JO(a,b),d=a.H[c];if(d)return 3==d.vM()?(a.log(c+" | ItemQueryRequest backed by refreshing existing cache"),d.refresh()):a.log(c+" | ItemQueryRequest backed by existing view cache"),{cache:d,Vu:!1};d=[];for(var e=5,f,h,k=D$c(a.Aw),l=0;l<k.length;l++){var p=k[l];e=p.zI(b);if(5!=e){f=1==e?void 0:b.Ii();d=p.ZAa(b,f);f=p.jf();h=p instanceof dO?p.Lx():"";a.log(c+" | ItemQueryRequest backed by "+p.getType()+" | size "+(p.Nd()+" | initial "+
d.length));break}}5==e&&a.log(c+" | ItemQueryRequest backed by new cache");if(a.context.Gj().Ye()||a.context.nk().Ye())d=d.concat(a.O.query(b,1)),_.Fa(d,void 0,function(q){return q.getId()}),e=(e=a.Aw.H)&&e.O7&&5!=e.zI(b)?e.zI(b):6,a.log("Offline: Populate with "+d.length+" initial items(s)");d=new KO(a.context,b,d,1==e,h);f&&d.Ti(f);d.jl(a.O.query(b,2),1!=e);d.initialize().Ag(function(q){q=_.QK(q);_.kq(q);a.context.dispatchEvent(new _.lc(new _.kc("Error during view cache init",q)))});a.H[c]=d;return{cache:d,
Vu:!0}},Wgd=function(a,b){var c=JO(a,b),d=!1,e=a.H[c];if(e)e.Oha(b)?a.log("FindByIdsRequest backed by existing query cache: "+c):(d=a.O.getAll(b.Am()),b=Xgd(a,b,d),d=!0,a.H[c]=b,Ygd(e,b),e=b,a.log("FindByIdsRequest backed by recreated query cache: "+c));else{var f=a.O.getAll(b.Am());e=Xgd(a,b,f);d=!0;a.H[c]=e;a.log("FindByIdsRequest backed by new query cache: "+c+" with "+(f.length+" initial items."))}return{cache:e,Vu:d}},Xgd=function(a,b,c){var d;b instanceof _.yz?d=new kfd(a.context,a.Mg,b,c):
d=new Hgd(a.context,a.Mg,b,c);c.length&&d.Ti(8);d.refresh().Ag(_.Bf);return d};MO.prototype.DV=function(){return Object.values(this.H).filter(function(a){return a.yd()instanceof _.vK})};
MO.prototype.J1a=function(a){for(var b=_.ff(new _.ef,309),c=[],d=_.m(Object.entries(this.V.items)),e=d.next();!e.done;e=d.next()){var f=_.m(e.value);e=f.next().value;f=f.next().value;f=_.m(Object.entries(f));for(var h=f.next();!h.done;h=f.next()){h=_.m(h.value);var k=h.next().value;h.next();if(k===a){c.push(Number(e));break}}}c.length&&(d=g9c(this.context.$m,c,!0),this.log("Refreshing "+a+" for secondary fields: "+d+"."),this.dL.SR([a],b,!1,c))};
var afd=function(a,b,c){c&&c.length&&M8c(a.V,b,c);_.HK(a.context.Qc)&&(a=a.Sq,fad(a,iO(a,b)))},Ffd=function(a,b,c){if(b instanceof Ofd){var d=JO(a,b.yd());if(a.H[d]){a.log(d+" | Cache already exists, ignoring persisted data");return}}b instanceof p$c&&a.Aw.removeAll([b]);var e={},f=new Map;d=a.O.dz();for(var h=_.m(d.keys()),k=h.next();!k.done;k=h.next())k=k.value,f.set(k,d.get(k));var l=[];b.dz().forEach(function(q){var t=q.getId(),u=a.O.get(t);if(u){var y=eN(u.getItem());3==y||4==y?e[q.getId()]=
q.getItem():u!=q&&(y=l.push,u=new l$c(q.getId(),q,u),y.call(l,u));f.delete(t)}else t=aO(q),a.O.update(t),a.W.update(t),_.HK(a.context.Qc)&&a.Sq.QO(t);_.HK(a.context.Qc)&&Rgd(a,q.getItem())});d=_.m(f.values());for(h=d.next();!h.done;h=d.next())l.push(aO(h.value));d=_.m(l);for(h=d.next();!h.done;h=d.next())b.update(h.value);b instanceof Ofd?(d=JO(a,b.yd()),a.H[d]=b):a.Aw.addAll([b]);var p=[];_.Na(e,function(q){var t=new _.LK;_.NK(t,q.getId());t.setItem(q);p.push(t)});a.Ho(p);a.log("Merged cache: "+
b.getType());b instanceof gO&&c.forEach(function(q){Zgd(a.context.Qsa,q)});a.context.zs.update(3)},Ygd=function(a,b){(new Set([].concat(_.jd(a.Yx)))).forEach(function(c){b.Th(c);a.Yj(c)})};
MO.prototype.jl=function(a,b,c,d,e){var f=this;e||(e=c?[].concat(_.jd(c.O().filter(function(z){return!_.qM(f.Mg).includes(z)}))):[]);c&&c instanceof _.Te&&_.VL(c)&&$gd(this,a,c);for(var h=[],k=[],l=0;l<a.length;l++){var p=a[l],q=new PN(p,void 0,b),t=this.O.get(p.getId()),u=t?t.getItem():null,y=ahd(this,t,q);if(null!=y)q.pK(y),bhd(this,u,p),c1c(p),p=H8c(p,u,e),q.setItem(p);else if(null!=t)q=t,p=u;else continue;_.HK(this.context.Qc)&&Rgd(this,p);!t||chd(this,u,p,e)?(k.push(m$c(t,q)),h.push(q)):h.push(t)}a=
null;c&&(a=JO(this,c),a=this.H[a],c instanceof _.Te&&(c=G$c(this.Aw,c))&&c.jl(h,!!d),a&&a.jl(h,!!d));0<k.length&&(_.HK(this.context.Qc)&&k.forEach(function(z){return f.Sq.QO(z)}),Sgd(this,k,e,a?[a]:[]),dhd(this,h));dfd(this.context).N8()};
var Rgd=function(a,b){jad(a.Sq,b)||5!=eN(b)||_.mWc(b,1)},chd=function(a,b,c,d){(b=b?_.Tj(b.clone(),82):null)&&afd(a,[b],d);c=_.Tj(c.clone(),82);afd(a,[c],[]);return!_.mk(b,c)},$gd=function(a,b,c){ehd(a,b,c);b.forEach(function(d,e){var f=a.dm.H(d.getId());f&&(bN(f,d,[1002]),bN(f,d,[1003]),bN(f,d,[1005]),b[e]=f);_.yL(c)&&0<_.Id(c,33).length&&_.nWc(d,_.Id(c,33)[0])})},ehd=function(a,b,c){var d;_.yL(c)?d="quick access":_.zL(c)?d="people predict":_.AL(c)&&(d="drive priority");c=b.map(function(e){return e.getId()}).join(", ");
a.log("Got "+b.length+" items for "+d+": "+c)},Ped=function(a,b){var c={};b.forEach(function(d){c[d.H]||(c[d.H]=[]);c[d.H].push(d)});_.Na(c,function(d,e){e=Number(e);a.jl(E1c(d),e)})};MO.prototype.Bla=function(a){this.AMa.Bla(a)};
MO.prototype.Ho=function(a){for(var b=this,c=[],d=0;d<a.length;d++){var e=a[d],f=e.qk()?null:e.getItem(),h=e.Kc(),k=(h=this.O.get(h))?h.getItem():null,l=null;if(f){l=new PN(f,void 0,void 0,_.C(e,1)||void 0);var p=ahd(this,h,l);if(null==p)continue;l.pK(p);bhd(this,k,f);_.E(e,5,!1)&&F0c(f,U0c);c1c(f);f=H8c(f,k);l.setItem(f);_.HK(this.context.Qc)&&Rgd(this,f)}this.context.AJa.Px(e);(k&&!f||f&&chd(this,k,f,[]))&&c.push(m$c(h,l))}_.HK(this.context.Qc)&&c.forEach(function(q){return b.Sq.QO(q)});Sgd(this,
c,[])};var bhd=function(a,b,c){b&&!c.dk()&&bN(c,b,a.oa);var d=b?b.yf():null,e=c.yf();e=e?_.Md(e):null;d&&e&&bhd(a,_.Md(d),e);b&&!_.kl(c)&&bN(c,b,[1002]);b&&!_.ll(c).length&&bN(c,b,[1003]);b&&!_.ml(c).length&&bN(c,b,[1005]);b&&null==c.h1()&&bN(c,b,[71]);b&&null==_.C(c,79)&&bN(c,b,[73]);b&&_.L(b,31)&&!_.L(c,31)&&(F0c(c,U0c),a.log("Cleared Item Suggest data for "+b.getId()+"."))};
MO.prototype.aB=function(a,b){if(a instanceof _.Te||a instanceof _.yz||a instanceof _.vK)a=JO(this,a),(a=this.H[a])&&a.pX(b);else throw Error("jg");};var ahd=function(a,b,c){var d=c.getItem();if(Ead(a.context.xfa,d))return null;if(b){a=b.H;var e=c.H;if(!(0<=e?!a||a<=e:1))return null;a=b.getItem();if(3!=eN(a)&&!RN(a)&&!RN(d)&&a.Bc()==d.Bc())if(a.xi()&&d.xi()){if(a.xi()>d.xi())return null}else if(b.O&&c.O){if(b.O>c.O)return null}else if(a.oq()>d.oq())return null}return z8c(b&&b.H,c.H)};
MO.prototype.CH=function(a,b){(a=this.O.get(a))&&a.pK(z8c(a.H,b))};
var Sgd=function(a,b,c,d){d=void 0===d?[]:d;for(var e=_.m(b),f=e.next();!f.done;f=e.next())f=f.value,a.V.update(f.id,f.H?f.H.getItem():null,c);c=_.Sa(a.H);d=_.m(d);for(e=d.next();!e.done;e=d.next())_.sa(c,e.value);d=_.m(c);for(e=d.next();!e.done;e=d.next())cfd(e.value,b);c=D$c(a.Aw);d=0;c=_.m(c);for(e=c.next();!e.done;e=c.next()){f=e.value;var h=!1,k=_.m(b);for(e=k.next();!e.done;e=k.next())f.update(e.value)&&(h=!0);h&&d++;f instanceof gO&&f.Nd()>=1.2*f.limit&&fhd(a.context.AJa,f.Bc(),!1)}b=_.m(b);
for(e=b.next();!e.done;e=b.next())c=e.value,_.L(a.context.Qc,60)&&a.va.update(c),a.O.update(c),a.O.get(c.id)||a.V.WI(c.id),a.W.update(c);0<d&&a.context.zs.vna(d);ghd(a)},ghd=function(a){var b=a.W.O.slice(0),c=Egd(a.W);Fgd(a.W);if(b.length){a.log("Refreshing shortcuts with unknown targets: "+b.join(", "));var d=new _.ef;_.ff(d,308);a.dL.SR(b,d,!0)}if(c.length){a.log("Updating locally stale shortcuts: "+c.join(", "));b=T8c(a.dm,c);var e=[];Object.values(b).forEach(function(f){var h=f.getItem().yf(),
k=_.C(h,1);if(k=a.dm.H(k))_.A(h,5,k),_.B(h,4,1),e.push(f)});Ped(a,e)}},hhd=function(a){dfd(a.context).N8();a.O.WI()},Vgd=function(a,b){_.Ia(b.O());var c=_.la(b.Am(),"root");if(0>c)return b;b=b.clone();b.Am()[c]=a.context.Mn();return b},Pgd=function(a,b){var c=_.SK(a.context.Qc);c&&_.E(c,1,!1)||(b=J4c(a.Mg,b),a=a.V,K8c(a,a.items,a.fields,b))},Tgd=function(a,b){var c=_.SK(a.context.Qc);c&&_.E(c,1,!1)&&(b=J4c(a.Mg,b),a=a.V,K8c(a,a.items,a.fields,b))},dhd=function(a,b){a.ha.promise.then(function(){var c=
b.filter(function(e){return 4==eN(e.getItem())});if(c.length){c=c.map(function(e){return e.getId()});a.log("Refreshing "+c.length+" partial items. "+c);var d=_.ff(new _.ef,311);a.dL.SR(c,d)}})},wgd=function(a,b){a.ha.promise.then(function(){b.forEach(function(c){if(!G$c(a.Aw,c)){a.log("Adding new cache hint for "+JO(a,c));var d=new dO(a.context.aw,a.context.Xx,a.context.$m,c);c=new zfd(a.context,d,c);var e=mO(a.context.Ty,null);_.Yh(c.Xg().then(function(){Cfd(d,e).then(function(f){Ffd(a,d,f)})}),
function(){Nad(a.context.Ty,null)})}})})};MO.prototype.Nu=function(){var a=this.Aw.H;return a&&a.jN?1:2};MO.prototype.log=function(a,b){this.context.Tf().log("drive.ds.sync.cache.CacheManager",a,void 0===b?"info":b)};var Qgd=[50];
var jhd=function(a){_.P.call(this);var b=this;this.context=a;this.H=[];this.V=new _.cm;this.O=new Map;this.ka=-1;this.ha=0;var c=_.Xh();this.va=c.promise;Acd(this.context.dD).then(function(d){b.H=d||[];c.resolve();ihd(b)},function(){return c.resolve()});bO(this.context.Ej,["rVezo"],(0,_.v)(this.W,this))};_.O(jhd,_.P);
var Bgd=function(a,b){_.E(a.context.Qc,46,!1)&&a.va.then(function(){if(a.H[0]!==b){_.sa(a.H,b);for(I8c(a.context.xf.dm.H(b))?a.log(b,"Hidden TD, not tracking in recency list"):_.ya(a.H,0,0,b);a.H.length>2*_.Pj(a.context.Qc,47,5);)a.H.pop();a.context.dD.set(ucd,a.H)}a.context.xf.Aw.DV().length+a.O.size<_.Pj(a.context.Qc,47,5)&&(ihd(a),a.W())})},khd=function(a,b){_.sa(a.H,b)&&a.context.dD.set(ucd,a.H)};
jhd.prototype.Px=function(a){Zgd(this.context.Qsa,a);if(RN(a)){var b=a.Bc();a.qk()?fhd(this,b,!0):(a=a.getItem(),I8c(a)&&khd(this,b))}};var fhd=function(a,b,c){khd(a,b);a.V.contains(b)&&a.V.remove(b);var d=a.O.get(b);d&&d.dispose();a.O.delete(b);d=a.context.xf.Aw;for(var e=d.DV(),f=0;f<e.length;f++){var h=e[f];if(h.Bc()===b){a.log(b,"Cache removed");d.removeAll([h]);a.context.zs.update(3);break}}IO(a.context).addCallback(function(k){k.HGa(b,c)});a.W()};
jhd.prototype.W=function(){if(this.context.Ej.H("rVezo")){var a=this.context.xf.Aw;lhd(this);for(var b={};this.V.lc()&&!(this.ha>=_.Pj(this.context.Qc,47,5));){var c=_.dm(this.V);this.ha++;F$c(a,c)||this.O.has(c)||(this.O.set(c,null),b.Sea=new _.jVc,_.B(b.Sea,1,c),this.context.Cm().then(function(d){return function(e){return e.Ve(d.Sea)}}(b)).then(this.oa.bind(this,c),this.ma.bind(this,c)));b={Sea:b.Sea}}}};
var ihd=function(a){a.H&&a.H.length&&(a.ha=0,a.V.clear(),a.H.forEach(function(b){a.V.enqueue(b)}))},lhd=function(a){_.n.clearTimeout(a.ka);a.ka=_.n.setTimeout(function(){ihd(a);a.W()},36E5)};jhd.prototype.oa=function(a,b){var c=_.C(b,1);c&&c>_.Pj(this.context.Qc,48,1E3)?(this.log(a,"Too large to backfill: "+_.C(b,1)),mhd(this,a,!1)):nhd(this,a)};
jhd.prototype.ma=function(a,b){(b=_.QK(b).mk())&&4===b?(this.log(a,"Non-existent or inaccessible, removing from cache"),a=_.XK(_.rUc(_.NK(new _.LK,a),a)),this.context.xf.Ho([a])):nhd(this,a)};
var nhd=function(a,b){var c=new gO(a.context.aw,a.context.Xx,b),d=c.yd().clone();d.di(_.Pj(a.context.Qc,48,1E3));d=new zfd(a.context,c,d);a.O.set(b,d);a.log(b,"Backfill started");var e=mO(a.context.Ty,b);IO(a.context).addCallback(function(f){f.zva(b)});_.Yh(d.Xg().then(function(){ohd(a,b,c,e)},function(){a.log(b,"Backfill failed");a.ha--;mhd(a,b,!0)}),function(){Nad(a.context.Ty,b)})},ohd=function(a,b,c,d){c.jN?(c.g3(),Cfd(c,d).then(function(e){a.log(b,"Backfill complete, size: "+c.Nd());Ffd(a.context.xf,
c,e);mhd(a,b,!1)},function(){a.log(b,"Backfill changes failed");mhd(a,b,!0)})):(a.log(b,"Backfill exceeded size limit"),mhd(a,b,!0))},mhd=function(a,b,c){var d=a.O.get(b);d&&d.dispose();a.O.delete(b);c&&IO(a.context).addCallback(function(e){e.HGa(b,!1)});a.W();0<a.O.size||a.context.xf.Aw.DV().map(function(e){return e.Bc()}).filter(function(e){return!a.H.includes(e)}).forEach(function(e){fhd(a,e,!0)})};
jhd.prototype.log=function(a,b){this.context.Tf().info("drive.ds.sync.cache.TeamDriveCacheManager",a+" | "+b)};
var phd=function(){_.P.apply(this,arguments)};_.O(phd,_.P);
var shd=function(a,b){b=qhd(b);var c=a.getItem(),d=rhd(c.getCapabilities());b.u3.forEach(function(e){_.wVb(e.getItem(),c.Uo());_.cM(e.getItem(),d.clone())});return b},vhd=function(a,b,c){var d=thd(c);c=c.find(function(e){return e.getId()===b.getId()});c={FJ:c?c:new PN(b),children:[]};uhd(a,d,c);return c},thd=function(a){var b={};a.map(function(c){c.getItem().lk().map(function(d){b[d]||(b[d]=[]);b[d].push(c)})});return b},uhd=function(a,b,c){var d=c.FJ.getItem();(b[d.getId()]||[]).forEach(function(e){c.children.push(uhd(a,
b,{FJ:e,parent:c,children:[]}))});return c},xhd=function(a,b){var c=b.children.filter(function(h){return!_.jl(h.FJ.getItem())});b=new Map;for(var d=[];c.length;){var e=c.pop(),f=e.FJ.getItem();b.has(f.getId())||(_.wVb(f,a.Uo()),whd(a,f,e.parent?e.parent.FJ.getItem():void 0),e.children.map(function(h){_.jl(h.FJ.getItem())||c.push(h)}),b.set(f.getId(),!0),d.push(e.FJ))}return d},yhd=function(a){var b=a.children.filter(function(f){return!_.jl(f.FJ.getItem())});a=new Map;for(var c=[];b.length;){var d=
b.pop(),e=d.FJ.getItem();a.has(e.getId())||(c.push(_.XK(_.NK(new _.LK,e.getId()))),d.children.map(function(f){_.jl(f.FJ.getItem())||b.push(f)}),a.set(e.getId(),!0))}return c},qhd=function(a){var b=[],c=[];a=_.m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.getItem();_.jl(e)||_.L(e,137)?c.push(e):b.push(d)}return{bQ:c,u3:b}},rhd=function(a){a=a.clone();var b=null!=_.L(a,34)?_.L(a,34):_.L(a,7),c=null!=_.L(a,35)?_.L(a,35):_.L(a,7);_.B(a,45,c);_.VVc(a,b);_.B(a,30,c);_.QVc(a,b);_.WVc(a,c);
_.RVc(a,c);_.SVc(a,b);_.DVc(a,b);_.IVc(a,c);_.OVc(a,b);_.NVc(a,_.L(a,7));_.HVc(a,_.L(a,10)||_.L(a,11));_.PVc(a,_.dl(a));_.Tj(a,18);_.Tj(a,13);_.Tj(a,10);_.TVc(a,_.L(a,42));_.UVc(a,_.L(a,43));_.XVc(a,_.L(a,48));return a},whd=function(a,b,c){var d=a.getCapabilities(),e=b.getCapabilities(),f=_.L(d,30);_.B(e,30,f);_.QVc(e,_.L(d,31));_.WVc(e,_.L(d,47));_.RVc(e,_.L(d,32));_.SVc(e,_.L(d,33));_.DVc(e,_.L(d,4));_.IVc(e,_.L(d,9));_.PVc(e,_.L(d,21));_.OVc(e,_.L(d,20));_.NVc(e,_.L(d,17));_.CVc(e,_.dl(d));_.GVc(e,
_.L(d,7));_.JVc(e,_.L(d,10));_.KVc(e,_.L(d,11));f=_.L(d,45);_.B(e,45,f);_.VVc(e,_.L(d,46));_.XVc(e,_.L(d,48));a=_.jl(a);_.B(b,137,a);c&&(c=c.getCapabilities(),dN(b)?(_.HVc(e,_.L(c,43)),_.UVc(e,_.L(c,43)),_.TVc(e,_.L(c,42))):_.HVc(e,_.L(c,42)))};
var zhd=function(a){this.context=a;this.V=new phd;this.O=_.ff(new _.ef,306);this.H=a.xf},Zgd=function(a,b){if(RN(b))b.qk()?Ahd(a,b):Bhd(a,b);else if(_.E(a.context.Qc,86,!1)){var c=b.Kc(),d=a.H.dm.H(c);var e=d&&d.Bc();var f=b.getItem()&&b.getItem().Bc();if(!d||!e||!dN(b.getItem()||d)||f&&f!==e)e=!1;else if(e=!!_.jl(d),!b.qk()){var h=b.getItem();f=_.jl(d)!==_.jl(h);h=h.Uo()!==d.Uo();e=f||e&&h}if(e)if(b.qk()){if(b=Chd(a,d.Bc()),d=a.V,e=(new _.hl).Pb(c),b=(b=vhd(d,e,b))?yhd(b):[],a.context.xf.Ho(b),a.log(c,
"SD shared folder delete | Removed "+b.length+" item(s)"),a=Q4c(a.context.Mk(),106009))c=L4c(a),_.B(c,2,b.length),a.Tj()}else if(c=b.getItem(),d=Chd(a,c.Bc()),e=a.V,c=b.getItem(),c=(d=vhd(e,c,d))?xhd(c,d):[],Ped(a.context.xf,c),a.log(b.Kc(),"SD shared folder update | Updated "+c.length+" item(s)"),a=Q4c(a.context.Mk(),106010))b=L4c(a),_.B(b,1,c.length),a.Tj()}},Ahd=function(a,b){var c=b.Kc();b=Chd(a,c);b=qhd(b);var d=_.Bb(b.u3,function(e){return _.XK(_.NK(new _.LK,e.getId()))});a.context.xf.Ho(d);
a.H.dL.SR(b.bQ.map(function(e){return e.getId()}),a.O,void 0,void 0,b.bQ.map(function(e){return _.xl((new _.wl).Pb(e.getId()),_.ol(e))}));a.log(c,"SD delete | Remove "+d.length+" item(s), "+(b.bQ.length+" divergent items"));if(a=Q4c(a.context.Mk(),106016))c=M4c(a),_.B(c,1,b.bQ.length),_.B(c,2,b.u3.length),a.Tj()},Bhd=function(a,b){var c=b.Kc(),d=Chd(a,c),e=a.H.dm.H(c);b=shd(b,d);Ped(a.context.xf,b.u3);a.H.dL.SR(b.bQ.map(function(h){return h.getId()}),a.O,void 0,void 0,b.bQ.map(function(h){return _.xl((new _.wl).Pb(h.getId()),
_.ol(h))}));a.log(c,"SD update | Update "+b.u3.length+" item(s), "+(b.bQ.length+" divergent items"));if(d=Q4c(a.context.Mk(),106017)){var f=M4c(d);_.B(f,1,b.bQ.length);_.B(f,2,b.u3.length);d.Tj()}e||yfd(a.H.dL,c)},Chd=function(a,b){var c=new _.Te;_.WM(c,[b]);_.XM(c,2);return V8c(a.H.dm,c)};zhd.prototype.log=function(a,b){this.context.Tf().info("drive.ds.sync.change.TdChangeProcessor",a+": "+b)};
var Dhd=function(a,b,c){this.H=a;this.V=b;this.RI=c};
Dhd.prototype.zw=function(a,b){var c=this;if(a.jV().length){var d=Aad(this.H,a.Kc());if(d){var e=d?Bad(this.H,a):[];for(var f={},h=_.m(a.jV()),k=h.next();!k.done;f={RK:f.RK},k=h.next())if(k=k.value,f.RK=Ehd(e,k.Qm(),a.Kc()),_.L(k,3))Had(this.H,f.RK),_.Yh(b,function(t){return function(){c.H.O.W(qad(t.RK))}}(f));else{for(var l=_.m(_.ek(k,_.rF,2)),p=l.next();!p.done;p=l.next())Fhd(this,f.RK,p.value);k=_.m(_.Id(k,4));for(l=k.next();!l.done;l=k.next())Ghd(f.RK,l.value);this.H.WC([f.RK],!1,-1);b.then(function(t){return function(){return void c.H.CH(t.RK.getName(),
-2)}}(f),function(t){return function(){c.H.CH(t.RK.getName(),-2)}}(f))}e=this.ud(d.Dk().response)}}e=e?e:this.ud();var q=e.q3a;b.then(function(t){q.resolve(t)},function(t){q.reject(_.sA(t));c.handleError(a.Kc(),t)});return e};Dhd.prototype.ud=function(a){a=void 0===a?new BN:a;return new C8c(a.Dc(1))};var Ehd=function(a,b,c){var d=a.find(function(e){return pad(e.getName(),b)});d||(d=$5c((new zN).$c(b),c),a.push(d));return d};
Dhd.prototype.handleError=function(a,b){Jad(this.V,a);a=_.QK(b);_.B(a,21,"Server error updating metadata after optimistic application.");this.RI(a)};
var Fhd=function(a,b,c){var d=b.O().find(function(e){return e.getId()===c.getId()});d||(d=new xN,d.Pb(c.getId()),Z5c(b,b.O().concat([d])),Hhd(d,c));if(1===yN(d))d.setBooleanValue(_.L(c,3));else if(12===yN(d))d.setDateStringValue(_.C(c,17));else if(2===yN(d))d.setTextValue(_.C(c,4));else if(3===yN(d))_.Id(c,6).length?d.kpa(_.Id(c,6)):_.Id(c,5).length&&(a=_.Id(d,7).concat(_.Id(c,5)),d.kpa(a));else if(4===yN(d))d.setLongTextValue(_.C(c,7));else if(5===yN(d))d.setSelectionValue(_.C(c,8));else if(6===
yN(d))_.Id(c,10).length?d.gpa(_.Id(c,10)):_.Id(c,9).length&&(a=d.gMa().concat(_.Id(c,9)),d.gpa(a));else if(7===yN(d))d.setIntegerValue(_.C(c,11));else if(8===yN(d))_.Id(c,13).length?d.Zoa(_.Id(c,13)):_.Id(c,12).length&&(a=_.Id(d,12).concat(_.Id(c,12)),d.Zoa(a));else if(10===yN(d))d.setUserValue(a.O(_.C(c,14)));else if(11===yN(d))_.Id(c,16).length?W5c(d,_.Id(c,16).map(a.O)):_.Id(c,15).length&&W5c(d,d.WAa().concat(_.Id(c,15).map(a.O)));else throw d="Optimistic Applier: Unsupported value type "+(yN(d)+
"."),new _.kc(d,new _.jc);},Ghd=function(a,b){if(a=a.O().find(function(c){return c.getId()===b}))if(1===yN(a))_.Tj(a,5);else if(12===yN(a))_.Tj(a,17);else if(2===yN(a))_.Tj(a,6);else if(3===yN(a))_.ZG(a,7);else if(4===yN(a))_.Tj(a,8);else if(5===yN(a))_.Tj(a,9);else if(6===yN(a))_.ZG(a,10);else if(7===yN(a))_.Tj(a,11);else if(8===yN(a))_.ZG(a,12);else if(10===yN(a))_.Uj(a,15);else if(11===yN(a))_.Wj(a,16);else throw a="Optimistic Applier: Unsupported value type "+(yN(a)+"."),new _.kc(a,new _.jc);
},Hhd=function(a,b){_.S(b,3)?a.nA(1):_.S(b,17)?a.nA(12):_.S(b,4)?a.nA(2):_.Id(b,6).length||_.Id(b,5).length?a.nA(3):_.S(b,7)?a.nA(4):_.S(b,8)?a.nA(5):_.Id(b,10).length||_.Id(b,9).length?a.nA(6):_.S(b,11)?a.nA(7):_.Id(b,13).length||_.Id(b,12).length?a.nA(8):_.S(b,14)?a.nA(10):(_.Id(b,16).length||_.Id(b,15).length)&&a.nA(11)};Dhd.prototype.O=function(a){return _.AVc(_.yVc(1),a)};
var Ihd=function(a,b,c,d,e,f,h,k,l){this.H=a;this.ha=b;this.va=c;this.O=d;this.ka=e;this.Mg=f;this.W=0;this.V=k;this.ma=l;this.Ba=h};Ihd.prototype.apply=function(a,b){var c=this;if(!_.UL(a))return b;var d;a instanceof _.nL?d=Jhd(this,a,b):a instanceof _.uL?d=Khd(this,a,b):a instanceof _.TK?d=this.zw(a,b):a instanceof _.iL?d=Lhd(this,a,b):a instanceof _.ML&&(d=this.va.zw(a,b));d&&(this.W++,this.ha.setActive(!1),_.Yh(b,function(){c.W--;0==c.W&&c.ha.setActive(!0)}));return d?_.Rh(d):b};
var Jhd=function(a,b,c){Dad(a.O,b.getId());var d=a.H.dm.H(b.getId());_.Yh(c.then(function(){return void a.ma("VMiG2e")},a.oa.bind(a,b.getId(),d)),a.O.W.bind(a.O,b.getId()));c.then(null,function(e){e=_.QK(e);_.B(e,21,"Server error deleting item after optimistic application.");a.V(e)});return(new _.TL).Dc(1)},Khd=function(a,b,c){var d=b.Pt();d&&a.O.H.push(d);c.then(function(){d&&Fad(a.O,d)&&_.Yh(Mhd(a,d,new _.DYc(1E4,3E5),Date.now()+72E5,5),function(){return void a.ma("VMiG2e")})},function(){d&&_.sa(a.O.H,
d)});c.then(null,function(e){e=_.QK(e);_.B(e,21,"Server error emptying trash after optimistic application.");a.V(e)});return(new _.TL).Dc(1)},Mhd=function(a,b,c,d,e){if(Date.now()>d||0>=e)return _.Rh();var f=_.Xh(),h=c.Za();_.GG(c);setTimeout(function(){a.ka.then(function(k){var l=_.ff(new _.ef,1425);l=D1c(!0,1,l);return k.Ve(l).then(function(p){if(p=p.ud())if(p=p.Gd()[0],!p||(p.Pt()||0)>b){f.resolve();return}_.Yh(Mhd(a,b,c,d,e),function(){return void f.resolve()})},function(){return _.Yh(Mhd(a,b,
c,d,e-1),function(){return void f.resolve()})})})},h);return f.promise},Lhd=function(a,b,c){var d=b.Bc(),e=a.H.dm.H(d);if(!e)return null;e=e.clone();afd(a.H,[e],[157]);var f=e.xh();Nhd(f,_.ek(b,_.gl,2));Ohd(f,_.ek(b,_.gl,3));a.H.jl([e],-1,void 0,void 0,[157]);_.Yh(c,function(){a.H.CH(d,-2)}).then(function(h){a.H.jl([h.k$()],1,void 0,void 0,[157])},null);c.then(null,function(h){h=_.QK(h);_.B(h,21,"Server error updating item after optimistic application.");a.V(h)});return m6c(new l6c,e).Dc(1)},Nhd=
function(a,b){var c={};b=_.m(b);for(var d=b.next();!d.done;c={Kea:c.Kea},d=b.next())c.Kea=d.value,_.ek(a,_.gl,8).some(function(e){return function(f){return f.Qm()==e.Kea.Qm()}}(c))||_.gk(a,8,c.Kea,_.gl,void 0)},Ohd=function(a,b){var c=b.map(function(d){return d.Qm()});b=_.ek(a,_.gl,8).filter(function(d){return!c.includes(d.Qm())});N0c(a,b)};
Ihd.prototype.zw=function(a,b){var c=this,d=this.H.dm.H(a.getId());if(!d||d.Bc()&&0==a.Nh()||null!=_.L(a,40))return null;var e=_.Id(a,10),f=_.Id(a,9);if(0<e.length&&0<f.length&&(e=Object.values(U8c(this.H.dm,e.concat(f))).map(function(k){return k.Bc()||"root"}),_.Fa(e),1<e.length))return null;var h=d.clone();Phd(this,a,h);this.H.jl([h],-1,void 0,void 0,H4c(this.Mg));b.then(function(){return c.H.CH(a.getId(),-2)},function(){c.H.CH(a.getId(),-2);c.oa(a.getId(),d)});b.then(null,function(k){k=_.QK(k);
if(63==k.mk()){var l=h.getId();_.B(k,22,l);_.B(k,23,f[0])}_.B(k,21,"Server error updating item after optimistic application.");c.V(k)});return _.cXc((new _.TL).setItem(h),h.getId()).Dc(1)};
var Phd=function(a,b,c){null!=b.Bg()&&c.tm(b.Bg());null!=b.Pi()&&_.kWc(c,b.Pi());null!=b.getMimeType()&&_.oF(c,b.getMimeType());null!=_.C(b,7)&&_.vVb(c,_.C(b,7));null!=_.L(b,11)&&_.eWc(c,_.L(b,11));null!=_.L(b,4)&&c.jv(_.L(b,4));null!=_.L(b,16)&&_.jWc(c,_.L(b,16));null!=b.getTitle()&&c.setTitle(b.getTitle());null!=b.Nh()&&(c.Vm(b.Nh()),_.iWc(c,b.Nh()));null!=_.L(b,18)&&_.$M(b1c(c,!0),_.L(b,18));_.Id(b,8).length&&_.bM(c,_.Id(b,8));if(_.Id(b,9).length){var d=new Set(c.lk());_.Id(b,9).forEach(function(p){return d.add(p)});
_.bM(c,[].concat(_.jd(d)))}if(_.Id(b,10).length){var e=new Set(c.lk());_.Id(b,10).forEach(function(p){return e.delete(p)});_.bM(c,[].concat(_.jd(e)));var f=c.Vv();f&&_.Id(b,10).includes(f)&&_.Tj(c,46)}if(!c.Vv()){var h=a.Ba();f=c.lk().find(function(p){var q=a.H.dm.H(p);return q&&!!q.Vv()||p==h});_.B(c,46,f||void 0)}c.lk().length&&(f=a.H.dm.H(c.lk()[0]))&&_.nWc(c,f.Bc());if(f=_.D(b,_.el,25)){var k=_.D(c,_.el,111)||new _.el;null!=_.L(f,1)&&_.ZVc(k,_.L(f,1));null!=_.C(f,2)&&_.$Vc(k,_.C(f,2));_.A(c,111,
k)}var l=_.Id(c,120);_.Id(b,31).forEach(function(p){l.includes(p)||l.push(p)});_.Id(b,32).forEach(function(p){_.sa(l,p)});_.B(c,120,l||[])};Ihd.prototype.oa=function(a,b){var c=this,d=_.Az(new _.yz,[a]);this.ka.then(function(e){return e.Ve(d)}).then(function(e){e=e.ud().Gd()[0];c.H.jl([e.clone()],1)},function(){b&&c.H.jl([b.clone()],1)})};
var Qhd=function(a){this.H=a};_.O(Qhd,_.k_c);Qhd.prototype.execute=function(a,b,c){var d=_.k_c.prototype.execute.call(this,a,b,c);if(d)return d;if(c.PKa||b instanceof _.IK&&_.VL(b.yd()))if(c=Y4c(this.H))return c;return b instanceof _.uL?(c=_.ff(new _.ef,1424),a.Ve(D1c(!1,1,c)).then(function(e){(e=e.ud())&&(e=e.Gd()[0])&&e.IXa()&&b.Zca(e.Pt())},function(){})):null};
var T1c=function(a,b){return[Rhd,Shd,Thd,Uhd].reduce(function(c,d){var e;0!==c?e=c:e=_.Ga(d(a),d(b));return e},0)},Rhd=function(a){return Vhd[a.Vf()]},Shd=function(a){return Whd[a.getType()]},Thd=function(a){return a.getName()||""},Uhd=function(a){return a.getId()||""},NO={},Vhd=(NO[5]=0,NO[7]=1,NO[1]=2,NO[3]=3,NO[4]=4,NO[2]=5,NO[6]=6,NO),Xhd={},Whd=(Xhd[1]=0,Xhd[2]=1,Xhd[3]=2,Xhd[4]=3,Xhd);
var Yhd=function(a,b,c,d,e,f,h,k,l){this.H=a;this.ma=b;this.O=c;this.W=d;this.ha=e;this.V=f;this.ka=h;this.oa=k;this.Mg=l};
Yhd.prototype.apply=function(a,b){var c=this;if(!(b instanceof _.TL&&8===b.Cb()))if(a instanceof _.hL||a instanceof _.jL||a instanceof _.$Uc||a instanceof _.TK||a instanceof _.OL||a instanceof _.hVc||a instanceof _.QL||a instanceof _.hN){var d=_.WK(b.getItem().clone(),9);this.H.jl([d],1);ebd(this.oa,b.getItem(),_.qM(this.Mg))}else a instanceof _.nL?(b=_.XK(_.NK(new _.LK,a.getId())),this.H.Ho([b])):a instanceof _.qL?(b=_.XK(_.rUc(_.NK(new _.LK,a.getId()),a.getId())),this.H.Ho([b]),Zgd(this.ma,b)):
a instanceof _.uL?(b=D1c(!0).yd(),b=this.H.dm.query(b).map(function(e){return _.XK(_.NK(new _.LK,e.getId()))}),this.H.Ho(b)):a instanceof _.lL?this.O.remove(a.qh()):a instanceof _.wL||a instanceof _.LL?this.O.put(b.gr()):a instanceof _.oL?S1c(this.H,a):a instanceof _.SB?this.W.remove(a.getKey()):a instanceof _.xL?U1c(this.H,a,_.D(b,_.Qk,2)):a instanceof _.TB?this.W.put(b.wMa()):a instanceof _.kL||a instanceof _.PL?this.ha.WC([b.Tm()],!1):a instanceof _.rL?this.ha.WC([Sad(a.getId())],!1):a instanceof
_.ZUc?this.V.WC(b.response.O(),!1,1):a instanceof _.ML?(a.jV().filter(function(e){return _.L(e,3)}).forEach(function(e){return c.V.removeItem(e.Qm()||"",a.Kc())}),Jad(this.ka,a.Kc()),this.H.J1a(a.Kc())):a instanceof _.vM&&_.ek(a,_.j5c,1).forEach(function(e){switch(e.getFeature()){case 3:case 1:switch(e=_.D(e,_.tN,2),e.getType()){case 1:case 2:if(e=c.H.dm.H(e.Kc())){var f=new _.LK;f=_.B(f,5,!0);e=_.NK(f,e.getId()).setItem(e.clone());c.H.Ho([e])}}}})};
var Zhd=function(a){this.H=a};
Zhd.prototype.translate=function(a){if(a instanceof _.IL){var b=this.H.H(a.getId());if(!b)return new _.jc;var c=(new _.TK).Pb(a.getId());if(b.Bc()){var d=b.getCapabilities();_.ee(d)||_.L(d,9)?c.Vm(!0):_.UK(c,!1)}else d=a.getParent(),1===b.Uo()?c.Vm(!0):d?(b=this.H.H(d),!b||_.L(b.getCapabilities(),7)?g4c(c,[d]):_.UK(c,!1)):_.UK(c,!1);return c}if(a instanceof _.JL)return i4c(h4c(g4c(f4c((new _.TK).Pb(a.getId()),_.Id(a,2)),_.Id(a,3)),_.L(a,6)),_.ek(a,_.wl,8));if(a instanceof _.KL){b=this.H.H(a.getId());
if(!b)return new _.jc;c=(new _.TK).Pb(a.getId());b.Bc()?(d=b.getCapabilities(),_.ee(d)||_.L(d,9)?c.Vm(!1):_.UK(c,!0)):(d=a.getParent(),1===b.Uo()?c.Vm(!1):d?(b=this.H.H(d),!b||_.dl(b.getCapabilities())?f4c(c,[d]):_.UK(c,!0)):_.UK(c,!0));return c}if(a instanceof _.HM)return new _.$Uc(a);if(a instanceof _.zO)return _.Id(a,1).map(function(f){var h=new _.ML;f=_.B(h,1,f);h=a.jV();f=_.Cb(f,2,h);h=a.te();return _.A(f,3,h)});if(a instanceof _.tL){c=D1c(!1,1).yd();var e=0;this.H.query(c).forEach(function(f){(f=
f.Pt())&&(e=Math.max(e,f))});return S4c(new _.uL,a).Zca(e)}return a};
var $hd=function(){};$hd.prototype.validate=function(a){var b=null;a instanceof _.BL?(a=a.getId()||"",_.Xd(a)&&(b="Tried to request backup with no id.")):a instanceof _.mL&&(a=a.getId()||"",_.Xd(a)&&(b="Tried to delete backup with no id."));return b?_.QK(b):null};
var aid=function(a){this.H=a},eid=function(a,b){_.OM(["drive#about"],b);var c=new _.AO,d=new _.oA;b.user&&(a=_.QM(a.H,b.user),_.A(d,1,a));a=bid(b);a=$3c(Z3c(_.Y3c(new _.Vrb,a),b.rootFolderId),b.domainSharingPolicy);if(b.gsuiteSubscriptionInfo){var e=b.gsuiteSubscriptionInfo;_.b4c(a,_.N3c(_.M3c((new _.nA).Dc(cid[e.status]),Number(e.trialMillisRemaining)),_.PM(e.trialEndTime)))}b.teamDashboardCapabilities&&(e=b.teamDashboardCapabilities,_.c4c(a,_.P3c(_.O3c(new _.Qrb,e.canAdministerTeam),e.canManageInvites)));
b.importFormats&&a4c(a,b.importFormats.map(function(f){var h=new _.X3c;h=_.B(h,1,f.source);return _.B(h,2,f.targets||[])}));b.adminSecureLinkSetting&&_.B(a,10,did[b.adminSecureLinkSetting]);_.A(d,3,a);_.Kdd(c,d);b=b.largestChangeId;null!=b&&_.B(c,4,Number(b));return c},bid=function(a){var b=new _.Urb;b=_.B(b,1,Number(a.quotaBytesTotal));b=_.B(b,2,Number(a.quotaBytesUsed));b=_.B(b,3,Number(a.quotaBytesUsedAggregate));b=_.B(b,4,Number(a.quotaBytesUsedInTrash));b=_.T3c(_.S3c(_.R3c(_.Q3c(b,W1c(a.quotaBytesByService||
[])),fid[a.quotaType]),Number(a.quotaBytesTotal)),"-1"===a.quotaBytesTotal?-1:Math.max(Number(a.quotaBytesTotal)-Number(a.quotaBytesUsedAggregate),0));var c=Number(a.quotaBytesUsedAggregate)-Y1c(a);b=_.B(b,9,c);b=_.U3c(b,Number(a.quotaBytesUsedAggregate));b=_.B(b,11,Number(a.quotaBytesUsedInTrash));b=_.B(b,13,_.Y0c(Number(a.quotaBytesUsedAggregate),Number(a.quotaBytesTotal)));b=_.V3c(b,gid[a.quotaStatus]||0);if(a.graceQuotaInfo&&a.graceQuotaInfo.endDate){c=new _.Trb;var d=_.t1a(new Date(a.graceQuotaInfo.endDate));
c=_.A(c,1,d);a=_.B(c,2,Number(a.graceQuotaInfo.additionalQuotaBytes));_.A(b,12,a)}return b},gid={softLimitExceeded:2,hardLimitExceeded:3,underLimit:1},X1c=new Set(["POOLED_STORAGE","FAMILY"]),cid={isInTrial:1,hasPaidContract:2,noSubscription:3,trialExpired:4},V1c={DRIVE:1,FAMILY:4,GMAIL:2,PHOTOS:3,POOLED_STORAGE:5},fid={LIMITED:1,UNLIMITED:2,POOLED:3},did={unknown:0,requireLessSecureLinks:1,removeLessSecureLinks:2,userCanChoose:3};
var hid={TYPE_UNSPECIFIED:0,MOBILE:1,SYNC_CLIENT:2,APP:3},iid={TYPE_UNSPECIFIED:0,MY_DRIVE_ROOT:1,SHARED_DRIVE_ROOT:2,STANDARD_FOLDER:3},jid={TYPE_UNSPECIFIED:0,USER_DELETION:1,TRASH_AUTO_PURGE:2},kid={TYPE_UNSPECIFIED:0,TRASH:1,PERMANENT_DELETE:2},lid={TYPE_UNSPECIFIED:0,UNTRASH:1,REVIVE:2},mid={ROLE_UNSPECIFIED:0,OWNER:1,ORGANIZER:2,FILE_ORGANIZER:3,EDITOR:4,COMMENTER:5,VIEWER:6,PUBLISHED_VIEWER:7},nid={SUBTYPE_UNSPECIFIED:0,ADDED:1,DELETED:2,REPLY_ADDED:3,REPLY_DELETED:4,RESOLVED:5,REOPENED:6},
oid={SUBTYPE_UNSPECIFIED:0,ADDED:1,DELETED:2,REPLY_ADDED:3,REPLY_DELETED:4,RESOLVED:5,REOPENED:6,REASSIGNED:7},pid={SUBTYPE_UNSPECIFIED:0,ADDED:1,DELETED:2,REPLY_ADDED:3,REPLY_DELETED:4,ACCEPTED:7,REJECTED:8,ACCEPT_DELETED:9,REJECT_DELETED:10},qid={TYPE_UNSPECIFIED:0,FLAGGED:1,CLEARED:2},rid={TYPE_UNSPECIFIED:0,LOADED_FOR_VIEW:1,VIEWED_MORE_CONTENT:2,OPEN_WITH_APP_INITIATED:3},sid={DOMAIN_VISIBILITY_UNKNOWN:0,DOMAIN_VISIBILITY_CONSUMER:1,DOMAIN_VISIBILITY_SAME_DOMAIN:2,DOMAIN_VISIBILITY_ALL_DOMAINS:3,
DOMAIN_VISIBILITY_RESTRICTED:4},tid={NAMED_PARTY_UNKNOWN:0,NAMED_PARTY_UNNAMED:1,NAMED_PARTY_NAMED:2},uid={TYPE_UNSPECIFIED:0,DOWNLOADED:1,DOWNLOAD_INITIATED:2,PRINT_INITIATED:3},vid={UNSPECIFIED_REFERENCE_TYPE:0,LINK:1,DISCUSS:2},wid={FEATURE_UNSPECIFIED:0,SHARING_OUTSIDE_DOMAIN:1,DIRECT_SHARING:2,ITEM_DUPLICATION:3,DRIVE_FILE_STREAM:4},xid={RESTRICTION_UNSPECIFIED:0,UNRESTRICTED:1,FULLY_RESTRICTED:2},yid={STATUS_UNSPECIFIED:0,IN_PROGRESS:1,COMPLETED:2,CANCELLED:3},zid={DECISION_UNSPECIFIED:0,APPROVED:1,
DECLINED:2},Aid={TYPE_UNSPECIFIED:0,LABEL_ADDED:1,LABEL_REMOVED:2,LABEL_FIELD_VALUE_CHANGED:3},Bid={PUBLISH_MODE_UNSPECIFIED:0,NONE:1,FIXED:2,AUTO:3},Cid={REASON_UNSPECIFIED:0,ORPHAN_REPARENTED:1},Jid=function(a){return a.map(function(b){var c=new _.k8c;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;switch(d){case "primaryActionDetail":d=Did(e);_.A(c,2,d);break;case "actors":d=Eid(e);_.Cb(c,3,d);break;case "actions":d=Fid(e);_.Cb(c,
4,d);break;case "targets":d=Gid(e);_.Cb(c,5,d);break;case "timestamp":c.O(Hid(e));break;case "timeRange":d=Iid(e),_.fk(c,7,j8c[0],d)}}return c})},Fid=function(a){return a.map(function(b){var c=new _.h8c;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;switch(d){case "detail":d=Did(e);_.A(c,1,d);break;case "source":d=new a8c;e=_.m(Object.entries(e));for(var f=e.next();!f.done;f=e.next()){var h=_.m(f.value);f=h.next().value;h=h.next().value;
switch(f){case "type":_.bk(d,2,hid[h]);break;case "appId":_.ak(d,1,h)}}_.A(c,2,d);break;case "actor":d=Kid(e);_.A(c,3,d);break;case "target":d=Lid(e);_.A(c,4,d);break;case "timestamp":c.O(Hid(e));break;case "timeRange":d=Iid(e),_.fk(c,6,g8c[0],d)}}return c})},Gid=function(a){return a.map(function(b){return Lid(b)})},Nid=function(a){return a.map(function(b){return Mid(b)})},Lid=function(a){var b=new _.f8c;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;
d=d.next().value;switch(c){case "driveItem":c=Oid(d);_.fk(b,1,_.e8c[0],c);break;case "drive":c=new _.b8c;d=_.m(Object.entries(d));for(var e=d.next();!e.done;e=d.next()){var f=_.m(e.value);e=f.next().value;f=f.next().value;switch(e){case "name":c.$c(f);break;case "title":c.setTitle(f);break;case "root":e=Oid(f),_.A(c,3,e)}}_.fk(b,5,_.e8c[0],c);break;case "fileComment":c=new _.c8c;d=_.m(Object.entries(d));for(e=d.next();!e.done;e=d.next())switch(f=_.m(e.value),e=f.next().value,f=f.next().value,e){case "legacyCommentId":_.ak(c,
1,f);break;case "legacyDiscussionId":_.ak(c,2,f);break;case "linkToDiscussion":_.ak(c,3,f);break;case "parent":c.Dg(Oid(f))}_.fk(b,3,_.e8c[0],c)}}return b},Mid=function(a){var b=new _.s7c;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "driveItem":c=new q7c;d=_.m(Object.entries(d));for(var e=d.next();!e.done;e=d.next()){var f=_.m(e.value);e=f.next().value;f=f.next().value;switch(e){case "name":c.$c(f);break;case "title":c.setTitle(f);
break;case "driveFile":e=c;f=new o7c;_.fk(e,8,p7c[0],f);break;case "driveFolder":e=Pid(f);_.fk(c,9,p7c[0],e);break;case "driveShortcut":e=Qid(f),_.fk(c,10,p7c[0],e)}}_.fk(b,1,r7c[0],c);break;case "drive":c=Rid(d),_.fk(b,3,r7c[0],c)}}return b},Oid=function(a){var b=new n7c;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "name":b.$c(d);break;case "title":b.setTitle(d);break;case "mimeType":_.ak(b,6,d);break;case "version":_.Yj(b,
5,d);break;case "owner":c=new i7c;d=_.m(Object.entries(d));for(var e=d.next();!e.done;e=d.next()){var f=_.m(e.value);e=f.next().value;f=f.next().value;switch(e){case "domain":e=Sid(f);_.A(c,3,e);break;case "user":e=OO(f);_.fk(c,1,h7c[0],e);break;case "drive":e=Rid(f),_.fk(c,4,h7c[0],e)}}_.A(b,7,c);break;case "driveFile":c=new o7c;_.fk(b,8,j7c[0],c);break;case "driveFolder":c=Pid(d);_.fk(b,9,j7c[0],c);break;case "driveShortcut":c=Qid(d),_.fk(b,10,j7c[0],c)}}return b},Rid=function(a){var b=new f7c;
a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "name":b.$c(d);break;case "title":b.setTitle(d)}}return b},Pid=function(a){var b=new _.l7c;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "type":_.bk(b,6,iid[d])}}return b},Qid=function(a){var b=new _.m7c;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);
c=d.next().value;d=d.next().value;switch(c){case "targetName":_.ak(b,1,d);break;case "targetMimeType":_.ak(b,2,d)}}return b},Eid=function(a){return a.map(function(b){return Kid(b)})},Kid=function(a){var b=new _.$7c;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "user":c=OO(d);_.fk(b,1,_.Z7c[0],c);break;case "anonymous":c=new W7c;_.fk(b,2,_.Z7c[0],c);break;case "impersonation":c=new _.X7c;d=_.m(Object.entries(d));
for(var e=d.next();!e.done;e=d.next()){var f=_.m(e.value);e=f.next().value;f=f.next().value;switch(e){case "impersonatedUser":e=OO(f),_.A(c,1,e)}}_.fk(b,3,_.Z7c[0],c);break;case "system":c=new _.Y7c;d=_.m(Object.entries(d));for(e=d.next();!e.done;e=d.next())switch(f=_.m(e.value),e=f.next().value,f=f.next().value,e){case "type":_.bk(c,1,jid[f])}_.fk(b,4,_.Z7c[0],c);break;case "administrator":c=new _.V7c,_.fk(b,5,_.Z7c[0],c)}}return b},Tid=function(a){return a.map(function(b){return OO(b)})},OO=function(a){var b=
new _.N6c;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "knownUser":c=new _.FN;d=_.m(Object.entries(d));for(var e=d.next();!e.done;e=d.next()){var f=_.m(e.value);e=f.next().value;f=f.next().value;switch(e){case "personName":_.ak(c,1,f);break;case "isCurrentUser":_.Zj(c,2,f);break;case "displayName":_.ak(c,3,f);break;case "photoUrl":c.Fn(f)}}_.fk(b,2,_.L6c[0],c);break;case "unknownUser":c=new O6c;_.fk(b,4,_.L6c[0],
c);break;case "deletedUser":c=new _.M6c,_.fk(b,3,_.L6c[0],c)}}return b},Hid=function(a){var b=(new Date(a)).getTime();a=Math.floor(b/1E3);b=b%1E3*1E6;return _.s1a((new _.Rw).setSeconds(a),b)},Iid=function(a){var b=new _.MN;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "startTime":b.TX(Hid(d));break;case "endTime":b.YE(Hid(d))}}return b},Sid=function(a){var b=new _.e7c;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=
a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "name":b.$c(d);break;case "legacyId":_.ak(b,3,d);break;case "audienceDisplayName":_.ak(b,4,d)}}return b},Did=function(a){for(var b=new _.LN,c=_.m(Object.entries(a)),d=c.next();!d.done;d=c.next()){var e=_.m(d.value),f=e.next().value,h=e.next().value;switch(f){case "create":for(var k=new _.v7c,l=_.m(Object.entries(h)),p=l.next();!p.done;p=l.next()){var q=_.m(p.value),t=q.next().value,u=q.next().value;switch(t){case "new":var y=
k,z=new w7c;_.fk(y,1,_.t7c[0],z);break;case "upload":var F=k,G=new x7c;_.fk(F,2,_.t7c[0],G);break;case "copy":for(var I=u,M=new _.u7c,R=_.m(Object.entries(I)),Z=R.next();!Z.done;Z=R.next()){var fa=_.m(Z.value),ra=fa.next().value,Ba=fa.next().value;switch(ra){case "originalObject":var za=Mid(Ba);_.A(M,1,za)}}_.fk(k,3,_.t7c[0],M)}}_.fk(b,1,_.KN[0],k);break;case "edit":var Aa=new C7c;_.fk(b,2,_.KN[0],Aa);break;case "move":for(var La=new _.H7c,Ca=_.m(Object.entries(h)),Lb=Ca.next();!Lb.done;Lb=Ca.next()){var uc=
_.m(Lb.value),fc=uc.next().value,gd=uc.next().value;switch(fc){case "addedParents":var Ed=Nid(gd);_.Cb(La,1,Ed);break;case "removedParents":var Zb=Nid(gd);_.Cb(La,2,Zb);break;case "fromOwnershipTransfer":_.Zj(La,3,gd);break;case "reparents":var Lc=gd.map(Uid);_.Cb(La,4,Lc)}}_.fk(b,3,_.KN[0],La);break;case "rename":for(var md=new _.N7c,gf=_.m(Object.entries(h)),yc=gf.next();!yc.done;yc=gf.next()){var ub=_.m(yc.value),Vg=ub.next().value,ph=ub.next().value;switch(Vg){case "oldTitle":_.ak(md,1,ph);break;
case "newTitle":_.ak(md,2,ph)}}_.fk(b,4,_.KN[0],md);break;case "delete":for(var $d=new _.A7c,qg=_.m(Object.entries(h)),Bj=qg.next();!Bj.done;Bj=qg.next()){var hj=_.m(Bj.value),Gi=hj.next().value,Nn=hj.next().value;switch(Gi){case "type":_.bk($d,1,kid[Nn])}}_.fk(b,5,_.KN[0],$d);break;case "restore":for(var of=new _.O7c,Ig=_.m(Object.entries(h)),qh=Ig.next();!qh.done;qh=Ig.next()){var xk=_.m(qh.value),rh=xk.next().value,wi=xk.next().value;switch(rh){case "type":_.bk(of,1,lid[wi])}}_.fk(b,6,_.KN[0],
of);break;case "permissionChange":for(var yk=new _.K7c,sh=_.m(Object.entries(h)),Th=sh.next();!Th.done;Th=sh.next()){var eg=_.m(Th.value),en=eg.next().value,Ff=eg.next().value;switch(en){case "addedPermissions":var Vj=Vid(Ff);_.Cb(yk,1,Vj);break;case "removedPermissions":var Xk=Vid(Ff);_.Cb(yk,2,Xk);break;case "resharedPermissions":var Lj=Vid(Ff);_.Cb(yk,3,Lj);break;case "otherActivePermissions":var zk=Vid(Ff);_.Cb(yk,4,zk)}}_.fk(b,7,_.KN[0],yk);break;case "comment":for(var Wi=new _.d7c,th=_.m(Object.entries(h)),
uh=th.next();!uh.done;uh=th.next()){var Wg=_.m(uh.value),Hh=Wg.next().value,gh=Wg.next().value;switch(Hh){case "post":for(var Xi=gh,Ih=new _.a7c,ki=_.m(Object.entries(Xi)),Ml=ki.next();!Ml.done;Ml=ki.next()){var Yk=_.m(Ml.value),Ak=Yk.next().value,pf=Yk.next().value;switch(Ak){case "subtype":_.bk(Ih,1,nid[pf])}}_.fk(Wi,1,_.$6c[0],Ih);break;case "assignment":for(var vh=gh,hc=new _.b7c,Uh=_.m(Object.entries(vh)),ij=Uh.next();!ij.done;ij=Uh.next()){var se=_.m(ij.value),li=se.next().value,vf=se.next().value;
switch(li){case "subtype":_.bk(hc,1,oid[vf]);break;case "assignedUser":var Ao=OO(vf);_.A(hc,7,Ao)}}_.fk(Wi,2,_.$6c[0],hc);break;case "suggestion":for(var hm=gh,Hi=new _.c7c,Be=_.m(Object.entries(hm)),jj=Be.next();!jj.done;jj=Be.next()){var fn=_.m(jj.value),ik=fn.next().value,Wf=fn.next().value;switch(ik){case "subtype":_.bk(Hi,1,pid[Wf])}}_.fk(Wi,3,_.$6c[0],Hi);break;case "mentionedUsers":var ke=Tid(gh);_.Cb(Wi,7,ke)}}_.fk(b,8,_.KN[0],Wi);break;case "dlpChange":for(var Ii=new _.z7c,Ye=_.m(Object.entries(h)),
Em=Ye.next();!Em.done;Em=Ye.next()){var jk=_.m(Em.value),Mj=jk.next().value,wf=jk.next().value;switch(Mj){case "type":_.bk(Ii,1,qid[wf])}}_.fk(b,9,_.KN[0],Ii);break;case "view":for(var gn=new U7c,hn=_.m(Object.entries(h)),jn=hn.next();!jn.done;jn=hn.next()){var Gp=_.m(jn.value),Pl=Gp.next().value,pi=Gp.next().value;switch(Pl){case "type":_.bk(gn,1,rid[pi]);break;case "viewHistoryVisibility":for(var Jk=pi,Kk=new T7c,To=_.m(Object.entries(Jk)),um=To.next();!um.done;um=To.next()){var tn=_.m(um.value),
Uo=tn.next().value,Hp=tn.next().value;switch(Uo){case "domainPolicyVisibilityState":_.bk(Kk,1,sid[Hp]);break;case "namedPartyState":_.bk(Kk,2,tid[Hp])}}_.A(gn,2,Kk)}}_.fk(b,10,_.KN[0],gn);break;case "download":for(var tR=new B7c,TM=_.m(Object.entries(h)),EI=TM.next();!EI.done;EI=TM.next()){var nxa=_.m(EI.value),oxa=nxa.next().value,Aga=nxa.next().value;switch(oxa){case "type":_.bk(tR,1,uid[Aga])}}_.fk(b,11,_.KN[0],tR);break;case "reference":for(var Bga=new _.G6c,Cga=_.m(Object.entries(h)),c6=Cga.next();!c6.done;c6=
Cga.next()){var vxb=_.m(c6.value),wxb=vxb.next().value,pxa=vxb.next().value;switch(wxb){case "type":_.bk(Bga,1,vid[pxa]);break;case "context":for(var xxb=Bga,yxb=xxb.dj,zxb=pxa,FYa=new F6c,GYa=_.m(Object.entries(zxb)),Dga=GYa.next();!Dga.done;Dga=GYa.next()){var Axb=_.m(Dga.value),Bxb=Axb.next().value,HYa=Axb.next().value;switch(Bxb){case "description":FYa.tm(HYa);break;case "url":_.ak(FYa,2,HYa)}}yxb.call(xxb,FYa)}}_.fk(b,12,_.KN[0],Bga);break;case "settingsChange":for(var Cxb=new _.R7c,IYa=_.m(Object.entries(h)),
Ega=IYa.next();!Ega.done;Ega=IYa.next()){var Dxb=_.m(Ega.value),Exb=Dxb.next().value,Fxb=Dxb.next().value;switch(Exb){case "restrictionChanges":var hrc=Wid(Fxb);_.Cb(Cxb,1,hrc)}}_.fk(b,13,_.KN[0],Cxb);break;case "approvalChange":for(var Tx=new _.R6c,qxa=_.m(Object.entries(h)),JYa=qxa.next();!JYa.done;JYa=qxa.next()){var KYa=_.m(JYa.value),Gxb=KYa.next().value,UM=KYa.next().value;switch(Gxb){case "approvalName":_.ak(Tx,2,UM);break;case "approvalEventNames":_.B(Tx,3,UM||[]);break;case "initiator":var Hxb=
OO(UM);_.A(Tx,4,Hxb);break;case "reviewers":var LYa=Tid(UM);_.Cb(Tx,5,LYa);break;case "status":Tx.Dc(yid[UM]);break;case "dueTime":var irc=Hid(UM);_.A(Tx,7,irc);break;case "approvalRequested":var Ixb=Tx,Jxb=new S6c;_.fk(Ixb,8,_.GN[0],Jxb);break;case "approvalCancelled":var rxa=Tx,Kxb=new T6c;_.fk(rxa,9,_.GN[0],Kxb);break;case "reviewerResponded":for(var Lxb=UM,MYa=new _.Q6c,NYa=_.m(Object.entries(Lxb)),Fga=NYa.next();!Fga.done;Fga=NYa.next()){var OYa=_.m(Fga.value),Mxb=OYa.next().value,Nxb=OYa.next().value;
switch(Mxb){case "reviewerDecision":_.bk(MYa,1,zid[Nxb])}}_.fk(Tx,10,_.GN[0],MYa);break;case "commentAdded":var Oxb=Tx,Pxb=new U6c;_.fk(Oxb,11,_.GN[0],Pxb);break;case "reviewersChanged":for(var Qxb=UM,sxa=new W6c,PYa=_.m(Object.entries(Qxb)),txa=PYa.next();!txa.done;txa=PYa.next()){var xae=_.m(txa.value),jGg=xae.next().value,kGg=xae.next().value;switch(jGg){case "reviewerChanges":var mGg=Xid(kGg);_.Cb(sxa,1,mGg)}}_.fk(Tx,12,_.GN[0],sxa);break;case "dueTimeChanged":for(var nGg=UM,yae=new Y6c,zae=_.m(Object.entries(nGg)),
Muc=zae.next();!Muc.done;Muc=zae.next()){var Aae=_.m(Muc.value),oGg=Aae.next().value,pGg=Aae.next().value;switch(oGg){case "oldDueTime":var qGg=Hid(pGg);_.A(yae,1,qGg)}}_.fk(Tx,13,_.GN[0],yae)}}_.fk(b,18,_.KN[0],Tx);break;case "lock":var rGg=new E7c;_.fk(b,15,_.KN[0],rGg);break;case "unlock":var sGg=new S7c;_.fk(b,16,_.KN[0],sGg);break;case "appliedLabelChange":for(var Bae=new _.K6c,Cae=_.m(Object.entries(h)),Nuc=Cae.next();!Nuc.done;Nuc=Cae.next()){var Dae=_.m(Nuc.value),tGg=Dae.next().value,uGg=
Dae.next().value;switch(tGg){case "changes":var wGg=Yid(uGg);_.Cb(Bae,1,wGg)}}_.fk(b,19,_.KN[0],Bae);break;case "publishChange":for(var Ouc=new _.M7c,Eae=_.m(Object.entries(h)),Puc=Eae.next();!Puc.done;Puc=Eae.next()){var Fae=_.m(Puc.value),xGg=Fae.next().value,Gae=Fae.next().value;switch(xGg){case "oldPublishState":var yGg=Zid(Gae);_.A(Ouc,1,yGg);break;case "newPublishState":var zGg=Zid(Gae);_.A(Ouc,2,zGg)}}_.fk(b,20,_.KN[0],Ouc);break;case "linkShareMetadataChange":for(var Iae=new _.D7c,Jae=_.m(Object.entries(h)),
Quc=Jae.next();!Quc.done;Quc=Jae.next()){var Kae=_.m(Quc.value),AGg=Kae.next().value,BGg=Kae.next().value;switch(AGg){case "securityUpdateEnabled":_.Zj(Iae,1,BGg)}}_.fk(b,21,_.KN[0],Iae)}}return b},Uid=function(a){var b=new _.G7c;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "reason":_.bk(b,1,Cid[d])}}return b},Vid=function(a){return a.map(function(b){var c=new _.JN;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=
b.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;switch(d){case "role":_.bk(c,1,mid[e]);break;case "user":d=OO(e);_.fk(c,2,_.IN[0],d);break;case "group":d=new _.HN;e=_.m(Object.entries(e));for(var f=e.next();!f.done;f=e.next()){var h=_.m(f.value);f=h.next().value;h=h.next().value;switch(f){case "email":_.ak(d,1,h);break;case "title":d.setTitle(h)}}_.fk(c,3,_.IN[0],d);break;case "domain":d=Sid(e);_.fk(c,4,_.IN[0],d);break;case "anyone":d=new I7c;_.fk(c,5,_.IN[0],d);break;case "allowDiscovery":_.Zj(c,
6,e)}}return c})},Wid=function(a){return a.map(function(b){var c=new _.Q7c;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;switch(d){case "feature":_.bk(c,1,wid[e]);break;case "newRestriction":_.bk(c,2,xid[e])}}return c})},Xid=function(a){return a.map(function(b){var c=new X6c;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;switch(d){case "removedReviewer":d=OO(e);
_.A(c,3,d);break;case "addedReviewer":d=OO(e),_.A(c,4,d)}}return c})},Yid=function(a){return a.map(function(b){var c=new _.J6c;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;switch(d){case "label":c.Ad(e);break;case "types":d=$id(e),_.B(c,2,d||[])}}return c})},$id=function(a){return a.map(function(b){return Aid[b]})},Zid=function(a){var b=new _.L7c;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);
c=d.next().value;d=d.next().value;switch(c){case "publishMode":_.bk(b,1,Bid[d]);break;case "signinRequired":_.Zj(b,2,d);break;case "publishedTime":c=Hid(d),_.A(b,3,c)}}return b};
var bjd=function(a,b){var c=new gdd;b=_.B(c,4,b);a&&"drive#app"==a.kind&&(a=ajd(a),_.A(b,2,a));return b},ajd=function(a){_.OM(["drive#app"],a);var b=(new _.CN).Pb(a.id);b=_.B(b,3,a.useByDefault).$c(a.name);b=_.B(b,7,a.openUrlTemplate);b=w6c(v6c(b,a.primaryMimeTypes),a.secondaryMimeTypes);b=_.B(b,8,a.createUrl);b=_.B(b,9,a.createInFolderTemplate);b=_.B(b,10,a.objectType);b=_.B(b,11,a.supportsCreate);b=_.B(b,12,a.supportsImport);b=_.B(b,13,a.supportsMultiOpen);b=_.B(b,27,a.supportsOfflineCreate);b=
_.B(b,14,a.installed);b=_.B(b,15,a.authorized);b=_.B(b,16,a.productUrl);b=_.B(b,17,a.primaryFileExtensions||[]);b=_.B(b,18,a.secondaryFileExtensions||[]);b=_.B(b,19,a.shortDescription);b=_.B(b,20,a.longDescription);b=_.B(b,21,a.productId);b=_.B(b,22,a.removable);b=_.B(b,23,cjd[a.type]);b=_.B(b,25,a.hasAppData);b=_.B(b,26,a.appDataQuotaBytesUsed);b=_.B(b,28,a.requiresAuthorizationBeforeOpenWith);b=_.B(b,30,a.hasDriveWideScope);b=_.B(b,31,a.driveSource);b=_.B(b,32,a.driveBranded);b=_.B(b,33,a.hidden);
b=_.B(b,34,a.supportsMobileBrowser);b=_.B(b,35,a.supportsTeamDrives);b=_.B(b,36,a.hasGsmListing);for(var c=a.icons||[],d=[],e=0;e<c.length;e++){var f=d,h=f.push,k=c[e],l=new _.q6c;l=_.B(l,3,k.iconUrl).setSize(k.size);k.category&&_.B(l,1,djd[k.category]);h.call(f,l)}_.Cb(b,6,d);c=a.chromeExtensionIds||[];d=[];for(e=0;e<c.length;e++)d.push(c[e]);_.B(b,24,d||[]);c=a.rankingInfo||{};a=new _.t6c;d=c.absoluteScore;null!=d&&_.B(a,1,Number(d));d=ejd(c.mimeTypeScores||[]);_.Cb(a,2,d);c=ejd(c.fileExtensionScores||
[]);_.Cb(a,3,c);_.A(b,29,a);return b},ejd=function(a){for(var b=[],c=0;c<a.length;c++){var d=new _.r6c;d=_.B(d,1,a[c].type);d=_.B(d,2,Number(a[c].score));b.push(d)}return b},cjd={WEB_ONLY:1,WEB_AND_CHROME_EXTENSION:2,CHROME_EXTENSION_ONLY:3},djd={application:1,document:2,documentShared:3};
var gjd=function(a){var b=new ded;if(!a.backups)return b;a=a.backups.map(function(c){var d=(new _.sO).Pb(c.id).setTitle(c.title);d=_.B(d,3,_.PM(c.updateTime));d=_.B(d,4,fjd[c.backupSource]);d=_.B(d,5,c.iconUri);d=_.B(d,8,_.PM(c.expiryTime));d=_.B(d,9,"boolean"===typeof c.hasGoogleoneBackup?c.hasGoogleoneBackup:!1);if(1===d.Fy()){var e=new Pcd;e=_.B(e,1,c.whatsappOngoingBackupEnabled);c=_.B(e,2,c.whatsappPhoneNumber);_.A(d,6,c)}else 2===d.Fy()&&(e=new _.Ocd,e=_.B(e,1,c.deviceName),e=_.B(e,2,c.deviceModelName),
e=_.B(e,3,c.shouldIncludeSpecialSyncItems),c=_.B(e,4,c.deviceAndroidId),_.A(d,7,c));return d});_.Cb(b,2,a);return b},ijd=function(a){var b=new $dd;if(!a.backupItems)return b;a=a.backupItems.map(function(c){var d=(new _.tO).Pb(c.id);d=_.B(d,1,hjd[c.type]).setTitle(c.title);d=_.B(d,4,c.iconUri);d=_.Qcd(d.setSize(c.size),_.PM(c.updateTime));d=_.B(d,7,c.hasCustomBehavior).tm(c.description);return _.B(d,9,c.ongoingSyncEnabled)});_.Cb(b,1,a);return b},fjd={BACKUP_SOURCE_UNSPECIFIED:0,BACKUP_SOURCE_WHATSAPP:1,
BACKUP_SOURCE_ANDROID:2},hjd={TYPE_UNSPECIFIED:0,TYPE_APP:1,TYPE_SYNC_CALENDAR:2,TYPE_SYNC_CONTACTS:3,TYPE_SYNC_PHOTOS_AND_VIDEOS:4,TYPE_CALL_HISTORY:5,TYPE_DEVICE_SETTINGS:6,TYPE_SMS:7,TYPE_MMS:8};
var jjd=function(a,b){this.H=a;this.O=b};
var kjd={read:2,write:3,comment:4},ljd=function(a,b,c){var d=c.itemId;c=c.driveItem;d=_.oF((new _.hl).Pb(d).setTitle(c.title),c.mimeType);c.userCapabilities&&_.cM(d,_.m_c(c.userCapabilities));_.qM(b).includes(19)&&_.lWc(d,!0);ebd(a,d,_.qM(b));_.mWc(d,4);return d},njd=function(a,b,c){var d=[];(c.item||[]).forEach(function(e){if(e.driveItem){var f=new _.Zna;f=_.B(f,2,mjd(e));e=ljd(a,b,e);e=_.A(e,100,f);d.push(e)}});c=(new _.gA).tw(d).hP(c.suggestionSessionId);return _.UYc(new _.IM,c)},pjd=function(a,
b,c){var d=[],e=[];(c.item||[]).forEach(function(f){if(f.person){var h=f.itemId,k=ojd(f.person).Pb(h);(f.childItem||[]).forEach(function(l){e.some(function(t){return t.getId()===h})||e.push(k);var p=l.itemId,q=d.find(function(t){return t.getId()===p});q||(q=ljd(a,b,l),d.push(q));l=F3c(E3c(D3c(new _.Wna,k.clone()),mjd(l)),l.url);_.gk(q,107,l,_.Wna,void 0)})}});return c5c((new _.zM).tw(d),e).hP(c.suggestionSessionId)},ojd=function(a){return _.AVc((new _.Qk).Pb(a.id).$c(a.displayName),a.emailAddress).Fn(a.photoUrl)},
rjd=function(a,b,c){var d=[];(c.item||[]).forEach(function(e){if(e.driveItem){var f=ljd(a,b,e);e=qjd(e);f=_.Cb(f,117,e);d.push(f)}});c=(new _.gA).tw(d).hP(c.suggestionSessionId);return _.UYc(new _.IM,c)},qjd=function(a){var b=a.action;return b?b.map(function(c){var d=new _.Dna,e=sjd(c);e&&_.fk(d,2,_.Tk[0],e);(e=tjd(c))&&v2c(d,e);(e=ujd(c))&&_.fk(d,4,_.Tk[0],e);(e=vjd(c))&&_.fk(d,5,_.Tk[0],e);(e=wjd(c))&&_.fk(d,6,_.Tk[0],e);(e=xjd(c))&&_.fk(d,7,_.Tk[0],e);(e=yjd(c))&&_.fk(d,8,_.Tk[0],e);(e=zjd(c))&&
_.fk(d,9,_.Tk[0],e);(e=Ajd(c))&&_.fk(d,10,_.Tk[0],e);(c=Bjd(c))&&_.fk(d,11,_.Tk[0],c);return d}):(a=PO(a),a=f3c([a]),[v2c(new _.Dna,a)])},Djd=function(a){return(a.justification||[]).map(function(b){return Cjd(b)})},PO=function(a){return(a=a.justification)?Cjd(a):null},Cjd=function(a){var b=s2c(new _.Sk,Ejd(a.displayText)),c=a.primaryPerson,d=a.allPeople;c?(c=ojd(c),_.fk(b,3,_.Cna[0],c),t2c(b,[c])):d?(c=(d.person||[]).map(function(e){return ojd(e)}),d=r2c(c),_.fk(b,4,_.Cna[0],d),t2c(b,c)):(c=(a.person||
[]).map(function(e){return ojd(e)}),c.length&&(d=r2c(c),_.fk(b,4,_.Cna[0],d),t2c(b,c)));_.B(b,5,_.PM(a.eventTime));u2c(b,Ejd(a.justificationDescription));return b},Ejd=function(a){if(!a)return null;a=a.textSegment||[];return o2c(new _.Ana,a.map(function(b){var c=(new _.Ok).kh(b.text),d=b.link;if(d){var e=new _.Pk;d=_.B(e,1,d.url)}else d=null;c=_.A(c,2,d);c=_.B(c,3,b.bold);return _.B(c,4,b.italic)}))},sjd=function(a){a=a.documentDocosAction;if(!a)return null;var b=U2c(new _.Jna,PO(a));T2c(b,(a.subAction||
[]).map(function(c){var d=new _.Lna;c.reply?(c=new _.Fna,_.fk(d,1,_.Kna[0],c)):c.resolve?(c=new C2c,_.fk(d,2,_.Kna[0],c)):c.reassign?(c=new A2c,_.fk(d,3,_.Kna[0],c)):c.acceptSuggestion?(c=new w2c,_.fk(d,4,_.Kna[0],c)):c.rejectSuggestion?(c=new B2c,_.fk(d,5,_.Kna[0],c)):c.openThread&&(c=new _.Ena,_.fk(d,6,_.Kna[0],c));return d}));_.B(b,2,a.discussionId);_.B(b,3,a.postId);V2c(b,Ejd(a.anchorText));return b},ujd=function(a){a=a.documentShareAction;if(!a)return null;var b=Y2c(new _.Wk,PO(a));X2c(b,(a.subAction||
[]).map(function(c){var d=new $2c;c.suggestedShare?(c=new G2c,_.fk(d,1,Z2c[0],c)):c.responseToRequest&&(c=new D2c,_.fk(d,2,Z2c[0],c));return d}));W2c(b,(a.sharee||[]).map(function(c){return ojd(c)}));_.B(b,3,kjd[a.shareeRole]);return b},tjd=function(a){a=a.documentViewAction;if(!a)return null;var b=f3c(Djd(a));e3c(b,(a.subAction||[]).map(function(c){var d=new h3c;c.open?d.lg(new nN):c.reviewEdits&&(c=new E2c,_.fk(d,2,g3c[0],c));return d}));return b},vjd=function(a){a=a.emailViewAction;if(!a)return null;
var b=s3c(new q3c,PO(a));r3c(b,(a.subAction||[]).map(function(c){var d=new u3c;c.openEmail&&d.lg(new y2c);return d}));return b},wjd=function(a){a=a.calendarEventAction;if(!a)return null;var b=M2c(L2c(K2c(new _.Uk,a.eventId),PO(a)),a.guestCount);J2c(b,(a.subAction||[]).map(function(c){var d=new O2c;if(c.viewCalendarEvent){var e=new H2c;_.fk(d,1,N2c[0],e)}c.shareWithAttendees&&(e=new F2c,_.fk(d,2,N2c[0],e));c.present&&(e=new z2c,_.fk(d,3,N2c[0],e));c.openDocument&&(c=new nN,_.fk(d,4,N2c[0],c));return d}));
return b},xjd=function(a){a=a.documentWorkspaceAction;if(!a)return null;var b=m3c(l3c(new j3c,a.workspaceId),PO(a));k3c(b,(a.subAction||[]).map(function(c){var d=new o3c;c.addToWorkspace&&(c=new x2c,_.fk(d,1,n3c[0],c));return d}));return b},yjd=function(a){a=a.documentTopicAction;if(!a)return null;var b=b3c(new _.Zk,PO(a));a3c(b,(a.subAction||[]).map(function(c){var d=new d3c;c.openDocument&&(c=new nN,_.fk(d,1,c3c[0],c));return d}));return b},zjd=function(a){a=a.popularDocumentAction;if(!a)return null;
var b=A3c(new _.bl,PO(a));z3c(b,(a.subAction||[]).map(function(c){var d=new C3c;c.openDocument&&(c=new nN,_.fk(d,1,B3c[0],c));return d}));return b},Ajd=function(a){a=a.collaboratorActivityAction;if(!a)return null;var b=Q2c(new _.Vk,PO(a));P2c(b,(a.subAction||[]).map(function(c){var d=new S2c;c.openDocument&&(c=new nN,_.fk(d,1,R2c[0],c));return d}));return b},Bjd=function(a){a=a.formResponseAction;if(!a)return null;var b=w3c(new _.al,Djd(a));v3c(b,(a.subAction||[]).map(function(c){var d=new y3c;c.openDocument?
(c=new nN,_.fk(d,1,x3c[0],c)):c.viewResponses&&(c=new I2c,_.fk(d,2,x3c[0],c));return d}));return b},mjd=function(a){a=((a.justification||{}).displayText||{}).textSegment||[];return 0<a.length?(a[0]||{}).text||"":""};
var Fjd=function(a,b){this.H=a;this.O=b},Hjd=function(a,b,c){_.OM(["drive#categoryMetadataList"],c);var d=new BN,e=Object.values(c.categoryMetadata||{});k6c(d,e.map(function(f){return Gjd(a,f,b.Kc())}));d.Dc(1);return new _.CM(d,Fcd(c))},Jjd=function(a,b){var c=new yO;odd(c,(b.categories||[]).map(function(d){return Ijd(a,d)}));c.Dc(1);return new D8c(c,Fcd(b))},Gjd=function(a,b,c){_.OM(["drive#categoryMetadata"],b);c=$5c((new zN).$c(b.categoryName),c);b=Object.values(b.attributeValues||[]);Z5c(c,b.map(function(d){return Kjd(a,
d)}).filter(function(d){return d}));return c},Ijd=function(a,b){var c=M5c(L5c((new wN).$c(b.name),b.categoryName),b.latestName).setTitle(b.title).tm(b.description);N5c(c,(b.attributes||[]).map(function(d){var e=d.type;var f=(new I5c).Pb(d.id);f=_.B(f,2,d.queryGuid);f=_.B(f,3,d.helpText);f=_.B(f,4,d.displayName);if(d.attributeDisplayHints){var h=Ljd(d.attributeDisplayHints);_.A(f,5,h)}if(d.capabilities){h=d.capabilities;var k=new q5c;k=_.B(k,1,h.canSearch);h=_.B(k,2,h.canWrite);_.A(f,6,h)}_.B(f,7,
Mjd[e]);d=d[Njd(e)+"Options"];return Ojd(a,f,e,d)?f:null}).filter(function(d){return d}));b.createdBy&&O5c(c,Pjd(b.createdBy));b.updatedBy&&P5c(c,Pjd(b.updatedBy));b.publishedBy&&Q5c(c,Pjd(b.publishedBy));_.B(c,9,_.PM(b.createTime));_.B(c,10,_.PM(b.updateTime));_.B(c,11,_.PM(b.publishTime));b.displayHints&&R5c(c,Ljd(b.displayHints));b.capabilities&&S5c(c,Qjd(b.capabilities));b.learnMoreUri&&_.B(c,15,b.learnMoreUri);return c},Kjd=function(a,b){_.OM(["drive#categoryAttributeValue"],b);var c=(new xN).Pb(b.id);
if(b.userScoped)b=Object.values(b.userScoped),X5c(c,b.map(function(d){_.OM(["drive#userScopedAttributeValue"],d);var e=new U5c,f=_.QM(a.H,d.scopedUser);e=_.A(e,1,f);return a.Jb(e,d)?e:null}).filter(function(d){return d})),c.nA(9);else if(!a.Jb(c,b))return null;return c},Ljd=function(a){var b=(new p5c).Qk(a.disabled);b=_.B(b,2,a.hidden);b=_.B(b,3,a.activatedInAllDrives);return _.B(b,4,!!a.required)},Qjd=function(a){var b=new K5c;b=_.B(b,1,a.canSearch);b=_.B(b,2,a.canApply);b=_.B(b,4,a.canRemove);return _.B(b,
3,a.canManageSharedDriveActivation)},Ojd=function(a,b,c,d){return Rjd(a,function(){Sjd(a)[c](b,d)},c,b)},Tjd=function(a){a=void 0===a?{}:a;var b=new t5c;b=_.B(b,1,a.minSize);return _.B(b,2,a.maxSize)},Vjd=function(a){var b=new z5c;A5c(b,(a.choices||[]).map(function(c){var d=(new y5c).Ad(c.label).Jb(c.value);c.description&&d.tm(c.description);if(c.capabilities){var e=c.capabilities;var f=new w5c;f=_.B(f,1,e.canSearch);e=_.B(f,2,e.canSelect);_.A(d,3,e)}c.displayHints&&(c=c.displayHints,e=(new x5c).Qk(c.disabled),
e=_.B(e,2,c.hidden),c.badgePriority&&_.B(e,5,c.badgePriority),c.badgeColors&&(f=Ujd(c.badgeColors),_.A(e,3,f)),c.darkBadgeColors&&(c=Ujd(c.darkBadgeColors),_.A(e,4,c)),_.A(d,4,e));return d}));return b},Ujd=function(a){var b=new o5c;var c=Wjd(a.backgroundColor);b=_.A(b,1,c);c=Wjd(a.foregroundColor);b=_.A(b,2,c);a=Wjd(a.soloColor);return _.A(b,3,a)},Wjd=function(a){var b=new _.BE;b=_.Xj(b,1,a.red,0);b=_.Xj(b,2,a.green,0);b=_.Xj(b,3,a.blue,0);a.alpha&&(a=(new d4c).Jb(a.alpha),_.A(b,4,a));return b},Xjd=
function(a){var b=new D5c;b=_.B(b,1,a.showThousandsSeparator);b=_.B(b,2,a.minValue);return _.B(b,3,a.maxValue)},Yjd=function(a){var b=(new _.doa).setYear(a.year).setMonth(a.month);return _.B(b,3,a.day)};Fjd.prototype.Jb=function(a,b){var c=this,d=b.valueType.replace(/([A-Z])/g,"_$1").toLowerCase().toUpperCase();a.nA(Mjd[d]);return Rjd(this,function(){Zjd(c)[d](a,b[b.valueType])},b.valueType)};
var Rjd=function(a,b,c,d){try{b()}catch(e){if(e instanceof TypeError&&!(d instanceof F5c))return G4c(a.O,"drive.ds.response.MetadataParser","Response Parser: Error parsing type "+c+"."),!1;throw e;}return!0},Pjd=function(a){return _.yVc(1).Pb(a.personName.split("/")[1])},Njd=function(a){return a.toLowerCase().replace(/_([a-z])/g,function(b,c){return c.toUpperCase()})},Sjd=function(a){return{BOOLEAN:function(b,c){var d=b.t3a;var e=new u5c;e=_.B(e,1,c.trueLabel);c=_.B(e,2,c.falseLabel);return d.call(b,
c)},TEXT:function(b,c){return b.Xca(Tjd(c))},TEXT_LIST:function(b,c){var d=b.t4a;var e=new C5c;e=_.B(e,1,c.maxEntries);c=Tjd(c.options);c=_.A(e,2,c);return d.call(b,c)},LONG_TEXT:function(b,c){var d=new s5c;d=_.B(d,1,c.minSize);c=_.B(d,2,c.maxSize);return _.fk(b,10,uN[0],c)},SELECTION:function(b,c){return b.g4a(Vjd(c))},SELECTION_LIST:function(b,c){var d=b.f4a;var e=new B5c;e=_.B(e,1,c.maxEntries);c=Vjd(c.options);c=_.A(e,2,c);return d.call(b,c)},INTEGER:function(b,c){return b.G3a(Xjd(c))},INTEGER_LIST:function(b,
c){var d=b.F3a;var e=new E5c;e=_.B(e,1,c.maxEntries);c=Xjd(c.options);c=_.A(e,2,c);return d.call(b,c)},USER:function(b){return b.y4a(new G5c)},USER_LIST:function(b,c){var d=b.opa,e=new H5c;c=_.B(e,1,c.maxEntries);e=new G5c;c=_.A(c,2,e);return d.call(b,c)},DATE:function(b,c){var d=b.Voa;var e=new r5c;e=_.B(e,4,c.dateFormat);var f=Yjd(c.minValue);e=_.A(e,2,f);c=Yjd(c.maxValue);c=_.A(e,3,c);return d.call(b,c)},USER_SCOPED:function(b,c){var d=new F5c;d=_.B(d,1,c.canReadCollaboratorValues);var e=c.subtype;
_.B(d,2,Mjd[e]);c=c[Njd(e)+"Options"];Ojd(a,d,e,c);return _.fk(b,16,uN[0],d)}}},Zjd=function(a){return{BOOLEAN:function(b,c){return b.setBooleanValue(c)},TEXT:function(b,c){return b.setTextValue(c)},TEXT_LIST:function(b,c){return b.kpa(c)},LONG_TEXT:function(b,c){return b.setLongTextValue(c)},SELECTION:function(b,c){return b.setSelectionValue(c)},SELECTION_LIST:function(b,c){return b.gpa(c)},INTEGER:function(b,c){return b.setIntegerValue(parseInt(c,10))},INTEGER_LIST:function(b,c){return b.Zoa(c.map(function(d){return parseInt(d,
10)}))},USER:function(b,c){return b.setUserValue(_.QM(a.H,c))},USER_LIST:function(b,c){W5c(b,c.map(function(d){return _.QM(a.H,d)}))},DATE_STRING:function(b,c){return b.setDateStringValue(c)}}},Mjd={BOOLEAN:1,TEXT:2,TEXT_LIST:3,LONG_TEXT:4,SELECTION:5,SELECTION_LIST:6,INTEGER:7,INTEGER_LIST:8,USER_SCOPED:9,USER:10,USER_LIST:11,DATE:12,DATE_STRING:12};
var $jd=function(a){a=a.personResponse;return $9c(new Z9c,a.map(function(b){var c=b.person;b=W9c(new ZN,b.personId);var d=b.$c,e=c;e=void 0===e?{}:e;e=e.metadata;b=d.call(b,e?e.bestDisplayName.displayName:"");d=c;d=void 0===d?{}:d;d=d.email;b=X9c(b,d?d[0].value:"");c=void 0===c?{}:c;c=c.photo?c.photo[0]:null;d=new V9c;c=_.B(d,1,c&&!c.isDefault?c.url:null);return _.A(b,4,c)}))};
var akd=function(a){this.H=a},ckd=function(a,b){_.OM(["drive#teamDriveList","drive#driveList"],b);return(b.items||[]).map(function(c){return bkd(a,c)})},bkd=function(a,b){_.OM(["drive#teamDrive","drive#drive"],b);var c=new _.aoa,d=b.colorRgb;d=d?parseInt(d.substring(1),16):0;_.B(c,2,d);_.B(c,1,b.backgroundImageLink);_.B(c,3,b.trusted);_.B(c,5,b.backgroundImageGridViewLink);_.B(c,6,b.backgroundImageListViewLink);_.B(c,7,b.hidden);_.B(c,9,b.removeSecureLinkUpdateForAllFiles);(d=b.categoryReferences)&&
N0c(c,d.map(function(e){_.OM(["drive#driveCategoryReference"],e);var f=new _.gl;return _.B(f,1,e.category)}));c=_.qWc(_.pWc(_.mWc(_.nWc(M0c(_.oF((new _.hl).Pb(b.id).setTitle(b.name),"application/vnd.google-apps.folder"),c),b.id),2),b.primaryDomainName),b.organizationDisplayName);b.capabilities&&(d=_.MVc(_.m_c(b.capabilities),!0),_.cM(c,d));b.permissionsSummary&&_.oWc(c,_.C_c(a.H,b.permissionsSummary));b.restrictions&&P0c(c,dkd(b.restrictions));return c},dkd=function(a){var b=new G3c;b=_.B(b,1,a.copyRequiresWriterPermission);
b=_.B(b,2,a.disallowDriveFileStream);b=_.B(b,3,a.domainUsersOnly);return _.B(b,4,a.teamMembersOnly)};
var ekd={DRIVE_FE:2,DRIVE_BE:4,EXPLORER:1,GENERAL:3,PSYNCHO:5,SLACK:6,DRIVE_BE_EX:7,DRIVE_SHARING:9,TEAMKIT:10},c2c=_.$a(ekd);
var fkd=function(a){_.OM(["drive#setting"],a);var b=new _.Nb;b=_.B(b,2,a.key);b=_.B(b,1,ekd[a.namespace]);return _.rDa(new _.Ip,b).Jb(a.value)};
var hkd=function(a){_.OM(["drive#workspaceList"],a);var b=a.items||[];b=c$c(new $N,b.map(function(c){return gkd(c)}));return new _.FM(b,Fcd(a))},gkd=function(a){_.OM(["drive#workspace"],a);var b=(new _.mF).Pb(a.id).setTitle(a.title);b=_.B(b,3,_.PM(a.createdDate));return _.B(b,4,_.PM(a.modifiedDate)).Od(ikd[a.state])},jkd=function(a,b,c){var d=c.item||[];return _.t0c(_.s0c(new _.ZM,d.map(function(e){return ljd(a,b,e)})),c.suggestionSessionId)},lkd=function(a,b,c){var d=c.item||[];return E6c(D6c(new EN,
d.map(function(e){return kkd(a,b,e)})),c.suggestionSessionId)},kkd=function(a,b,c){var d=c.driveWorkspace,e=c.childItem||[];return B6c(z6c(A6c(y6c(new DN,c.predictionId).setTitle(d&&d.title),d&&d.workspaceToken),e.map(function(f){return ljd(a,b,f)})),PO(c))},mkd=function(a){var b=new g5c;a.kind&&(a=gkd(a),_.A(b,2,a));b.Dc(1);return b},ikd={active:1,archived:2};
var Z1c={QUEUED:1,COUNTING:3,BUILDING:2,SUCCEEDED:4,FAILED:5};
var nkd=function(a,b,c,d){_.L_c.call(this,b);this.Mg=a;this.ka=c;this.O=d;this.W=null;this.ma=new aid(this.V);this.H=new akd(this.QE);this.oa=new jjd(this.QE,this.H)};_.O(nkd,_.L_c);var okd=function(a){a.W||(a.W=new Fjd(a.V,a.ka));return a.W};
nkd.prototype.ha=function(a,b){if(a instanceof _.eL)return _.u_c(_.Q_c(a));if(a instanceof _.fL)return _.N_c(this,a,b);if(a instanceof _.ZUc)return pkd(this,a.request,b);if(a instanceof _.gL)return _.N_c(this,a,b);if(a instanceof _.iL){if(!b.json)throw _.RM();return m6c((new l6c).Dc(1),bkd(this.H,b.json))}if(a instanceof _.hL)return _.N_c(this,a,b);if(a instanceof _.vM)return new m5c;if(a instanceof _.kL)return qkd(a,b);if(a instanceof _.lL)return bjd(void 0,a.qh());if(a instanceof _.mL)return new eed;
if(a instanceof _.nL)return _.u_c(_.Q_c(a));if(a instanceof _.oL)return new xO;if(a instanceof _.pL)return _.u_c(_.Q_c(a));if(a instanceof _.qL)return _.u_c(_.Q_c(a));if(a instanceof _.SB)return b=new hdd,a=a.getKey(),_.A(b,4,a);if(a instanceof _.rL)return qkd(a,b);if(a instanceof _.uL)return _.u_c(_.Q_c(a));if(a instanceof _.WUc){if(!b.json)throw _.RM();return new B8c(b.json.exportJob.id)}if(a instanceof _.vL){if(!b.json)throw _.RM();a=b.json;b=new cdd;a=ajd(a);return _.A(b,2,a).Dc(1)}if(a instanceof
_.wL)return rkd(a,b);if(a instanceof _.xL){if(!b.json)throw _.RM();a=(new xO).Dc(1);b=_.v_c(this.QE,b.json);return _.A(a,2,b)}if(a instanceof _.IK){a:{if(!b.json)throw _.RM();if(a instanceof _.IK){if((a=a.yd())&&_.yL(a)){b=njd(this.O,this.Mg,b.json);break a}if(a&&_.zL(a)){b=pjd(this.O,this.Mg,b.json);break a}if(a&&_.AL(a)){b=rjd(this.O,this.Mg,b.json);break a}}b=_.r_c(this.QE,b.json,b.headers)}return b}if(a instanceof _.BL){if(!b.json)throw _.RM();return ijd(b.json)}if(a instanceof _.CL){if(!b.json)throw _.RM();
b=b.json;_.OM(["drive#appList"],b);a=new YN;for(var c=[],d=b.items||[],e=0;e<d.length;e++)c.push(ajd(d[e]));a=_.Cb(a,2,c);return _.B(a,4,b.defaultAppIds||[]).Dc(1)}if(a instanceof _.XUc){if(!b.json)throw _.RM();return gjd(b.json)}if(a instanceof _.VK)return skd(this,b);if(a instanceof _.DL){if(!b.json)throw _.RM();a=new fdd;d=this.QE;e=b.json;c=new V4c;d=_.w_c(d,e,"items");c=_.Cb(c,2,d);a=_.A(a,1,c);return _.B(a,2,Fcd(b.json))}if(a instanceof _.EL){if(!b.json)throw _.RM();a=this.QE;d=b.json;b=new X4c;
_.OM(["drive#revisionList"],d);c=[];d=d.items||[];for(e=0;e<d.length;e++){var f=_.s_c(a,d[e]);c.push(f)}return _.Cb(b,2,c)}if(a instanceof _.rK)return tkd(a,b);if(a instanceof _.GL){if(!b.json)throw _.RM();return $jd(b.json)}if(a instanceof _.eVc){if(!b.json)throw _.RM();return Jjd(okd(this),b.json)}if(a instanceof _.iF){if(!b.json)throw _.RM();a=okd(this);c=b.json;b=new pdd;a=Ijd(a,c);return _.A(b,2,a).Dc(1)}if(a instanceof _.HL){if(!b.json)throw _.RM();b=b.json;_.OM(["drive#remainingCount"],b);
a=new qdd;c=b.nextPageToken;null!=c&&_.B(a,2,Number(c));_.B(a,1,Number(b.remainingCount));return a}if(a instanceof _.lF){if(!b.json)throw _.RM();return(new _.gA).tw([bkd(this.H,b.json)])}if(a instanceof _.RL){if(!b.json)throw _.RM();a=(new _.gA).tw(ckd(this.H,b.json));a=_.UYc(new _.IM,a);return _.B(a,3,Fcd(b.json))}if(a instanceof _.LL)return rkd(a,b);if(a instanceof _.ML)return pkd(this,a,b);if(a instanceof _.TK)return _.N_c(this,a,b);if(a instanceof _.NL)return _.N_c(this,a,b);if(a instanceof _.OL)return ukd(this,
b);if(a instanceof _.TB){if(!b.json)throw _.RM();b=fkd(b.json);a=new hdd;a=_.A(a,3,b);b=b.getKey();return _.A(a,4,b)}if(a instanceof _.PL)return qkd(a,b);if(a instanceof _.DK){if(!b.json)throw _.RM();return eid(this.ma,b.json)}if(a instanceof _.nF){if(!b.json)throw _.RM();b=gkd(b.json);a=new _.AM;a.vT().set(b.getId(),b);return a}if(a instanceof _.YUc){if(!b.json)throw _.RM();a=b.json;b=new x8c;a=_.m(Object.entries(a));for(c=a.next();!c.done;c=a.next())switch(d=_.m(c.value),c=d.next().value,d=d.next().value,
c){case "nextPageToken":_.ak(b,2,d);break;case "activities":c=Jid(d),_.Cb(b,1,c)}return b}if(a instanceof _.$Uc)return ukd(this,b);if("undefined"!=typeof _.dVc&&a instanceof _.dVc)return skd(this,b);if(a instanceof _.aVc){if(!b.json)throw _.RM();return new A8c}if(a instanceof _.bVc){if(!b.json)throw _.RM();return b2c(b)}if(a instanceof _.RB){if(!b.json)throw _.RM();c=b.json;b=new _.Ky;_.OM(["drive#settingList"],c);a=[];c=c.items||[];for(d=0;d<c.length;d++)(e=fkd(c[d]))&&a.push(e);return _.chb(b,a)}if(a instanceof
_.kF){if(!b.json)throw _.RM();return lkd(this.O,this.Mg,b.json).Dc(1)}if(a instanceof _.jF){if(!b.json)throw _.RM();return jkd(this.O,this.Mg,b.json)}if(a instanceof _.jVc){if(!b.json)throw _.RM();a=b.json;_.OM(["drive#teamDrive"],a);b=a.recursiveFolderCount;a=a.recursiveFileCount;c=new Vcd;a=_.B(c,1,a);return _.B(a,2,b)}if(a instanceof _.iVc)return vkd(b);if(a instanceof _.lVc){if(!b.json)throw _.RM();return hkd(b.json)}if(a instanceof _.hN)return ukd(this,b)};
var qkd=function(a,b){if(!b.json){if(a instanceof _.rL)return mkd({});throw _.RM();}return mkd(b.json)},ukd=function(a,b){if(!b.json)throw _.RM();a=bkd(a.H,b.json);return(new _.TL).Dc(1).setItem(a)},pkd=function(a,b,c){if(!c.json)throw _.RM();return Hjd(okd(a),b,c.json)},rkd=function(a,b){if(!b.json)throw _.RM();return bjd(b.json,a.qh())},skd=function(a,b){if(!b.json)throw _.RM();a=a.oa;var c=b.json;_.OM(["drive#about","drive#changeList"],c);b=new T9c;var d=c.nextPageToken;null!=d&&_.B(b,2,Number(d));
d=c.largestChangeId;null!=d&&_.B(b,3,Number(d));if("drive#changeList"==c.kind){_.OM(["drive#changeList"],c);d=[];c=c.items||[];for(var e=0;e<c.length;e++){var f=a,h=c[e];_.OM(["drive#change"],h);var k=new _.LK;k=_.B(k,1,Number(h.id));h.teamDriveId?(_.rUc(k,h.teamDriveId),_.NK(k,h.teamDriveId)):_.NK(k,h.fileId);h.file?k.setItem(_.o_c(f.H,h.file)):h.teamDrive&&k.setItem(bkd(f.O,h.teamDrive));h.deleted&&!k.getItem()&&_.XK(k);d.push(k)}_.Cb(b,4,d)}return b},vkd=function(a){var b,c;if(!a.json)throw _.RM();
a=a.json;var d=a.result&&a.result.status;d=d&&wkd[d];var e=null!==(c=a.result&&(null===(b=a.result.sourceResults)||void 0===b?void 0:b.map(function(f){var h,k;return Idd(Hdd(Gdd(new _.Fdd,f.sourceId),f.fileCount),null!==(k=null===(h=f.unmovableFileReasons)||void 0===h?void 0:h.map(function(l){var p=new _.Ddd;p=_.B(p,1,l.unmovableReason);return _.B(p,2,l.count)}))&&void 0!==k?k:[])})))&&void 0!==c?c:[];return Cdd(Bdd(Add(zdd(new ydd,Fcd(a)),a.processedFileCount).Dc(d),a.result&&a.result.validationToken),
e)},tkd=function(a,b){var c=new ged;if(_.Id(a,6).length){var d=[];Z0c(_.Id(a,6),b.headers).forEach(function(e,f){var h=new _.pRc;e=_.B(h,1,f).Jb(e);d.push(e)});_.Cb(c,1,d)}hed(c,b.json?JSON.stringify(b.json):b.text);return c},wkd={movable:1,deadlineExceeded:2,exceedsSourceLimit:3,exceedsDestinationDepthLimit:4,exceedsDestinationSizeLimit:5,tooManyUnmovableFiles:6,tooHighProportionUnmovableFiles:7};
var ykd=function(a){var b=new _.qp;if(a=a.getState()){var c=[];c.push("state");c.push("=");c.push(xkd[a]);_.sM(b,c.join(" "))}return b.toString()},zkd={},xkd=(zkd[1]="active",zkd[2]="archived",zkd);
var Akd=function(a,b,c,d){_.SM.call(this,b,c,a.AMa,d);this.ma=a;this.ha=new f9c(_.qM(c),b)};_.O(Akd,_.SM);
Akd.prototype.V=function(a,b,c){var d=this;try{return _.SM.prototype.V.call(this,a,b,c)}catch(R){}var e=0,f={},h="GET",k={},l=!1,p=!1;if(a instanceof _.fL){h="POST";var q="admin/files/"+a.getId()+"/migrateToTeamDrive";_.L(a,3)&&(k.useDomainAdminAccess=!0);k.fields="kind,id,parentId,teamDriveId";k.fileId=a.getId();var t=Gcd(a);f["content-type"]="application/json";l=p=!0}else if(a instanceof _.gL){h="POST";q="files/"+a.Kc()+"/authorize";k.appId=a.qh();_.L(a,3)&&(k.propagate=!0);var u=a.te();p=!0;_.pM(k);
_.WL(this.H,[],[a.Kc()],this.O,f)}else if(a instanceof _.hN)q="drives/"+a.getId(),h="PUT",t={},t=(t.removeSecureLinkUpdateForAllFiles=_.E(a,2,!1),t),f["content-type"]="application/json",k.fields=QN(this.H,[],!0),u=a.te(),p=!0;else if(a instanceof _.$Uc)h="POST",q="teamdrives/"+a.requestId,k.fields=QN(this.H),t={},t=(t.name=a.request.getTitle(),t),f["content-type"]="application/json",u=a.request.te(),p=!0;else if(a instanceof _.kL)h="POST",q="workspaces",k.fields="kind,id,title,createdDate,modifiedDate,state",
t=Icd(a),f["content-type"]="application/json",u=a.te(),p=!0;else if(a instanceof _.hL)h="POST",q="files/"+a.getId()+"/copy",k.fields=_.NUc({fields:this.Gg(c),Wq:_.BK(_.CK(this.H)),aG:_.HK(this.H)}),k.convert=_.E(a,4,!1),t=Hcd(a),f["content-type"]="application/json",u=a.te(),a=_.Id(a,3).concat([a.getId()]),_.WL(this.H,[],a,this.O,f),p=!0,_.pM(k),_.b0c(this.H,k);else if(a instanceof _.lL)h="DELETE",q="apps/"+a.qh(),k.appId=a.qh(),k.deleteAppData=!!_.L(a,2),u=a.te(),p=!0;else if(a instanceof _.mL)h=
"DELETE",q="backups/"+a.getId(),e=9;else if(a instanceof _.nL)h="DELETE",q="files/"+a.getId(),u=a.te(),p=!0,_.pM(k),_.b0c(this.H,k),_.WL(this.H,[],[a.getId()],this.O,f);else if(a instanceof _.oL)h="DELETE",q="files/"+a.Kc()+"/permissions/"+_.C(a,2),u=a.te(),p=!0,_.pM(k);else if(a instanceof _.pL)h="DELETE",q="files/"+a.Kc()+"/revisions/"+_.C(a,2),u=a.te(),p=!0,_.WL(this.H,[],[a.Kc()],this.O,f);else if(a instanceof _.qL)h="DELETE",q="teamdrives/"+a.getId(),u=a.te(),p=!0;else if(a instanceof _.SB)h=
"DELETE",u=a.getKey(),q="settings/"+_.C(u,2),_.Jp(u)&&(k.namespace=c2c[_.Jp(u)]),u=a.te(),p=!0;else if(a instanceof _.rL)h="DELETE",q="workspaces/"+a.getId(),u=a.te(),p=!0;else if(a instanceof _.uL)h="DELETE",q="files/trash",u=a.yd().te(),p=!0,_.b0c(this.H,k);else if(a instanceof _.vL)q="apps/"+a.qh(),u=a.te(),p=!0,k.fields="kind,id,useByDefault,name,openUrlTemplate,primaryMimeTypes,secondaryMimeTypes,createUrl,createInFolderTemplate,objectType,supportsCreate,supportsImport,supportsMultiOpen,supportsOfflineCreate,installed,authorized,productUrl,primaryFileExtensions,secondaryFileExtensions,shortDescription,longDescription,productId,removable,icons(iconUrl,size,category),type,chromeExtensionIds,requiresAuthorizationBeforeOpenWith,hasDriveWideScope,driveBranded,driveSource,supportsMobileBrowser,supportsTeamDrives,hasGsmListing";
else if(a instanceof _.BL)q="backups/"+a.getId()+"/items",e=9,k.languageCode=pN(_.CK(this.H));else if(a instanceof _.wL)h="POST",q="apps",k.appId=a.qh(),u=a.te(),p=!0;else if(a instanceof _.xL)h="POST",q="files/"+a.Kc()+"/permissions",k.fields=_.HK(this.H)?"kind,type,id,userId,nameIfNotUser,emailAddress,withLink,role,additionalRoles,deleted,view,audienceId,customerId":"kind,type,id,userId,name,emailAddress,withLink,photoLink,role,additionalRoles,deleted,view,audienceId,customerId",k.emailMessage=
_.C(a,5)||"",k.sendNotificationEmail=!_.E(a,6,!1),t={},1==a.Vf()?t.role="owner":3==a.Vf()?t.role="writer":4==a.Vf()?(t.role="reader",t.additionalRoles=["commenter"]):2==a.Vf()&&(t.role="reader"),1==a.getType()?t.type="user":2==a.getType()?t.type="group":3==a.getType()?t.type="domain":4==a.getType()?t.type="anyone":5==a.getType()&&(t.type="audience"),a.Za()&&(t.value=a.Za()),t.withLink=!_.E(a,8,!1),f["content-type"]="application/json",u=a.te(),p=!0,_.pM(k);else if(a instanceof _.WUc)e=8,h="POST",q=
"/v1/exports",f["content-type"]="application/json",t=_.Id(a,1).map(function(R){if(_.E(d.H,89,!1)){var Z=_.FYc(d.O,R);if(null!==Z)return{id:R,resource_key:{resource_key:Z}}}return{id:R}}),t={archiveFormat:null,archivePrefix:_.C(a,2),conversions:null,items:t,locale:null};else if(a instanceof _.IK||a instanceof _.vM||a instanceof _.kF||a instanceof _.jF)if(b=a instanceof _.IK?a.yd():a,_.VL(b)){e=10;h="POST";q="/v1/items";f["content-type"]="application/json";t={};var y=9==_.jM(this.H)?"WEB_MOBILE":"WEB_DESKTOP",
z={};z.applicationType=o9c(this.H);z.platformType=y;z.languageCode=pN(_.CK(this.H));z.timeZone=(new _.vt).l$();z.requestType="LIVE_REQUEST";a instanceof _.IK&&(y=a.getOptions())&&_.E(y,10,!1)&&(z.requestType="BACKGROUND_REQUEST");b instanceof _.Te?_.yL(b)?(l9c(this.ha)?(z.scenarioType="ONE_PICK",this.zd.O(106026)):z.scenarioType="QUICK_ACCESS",2==_.hM(b)&&((a=_.SK(this.H))&&_.E(a,12,!1)&&!l9c(this.ha)&&(z.scenarioType="QUICK_ACCESS_FOR_SHARED_DRIVE"),t.contextFeature={type:"DRIVE_TEAM_DRIVE_ROOT_ID",
stringValue:_.Id(b,33)[0]}),_.fM(b).length&&(t.itemType=n9c(b))):_.zL(b)?z.scenarioType="DRIVE_PEOPLE_WITH_ACTIONS":_.AL(b)&&(z.scenarioType="DRIVE_PRIORITY"):b instanceof _.vM?(q="/v1/userfeedback",t.userFeedback=_.ek(b,_.j5c,1).map(function(R){var Z=_.D(R,_.tN,2),fa={},ra={};ra.feedbackType=n6c[Z.getType()];fa.item=ra;fa.clientInfo=z;switch(R.getFeature()){case 1:z.scenarioType="DRIVE_PRIORITY";ra.itemId=Z.Kc();break;case 3:z.scenarioType="QUICK_ACCESS";ra.itemId=Z.Kc();break;case 2:z.scenarioType=
"DRIVE_WORKSPACES",ra.itemId=Z.Kc(),ra.childItem=_.ek(Z,_.tN,3).map(function(Ba){var za={};za.itemId=Ba.Kc();return za})}return fa})):b instanceof _.kF?z.scenarioType="DRIVE_WORKSPACES":b instanceof _.jF?(z.scenarioType="ITEMS_FOR_DRIVE_WORKSPACE",t.contextFeature=[{type:"GENERIC_TITLE",stringValue:b.getTitle()||""},{type:"DRIVE_WORKSPACE_ID",stringValue:b.Cp()||""},{type:"DRIVE_EMPTY_WORKSPACE",boolValue:_.L(b,5)}]):_.e0c(a);b instanceof _.vM||(t.maxSuggestions=b.Ii(),t.clientInfo=z)}else{u=b.te();
p=!0;q="files";k.q=_.IXc(b);y=[];var F;(F=_.SK(this.H))&&_.E(F,4,!1)?(F=_.ua(this.Gg(c),this.Gg(c,b.O())),_.Fa(F)):F=_.va(this.Gg(c));var G=void 0,I=!1;0<_.ek(b,_.ul,5).length&&(G=_.C(this.H.Sf(),50),I=!0);k.fields=E0c({fields:F,Wq:_.BK(_.CK(this.H)),X6:G||void 0,aG:_.HK(this.H),$zb:I});k.appDataFilter="NO_APP_DATA";0<_.ek(b,_.eM,25).length&&(k.sources=_.AXc(b));0<b.ZA().length&&(k.spaces=_.BXc(b));a.Ln()&&(k.pageToken=a.Ln());(a=a.getOptions())&&_.Pj(a,1,1E3)&&(k.maxResults=_.Pj(a,1,1E3));_.E(b,
36,!1)&&(k.includeUnsubscribed=!0);_.C(b,43)&&(k.rawUserQuery=_.C(b,43));_.pM(k);k.includeItemsFromAllDrives=_.E(b,66,!0);0<_.Id(b,33).length&&2==_.hM(b)&&(a=_.Id(b,33)[0],k.teamDriveId=a,y.push(a));k.corpora=_.hXc[_.hM(b)];_.L(b,18)&&(_.Wa(k,"corpora"),k.corpus="DOMAIN");a=_.gM(b);F=_.ek(b,_.dM,35);G=_.ek(b,_.dM,38);y=y.concat(a.filter(function(R){return!_.E(R,2,!1)}).map(function(R){return R.Za()})).concat(F.map(function(R){return R.Za()})).concat(G.map(function(R){return R.Za()}));_.WL(this.H,
_.ek(b,_.wl,63),y,this.O,f);a1c(k,b.Ac());_.c0c(this.H,k);_.d0c(this.H,k);_.D(b,_.Dda,64)&&(a=H3c(_.D(b,_.Dda,64)),a=_.ib(a,4),k.searchSessionData=a)}else if(a instanceof _.CL){q="apps";switch(a.getType()){case 1:k.fields=Bkd;break;case 2:k.fields=Ckd;break;case 4:k.fields=Dkd;break;case 3:e=5,q="apps",k.fields="items(icons[category='application'],icons(size,iconUrl),id,name,openUrlTemplate,primaryFileExtensions,primaryMimeTypes,productId,rankingInfo,secondaryFileExtensions,secondaryMimeTypes,kind),kind",
k.appQueryScope="all_webstore",b.St=!0}k.languageCode=pN(_.CK(this.H));0<_.Id(a,3).length&&(k.appFilterExtensions=_.Id(a,3).join(","));0<_.Id(a,4).length&&(k.appFilterMimeTypes=_.Id(a,4).join(","));u=a.te();p=!0}else if(a instanceof _.XUc)q="backups",e=9,k.languageCode=pN(_.CK(this.H));else if(a instanceof _.VK)q="changes",k.includeDeleted=_.E(a,3,!0),k.includeSubscribed=_.E(a,4,!0),k.maxResults=a.CQ(),k.startChangeId=_.C(a,1),k.fields=D0c({fields:this.Gg(c),X6:QN(this.H,_.Id(a,5)),Wq:_.BK(_.CK(this.H)),
aG:_.HK(this.H)}),k.appDataFilter="NO_APP_DATA",a.Bc()||(k.filters="DRIVE_DATASERVICE"),u=_.Id(this.H.Sf(),31),u.length&&(k.spaces=_.Bb(u,function(R){return _.sRc[R]}).join(",")),_.pM(k),k.includeCorpusRemovals=!0,k.includeItemsFromAllDrives=!0,a.Bc()&&(k.teamDriveId=a.Bc()),u=a.te(),p=!0;else if(a instanceof _.DL)b=a.yd(),q="files/"+b.getId()+"/permissions",k.fields=_.HK(this.H)?"kind,items(kind,type,id,userId,nameIfNotUser,emailAddress,withLink,role,additionalRoles,deleted,view,audienceId,customerId),nextPageToken":
"kind,items(kind,type,id,userId,name,emailAddress,withLink,photoLink,role,additionalRoles,deleted,view,audienceId,customerId),nextPageToken",a.Ln()&&(k.pageToken=a.Ln()),_.C(a,1)&&(k.maxResults=_.C(a,1)),u=b.te(),p=!0,_.pM(k),_.c0c(this.H,k),_.d0c(this.H,k),_.WL(this.H,[],[b.getId()],this.O,f);else if(a instanceof _.EL)k.fields=_.HK(this.H)?"kind,items(kind,id,mimeType,modifiedDate,pinned,downloadUrl,originalFilename,fileSize,lastModifyingUser(kind,id,permissionId,emailAddressFromAccount,domain))":
"kind,items(kind,id,mimeType,modifiedDate,pinned,downloadUrl,originalFilename,fileSize,lastModifyingUser(kind,displayName,picture,permissionId,emailAddress))",k.maxResults=a.Ii(),q="files/"+a.Kc()+"/revisions",u=a.te(),p=!0,_.WL(this.H,[],[a.Kc()],this.O,f);else if(a instanceof _.lF)q="teamdrives/"+a.Am()[0],k.fields=QN(this.H,a.O()),u=a.te(),p=!0;else if(a instanceof _.iVc)h="POST",q="admin/files/migrateToTeamDrivePreFlight",_.L(a.request,3)&&(k.useDomainAdminAccess=!0),t=Jcd(a),f["content-type"]=
"application/json",p=l=!0,_.WL(this.H,[],_.Id(a.request,1),this.O,f);else if(a instanceof _.RL)u=a.yd(),q="teamdrives",k.fields=F8c(this.H,u.O()),k.q=X8c(u),a.Ln()&&(k.pageToken=a.Ln()),(u=(u=a.getOptions())&&_.Pj(u,1,1E3))&&(k.maxResults=u),u=a.yd().te(),p=!0;else if(a instanceof _.jVc)q="teamdrives/"+a.Bc(),k.fields="kind,id,recursiveFileCount,recursiveFolderCount",p=l=!0;else if(a instanceof _.LL)h="PUT",q="apps/"+a.qh(),k.appId=a.qh(),t={},t.useByDefault=_.L(a,2),_.L(a,3)&&(t.hasAppData=!1),f["content-type"]=
"application/json",u=a.te(),p=!0;else if(a instanceof _.TK)h="PUT",q="files/"+a.getId(),k.fields=_.NUc({fields:this.Gg(c),Wq:_.BK(_.CK(this.H)),aG:_.HK(this.H)}),k.modifiedDateBehavior="DRIVE_UI",k.updateViewedDate=!!_.L(a,15),k.fileId=a.getId(),_.Id(a,9).length&&(k.addParents=_.Id(a,9).join(",")),_.Id(a,10).length&&(k.removeParents=_.Id(a,10).join(",")),_.Id(a,31).length&&(k.addWorkspaces=_.Id(a,31).join(",")),_.Id(a,32).length&&(k.removeWorkspaces=_.Id(a,32).join(",")),null!=_.L(a,24)&&(k.confirmed=
_.L(a,24)),k.languageCode=pN(_.CK(this.H)),t=Kcd(a),f["content-type"]="application/json",u=a.te(),p=!0,_.pM(k),this.W(a.getId(),k),_.L(a,36)?k.bypassMultiparentingCheck=!0:_.b0c(this.H,k),b=_.Id(a,9).concat(_.Id(a,10)),b.push(a.getId()),_.WL(this.H,_.ek(a,_.wl,38),b,this.O,f);else if(a instanceof _.NL)h="PUT",q="files/"+a.Kc()+"/revisions/"+_.C(a,2),t=Lcd(a),f["content-type"]="application/json",u=a.te(),_.WL(this.H,[],[a.Kc()],this.O,f);else if(a instanceof _.OL)q="teamdrives/"+a.getId(),null!=a.zm()?
(h="POST",q+="/"+(a.zm()?"hide":"unhide")):(h="PUT",t=Mcd(a),f["content-type"]="application/json"),k.fields=QN(this.H),u=a.te(),p=!0;else if(a instanceof _.PL)h="PUT",q="workspaces/"+a.getId(),k.fields="kind,id,title,createdDate,modifiedDate,state",t=Ncd(a),f["content-type"]="application/json",u=a.te(),p=!0;else if(a instanceof _.TB)h="PUT",t=_.D(a,_.Ip,1),u=t.getKey(),q="settings/"+_.C(u,2),(u=_.Jp(u))&&(k.namespace=c2c[u]),t=d2c(t),f["content-type"]="application/json",u=a.te(),p=!0;else if(a instanceof
_.DK)q="about",k.fields=_.HK(this.H)?"kind,user(kind,id,permissionId,emailAddressFromAccount,domain),quotaBytesTotal,quotaBytesUsed,quotaBytesUsedAggregate,quotaBytesUsedInTrash,quotaBytesByService,quotaType,rootFolderId,domainSharingPolicy,largestChangeId,importFormats,gsuiteSubscriptionInfo(trialMillisRemaining,trialEndTime,status),teamDashboardCapabilities(canAdministerTeam,canManageInvites),graceQuotaInfo,quotaStatus":"kind,user,quotaBytesTotal,quotaBytesUsed,quotaBytesUsedAggregate,quotaBytesUsedInTrash,quotaBytesByService,quotaType,rootFolderId,domainSharingPolicy,largestChangeId,importFormats,gsuiteSubscriptionInfo(trialMillisRemaining,trialEndTime,status),teamDashboardCapabilities(canAdministerTeam,canManageInvites),graceQuotaInfo,quotaStatus",
k.fields=g2c(k.fields,this.H),u=a.te(),p=!0;else if(a instanceof _.rK){e=11;h=a.oz();q=a.getUrl();var M=_.C(a,5)||"";_.ek(a,_.pRc,2).forEach(function(R){f[R.getKey()]=R.Za()});_.ek(a,_.pRc,4).forEach(function(R){k[R.getKey()]=R.Za()});_.L(a,7)&&(b.XIb=!0);_.L(a,8)&&(b.St=!0);_.L(a,9)&&(b.sna=!0)}else a instanceof _.ZUc?(b=a.request.Kc(),q="files/"+b+"/listCategoryMetadata",u=a.request.te(),a.pageToken&&(k.pageToken=a.pageToken),a.request.Ii()&&(k.maxResults=a.request.Ii()),k.fields="kind,nextPageToken,categoryMetadata",
_.WL(this.H,[],[b],this.O,f)):a instanceof _.ML?(f["content-type"]="application/json",h="POST",b=a.Kc(),q="files/"+b+"/updateCategoryMetadata",u=a.te(),t={categoryMetadata:a.jV().map(function(R){var Z=_.ek(R,_.rF,2).map(function(ra){return{id:ra.getId(),userId:ra.rz(),setBooleanValue:_.L(ra,3),setTextValue:_.C(ra,4),setTextValues:_.Id(ra,6),addTextValues:_.Id(ra,5),setLongTextValue:_.C(ra,7),setSelectionValue:_.C(ra,8),setSelectionValues:_.Id(ra,10),addSelectionValues:_.Id(ra,9),setIntegerValue:_.C(ra,
11),setIntegerValues:_.Id(ra,13),addIntegerValues:_.Id(ra,12),setUserValue:_.C(ra,14),setUserValues:_.Id(ra,16),addUserValues:_.Id(ra,15),setDateStringValue:_.C(ra,17)}}),fa={categoryName:R.Qm()};Z.length?fa.categoryAttributeValueDeltas=Z:_.Id(R,4).length?fa.revertAttributeIds=_.Id(R,4):_.L(R,3)&&(fa.removeCategory=_.L(R,3));return fa})},_.WL(this.H,[],[b],this.O,f)):a instanceof _.GL?(e=13,q=_.BK(_.CK(this.H))?"/v2/people/public":"/v2/people",k.person_id=a.Am(),k["request_mask.include_container"]=
["PROFILE","DOMAIN_PROFILE"],k["request_mask.include_field.paths"]=["person.metadata.best_display_name","person.photo","person.email"],k["merged_person_source_options.included_profile_states"]=["DASHER_ADMIN_DISABLED"],_.BK(_.CK(this.H))||(k["core_id_params.enable_private_names"]=!0)):a instanceof _.eVc?(e=12,q="/v1/categories/-/published",f["content-type"]="application/json",a.pageToken&&(k.pageToken=a.pageToken),a.request.Ii()&&(k.maxResults=a.request.Ii()),k.$outputDefaults=!0,k.languageCode=pN(_.CK(this.H))):
a instanceof _.iF?(e=12,q="/v1/"+a.getName(),f["content-type"]="application/json",k.$outputDefaults=!0,k.languageCode=pN(_.CK(this.H))):a instanceof _.iL?(f["content-type"]="application/json",h="POST",q="drives/"+a.Bc()+"/changeCategoryReferences",u=a.te(),p=!0,k.fields=QN(this.H,[157],!0),t={},b=_.ek(a,_.gl,2),b.length&&(t.addCategoryReferences=b.map(function(R){return{category:R.Qm()}})),a=_.ek(a,_.gl,3),a.length&&(t.removeCategoryReferences=a.map(function(R){return R.Qm()}))):a instanceof _.nF?
(q="workspaces/"+a.Am()[0],k.fields="kind,id,title,createdDate,modifiedDate,state",u=a.te(),p=!0):a instanceof _.YUc?(e=7,h="POST",q="/v2/activity:query",f["content-type"]="application/json",t={},t.pageSize=a.pageSize,a.pageToken&&(t.pageToken=a.pageToken),b="items/"+a.request.getId(),_.E(a.request,2,!1)?t.ancestorName=b:t.itemName=b,t.consolidationStrategy={legacy:{}}):a instanceof _.aVc?(e=8,h="POST",q="/v1/exports/"+a.H+":cancel"):a instanceof _.bVc?(e=8,q="/v1/exports/"+a.H):"undefined"!=typeof _.dVc&&
a instanceof _.dVc?(q="changes",k.fields="kind,largestChangeId",_.pM(k),k.includeItemsFromAllDrives=!0,a.teamDriveId&&(k.teamDriveId=a.teamDriveId),u=a.H,p=!0):a instanceof _.RB?(q="settings",u=_.Id(a,3),k.namespace=e2c(u),u=a.te(),p=!0):a instanceof _.lVc?(q="workspaces",k.fields="kind,nextPageToken,items(kind,id,title,createdDate,modifiedDate,state)",a.pageToken&&(k.pageToken=a.pageToken),a.request.Ii()&&(k.maxResults=a.request.Ii()),k.q=ykd(a.request),(u=a.request.Wv())&&1==u.getType()&&(k.orderBy=
"title"),u=a.request.te(),p=!0):a instanceof _.HL?(q="changes/getRemainingCount",k.pageToken=_.C(a,2),_.S(a,3)&&(k.supportsTeamDrives=!0,k.includeItemsFromAllDrives=!0,k.teamDriveId=a.Bc()),u=a.te()):a instanceof _.eL?(f["content-type"]="application/json",h="POST",q="files/"+a.Kc()+"/sendAccessRequest",t={},l=!0):_.e0c(a);p&&_.f0c(c,k);0!=e||l||u&&_.C(u,1)||_.mYc(this.zd,74438989);return _.g0c(this,e,q,k,f,h,u,t,M)};
Akd.prototype.W=function(a,b){a=this.ma.dm.H(a);b.expectedParentIds=a?a.lk().join(","):[]};
var Bkd=f2c("kind,id,useByDefault,name,openUrlTemplate,primaryMimeTypes,secondaryMimeTypes,createUrl,createInFolderTemplate,objectType,supportsCreate,supportsImport,supportsMultiOpen,supportsOfflineCreate,installed,authorized,productUrl,primaryFileExtensions,secondaryFileExtensions,shortDescription,longDescription,productId,removable,icons(iconUrl,size,category),type,chromeExtensionIds,requiresAuthorizationBeforeOpenWith,hasDriveWideScope,driveBranded,driveSource,supportsMobileBrowser,supportsTeamDrives,hasGsmListing"),Ckd=
f2c("kind,id,useByDefault,name,openUrlTemplate,primaryMimeTypes,secondaryMimeTypes,createUrl,createInFolderTemplate,objectType,supportsCreate,supportsImport,supportsMultiOpen,supportsOfflineCreate,installed,authorized,productUrl,primaryFileExtensions,secondaryFileExtensions,shortDescription,longDescription,productId,removable,icons(iconUrl,size,category),type,chromeExtensionIds,requiresAuthorizationBeforeOpenWith,hasDriveWideScope,driveBranded,driveSource,supportsMobileBrowser,supportsTeamDrives,hasGsmListing,hasAppData"),
Dkd=f2c("kind,id,useByDefault,name,openUrlTemplate,primaryMimeTypes,secondaryMimeTypes,createUrl,createInFolderTemplate,objectType,supportsCreate,supportsImport,supportsMultiOpen,supportsOfflineCreate,installed,authorized,productUrl,primaryFileExtensions,secondaryFileExtensions,shortDescription,longDescription,productId,removable,icons(iconUrl,size,category),type,chromeExtensionIds,requiresAuthorizationBeforeOpenWith,hasDriveWideScope,driveBranded,driveSource,supportsMobileBrowser,supportsTeamDrives,hasGsmListing,hasAppData,appDataQuotaBytesUsed");
var Ekd=function(a,b,c,d,e,f,h,k,l,p,q,t,u,y,z,F,G,I,M,R,Z,fa,ra){this.Joa=_.Xh();this.vfa=new _.uYc;var Ba=new _.WYc(this.xJ.bind(this),function(){return Z("w8KrJc")}),za=new Zhd(b.dm),Aa=new Qhd(Ba);c=new Ihd(b,f,new Dhd(d,e,c),h,this.Joa.promise,k,l,c,Z);d=new Yhd(b,p,q,t,u,d,e,F,k);this.O=new _.xYc(a,y);y=new Akd(b,a,k,fa);this.Psa=new nkd(k,a,z,F);this.H=Ecd(a,new _.j_c(this.O,this.vfa,y,this.Psa,G,I,M),I,z,R,b.dm,this.vfa,this.Joa.promise,M||void 0);this.Joa.resolve(ra?ra:new _.IZc(new $hd,
za,Aa,this.H,Ba,c,d,a))};Ekd.prototype.xJ=function(){return _.Qa(this.H,function(a){return a.xJ()})};var Led=function(a){var b=new Map,c=Date.now();_.Na(a.H,function(d,e){d=$4c(d);d.length&&b.set(e,d.map(function(f){return f?c-f:null}))});return b};
var Fkd=function(a,b){var c=this;this.context=a;this.Mg=b;this.ha=null;this.iR=0;this.ka=this.active=!1;this.H=this.oa=null;this.V={};this.Fa=this.Ba=!1;this.zd=a.Mk();this.W=_.Xh();this.O=a.Qc;this.Ha=_.SK(this.O)||new _.ZTc;b=_.qN(this.O);this.va=new _.DYc(_.Pj(b,2,37500),_.Pj(b,3,6E5));this.ma=a.fQ;_.Na(z9c,function(d){c.V[d]=[]});bO(a.Ej,["hVFf7","T8oKm","BNEDtc"],function(){c.log("Initializing: loaded from local dump");c.initialize()});bO(a.Ej,["hVFf7","T8oKm","mrK8ic"],function(){c.log("Initializing: loaded from sdk backfill");
c.initialize()});bO(a.Ej,["mrK8ic","BNEDtc"],function(){c.log("Updating: sdk backfill complete");c.EK().Ag(_.Bf)})};_.g=Fkd.prototype;_.g.initialize=function(){var a=this;this.Ba||(this.Ba=!0,IO(this.context).addCallback(function(b){a.ma.initialize().Mf(function(){a.ha=b;a.setActive(!0)},function(c){c&&G4c(a.context.Tf(),"drive.ds.sync.storage.LiveDumpUpdater","Error initializing dump storage",_.bL(c));a.log("Error initializing dump storage");a.NR()})}))};
_.g.isInitialized=function(){return!!this.ha||this.ka};_.g.vna=function(a){this.active&&(this.iR+=a,this.iR>_.Pj(_.qN(this.O),1,500)&&this.update(3))};_.g.setActive=function(a){if(this.isInitialized()&&this.active!==a){var b=this.context;a&&(b.KQ().xJ()||0<b.xf.dL.aoa||b.Gj().Ye()||b.nk().Ye())||((this.active=a)?(this.W.resolve(),this.H||this.EK().Ag(_.Bf)):(this.W=_.Xh(),_.n.clearTimeout(this.oa)))}};_.g.NR=function(){this.ka=!0};_.g.iWa=function(){return this.H?this.H.promise:_.Rh()};
_.g.EK=function(){var a=this;if(this.H)return this.H.promise;this.H=_.Xh();_.Yh(this.H.promise,function(){a.H=null});var b=this.zd.H(106021)||void 0;this.W.promise.then(function(){return ycd(a.context.dD)}).then(function(c){var d=!c;return a.ka?d:_.Vh([Gkd(a,3,d,void 0,void 0,b),Gkd(a,0,d,void 0,!0,b),Gkd(a,1,d,void 0,!0,b),Gkd(a,5,d,void 0,!0,b),Gkd(a,6,d,void 0,!0,b)]).then(function(){return d},function(e){e=new _.kc("Failed to update dump",void 0,_.bL(e));return _.Sh(e)})},function(){return _.Sh(Error("kg"))}).then(function(c){a.H.resolve(c);
b&&(c=N4c(b),_.B(c,2,!0),b.Tj())},function(c){a.H.reject(c);b&&(c=N4c(b),_.B(c,2,!1),b.Tj())});return this.H.promise};_.g.update=function(a,b){var c=this,d=new _.$h,e=this.zd.H(106021)||void 0;e&&(v4c(N4c(e),_.xM(_.TTc,a)),d.then(function(){var f=N4c(e);_.B(f,2,!0);e.Tj()},function(){var f=N4c(e);_.B(f,2,!1);e.Tj()}));this.W.promise.then(function(){return ycd(c.context.dD)}).then(function(f){f=!f;c.ka?d.callback():_.ci(Gkd(c,a,f,b,void 0,e),d)});return d};
var Gkd=function(a,b,c,d,e,f){var h=_.ha(a.V[b]);if(h){if(h.encrypt===c&&1<a.V[b].length)return h.og.Om();var k=new _.$h;_.bi(h.og,function(){_.ci(a.uu(b,c,d,e,f),k)})}else k=a.uu(b,c,d,e,f);var l={encrypt:c,og:k};a.V[b].push(l);_.bi(k,function(){_.ta(a.V[b],function(p){return l===p})});k.wg(function(p){a.ma.O.Ig()?a.NR():p instanceof _.kc&&(p=p.O||null,p instanceof _.xK&&"InvalidStateError"==p.getName()&&p.message&&-1<p.message.indexOf("The database connection is closing.")&&a.NR());return null});
return k};
Fkd.prototype.uu=function(a,b,c,d,e){var f=this,h=new _.$h;this.W.promise.then(function(){if(3===a)_.ci(Hkd(f,c||!1,b,e),h);else{switch(a){case 0:var k=f.context.AP;k=k.H?k.H.clone():null;break;case 1:k=f.context.xZ.uq();break;case 5:k=Ikd(f.context.ND);break;case 6:k=f.context.xf.Sq;k=$9c(new Z9c,U$c(k.H));break;default:h.Kd("Invalid data type to write to storage.");return}if(k){var l=_.ek(_.qN(f.O),oN,11)[0].getKey();!l&&b?(f.log("Skipping dump update, encrypted and no key"),h.callback()):wbd(f.ma,
b?l:null,[k],e).then(h.callback,h.Kd,h)}else d?(f.log("Skipping dump update: "+a),h.callback()):h.Kd("Failed to get data to write to dump.")}});return h};
var Hkd=function(a,b,c,d){_.n.clearTimeout(a.oa);a.oa=_.n.setTimeout((0,_.v)(a.Ka,a),a.va.Za());if(b&&0===a.iR)return _.ei();a.iR=0;var e=_.ek(_.qN(a.O),oN,11)[0].getKey();if(!e&&c)return a.log("Skipping dump update, encrypted and no key"),_.ei();var f=[];_.Na(v8c,function(k){0<k&&(k=Jkd(a,k),k.length&&f.push(wbd(a.ma,c?e:null,k,d)))});var h=new _.$h;_.Vh(f).then(function(){a.Fa&&a.context.dD.set(wcd,!0);h.callback()},h.Kd,h);return h};Fkd.prototype.Ka=function(){_.GG(this.va);this.update(3,!0)};
var Jkd=function(a,b){switch(b){case 1:return[Kkd(a)];case 2:var c=(b=a.context.xf.Aw.H)?b.dz():[];c=Lkd(a,_.Sa(F1c(c)));a.log("Exporting "+c.length+" secondary dump items.");c.length>_.Pj(_.qN(a.O),5,2E4)&&(b&&q$c(b),c=[]);c=p8c(new ON,Mkd(c));var d=a.context.xf.Aw;a=new Q1c;(d=d.H)&&d.jN&&(d=d.dz(),_.B(a,3,d.length));c=_.A(c,11,a);c=u8c(c,2);b&&s8c(c,b.fR());return[c];case 3:return Nkd(a);case 4:return Okd(a);default:throw new _.kc("Unsupported CacheType");}},Kkd=function(a){for(var b={},c=[],d=
E$c(a.context.xf.Aw,!0),e=!0,f=0;f<d.length;f++){var h=d[f],k=h.dz(),l=Lkd(a,E1c(k));k=l.length;var p=0<k?l[k-1]:null;_.Ka(l,function(q){b[q.getId()]=q});if(0<k||h.H)l=m8c(new NN,h.yd()),h.H||(_.B(l,2,k),_.A(l,3,p),e=!1),c.push(l)}d=_.Sa(b);a.log("Exporting "+d.length+" initial dump items.");return s8c(u8c(r8c(p8c(q8c(t8c((new ON).ku(a.context.Mn()),_.qM(a.Mg)),a.ha.wV(null)),Mkd(d)),c),1),!e)},Nkd=function(a){var b=[],c=a.ha;a.context.xf.Aw.DV().forEach(function(d){var e=c.wV(d.Bc());if(e){var f=
Lkd(a,E1c(d.dz()));a.log("Exporting "+f.length+" TD dump items for: "+d.Bc());e=s8c(u8c(q8c(p8c(new ON,Mkd(f)),e),3),d.fR(d.yd()));d=m8c(new NN,d.yd());r8c(e,[d]);b.push(e)}});return b},Okd=function(a){var b={},c=[];a.context.xf.DV().forEach(function(d){1===d.vM()&&null==_.L(d.yd(),6)&&(E1c(d.dz()).forEach(function(e){b[e.getId()]=e}),d=n8c(m8c(new NN,new _.Te),d.yd()),c.push(d))});return[s8c(u8c(r8c(p8c(new ON,Mkd(Object.values(b))),c),4),!1)]},Lkd=function(a,b){b=e1c(b);_.L(a.O,67)&&(b=Pkd(b));
_.HK(a.O)&&(_.E(a.Ha,9,!1)?mad(a.context.xf.Sq,b)&&(_.mYc(a.zd,179490965),a.log("b/179490965 Unexpected people data when writing to disk cache.","warning"),b=kad(a.context.xf.Sq,b)):b=kad(a.context.xf.Sq,b));return b.filter(function(c){return 4!==eN(c)})},Pkd=function(a){var b=[];a=_.m(a);for(var c=a.next();!c.done;c=a.next())c=c.value,V0c(c)?(c=c.clone(),F0c(c,U0c),b.push(c)):b.push(c);return b},Mkd=function(a){return a.map(function(b){return b.clone()})};
Fkd.prototype.log=function(a,b){this.context.Tf().log("drive.ds.sync.storage.LiveDumpUpdater",a,void 0===b?"info":b)};Fkd.prototype.ODa=function(){this.Fa=!0};
var Qkd=function(){};_.g=Qkd.prototype;_.g.setActive=function(){};_.g.NR=function(){};_.g.update=function(){return _.ei()};_.g.iWa=function(){return _.Rh()};_.g.EK=function(){return _.Rh()};_.g.vna=function(){};_.g.ODa=function(){};
var kN=function(a,b,c,d){_.yi.call(this);var e=this;this.Aa=a;this.Hr=c;this.rootId=null;this.Ha=!0;this.ha=null;this.oa=[];this.Ba=d||new _.nXc;this.Qc=b.clone();(a=_.SK(this.Qc))&&_.E(a,1,!1)&&_.ZG(this.Qc,28);this.Mg=new _.wXc(this.Qc);this.$m=new f9c(_.qM(this.Mg),this.Qc);Rkd(this);this.eX=new _.po;this.Ab=_.n.setTimeout(function(){e.Tf().info("drive.ds.sync.ThinContext","Page stable timed out.");e.eX.resolve();e.Mk().O(106020)},1E4);this.wZ=new _.$h;this.Fa=new _.YXc(_.kM(this.Qc),_.E(this.Qc.Sf(),
52,!1));this.connectionState=new _.RXc(_.kM(this.Qc)?3:1,!_.E(this.Qc.Sf(),52,!1));this.zd=_.nYc(this.Qc,this.Fa,this.connectionState,this.Ba,this.eX.promise,this.Hr);this.wfa=new L9c(this.zd);this.LP=new _.$h;Skd(this)};_.O(kN,_.yi);kN.prototype.getEnvironment=function(){return this.Hr};kN.prototype.ER=function(){this.Tf().info("drive.ds.sync.ThinContext","Notified of page stable.");_.n.clearTimeout(this.Ab);this.eX.resolve()};
var Skd=function(a){var b=function(){a.mu().Ag(_.Bf)},c=a.Aa;(c=c&&_.ec(c,_.Fk))?_.He(c,"A",b):_.YTc()||_.He(_.n,"unload",b)};kN.prototype.mu=function(){this.zd.O(106005);R4c(this.zd);var a=this.oa.map(function(b){return b()});_.oa(this.oa);return _.Wh(a).then()};var Tkd=function(a,b){a.oa.push(b)};_.g=kN.prototype;_.g.Tf=function(){return this.Ba};_.g.ku=function(a,b){"string"===typeof a&&null===this.rootId&&(this.rootId=a,this.wZ.callback(a),a.length&&this.b4a(a,b||null))};_.g.b4a=function(){};
_.g.Mn=function(){return this.rootId};_.g.Mk=function(){return this.zd};var Ukd=function(a){if(!a.ha)throw Error("lg");return a.ha},Vkd=function(a,b){a.ha=b};kN.prototype.hB=function(){return this.Ha||this.connectionState.isConnected()};kN.prototype.Gj=function(){return this.Fa};kN.prototype.nk=function(){return this.connectionState};kN.prototype.jMb=function(a){this.LP.callback(a)};
var Rkd=function(a){var b=a.Qc.Sf();0===_.Id(b,30).length&&(a.log("No user pref namespaces provided, user prefs disabled."),_.B(b,19,3));if(!_.H(b,37,""))throw Error("mg");_.C(b,57)||(a.log("No root URI provided; using prod default."),_.B(b,57,"https://clients6.google.com"));if(_.E(_.qN(a.Qc),9,!1))if(b=_.ek(_.qN(a.Qc),oN,11),0<b.length){if(!_.C(b[0],1)||!b[0].getKey()&&!_.kM(a.Qc)&&!_.E(a.Qc,10,!1))throw Error("ng");}else _.B(_.qN(a.Qc),9,!1),a.log("Disabling IndexedDB support, missing configuration.");
if(!_.E(_.qN(a.Qc),9,!1)&&(_.kM(a.Qc)||_.E(a.Qc,10,!1)))throw Error("og");var c=_.CK(a.Qc);b=!(!c||!_.BK(c));c=c&&_.iM(c)||"";if(!b&&!c)throw Error("pg");b&&_.Wj(a.Qc,44);_.ek(a.Qc,_.Te,44).forEach(function(d){try{j9c(a.$m,d)}catch(e){if(e instanceof _.kc&&(d=e.Ug)&&3===d.Ls())throw Error("qg");throw e;}})};kN.prototype.RI=function(a){this.dispatchEvent(new _.lc(new _.kc(void 0,a)))};kN.prototype.log=function(a){this.Tf().info("drive.ds.sync.ThinContext",a)};
var Wkd=function(a,b){this.H=a;this.Pe=b};
var Xkd=new Set([5,4,1,6,2]),Ykd=new Map([[3,1],[7,1],[2,2],[4,2],[5,3],[1,4],[6,5]]),Zkd=function(a,b,c){_.yi.call(this);this.ha=a;this.V=b;this.W=c;this.iF=new Map;this.O=new Map;this.status=6;this.H=null};_.O(Zkd,_.yi);
Zkd.prototype.MP=function(a,b,c,d){var e=this;if((d=void 0===d?!1:d)&&!c.length){var f=new Set;a.forEach(function(q){(q=(q=q.getKey())&&_.Jp(q))&&f.add(q)});[].concat(_.jd(f.values())).forEach(function(q){return void c.push(q)})}if(c.length){var h=Xkd.has(b),k=new Map;c.forEach(function(q){k.set(q,new Map)});a.forEach(function(q){var t=q.getKey(),u=t&&_.Jp(t);t=t&&_.C(t,2);u=k.get(u);t&&u&&u.set(t,$kd(q))});var l=0,p=0;[].concat(_.jd(k.keys())).forEach(function(q){var t=k.get(q),u=e.iF.get(q);u?h&&
(t.forEach(function(y){var z=y.getKey();(z=u.get(z&&_.C(z,2)))&&_.mk(y,z)||l++}),[].concat(_.jd(u.values())).forEach(function(y){y=y.getKey();t.has(_.C(y,2))||p++}),e.iF.set(q,t),e.O.set(q,b)):(l+=t.size,e.iF.set(q,t),e.O.set(q,b))});this.ha.info("drive.ds.sync.userprefs.InMemoryUserPrefsCache","Loaded "+l+"/"+a.length+" user prefs from "+b+(p?" (removed "+p+")":""));if(1!==this.status||l){if(h||d)this.status=1,cO(this.V,"px2C2c");cO(this.V,"rkYxSd")}(l||p)&&ald(this,!h)}};
Zkd.prototype.UC=function(){return 0<this.iF.size};var ald=function(a,b){b||a.H||(a.H=_.n.setTimeout(function(){_.n.clearTimeout(a.H);a.H=null;a.W.update(5)},1E3));a.dispatchEvent(new _.oi("WPi0i"))};Zkd.prototype.put=function(a){var b=a.getKey(),c=b&&_.Jp(b);b=b&&_.C(b,2);if(c&&b&&(c=this.iF.get(c))){var d=c.get(b);a=$kd(a);d&&_.mk(a,d)||(c.set(b,a),ald(this))}};Zkd.prototype.remove=function(a){var b=a&&_.Jp(a);a=a&&_.C(a,2);b&&a&&(b=this.iF.get(b))&&b.delete(a)&&ald(this)};
var Ikd=function(a,b){var c=[];(b||[].concat(_.jd(a.iF.keys()))).forEach(function(e){(e=a.iF.get(e))&&[].concat(_.jd(e.values())).forEach(function(f){return void c.push(f.clone())})});b=b?b.filter(function(e){return a.iF.has(e)}):[].concat(_.jd(a.iF.keys()));var d=new f5c;_.Cb(d,1,c);_.B(d,2,b||[]);return d};
Zkd.prototype.rG=function(a){var b=this,c=Ikd(this,a),d=new _.Ky;d.Dc(this.status);_.chb(d,_.ek(c,_.Ip,1));_.A(d,4,c);var e=0;a.forEach(function(f){f=b.O.get(f);Ykd.has(f)&&Infinity>Ykd.get(f)&&(e=f)});return new Wkd(d,e)};var $kd=function(a){a=a.clone();a.hh()||a.Jb("");return a};
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var bld=function(a){var b=a.a,c=a.b,d=a.c;b=b-c-d^d>>>13;c=c-d-b^b<<8;d-=b;d=d-c^c>>>13;b-=c;b-=d;b^=d>>>12;c=c-d-b^b<<16;d-=b;d=d-c^c>>>5;b-=c;b-=d;b^=d>>>3;c=c-d-b^b<<10;d-=b;d=d-c^c>>>15;a.a=b;a.b=c;return a.c=d},dld=function(a,b){return cld(a[b])+(cld(a[b+1])<<8)+(cld(a[b+2])<<16)+(cld(a[b+3])<<24)},cld=function(a){return 127<a?a-256:a};
var mN=function(a,b,c,d,e,f){kN.call(this,a,b,c,d);var h=this;this.$a=_.Xh();this.aw=new u$c;this.W=null;this.O=_.Xh();this.Ka=new _.$h;this.O5=null;this.xfa=new Cad;this.V=null;this.kb=_.Xh();this.va=new _.$h;this.tF=new gbd;this.Ty=new Kad;this.eha=new o$c;this.W$=_.Xh();this.Pa=!1;this.ka=_.Xh();this.H={};this.ma=null;this.Mb=new _.De;this.Ma(this.Mb);this.Ej=e?e:new n$c(this.Tf());this.Mk().W.O=this.Ej;this.eL=_.E(_.qN(b),9,!1)&&h2c()?eld(this,b):null;this.Xx=new Z8c(pN(_.CK(b)));this.dD=fld(this,
this.eL);this.fQ=gld(this,this.eL,b);this.zs=hld(this);this.xf=new MO(this,this.Mg);(a=(a=_.D(this.Qc,_.hl,12))&&a.getId())&&this.ku(a,6);this.AP=new Ued(this.Qc,this.xf.Sq,this.Ej,this.Tf(),this.zs);this.xZ=new Zed(this.Tf(),this.Ej,this.zs);this.ND=new Zkd(this.Tf(),this.Ej,this.zs);this.aI=new D9c(this.Cm(),this.Tf(),function(k){return void h.RI(k)});this.Gy=_.E(this.Qc.Sf(),52,!1)?new _.GM(this.nk(),this.Cm(),this.Tf(),this.Mk()):null;bO(this.Ej,["mrK8ic"],function(){h.kb.promise.then(function(){Efd(h,
h.V)})});this.BMa=new cbd(this.Qc);this.oA=new _.PYc(this.Qc,this.xf.dm);this.Qsa=new zhd(this);this.N5=new Gad(this.O.promise,this.Cm());this.nb=new Iad(this.Cm(),this.N5);this.yfa=new Zad(this.O.promise,this.Cm(),this.Tf(),this.Qc);this.Ta=new Ekd(this.Qc,this.xf,this.RI.bind(this),this.N5,this.nb,this.zs,this.xfa,this.Mg,this.Mn.bind(this),this.Qsa,this.xZ,this.ND,this.yfa,this.tF,this.Tf(),this.BMa,this.oA,this.aI,this.Gy,this.Gj(),this.Cob.bind(this),this.Mk(),f);this.$a.resolve(this.Ta);this.AJa=
new jhd(this);bO(this.Ej,["BNEDtc"],function(){return h.ka.resolve()});Tkd(this,function(){h.zs.NR();return _.Rh()})};_.O(mN,kN);
var eld=function(a,b){var c=_.iM(_.CK(b)),d=_.jM(b),e=function(){},f=_.ek(_.qN(b),oN,11);f=f[0]&&_.C(f[0],1);var h=new Rbd(c,d,_.Pj(_.qN(b),10,0)||0,f||"",_.qM(a.Mg));_.kM(b)?c=lcd(c,d).then(function(l){return l?l:h}):_.E(b,10,!1)&&0<_.Pj(_.qN(b),8,432E6)?(b=ild(a,c),c=lcd(c,d,b).then(function(l){return l&&(e=function(p){return p.El(h).Ag(function(){return null})},!l.ha)?l:h})):c=_.Rh(h);var k=new qO(c,a.Tf(),a.Mk());k.initialize().then(function(){return e(k)},function(){return null});return k},ild=
function(a,b){var c=_.Pj(_.qN(a.Qc),8,432E6);if(!_.kM(a.Qc)&&0<c){a=Math;var d=a.abs;b=_.cma(b);var e=0,f=b.length,h={a:-1640531527,b:-1640531527,c:314159265},k;for(k=f;12<=k;k-=12,e+=12)h.a+=dld(b,e),h.b+=dld(b,e+4),h.c+=dld(b,e+8),bld(h);h.c+=f;switch(k){case 11:h.c+=b[e+10]<<24;case 10:h.c+=(b[e+9]&255)<<16;case 9:h.c+=(b[e+8]&255)<<8;case 8:h.b+=dld(b,e+4);h.a+=dld(b,e);break;case 7:h.b+=(b[e+6]&255)<<16;case 6:h.b+=(b[e+5]&255)<<8;case 5:h.b+=b[e+4]&255;case 4:h.a+=dld(b,e);break;case 3:h.a+=
(b[e+2]&255)<<16;case 2:h.a+=(b[e+1]&255)<<8;case 1:h.a+=b[e]&255}b=bld(h);return d.call(a,b)%c}};mN.prototype.py=function(a){var b=this;return this.eL?this.eL.Ig()?_.Sh(Error("rg`"+Ybd(this.eL))):ycd(this.dD).then(function(c){var d=b.eL,e=[];e.push(b.zs.iWa());e.push(a?d.El():hcd(d));if(a===c)return _.Vh(e).then(function(){return!1});!1===a&&(e.push(Xbd(d)),(c=b.Mn())&&e.push(b.dD.ku(c)));return _.Vh(e).then(function(){return b.dD.py(a)},function(){return!1})}):_.Sh(Error("sg"))};
var gld=function(a,b,c){var d=null;b&&(d=new qbd(b,c,function(e){a.RI(e)},a.Mk()),d.initialize());return d},fld=function(a,b){var c=new xcd(b||void 0);c.Mn().then(function(d){d&&a.ku(d,5)});b&&(ycd(c).then(function(d){a.Gj().py(d)}),_.Vh([b.initialize(),a.eX.promise]).then(function(){jld(a,c)},function(){}));return c},jld=function(a,b){Bcd(b).then(function(c){(!c||c<Date.now()-864E5)&&ocd(_.iM(_.CK(a.Qc)),_.jM(a.Qc),a.Tf()).then(function(d){d&&(d=Date.now(),b.set(vcd,d))},function(){})})},hld=function(a){if(!a.fQ)return new Qkd;
var b=new Fkd(a,a.Mg);a.Mb.listen(a.Gj(),"Ab",function(c){return void b.setActive(!c.Ye())});a.Mb.listen(a.nk(),[].concat(_.jd(Object.values(_.tA))),function(){return void b.setActive(a.nk().isConnected())});return b};mN.prototype.JX=function(a){this.O5=a;this.Ka.callback(a)};var IO=function(a){return a.Ka.Om()},Ked=function(a){return a.eL?a.eL.Ig():null},kld=function(a,b){a.Ej.H("NSockf")?cO(a.Ej,b):bO(a.Ej,["NSockf"],function(){cO(a.Ej,b)})};
mN.prototype.b4a=function(a,b){this.log("Setting Root ID: "+a);a&&(this.aw.ku(a),this.$m.ku(a),6!==b&&1!==b||this.dD.ku(a),kld(this,"jroI5d"))};mN.prototype.gVa=function(){return this.va.Om()};var Efd=function(a,b,c){0>b||((void 0===c?0:c)?a.V?a.V=Math.max(a.V,b):(a.V=b,a.kb.resolve()):a.va.Wf()||(a.va.callback(b),kld(a,"T8oKm")))},dfd=function(a){if(!a.W)throw Error("tg");return a.W};_.g=mN.prototype;_.g.KQ=function(){return this.Ta};_.g.Cm=function(){return this.$a.promise.then(function(a){return a.Joa.promise})};
_.g.NDa=function(){this.Pa||(this.Pa=!0,this.W$.resolve(),cO(this.Ej,"aU7Ts"))};_.g.hB=function(){throw Error("ug");};_.g.Cob=function(a){this.dispatchEvent(a)};var lld=function(a,b){Pgd(a.xf,b)},mld=function(a,b,c){a.H[b]=c},Fed=function(a){a.ma||(a.ma=new Qad(a.O.promise,a.Cm(),a.Tf()));return a.ma};
var QO=function(a,b,c){_.yi.call(this);var d=this;this.Ba=a;this.kb=b;this.oa=new _.$h;this.va=this.channel=this.clientId=null;c.then(function(e){return nld(d,e)})};_.O(QO,_.yi);var nld=function(a,b){a.clientId=b.clientId;a.channel=b.channel;a.va=b.H;UN(a.channel,a.Ba,function(c){c=x9c(c);a.qla(c.H,!(!c.data||!c.Rb),c.data,c.error)});a.log("Service initialized: "+a.Ba);a.oa.callback()};QO.prototype.qla=function(){};
QO.prototype.send=function(a,b,c,d){var e=this,f=new _.$h;this.oa.addCallback(function(){var h=e.channel;VN(h,e.Ba,t9c(new s9c(e.clientId,a,b,d),h.W),function(k){return void old(k,a,f,c||function(){})})});return f};var old=function(a,b,c,d){a=x9c(a);a.data?c.callback(d(a.data,a.Rb)):(a.error?d=a.error:(d=new _.jc,_.OK(d,2),_.PK(d,6),_.B(d,21,"Worker["+b+"]: An invalid response was received")),c.Kd(new _.kc(void 0,d)))};QO.prototype.log=function(a){this.va&&this.va.info(this.kb,a)};
var pld=function(a,b,c,d){this.clientId=a;this.channel=b;this.H=c;this.O=d};
var RO=function(a,b){_.P.call(this);this.V=a;this.va=b;this.Ka=this.zU()};_.O(RO,_.P);RO.prototype.registerService=function(a){UN(a,this.V,(0,_.v)(this.Su,this))};
RO.prototype.Su=function(a){var b=this;a=u9c(a);var c=a.Rb,d=this.Ka[a.method],e=null;if(d)try{var f=d(a);if(f instanceof v9c)return w9c(f,c);if(f.then)return f.then(function(h){return w9c(h,c)},function(h){h=_.QK(h);return w9c(b.ud(void 0,h),c)})}catch(h){e=_.bL(h)}f=new _.jc;_.OK(f,2);_.PK(f,3);_.iq(f,this.V+":"+a.method+": "+(e?e.message:"unsupported method"));e&&e.stack&&_.B(f,20,e.stack);return w9c(this.ud(void 0,f),c)};
RO.prototype.ud=function(a,b,c){if(a&&!b)return new v9c(a,void 0,c);a=_.QK(b);return new v9c(void 0,a,c)};RO.prototype.update=function(a,b,c,d){(a=this.va.channels[a]||null)&&VN(a,this.V,w9c(this.ud(c,d,b),a.W))};
var qld=function(){this.channels={};this.H=this.O=this.V=0},rld=function(a,b){var c=a.V++;a.channels[c]=b;a.O++;a.H=Math.max(a.H,_.Ra(a.channels));return c},sld=function(a,b){var c=a.channels[b];return c?(delete a.channels[b],c):null};
var tld=function(a,b){RO.call(this,"LRM",b);this.context=a;this.H={};a=this.context;a.W=this;a.O.resolve(this);this.ha=this.context.xf;this.O=this.context.yfa;this.W=Fed(this.context);this.ka=this.context.N5};_.O(tld,RO);
tld.prototype.zU=function(){var a=this,b={};return b["4.1"]=function(c){var d=c.clientId+":"+c.requestId;c=jN(c.args[0],!!c.Rb,_.Te);return a.Th(d,c)},b["4.9"]=function(c){var d=c.clientId+":"+c.requestId;c=jN(c.args[0],!!c.Rb,_.vK);return a.Th(d,c)},b["4.2"]=function(c){var d=c.clientId+":"+c.requestId;c=jN(c.args[0],!!c.Rb,_.yz);return a.Th(d,c)},b["4.10"]=function(c){var d=c.clientId+":"+c.requestId;c=jN(c.args[0],!!c.Rb,_.lF);return a.Th(d,c)},b["4.3"]=function(c){var d=c.clientId+":"+c.requestId;
c=jN(c.args[0],!!c.Rb,_.Te);return a.Yj(d,c)},b["4.11"]=function(c){var d=c.clientId+":"+c.requestId;c=jN(c.args[0],!!c.Rb,_.vK);return a.Yj(d,c)},b["4.4"]=function(c){var d=c.clientId+":"+c.requestId;c=jN(c.args[0],!!c.Rb,_.yz);return a.Yj(d,c)},b["4.12"]=function(c){var d=c.clientId+":"+c.requestId;c=jN(c.args[0],!!c.Rb,_.lF);return a.Yj(d,c)},b["4.5"]=function(c){var d=c.clientId+":"+c.requestId,e=jN(c.args[0],!!c.Rb,_.yz);c=jN(c.args[1],!!c.Rb,_.yz);return a.HY(d,e,c)},b["4.6"]=function(c){var d=
c.clientId+":"+c.requestId,e=jN(c.args[0],!!c.Rb,_.lF);c=jN(c.args[1],!!c.Rb,_.lF);return a.HY(d,e,c)},b["4.7"]=function(c){return a.fF(c)},b["4.8"]=function(c){return a.fF(c)},b["4.13"]=function(c){var d=c.clientId+":"+c.requestId;c=jN(c.args[0],!!c.Rb,_.gz);return a.Th(d,c)},b["4.14"]=function(c){var d=c.clientId+":"+c.requestId;c=jN(c.args[0],!!c.Rb,_.nF);return a.Th(d,c)},b["4.15"]=function(c){var d=c.clientId+":"+c.requestId;c=jN(c.args[0],!!c.Rb,_.gz);return a.Yj(d,c)},b["4.16"]=function(c){var d=
c.clientId+":"+c.requestId;c=jN(c.args[0],!!c.Rb,_.nF);return a.Yj(d,c)},b["4.18"]=function(c){var d=c.clientId+":"+c.requestId;c=jN(c.args[0],!!c.Rb,_.yF);return a.Th(d,c)},b["4.19"]=function(c){var d=c.clientId+":"+c.requestId;c=jN(c.args[0],!!c.Rb,_.yF);return a.Yj(d,c)},b["4.22"]=function(c){var d=c.clientId+":"+c.requestId;c=jN(c.args[0],!!c.Rb,_.kF);return a.Th(d,c)},b["4.23"]=function(c){var d=c.clientId+":"+c.requestId;c=jN(c.args[0],!!c.Rb,_.kF);return a.Yj(d,c)},b["4.21"]=function(c){c=
a.H[c.clientId+":"+c.requestId].query;if(c instanceof _.kF){var d=a.W;Aad(d,d.getKey(c)).refresh()}return a.ud([])},b};tld.prototype.Th=function(a,b){var c=this,d=new _.po;this.H[a]={query:b,uRb:d.promise};b instanceof _.gz?d.resolve(this.O.Th(a,b)):b instanceof _.nF?d.resolve(yad(this.O,a,b)):b instanceof _.kF?d.resolve(this.W.Th(a,b)):b instanceof _.yF?d.resolve(this.ka.Th(a,b)):d.resolve(this.ha.Th(a,b));return d.promise.then(function(){return c.ud([])})};
tld.prototype.Yj=function(a,b){uld(this,a,b);return this.ud([])};var uld=function(a,b,c){delete a.H[b];c instanceof _.gz?a.O.Yj(b,c):c instanceof _.nF?zad(a.O,b,c):c instanceof _.kF?a.W.Yj(b,c):c instanceof _.yF?a.ka.Yj(b,c):a.ha.Yj(b,c)};_.g=tld.prototype;_.g.HY=function(a,b,c){uld(this,a,b);return this.Th(a,c)};
_.g.fF=function(a){var b=a.clientId+":"+a.requestId,c=this.H[b].query;c.di(a.args[0]);c instanceof _.gz?this.O.Th(b,c):c instanceof _.nF?yad(this.O,b,c):c instanceof _.kF?this.W.Th(b,c):c instanceof _.yF?this.ka.Th(b,c):this.ha.Th(b,c);return this.ud([])};_.g.$N=function(a,b){var c=this,d=this.H[a];if(d){a=a.split(":");var e=_.Mg(a[0]),f=a[1];d.uRb.then(function(h){b instanceof _.FM||b instanceof _.CM?c.update(e,f,[b.response,b.pageToken,b.H,b.Pe,h]):c.update(e,f,[b,h])})}};
_.g.pX=function(a,b){if(this.H[a]){var c=a.split(":");a=_.Mg(c[0]);c=c[1];var d=b.error;d.ufa(b.H);this.update(a,c,void 0,d)}};_.g.Kz=function(a){this.H[a]&&(a=a.split(":"),this.update(_.Mg(a[0]),a[1],["cacheRefresh"]))};_.g.N8=function(){};_.g.Ika=function(a){if(!this.H[a])throw Error("Wf`"+a);return this.H[a].query};var vld=function(a,b){_.Na(a.H,function(c,d){_.Mg(d.split(":")[0])===b&&uld(a,d,c.query)})};
var wld=function(a,b,c){QO.call(this,"LRM","drive.ds.sync.cache.LiveRequestManagerProxy",a);this.context=b;this.H=c;this.O={}};_.O(wld,QO);wld.prototype.kxa=function(a){var b=this;a=new oed(this.context.$m,this.context.LP,this.context.Tf(),this.context.Qc,function(c,d){return b.fF(c,d)},a,this.context.Mk());xld(this,a);return a};wld.prototype.nxa=function(a){var b=this;a=new ved(this.context.$m,this.context.LP,this.context.Tf(),function(c,d){return b.fF(c,d)},a,this.context.Qc);xld(this,a);return a};
var xld=function(a,b){a.Th(b);_.te(b,function(){a.Yj(b);a.send("4.3",[b.yd()],void 0,b.Ki())});a.send("4.1",[b.yd()],void 0,b.Ki())};_.g=wld.prototype;_.g.hxa=function(a){var b=this,c=new sed(this.context.Qc,this.context.$m,this.context.Tf(),this.context.wZ,this.HY.bind(this),a);this.Th(c);_.te(c,function(){b.Yj(c);b.send("4.4",[c.yd()],void 0,c.Ki())});this.send("4.2",[c.yd()],void 0,c.Ki());return c};
_.g.qxa=function(a){var b=this,c=new zed(a,this,this.context.Qc);this.Th(c);_.te(c,function(){b.Yj(c);b.send("4.11",[c.yd()],void 0,c.Ki())});this.send("4.9",[c.yd()],void 0,c.Ki());return c};_.g.rxa=function(a){var b=this,c=new Aed(this.context,this,a);this.Th(c);_.te(c,function(){b.Yj(c);b.send("4.12",[c.yd()],void 0,c.Ki())});this.send("4.10",[c.yd()],void 0,c.Ki());return c};
_.g.uxa=function(a){var b=this,c=new Ded(this.context,a,this);this.Th(c);_.te(c,function(){b.Yj(c);b.send("4.15",[c.yd()],void 0,c.Ki())});this.send("4.13",[c.yd()],void 0,c.Ki());return c};_.g.vxa=function(a){var b=this,c=new red(this.context,a);this.Th(c);_.te(c,function(){b.Yj(c);b.send("4.16",[c.yd()],void 0,c.Ki())});this.send("4.14",[c.yd()],void 0,c.Ki());return c};
_.g.oxa=function(a){var b=this,c=new yed(this.context,a,function(){b.send("4.21",[],void 0,c.Ki())});this.Th(c);_.te(c,function(){b.Yj(c);b.send("4.23",[c.yd()],void 0,c.Ki())});this.send("4.22",[c.yd()],void 0,c.Ki());return c};_.g.exa=function(a){var b=this,c=new med(this.context.Gj(),this.context.nk(),this.context.Tf(),function(d,e){return b.fF(d,e)},a);this.Th(c);_.te(c,function(){b.Yj(c);b.send("4.19",[c.yd()],void 0,c.Ki())});this.send("4.18",[c.yd()],void 0,c.Ki());return c};
_.g.Th=function(a){this.H.create(a.Ki(),a.yd());this.O[a.Ki()]=a};_.g.Yj=function(a){WN(this.H,a.Ki(),4);delete this.O[a.Ki()]};_.g.HY=function(a,b,c){if(b instanceof _.yz&&c instanceof _.yz)this.send("4.5",[b,c],void 0,a);else if(b instanceof _.lF&&c instanceof _.lF)this.send("4.6",[b,c],void 0,a);else throw Error("vg");};
_.g.fF=function(a,b){if(!this.O[a])throw Error("Wf`"+a);var c=this.O[a];if(c.yd()instanceof _.Te)var d="4.7";else if(c.yd()instanceof _.vK)d="4.8";else if(c.yd()instanceof _.yF)d="4.20";else if(c.yd()instanceof _.gz)d="4.17";else throw Error("wg");c.yd().di(b);this.send(d,[b],void 0,a)};
_.g.qla=function(a,b,c,d){if(a=this.O[a]){var e,f=0;if(d)b=new XN(d,d.K6()),a.aB(b),WN(this.H,a.Ki(),3);else if(c&&c[f]){d=c[f++];if("cacheRefresh"===d){a.NV();return}var h=a.yd();if(h instanceof _.Te||h instanceof _.vK)h instanceof _.Te&&_.zL(h)?e=jN(d,b,_.zM):e=jN(d,b,_.gA);else if(h instanceof _.yz||h instanceof _.lF)b?(e=new _.yM,c6c(e,function(k){return new _.hl(JSON.parse(k))},d)):e=d;else if(h instanceof _.yF)e=new _.CM(jN(d,b,BN),c[f++],c[f++],c[f++]);else if(h instanceof _.gz)e=new _.FM(jN(d,
b,$N),c[f++],c[f++],c[f++]);else if(h instanceof _.nF)e=jN(d,b,_.AM);else if(h instanceof _.kF)e=jN(d,b,EN);else throw Error("xg");}e&&(b=f,c&&"boolean"===typeof c[b]&&M9c(this.H,a.Ki(),!!c[b]),P9c(this.H,a.Ki(),e),a.update(e))}};
var SO=function(){_.yi.apply(this,arguments);this.commands=new _.cm;this.ha=this.active=this.jp=!1};_.O(SO,_.yi);SO.prototype.initialize=function(){this.jp||(this.jp=!0,this.V(),this.setActive(!0))};SO.prototype.V=function(){};SO.prototype.setActive=function(a){this.active=a;yld(this)};var yld=function(a){if(a.active&&!a.ha){var b=_.dm(a.commands);if(b)if(a.va()){do a.ka(b);while(b=_.dm(a.commands))}else a.ha=!0,_.Yh(a.Ba(b),function(){a.ha=!1;yld(a)})}};SO.prototype.ka=function(){};
SO.prototype.Ba=function(){};SO.prototype.va=function(){return!0};SO.prototype.enqueue=function(a){try{var b=new _.$h;this.commands.enqueue(new zld(a,b));yld(this);return b}catch(c){return _.gi(_.bL(c))}};var zld=function(a,b){this.H=a;this.og=b};zld.prototype.getCommand=function(){return this.H};zld.prototype.fG=function(){return this.og};
var Cld=function(a){SO.call(this);var b=this;this.context=a;this.O=null;this.Oc=new _.De(this);this.Ma(this.Oc);this.Oc.listen(this.context,"VMiG2e",function(){return void Ald(b)});this.H=this.context.xf.Sq;_.HK(this.context.Qc)&&this.Oc.listen(this.H,"Kb",this.W);var c=a.Ej;bO(c,["toquGd"],function(){return b.initialize()});var d=["NSockf"];1!==_.Oj(a.Qc.Sf(),17,1)&&(d.push("iuEtc"),bO(c,["mrK8ic"],function(){cO(c,"iuEtc")}));bO(c,d,function(){return Bld(b)})};_.O(Cld,SO);Cld.prototype.V=function(){Dld(this)};
var Bld=function(a){if(1===a.context.AP.Bh().Cb())return Promise.resolve();var b=_.ff(_.hf(new _.ef,!0),301);b=_.EK(new _.DK,b);return a.refresh(b).then(null,function(c){c=_.QK(c);_.B(c,21,"Initial account request failed.");a.context.RI(c)})},Ald=function(a){var b=_.ff(new _.ef,304);b=_.EK(new _.DK,b);a.refresh(b).then(null,function(){})};
Cld.prototype.refresh=function(a,b){var c=this;this.O||(this.O=_.Yh(this.context.Cm().then(function(d){return d.Ve(a,b)}).then(function(d){var e=d.Bh(),f=e.getUser();if(f&&!1===_.Rk(f))d=_.RK(_.CK(c.context.Qc)),d=Error("yg`"+d+"`"+_.xF(f)),_.ob(d),_.mYc(c.context.Mk(),73301807),d=Promise.reject(d);else{f=c.context.AP;var h=0===f.jf()?1:6;_.HK(c.context.Qc)&&ead(c.H,e);h=Ved(f,e,h);(e=e.getMetadata())&&c.context.ku(_.C(e,2),1);(d=_.C(d,4))&&Efd(c.context,d,!0);h&&c.dispatchEvent(new _.oi("WPi0i"));
d=Promise.resolve(new _.EM(f.Bh(),f.jf(),!1))}return d}).then(function(d){return d},function(d){d=_.QK(d);_.B(d,5,1);return Promise.reject(new _.kc("Error fetching account from server.",d))}),function(){c.O=null}));return this.O};
Cld.prototype.ka=function(a){var b=a.getCommand();if(b.H){var c={};b.iD&&(c.iD=b.iD);this.refresh(b.request,c).then(function(e){return a.fG().callback(e)},function(e){return void a.fG().Kd(e)})}else if(b=this.context.AP,c=b.Bh(),_.HK(this.context.Qc)){c=c.Bh();var d=c.getUser();d=iad(this.H,_.xF(d));ead(this.H,c);Ved(b,c,b.jf())&&this.dispatchEvent(new _.oi("WPi0i"));a.fG().callback(new _.EM(b.Bh(),b.jf(),d))}else c.Cb(),b=new _.EM(c,b.jf(),!0),a.fG().callback(b)};
var Dld=function(a){var b=a.context.Qc.Sf();_.n.setTimeout(function(){var c=_.ff(new _.ef,306);c=_.EK(new _.DK,c);a.refresh(c).then(function(){Dld(a)},function(){Dld(a)})},Math.ceil(_.Pj(b,7,9E5)*Math.random())+_.Pj(b,3,72E5))};Cld.prototype.W=function(a){var b=this.context.AP,c=b.Bh().Bh();c&&a.getPeople().find(function(d){return _.C(d,1)===_.xF(c.getUser())})&&(ead(this.H,c),Ved(b,c,b.jf())&&this.dispatchEvent(new _.oi("WPi0i")))};var Eld=function(a,b,c){this.request=a;this.H=!!b;this.iD=c||null};
var Gld=function(a){SO.call(this);this.context=a;this.oa=this.W=!1;this.O=null;this.H=1;this.ma=0;this.error=null;this.Oc=new _.De(this);this.Ma(this.Oc);this.Oc.listen(this.context.xZ,"Qb",_.rb(this.dispatchEvent,new _.oi("Qb",this)));Fld(this)};_.O(Gld,SO);
var Fld=function(a){var b=a.context.Ej;bO(b,["nVUlO"],function(){a.oa=!0;a.setActive(!0)});if(!_.kM(a.context.Qc)){var c=_.Oj(a.context.Qc.Sf(),18,1);bO(b,["NSockf"],function(){1===c?Hld(a):a.setActive(!0)});2===c&&bO(b,["mrK8ic"],function(){a.W||Hld(a)})}},Hld=function(a){var b=new _.ef;_.hf(b,!0);_.ff(b,301);var c=new _.CL;_.E4c(c,b);_.B(c,1,1);a.refresh(c).Ag(function(){return null})};
Gld.prototype.refresh=function(a,b){var c=this;_.n.clearTimeout(this.ma);this.ma=0;var d=_.Xh();this.O=d.promise;_.Yh(this.O,function(){c.O=null;Ild(c)});var e=this.H;this.H=a.getType()||e;var f=!this.W;this.W=!0;var h=new _.CL;_.B(h,1,this.H);_.E4c(h,a.te());this.context.Cm().then(function(k){return k.Ve(h,b)}).then(function(k){c.error=null;var l=c.context.xZ;l.MP(k,l.UC()?6:1);d.resolve()},function(k){c.H=e;k=_.sA(k);var l=k.Ug;_.B(l,5,2);f?(_.OK(l,1),k.message="Initial app settings refresh failed.",
_.B(k.Ug,21,"Initial app settings refresh failed."),c.context.RI(l),c.setActive(!0)):(_.OK(l,2),k.message="Error occurred while loading the latest set of apps.",_.B(k.Ug,21,"Error occurred while loading the latest set of apps."));c.error=k;d.reject(k)});return this.O};Gld.prototype.va=function(){return!1};
Gld.prototype.Ba=function(a){var b=this,c=a.getCommand(),d=c.request,e=c.wja,f=c.iD?{iD:c.iD}:void 0;if(!Jld(d))return this.context.Cm().then(function(l){return l.Ve(d,f)}).then(function(l){a.fG().callback(new _.BM(l,1,!1))},function(l){a.fG().Kd(_.bL(l))}),_.Rh();c=_.Rh();var h=!1;this.O?Kld(this,d.getType())?e=this.O:c=e=new _.Qh(function(l,p){b.O.then(function(){b.refresh(d,f).then(function(){return l()},p)})}):!e&&this.oa&&Kld(this,d.getType())&&!this.error?(h=!0,e=_.Rh()):e=this.refresh(d,f);
var k=a.fG();e.then(function(){var l=b.context.xZ;k.callback(new _.BM(l.uq(),l.jf(),h))},function(l){k.Kd(l)});return c.then()};
var Jld=function(a){var b=a.getType();return 1===b||2===b||4===b?(b=_.Id(a,4),a=_.Id(a,3),!(b&&b.length)&&!(a&&a.length)):!1},Kld=function(a,b){return a.H===b||4===a.H||2===a.H&&1===b},Ild=function(a){var b=a.context.Qc.Sf(),c=new _.ef;_.ff(c,306);var d=new _.CL;_.B(d,1,1);_.E4c(d,c);a.ma=_.n.setTimeout(function(){return void a.refresh(d)},Math.ceil(_.Pj(b,7,9E5)*Math.random())+_.Pj(b,4,72E5))},Lld=function(a,b,c){this.request=a;this.wja=!!b;this.iD=c||null};
var Nld=function(a){SO.call(this);var b=this;this.context=a;this.error=null;this.Oc=new _.De(this);this.Ma(this.Oc);this.Oc.listen(this.context.ND,"WPi0i",function(){return b.dispatchEvent(new _.oi("WPi0i"))});this.H=_.Xh();this.O=_.Id(this.context.Qc.Sf(),30);Mld(this)};_.O(Nld,SO);
var Mld=function(a){var b=a.context.Ej;bO(b,["rkYxSd"],function(){return a.initialize()});bO(b,["px2C2c"],function(){a.context.Tf().info("drive.ds.sync.userprefs.UserPrefsManager","All user prefs loaded.");a.H.resolve();a.H=null});var c=["NSockf"],d=_.Oj(a.context.Qc.Sf(),19,1);1!==d&&(c.push("OZvrNc"),2===d&&bO(b,["mrK8ic"],function(){cO(b,"OZvrNc")}));!_.E(a.context.Qc,11,!1)&&_.E(a.context.Qc,24,!1)&&(c.push("DEJoH"),_.n.setTimeout(function(){0<_.ek(Ikd(a.context.ND),_.Ip,1).length||(b.H("NSockf")?
cO(b,"DEJoH"):bO(b,["NSockf"],function(){cO(b,"DEJoH")}))},12E3));bO(b,c,function(){if(!b.H("px2C2c")){var e=new _.ef;_.hf(e,!0);_.ff(e,301);var f=new _.RB;_.A(f,1,e);N1c(f,Old(a));a.query(f).Ag(function(){a.initialize()})}})};Nld.prototype.V=function(){var a="User prefs detected: "+_.ek(Ikd(this.context.ND),_.Ip,1).length;this.context.Tf().info("drive.ds.sync.userprefs.UserPrefsManager",a);Pld(this)};
Nld.prototype.query=function(a,b){var c=this,d=b?{iD:b}:void 0;return this.context.Cm().then(function(e){return e.Ve(a,d)}).then(function(e){c.error=null;var f=c.context.ND;f.MP(_.ek(e,_.Ip,3),f.UC()?6:1,_.Id(a,3))}).then(null,function(e){e=_.sA(e);_.B(e.Ug,5,4);0<c.commands.lc()||c.context.RI(e.Ug);c.error=e;throw e;})};
Nld.prototype.ka=function(a){var b=this,c=a.getCommand(),d=a.fG(),e=new Set([].concat(_.jd(this.context.ND.iF.keys()))),f=_.Id(c.request,3);f.find(function(h){return!e.has(h)})&&(c.wja=!0);this.error?d.Kd(this.error):c.wja?(N1c(c.request,Old(this,f)),_.Yh(this.H?this.H.promise:this.query(c.request,c.iD||void 0),function(){b.getData(d,f,!1)})):this.getData(d,f,!0)};var Old=function(a,b){b=void 0===b?[]:b;a=new Set([].concat(_.jd(a.O),_.jd([].concat(_.jd(a.context.ND.iF.keys()))),_.jd(b)));return[].concat(_.jd(a.values()))};
Nld.prototype.getData=function(a,b,c){b=this.context.ND.rG(b);a.callback(new _.DM(b.H,b.Pe,c))};var Pld=function(a){var b=a.context.Qc.Sf();_.n.setTimeout(function(){var c=new _.RB,d=new _.ef;_.ff(d,306);_.A(c,1,d);N1c(c,Old(a));_.Yh(a.query(c).Ag(_.Bf),function(){Pld(a)})},Math.ceil(_.Pj(b,7,9E5)*Math.random())+_.Pj(b,5,72E5))},Qld=function(a,b,c){this.request=a;this.wja=!!b;this.iD=c||null};
var Rld=function(a,b,c,d){RO.call(this,"IS",b);this.context=a;this.Oc=new _.De(this);this.Ba=_.Xh();this.O=null;this.ha=!1;this.W=null;this.Fa=new Jed(a);H1c(this.Fa);this.Ma(this.Oc);this.ka=new Cld(a);this.Ma(this.ka);this.Oc.listen(this.ka,"WPi0i",function(){return c(new ied(1))});this.ma=new Gld(a);this.Ma(this.ma);this.Oc.listen(this.ma,"Qb",function(){return c(new ied(2))});this.oa=new Nld(a);this.Ma(this.oa);this.Oc.listen(this.oa,"WPi0i",function(){return c(new ied(4))});this.Ha=d;this.H=
this.context.Cm()};_.O(Rld,RO);_.g=Rld.prototype;
_.g.zU=function(){var a={};return a["3.43"]=this.l_.bind(this),a["3.42"]=this.y7.bind(this),a["3.1"]=this.aN.bind(this),a["3.2"]=this.rG.bind(this),a["3.3"]=this.wd.bind(this),a["3.35"]=this.AN.bind(this),a["3.4"]=this.Sy.bind(this),a["3.5"]=this.uq.bind(this),a["3.6"]=this.CR.bind(this),a["3.8"]=this.El.bind(this),a["3.36"]=this.py.bind(this),a["3.9"]=this.NE.bind(this),a["3.10"]=this.gr.bind(this),a["3.11"]=this.$$.bind(this),a["3.12"]=this.e8.bind(this),a["3.13"]=this.MS.bind(this),a["3.14"]=this.Y$.bind(this),
a["3.15"]=this.g8.bind(this),a["3.16"]=this.Ot.bind(this),a["3.17"]=this.wCb.bind(this),a["3.18"]=this.ACb.bind(this),a["3.19"]=this.PP.bind(this),a["3.20"]=this.yCb.bind(this),a["3.25"]=this.xCb.bind(this),a["3.22"]=this.f8.bind(this),a["3.28"]=this.sync.bind(this),a["3.30"]=this.Zna.bind(this),a["3.29"]=this.Qwb.bind(this),a["3.40"]=this.CCb.bind(this),a["3.33"]=this.DCb.bind(this),a["3.39"]=this.PO.bind(this),a["3.37"]=this.BCb.bind(this),a["3.38"]=this.t$a.bind(this),a["3.41"]=this.ER.bind(this),
a["3.44"]=this.T_.bind(this),a["3.45"]=this.Ho.bind(this),a["3.46"]=this.z7.bind(this),a};_.g.aN=function(a){var b=this,c=new _.DK(JSON.parse(a.args[0]));a=new Eld(c,a.args[1],this.context.H[a.clientId]);cO(this.context.Ej,"iuEtc");return this.ka.enqueue(a).then(function(d){return b.ud([d.response.Rb(),d.Pe,d.D_])},function(d){return b.ud(void 0,d)})};
_.g.rG=function(a){var b=this,c=new _.RB(JSON.parse(a.args[0]));a=new Qld(c,a.args[1],this.context.H[a.clientId]);cO(this.context.Ej,"OZvrNc");return this.oa.enqueue(a).then(function(d){return b.ud([d.response.Rb(),d.Pe,d.D_])},function(d){return b.ud(void 0,d)})};
_.g.wd=function(a){var b=this,c=new p1c(JSON.parse(a.args[0])),d=_.D(c,_.eL,16)||_.D(c,_.fL,1)||_.D(c,_.gL,2)||_.D(c,_.jL,3)||_.D(c,_.HM,4)||_.D(c,_.hL,5)||_.D(c,_.nL,6)||_.D(c,_.pL,7)||_.D(c,_.qL,8)||_.D(c,_.tL,9)||_.D(c,_.IL,10)||_.D(c,_.JL,11)||_.D(c,_.KL,12)||_.D(c,_.TK,13)||_.D(c,_.NL,14)||_.D(c,_.OL,15)||_.D(c,_.hN,17),e=TO(this,a);return this.H.then(function(f){return f.Ve(d,e)}).then(function(f){return b.ud([f.Rb()])},function(f){return b.ud(void 0,f)})};
_.g.AN=function(a){var b=this,c=new y1c(JSON.parse(a.args[0])),d=_.D(c,_.kL,1)||_.D(c,_.rL,2)||_.D(c,_.PL,3),e=TO(this,a);return this.H.then(function(f){return f.Ve(d,e)}).then(function(f){return b.ud([f.Rb()])},function(f){return b.ud(void 0,f)})};
_.g.Sy=function(a){var b=this,c=new s1c(JSON.parse(a.args[0])),d=TO(this,a),e=[],f=[];u1c(c).forEach(function(h){h instanceof _.eL?e.push(String(h.Kc())):e.push(String(h.getId()));f.push(b.H.then(function(k){return k.Ve(h,d)}))});a=_.Wh(f).then(function(h){return h.map(function(k){return k.value||k.reason})});_.Yh(a,function(){return void hhd(b.context.xf)});return a.then(function(h){return b.ud([(new f1c(e,h)).Rb()])})};
_.g.uq=function(a){var b=this,c=new _.CL(JSON.parse(a.args[0])),d=a.args[1];if(3===c.getType())if(!d&&this.W)a=this.W;else{var e=TO(this,a);a=this.H.then(function(f){return f.Ve(c,e)}).then(function(f){return new _.BM(f,1,!1)});this.W||(this.W=a.then(function(f){return new _.BM(f.response,f.Pe,!0)}),setTimeout(function(){b.W=null},9E5))}else a=new Lld(c,d,this.context.H[a.clientId]),cO(this.context.Ej,"Qubz4b"),a=this.ma.enqueue(a);return a.then(function(f){return b.ud([f.response.Rb(),f.Pe,f.D_])},
function(f){return b.ud(void 0,f)})};_.g.CR=function(a){var b=this,c=new v1c(JSON.parse(a.args[0])),d=_.D(c,_.SB,1)||_.D(c,_.TB,2),e=TO(this,a);return this.H.then(function(f){return f.Ve(d,e)}).then(function(f){return b.ud([f.Rb()])},function(f){return b.ud(void 0,f)})};_.g.El=function(a){a=a.args[0];if(this.context.Gy)a?_.JYc(this.context.Gy):this.context.nk().Ye()&&this.context.Gy.QL(!0).then(null,function(){});else try{this.context.Gj().El(a)}catch(b){return this.ud(void 0,b)}return this.ud([])};
_.g.py=function(a){var b=this,c=a.args[0];return this.context.py(c).then(function(d){return d?(b.context.Gj().py(c),b.Ha(c),b.context.zs.EK().Ag(function(){return!c})):_.Rh(!c)}).then(function(d){return b.ud([d])},function(d){return b.ud(void 0,d)})};_.g.sync=function(){var a=this;return _.Vh([this.context.W$.promise,this.context.ka.promise]).then(function(){return a.context.zs.EK()}).then(function(){return a.ud([])},function(b){return a.ud(void 0,b)})};
_.g.NE=function(){try{var a=this.context.O5;a&&a.Z3();this.context.eha.NE();return this.ud([])}catch(b){return this.ud(void 0,b)}};_.g.ER=function(){this.context.ER();return this.ud([])};_.g.gr=function(a){var b=this,c=new _.vL(JSON.parse(a.args[0])),d=TO(this,a);return this.H.then(function(e){return e.Ve(c,d)}).then(function(e){return b.ud([e.Rb()])},function(e){return b.ud(void 0,e)})};
_.g.$$=function(a){var b=this,c=new _.wL(JSON.parse(a.args[0])),d=TO(this,a);return this.H.then(function(e){return e.Ve(c,d)}).then(function(e){return b.ud([e.Rb()])},function(e){return b.ud(void 0,e)})};_.g.e8=function(a){var b=this,c=new _.lL(JSON.parse(a.args[0])),d=TO(this,a);return this.H.then(function(e){return e.Ve(c,d)}).then(function(e){return b.ud([e.Rb()])},function(e){return b.ud(void 0,e)})};
_.g.MS=function(a){var b=this,c=new _.LL(JSON.parse(a.args[0])),d=TO(this,a);return this.H.then(function(e){return e.Ve(c,d)}).then(function(e){return b.ud([e.Rb()])},function(e){return b.ud(void 0,e)})};
_.g.Y$=function(a){var b=this,c=new _.xL(JSON.parse(a.args[0])),d=TO(this,a);return this.H.then(function(e){return e.Ve(c,d)}).then(function(e){return _.HK(b.context.Qc)?had(b.context.xf.Sq,[_.D(e,_.Qk,2)],c.Kc()).then(function(){return e}):e}).then(function(e){return b.ud([e.Rb()])},function(e){return b.ud(void 0,e)})};
_.g.g8=function(a){var b=this,c=new _.oL(JSON.parse(a.args[0])),d=TO(this,a);return this.H.then(function(e){return e.Ve(c,d)}).then(function(e){return b.ud([e.Rb()])},function(e){return b.ud(void 0,e)})};_.g.Ot=function(a){var b=this,c=new _.EL(JSON.parse(a.args[0])),d=TO(this,a);return this.H.then(function(e){return e.Ve(c,d).then(function(f){return _.HK(b.context.Qc)?gad(b.context.xf.Sq,f):f})}).then(function(e){return b.ud([e.Rb()])},function(e){return b.ud(void 0,e)})};
_.g.wCb=function(a){var b=this,c=new _.Sdd(JSON.parse(a.args[0])),d=new _.YUc(c,a.args[1],a.args[2]||void 0),e=TO(this,a);return this.H.then(function(f){return f.Ve(d,e)}).then(function(f){return b.ud([f.Rb()])},function(f){return b.ud(void 0,f)})};
_.g.ACb=function(a){var b=this,c=new _.DL(JSON.parse(a.args[0])),d=TO(this,a);return this.H.then(function(e){return e.Ve(c,d).then(function(f){return _.HK(b.context.Qc)?had(b.context.xf.Sq,f.ud().PM(),c.yd().getId()).then(function(){return f}):f})}).then(function(e){return b.ud([e.Rb()])},function(e){return b.ud(void 0,e)})};
_.g.PP=function(){var a=this;return(_.E(this.context.Qc.Sf(),52,!1)?_.Rh(C9c(new B9c,0)):this.context.aI.PP()).then(function(b){return a.ud([b.Rb()])},function(b){return a.ud(void 0,b)})};_.g.yCb=function(a){var b=this,c=new _.XUc(JSON.parse(a.args[0])),d=TO(this,a);return this.H.then(function(e){return e.Ve(c,d)}).then(function(e){return b.ud([e.Rb()])},function(e){return b.ud(void 0,e)})};
_.g.xCb=function(a){var b=this,c=new _.BL(JSON.parse(a.args[0])),d=TO(this,a);return this.H.then(function(e){return e.Ve(c,d)}).then(function(e){return b.ud([e.Rb()])},function(e){return b.ud(void 0,e)})};_.g.f8=function(a){var b=this,c=new _.mL(JSON.parse(a.args[0])),d=TO(this,a);return this.H.then(function(e){return e.Ve(c,d)}).then(function(e){return b.ud([e.Rb()])},function(e){return b.ud(void 0,e)})};
_.g.Zna=function(a){var b=this,c=new _.rK(JSON.parse(a.args[0])),d=TO(this,a);return this.H.then(function(e){return e.Ve(c,d)}).then(function(e){return b.ud([e.Rb(),null])},function(e){return b.ud([null,_.QK(e).Rb()])})};_.g.Qwb=function(){return this.ud([!0])};_.g.CCb=function(a){var b=this,c=new _.jF(JSON.parse(a.args[0])),d=TO(this,a);return this.H.then(function(e){return e.Ve(c,d)}).then(function(e){return b.ud([e.Rb()])},function(e){return b.ud(void 0,e)})};
_.g.DCb=function(a){var b=this,c=new _.kF(JSON.parse(a.args[0])),d=TO(this,a);return this.H.then(function(e){return e.Ve(c,d)}).then(function(e){return b.ud([e.Rb()])},function(e){return b.ud(void 0,e)})};_.g.l_=function(a){a=new _.Te(JSON.parse(a.args[0]));wgd(this.context.xf,[a]);return this.ud([])};
_.g.y7=function(a){var b=this,c=new _.iL(JSON.parse(a.args[0])),d=TO(this,a);return this.H.then(function(e){return e.Ve(c,d)}).then(function(e){return b.ud([e.Rb()])},function(e){return b.ud(void 0,e)})};_.g.PO=function(a){var b=this,c=new _.zO(JSON.parse(a.args[0])),d=TO(this,a);return this.H.then(function(e){return e.Ve(c,d)}).then(function(e){return rad(c,e)}).then(function(e){return b.ud(e.map(function(f){return f.Rb()}))},function(e){return b.ud(void 0,e)})};
_.g.BCb=function(a){var b=this,c=new _.eVc(new _.SVb(JSON.parse(a.args[0])),a.args[1]),d=TO(this,a);return this.H.then(function(e){return e.Ve(c,d)}).then(function(e){return b.ud([e.response.Rb(),e.pageToken])},function(e){return b.ud(void 0,e)})};_.g.t$a=function(a){var b=this,c=new _.iF(JSON.parse(a.args[0])),d=TO(this,a);return this.H.then(function(e){return e.Ve(c,d)}).then(function(e){return b.ud([e.Rb()])},function(e){return b.ud(void 0,e)})};
_.g.T_=function(a){var b=this,c=new _.vM(JSON.parse(a.args[0])),d=TO(this,a);return this.H.then(function(e){return e.Ve(c,d)}).then(function(e){return b.ud([e.Rb()])},function(e){return b.ud(void 0,e)})};_.g.Ho=function(a){a=a.args[0].map(function(b){return new _.LK(JSON.parse(b))});this.context.xf.Ho(a);hhd(this.context.xf);return this.ud([])};_.g.z7=function(){var a=this,b=this.context.Gy;return(b?b.QL():_.Rh(_.sYc(0))).then(function(c){return a.ud([c.Rb()])},function(c){return a.ud(void 0,c)})};
_.g.initialize=function(){var a=this;if(!this.O){this.O=_.Xh();this.context.Tf().info("drive.ds.sync.cacheproxy.WorkerSyncedItemService","Initializing with client build: "+this.context.Qc.Gi());this.Oc.listen(this.context,_.wc,function(e){e=e.error;var f=e.Ug;f&&3===f.getType()&&!a.ha?(a.ha=!0,a.O.reject(e)):G4c(a.context.Tf(),"drive.ds.sync.cacheproxy.WorkerSyncedItemService","An error occurred in the Shared Worker")});var b=this.context.Ej,c=["hVFf7"];_.kM(this.context.Qc)&&c.push("BNEDtc");bO(b,
c,function(){a.ha||(a.ha=!0,a.O.resolve())});bO(b,["GZTDpc"],function(){return a.Ba.resolve()});var d=function(){IO(a.context).then(function(e){return void e.start()})};bO(b,["T8oKm","ZA9qG"],function(){return void d()});bO(b,["T8oKm","mrK8ic"],function(){return void d()});b.start();cO(b,"NSockf")}return this.O.promise};_.g.rba=function(){return this.Ba.promise};_.g.mu=function(){var a=this.context.O5;a&&a.dispose();return this.context.mu()};
var TO=function(a,b){return(a=a.context.H[b.clientId])?{iD:a}:{}};
var Sld=function(a,b,c){RO.call(this,"DU",b);this.context=a;this.O=c;this.H=new Jed(a)};_.O(Sld,RO);_.g=Sld.prototype;
_.g.zU=function(){var a=this,b={};return b["5.1"]=function(){return a.Sha()},b["5.2"]=function(c){return a.pM(c)},b["5.4"]=function(c){return a.iz(c)},b["5.5"]=function(){return a.LQ()},b["5.10"]=function(){return a.WM()},b["5.6"]=function(){return a.sda()},b["5.7"]=function(){return a.zS()},b["5.9"]=function(c){return a.tqa(c)},b["5.8"]=function(c){return a.J4(c)},b["5.11"]=function(){return a.zpa()},b["5.12"]=function(c){return a.getState(c)},b["5.13"]=function(c){return a.El(c)},b};
_.g.Sha=function(){var a=this;this.context.zs.NR();var b=this.context.Qc;return pcd(_.iM(_.CK(b)),_.jM(b),this.context.Tf()).Ag(function(){}).then(function(){return a.ud([])})};_.g.pM=function(a){a=this.context.xf.dm.H(a.args[0]);return this.ud([a?a.Rb():JSON.stringify(null)])};_.g.iz=function(a){var b=this;return this.context.oA.iz(a.args[0]).then(function(c){return b.ud([c.Rb()])})};_.g.LQ=function(){for(var a=this.context.oA.LQ(),b=[],c=0;c<a.length;c++)b.push(a[c].je());return this.ud([JSON.stringify(b)])};
_.g.J4=function(a){var b=this,c=new _.zTc(JSON.parse(a.args[0])),d=a.args[1],e=a.args[2];if(_.D(c,_.IK,3)||_.D(c,_.RL,4)||_.D(c,_.HM,5)||_.D(c,_.OL,6)||_.D(c,_.qL,7)||_.D(c,_.jL,8)||_.D(c,_.nL,9)||_.D(c,_.TK,10)){var f=J9c(c);return this.context.Cm().then(function(h){return h.Ve(f,{r6a:d,s6a:e})}).then(this.u$a.bind(this,a),function(h){return b.ud(void 0,h)})}return _.Rh(this.ud(void 0,Error("Xf")))};
_.g.u$a=function(a,b){a=[];var c="";if(b instanceof _.IM){a=b.ud().Gd();var d=_.C(b,2);c=b.Ln()}else if(b instanceof _.TL)b.getItem()&&a.push(b.getItem()),d=b.AM();else return this.ud(void 0,Error("Yf"));b=[];for(var e=0;e<a.length;e++)b.push(a[e].je());return this.ud([JSON.stringify(b),d,c])};_.g.tqa=function(){var a=this.context.Qc,b=a.Sf();a="email:"+_.CK(a).getEmail().replace(/@.*$/,"");_.B(b,13,a);return this.ud([])};_.g.sda=function(){this.context.tF.H=new fbd(_.Kg().substring(0,8));return this.ud([])};
_.g.zS=function(){var a=this.context.tF.WM();if(a){for(var b=[],c=hbd(this.context.tF),d=0;d<c.length;d++)b.push(c[d].je());a=[a.Rda,a.startTime,JSON.stringify(b)]}else a=[];b=this.context.tF;b.H=null;b.gY=[];return this.ud(a)};_.g.WM=function(){var a=this.context.tF.WM();return this.ud(a?[a.Rda,a.startTime]:[])};_.g.getState=function(){var a=this;return this.H.getState(this.va).then(function(b){return a.ud([b])})};
_.g.zpa=function(){var a=[this.O.mu(),_.Ci(3E4)];_.Yh(_.Cja(a),function(){_.n.setTimeout(function(){self.close()})});return this.ud([])};_.g.El=function(a){this.H.El(a.args[0]);return this.ud([])};
var Tld=function(a,b,c,d,e,f,h){_.VM.call(this,a,b,c,d,f,h);this.H=e;this.zd=null};_.O(Tld,_.VM);Tld.prototype.YL=function(a,b){var c=this;return _.fi(this.H.then(function(d){return d.o2a(y0c(c.O,c.va,a,b,c.aj,c.ha))},null))};Tld.prototype.ma=function(a,b){var c=this.yd(a);if(c){var d=0;if(c.file){var e=c.request&&c.request.iz();e&&(d=_.C(e,1));0===d&&(d=c.file.size)}this.dispatchEvent(new _.VYc(a,b,d))}};
var Uld=function(a,b,c,d,e,f,h,k){RO.call(this,"FU",k);this.ka=a;this.ha=b;this.oa=c;this.Ba=d;this.W=e;this.ma=f;this.zd=h;this.H={};this.O={};this.Oc=new _.De(this);this.Ma(this.Oc)};_.O(Uld,RO);_.g=Uld.prototype;
_.g.zU=function(){var a=this,b={};return b["7.1"]=function(c){return a.upload(c)},b["7.2"]=function(c){return a.cancel(c)},b["7.3"]=function(c){return a.KF(c)},b["7.4"]=function(c){return a.retry(c)},b["7.5"]=function(c){return a.YL(c)},b["7.6"]=function(c){c=c.clientId+":"+c.requestId;a.H[c]&&(a.H[c].dispose(),delete a.H[c]);return a.ud([])},b["7.7"]=function(c){c=c.args;var d=c[0];a.O[d].resolve(null!=c[1]?c[1]:null);delete a.O[d];return a.ud([])},b};
_.g.upload=function(a){var b=this,c=a.clientId+":"+a.requestId,d=new _.jL(JSON.parse(a.args[0])),e=a.args[1];if(!this.H[c]){var f=new Tld(this.ka,this.ha,this.oa,this.Ba,this.W,this.ma,this.zd);this.Oc.listen(f,"Lb",_.rb(this.v$a,a.clientId,a.requestId));this.Ma(f);this.H[c]=f}return this.H[c].upload(d,e,void 0,function(h,k){var l=a.clientId,p=a.requestId,q=d.Zi(),t=_.Xh();b.O[q]=t;b.update(l,p,Vld(3,q,[h,k]));return t.promise}).then(function(h){return b.ud([h.Rb()])},function(h){return b.ud(void 0,
h)})};_.g.cancel=function(a){var b=a.clientId+":"+a.requestId;this.H[b]&&this.H[b].cancel(a.args[0]);return this.ud([])};_.g.KF=function(a){a=a.clientId+":"+a.requestId;this.H[a]&&this.H[a].KF();return this.ud([])};
_.g.retry=function(a){var b=this,c=a.clientId+":"+a.requestId;if(this.H[c]){var d=a.args[0],e=a.args[1],f=this.H[c].retry(e),h={},k=0;_.Ka(e,function(l){h[l]=f[k++]});_.Na(h,function(l,p){l.Mf(function(q){b.update(a.clientId,c,Vld(0,d,[p,q.Rb()]))},function(q){b.update(a.clientId,c,Vld(1,d,[p,q.Ug.Rb()]))})});return this.ud([])}return this.ud(void 0,_.QK("Could not retry upload."))};
_.g.YL=function(a){var b=a.clientId+":"+a.requestId,c=a.args[0];a=a.args[1];return this.H[b]?(b=this.H[b],c=y0c(b.O,b.va,c,a,b.aj,b.ha),this.ud([B1c(c)])):this.ud(void 0,_.QK("FileUploader not found."))};_.g.v$a=function(a,b,c){this.update(a,b,Vld(2,c.requestId,[c.progress,c.totalBytes]))};var Vld=function(a,b,c){return[Number(a),b].concat(_.jd(c))};
var Wld=function(a,b){RO.call(this,"IE",b);this.O=a;this.H=new Map};_.O(Wld,RO);Wld.prototype.zU=function(){var a=this,b={};return b["9.1"]=function(c){return a.export(c)},b["9.2"]=function(c){return a.cancel(c)},b};
Wld.prototype.export=function(a){var b=this,c=a.requestId,d=a.clientId+":"+c,e=new _.WUc(JSON.parse(a.args[0]));e=new DO(this.O,e);var f=_.qe(e,"Pb",function(h){b.update(a.clientId,c,[h.iPa,h.mua])});_.te(e,function(){_.vi(f);b.H.delete(d)});this.H.set(d,e);return e.start().then(function(h){return b.ud([h.Rb()])},function(h){return b.ud(void 0,h)})};Wld.prototype.cancel=function(a){(a=this.H.get(a.clientId+":"+a.requestId))&&a.cancel();return this.ud([])};
var Xld=function(a,b){RO.call(this,"ODS",b);this.context=a;this.H=!1;this.W=_.Xh();this.O=new Oed(a,a.Mg)};_.O(Xld,RO);Xld.prototype.zU=function(){var a=this,b={};return b["6.1"]=function(c){return Yld(a,c)},b["6.2"]=function(c){return Zld(a,c)},b["6.3"]=function(){a.H&&(Red(a.O),a.H=!1,a.W=_.Xh());return a.ud([])},b};
var Yld=function(a,b){if(!a.H){a.H=!0;var c=[];_.Ka(b.args,function(d){d=new _.hl(JSON.parse(d));c.push(d)});a.O.jl(c);cO(a.context.Ej,"GZTDpc");a.W.resolve()}return a.ud([])},Zld=function(a,b){return a.W.promise.then(function(){var c=[];_.Ka(b.args,function(d){d=new _.LK(JSON.parse(d));c.push(d)});Qed(a.O,c);return a.ud([])})};
var $ld=function(){var a=this;this.services=new Map;"IS LRM DU ODS FU IE TM".split(" ").forEach(function(b){if(a.services.has(b))throw Error("zg`"+b);a.services.set(b,new _.$h)})};$ld.prototype.activate=function(a){var b=this.services.get(a.V);if(b&&!b.Wf())b.callback(a);else throw Error("Ag`"+a.V);};var amd=function(a,b){a=_.m(a.services);for(var c=a.next();!c.done;c=a.next())c=_.m(c.value),c.next(),c.next().value.addCallback(function(d){d.registerService(b)})};$ld.prototype.ko=function(){return[].concat(_.jd(this.services.values())).every(function(a){return a.Wf()})};
var bmd=function(){},cmd={0:2E3,1:3E3,2:5E3},dmd=function(a,b){this.request=a;this.W=b;this.H=_.Xh();this.continuationToken="";this.V=0;this.gE=this.isRunning=!1;this.O=bmd};_.g=dmd.prototype;_.g.Xg=function(a){var b=this;this.isRunning||(this.isRunning=!0,this.sendRequest());a&&(this.O=a);return this.H.promise.then(function(c){b.O=bmd;b.V=0;return c},function(c){b.O=bmd;b.V=0;return Promise.reject(c)})};
_.g.sendRequest=function(){if(this.gE)this.H.resolve((new ydd).Dc(8));else{var a=new _.iVc(this.request,this.continuationToken);this.W.then(function(b){return b.Ve(a)}).then(this.w$a.bind(this),this.handleError.bind(this))}};_.g.w$a=function(a){var b=this,c;(this.continuationToken=null!==(c=a.Ln())&&void 0!==c?c:"")?(this.O(a),setTimeout(function(){b.sendRequest()},emd(this.V++,this.ha))):this.H.resolve(a)};_.g.handleError=function(a){a=_.sA(a);this.H.reject(a)};_.g.cancel=function(){this.gE=!0};
var emd=function(a,b){return b?b:(a=cmd[a])?a:1E4};
var fmd=function(a,b){RO.call(this,"TM",b);this.O=a;this.H=new Map};_.O(fmd,RO);fmd.prototype.zU=function(){var a=this,b={};return b["10.1"]=function(c){return gmd(a,c)},b["10.2"]=function(c){return a.cancel(c)},b};var gmd=function(a,b){var c=b.clientId+":"+b.requestId;b=new _.wdd(JSON.parse(b.args[0]));b=new dmd(b,a.O);a.H.set(c,b);return _.Yh(b.Xg().then(function(d){return a.ud([d])},function(d){return a.ud(void 0,d)}),function(){a.H.delete(c)})};
fmd.prototype.cancel=function(a){this.H.get(a.clientId+":"+a.requestId).cancel();return this.ud([])};
var UO=function(a,b,c){_.P.call(this);this.H=a;this.Hr=b;this.kb=c;this.fields=null;this.Ha=!1;this.Ka=_.Xh();this.W=!1;this.Ba=_.Xh();this.O=_.Xh();this.oa=null;this.va=this.Ta=!1;this.Ab=_.Xh();this.ha=new Set;this.Fa=new Set;this.V=new Map;this.ma=new Set;this.GB=Date.now();this.services=new $ld;this.Mb=new _.De(this);this.Ma(this.Mb)};_.O(UO,_.P);UO.prototype.JX=function(a){this.O.promise.then(function(b){b.O5||a.dj(b)})};
var kmd=function(a,b){var c=rld(a.H,b),d=a.Wb.bind(a,c);UN(b,"8.1",d);b.registerService("8.1",d);UN(b,"8.4",a.Pa.bind(a,c));b.registerService("8.5",function(f){return hmd(a,c,f)});UN(b,"8.2",a.Gb.bind(a,c));UN(b,"8.3",a.Qb.bind(a,c));amd(a.services,b);b.start();imd(a,c,b);a.ka(c,b);var e=[];a.oa||(a.oa=_.Vh([a.Ka.promise,a.Ba.promise]).then((0,_.v)(a.initialize,a)));e.push(a.oa);_.Vh(e).then(function(){return void jmd(a,c,b)},function(f){a.Ta=!0;VN(b,"2.2",{err:_.QK(f).Rb()},d)})},lmd=function(a){return Math.floor((Date.now()-
a.GB)/1E3)},mmd=function(a,b,c){var d=function(e){VN(b,"2.8",{au:"ib"===e.type})};a.Mb.listen(c.aI,["ib","jb"],d);_.te(b,a.Mb.Xc.bind(a.Mb,c.aI,["ib","jb"],d))},nmd=function(a,b,c){var d=c.nk(),e=[].concat(_.jd(Object.values(_.tA))),f=function(h){VN(b,"2.19",{cs:h.connectionState})};a.Mb.listen(d,e,f);_.te(b,function(){a.Mb.Xc(d,e,f)})};
UO.prototype.Wb=function(a){var b=sld(this.H,a);if(b&&((this.services.services.get("LRM")||null).addCallback(function(d){vld(d,a)}),b.dispose(),this.log(_.kt("Client %d disconnected (num clients remaining: %d)",a,_.Ra(this.H.channels))),0===_.Ra(this.H.channels))){var c=function(){_.n.setTimeout(function(){self.close()})};this.Ta?c():(this.services.services.get("IS")||null).addCallback(function(d){_.Yh(d.mu(),c)})}};
UO.prototype.Pa=function(a,b){if(this.ha.has(a))return _.Rh();var c=new _.Rb(JSON.parse(b.dsc));_.B(c,24,!1);this.Ha||(this.Ha=!0,this.Ka.resolve(c));this.ha.add(a);return this.O.promise.then(function(d){mld(d,a,_.H(c.Sf(),37,""));lld(d,_.Id(c,28));d.xf.Bla(_.ek(c,_.wl,91));return d.eX.promise.then(function(){wgd(d.xf,_.ek(c,_.Te,44))})},function(){})};
UO.prototype.Gb=function(a,b){var c=this;if(!this.ma.has(a)){this.ma.add(a);var d=b.ivd;d&&this.O.promise.then(function(e){e=new Dfd(e,e.Mg);e.Xg(d);e.dispose();(e=c.H.channels[a]||null)&&VN(e,"2.16")})}};UO.prototype.Qb=function(a,b){var c=this;this.V.has(a)||this.V.set(a,new Set);var d=this.V.get(a),e=b.dsp;if(e){var f=[];for(b=0;b<e.length;b++)e[b]&&(d.has(b)?e[b]=void 0:(f.push(b),d.add(b)));f.length&&this.O.promise.then(function(h){omd(new ggd(h),e);(h=c.H.channels[a]||null)&&VN(h,"2.17",{t:f})})}};
var omd=function(a,b){b.filter(function(c){return c}).forEach(function(c){return a.Xg(c)});a.dispose()};UO.prototype.$a=function(){var a=[];_.Ka(_.Sa(this.H.channels),function(b){var c=_.Xh();VN(b,"2.12",void 0,function(){b.dispose();c.resolve()});a.push(c.promise)});return _.Vh(a).then()};
UO.prototype.initialize=function(a){var b=this;a=a[0];_.xWc(a,this.fields);var c=_.D(a,_.ZK,58);c=c&&_.E(c,1,!1)?this.kb:void 0;try{var d=new mN(null,a,this.Hr,c,void 0,void 0),e=d.Mk().H(106E3);Tkd(d,this.$a.bind(this));this.Mb.listen(d.Gj(),"Ab",function(k){pmd(b,k.Ye())});this.Mb.listen(d,_.wc,this.nb);this.Mb.listen(d,"w8KrJc",this.Nc);G9c(d.aI,this.ka.bind(this));var f=d.Gy;f&&T4c(f,function(){return b.ka()});this.O.resolve(d);var h=qmd(this,d,new Rld(d,this.H,(0,_.v)(this.yc,this),(0,_.v)(this.Hc,
this)));e&&h.then(function(){return e&&e.Tj()});return h}catch(k){return _.Sh(k)}};
var qmd=function(a,b,c){a.services.activate(c);a.services.activate(new tld(b,a.H));a.services.activate(new Sld(b,a.H,c));a.services.activate(new Xld(b,a.H));a.services.activate(new Uld(b.Qc,b.oA,b.KQ().vfa,b.Cm(),b.LP,b.Tf(),b.Mk(),a.H));a.services.activate(new Wld(b.Cm(),a.H));a.services.activate(new fmd(b.Cm(),a.H));return c.initialize()},jmd=function(a,b,c){var d=_.Ra(a.H.channels);a.log(_.kt("Client %d connected (num clients: %d, added: %d, max concurrent: %d)",b,d,a.H.O,a.H.H));VN(c,"2.2",{id:b,
clients:d,uptimeSec:lmd(a),dsp:!a.V.has(b),ivd:!a.ma.has(b)});a.O.promise.then(function(e){e.wZ.addCallback(function(f){c.isDisposed()||VN(c,"2.5",{id:f})});1<d&&IO(e).addCallback(function(f){return f.Jwa()});(a.services.services.get("IS")||null).addCallback(function(f){f.rba().then(function(){c.isDisposed()||VN(c,"2.14")})});mmd(a,c,e);nmd(a,c,e)})};UO.prototype.yc=function(a){var b={dt:a.dataType};_.Ka(_.Sa(this.H.channels),function(c){VN(c,"2.15",b)})};
var pmd=function(a,b){var c={os:b};_.Ka(_.Sa(a.H.channels),function(d){VN(d,"2.6",c)})};UO.prototype.Hc=function(a){var b={oois:a};_.Sa(this.H.channels).forEach(function(c){VN(c,"2.18",b)})};UO.prototype.nb=function(a){var b={p:a.error.Ug.Rb()};_.Ka(_.Sa(this.H.channels),function(c){VN(c,"2.10",b)})};UO.prototype.Nc=function(){_.Ka(_.Sa(this.H.channels),function(a){VN(a,"2.7")})};var imd=function(a,b,c){a.ha.has(b)?_.Rh():new _.Qh(function(d){VN(c,"2.1",void 0,function(e){d(a.Pa(b,e))})})};
UO.prototype.ka=function(a,b){var c=this;if("number"===typeof a){if(!b)return _.Sh(Error("Bg"));if(this.W&&this.Fa.has(a))return _.Rh()}b=b||_.Sa(this.H.channels)[0];if(!b)return _.Sh(Error("Cg"));var d=_.Xh();b.send("1.1",void 0,function(e){hmd(c,a,e);d.resolve()});return d.promise};var hmd=function(a,b,c){_.Na(c.ac,function(d,e){_.n[e]=d});"number"===typeof b&&a.Fa.add(b);a.W||(c.bl&&!a.va&&(a.va=!0,a.Ab.resolve(c.bl)),a.fields||(a.fields=c.ufds),a.W=!0,a.Ba.resolve())};
UO.prototype.log=function(a){this.O.promise.then(function(b){return b.Tf().info("drive.ds.sync.cacheproxy.Worker",a)})};
var rmd=function(a,b){QO.call(this,"DU","drive.ds.sync.DebugUtilProxy",a);this.context=b;this.H=null};_.O(rmd,QO);_.g=rmd.prototype;_.g.La=function(){return _.D(this.context.Qc,_.ZK,58)};_.g.getContext=function(){return this.context};_.g.iz=function(){return this.send("5.4",[this.H],function(a){return new _.mXc(JSON.parse(a[0]))})};_.g.Tf=function(){return this.context.Tf()};_.g.pM=function(a){return this.send("5.2",[a],function(b){return(b=JSON.parse(b[0]))&&new _.hl(b)})};
_.g.LQ=function(){return this.send("5.5",[],function(a){a=JSON.parse(a[0]);for(var b=[],c=0;c<a.length;c++)b.push(new _.zTc(a[c]));return b})};_.g.J4=function(a,b,c){return this.send("5.8",[a.Rb(),b,c],function(d){var e=JSON.parse(d[0]),f=d[1];d=d[2];for(var h=[],k=0;k<e.length;k++)h.push(new _.hl(e[k]));return{items:h,tia:f,pageToken:d}})};_.g.tqa=function(){this.send("5.9",[])};_.g.Sha=function(){this.send("5.1",[])};_.g.b9=function(){return _.cUc[_.Oj(this.context.Qc.Sf(),8,0)]};
_.g.sda=function(){this.send("5.6",[])};_.g.zS=function(){return this.send("5.7",[],function(a){if(0===a.length)return null;var b=a[0],c=new Date(a[1]),d=[];a=JSON.parse(a[2]);for(var e=0;e<a.length;e++)d.push(new K9c(a[e]));return{traceId:new fbd(b,c),spanRecs:d}})};_.g.WM=function(){return this.send("5.10",[],function(a){return 0===a.length?null:new fbd(a[0],new Date(a[1]))})};_.g.getState=function(){return this.send("5.12",[],function(a){return a[0]})};_.g.zpa=function(){this.send("5.11",[])};
_.g.El=function(a){this.send("5.13",[a])};
var smd=function(a,b){QO.call(this,"IE","drive.ds.sync.itemexport.ItemExportSessionProxy",a);this.request=b;this.promise=null;this.id=String(_.Ea(this))};_.O(smd,QO);smd.prototype.start=function(){var a=this;this.promise||(this.promise=this.send("9.1",[this.request.Rb()],function(b){return new Ydd(JSON.parse(b[0]))},this.id).then(),this.promise.then(function(){return a.dispose()},function(){return a.dispose()}));return this.promise};
smd.prototype.cancel=function(){this.send("9.2",[this.request.Rb()],void 0,this.id)};smd.prototype.qla=function(a,b,c){this.dispatchEvent(new jed(c[0],c[1]))};
var tmd=function(a){QO.call(this,"ODS","drive.ds.sync.offline.DataServiceProxy",a);this.H=null};_.O(tmd,QO);tmd.prototype.MX=function(a){if(this.H=a){a=this.V.bind(this);var b=this.O.bind(this);this.log("Querying all offline items.");this.H.aV().Mf(a,b);this.H.o_((0,_.v)(this.W,this))}else this.send("6.3",[])};tmd.prototype.V=function(a){var b=[];_.Ka(a,function(c){b.push(c.Rb())});this.log("Forwarding all offline items response, count:"+a.length);this.send("6.1",b)};tmd.prototype.O=function(){this.log("Error fetching offline items.")};
tmd.prototype.W=function(a){var b=[];_.Ka(a,function(c){b.push(c.Rb())});this.log("Forwarding offline items changes, count:"+a.length);this.send("6.2",b)};
var umd=function(a,b){kO.call(this,a,b)};_.O(umd,kO);umd.prototype.iia=function(a,b,c){return new _.eVc(a,c)};umd.prototype.Cka=function(a){return a.pageToken||""};umd.prototype.Qja=function(a){return a.response.O()};umd.prototype.M5=function(){};
var vmd=function(a,b,c){CO.call(this,a.Gj(),a.nk(),b.Ii()||void 0);this.request=b;this.O=[];this.changed=!1;this.ka=c;this.V=new umd(this.request,this.ka)};_.O(vmd,CO);_.g=vmd.prototype;_.g.tG=function(){this.V.Xg().then(this.x$a.bind(this),this.handleError.bind(this))};_.g.getData=function(){return odd(new yO,this.O).Dc(this.status)};_.g.Lr=function(){return new mdd};_.g.Oj=function(){return!this.Ye()&&(!this.H||tad(this.V))};_.g.x$a=function(a){this.changed=this.H=!0;this.O=a;this.Bt()};
_.g.Bt=function(){if(this.active){var a=this.status;this.cL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.oi(_.xc,this))}};_.g.lc=function(){return this.O.length};
var wmd=function(a,b,c){CO.call(this,a.Gj(),a.nk(),b.Ii()||10);this.request=b;this.O=[];this.data=[];this.changed=!1;this.V=new _.ARc;this.suggestionSessionId=null;this.ka=c};_.O(wmd,CO);_.g=wmd.prototype;_.g.tG=function(){var a=this;this.ka(this.request).then(function(b){a.H=!0;a.changed=!0;a.data=b.ak();a.suggestionSessionId=b.Hf();a.Bt()},this.handleError.bind(this))};_.g.getData=function(){this.O=this.data;return _.t0c(_.s0c((new _.ZM).Dc(this.status),this.data.slice(0)),this.suggestionSessionId)};
_.g.Lr=function(){var a=this.V.jz(this.O,this.data);this.O=this.data;var b=(new sdd).Dc(this.status);return _.Cb(b,2,a)};_.g.NO=function(){};_.g.Bt=function(){var a=this.status;this.cL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.oi(_.xc,this))};_.g.lc=function(){return this.data.length};
var xmd=function(){};_.g=xmd.prototype;_.g.$L=function(a,b){b=Pdd(1).setPosition(b);_.A(b,2,a);return b};_.g.ZL=function(a,b){b=Pdd(2).setPosition(b);_.A(b,2,a);return b};_.g.jE=function(a,b,c){b=Pdd(3).qy(b).setPosition(c);_.A(b,2,a);return b};_.g.XP=function(a,b){b=Pdd(4).setPosition(b);_.A(b,2,a);return b};_.g.CM=function(a){return _.D(a,_.k8c,2)};
var zmd=function(){_.sK.call(this,new xmd,function(a){return ymd(a)})};_.O(zmd,_.sK);var ymd=function(a){switch(_.Kj(a,j8c[0])){case 6:return _.Sw(_.D(a,_.Rw,6)).getTime().toString();case 7:var b=_.D(a,_.MN,7);a=_.D(b,_.Rw,1);b=b.kr();return a&&b?(a=_.Sw(a).getTime(),_.Sw(b).getTime()+"--"+a):"";default:return""}},Bmd=function(){Amd||(Amd=new zmd);return Amd},Amd;
var Cmd=function(a,b,c,d){CO.call(this,b.Gj(),b.nk(),d);this.request=a;this.V=!1;this.ka=[];this.O=[];this.token="";this.changed=!1;this.ma=new _.DYc(_.Pj(b.Qc.Sf(),6,1E3));this.oa=c};_.O(Cmd,CO);_.g=Cmd.prototype;_.g.activate=function(){CO.prototype.activate.call(this);this.Bt()};_.g.tG=function(){_.L(this.request,3)?this.page():this.poll()};_.g.sr=function(a){if(a=a||50,this.O.length>this.limit)this.changed=!0;CO.prototype.sr.call(this,a)};
_.g.getData=function(){var a=(new Udd).Dc(this.status);_.Cb(a,2,this.O.slice(0,this.limit));this.ka=_.va(this.O);return a};_.g.Lr=function(){var a=Bmd().jz(this.ka,this.O),b=new Rdd;a=_.Cb(b,2,a).Dc(this.status);this.ka=_.va(this.O);return a};_.g.Oj=function(){return!this.Ye()&&(!this.H||this.O.length>this.limit||!!this.token)};_.g.yd=function(){return this.request};_.g.CMa=function(a){this.dispatchEvent(new _.lc(a));this.V=!1};
_.g.Ewb=function(a,b){this.H=!0;var c=_.ek(b,_.k8c,1);this.O=this.O.concat(c);this.token=b.Lx()||"";0<c.length&&(this.changed=!0);this.Bt();this.page(a)};_.g.Xwb=function(a){Bmd();this.H=!0;var b=_.ek(a,_.k8c,1);rN(0,this.O.slice(0,b.length),b)?(this.O=b,this.token=a.Lx()||"",this.changed=!0,this.Bt(),this.page()):(this.V=!1,Dmd(this))};
_.g.page=function(a){this.active?(this.V=!0,this.Oj()&&this.O.length<this.limit?this.oa(this.request,this.limit-this.O.length,this.token).Mf(_.rb(this.Ewb,a),this.CMa,this):(this.V=!1,a&&a.callback(),Dmd(this))):this.V=!1};_.g.poll=function(){this.active&&(this.V=!0,this.oa(this.request,this.limit).Mf(this.Xwb,this.CMa,this))};_.g.Bt=function(){if(this.active){var a=this.status;this.cL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.oi(_.xc,this))}};
_.g.cL=function(){this.Ye()&&!this.H?this.status=2:this.status=this.O.length<this.limit&&(!this.H||this.token)?6:1};_.g.NO=function(){this.active&&this.Oj()&&!this.V&&this.page(new _.$h)};var Dmd=function(a){_.L(a.request,3)||(_.GG(a.ma),_.n.setTimeout((0,_.v)(a.poll,a),a.ma.Za()))};Cmd.prototype.lc=function(){return this.O.length};
var Emd=function(){};_.g=Emd.prototype;_.g.$L=function(a,b){return Wdd(Vdd(1),a).setPosition(b)};_.g.ZL=function(a,b){return Wdd(Vdd(2).setPosition(b),a)};_.g.jE=function(a,b,c){return Wdd(Vdd(3).qy(b).setPosition(c),a)};_.g.XP=function(a,b){return Wdd(Vdd(4),a).setPosition(b)};_.g.CM=function(a){return _.D(a,_.sO,2)};
var Fmd=function(){_.sK.call(this,new Emd,function(a){return a.getId()})};_.O(Fmd,_.sK);var Hmd=function(){Gmd||(Gmd=new Fmd);return Gmd},Gmd;
var Imd=function(a,b,c){CO.call(this,b.Gj(),b.nk());this.request=a;this.ka=[];this.O=[];this.changed=!1;this.V=new _.DYc(_.Pj(b.Qc.Sf(),54,1E3));this.ma=c};_.O(Imd,CO);_.g=Imd.prototype;_.g.activate=function(){CO.prototype.activate.call(this);this.Bt()};_.g.tG=function(){this.poll()};_.g.getData=function(){var a=new ded;a=_.Cb(a,2,this.O).Dc(this.status);this.ka=_.va(this.O);return a};_.g.Lr=function(){var a=Hmd().jz(this.ka,this.O),b=new bed;a=_.Cb(b,2,a).Dc(this.status);this.ka=_.va(this.O);return a};
_.g.Oj=function(){return!this.Ye()&&!this.H};_.g.poll=function(){var a=new _.$h;this.ma(this.request).Mf(_.rb(this.z$a,a),_.rb(this.y$a,a),this);return a};_.g.y$a=function(a,b){this.dispatchEvent(new _.lc(b));a.Kd(b);Jmd(this)};_.g.z$a=function(a,b){this.H=!0;b=_.ek(b,_.sO,2);rN(Hmd(),this.O,b)&&(this.changed=!0,this.O=b,this.V.reset());this.Bt();a.callback();Jmd(this)};
_.g.Bt=function(){if(this.active){var a=this.status;this.cL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.oi(_.xc,this))}};_.g.NO=function(){};var Jmd=function(a){a.active&&(_.n.setTimeout((0,_.v)(a.poll,a),a.V.Za()),_.GG(a.V))};Imd.prototype.lc=function(){return this.O.length};
var Kmd=function(){};_.g=Kmd.prototype;_.g.$L=function(a,b){return Ycd(Xcd(1),a).setPosition(b)};_.g.ZL=function(a,b){return Ycd(Xcd(2).setPosition(b),a)};_.g.jE=function(a,b,c){return Ycd(Xcd(3).qy(b).setPosition(c),a)};_.g.XP=function(a,b){return Ycd(Xcd(4),a).setPosition(b)};_.g.CM=function(a){return _.D(a,_.Qk,2)};
var Lmd=function(){_.sK.call(this,new Kmd,function(a){return a.getId()})};_.O(Lmd,_.sK);_.Cf(Lmd);
var VO=function(a,b,c){_.yi.call(this);this.context=a;this.request=b;this.nextPageToken="";this.H=this.O=!1;this.limit=0;this.permissions=[];this.V=c};_.O(VO,_.yi);VO.prototype.di=function(a){this.limit=a};VO.prototype.Xg=function(){return this.H||this.O&&""===this.nextPageToken?Promise.resolve():Mmd(this)};VO.prototype.Eka=function(){return this.permissions};
var Mmd=function(a){a.O=!0;a.H=!0;var b=Math.min(a.limit-a.permissions.length,100);var c=new _.DL;c=_.A(c,3,a.request);c=_.B(c,2,a.nextPageToken);b=_.B(c,1,b);return a.V(b).then(a.W.bind(a)).then(null,a.handleError.bind(a))};VO.prototype.W=function(a){this.H=!1;this.nextPageToken=a.Ln()||"";a=a.ud().PM();this.permissions=_.ua(this.permissions,a);a.length&&this.dispatchEvent("Cb");if(this.nextPageToken&&this.permissions.length<this.limit)return Mmd(this);this.dispatchEvent("Fb")};
VO.prototype.handleError=function(a){this.H=!1;a=new XN(_.QK(a),_.Pj(this.context.Qc.Sf(),1,1));this.dispatchEvent(a)};
var Nmd=function(a,b,c,d){CO.call(this,b.Gj(),b.nk(),d||100);var e=this;this.request=a;this.context=b;this.ka=[];this.permissions=[];this.changed=!1;this.V=null;this.ma=c;this.O=new VO(b,this.request,this.ma);_.te(this,function(){e.V&&(_.n.clearTimeout(e.V),e.V=null)})};_.O(Nmd,CO);_.g=Nmd.prototype;_.g.activate=function(){CO.prototype.activate.call(this);this.Bt()};_.g.tG=function(){this.query()};_.g.sr=function(a){CO.prototype.sr.call(this,a||100)};
_.g.getData=function(){var a=new V4c;a=_.Cb(a,2,this.permissions.slice(0,this.limit)).Dc(this.status);this.ka=_.va(this.permissions);return a};_.g.Lr=function(){var a=Lmd.Fb().jz(this.ka,this.permissions),b=new edd;a=_.Cb(b,2,a).Dc(this.status);this.ka=_.va(this.permissions);return a};_.g.Oj=function(){var a;(a=!this.Ye())&&!(a=!this.H)&&(a=this.O,a=!a.O||""!==a.nextPageToken);return a};_.g.yd=function(){return this.request};
_.g.query=function(){var a=this;this.O=new VO(this.context,this.request,this.ma);this.O.di(this.limit);return this.O.Xg().then(function(){return Omd(a)},function(b){return a.handleError(b)})};_.g.handleError=function(a){CO.prototype.handleError.call(this,a);Pmd(this)};var Omd=function(a){a.H=!0;var b=a.O.Eka();rN(Lmd.Fb(),a.permissions,b)&&(a.changed=!0,a.permissions=b);a.Bt();Pmd(a)};
Nmd.prototype.Bt=function(){if(this.active){var a=this.status;this.cL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.oi(_.xc,this))}};Nmd.prototype.NO=function(){var a=this;this.O.di(this.limit);this.O.Xg().then(function(){return Omd(a)},function(b){return a.handleError(b)})};var Pmd=function(a){if(a.active){var b=a.context.Qc.Sf();a.V=_.n.setTimeout((0,_.v)(a.query,a),Math.ceil(_.Pj(b,7,9E5)*Math.random())+_.Pj(b,15,36E5))}};Nmd.prototype.lc=function(){return this.permissions.length};
var Qmd=function(a){6!==a.status&&_.n.setTimeout(function(){a.dispatchEvent(new _.oi(_.xc,a))},0)};
var Rmd=function(a,b){QO.call(this,"TM","drive.ds.sync.TeamDriveMovePreflightRunnerProxy",a);this.request=b;this.H=null;this.id=String(_.Ea(this))};_.O(Rmd,QO);Rmd.prototype.Xg=function(){var a=this;this.H||(this.H=_.Xh(),this.send("10.1",[this.request.Rb()],function(b,c){b=jN(b[0],c,ydd);a.H.resolve(b)},this.id).wg(function(b){a.H.reject(b)}));return this.H.promise};Rmd.prototype.cancel=function(){this.send("10.2",[this.request.Rb()],void 0,this.id)};
var Smd=function(a,b,c){_.yi.call(this);this.instanceId=a;this.H=b;this.V=c;this.gu={};this.O={};_.te(this,(0,_.v)(this.A$a,this))};_.O(Smd,_.yi);_.g=Smd.prototype;_.g.getId=function(){return this.instanceId};_.g.WP=function(){return _.Lg()};_.g.upload=function(a,b){!_.C(a,26)&&b&&b.lastModified&&_.B(a,26,b.lastModified);var c;b&&(c=b.type?b:new File([b],b.name,{type:b.type}));if(b){var d=new _.DWc;_.B(d,1,b.size);_.A(a,15,d);this.O[a.Zi()]=b}return this.H("7.1",[a.Rb(),c],function(e){return new _.TL(JSON.parse(e[0]))})};
_.g.cancel=function(a){this.H("7.2",[a])};_.g.KF=function(){this.H("7.3",[])};_.g.retry=function(a){var b={};_.Ka(a,function(d){b[d]=new _.$h});var c=this.WP();this.gu[c]=b;this.H("7.4",[c].concat(_.jd(a)));return _.Sa(b)};_.g.YL=function(a,b){var c=this;return this.H("7.5",[a].concat(_.jd(b)),function(d){return C1c(d[0])}).addCallback(function(d){return _.fi(c.V.then(function(e){return e.o2a(d)}))})};_.g.A$a=function(){this.H("7.6",[])};
var Tmd=function(a,b,c,d){if(a.gu[b]&&a.gu[b][c]){var e=a.gu[b][c];d instanceof _.TL?e.callback(d):e.Kd(d);delete a.gu[b][c];_.Va(a.gu[b])&&delete a.gu[b]}};
var Umd=function(a,b){QO.call(this,"FU","drive.ds.sync.upload.FileUploaderProxyManager",a);this.O=b;this.H=new Map};_.O(Umd,QO);var Vmd=function(a){var b=_.Lg(),c=new Smd(b,function(d,e,f){return a.send(d,e,f,b)},a.O);a.H.set(b,c);_.te(c,function(){return void a.H.delete(b)});return c};
Umd.prototype.qla=function(a,b,c){if((a=this.H.get(a))&&c){b=c[1];var d=c.slice(2);switch(c[0]){case 3:c=d[0];d=d[1];d=Math.min(d,1073741824);var e=a.O[b];a.H("7.7",[b,_.JUc(e,c,Math.min(e.size,c+d))]);break;case 0:c=new _.TL(JSON.parse(d[1]));Tmd(a,b,d[0],c);break;case 1:c=new _.kc(void 0,new _.jc(JSON.parse(d[1])));Tmd(a,b,d[0],c);break;case 2:a.dispatchEvent(new _.VYc(b,d[0],d[1]));break;default:throw Error("Dg");}}};
var Wmd=function(a,b){if(0===a.length)throw new _.kc("mutateUserPref requires a namespace.",_.aL(3));var c=null;b instanceof _.TB?c=(b=(b=_.D(b,_.Ip,1))&&b.getKey())&&_.Jp(b)||null:b instanceof _.SB&&(c=(b=b.getKey())&&_.Jp(b)||null);if(!c||!a.find(function(d){return d===c}))throw new _.kc("mutateUserPref unsupported for namespace: "+c,_.aL(3));};
var Xmd=function(a){this.H=a};
var lN=function(a){QO.call(this,"IS","drive.ds.sync.ItemServiceProxy",(Ymd=_.Xh()).promise);var b=this;this.Pn=null;this.Ka=this.Pa=this.Ta=this.ma=!1;this.ha=this.ka=this.W=null;this.$a=new _.po;this.Ha=new _.po;this.V=Ymd;Ymd=void 0;this.context=a;Vkd(this.context,new tmd(this.V.promise));J4c(this.context.Mg,_.Id(this.context.Qc,28));this.H=this.context.wfa;this.O=new wld(this.V.promise,this.context,this.H);this.nb=new Umd(this.V.promise,this.context.LP);this.Fa=new rmd(this.V.promise,this.context);
this.Oc=new _.De(this);this.Ma(this.Oc);this.Oc.listen(this.context.nk(),[].concat(_.jd(Object.values(_.tA))),function(c){return void b.dispatchEvent(c)})},Ymd;_.O(lN,QO);
lN.prototype.initialize=function(){var a=this;if(!this.Pn){this.Pn=_.Rh(this.oa);var b=this.context.Mk().H(106E3);this.Pn.then(function(){b&&b.Tj();a.g1a()},function(){_.mYc(a.context.Mk(),181008852)});var c=_.kM(this.context.Qc)?"(coldstart) ":"";this.context.Tf().info("drive.ds.sync.ItemServiceProxy","Initializing "+c+"with client build: "+this.context.Qc.Gi());var d=o1c(this.context.Qc,this.Ki(),_.qM(this.context.Mg));Zmd(this,d);2===d.H?(c=new UO(new qld,6,this.context.Tf()),kmd(c,d.O),this.Ha.resolve(c)):
H1c(this.Fa);this.context.Tf().info("drive.ds.sync.ItemServiceProxy","Connecting to worker: "+d.endpoint);d.channel.start();Tkd(this.context,function(){return $md(d.channel)})}return this.Pn};
var $md=function(a){return _.Cja([new _.Qh(function(b){a.isDisposed()||VN(a,"8.1",void 0,function(){a.dispose();b()})}),_.Ci(1E4)])},Zmd=function(a,b){var c=b.channel;0===b.H?c.registerService("2.0",(0,_.v)(a.Ab,a)):c.registerService("1.1",function(){return and(a,b)});2===b.H?a.Ha.promise.then(function(){return void bnd(a,b)}):bnd(a,b);UN(c,"2.1",function(){return{dsc:a.context.Qc.Rb()}});UN(c,"2.2",function(d){"number"===typeof d.id?(a.V.resolve(new pld(d.id,c,a.context.Tf(),d.clients)),d.dsp&&cnd(c),
d.ivd&&dnd(a,c)):(d=new _.jc(JSON.parse(d.err)),a.oa.Kd(new _.kc("Unable to initialize dataservice.",d)))});UN(c,"2.15",function(d){a.dispatchEvent(new ied(d.dt))});UN(c,"2.5",function(d){a.context.ku(d.id)});UN(c,"2.6",function(d){a.context.Gj().El(d.os)});UN(c,"2.18",function(d){a.context.Gj().py(d.oois)});UN(c,"2.7",function(){a.ma=!1});UN(c,"2.8",function(d){a.context.Ha=d.au;a.dispatchEvent(new h5c(d.au?"ib":"jb"))});UN(c,"2.19",function(d){a.context.nk().update(d.cs)});UN(c,"2.9",function(d){var e=
d.logName,f=d.level;d=_.kt("[CSW %s] %s",d.totalTime,d.message);switch(f){case "config":a.context.Tf().config(e,d);break;case "fine":_.oM(a.context.Tf(),e,d,"fine");break;case "finer":_.oM(a.context.Tf(),e,d,"finer");break;case "finest":_.oM(a.context.Tf(),e,d,"finest");break;case "info":a.context.Tf().info(e,d);break;case "warning":case "severe":G4c(a.context.Tf(),e,d);break;default:G4c(a.context.Tf(),"drive.ds.sync.ItemServiceProxy","Unknown log level: "+f),G4c(a.context.Tf(),e,d)}});UN(c,"2.10",
function(d){return void a.A$(d)});UN(c,"2.12",function(){a.Ka=!0;WO(a)});UN(c,"2.14",function(){return a.$a.resolve()});UN(c,"2.16",function(){return a.Ta=!0});UN(c,"2.17",function(d){a.context.Tf().info("drive.ds.sync.ItemServiceProxy","Prefetched request loaded for: "+d.t.join(","))})},bnd=function(a,b){1!==b.H&&2!==b.H||b.channel.send("8.5",and(a,b));VN(b.channel,"8.4",{dsc:a.context.Qc.Rb()});cnd(b.channel);dnd(a,b.channel)},cnd=function(a){_.n._DRIVE_dsp&&VN(a,"8.3",{dsp:end(_.n._DRIVE_dsp)});
_.n._DRIVE_dspc=function(b){if(_.n._DRIVE_dsp){var c=[];c[b]=_.n._DRIVE_dsp[b];VN(a,"8.3",{dsp:end(c)})}}},dnd=function(a,b){_.E(a.context.Qc,24,!1)&&(_.n._DRIVE_ivd?VN(b,"8.2",{ivd:_.n._DRIVE_ivd}):void 0===_.n._DRIVE_ivd&&(_.n._DRIVE_ivdc=function(){_.n._DRIVE_ivd&&VN(b,"8.2",{ivd:_.n._DRIVE_ivd})}))},and=function(a,b){var c={};if(1===b.H){var d=new _.Jgb(document);c.__SAPISID=d.get("SAPISID")||d.get("__Secure-3PAPISID");c.__APISID=d.get("APISID")||d.get("__Secure-APISID")}return{ac:c,bl:a.context.Qc.Gi(),
ufds:b.V}};lN.prototype.Ab=function(){return{uid:this.Ki(),fds:_.qM(this.context.Mg)}};lN.prototype.Ki=function(){var a=_.Wj(_.Wj(_.ZG(this.context.Qc.clone(),28),44),91),b=new _.uK;b.update(_.iM(_.CK(a)));b.update(String(_.RK(_.CK(a))));b.update(a.Rb());return _.IRc(b.digest())};var end=function(a){var b=[],c=[,!0,!0,!0,!0,,!0,!0];a.forEach(function(d,e){d&&c[e]&&(b[e]=d)});return 0<b.length?b:null};_.g=lN.prototype;_.g.A$=function(a){this.dispatchEvent(new _.lc(new _.kc(void 0,new _.jc(JSON.parse(a.p)))))};
_.g.query=function(a){WO(this);j9c(this.context.$m,a,H4c(this.context.Mg));this.NE();var b=this.O.kxa(a);this.Pa||(a=a.te(),a&&121===_.C(a,1)||(this.Pa=!0,this.Oc.listen(b,_.xc,this.DMa)));return b};_.g.DMa=function(a){a=a.currentTarget;1===a.Cb()&&(this.Fa.H=this.Ta,this.Oc.Xc(a,_.xc,this.DMa))};_.g.Ir=function(a){WO(this);h9c(a);this.NE();return this.O.hxa(a)};
_.g.pva=function(a,b){var c=this;WO(this);if(this.ka&&_.mk(this.ka.yd(),a))return this.ka;var d=(0,_.v)(lN.prototype.mqb,this);this.ka=new Cmd(a.clone(),this.context,d,b);_.n.setTimeout(function(){c.ka=null},3E3);return this.ka};_.g.mqb=function(a,b,c){return this.send("3.17",[a.Rb(),b,c],function(d){return new x8c(JSON.parse(d[0]))})};
_.g.JFa=function(a,b){var c=this;WO(this);if(this.ha&&_.mk(this.ha.yd(),a))return Qmd(this.ha),this.ha;var d=(0,_.v)(lN.prototype.oqb,this);this.ha=new Nmd(a,this.context,d,b);_.n.setTimeout(function(){c.ha=null},3E3);return this.ha};_.g.oqb=function(a){return this.send("3.18",[a.Rb()],function(b){return new fdd(JSON.parse(b[0]))})};_.g.Y$=function(a){WO(this);return this.send("3.14",[a.Rb()],function(b){return new xO(JSON.parse(b[0]))})};
_.g.g8=function(a){WO(this);return this.send("3.15",[a.Rb()],function(b){return new xO(JSON.parse(b[0]))})};_.g.wd=function(a){WO(this);!this.ma&&_.UL(a)&&(this.ma=!0);a=q1c(a);return this.send("3.3",[a.Rb()],function(b){return new _.TL(JSON.parse(b[0]))})};_.g.AN=function(a){WO(this);a=A1c(a);return this.send("3.35",[a.Rb()],function(b){return new g5c(JSON.parse(b[0]))}).then()};
_.g.Sy=function(a){WO(this);for(var b=0;b<a.length;b++)!this.ma&&_.UL(a[b])&&(this.ma=!0);a=t1c(a);return this.send("3.4",[a.Rb()],function(c){return y9c(c[0]).get()})};_.g.gxa=function(){WO(this);return Vmd(this.nb)};_.g.dSa=function(a){WO(this);return new smd(this.V.promise,a)};
_.g.uq=function(a,b){var c=this;WO(this);var d=_.Kg();this.H.create(d,a);return this.send("3.5",[a.Rb(),!!b],function(e){var f=new YN(JSON.parse(e[0]));return new _.BM(f,e[1],e[2])}).addCallback(function(e){Q9c(c.H,d,e);return e.response}).wg(function(e){WN(c.H,d);return e})};_.g.gr=function(a){WO(this);return this.send("3.10",[a.Rb()],function(b){return new cdd(JSON.parse(b[0]))})};_.g.$$=function(a){WO(this);return this.send("3.11",[a.Rb()],function(b){return new gdd(JSON.parse(b[0]))})};
_.g.e8=function(a){WO(this);return this.send("3.12",[a.Rb()],function(b){return new gdd(JSON.parse(b[0]))})};_.g.MS=function(a){WO(this);return this.send("3.13",[a.Rb()],function(b){return new gdd(JSON.parse(b[0]))})};_.g.aN=function(a,b){var c=this;WO(this);var d=_.Kg();this.H.create(d,a);return this.send("3.1",[a.Rb(),!!b],function(e){var f=new _.AO(JSON.parse(e[0]));return new _.EM(f,e[1],e[2])}).addCallback(function(e){Q9c(c.H,d,e);return e.response}).wg(function(e){WN(c.H,d);return e})};
_.g.rG=function(a,b){var c=this,d=_.Id(this.context.Qc.Sf(),30);if(!d||0===d.length)return _.gi(new _.kc("getUserPrefs requires a namespace.",_.aL(3)));0===_.Id(a,3).length&&N1c(a,d);WO(this);var e=_.Kg();this.H.create(e,a);return this.send("3.2",[a.Rb(),!!b],function(f){var h=new _.Ky(JSON.parse(f[0]));return new _.DM(h,f[1],f[2])}).addCallback(function(f){Q9c(c.H,e,f);return f.response}).wg(function(f){WN(c.H,e);return f})};
_.g.CR=function(a){WO(this);Wmd(_.Id(this.context.Qc.Sf(),30),a);a=x1c(a);return this.send("3.6",[a.Rb()],function(b){return new hdd(JSON.parse(b[0]))})};_.g.Ot=function(a){WO(this);return this.send("3.16",[a.Rb()],function(b){return new X4c(JSON.parse(b[0]))})};_.g.KBa=function(){return this.ma};_.g.El=function(a){WO(this);this.send("3.8",[a])};_.g.py=function(a){WO(this);return this.send("3.36",[a],function(b){return!!b[0]}).then()};_.g.MX=function(a){WO(this);Ukd(this.context).MX(a);this.py(!!a)};
_.g.NE=function(){WO(this);this.send("3.9",[])};_.g.ER=function(){WO(this);this.send("3.41",[]);this.context.ER();var a=Q4c(this.context.Mk(),106006);a&&this.V.promise.then(function(b){var c=_.D(_.wM(a),m4c,6);if(!c){c=new m4c;var d=_.wM(a);_.A(d,6,c)}c=_.B(c,1,b.clientId);_.B(c,2,b.O);a.Tj()},function(){})};_.g.hB=function(){WO(this);return this.context.hB()};_.g.PP=function(){WO(this);return _.Rh(this.send("3.19",[],function(a){return new B9c(JSON.parse(a[0]))}))};_.g.isConnected=function(){return this.context.nk().isConnected()};
_.g.z7=function(){return this.send("3.46",[],function(a){return new _.rYc(JSON.parse(a[0]))}).then()};_.g.v9=function(){return this.Fa};_.g.sync=function(){WO(this);return this.send("3.28",[]).then()};_.g.mu=function(){return this.context.mu()};_.g.JX=function(a){this.Ha.promise.then(function(b){return void b.JX(a)})};_.g.jqa=function(a){WO(this);return this.O.rxa(a)};_.g.uY=function(a){WO(this);return this.O.qxa(a)};_.g.GFa=function(a){WO(this);m9c(this.context.$m,a,H4c(this.context.Mg));return this.O.nxa(a)};
_.g.kqa=function(a){WO(this);return new Rmd(this.V.promise,a)};_.g.ewa=function(a){WO(this);if(!this.W||this.W.isDisposed()){var b=lN.prototype.nqb.bind(this);this.W=new Imd(a,this.context,b)}return this.W};_.g.nqb=function(a){return this.send("3.20",[a.Rb()],function(b){return new ded(JSON.parse(b[0]))})};_.g.nGa=function(){this.W&&!this.W.isDisposed()?this.W.poll().then():_.Rh()};_.g.bV=function(a){WO(this);return this.send("3.25",[a.Rb()],function(b){return new $dd(JSON.parse(b[0]))})};
_.g.f8=function(a){WO(this);return this.send("3.22",[a.Rb()],function(){return new eed})};_.g.rba=function(){return this.$a.promise};_.g.Zna=function(a){var b=_.Xh();this.send("3.30",[a.Rb()],function(c){c[0]?b.resolve(new ged(JSON.parse(c[0]))):b.reject(new _.kc(void 0,new _.jc(JSON.parse(c[1]))))}).wg(function(c){return void b.reject(c)});return b.promise};_.g.Fwa=function(a){WO(this);return this.O.exa(a)};_.g.y7=function(a){WO(this);return this.send("3.42",[a.Rb()],function(b){return new l6c(JSON.parse(b[0]))}).then()};
_.g.PO=function(a){WO(this);var b=new _.po;this.send("3.39",[a.Rb()],function(c){return c.map(function(d){return new a$c(JSON.parse(d))})}).then(function(c){return void b.resolve(c)},function(c){return void b.reject(c)});return Promise.resolve(new Xmd(b.promise))};_.g.$Fa=function(a){var b=this;WO(this);return new vmd(this.context,a,function(c){return b.send("3.37",[c.request.Rb(),c.pageToken],function(d){return new D8c(new yO(JSON.parse(d[0])),d[1])}).then()})};
_.g.loa=function(a){WO(this);return this.send("3.38",[a.Rb()],function(b){return new pdd(JSON.parse(b[0]))}).then()};_.g.XKa=function(a){WO(this);return this.O.vxa(a)};_.g.gra=function(a){WO(this);return this.O.uxa(a)};_.g.oJa=function(a){var b=this;WO(this);return new wmd(this.context,a,function(){return b.send("3.40",[a.Rb()],function(c){return new _.ZM(JSON.parse(c[0]))}).then()})};_.g.aqa=function(a){WO(this);return this.O.oxa(a)};_.g.l_=function(a){WO(this);this.send("3.43",[a.Rb()])};
_.g.T_=function(a){WO(this);return this.send("3.44",[a.Rb()],function(){return new m5c}).then()};_.g.Ho=function(a){WO(this);if(1!==_.jM(this.context.Qc))return Promise.reject(Error("Eg"));for(var b=_.m(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!c.Kc())return Promise.reject(Error("Fg"));if(!c.qk()&&!c.getItem())return Promise.reject(Error("Gg"))}return Promise.resolve(this.send("3.45",[a.map(function(d){return d.Rb()})]))};
_.g.g1a=function(){var a=this;if(3===this.context.getEnvironment()){var b=[_.Ci(1E4,!1),this.send("3.29",[],function(c){return!!c[0]}).then()];_.Cja(b).then(function(c){c?_.Ai(a.g1a.bind(a),6E4):(a.Ka=!0,WO(a))})}};var WO=function(a){a.Ka&&a.dispatchEvent(new Ied)};
var j2c=function(a){EO.call(this,a);this.ha=this.ka=this.oa=null;this.kb=_.Xh();this.H=a.Cm()};_.O(j2c,EO);j2c.prototype.PRa=function(){this.Ha=new Cld(this.context);this.Ma(this.Ha);this.Ka=new Gld(this.context);this.Ma(this.Ka);this.Pa=new Nld(this.context);this.Ma(this.Pa)};
j2c.prototype.$a=function(){var a=this,b=["hVFf7"];_.kM(this.context.Qc)&&b.push("BNEDtc");bO(this.O,b,function(){return void a.AWa()});bO(this.O,["T8oKm","ZA9qG"],function(){return void fnd(a)});bO(this.O,["T8oKm","mrK8ic"],function(){return void fnd(a)});this.Oc.listen(this.Ha,"WPi0i",this.Rsa.bind(this,1));this.Oc.listen(this.Ka,"Qb",this.Rsa.bind(this,2));this.Oc.listen(this.Pa,"WPi0i",this.Rsa.bind(this,4));bO(this.O,["GZTDpc"],function(){return a.kb.resolve()})};var fnd=function(a){IO(a.context).addCallback(function(b){b.start()})};
_.g=j2c.prototype;_.g.Rsa=function(a){_.ma(n5c,a)&&this.dispatchEvent(new ied(a))};_.g.uY=function(a){return this.V.qxa(a.clone())};_.g.GFa=function(a){m9c(this.context.$m,a,H4c(this.context.Mg));return this.V.nxa(a.clone())};_.g.jqa=function(a){return this.V.rxa(a.clone())};_.g.kqa=function(a){return new dmd(a,this.context.Cm())};
_.g.pva=function(a,b){var c=this;if(this.oa&&_.mk(this.oa.yd(),a))return this.oa;this.oa=new Cmd(a.clone(),this.context,this.qjb.bind(this),b);_.n.setTimeout(function(){c.oa=null},3E3);return this.oa};_.g.qjb=function(a,b,c){var d=new _.YUc(a,b,c);return _.fi(this.H.then(function(e){return e.Ve(d)}).Ag(function(e){return _.cL(e)}))};_.g.ewa=function(a){var b=this;if(!this.ha||this.ha.isDisposed())this.ha=new Imd(a,this.context,function(c){return gnd(b,c)});return this.ha};var gnd=function(a,b){return _.fi(a.H.then(function(c){return c.Ve(b)}).Ag(function(c){return _.cL(c)}))};
_.g=j2c.prototype;_.g.nGa=function(){this.ha&&!this.ha.isDisposed()?this.ha.poll().then():_.Rh()};_.g.bV=function(a){return _.fi(this.H.then(function(b){return b.Ve(a)}))};_.g.f8=function(a){return _.fi(this.H.then(function(b){return b.Ve(a)}))};_.g.JFa=function(a,b){var c=this;if(this.ka&&_.mk(this.ka.yd(),a))return Qmd(this.ka),this.ka;this.ka=new Nmd(a.clone(),this.context,this.kJb.bind(this),b);_.n.setTimeout(function(){c.ka=null},3E3);return this.ka};
_.g.kJb=function(a){var b=this;return this.H.then(function(c){return c.Ve(a)}).then(function(c){return _.HK(b.context.Qc)?had(b.context.xf.Sq,c.ud().PM(),a.yd().getId()).then(function(){return c}):c},_.cL)};_.g.Y$=function(a){var b=this;return _.fi(this.H.then(function(c){return c.Ve(a)}).then(function(c){return _.HK(b.context.Qc)?had(b.context.xf.Sq,[_.D(c,_.Qk,2)],a.Kc()).then(function(){return c}):c},_.cL))};_.g.g8=function(a){return _.fi(this.H.then(function(b){return b.Ve(a)}).then(null,_.cL))};
_.g.Fwa=function(a){return this.V.exa(a.clone())};_.g.y7=function(a){return this.H.then(function(b){return b.Ve(a)}).then(null,_.cL)};_.g.PO=function(a){return this.H.then(function(b){return b.Ve(a)}).then(function(b){var c=new _.po;rad(a,b).then(function(d){return c.resolve(d)});return new Xmd(c.promise)},function(b){return void _.cL(b)})};_.g.$Fa=function(a){var b=this;return new vmd(this.context,a,function(c){return b.H.then(function(d){return d.Ve(c)}).Ag(function(d){return _.cL(d)})})};
_.g.loa=function(a){return this.H.then(function(b){return b.Ve(a)}).then(null,_.cL)};_.g.wd=function(a){return _.fi(this.H.then(function(b){return b.Ve(a)}).then(null,_.cL))};_.g.AN=function(a){return this.H.then(function(b){return b.Ve(a)}).then(null,_.cL)};_.g.Sy=function(a){var b=this,c=[],d=[];a.forEach(function(f){f instanceof _.eL?c.push(String(f.Kc())):c.push(String(f.getId()));d.push(b.wd(f))});a=new _.Po(d);var e=new _.$h;a.addCallback(this.Plb.bind(this,e,c));return e};
_.g.gxa=function(){return new Tld(this.context.Qc,this.context.oA,this.context.KQ().vfa,this.context.Cm(),this.context.LP,this.context.Tf(),this.context.Mk())};_.g.uq=function(a,b){var c=this,d=_.Kg();this.W.create(d,a);3===a.getType()?a=EO.prototype.uq.call(this,a).addCallback(function(e){return new _.BM(e,1,!1)}):(cO(this.O,"Qubz4b"),a=this.Ka.enqueue(new Lld(a,b)));return a.addCallback(function(e){Q9c(c.W,d,e);return e.response}).wg(function(){WN(c.W,d)})};
_.g.gr=function(a){return _.fi(this.H.then(function(b){return b.Ve(a)}).then(null,_.cL))};_.g.$$=function(a){return _.fi(this.H.then(function(b){return b.Ve(a)}).then(null,_.cL))};_.g.e8=function(a){return _.fi(this.H.then(function(b){return b.Ve(a)}).then(null,_.cL))};_.g.MS=function(a){return _.fi(this.H.then(function(b){return b.Ve(a)}).then(null,_.cL))};
_.g.aN=function(a,b){var c=this;cO(this.O,"iuEtc");var d=_.Kg();this.W.create(d,a);return this.Ha.enqueue(new Eld(a,b)).addCallback(function(e){Q9c(c.W,d,e);return e.response}).wg(function(){WN(c.W,d)})};
_.g.rG=function(a,b){var c=this,d=_.Id(this.context.Qc.Sf(),30);if(!d||0===d.length)return _.gi(new _.kc("getUserPrefs requires a namespace.",_.aL(3)));0===_.Id(a,3).length&&N1c(a,d);var e=_.Kg();this.W.create(e,a);cO(this.O,"OZvrNc");return this.Pa.enqueue(new Qld(a,b)).addCallback(function(f){Q9c(c.W,e,f);return f.response}).wg(function(){WN(c.W,e)})};_.g.CR=function(a){Wmd(_.Id(this.context.Qc.Sf(),30),a);return _.fi(this.H.then(function(b){return b.Ve(a)}).then(null,_.cL))};
_.g.Ot=function(a){var b=this;return _.fi(this.H.then(function(c){return c.Ve(a)}).then(function(c){return _.HK(b.context.Qc)?gad(b.context.xf.Sq,c):c},_.cL))};_.g.XKa=function(a){return this.V.vxa(a.clone())};_.g.gra=function(a){return this.V.uxa(a.clone())};_.g.oJa=function(a){var b=this;return new wmd(this.context,a,function(c){return b.H.then(function(d){return d.Ve(c)}).Ag(function(d){return _.cL(d)})})};_.g.aqa=function(a){return this.V.oxa(a.clone())};
_.g.l_=function(a){wgd(this.context.xf,[a])};_.g.T_=function(a){return this.H.then(function(b){return b.Ve(a)}).then(null,_.cL)};_.g.Ho=function(a){if(1!==_.jM(this.context.Qc))return Promise.reject(Error("Eg"));for(var b=_.m(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!c.Kc())return Promise.reject(Error("Fg"));if(!c.qk()&&!c.getItem())return Promise.reject(Error("Gg"))}this.context.xf.Ho(a);hhd(this.context.xf);return Promise.resolve()};_.g.KBa=function(){return this.context.KQ().xJ()};
_.g.py=function(a){var b=this;return this.context.py(a).then(function(c){return c?(b.context.Gj().py(a),b.context.zs.EK()):_.Rh(!a)})};_.g.MX=function(a){Ukd(this.context).MX(a);this.py(!!a)};_.g.NE=function(){IO(this.context).addCallback(function(a){a&&a.Z3()});this.context.eha.NE()};_.g.JX=function(a){a.dj(this.context)};_.g.Plb=function(a,b,c){for(var d={},e=0;e<c.length;e++)d[b[e]]=c[e][1];hhd(this.context.xf);a.callback(d)};
_.g.sync=function(){var a=this;return _.Vh([this.context.W$.promise,this.context.ka.promise]).then(function(){return a.context.zs.EK()}).then()};_.g.mu=function(){IO(this.context).addCallback(function(a){a&&a.dispose()});return EO.prototype.mu.call(this)};_.g.rba=function(){return this.kb.promise};
var hnd=function(){var a='<div class="'+_.J("la-r")+'">';a=a+'Something went wrong. Please reload.</div><button class="'+(_.J("la-Y-A")+" "+_.J("kc-A")+'" data-target="reload">');return(0,_.K)(a+"Reload</button>")};
_.Fo({id:_.Gk,callback:function(a){var b=_.v0c(a),c=m2c(a),d=_.D(a.get(_.Hl),_.Rb,10);_.xWc(d,b);_.B(d,28,c||[]);b=k2c(a,d);a.registerService(_.Hk,b.v9());_.He(b,"VbxEwf",function(){var e={};_.tc(_.Xw.getService(a),new _.sq(new _.rq(hnd,{}),"d",(e.reload=function(){_.n.window.location.reload()},e),4))});return b}});

_.w();

}catch(e){_._DumpException(e)}
try{
_.ind=function(a,b){return _.A(a,17,b)};_.jnd=function(a,b){return _.B(a,2,b)};_.knd=function(a,b){return _.B(a,1,b)};_.lnd=function(a,b){return _.A(a,2,b)};_.mnd=function(a,b){return _.Cb(a,1,b)};_.nnd=function(a,b){return _.B(a,1,b||[])};_.ond=function(a,b){return _.Cb(a,2,b)};_.pnd=function(a,b){return _.A(a,3,b)};_.r("RsR2Mc");


_.w();

}catch(e){_._DumpException(e)}
})(this._D);
// Google Inc.
