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


_.W("a","block",1,function(a){a=a||{};return(0,_.F)('<svg class="'+(a.ob?_.E("a-s-fa-Ha-pa"):"")+'" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8z"/></svg>')});

_.u();

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



_.u();

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


_.u();

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


_.u();

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


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("rJmJrc");


_.u();

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


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("WxwHof");


_.u();

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


_.u();

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


_.u();

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


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("emk");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy12y");

var Lnb;_.Fc=function(a){_.ui.call(this,_.Oc);this.error=a};_.K(_.Fc,_.ui);_.zA=function(a){_.J.call(this,a,-1,Lnb)};_.K(_.zA,_.J);_.zA.prototype.O=function(){return _.ge(this,1)};_.AA=function(a,b){return _.Jj(a,1,b)};_.zA.prototype.qn=function(){return _.ge(this,2)};_.BA=function(a,b){return _.Jj(a,2,b)};_.zA.prototype.te=function(){return _.B(this,_.Df,3)};_.CA=function(a,b){return _.I(a,3,b)};_.Mnb=function(a,b){return _.w(a,5,b)};Lnb=[1,2,6,11];

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy12z");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy130");

_.SB=function(a){return a instanceof _.Ec?a:a instanceof _.Dc?new _.Ec(void 0,a):a instanceof Error?new _.Ec(a.message,void 0,a):new _.Ec("Not an Error",void 0,Error("sb`"+JSON.stringify(a)))};_.lIb=function(a){return a instanceof Error?_.SB(a).Tg:a instanceof _.Ec?a.Tg:a};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy13v");

_.uA=function(a){if(Array.isArray(a))return a.map(_.uA).join("");if(_.y(a,2)){if(!a.getId())throw Error("sd");return a.getId()+"/"+_.y(a,2)+","}return""};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy15s");

/*

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

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy15t");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var VJb;_.UJb=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")};VJb=function(a){var b=_.paa(_.XEa,function(c){return a==c});if(void 0===b)throw Error("qb`"+a);return b};_.WJb=function(a,b){void 0!==a.name?(this.name=a.name,this.code=_.XEa[a.name]):(this.code=a=a.code,this.name=VJb(a));_.fa.call(this,_.UJb("%s %s",this.name,b))};_.Zf(_.WJb,_.fa);var XJb=function(a,b){_.ui.call(this,a.type,b)};
_.Zf(XJb,_.ui);_.YJb=function(){_.Ei.call(this);this.H=new FileReader;this.H.onloadstart=(0,_.N)(this.i0,this);this.H.onprogress=(0,_.N)(this.i0,this);this.H.onload=(0,_.N)(this.i0,this);this.H.onabort=(0,_.N)(this.i0,this);this.H.onerror=(0,_.N)(this.i0,this);this.H.onloadend=(0,_.N)(this.i0,this)};_.Zf(_.YJb,_.Ei);_.g=_.YJb.prototype;_.g.abort=function(){try{this.H.abort()}catch(a){throw new _.WJb(a,"aborting read");}};_.g.ek=function(){return this.H.result};
_.g.getError=function(){return this.H.error&&new _.WJb(this.H.error,"reading file")};_.g.i0=function(a){this.dispatchEvent(new XJb(a,this))};_.g.Ya=function(){_.YJb.wb.Ya.call(this);delete this.H};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy164");

var dLb,gLb;dLb=[4,5,6,7];_.pC=function(a){_.J.call(this,a)};_.K(_.pC,_.J);_.pC.prototype.Bb=function(){return _.y(this,1)};_.pC.prototype.Dc=function(a){return _.w(this,1,a)};_.pC.prototype.j$=function(){return _.y(this,2)};_.pC.prototype.Wb="JmcaR";_.eLb=function(a){_.J.call(this,a)};_.K(_.eLb,_.J);_.eLb.prototype.O=function(){return _.P(this,1)};_.eLb.prototype.Wb="dvhrqe";_.fLb=function(a){_.J.call(this,a)};_.K(_.fLb,_.J);_.fLb.prototype.Po=function(){return _.y(this,2)};
_.fLb.prototype.B1=function(){return _.y(this,3)};gLb=[5];_.hLb=function(a){_.J.call(this,a)};_.K(_.hLb,_.J);_.hLb.prototype.O=function(){return _.P(this,4)};_.hLb.prototype.setActive=function(a){return _.w(this,4,a)};_.iLb=function(a){_.J.call(this,a,-1,gLb)};_.K(_.iLb,_.J);_.g=_.iLb.prototype;_.g.EZ=function(){return _.y(this,1)};_.g.GT=function(){return _.y(this,3)};_.g.$J=function(){return _.Wj(this,_.fLb,5)};_.g.uk=function(){return _.y(this,6)};_.g.Hq=function(){return _.y(this,7)};
_.g.MM=function(){return _.y(this,9)};_.g.Ws=function(){return _.y(this,10)};_.g.LJ=function(){return _.B(this,_.hLb,12)};_.g.fl=function(){return _.y(this,13)};_.g.lx=function(){return _.y(this,16)};_.g.wzb=function(){return _.Dj(this,16)};_.g.rv=function(){return _.y(this,17)};_.g.Wb="dzR11e";_.jLb=function(a){_.J.call(this,a,-1,dLb)};_.K(_.jLb,_.J);_.jLb.prototype.wl=function(){return _.B(this,_.iLb,1)};_.jLb.prototype.YM=function(){return _.B(this,_.pC,8)};
_.jLb.prototype.O=function(){return _.B(this,_.eLb,9)};_.qC=function(a){_.J.call(this,a,-1,kLb)};_.K(_.qC,_.J);_.qC.prototype.getUser=function(){return _.B(this,_.Sk,1)};_.qC.prototype.getMetadata=function(){return _.B(this,_.jLb,3)};_.qC.prototype.Ao=function(){return _.Dj(this,3)};var kLb=[2];

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy165");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy166");

_.rC={CL:"lb",Hga:"mb",iU:"nb",hU:"ob"};_.lLb=new Map([[_.rC.CL,1],[_.rC.Hga,2],[_.rC.iU,2],[_.rC.hU,3]]);

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy16a");

_.oLb=function(a,b,c,d,e,f,h){return(0,_.F)(_.Vn("a",b,!1)({fillColor:d,mb:c,color:"#000000",ob:!0,Kr:e,size:f,Wd:h},a))};_.wC=function(a){_.J.call(this,a)};_.K(_.wC,_.J);
_.qLb=function(a){_.J.call(this,a,-1,pLb)};_.K(_.qLb,_.J);var pLb=[4];

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy16u");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy17e");

_.DNb=function(a){a=parseInt(_.y(a,3)||"0",10);return 100<=a?"over":90<=a?"near":"under"};_.FNb=function(a,b,c,d){var e=_.af.getService(a);a=e.xg(a,c);_.ENb(a.H.zk,b,d);e.hg(a)};_.ENb=function(a,b,c){var d=new _.GNb;b.CU&&_.w(d,2,b.CU);b.eG&&0<=b.eG&&_.w(d,1,b.eG);b.quotaType&&_.w(d,3,b.quotaType);_.HNb(a,d);c&&(b=new _.INb,_.w(b,1,c),_.JNb(a,b))};_.KNb=function(a){return isNaN(a)?0:100<=a?6:95<=a?5:90<=a?4:80<=a?3:70<=a?2:1};_.LNb=function(a,b){return!_.Q(a,6,!1)||_.Q(b,15,!1)};
_.HNb=function(a,b){b&&(a=a.Vc(),_.I(a,29,b))};_.JNb=function(a,b){b&&(a=a.Vc(),_.I(a,38,b))};_.GNb=function(a){_.J.call(this,a)};_.K(_.GNb,_.J);_.GNb.prototype.uk=function(){return _.y(this,3)};_.INb=function(a){_.J.call(this,a)};_.K(_.INb,_.J);_.INb.prototype.Sh=function(){return _.y(this,1)};
_.NNb=function(a,b,c){var d=_.D(a.get(_.LDa),1,""),e=_.DNb(b);d=new _.lj(d);a:switch(e){case "over":var f="o";break a;case "near":f="u";break a;default:f="m"}return _.qj(_.vj(_.vj(_.vj(_.vj(d,"i",f),"utm_source","drive"),"utm_medium","web"),"utm_campaign",_.MNb(a,e,c)),-1!=parseInt(String(_.B(b,_.wC,2)),10)?"upgrade":"")};
_.MNb=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"}}};
_.ONb=function(a,b,c){if(!b)return"g1_widget_unknown";a=Number(_.y(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"};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy18v");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy18w");

_.pD=function(a){_.J.call(this,a)};_.K(_.pD,_.J);_.pD.prototype.ha=function(){return _.Hj(this,1)};_.pD.prototype.V=function(){return _.Hj(this,2)};_.pD.prototype.O=function(){return _.Hj(this,3)};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy19l");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy19m");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy19q");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy19r");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy19p");

_.dub=function(a){_.J.call(this,a)};_.K(_.dub,_.J);_.dub.prototype.O=function(){return _.y(this,1)};_.dub.prototype.Bb=function(){return _.y(this,2)};_.dub.prototype.Dc=function(a){return _.w(this,2,a)};_.dub.prototype.V=function(){return _.y(this,3)};_.fub=function(a){_.J.call(this,a,-1,eub)};_.K(_.fub,_.J);_.fub.prototype.O=function(){return _.ge(this,1)};var eub=[1];
_.hub=function(a){_.J.call(this,a,-1,gub)};_.K(_.hub,_.J);_.hub.prototype.O=function(){return _.Wj(this,_.dub,1)};var gub=[1];
_.jub=function(a){_.J.call(this,a,-1,iub)};_.K(_.jub,_.J);_.jub.prototype.O=function(){return _.Wj(this,_.hub,1)};var iub=[1];
_.kub=function(a){_.J.call(this,a)};_.K(_.kub,_.J);_.kub.prototype.V=function(){return _.B(this,_.jub,1)};_.kub.prototype.O=function(){return _.B(this,_.fub,2)};
_.xB=function(a){_.J.call(this,a,-1,lub)};_.K(_.xB,_.J);_.g=_.xB.prototype;_.g.Bb=function(){return _.y(this,1)};_.g.Dc=function(a){return _.w(this,1,a)};_.g.wd=function(){return _.Wj(this,_.jl,2)};_.g.Vw=function(a){return _.Lj(this,2,a)};_.g.nh=function(a,b){return _.Yj(this,2,a,_.jl,b)};_.g.dk=function(){return _.y(this,3)};_.g.ul=function(){return _.Q(this,5,!0)};_.g.P5=function(){return _.B(this,_.kub,7)};_.g.Yra=function(){return _.P(this,8)};_.g.dg=function(){return _.y(this,17)};
_.g.nP=function(a){return _.w(this,17,a)};_.g.Ze=function(){return _.y(this,12)};_.g.Ki=function(a){return _.w(this,12,a)};_.g.$n=function(){return _.y(this,15)};_.g.$ja=function(){return _.ge(this,18)};var lub=[2,14,18];

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy19s");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy19u");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1av");

_.XD=function(a){_.J.call(this,a)};_.K(_.XD,_.J);_.XD.prototype.getKey=function(){return _.B(this,_.Yb,1)};_.XD.prototype.ht=function(){return _.Dj(this,1)};_.XD.prototype.te=function(){return _.B(this,_.Df,2)};
_.YD=function(a){_.J.call(this,a)};_.K(_.YD,_.J);_.YD.prototype.te=function(){return _.B(this,_.Df,2)};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1aw");

_.WD=function(a){_.J.call(this,a,-1,jRb)};_.K(_.WD,_.J);_.WD.prototype.te=function(){return _.B(this,_.Df,1)};var jRb=[3];

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1b3");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.mE=function(a,b,c){_.O.call(this);this.Ln=null!=c?(0,_.N)(a,c):a;this.ka=b;this.Kg=(0,_.N)(this.t9a,this);this.O=!1;this.V=0;this.W=this.H=null;this.ha=[]};_.Zf(_.mE,_.O);_.g=_.mE.prototype;_.g.oe=function(a){this.ha=arguments;this.O=!1;this.H?this.W=_.Xf()+this.ka:this.H=_.Gi(this.Kg,this.ka)};_.g.stop=function(){this.H&&(_.Hi(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.Ln.apply(null,this.ha)))};_.g.Ya=function(){this.stop();_.mE.wb.Ya.call(this)};_.g.t9a=function(){this.H&&(_.Hi(this.H),this.H=null);this.W?(this.H=_.Gi(this.Kg,this.W-_.Xf()),this.W=null):this.V?this.O=!0:(this.O=!1,this.Ln.apply(null,this.ha))};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1dt");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1du");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1dv");

_.BG=function(a){_.J.call(this,a,-1,A8b)};_.K(_.BG,_.J);_.BG.prototype.getId=function(){return _.y(this,1)};_.BG.prototype.Ob=function(a){return _.w(this,1,a)};_.BG.prototype.ls=function(){return _.y(this,2)};_.BG.prototype.gK=function(){return _.Dj(this,2)};var A8b=[5,6,9,10,12,13,15,16];
var B8b;_.CG=function(a){_.J.call(this,a,-1,B8b)};_.K(_.CG,_.J);_.CG.prototype.Pm=function(){return _.y(this,1)};_.C8b=function(a,b){return _.w(a,1,b)};B8b=[2,4];

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1dy");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1dz");

_.DG=function(a){_.J.call(this,a)};_.K(_.DG,_.J);_.DG.prototype.getName=function(){return _.y(this,1)};_.DG.prototype.hd=function(a){return _.w(this,1,a)};_.DG.prototype.te=function(){return _.B(this,_.Df,2)};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1e2");

_.EG=function(a){_.J.call(this,a)};_.K(_.EG,_.J);_.g=_.EG.prototype;_.g.Ei=function(){return _.y(this,1)};_.g.vi=function(a){return _.w(this,1,a)};_.g.getTitle=function(){return _.y(this,2)};_.g.setTitle=function(a){return _.w(this,2,a)};_.g.te=function(){return _.B(this,_.Df,3)};_.g.Qp=function(){return _.y(this,4)};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1e3");

var J8b;_.FG=function(a){_.J.call(this,a,-1,J8b)};_.K(_.FG,_.J);_.FG.prototype.O=function(){return _.ge(this,1)};_.FG.prototype.qn=function(){return _.ge(this,2)};_.K8b=function(a,b){return _.Jj(a,2,b)};_.FG.prototype.te=function(){return _.B(this,_.Df,3)};_.L8b=function(a,b){return _.I(a,3,b)};J8b=[1,2];

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1e4");

_.GG=function(a){_.J.call(this,a)};_.K(_.GG,_.J);_.g=_.GG.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Ob=function(a){return _.w(this,1,a)};_.g.getTitle=function(){return _.y(this,2)};_.g.setTitle=function(a){return _.w(this,2,a)};_.g.getState=function(){return _.y(this,5)};_.g.Ld=function(a){return _.w(this,5,a)};_.g.jt=function(){return _.Dj(this,5)};_.IG=function(a){_.J.call(this,a,-1,M8b)};_.K(_.IG,_.J);_.IG.prototype.qn=function(){return _.ge(this,1)};
_.N8b=function(a,b){return _.Jj(a,1,b)};_.IG.prototype.te=function(){return _.B(this,_.Df,2)};var M8b=[1,3];

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1e6");

_.JG=function(a,b){return _.w(a,4,b)};_.O8b=function(a,b){_.w(a,11,b)};_.P8b=function(a,b){return _.w(a,25,b)};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1e0");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1e1");

_.Q8b=function(a){_.J.call(this,a)};_.K(_.Q8b,_.J);_.Q8b.prototype.Ei=function(){return _.y(this,3)};_.Q8b.prototype.vi=function(a){return _.w(this,3,a)};_.Q8b.prototype.te=function(){return _.B(this,_.Df,5)};_.Q8b.prototype.getCustomer=function(){return _.y(this,6)};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1eh");

_.RG=function(a){_.J.call(this,a)};_.K(_.RG,_.J);_.RG.prototype.Ac=function(){return _.y(this,1)};_.M9b=function(a){var b=new _.RG;return _.w(b,1,a)};_.RG.prototype.Ei=function(){return _.y(this,2)};_.RG.prototype.vi=function(a){return _.w(this,2,a)};_.RG.prototype.te=function(){return _.B(this,_.Df,3)};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1h5");

_.yqc=function(a){for(var b in a)delete a[b]};_.uI=function(a,b){if(a.H)return a=a.H.responseText,b&&0==a.indexOf(b)&&(a=a.substring(b.length)),(0,_.kla)(a)};_.vI=function(a){return _.Q(a,5,!1)};_.zqc=function(a,b){var c=_.B(a.H,_.zya,9);null==c&&(c=new _.zya);var d=_.y(b.H,10);d=_.w(c,5,d);b=_.y(b.H,12);_.w(d,2,b);_.I(a.H,9,c)};_.Aqc=function(a,b){a=_.Ti(a);b=_.Ti(b);return a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]};
_.Bqc=function(a){var b=_.sla(a);if("undefined"==typeof b)throw Error("X");var c=new _.rj(null,void 0);a=_.rla(a);for(var d=0;d<b.length;d++){var e=b[d],f=a[d];Array.isArray(f)?_.qma(c,e,f):c.add(e,f)}return c};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1he");

var Cqc,Dqc;Cqc=[2];_.wI=function(a){_.J.call(this,a,-1,Cqc)};_.K(_.wI,_.J);_.wI.prototype.Bb=function(){return _.y(this,1)};_.wI.prototype.Dc=function(a){return _.w(this,1,a)};_.wI.prototype.RUa=function(){return _.Wj(this,_.qEa,2)};_.wI.prototype.dk=function(){return _.y(this,3)};_.xI=function(a){_.J.call(this,a,-1,Dqc)};_.K(_.xI,_.J);_.xI.prototype.O=function(){return _.ge(this,1)};_.xI.prototype.te=function(){return _.B(this,_.Df,2)};_.Eqc=function(a,b){return _.I(a,2,b)};
_.xI.prototype.Ei=function(){return _.bk(this,3,20)};_.xI.prototype.vi=function(a){return _.w(this,3,a)};_.Fqc=function(a,b){return _.w(a,4,b)};Dqc=[1];

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1hr");

_.Gqc={drive:1,appDataFolder:2,photos:3,androidBackup:4};_.Hqc=_.$a(_.Gqc);

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1hs");

/*

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

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1ht");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Kqc=function(a){_.O.call(this);this.O=a;this.H={};this.O.mO((0,_.N)(this.V,this))};_.Zf(_.Kqc,_.O);_.Mqc=function(a,b){if(-1!=b.indexOf(":"))throw Error("Oe`"+b);if(b in a.H)throw Error("Pe`"+b);var c=new Lqc(a,b);return a.H[b]=c};_.Kqc.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)}};_.Kqc.prototype.Ya=function(){_.Ma(this.H,function(a){_.aa(a)});_.aa(this.O);delete this.H;delete this.O};
var Lqc=function(a,b){_.O.call(this);this.Qg=a;this.H=b};_.Zf(Lqc,_.O);_.g=Lqc.prototype;_.g.connect=function(a){a&&a()};_.g.isConnected=function(){return!0};_.g.registerService=function(a,b,c){this.Qg.O.registerService(this.H+":"+a,(0,_.N)(this.$Sa,this,b),c)};_.g.mO=function(a){this.O=(0,_.N)(this.$Sa,this,a)};_.g.send=function(a,b){if(this.isDisposed())throw Error("Qe");this.Qg.O.send(this.H+":"+a,b)};_.g.$Sa=function(a,b){this.isDisposed()||a.apply({},Array.prototype.slice.call(arguments,1))};
_.g.Ya=function(){this.Qg=this.Qg.H[this.H]=null};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1hu");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Nqc=function(a,b){for(var c=[],d=0;d<b;d++)c[d]=a;return c};_.Oqc=function(){this.blockSize=-1};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1hv");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.yI=function(){this.blockSize=-1;this.blockSize=64;this.H=Array(4);this.W=Array(this.blockSize);this.V=this.O=0;this.reset()};_.Zf(_.yI,_.Oqc);_.yI.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 Pqc=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};
_.yI.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;)Pqc(this,a,f),f+=this.blockSize;if("string"===typeof a)for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.blockSize){Pqc(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.blockSize){Pqc(this,d);e=0;break}}this.O=e;this.V+=b};
_.yI.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};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1hw");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var Qqc,zI,Rqc,BI,Tqc,Sqc;Qqc=function(a){null!==a&&"removeAttribute"in a&&a.removeAttribute(_.gga);try{delete a[_.gga]}catch(b){}};
zI=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(_.Ca(f)){f[_.gga]||c.push(f);var l=_.Da(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++)Qqc(c[a]);return b.join("")};_.AI=function(a,b,c){if("number"===typeof a)var d={name:Sqc(a)};else d=a,a=Tqc(a.name);this.code=a;this.O=d;b="Error "+b+": "+this.getName();c&&(b+=", "+c);_.fa.call(this,b)};_.Zf(_.AI,_.fa);_.AI.prototype.getName=function(){return this.O.name||""};
BI={Lib:1,Nhb:2,NOT_FOUND_ERR:3,T7a:4,Z7a:5,Phb:6,Gib:7,ABORT_ERR:8,fib:9,E6b:10,TIMEOUT_ERR:11,cib:12,INVALID_ACCESS_ERR:13,INVALID_STATE_ERR:14};_.Uqc=(_.n.oI||_.n.rL||BI).Lib;_.Vqc=(_.n.oI||_.n.rL||BI).Nhb;_.Wqc=(_.n.oI||_.n.rL||BI).NOT_FOUND_ERR;_.Xqc=(_.n.oI||_.n.rL||BI).T7a;_.Yqc=(_.n.oI||_.n.rL||BI).Z7a;_.Zqc=(_.n.oI||_.n.rL||BI).Phb;_.$qc=(_.n.oI||_.n.rL||BI).Gib;_.arc=(_.n.oI||_.n.rL||BI).ABORT_ERR;_.brc=(_.n.oI||_.n.rL||BI).fib;_.crc=(_.n.oI||_.n.rL||BI).TIMEOUT_ERR;
_.drc=(_.n.oI||_.n.rL||BI).cib;_.erc=(_.n.DOMException||BI).INVALID_ACCESS_ERR;_.frc=(_.n.DOMException||BI).INVALID_STATE_ERR;
Tqc=function(a){switch(a){case "UnknownError":return _.Uqc;case "NotFoundError":return _.Wqc;case "ConstraintError":return _.Xqc;case "DataError":return _.Yqc;case "TransactionInactiveError":return _.$qc;case "AbortError":return _.arc;case "ReadOnlyError":return _.brc;case "TimeoutError":return _.crc;case "QuotaExceededError":return _.drc;case "InvalidAccessError":return _.erc;case "InvalidStateError":return _.frc;default:return _.Uqc}};
Sqc=function(a){switch(a){case _.Uqc:return"UnknownError";case _.Wqc:return"NotFoundError";case _.Xqc:return"ConstraintError";case _.Yqc:return"DataError";case _.$qc:return"TransactionInactiveError";case _.arc:return"AbortError";case _.brc:return"ReadOnlyError";case _.crc:return"TimeoutError";case _.drc:return"QuotaExceededError";case _.erc:return"InvalidAccessError";case _.frc:return"InvalidStateError";default:return"UnknownError"}};
_.CI=function(a,b){return"error"in a?new _.AI(a.error,b):new _.AI({name:"UnknownError"},b)};_.DI=function(a,b){if("name"in a)return b=b+": "+a.message,new _.AI(a,b);if("code"in a){var c=Sqc(a.code);b=b+": "+a.message;return new _.AI({name:c},b)}return new _.AI({name:"UnknownError"},b)};
_.jrc=function(a){this.H=a};_.krc=_.n.IDBKeyRange||_.n.webkitIDBKeyRange;_.jrc.prototype.range=function(){return this.H};
var lrc=function(a){this.H=a};lrc.prototype.getName=function(){return this.H.name};var mrc=function(a,b,c,d){var e=new _.ei;try{var f=a.H[b](d)}catch(h){return c+=" with key "+zI(d),e.Jd(_.DI(h,c)),e}f.onsuccess=function(h){e.callback(h.target.result)};f.onerror=function(h){c+=" with key "+zI(d);e.Jd(_.CI(h.target,c))};return e};lrc.prototype.get=function(a){return mrc(this,"get","getting from index "+this.getName(),a)};
lrc.prototype.getKey=function(a){return mrc(this,"getKey","getting key from index "+this.getName(),a)};lrc.prototype.getAll=function(a,b){return _.nrc(this,"getAll","getting all from index "+this.getName(),a,b)};
_.nrc=function(a,b,c,d,e){var f;void 0===d?f=void 0:f=d instanceof _.jrc?d.range():(new _.jrc(_.krc.only(d))).range();var h=new _.ei;try{var k=a.H[b](f,e)}catch(l){return c+=" for range "+(f?zI(f):"<all>"),h.Jd(_.DI(l,c)),h}k.onsuccess=function(){h.callback(k.result)};k.onerror=function(l){c+=" for range "+(f?zI(f):"<all>");h.Jd(_.CI(l.target,c))};return h};
var orc=function(a){this.H=a};orc.prototype.getName=function(){return this.H.name};var prc=function(a,b,c,d,e){var f=new _.ei;try{var h=e?a.H[b](d,e):a.H[b](d)}catch(k){return c+=zI(d),e&&(c+=", with key "+zI(e)),f.Jd(_.DI(k,c)),f}h.onsuccess=function(k){f.callback(k.target.result)};h.onerror=function(k){c+=zI(d);e&&(c+=", with key "+zI(e));f.Jd(_.CI(k.target,c))};return f};_.g=orc.prototype;_.g.put=function(a,b){return prc(this,"put","putting into "+this.getName()+" with value",a,b)};
_.g.add=function(a,b){return prc(this,"add","adding into "+this.getName()+" with value ",a,b)};_.g.remove=function(a){var b=new _.ei;try{var c=this.H["delete"](a instanceof _.jrc?a.range():a)}catch(e){return c="removing from "+this.getName()+" with key "+zI(a),b.Jd(_.DI(e,c)),b}c.onsuccess=function(){b.callback()};var d=this;c.onerror=function(e){var f="removing from "+d.getName()+" with key "+zI(a);b.Jd(_.CI(e.target,f))};return b};
_.g.get=function(a){var b=new _.ei;try{var c=this.H.get(a)}catch(e){return c="getting from "+this.getName()+" with key "+zI(a),b.Jd(_.DI(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 "+zI(a);b.Jd(_.CI(e.target,f))};return b};_.g.getAll=function(a,b){return qrc(this,"getting all from index "+this.getName(),a,b)};
var qrc=function(a,b,c,d){var e;void 0===c?e=void 0:e=c instanceof _.jrc?c.range():(new _.jrc(_.krc.only(c))).range();var f=new _.ei;try{var h=a.H.getAll(e,d)}catch(k){return b+=" for range "+(e?zI(e):"<all>"),f.Jd(_.DI(k,b)),f}h.onsuccess=function(){f.callback(h.result)};h.onerror=function(k){b+=" for range "+(e?zI(e):"<all>");f.Jd(_.CI(k.target,b))};return f};
orc.prototype.clear=function(){var a="clearing store "+this.getName(),b=new _.ei;try{var c=this.H.clear()}catch(d){return b.Jd(_.DI(d,a)),b}c.onsuccess=function(){b.callback()};c.onerror=function(d){b.Jd(_.CI(d.target,a))};return b};orc.prototype.getIndex=function(a){try{return new lrc(this.H.index(a))}catch(b){throw _.DI(b,"getting index "+a);}};
orc.prototype.count=function(a){var b=new _.ei;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.Jd(_.CI(e.target,d.getName()))}}catch(e){b.Jd(_.DI(e,this.getName()))}return b};
var rrc=function(a,b){_.Ei.call(this);this.H=a;this.O=b;this.Cb=new _.Ze(this);this.Cb.listen(this.H,"complete",(0,_.N)(this.dispatchEvent,this,"complete"));this.Cb.listen(this.H,"abort",(0,_.N)(this.dispatchEvent,this,"abort"));this.Cb.listen(this.H,"error",this.g$a)};_.Zf(rrc,_.Ei);_.g=rrc.prototype;_.g.g$a=function(a){a.target instanceof _.AI?this.dispatchEvent({type:"error",target:a.target}):this.dispatchEvent({type:"error",target:_.CI(a.target,"in transaction")})};_.g.Og=function(){return this.H.mode};
_.g.objectStore=function(a){try{return new orc(this.H.objectStore(a))}catch(b){throw _.DI(b,"getting object store "+a);}};_.g.commit=function(a){if(this.H.commit||!a)try{this.H.commit()}catch(b){throw _.DI(b,"cannot commit the transaction");}};
_.g.wait=function(){var a=new _.ei;_.zi(this,"complete",(0,_.N)(a.callback,a));var b=_.zi(this,"abort",function(){_.Ci(c);a.Jd(new _.AI(_.arc,"waiting for transaction to complete"))});var c=_.zi(this,"error",function(e){_.Ci(b);a.Jd(e.target)});var d=this.O;return a.addCallback(function(){return d})};_.g.abort=function(){this.H.abort()};_.g.Ya=function(){rrc.wb.Ya.call(this);this.Cb.dispose()};
var src=function(a){_.Ei.call(this);this.H=a;this.Cb=new _.Ze(this);this.Cb.listen(this.H,"abort",(0,_.N)(this.dispatchEvent,this,"abort"));this.Cb.listen(this.H,"error",this.h$a);this.Cb.listen(this.H,"versionchange",this.Wob);this.Cb.listen(this.H,"close",(0,_.N)(this.dispatchEvent,this,"close"))};_.Zf(src,_.Ei);_.g=src.prototype;_.g.jsa=!0;_.g.h$a=function(a){a=(a=a.target)&&a.error;this.dispatchEvent({type:"error",errorCode:a&&a.severity})};
_.g.Wob=function(a){this.dispatchEvent(new trc(a.oldVersion,a.newVersion))};_.g.close=function(){this.jsa&&(this.H.close(),this.jsa=!1)};_.g.jh=function(){return this.jsa};_.g.getName=function(){return this.H.name};_.g.ij=function(){return Number(this.H.version)};_.urc=function(a,b,c){try{return new orc(a.H.createObjectStore(b,c))}catch(d){throw _.DI(d,"creating object store "+b);}};
_.vrc=function(a,b,c){try{var d=c?a.H.transaction(b,c):a.H.transaction(b);return new rrc(d,a)}catch(e){throw _.DI(e,"creating transaction");}};src.prototype.Ya=function(){src.wb.Ya.call(this);this.Cb.dispose()};var trc=function(a,b){_.ui.call(this,"versionchange");this.oldVersion=a;this.newVersion=b};_.Zf(trc,_.ui);
_.wrc=function(){void 0==Rqc&&(Rqc=_.n.indexedDB||_.n.mozIndexedDB||_.n.webkitIndexedDB||_.n.moz_indexedDB);return Rqc};
_.xrc=function(a,b,c,d){var e=new _.ei;b=b?_.wrc().open(a,b):_.wrc().open(a);b.onsuccess=function(f){f=new src(f.target.result);e.callback(f)};b.onerror=function(f){e.Jd(_.CI(f.target,"opening database "+a))};b.onupgradeneeded=function(f){if(c){var h=new src(f.target.result);c(new trc(f.oldVersion,f.newVersion),h,new rrc(f.target.transaction,h))}};b.onblocked=function(f){d&&d(new trc(f.oldVersion,f.newVersion))};return e};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1hx");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.EI=function(a,b,c,d){this.ha=a;this.W=b;this.H=this.V=a;this.ka=c||0;this.ma=d||2};_.EI.prototype.O=0;_.EI.prototype.reset=function(){this.H=this.V=this.ha;this.O=0};_.EI.prototype.Za=function(){return this.V};_.FI=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++};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1hp");

_.yrc=function(a,b,c){_.jj(a.url,function(d){d=d.target;d.zv()?b(d.Kl()):c(d.Bb())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)};_.zrc=function(a,b,c,d){return _.D(a,1).split("/").pop()==d?(d=_.y(a,2),Array.isArray(d)?new b(d):c(_.ob(a.Za()))):null};_.Brc=function(a){_.J.call(this,a,-1,Arc)};_.K(_.Brc,_.J);var Arc=[2];
_.Crc=function(a){_.J.call(this,a)};_.K(_.Crc,_.J);var Drc=function(){var a=new _.Crc,b=document.documentElement.getAttribute("lang");return _.w(a,5,b)};_.Crc.prototype.Xi=function(){return _.y(this,7)};
_.Erc=function(a){_.J.call(this,a)};_.K(_.Erc,_.J);
var Frc;_.GI=function(a){_.J.call(this,a,31,Frc)};_.K(_.GI,_.J);_.HI=function(a,b){return _.w(a,8,b)};Frc=[3,20,27];
var Hrc=function(a){_.J.call(this,a,17,Grc)};_.K(Hrc,_.J);var Irc=function(a){var b=Date.now().toString();return _.w(a,4,b)},Jrc=function(a,b){return _.Lj(a,3,b)},Krc=function(a,b){return _.w(a,14,b)},Grc=[3,5];
var Mrc=function(a){_.J.call(this,a,6,Lrc)};_.K(Mrc,_.J);var Lrc=[5];
var Nrc=function(a){_.J.call(this,a)};_.K(Nrc,_.J);
var Orc=new _.Dk(175237375,Nrc);
_.II=function(a,b,c,d,e,f,h,k,l,p,q){_.Ei.call(this);var r=this;this.Ka="";this.O=[];this.Ic="";this.Gb=this.Mb=this.ha=!1;this.Qc=this.rb=-1;this.Rb=!1;this.Fa=this.V=null;this.va=0;this.ke=1;this.timeoutMillis=0;this.kb=!1;_.Ei.call(this);this.Tc=a;this.oc=b||_.Uf;this.ka=new Hrc;this.Bd=d;this.Ab=q;this.le=_.Eb(_.Yia,0,1);this.Ba=e||null;this.Ha=c||null;this.Ta=h||!1;this.$a=l||null;this.eg=null;this.withCredentials=!k;this.zc=f||!1;this.Pd=!this.zc&&(_.Bj.Qn&&_.Gb(65)||_.Bj.Mu&&_.Gb(45)||_.Bj.by&&
_.Gb(12)||_.bh()&&0<=_.sg(_.Aia(),12))&&!!_.Bf()&&!!_.Bf().navigator&&!!_.Bf().navigator.sendBeacon;a=_.w(new _.Erc,1,1);f||(f=Drc(),_.I(a,11,f));_.I(this.ka,1,a);_.w(this.ka,2,this.Tc);this.ma=new _.EI(1E4,3E5,.1);this.H=new _.Fi(this.ma.Za());this.Ma(this.H);_.Pe(this.H,"tick",_.pga(Prc(this,p)),!1,this);this.Qa=new _.Fi(6E5);this.Ma(this.Qa);_.Pe(this.Qa,"tick",_.pga(Prc(this,p)),!1,this);this.Ta||this.Qa.start();this.zc||(_.Pe(_.Bf(),"beforeunload",this.ta,!1,this),_.Pe(_.Bf(),"unload",this.ta,
!1,this),_.Pe(document,"visibilitychange",function(){"hidden"===document.visibilityState&&r.ta()}),_.Pe(document,"pagehide",this.ta,!1,this))};_.K(_.II,_.Ei);var Prc=function(a,b){return b?function(){b().then(a.flush.bind(a))}:a.flush};_.II.prototype.Ya=function(){this.ta();_.Ei.prototype.Ya.call(this)};var Qrc=function(a){a.Ba||(a.Ba=.01>a.le()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.Ba};
_.II.prototype.W=function(a){a instanceof _.GI?this.log(a):(a=_.HI(new _.GI,a.Lc()),this.log(a))};_.Rrc=function(a,b){b?(a.V||(a.V=new _.Brc),b=b.Lc(),_.w(a.V,4,b)):a.V&&_.qb(a.V,4)};_.Src=function(a){a.Mb=a.Pd};_.Trc=function(a,b){a.ma=new _.EI(1>b?1:b,3E5,.1);a.H.setInterval(a.ma.Za())};
_.II.prototype.log=function(a){a=a.clone();var b=this.ke++;_.w(a,21,b);this.Ka&&_.w(a,26,this.Ka);if(!_.y(a,1)){b=a;var c=Date.now().toString();_.w(b,1,c)}_.Dj(a,15)||_.w(a,15,60*(new Date).getTimezoneOffset());this.V&&(b=this.V.clone(),_.I(a,16,b));for(;1E3<=this.O.length;)this.O.shift(),++this.va;this.O.push(a);this.dispatchEvent(new Urc(a));this.Ta||this.H.enabled||this.H.start()};
_.II.prototype.flush=function(a,b){var c=this;if(0===this.O.length)a&&a();else if(this.kb)Vrc(this);else{var d=Date.now();if(this.Qc>d&&this.rb<d)b&&b("throttled");else{var e=Krc(Jrc(Irc(this.ka.clone()),this.O),this.va);d={};var f=this.oc();f&&(d.Authorization=f);var h=Qrc(this);this.Ha&&(d["X-Goog-AuthUser"]=this.Ha,h=_.ej(h,"authuser",this.Ha));this.$a&&(d["X-Goog-PageId"]=this.$a,h=_.ej(h,"pageId",this.$a));if(f&&this.Ic===f)b&&b("stale-auth-token");else if(this.O=[],this.H.enabled&&this.H.stop(),
this.va=0,this.ha)a&&a();else{var k=e.Lc(),l;this.Fa&&this.Fa.vu(k.length)&&(l=this.Fa.w8b(k));var p={url:h,body:k,$kb:1,requestHeaders:d,requestType:"POST",withCredentials:this.withCredentials,timeoutMillis:this.timeoutMillis},q=function(z){c.ma.reset();c.H.setInterval(c.ma.Za());if(z){var A=null;try{var C=JSON.parse(z.replace(")]}'\n",""));A=new Mrc(C)}catch(G){}A&&(z=Number(_.Nma(A,1,"-1")),0<z&&(c.rb=Date.now(),c.Qc=c.rb+z),A=_.ub(A,Orc))&&(A=_.bk(A,1,-1),-1!=A&&(c.Rb||_.Trc(c,A)))}a&&a()},r=
function(z){var A=_.Wj(e,_.GI,3);_.FI(c.ma);c.H.setInterval(c.ma.Za());401===z&&f&&(c.Ic=f);if(500<=z&&600>z||401===z||0===z)c.O=A.concat(c.O),c.Ta||c.H.enabled||c.H.start();b&&b("net-send-failed",z)},v=function(){c.Ab?c.Ab.send(p,q,r):c.Bd(p,q,r)};l?l.then(function(z){p.requestHeaders["Content-Encoding"]="gzip";p.requestHeaders["Content-Type"]="application/binary";p.body=z;p.$kb=2;v()},function(){v()}):v()}}}};_.II.prototype.ta=function(){this.ha||(this.Mb&&Vrc(this),this.Gb&&Wrc(this),this.flush())};
var Vrc=function(a){Xrc(a,32,10,function(b,c){b=_.ej(b,"format","json");b=_.Bf().navigator.sendBeacon(b,c.Lc());a.kb&&!b&&(a.kb=!1);return b})},Wrc=function(a){Xrc(a,6,5,function(b,c){b=_.cj(b,"format","base64json","p",_.Cj(c.Lc(),3));_.Ig(new Image,b);return!0})},Xrc=function(a,b,c,d){if(0!==a.O.length){var e=_.Rla(Qrc(a),"format");e=_.cj(e,"auth",a.oc(),"authuser",a.Ha||"0");for(var f=0;f<c&&a.O.length;++f){var h=a.O.slice(0,b),k=Jrc(Irc(a.ka.clone()),h);0===f&&Krc(k,a.va);if(!d(e,k))break;a.O=
a.O.slice(h.length)}a.H.enabled&&a.H.stop();a.va=0}},Urc=function(){_.ui.call(this,"event-logged",void 0)};_.K(Urc,_.ui);

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1hq");

var Yrc=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;q=p=0}function b(r){for(var v=h,z=0;64>z;z+=4)v[z/4]=r[z]<<24|r[z+1]<<16|r[z+2]<<8|r[z+3];for(z=16;80>z;z++)r=v[z-3]^v[z-8]^v[z-14]^v[z-16],v[z]=(r<<1|r>>>31)&4294967295;r=e[0];var A=e[1],C=e[2],G=e[3],H=e[4];for(z=0;80>z;z++){if(40>z)if(20>z){var L=G^A&(C^G);var M=1518500249}else L=A^C^G,M=1859775393;else 60>z?(L=A&C|G&(A|C),M=2400959708):(L=A^C^G,M=3395469782);L=((r<<5|r>>>27)&4294967295)+
L+H+M+v[z]&4294967295;H=G;G=C;C=(A<<30|A>>>2)&4294967295;A=r;r=L}e[0]=e[0]+r&4294967295;e[1]=e[1]+A&4294967295;e[2]=e[2]+C&4294967295;e[3]=e[3]+G&4294967295;e[4]=e[4]+H&4294967295}function c(r,v){if("string"===typeof r){r=unescape(encodeURIComponent(r));for(var z=[],A=0,C=r.length;A<C;++A)z.push(r.charCodeAt(A));r=z}v||(v=r.length);z=0;if(0==p)for(;z+64<v;)b(r.slice(z,z+64)),z+=64,q+=64;for(;z<v;)if(f[p++]=r[z++],q++,64==p)for(p=0,b(f);z+64<v;)b(r.slice(z,z+64)),z+=64,q+=64}function d(){var r=[],
v=8*q;56>p?c(k,56-p):c(k,64-(p-56));for(var z=63;56<=z;z--)f[z]=v&255,v>>>=8;b(f);for(z=v=0;5>z;z++)for(var A=24;0<=A;A-=8)r[v++]=e[z]>>A&255;return r}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 r=d(),v="",z=0;z<r.length;z++)v+="0123456789ABCDEF".charAt(Math.floor(r[z]/16))+"0123456789ABCDEF".charAt(r[z]%16);return v}}},Zrc=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("Re`"+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("Se`"+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 asc=function(a,b,c){var d=String(_.n.location.href);return d&&a&&b?[b,$rc(Zrc(d),a,c||null)].join(" "):null},$rc=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],_.Ja(d,function(k){e.push(k)}),bsc(e.join(" "));var f=[],h=[];_.Ja(c,function(k){h.push(k.key);f.push(k.value)});c=Math.floor((new Date).getTime()/1E3);e=_.pa(f)?[c,b,a]:[f.join(":"),c,b,a];_.Ja(d,function(k){e.push(k)});a=bsc(e.join(" "));a=[c,a];_.pa(h)||a.push(h.join(""));return a.join("_")},bsc=function(a){var b=
Yrc();b.update(a);return b.digestString().toLowerCase()};
var csc={};
var dsc,fsc;dsc=function(a){return!!csc.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};_.esc=function(a){a=void 0===a?!1:a;var b=_.n.__SAPISID||_.n.__APISID||_.n.__3PSAPISID||_.n.__OVERRIDE_SID;dsc(a)&&(b=b||_.n.__1PSAPISID);if(b)return!0;var c=new _.$Pa(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID");dsc(a)&&(b=b||c.get("__Secure-1PAPISID"));return!!b};fsc=function(a,b,c,d){(a=_.n[a])||(a=(new _.$Pa(document)).get(b));return a?asc(a,c,d):null};
_.gsc=function(a,b){b=void 0===b?!1:b;var c=Zrc(String(_.n.location.href)),d=[];if(_.esc(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 _.$Pa(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?asc(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&dsc(b)&&((b=fsc("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=fsc("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",
a))&&d.push(a))}return 0==d.length?null:d.join(" ")};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1hy");

_.hsc=function(a,b){this.ka=a;this.va=b;this.V="https://play.google.com/log?format=json&hasfast=true";this.W=!1;this.ma=_.yrc;this.H=""};
_.hsc.prototype.build=function(){var a=new _.II(this.ka,this.Ka?this.Ka:_.gsc,this.va,this.ma,this.V,this.W,!1,void 0,void 0,void 0,this.ta?this.ta:void 0);if(this.Fa){var b=this.Fa;_.y(b,1)||_.w(b,1,1);_.I(a.ka,1,b)}if(this.O){b=this.O;var c=_.B(a.ka,_.Erc,1),d=_.B(c,_.Crc,11);d||(d=new _.Crc);_.w(d,7,b);_.I(c,11,d);_.y(c,1)||_.w(c,1,1);_.I(a.ka,1,c)}this.ha&&(a.Fa=this.ha);this.H&&(a.Ka=this.H);this.Ba&&_.Rrc(a,this.Ba);this.Qa&&(b=this.Qa,a.V||(a.V=new _.Brc),_.Jj(a.V,2,b));this.Ha&&(b=this.Ha,
a.Rb=!0,_.Trc(a,b));return a};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1hz");

_.isc=function(a,b,c){a.O[b.getId()]=c;a.H&&c.O(a.H)};_.jsc=function(a){var b;this.O=(b=void 0===b?!1:b)?null:a;this.H=b?a:null};_.jsc.prototype.GA=function(a){var b=this.H?this.H.W.bind(this.H):this.O.log.bind(this.O),c=this.H?this.H.flush.bind(this.H):this.O.flush.bind(this.O);a=_.HI(new _.GI,a.Lc());b(a);return new _.Yh(function(d){c(d,function(){d()})}.bind(this))};
_.ksc=function(a){var b;this.O=(b=void 0===b?!1:b)?null:a;this.H=b?a:null;this.O&&_.Src(this.O)};_.ksc.prototype.GA=function(a){var b=this.H?this.H.W.bind(this.H):this.O.log.bind(this.O),c=this.H?this.H.flush.bind(this.H):this.O.flush.bind(this.O);a=_.HI(new _.GI,a.Lc());b(a);c()};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1hj");

var lsc=function(a){_.J.call(this,a)};_.K(lsc,_.J);lsc.prototype.getEmail=function(){return _.D(this,3,"")};lsc.prototype.qp=function(){return _.Dj(this,3)};_.JI=function(a){return _.B(a,lsc,36,1)};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1hf");

_.KI=function(a){_.J.call(this,a)};_.K(_.KI,_.J);_.KI.prototype.te=function(){return _.B(this,_.Df,1)};_.LI=function(a,b){return _.I(a,1,b)};_.KI.prototype.Ng=function(){return _.y(this,4)};_.KI.prototype.uoa=function(a){return _.w(this,4,a)};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1hm");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1i2");

_.MI=function(a,b){a.H=b;a.ka=0};_.NI=function(a,b){return _.w(a,b,_.mb([]))};_.msc=function(a){if(_.zma)return _.n.atob(a);var b="";_.Bma(a,function(c){b+=String.fromCharCode(c)});return b};_.OI=function(a,b,c,d,e,f,h){_.II.call(this,a,_.gsc,b,_.yrc,c,d,e,void 0,f,h)};_.K(_.OI,_.II);

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1i0");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var nsc,qsc;nsc=[3,42];_.osc=function(a){_.J.call(this,a,-1,nsc)};_.K(_.osc,_.J);_.osc.prototype.getMimeType=function(){return _.y(this,27)};_.psc=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};qsc=function(a,b){if(b&&a in b)return a;var c=_.RFa();return c?(c=c.toLowerCase(),a=c+_.via(a),void 0===b||a in b?a:null):null};
var rsc=function(a){_.ui.call(this,"visibilitychange");this.hidden=a};_.K(rsc,_.ui);
_.ssc=function(a){_.Ei.call(this);this.Zc=a||_.pc();if(this.Oz=this.Irb())this.H=_.Pe(this.Zc.Vb(),this.Oz,(0,_.N)(this.i$a,this))};_.Zf(_.ssc,_.Ei);_.g=_.ssc.prototype;_.g.Irb=_.kda(function(){var a=this.vu(),b="hidden"!=this.vza();if(a){var c;b?c=((_.RFa()||"")+"visibilitychange").toLowerCase():c="visibilitychange";a=c}else a=null;return a});_.g.vza=_.kda(function(){return qsc("hidden",this.Zc.Vb())});_.g.ptb=_.kda(function(){return qsc("visibilityState",this.Zc.Vb())});_.g.vu=function(){return!!this.vza()};
_.g.MB=function(){return!!this.Zc.Vb()[this.vza()]};_.g.i$a=function(){var a=this.vu()?this.Zc.Vb()[this.ptb()]:null;a=new rsc(this.MB(),a);this.dispatchEvent(a)};_.g.Ya=function(){_.Ci(this.H);_.ssc.wb.Ya.call(this)};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1i1");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.PI=function(a,b){a.V.remove(b);return a};_.QI=function(){return"goog_"+_.sia++};_.tsc=function(a,b,c,d,e,f){var h=new _.lj(null,void 0);a&&_.mj(h,a);b&&_.hma(h,b);c&&_.nj(h,c);d&&_.oj(h,d);e&&h.Li(e);f&&_.pj(h,f);return h};_.RI=function(a){return new _.Yh(function(b){var c=a.length,d=[];if(c)for(var e=function(k,l,p){c--;d[k]=l?{W8:!0,value:p}:{W8:!1,reason:p};0==c&&b(d)},f=0,h;f<a.length;f++)h=a[f],_.Nja(h,_.Eb(e,f,!0),_.Eb(e,f,!1));else b(d)})};
_.SI=function(a,b){var c=Math.max(a.left,b.left),d=Math.min(a.left+a.width,b.left+b.width);if(c<=d){var e=Math.max(a.top,b.top);a=Math.min(a.top+a.height,b.top+b.height);if(e<=a)return new _.Jq(c,e,d-c,a-e)}return null};_.TI=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};_.TI.prototype.clone=function(){return new _.TI(this.start,this.end)};_.UI=function(a){return a.end-a.start};_.VI=function(a,b,c){_.O.call(this);this.Ln=null!=c?a.bind(c):a;this.ha=b;this.W=null;this.O=!1;this.V=0;this.H=null};
_.K(_.VI,_.O);_.g=_.VI.prototype;_.g.oe=function(a){this.W=arguments;this.H||this.V?this.O=!0:usc(this)};_.g.stop=function(){this.H&&(_.Hi(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,usc(this))};_.g.Ya=function(){_.O.prototype.Ya.call(this);this.stop()};var usc=function(a){a.H=_.Gi(function(){a.H=null;a.O&&!a.V&&(a.O=!1,usc(a))},a.ha);var b=a.W;a.W=null;a.Ln.apply(null,b)};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1ho");

var vsc=function(a){_.J.call(this,a)},Asc;_.K(vsc,_.J);var wsc=function(a){_.J.call(this,a)};_.K(wsc,_.J);_.WI=function(a){_.J.call(this,a)};_.K(_.WI,_.J);_.WI.prototype.q4=function(a){_.w(this,3,a)};_.WI.prototype.Pl=function(a){return _.I(this,5,a)};_.WI.prototype.getMimeType=function(){return _.y(this,7)};var xsc=[2],ysc=function(a){_.J.call(this,a,-1,xsc)};_.K(ysc,_.J);var zsc=function(a){_.J.call(this,a)};_.K(zsc,_.J);Asc=function(a){this.H=a};_.Bsc=function(a){this.Cd=a};
_.Bsc.prototype.getId=function(){return this.Cd};var Csc=function(a){_.J.call(this,a)};_.K(Csc,_.J);Csc.prototype.ij=function(){return _.y(this,1)};var Dsc=function(a){_.J.call(this,a)};_.K(Dsc,_.J);
var Fsc=function(){this.O=this.ha=!1;this.H=null;for(var a=this.W=this.V=0;a<_.$Aa.length;a++){var b=_.$Aa[a];if(b&&b.chrome&&b.chrome.runtime&&b.chrome.runtime.connect){this.ha=!0;Esc(this,b);break}}},Esc=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})};
Fsc.prototype.GA=function(a){if(this.ha&&this.O){var b=_.B(a,_.Ub,2)||new _.Ub,c=_.B(a,_.ap,5)||new _.ap,d=_.B(a,_.WI,3)||new _.WI;a=_.Wj(a,_.Zya,1);a=_.m(a);for(var e=a.next();!e.done;e=a.next())this.H.postMessage({detail:{impression:e.value.Lc(),session_info:b.Lc(),session_invariants:c.Lc(),client_info:d.Lc()}});document.dispatchEvent(new CustomEvent("ripple",{detail:{clientX:this.V,clientY:this.W}}))}};
var Gsc=function(){_.Uo.call(this)};_.K(Gsc,_.Uo);Gsc.prototype.yv=function(){return 1==_.y(_.B(this.H,vsc,7),1)};var Hsc=new _.Qo("high_frequency_builder");
var Isc=function(a,b,c){a=new _.Fi(a);c.Ma(a);var d=new _.Ze(c);c.Ma(d);d.listen(a,"tick",b);a.start()};
var Jsc=function(){_.Uo.call(this)};_.K(Jsc,_.Uo);var Ksc=function(a,b,c){var d=1E3*Date.now();if(0==b){b=new _.Go;var e=new _.xya;e=_.w(e,1,d);_.I(b,1,e);_.w(b,3,1);_.I(a.H,8,b);_.w(a.H,12,c);_.w(a.H,13,c);_.w(a.H,4,d);_.w(a.H,3,c)}else 1==b&&(b=new _.Go,e=new _.yya,d=_.w(e,1,d),_.I(b,2,d),_.w(b,3,2),_.I(a.H,8,b),_.w(a.H,12,c),_.w(a.H,3,c));return a},Lsc=new _.Qo("system_builder");
var Msc=function(a,b){_.O.call(this);this.O=a;this.H=new _.ssc(b);this.Ma(this.H);this.Cb=new _.Ze(this);this.Ma(this.Cb);this.H.vu()&&this.Cb.listen(this.H,"visibilitychange",this.V)};_.K(Msc,_.O);Msc.prototype.V=function(){if(this.O.qP()){var a=this.H.MB()?102001:102E3;a=this.O.OF(a,0);this.O.Yp(a)}};
var Nsc=function(a,b,c){c=void 0===c?!1:c;_.O.call(this);this.H=a;this.O=b;this.Ma(this.O);this.W=c;this.V=null};_.K(Nsc,_.O);_.g=Nsc.prototype;_.g.Yp=function(a){var b=this.H;_.w(a.H,6,b.W);a=a.build();b.H.add(a);b.V=!0;b=this.O;3<=b.H.H.$b()&&b.O.oe();return new Asc(a)};_.g.OF=function(a,b){a=Ksc(Osc(this.H,a),b,this.H.ha++);1==b&&this.H.ka.add(a);return a};_.g.HL=function(){return this.H.O};
_.g.jw=function(a){var b=this.H,c=_.Vo(a,Lsc),d=b.ha++,e=_.B(_.B(c.H,_.Go,8),_.yya,2),f=1E3*Date.now();_.w(e,2,f);_.w(c.H,13,d);b.ka.remove(_.y(a.H,12))};_.g.GZ=function(){var a=this.O;if(!a.ha||a.H.V){var b=Psc(a.H,691).build();b=Qsc(a.H,[b]);a.ka.GA(b)}a.W();this.H.ma=!1;this.V&&(_.aa(this.V),this.V=null)};_.g.HZ=function(){var a=this.H,b=Psc(a,716);Rsc(a,b);b=b.build();a.H.add(b);a.va=!0;a.ma=!0;this.O.initialize();this.O.O.oe();this.W&&(this.V=new Msc(this))};_.g.bja=function(){this.O.W();return _.RI(Array.from(this.O.V)).then()};
_.g.qP=function(){var a=this.H;return a.va&&a.ma&&!0};
var Ssc=function(a,b,c,d,e){_.O.call(this);this.H=a;this.ta=b;this.ka=c;this.O=new _.VI(this.W,3E3,this);this.V=new Set;this.ha=d;this.ma=e||6E4};_.K(Ssc,_.O);Ssc.prototype.initialize=function(){Isc(this.ma,this.O.oe,this.O);Isc(36E5,this.va,this)};Ssc.prototype.W=function(){var a=this;if(0!=this.H.H.$b()&&(!this.ha||this.H.V)){var b=Tsc(this.H),c=this.ta.GA(b);c&&(_.di(c,function(){return void a.V.delete(c)}),this.V.add(c))}};
Ssc.prototype.va=function(){var a=this.H,b=Psc(a,1153).build();a.H.add(b);this.O.oe()};
var Usc=function(a){_.O.call(this);this.H=a;this.Ma(this.H)};_.K(Usc,_.O);_.g=Usc.prototype;_.g.Yp=function(a){a=this.H.Yp(a);this.bja();return a};_.g.OF=function(a,b){return this.H.OF(a,b)};_.g.HL=function(){return this.H.HL()};_.g.jw=function(a){return this.H.jw(a)};_.g.GZ=function(){return this.H.GZ()};_.g.HZ=function(){return this.H.HZ()};_.g.bja=function(){return this.H.bja()};_.g.qP=function(){return this.H.qP()};
var Vsc=function(){};Vsc.prototype.HQ=function(){return new Gsc};
var Wsc=function(){this.H=[]};Wsc.prototype.add=function(a){this.H.push(a)};Wsc.prototype.$b=function(){return this.H.length};
var Xsc=function(){this.H={}};Xsc.prototype.add=function(a){var b=_.y(a.H,12);this.H[b]=a};Xsc.prototype.remove=function(a){delete this.H[a]};
var Ysc=function(a,b){this.O=a;this.Ba=b;this.ha=1;this.ta=this.W=null;this.ka=new Xsc;this.H=new Wsc;this.ma=this.va=this.V=!1},Osc=function(a,b){a=_.Vo((new _.Uo).initialize(new _.Zya,a.Ba),Lsc);_.w(a.H,10,b);return a},Tsc=function(a){var b=a.H,c=b.H;b.H=[];return Qsc(a,c)},Qsc=function(a,b){var c=new _.oAa;var d=a.O.W.clone();c=_.I(c,2,d);d=a.O;(d=d.O?d.O.clone():null)&&_.I(c,5,d);var e;d=a.O;for(var f,h=b.length-1;0<=h;h--){var k=_.B(b[h],_.No,5);if(k&&_.B(k,_.osc,1)){k=_.B(k,_.osc,1);_.Dj(k,
12)&&void 0===e&&(e=_.P(k,12));k=_.B(k,wsc,20);if(void 0!==k&&void 0===f){f=new Dsc;var l=_.P(k,2);void 0!==l&&_.w(f,2,l);k=_.P(k,1);void 0!==k&&_.w(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 _.WI),void 0!==e&&_.w(d,6,e),void 0!==f&&_.I(d,13,f);(e=d)&&_.I(c,3,e);a=a.O.ha.clone();_.I(c,4,a);_.Lj(c,1,b);return c},Psc=function(a,b){var c=Ksc(Osc(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 zsc;k=_.w(p,1,k);l=_.y(l.H,10);l=_.w(k,2,l);f.push(l)}d=f}716!=b&&(b=a.ta,_.w(c.H,6,a.W),e=new ysc,b=_.w(e,1,b),d&&_.Lj(b,2,d),d=_.Wo(c),_.I(d,3,b));Rsc(a,c);return c},Rsc=function(a,b){a.W=_.y(b.H,12);a.ta=_.y(_.B(_.B(b.H,_.Go,8),_.xya,1),1)};
var Zsc=function(){};Zsc.prototype.HQ=function(){return new Jsc};
var $sc=function(){this.H=this.O=null};$sc.prototype.build=function(){null==this.H&&(this.H=new _.Cza);_.Yo(this.H,Lsc,new Zsc);_.Yo(this.H,Hsc,new Vsc);var a=this.H;var b=this.O;if(!_.Dj(_.atc(b),1)){var c=_.atc(b),d=new _.Uza;_.I(c,1,d)}b=_.B(_.atc(b),_.Uza,1);a.H=b;b=_.Ra(a.O);for(c=0;c<b.length;c++)b[c].O(a.H);return new Ysc(this.O,this.H)};
var btc=function(){this.W=new _.Ub;this.O=null;this.ha=new Csc;_.w(this.ha,1,6);this.H=this.V=null};btc.prototype.setSessionId=function(a){this.W.setSessionId(a);return this};_.ctc=function(a,b){_.w(a.W,2,b);return a};_.dtc=function(a,b){if(null==a.V){a.V=new _.mAa;var c=_.atc(a);_.I(c,2,a.V)}_.w(a.V,1,b)};_.atc=function(a){null==a.O&&(a.O=new _.ap);return a.O};_.etc=function(a){null==a.H&&(a.H=new _.WI);return a.H};
_.ftc=function(){this.H=this.ha=null;this.W=new btc;this.V=null;this.ka=this.ma=!1;this.O=null};_.gtc=function(a,b){a.ha=b;return a};_.htc=function(a,b){a.H=b;return a};_.itc=function(a,b){a.V=b;return a};_.ftc.prototype.setSessionId=function(a){this.W.setSessionId(a);return this};_.jtc=function(a,b){_.w(a.W.W,6,b);return a};
_.ftc.prototype.build=function(){var a=new $sc;a.O=this.W;null!=this.V&&(a.H=this.V);a=a.build();if(this.ka){var b=new Fsc;this.H=this.ha=b}b=new Ssc(a,this.ha,this.H,this.ma,this.O);a=new Nsc(a,b,!1);this.ka&&(a=new Usc(a));return a};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1h6");

_.XI=function(a){return a instanceof Error};_.YI=function(a){return _.Q(a,84,!1)};
_.ktc=function(a){_.J.call(this,a)};_.K(_.ktc,_.J);
_.ZI=function(a){_.J.call(this,a)};_.K(_.ZI,_.J);_.ZI.prototype.getOptions=function(){return _.B(this,_.ktc,1)};_.ZI.prototype.$n=function(){return _.y(this,2)};_.ZI.prototype.ud=function(){return _.B(this,_.of,3)};
_.ltc=function(a){_.J.call(this,a)};_.K(_.ltc,_.J);_.$I=[3,4,5,6,7,8,9,10];
_.mtc=new Map([[157,"categoryReferences"],[5,"hidden"]]);
var aJ,otc;aJ={};_.ntc=(aJ[1]="modifiedDate",aJ[2]="modifiedByMeDate",aJ[3]="quotaBytesUsed",aJ[4]="title",aJ[6]="lastViewedByMeDate",aJ[10]="createdDate",aJ[7]="sharedWithMeDate",aJ[9]="starred",aJ[11]="recency",aJ[5]="relevance",aJ[12]="trashedDate",aJ[13]="lastViewedByMeDate",aJ);otc={};_.ptc=(otc[1]="asc",otc[2]="desc",otc);
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.qtc=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():_.Xf();this.date=new Date(a)};_.Zf(_.qtc,_.Tt);_.g=_.qtc.prototype;_.g.clone=function(){var a=new _.qtc(this.date);a.xG=this.xG;a.hV=this.hV;return a};_.g.add=function(a){(a.W||a.V)&&_.St.prototype.add.call(this,new _.Rt(a.W,a.V));this.date=new Date(this.date.getTime()+1E3*(a.seconds+60*(a.O+60*(a.H+24*a.fw))))};_.g.getTimezoneOffset=function(){return 0};_.g.getFullYear=_.Tt.prototype.getUTCFullYear;
_.g.getMonth=_.Tt.prototype.getUTCMonth;_.g.getDate=_.Tt.prototype.getUTCDate;_.g.getHours=_.Tt.prototype.getUTCHours;_.g.getMinutes=_.Tt.prototype.getUTCMinutes;_.g.getSeconds=_.Tt.prototype.Z8a;_.g.getMilliseconds=_.Tt.prototype.Y8a;_.g.getDay=_.Tt.prototype.getUTCDay;_.g.setFullYear=_.Tt.prototype.setUTCFullYear;_.g.setMonth=_.Tt.prototype.setUTCMonth;_.g.setDate=_.Tt.prototype.setUTCDate;_.g.setHours=_.Tt.prototype.vLa;_.g.setMinutes=_.Tt.prototype.wLa;_.g.setSeconds=_.Tt.prototype.xLa;
_.g.setMilliseconds=_.Tt.prototype.$8a;
var rtc,ttc;rtc={};_.stc=(rtc[1]="0",rtc[2]="1",rtc[3]="2",rtc);ttc={};_.utc=(ttc[1]="asc",ttc[2]="desc",ttc);
_.vtc=new _.Qo("drive_dataservice_builder");
_.wtc=_.fh&&0>_.sg(_.ih,"533");
_.xtc=new _.Bsc("drive_dataservice_invariants");
_.ytc=new Map([[[1],1],[[6],7],[[2],2]]);_.ztc=new Map([[[1],3],[[2],4],[[3],5],[[4],6],[[5],7],[[6],8],[[10],12],[[7],9],[[8],10],[[9],11]]);
_.Atc=new Map([[12,function(a){return _.P(a,69)}],[24,function(a){return _.Q(a,3,!1)}],[9,function(a){return _.Q(a,17,!1)}],[21,function(a){return _.YI(a)}],[13,function(a){return _.P(a,60)}],[2,function(a){return _.Q(a,8,!0)}],[6,function(a){return _.Q(a,11,!1)}],[14,function(){return!0}],[16,function(a){return _.Q(a,56,!1)}],[17,function(a){return _.Q(a,57,!1)}],[18,function(a){return _.Q(a,54,!1)}],[19,function(a){return _.Q(a,53,!1)}],[23,function(){return!0}],[28,function(){return!0}]]);
_.Btc=new Map([[36,function(a){return _.Q(a,11,!1)}],[34,function(a){return _.Q(a,9,!1)}],[25,function(a){return _.Q(a,1,!1)}],[33,function(a){return _.Q(a,8,!1)}],[26,function(a){return _.Q(a,2,!1)}],[29,function(a){return _.Q(a,4,!1)}],[32,function(a){return _.Q(a,7,!1)}],[40,function(a){return _.Q(a,15,!1)}],[43,function(a){return _.Q(a,18,!1)}],[42,function(a){return _.Q(a,17,!1)}],[44,function(a){return _.Q(a,19,!1)}],[30,function(a){return _.Q(a,5,!1)}],[31,function(a){return _.Q(a,6,!1)}],
[35,function(a){return _.Q(a,10,!1)}],[38,function(a){return _.Q(a,13,!1)}],[39,function(a){return _.Q(a,14,!1)}],[41,function(a){return _.Q(a,16,!1)}]]);_.Ctc=new Map([[[1],1],[[2],2],[[3],3],[[4],4],[[5],5]]);
_.Dtc=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],[[251],251],[[243],243],[[244],244],[[245],245],[[246],246],[[247],247],[[248],248],[[249],249],[[250],250],[[252],252],[[253],253],[[254],254],[[255],255],[[256],256]]);_.Etc=new Map([[[2],3],[[1],2],[[0],1]]);_.Ftc=new Map([[[0],1],[[1],2],[[3],3],[[5],4],[[6],5]]);
_.Gtc=new Map([[[_.Vqc],1],[[_.Wqc],2],[[_.Xqc],3],[[_.Yqc],4],[[_.Zqc],5],[[_.$qc],6],[[_.arc],7],[[_.brc],8],[[_.crc],10],[[_.drc],11],[[_.erc],12],[[_.frc],13]]);_.Htc=new Map([[[0],1],[[1],2],[[2],3],[[3],4],[[4],5],[[5],6],[[6],7]]);

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1hb");

_.bJ=function(a){_.J.call(this,a,-1,Itc)};_.K(_.bJ,_.J);_.bJ.prototype.Ac=function(){return _.y(this,2)};_.cJ=function(a,b){return _.w(a,2,b)};_.g=_.bJ.prototype;_.g.Dk=function(){return _.Q(this,3,!1)};_.g.getItem=function(){return _.B(this,_.jl,4)};_.g.setItem=function(a){return _.I(this,4,a)};_.g.yc=function(){return _.y(this,7)};_.g.N9=function(){return _.y(this,13)};_.g.EHa=function(a){_.w(this,13,a)};var Itc=[8,17];

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1hn");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1ha");

var Ltc;_.fJ=function(a){if(a instanceof _.Dc)return a;if(_.XI(a)){if(a=_.lIb(a))return a}else a="string"===typeof a?_.NEa(a):_.NEa("Converting an unexpected reason type to drive.ds.Error which should be drive.ds.Error, Error, or string. Found:"+a);_.dJ(a,2);_.eJ(a,6);return a};_.Jtc=function(a){var b=a.Ak();a=a.MF();return 15===b||32===b||33===b||401===a};_.Ktc=function(){return _.n.WorkerGlobalScope&&self instanceof _.n.WorkerGlobalScope};_.gJ=function(a){return _.bk(a,1,0)};
_.dJ=function(a,b){return _.w(a,1,b)};_.eJ=function(a,b){return _.w(a,2,b)};Ltc=[8,9,10,13,14,27,28,29,31,32,33,34,38];_.hJ=function(a){_.J.call(this,a,-1,Ltc)};_.K(_.hJ,_.J);_.g=_.hJ.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Ob=function(a){return _.w(this,1,a)};_.g.getTitle=function(){return _.y(this,2)};_.g.setTitle=function(a){return _.w(this,2,a)};_.g.Cf=function(){return _.y(this,3)};_.g.Yl=function(a){return _.w(this,3,a)};_.g.Lv=function(a){return _.w(this,4,a)};
_.g.Xh=function(){return _.P(this,5)};_.g.On=function(a){return _.w(this,5,a)};_.g.getMimeType=function(){return _.y(this,6)};_.g.uE=function(a,b){_.Nj(this,8,a,b)};_.g.Zi=function(){return _.y(this,12)};_.g.te=function(){return _.B(this,_.Df,17)};_.g.ij=function(){return _.y(this,20)};_.g.yc=function(){return _.y(this,21)};_.iJ=function(a,b){return _.w(a,16,b)};
_.jJ=function(a){_.J.call(this,a,-1,Mtc)};_.K(_.jJ,_.J);_.jJ.prototype.OQ=function(){return _.bk(this,2,100)};_.jJ.prototype.EO=function(a){return _.w(this,2,a)};_.jJ.prototype.te=function(){return _.B(this,_.Df,6)};_.jJ.prototype.yc=function(){return _.y(this,8)};var Mtc=[5];
_.Ntc=new Map([[1,"connected"],[2,"unauthenticated/online"],[3,"offline"]]);
var Otc;Otc={};_.Ptc=(Otc[0]="/drive/v2internal",Otc[1]="/drive/v2internal.corp",Otc[2]="/drive/v2internal.scary",Otc[4]="/drive/v2internal.scary",Otc[5]="/drive/v2beta",Otc[6]="/drive/v2.1beta",Otc);
_.Qtc=new Set([0,1,2,3]);
_.Rtc=_.w(new _.hJ,15,!0);_.Stc=_.iJ(new _.hJ,!0);_.Ttc=_.iJ(new _.hJ,!1);
_.Utc=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."]]);

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1hk");

_.Vtc=new Set([7,4,5,9,6,10,11,12]);

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1i3");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Wtc=function(a){a=_.fb(a);return 0===a.length?_.Nha:new _.wg(a,_.Lha)};_.Xtc=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)};_.Zf(_.Xtc,_.Oqc);_.Xtc.prototype.reset=function(){this.H.reset();this.H.update(this.O)};
_.Xtc.prototype.update=function(a,b){this.H.update(a,b)};_.Xtc.prototype.digest=function(){var a=this.H.digest();this.H.reset();this.H.update(this.V);this.H.update(a);return this.H.digest()};_.Ytc=function(a,b){a.reset();a.update(b);return a.digest()};
_.Ztc=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()};_.Zf(_.Ztc,_.Oqc);_.Ztc.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 $tc=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};
_.Ztc.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;)$tc(this,a,d),d+=this.blockSize;if("string"===typeof a)for(;d<b;){if(e[f]=a.charCodeAt(d),++f,++d,f==this.blockSize){$tc(this,e);f=0;break}}else for(;d<b;)if(e[f]=a[d],++f,++d,f==this.blockSize){$tc(this,e);f=0;break}}this.O=f;this.V+=b}};
_.Ztc.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;$tc(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};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1h7");

_.kJ=function(a,b){return _.w(a,82,b)};_.lJ=function(a){return _.w(a,3,!0)};_.auc=function(a,b){return _.w(a,7,b)};
_.buc=new Map([[1,6],[2,6],[3,6],[9,6],[4,2],[8,2],[6,7],[7,8]]);
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.mJ={k_:"Versions",M6:"Metadata",y5:"Data",hU:"Offline"};_.cuc=new Map([[_.mJ.k_,"versionKey"],[_.mJ.M6,"k"]]);_.duc=new Set([1004]);

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1i5");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.euc=function(a,b,c){c&&(a=_.Qg(a));a.length>b&&(a=a.substring(0,b-3)+"...");c&&(a=_.Pg(a));return a};_.fuc=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};
_.guc=function(a,b,c){void 0===c&&(c=a.size);return a.slice?a.slice(b,c):null};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1hl");

_.huc=function(a){_.J.call(this,a)};_.K(_.huc,_.J);_.g=_.huc.prototype;_.g.getKey=function(){return _.y(this,1)};_.g.ht=function(){return _.Dj(this,1)};_.g.Za=function(){return _.y(this,2)};_.g.Jb=function(a){return _.w(this,2,a)};_.g.Ui=function(){return _.qb(this,2)};_.g.Pg=function(){return _.Dj(this,2)};
_.nJ=function(a){_.J.call(this,a,-1,iuc)};_.K(_.nJ,_.J);_.nJ.prototype.Yz=function(){return _.y(this,1)};_.nJ.prototype.getUrl=function(){return _.y(this,3)};var iuc=[2,4,6];

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1i6");

var muc,nuc,puc;_.juc=function(a){var b={};_.Ma(a,function(c,d){b[d.toLowerCase()]=c});return b};_.kuc=function(a){return(a=a&&_.juc(a))&&a["x-guploader-uploadid"]};_.luc=function(a){return(a=a&&_.juc(a))&&a["x-google-trace"]};muc=[6];_.oJ=function(a){_.J.call(this,a,-1,muc)};_.K(_.oJ,_.J);_.pJ=function(a,b){return _.w(a,14,b)};
_.ouc=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=nuc(e)||new _.Dc;_.w(e,8,!0);k&&(k=_.pj(new _.lj(k),void 0).toString(),_.w(e,19,k));e.MF()||_.w(e,15,a||f);e.getMessage()||_.nq(e,["HTTP status code: "+a,"HTTP status text: "+b,"XHR error code: "+f,"XHR error text: "+h].join(", "));_.y(e,4)||_.oq(e,d);e.Ak()||(5===f?_.pJ(e,7):0!==a||d?403===a?_.pJ(e,22):503===a||429===a?_.pJ(e,24):(_.qb(e,14),_.w(e,10,1),_.w(e,8,!0)):l||_.pJ(e,2));e.Fca(_.kuc(c));
e.wca(_.luc(c));return e};nuc=function(a){if(!_.Ca(a))return null;var b=new _.Dc,c=a.error;if(!c)return _.oq(b,JSON.stringify(a)),null;_.w(b,15,c.code);_.nq(b,c.message);a=c.errors&&c.errors[0];if(!a)return b;c=a.reason;var d=puc[c];d?_.w(b,10,d):c&&!d&&_.w(b,10,2);(a=a.debugInfo)&&_.oq(b,a);return b};
puc={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,
sharedDriveInitializationInProgress:68,shortcutLimitExceeded:57,shortcutPerCreatorLimitExceeded:58,simultaneousPreflightLimitExceeded:67,mimeTypeSizeExceeded:60,onlyCriticalWritesAllowed:61,wrappedKeyExceededLimit:62,permissionDenied:69};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1hc");

var quc,ruc,vuc,zuc,Auc,Buc,Tuc,nK,Uuc,Vuc,bvc,xuc,Jvc,wuc,kwc,mwc,owc,qwc,Jwc,Kwc,Owc,Pwc,Rwc,Swc,Uwc,Xwc,LK,NK,axc,cxc,fxc,gxc,hxc,ixc,jxc,kxc,nxc,pxc,qxc,Ixc,Mxc,Oxc,Pxc,Qxc,Vxc,Yxc,cvc,fyc,gyc,byc,hyc,cyc,jyc,kyc,qyc,pyc,oyc,myc,nyc,Muc,Nuc,Wuc,ryc,Xuc,Yuc,Zuc,$uc,avc,syc,uyc;_.qJ=function(a,b,c){var d=new _.Dc,e=_.nka(_.qJ);_.w(d,20,e);_.eJ(d,a);_.dJ(d,b?b:2);c&&_.pJ(d,c);return d};
_.rJ=function(a){var b;a instanceof _.Dc?b=new _.Ec(null,a):_.XI(a)?b=a:b=_.n.ErrorEvent&&a instanceof ErrorEvent?a.error instanceof Error?a.error:Error(a.message):"string"===typeof a?Error(a):Error("rb`"+a);b.stack||(b.stack=_.nka(_.rJ));return b};_.sJ=function(a){throw _.SB(a);};quc=function(a){return 7===a.Ak()||24===a.Kp()&&(a=a.MF(),503===a||429===a)?!0:!1};ruc=function(a,b){return b?b+"("+a+")":a};
_.tJ=function(a,b,c){var d={},e=[];b&&e.push("kind");a.tAb&&e.push("searchResultSource");a.fields.forEach(function(p){if(!_.suc.includes(p)){var q=_.reb.get(p);if(q){var r=_.ueb[p];a.GE&&r&&(q=r);a.Cq&&(a.GE?(p=_.teb[p])&&(q=p):(p=_.seb[p])&&(q=p));q.split(",").forEach(function(v){var z=_.wia(v,"/",1);1<z.length?(d[z[0]]||(d[z[0]]=[]),d[z[0]].push(z[1])):e.push(v)})}}});for(var f={},h=_.m(Object.entries(d)),k=h.next();!k.done;f={r5:f.r5},k=h.next()){var l=_.m(k.value);k=l.next().value;l=l.next().value;
f.r5=[];l.forEach(function(p){return function(q){p.r5.push(q)}}(f));"owners"==k&&b&&f.r5.push("kind");e.push(ruc(f.r5.join(","),k))}return ruc(e.join(","),c)};_.tuc=function(a){var b=new _.Xo;b.append(_.tJ(a,!0));return b.toString()};_.uuc=function(a,b){return a.filter(function(c){return b.includes(c)})};vuc=function(a){a=a.filter(function(b){return!_.reb.has(b)});if(a.length)throw Error("Tc`"+a.join(", "));};
_.yuc=function(a){if(a){var b=a.getMimeType();b&&_.JG(a,b.toLowerCase());wuc(a,_.Wj(a,xuc,58).map(function(c){var d=c.getMimeType();d&&_.w(c,1,d.toLowerCase());return c}))}};zuc=function(a,b){b&&(_.vj(a,"openDrive",!!_.Q(b,2,!1)),_.vj(a,"reason",_.y(b,1)||0),_.vj(a,"syncType",_.y(b,3)||0),_.vj(a,"errorRecovery",!!_.Q(b,4,!1)))};Auc=function(a){if(_.Ua(a))return"\r\n";var b="";_.Ma(a,function(c,d){b+=d+": "+c+"\r\n"});return b};
Buc=function(a){a=_.nq(_.pJ(_.dJ(new _.Dc,2),39),"Multiple resource key definitions found for itemId "+a);throw _.SB(a);};
Tuc=function(a){if(a instanceof _.uJ)return"request access";if(a instanceof _.vJ)return"admin migrate to TD";if(a instanceof _.wJ)return"authorize app";if(a instanceof _.xJ)return"copy item";if(a instanceof _.yJ)return"change category links";if(a instanceof _.zJ)return"create item";if(a instanceof _.AJ)return"create ws";if("undefined"!=typeof _.BJ&&a instanceof _.BJ)return"delete app";if("undefined"!=typeof _.CJ&&a instanceof _.CJ)return"delete backup";if(a instanceof _.DJ)return"delete item";if("undefined"!=
typeof _.EJ&&a instanceof _.EJ)return"delete permission";if(a instanceof _.FJ)return"delete revision";if(a instanceof _.GJ)return"delete TD";if(a instanceof _.XD)return"delete pref";if(a instanceof _.HJ)return"delete ws";if(a instanceof _.IJ)return"download item";if(a instanceof _.JJ||a instanceof _.KJ)return"empty trash";if(a instanceof _.LJ)return"find by ID";if(a instanceof _.zA)return"find by IDs";if(a instanceof _.Cuc)return"item export start";if("undefined"!=typeof _.MJ&&a instanceof _.MJ)return"get app";
if("undefined"!=typeof _.NJ&&a instanceof _.NJ)return"insert app";if("undefined"!=typeof _.OJ&&a instanceof _.OJ)return"insert permission";if(a instanceof _.ZI)return a=a.ud(),_.PJ(a)?"quick access item query":_.QJ(a)?"people predict item query":_.RJ(a)?"drive priority query":"item query";if("undefined"!=typeof _.SJ&&a instanceof _.SJ)return"list android backup items request";if(a instanceof _.TJ){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 _.Duc&&a instanceof _.Duc?"list backups":a instanceof _.jJ?"list changes":a instanceof _.UJ?"list permissions":"undefined"!=typeof _.VJ&&a instanceof _.VJ?"list revisions":a instanceof _.WJ?"migrate to shared drive":a instanceof _.XJ?"partial download item":a instanceof _.YJ?"people api":a instanceof _.DG?"get published category":"undefined"!=typeof _.ZJ&&a instanceof _.ZJ?"get remaining changes":
a instanceof _.$J?"remove item":"undefined"!=typeof _.aK&&a instanceof _.aK?"reparent item":a instanceof _.bK?"restore item":a instanceof _.EG?"list suggested workspace items":a instanceof _.kA?"list suggested workspaces":"undefined"!=typeof _.eK&&a instanceof _.eK?"update app":a instanceof _.fK?"update category metadata":a instanceof _.hJ?"update item":a instanceof _.gK?"update revision":a instanceof _.hK?"update TD":a instanceof _.YD?"update pref":a instanceof _.iK?"update ws":a instanceof _.KI?
"get account":a instanceof _.IG?"get workspace":a instanceof _.Euc?"list activity":a instanceof _.Fuc?"list category metadata":a instanceof _.Guc?"create TD":"undefined"!=typeof _.Huc&&a instanceof _.Huc?"item export cancel":"undefined"!=typeof _.Iuc&&a instanceof _.Iuc?"item export status":"undefined"!=typeof _.Juc&&a instanceof _.Juc?"generate cse token":"undefined"!=typeof _.Kuc&&a instanceof _.Kuc?"get largest change ID":a instanceof _.WD?"list prefs":a instanceof _.jK?"multipart upload":a instanceof
_.Luc?"list published categories":a instanceof Muc?"init resumable upload":a instanceof Nuc?"resumable upload chunk":a instanceof _.Ouc?"resumable upload":a instanceof _.FG?"get TD":"undefined"!=typeof _.Puc&&a instanceof _.Puc?"move TD preflight":a instanceof _.kK?"list TDs":"undefined"!=typeof _.Quc&&a instanceof _.Quc?"get TD stats":a instanceof _.Ruc?"test connection":"undefined"!=typeof _.Suc&&a instanceof _.Suc?"list workspaces":"unknown"};
nK=function(a,b,c){null!=c&&(Array.isArray(c)?0<c.length&&a.push(b+": "+c.join(", ")):a.push(b+": "+c))};Uuc=function(a){if(a instanceof _.zJ||a instanceof _.jK||a instanceof _.Ouc||a instanceof Muc||a instanceof Nuc)return(new _.oK).Dc(8);throw Error("ff");};Vuc=function(a){if(a instanceof _.hJ){var b=_.Kj(_.qb(a.clone(),1),17);b=_.ak(b,_.Rtc)}else b=!1;b||(a instanceof _.hJ?(a=_.Kj(_.qb(a.clone(),1),17),b=_.ak(a,_.Stc)||_.ak(a,_.Ttc)):b=!1);return b?!1:!0};
_.pK=function(a){return Wuc.includes(a.constructor)?Vuc(a):!1};bvc=function(a,b){if(Xuc.includes(a.constructor))return!0;if(b){if(_.Q(b,54,!1)&&Yuc.includes(a.constructor))return!0;var c=_.qK(b);if(c&&!_.Q(c,7,!1)&&Zuc.includes(a.constructor)&&!_.rK(a)||_.Q(b,56,!1)&&_.rK(a)||_.Q(b,57,!1)&&$uc.includes(a.constructor)||!(!_.Q(b,53,!1)||Yuc.includes(a.constructor)||Zuc.includes(a.constructor)||_.rK(a)||$uc.includes(a.constructor)||avc.includes(a.constructor)))return!0}return!1};
_.sK=function(a,b,c,d,e){if(_.Q(a,89,!1)){if(c&&c.length&&d){c=b.concat(cvc(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)!==_.y(d,2)&&Buc(h):(a.set(h,_.y(d,2)),b.push(d))}f=b}else f=b;f.length&&(f=_.uA(f),f.length&&(e["X-Goog-Drive-Resource-Keys"]=f))}};_.dvc=function(a){var b=new _.Sk;return _.w(b,1,a)};_.evc=function(a,b){return _.w(a,7,b)};_.fvc=function(a,b){return _.w(a,8,b)};
_.gvc=function(a,b){return _.w(a,11,b)};_.hvc=function(a,b){return _.w(a,1,b)};_.ivc=function(a,b){return _.w(a,4,b)};_.jvc=function(a,b){return _.w(a,5,b)};_.kvc=function(a,b){return _.w(a,6,b)};_.lvc=function(a,b){return _.w(a,7,b)};_.mvc=function(a,b){return _.w(a,8,b)};_.nvc=function(a,b){return _.w(a,9,b)};_.ovc=function(a,b){return _.w(a,10,b)};_.pvc=function(a,b){return _.w(a,11,b)};_.qvc=function(a,b){return _.w(a,12,b)};_.rvc=function(a,b){return _.w(a,16,b)};
_.svc=function(a,b){return _.w(a,17,b)};_.tvc=function(a,b){return _.w(a,20,b)};_.uvc=function(a,b){return _.w(a,21,b)};_.vvc=function(a,b){return _.w(a,31,b)};_.wvc=function(a,b){return _.w(a,32,b)};_.xvc=function(a,b){return _.w(a,33,b)};_.yvc=function(a,b){return _.w(a,42,b)};_.zvc=function(a,b){return _.w(a,43,b)};_.Avc=function(a,b){return _.w(a,46,b)};_.Bvc=function(a,b){return _.w(a,47,b)};_.Cvc=function(a,b){return _.w(a,48,b)};_.tK=function(a){_.J.call(this,a)};_.K(_.tK,_.J);
_.Dvc=function(a){_.J.call(this,a)};_.K(_.Dvc,_.J);_.Evc=function(a,b){return _.w(a,1,b)};_.Fvc=function(a,b){return _.w(a,2,b)};xuc=function(a){_.J.call(this,a)};_.K(xuc,_.J);xuc.prototype.getMimeType=function(){return _.y(this,1)};xuc.prototype.getUrl=function(){return _.y(this,2)};_.uK=function(a){_.J.call(this,a)};_.K(_.uK,_.J);_.uK.prototype.Ee=function(){return _.y(this,2)};_.uK.prototype.zh=function(a){return _.w(this,2,a)};_.uK.prototype.yh=function(a){return _.w(this,3,a)};
_.Gvc=function(a,b){return _.w(a,1,b)};_.Hvc=function(a,b){return _.Lj(a,2,b)};_.Ivc=function(a,b){return _.Lj(a,3,b)};Jvc=[2];_.vK=function(a){_.J.call(this,a,-1,Jvc)};_.K(_.vK,_.J);_.vK.prototype.Cf=function(){return _.y(this,1)};_.vK.prototype.Yl=function(a){return _.w(this,1,a)};_.vK.prototype.Dua=function(a,b){return _.Nj(this,2,a,b)};_.wK=function(a){_.J.call(this,a)};_.K(_.wK,_.J);_.wK.prototype.Ee=function(){return _.y(this,1)};_.wK.prototype.zh=function(a){return _.w(this,1,a)};
_.wK.prototype.yh=function(a){return _.w(this,2,a)};_.xK=function(a,b){return _.Jj(a,2,b)};_.Kvc=function(a,b){_.w(a,8,b)};_.Lvc=function(a,b){return _.Lj(a,15,b)};_.Mvc=function(a,b){return _.I(a,17,b)};_.Nvc=function(a,b){return _.w(a,19,b)};_.Ovc=function(a,b){_.w(a,26,b)};_.Pvc=function(a,b){_.w(a,31,b)};_.Qvc=function(a,b){_.w(a,34,b)};_.Rvc=function(a,b){return _.w(a,44,b)};_.Svc=function(a,b){_.I(a,47,b)};_.Tvc=function(a,b){return _.w(a,52,b)};wuc=function(a,b){_.Lj(a,58,b)};
_.Uvc=function(a,b){return _.w(a,72,b)};_.yK=function(a,b){return _.I(a,84,b)};_.Vvc=function(a,b){_.I(a,85,b)};_.Wvc=function(a,b){_.I(a,91,b)};_.Xvc=function(a,b){return _.w(a,92,b)};_.Yvc=function(a,b){return _.w(a,93,b)};_.Zvc=function(a,b){_.I(a,95,b)};_.$vc=function(a,b){return _.w(a,136,b)};_.awc=function(a){_.J.call(this,a)};_.K(_.awc,_.J);_.zK=function(a){return _.Q(a,2,!1)};_.bwc=function(a){_.J.call(this,a)};_.K(_.bwc,_.J);var cwc=[3],dwc=function(a){_.J.call(this,a,-1,cwc)};_.K(dwc,_.J);
dwc.prototype.Fi=function(){var a=_.y(this,3);this.Ka||(this.Ka={});if(!this.Ka[3]){for(var b=0;b<a.length;b++)a[b]=!!a[b];this.Ka[3]=!0}_.kb(this)&&_.lb(a);return a};var ewc=[3],fwc=function(a){_.J.call(this,a,-1,ewc)};_.K(fwc,_.J);fwc.prototype.Fi=function(){return _.ge(this,3)};var gwc=[3],hwc=function(a){_.J.call(this,a,-1,gwc)};_.K(hwc,_.J);hwc.prototype.Fi=function(){return _.ge(this,3)};_.AK=function(a){_.J.call(this,a)};_.K(_.AK,_.J);_.AK.prototype.Za=function(){return _.y(this,1)};
_.AK.prototype.Jb=function(a){return _.w(this,1,a)};_.AK.prototype.Ui=function(){return _.qb(this,1)};_.AK.prototype.Pg=function(){return _.Dj(this,1)};_.BK=function(a){return _.Gj(a,45,1)};_.PJ=function(a){return _.Q(a,47,!1)};_.QJ=function(a){return _.Q(a,49,!1)};_.RJ=function(a){return _.Q(a,52,!1)};_.CK=function(a){return _.D(a,2,"")};_.qK=function(a){return _.B(a,_.bwc,4)};_.iwc=function(a,b){return _.Jj(a,27,b)};_.DK=function(a){return _.Gj(a,39,0)};_.EK=function(a){return _.Q(a,40,!1)};
_.jwc=function(a){return _.St.prototype.PO.call(a,!0)+"T"+_.Ug(a.getHours(),2)+":"+_.Ug(a.getMinutes(),2)+":"+_.Ug(a.getSeconds(),2)+a.g$()};kwc=function(a,b){return _.nrc(a,"getAllKeys","getting all keys index "+a.getName(),b,void 0)};_.lwc=function(a,b){try{a.H.deleteObjectStore(b)}catch(c){throw _.DI(c,"deleting object store "+b);}};mwc=function(){var a=new _.ftc;a.O=12E4;a.ma=!0;return a};_.nwc=function(a){_.J.call(this,a)};_.K(_.nwc,_.J);owc=[3,4,10,18,19,28];
_.zJ=function(a){_.J.call(this,a,-1,owc)};_.K(_.zJ,_.J);_.g=_.zJ.prototype;_.g.getMimeType=function(){return _.y(this,1)};_.g.getTitle=function(){return _.y(this,2)};_.g.setTitle=function(a){return _.w(this,2,a)};_.g.uE=function(a,b){_.Nj(this,3,a,b)};_.g.te=function(){return _.B(this,_.Df,7)};_.g.hj=function(){return _.y(this,9)};_.g.yc=function(){return _.y(this,14)};_.g.Sz=function(){return _.B(this,_.nwc,15)};_.g.D1=function(){return _.y(this,21)};_.g.Ac=function(){return _.y(this,23)};
_.g.Bj=function(){return _.y(this,33)};_.FK=function(a,b){return _.w(a,1,b)};_.GK=function(a,b){return _.Jj(a,3,b)};_.pwc=function(a,b){return _.w(a,12,b)};_.DJ=function(a){_.J.call(this,a)};_.K(_.DJ,_.J);_.DJ.prototype.getId=function(){return _.y(this,1)};_.DJ.prototype.Ob=function(a){return _.w(this,1,a)};_.DJ.prototype.te=function(){return _.B(this,_.Df,3)};_.GJ=function(a){_.J.call(this,a)};_.K(_.GJ,_.J);_.GJ.prototype.getId=function(){return _.y(this,1)};
_.GJ.prototype.Ob=function(a){return _.w(this,1,a)};_.GJ.prototype.te=function(){return _.B(this,_.Df,2)};qwc=[7,8];_.hK=function(a){_.J.call(this,a,-1,qwc)};_.K(_.hK,_.J);_.g=_.hK.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Ob=function(a){return _.w(this,1,a)};_.g.getTitle=function(){return _.y(this,2)};_.g.setTitle=function(a){return _.w(this,2,a)};_.g.te=function(){return _.B(this,_.Df,4)};_.kK=function(a){_.J.call(this,a)};_.K(_.kK,_.J);
_.kK.prototype.getOptions=function(){return _.B(this,_.ktc,1)};_.kK.prototype.$n=function(){return _.y(this,2)};_.kK.prototype.ud=function(){return _.B(this,_.xI,3)};var rwc=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}},swc=null,twc=function(){this.O=0;this.H=[]};_.g=twc.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=uwc(this,a);return this.H[a]};_.g.set=function(a,b){a=uwc(this,a);this.H[a]=b};_.g.$b=function(){return this.H.length};
_.g.vc=function(){return 0==this.H.length};_.g.clear=function(){this.O=this.H.length=0};_.g.sh=function(){var a=this.$b(),b=this.$b(),c=[];for(a=this.$b()-a;a<b;a++)c.push(this.get(a));return c};_.g.Kf=function(){for(var a=[],b=this.$b(),c=0;c<b;c++)a[c]=c;return a};_.g.ef=function(a){return a<this.$b()};_.g.Eq=function(a){for(var b=this.$b(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};
var uwc=function(a,b){if(b>=a.H.length)throw Error("ha");return 40>a.H.length?b:(a.O+Number(b))%40},vwc=function(a){_.J.call(this,a)};_.K(vwc,_.J);_.wwc=function(a){_.J.call(this,a)};_.K(_.wwc,_.J);_.wwc.prototype.Ze=function(){return _.y(this,1)};_.wwc.prototype.Ki=function(a){return _.w(this,1,a)};_.wwc.prototype.Bb=function(){return _.y(this,4)};_.wwc.prototype.Dc=function(a){return _.w(this,4,a)};var xwc=function(a){_.J.call(this,a)};_.K(xwc,_.J);xwc.prototype.Zn=function(){return _.y(this,5)};
var ywc=function(a,b){_.w(a,6,b)},zwc=function(a){_.J.call(this,a)};_.K(zwc,_.J);_.g=zwc.prototype;_.g.Wgb=function(a){_.w(this,1,a)};_.g.vOb=function(a){_.w(this,2,a)};_.g.Cy=function(){return _.P(this,3)};_.g.Xgb=function(a){_.w(this,3,a)};_.g.aOb=function(a){_.w(this,4,a)};var Awc=function(a){_.J.call(this,a)};_.K(Awc,_.J);Awc.prototype.Cy=function(){return _.P(this,2)};var Bwc=function(a,b){return _.w(a,2,b)},Cwc=function(a,b){_.w(a,3,b)};Awc.prototype.BB=function(){return _.y(this,6)};
var Dwc=function(a,b){return _.w(a,8,b)},Ewc=function(a){_.J.call(this,a)};_.K(Ewc,_.J);var Fwc=function(a){_.J.call(this,a)};_.K(Fwc,_.J);var Gwc=function(a,b){_.w(a,4,b)},Hwc=function(a){_.J.call(this,a)};_.K(Hwc,_.J);Hwc.prototype.ud=function(){return _.B(this,_.wwc,1)};Hwc.prototype.getState=function(){return _.B(this,xwc,2)};Hwc.prototype.Ld=function(a){return _.I(this,2,a)};Hwc.prototype.jt=function(){return _.Dj(this,2)};var Iwc=function(a){_.J.call(this,a)};_.K(Iwc,_.J);
Iwc.prototype.Lj=function(){return _.y(this,1)};Iwc.prototype.getEnvironment=function(){return _.y(this,2)};Iwc.prototype.setEnvironment=function(a){return _.w(this,2,a)};_.suc=[42,1005,20,50,18,1003,1002];Jwc=[73,71];_.HK=function(a){_.J.call(this,a)};_.K(_.HK,_.J);_.HK.prototype.getId=function(){return _.y(this,1)};_.HK.prototype.Ob=function(a){return _.w(this,1,a)};_.HK.prototype.getMimeType=function(){return _.y(this,2)};Kwc=[22];_.oK=function(a){_.J.call(this,a,-1,Kwc)};_.K(_.oK,_.J);_.g=_.oK.prototype;
_.g.Bb=function(){return _.y(this,1)};_.g.Dc=function(a){return _.w(this,1,a)};_.g.getItem=function(){return _.B(this,_.jl,2)};_.g.setItem=function(a){return _.I(this,2,a)};_.g.dk=function(){return _.y(this,3)};_.g.Ac=function(){return _.y(this,5)};_.Lwc=function(a,b){return _.w(a,5,b)};_.g=_.oK.prototype;_.g.YJ=function(){return _.y(this,7)};_.g.Fca=function(a){return _.w(this,7,a)};_.g.gfa=function(a){_.w(this,9,a)};_.g.VLa=function(a){_.w(this,10,a)};_.g.RM=function(){return _.y(this,16)};
_.g.wca=function(a){return _.w(this,16,a)};var Mwc=function(a){var b=new _.ei;a.listen("loadend",_.Eb(function(c,d){var e=d.ek(),f=d.getError();null==e||f?c.Jd(f):c.callback(e);d.dispose()},b,a));return b},Nwc=function(a){_.ui.call(this,a);this.connectionState=_.lLb.get(a)};_.K(Nwc,_.ui);_.uJ=function(a){_.J.call(this,a)};_.K(_.uJ,_.J);_.uJ.prototype.Ac=function(){return _.y(this,1)};_.vJ=function(a){_.J.call(this,a)};_.K(_.vJ,_.J);_.vJ.prototype.getId=function(){return _.y(this,1)};
_.vJ.prototype.Ob=function(a){return _.w(this,1,a)};_.vJ.prototype.Fk=function(){return _.y(this,2)};_.vJ.prototype.O=function(a){_.w(this,4,a)};_.wJ=function(a){_.J.call(this,a)};_.K(_.wJ,_.J);_.wJ.prototype.Nh=function(){return _.y(this,1)};_.wJ.prototype.Ac=function(){return _.y(this,2)};_.wJ.prototype.te=function(){return _.B(this,_.Df,4)};Owc=[3,7];_.xJ=function(a){_.J.call(this,a,-1,Owc)};_.K(_.xJ,_.J);_.g=_.xJ.prototype;_.g.getId=function(){return _.y(this,1)};
_.g.Ob=function(a){return _.w(this,1,a)};_.g.getTitle=function(){return _.y(this,2)};_.g.setTitle=function(a){return _.w(this,2,a)};_.g.uE=function(a,b){_.Nj(this,3,a,b)};_.g.te=function(){return _.B(this,_.Df,5)};_.AJ=function(a){_.J.call(this,a)};_.K(_.AJ,_.J);_.AJ.prototype.getTitle=function(){return _.y(this,1)};_.AJ.prototype.setTitle=function(a){return _.w(this,1,a)};_.AJ.prototype.te=function(){return _.B(this,_.Df,2)};_.FJ=function(a){_.J.call(this,a)};_.K(_.FJ,_.J);
_.FJ.prototype.Ac=function(){return _.y(this,1)};_.FJ.prototype.te=function(){return _.B(this,_.Df,3)};_.HJ=function(a){_.J.call(this,a)};_.K(_.HJ,_.J);_.HJ.prototype.getId=function(){return _.y(this,1)};_.HJ.prototype.Ob=function(a){return _.w(this,1,a)};_.HJ.prototype.te=function(){return _.B(this,_.Df,3)};_.JJ=function(a){_.J.call(this,a)};_.K(_.JJ,_.J);_.JJ.prototype.te=function(){return _.B(this,_.Df,1)};_.$J=function(a){_.J.call(this,a)};_.K(_.$J,_.J);_.g=_.$J.prototype;
_.g.getId=function(){return _.y(this,1)};_.g.Ob=function(a){return _.w(this,1,a)};_.g.getParent=function(){return _.y(this,2)};_.g.tg=function(a){return _.w(this,2,a)};_.g.te=function(){return _.B(this,_.Df,3)};_.bK=function(a){_.J.call(this,a)};_.K(_.bK,_.J);_.g=_.bK.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Ob=function(a){return _.w(this,1,a)};_.g.getParent=function(){return _.y(this,2)};_.g.tg=function(a){return _.w(this,2,a)};_.g.te=function(){return _.B(this,_.Df,3)};
_.gK=function(a){_.J.call(this,a)};_.K(_.gK,_.J);_.gK.prototype.Ac=function(){return _.y(this,1)};_.gK.prototype.te=function(){return _.B(this,_.Df,4)};_.iK=function(a){_.J.call(this,a)};_.K(_.iK,_.J);_.g=_.iK.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Ob=function(a){return _.w(this,1,a)};_.g.getTitle=function(){return _.y(this,2)};_.g.setTitle=function(a){return _.w(this,2,a)};_.g.getState=function(){return _.y(this,3)};_.g.Ld=function(a){return _.w(this,3,a)};
_.g.jt=function(){return _.Dj(this,3)};_.g.te=function(){return _.B(this,_.Df,5)};Pwc=[2,3];_.yJ=function(a){_.J.call(this,a,-1,Pwc)};_.K(_.yJ,_.J);_.yJ.prototype.yc=function(){return _.y(this,1)};_.yJ.prototype.te=function(){return _.B(this,_.Df,4)};_.Qwc={1:"default",2:"teamDrive",3:"default,allTeamDrives"};Rwc=[3,4];_.TJ=function(a){_.J.call(this,a,-1,Rwc)};_.K(_.TJ,_.J);_.TJ.prototype.getType=function(){return _.y(this,1)};_.TJ.prototype.te=function(){return _.B(this,_.Df,2)};
_.WJ=function(a){_.J.call(this,a)};_.K(_.WJ,_.J);_.WJ.prototype.O=function(a){_.w(this,4,a)};Swc=[1];_.YJ=function(a){_.J.call(this,a,-1,Swc)};_.K(_.YJ,_.J);_.YJ.prototype.qn=function(){return _.ge(this,1)};_.Twc=function(a){_.J.call(this,a)};_.K(_.Twc,_.J);_.g=_.Twc.prototype;_.g.getKey=function(){return _.y(this,1)};_.g.ht=function(){return _.Dj(this,1)};_.g.Za=function(){return _.y(this,2)};_.g.Jb=function(a){return _.w(this,2,a)};_.g.Ui=function(){return _.qb(this,2)};
_.g.Pg=function(){return _.Dj(this,2)};_.g.Cf=function(){return _.y(this,3)};_.g.Yl=function(a){return _.w(this,3,a)};_.g.getType=function(){return _.y(this,4)};Uwc=[1];_.Vwc=function(a){_.J.call(this,a,-1,Uwc)};_.K(_.Vwc,_.J);_.Wwc=function(){var a=void 0===a?1E3:a;this.O=new _.tl;this.H=new _.tl;this.startTime=Date.now();this.V=!1;this.W=Math.ceil(a/2);this.ha=Math.floor(a/2)};_.Ywc=function(a){var b=a.O.sh();a.V&&b.push(Xwc("...","...","...","..."));_.ya(b,a.H.sh());return b};
_.Zwc=function(a){var b=[];a=_.Ywc(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")};_.Wwc.prototype.info=function(a,b){_.IK(this,a,b,"info")};_.Wwc.prototype.config=function(a,b){_.IK(this,a,b,"config")};_.Wwc.prototype.log=function(a,b,c){if(!swc){swc={};for(var d=0,e;e=_.ska[d];d++)swc[e.value]=e,swc[e.name]=e}_.IK(this,a,b,c)};
_.IK=function(a,b,c,d){a.H.$b()>=a.ha&&(a.V=!0,_.ul(a.H));var e=Date.now()-a.startTime;b=Xwc(b,c,d,1E3<e?(e/1E3).toFixed(1)+"s":e+"ms");a.O.$b()<a.W?a.O.enqueue(b):a.H.enqueue(b)};Xwc=function(a,b,c,d){var e={};return e.logName=a,e.message=b,e.level=c,e.totalTime=d,e};_.JK=function(a){a.supportsTeamDrives=!0};_.$wc=function(a){this.O=new Set;this.H=[].concat(_.Bd(_.ge(a,27)));this.initialize(a)};
_.$wc.prototype.initialize=function(a){var b=_.uuc(this.H,_.ge(a,28));if(0<b.length)throw Error("Ue`"+b.join(","));this.H.push(21);this.H.push(70);this.H.push(83);this.H.push(87);_.vI(_.JI(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));_.Ea(this.H);this.H.sort();vuc(this.H)};_.KK=function(a){return[].concat(_.Bd(a.H))};LK=function(a){return"'"+a.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"};
_.MK=function(a,b,c){0!==b.length&&(a.pI.length&&a.append(" "+(c||"and")+" "),a.append(b))};NK=function(a,b,c,d){if(c){var e=[];(void 0===d?0:d)&&e.push("not");e.push(LK(c));e.push("in");e.push(b);_.MK(a,e.join(" "))}};_.OK=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());_.MK(a,e.join(" "),d)}};axc=function(a,b,c){if(b.length){var d=[];d.push(c?"not (":"(");d.push(b.join(" or "));d.push(")");_.MK(a,d.join(""))}};
_.bxc=function(a){var b=new _.qtc;b.setTime(a);return b};cxc=function(a,b){b=_.ge(b,33)[0];if(null!=b){var c=[];c.push("teamDriveId");c.push("=");c.push(LK(b));_.MK(a,c.join(" "))}};_.dxc=function(a){a=_.Wj(a,_.AK,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(",")};_.exc=function(a){a=a.DB();return null==a||0==a.length?"":a.map(function(b){b=b.aR();if(0==b)throw Error("Ve");return _.Hqc[b]}).join(",")};
fxc=function(a,b){if(a.length){var c=new _.Xo;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(LK(d.Za()));_.MK(c,e.join(" "),"or")}return c.toString()}return""};gxc=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 LK(e.Za())});d.push(a.join(", "));return d.join(" ")}return""};
hxc=function(a){if(_.P(a,2))return"any";switch(a.Za()){case 0:return"mentions";case 1:return"suggestions";case 2:return"todos";default:return""}};ixc=function(a){switch(a){case 1:return"<=";case 2:return"<";case 3:return"=";case 4:return">";case 5:return">=";default:return""}};jxc=function(a,b,c){if(null!=_.y(c,2)){var d=ixc(_.y(c,1));c=LK(_.jwc(_.bxc(_.y(c,2)||0)));_.MK(a,[b,d,c].join(" "))}};
kxc=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""};
_.lxc=function(a){for(var b=new _.Xo,c=_.Wj(a,_.Jl,4),d=0;d<c.length;d++){var e=c[d],f=e.Za();if(f){var h=_.y(e,1),k=_.Q(e,3,!1),l=[];k&&1==h&&l.push("not");l.push("title");l.push(1==h?"contains":k?"!=":"=");l.push(LK(f));_.MK(b,l.join(" "))}}for(var p=_.Wj(a,_.Il,5),q=0;q<p.length;q++){var r=p[q],v=r.Za();if(v){var z=[];_.Q(r,2,!1)&&z.push("not");z.push("fullText");z.push("contains");z.push(LK(v));_.MK(b,z.join(" "))}}var A=_.Nl(a);if(A&&0!=A.length){for(var C=[],G=[],H=[],L=[],M=[],R=[],V=0;V<A.length;V++){var ha=
A[V];ha.Za()&&(1===_.Gj(ha,3,0)?_.P(ha,4)?G.push(ha):C.push(ha):_.P(ha,4)?_.Q(ha,2,!1)?R.push(ha):M.push(ha):_.Q(ha,2,!1)?L.push(ha):H.push(ha))}var ba=fxc(C,!1),oa=fxc(G,!0),qa=gxc(H,!1,!1),Ba=gxc(L,!0,!1),Ka=gxc(M,!1,!0),ib=gxc(R,!0,!0),Xa=new _.Xo;if(qa||Ka||ba||oa)_.MK(Xa,qa,"or"),_.MK(Xa,Ka,"or"),_.MK(Xa,ba,"or"),_.MK(Xa,oa,"or");Xa.pI.length&&_.MK(b,"("+Xa.toString()+")","and");var Hb=new _.Xo;if(Ba||ib)_.MK(Hb,Ba,"and"),_.MK(Hb,ib,"and");Hb.pI.length&&_.MK(b,"("+Hb.toString()+")","and")}for(var $b=
_.Wj(a,_.Gl,7),Bc=0;Bc<$b.length;Bc++)jxc(b,"modifiedDate",$b[Bc]);for(var td=_.Wj(a,_.Gl,8),Xd=0;Xd<td.length;Xd++)jxc(b,"lastViewedByMeDate",td[Xd]);_.OK(b,"trashed",a.Xh());_.OK(b,"explicitlyTrashed",_.P(a,17));_.OK(b,"starred",_.P(a,10));_.OK(b,"hidden",_.P(a,11));for(var Jd=_.Ol(a),qf=0;qf<Jd.length;qf++){var ud=Jd[qf];NK(b,"parents",ud.Za(),_.Q(ud,2,!1))}for(var Cb=_.Wj(a,_.rf,13),ne=0;ne<Cb.length;ne++){var Xg=Cb[ne];NK(b,"owners",Xg.Za(),_.Q(Xg,2,!1))}for(var se=_.Wj(a,_.rf,14),li=0;li<se.length;li++){var Wi=
se[li];NK(b,"writers",Wi.Za(),_.Q(Wi,2,!1))}for(var vf=_.Wj(a,_.rf,15),Ek=0;Ek<vf.length;Ek++){var Vh=vf[Ek];NK(b,"readers",Vh.Za(),_.Q(Vh,2,!1))}_.P(a,16)&&_.MK(b,"sharedWithMe");_.OK(b,"unparented",_.P(a,34));for(var Vf=_.Wj(a,_.Bl,35)||[],Yd=_.m(Vf),Yg=Yd.next();!Yg.done;Yg=Yd.next())NK(b,"ancestors",Yg.value.Za(),!1);for(var Nh=_.Wj(a,_.Bl,38)||[],yi=_.m(Nh),$k=yi.next();!$k.done;$k=yi.next())NK(b,"descendants",$k.value.Za(),!1);for(var Wn=_.Wj(a,_.Hl,37)||[],Am=_.m(Wn),Dh=Am.next();!Dh.done;Dh=
Am.next())NK(b,"folderFeatures",Dh.value.Za(),!1);for(var al=_.ge(a,39),jk=_.m(al),Zg=jk.next();!Zg.done;Zg=jk.next()){var Pj=Zg.value,sj=[];sj.push("templateData.description");sj.push("contains");sj.push(LK(Pj));_.MK(b,sj.join(" "))}for(var kk=_.ge(a,40),Wh=0;Wh<kk.length;Wh++){var Qj=[];0==Wh&&Qj.push("(");Qj.push(LK(kk[Wh]));Qj.push("in");Qj.push("templateData.categories");Wh==kk.length-1&&Qj.push(")");_.MK(b,Qj.join(" "),0==Wh?"and":"or")}var Rj=_.y(a,41);if(null!=Rj){var tj=[];tj.push("templateData.galleryState");
tj.push("=");tj.push(LK(_.stc[Rj]||""));_.MK(b,tj.join(" "))}var lk=_.y(a,42);if(null!=lk){var bi=[];bi.push("visibility");bi.push("=");bi.push(LK(kxc(lk)));_.MK(b,bi.join(" "))}for(var Bm=_.Wj(a,_.Al,44),Sj=0;Sj<Bm.length;++Sj){var mk=Bm[Sj];NK(b,"actionItems",hxc(mk),_.Q(mk,3,!1))}if(_.Dj(a,50)){var Cl=[];Cl.push("pairedDocType");var Tj=_.Q(a,50,!1)?"!=":"=";Cl.push(Tj);Cl.push(LK("NONE"));_.MK(b,Cl.join(" "))}NK(b,"workspaceIds",a.Qp(),!1);for(var wn=_.Wj(a,_.El,57),bl=0;bl<wn.length;bl++){var cl=
[];0==bl&&cl.push("(");cl.push(LK(wn[bl].Za()));cl.push("in");cl.push("approvals");bl==wn.length-1&&cl.push(")");_.MK(b,cl.join(" "),0==bl?"and":"or")}if(_.Dj(a,58)){var Af=a.Kq(),Uj=Af.Za(),em=_.Q(Af,2,!1);if(Uj){var Dl=[];em&&Dl.push("not");Dl.push("creator");Dl.push("=");Dl.push(LK(Uj));_.MK(b,Dl.join(" "))}}var fm=_.B(a,_.Ioa,59);if(fm)for(var qc=_.m(_.Wj(fm,_.Foa,1)),Vj=qc.next();!Vj.done;Vj=qc.next()){var Oh=Vj.value;NK(b,"categoryMetadata",Oh.Pm());for(var nk=_.m(Oh.Bk()),Ph=nk.next();!Ph.done;Ph=
nk.next()){var mi=Ph.value,eg=_.y(mi,1),Fk=_.sb(mi,_.Fl);if(10==Fk){_.ek(mi,_.woa,10,_.Fl);var Hp=_.P(mi,15);(void 0===Hp?0:Hp)?_.MK(b,eg+" is null"):_.MK(b,"not ("+eg+" is null)")}else{var Qh=new _.Xo,Eh=void 0;switch(Fk){case 3:Eh=_.ek(mi,dwc,3,_.Fl);for(var xn=_.m(Eh.Fi()),uj=xn.next();!uj.done;uj=xn.next())_.OK(Qh,eg,uj.value,"or");break;case 14:for(var yn=Eh=_.ek(mi,_.poa,14,_.Fl),gm=new Map([[1,"="],[2,">"],[3,"<"]]),Gk=_.m(yn.Fi()),Cm=Gk.next();!Cm.done;Cm=Gk.next()){var Po=Cm.value,Ip=gm.get(_.y(yn,
2));if(!Ip)throw Error("We");var rr=[eg,Ip,LK(Po.getYear()+"-"+Po.getMonth()+"-"+Po.getDay())];_.MK(Qh,rr.join(" "),"or")}break;case 8:for(var Nm=Eh=_.ek(mi,_.voa,8,_.Fl),lm=new Map([[1,"="],[2,">"],[3,"<"]]),tk=_.m(Nm.Fi()),dp=tk.next();!dp.done;dp=tk.next()){var Up=dp.value,Kq=lm.get(_.y(Nm,2));if(!Kq)throw Error("We");_.MK(Qh,[eg,Kq,Up].join(" "),"or")}break;case 9:for(var Nr=Eh=_.ek(mi,fwc,9,_.Fl),ku=new Map([[1,"in"]]),Or=_.m(Nr.Fi()),Zs=Or.next();!Zs.done;Zs=Or.next()){var qB=Zs.value,rB=ku.get(_.y(Nr,
2));if(!rB)throw Error("We");_.MK(Qh,[qB,rB,eg].join(" "),"or")}break;case 6:for(var Py=Eh=_.ek(mi,_.Aoa,6,_.Fl),lu=new Map([[1,"="]]),Lq=_.m(Py.Fi()),Mq=Lq.next();!Mq.done;Mq=Lq.next()){var sB=Mq.value,ND=lu.get(_.y(Py,2));if(!ND)throw Error("We");_.MK(Qh,[eg,ND,LK(sB)].join(" "),"or")}break;case 7:for(var px=Eh=_.ek(mi,_.yoa,7,_.Fl),Qy=new Map([[1,"in"]]),qx=_.m(px.Fi()),rx=qx.next();!rx.done;rx=qx.next()){var sx=rx.value,$s=Qy.get(_.y(px,2));if(!$s)throw Error("We");_.MK(Qh,[LK(sx),$s,eg].join(" "),
"or")}break;case 4:for(var at=Eh=_.ek(mi,_.Coa,4,_.Fl),il=new Map([[1,"="],[2,"contains"],[3,"starts with"]]),Pr=_.m(at.Fi()),Pl=Pr.next();!Pl.done;Pl=Pr.next()){var tB=Pl.value,OD=il.get(_.y(at,2));if(!OD)throw Error("We");_.MK(Qh,[eg,OD,LK(tB)].join(" "),"or")}break;case 5:for(var Ry=Eh=_.ek(mi,hwc,5,_.Fl),Li=new Map([[1,"in"]]),Sy=_.m(Ry.Fi()),Nq=Sy.next();!Nq.done;Nq=Sy.next()){var Vp=Nq.value,HG=Li.get(_.y(Ry,2));if(!HG)throw Error("We");_.MK(Qh,[LK(Vp),HG,eg].join(" "),"or")}break;case 12:for(var W7=
Eh=_.ek(mi,_.toa,12,_.Fl),cK=new Map([[1,"="]]),Kg=_.m(W7.Fi()),fT=Kg.next();!fT.done;fT=Kg.next()){var tx=fT.value,mm=cK.get(_.y(W7,2));if(!mm)throw Error("We");_.MK(Qh,[eg,mm,LK(tx)].join(" "),"or")}break;case 11:for(var uB=Eh=_.ek(mi,_.roa,11,_.Fl),gT=new Map([[1,"in"]]),uO=_.m(uB.Fi()),mo=uO.next();!mo.done;mo=uO.next()){var g_=mo.value,vO=gT.get(_.y(uB,2));if(!vO)throw Error("We");_.MK(Qh,[LK(g_),vO,eg].join(" "),"or")}}_.P(mi,15)?_.MK(b,"not ("+Qh+")"):_.MK(b,1<Eh.Fi().length?"("+Qh+")":""+
Qh)}}}null!=_.P(a,60)&&_.OK(b,"linkShareMetadata.securityUpdateEligible",_.P(a,60));var mu=_.P(a,65);if(null!=mu){var PD=[];PD.push("clientEncryptionDetails.encryptionState");PD.push("=");PD.push(LK(mu?"encrypted":"unencrypted"));_.MK(b,PD.join(" "))}var Ty=_.Wj(a,_.rf,68);if(Ty.length){for(var hT=[],X7=[],h_=_.m(Ty),Uy=h_.next();!Uy.done;Uy=h_.next()){var ux=Uy.value,dK="sharedFrom = "+LK(ux.Za());_.Q(ux,2,!1)?X7.push(dK):hT.push(dK)}axc(b,hT,!1);axc(b,X7,!0)}var Y7=_.Wj(a,_.rf,67);if(Y7.length){for(var iT=
[],wO=[],i_=_.m(Y7),vB=i_.next();!vB.done;vB=i_.next()){var j_=vB.value,k_="sharedTo = "+LK(j_.Za());_.Q(j_,2,!1)?wO.push(k_):iT.push(k_)}axc(b,iT,!1);axc(b,wO,!0)}null!=_.P(a,69)&&_.OK(b,"linkShareMetadata.securityUpdateEnabled",_.P(a,69));null!=_.P(a,72)&&_.OK(b,"canAcceptOwnership",_.P(a,72));if(_.P(a,73)){var l_=(new _.tf).Jb("application/vnd.google-apps.shortcut");_.OK(b,"impactedByMultiparentingMigration",!0);_.MK(b,gxc([l_],!1,!1))}1==_.BK(a)&&cxc(b,a);return b.toString()};
_.mxc=function(a){var b=new _.Xo(_.lxc(a));_.Q(a,74,!1)?_.MK(b,"isQuickAccessForSharedFilesRequest"):_.PJ(a)?_.MK(b,"isQuickAccessRequest"):_.QJ(a)?_.MK(b,"isPeoplePredictRequest"):_.RJ(a)&&_.MK(b,"isDrivePriorityRequest");var c=a.wc();if(c){var d=[];d.push("sortBy");d.push(_.ntc[c.getType()]);d.push(_.utc[c.nf()]);_.P(c,3)&&d.push("foldersFirst");_.MK(b,d.join(" "))}_.OK(b,"domainSearch",_.P(a,18));_.OK(b,"offline",_.P(a,19));_.Wj(a,_.AK,25).length&&(c=[],c.push("sources"),c.push("contains"),c.push(_.dxc(a)),
_.MK(b,c.join(" ")));a.DB().length&&(c=[],c.push("spaces"),c.push("contains"),c.push(_.exc(a)),_.MK(b,c.join(" ")));if(c=_.BK(a))d=[],d.push("corpora"),d.push("="),d.push(LK(_.Qwc[c])),_.MK(b,d.join(" "));_.Q(a,66,!0)||_.OK(b,"includeItemsFromAllDrives",_.Q(a,66,!0));1!=_.BK(a)&&cxc(b,a);_.Q(a,48,!1)&&_.MK(b,"cachedOnly");return b.toString()};
_.rK=function(a){if(a instanceof _.ZI)a=a.ud();else if(!a)return!1;return a instanceof _.kA||a instanceof _.EG||"undefined"!=typeof _.PK&&a instanceof _.PK||a instanceof _.of&&(_.PJ(a)||_.QJ(a)||_.RJ(a))};nxc=function(){_.Uo.call(this);this.V=this.O=null;this.ka=!1;this.ha=null};_.K(nxc,_.Uo);_.oxc=function(a){!a.ka&&a.V&&(a.V(),a.ka=!0)};pxc=function(a,b){a.V||(a.V=b)};nxc.prototype.Aj=function(){_.oxc(this);(0,this.ha)()};qxc=function(a,b){a.ha||(a.ha=b)};
_.QK=function(a){if(!a.O){a.O=new Hwc;var b=_.Wo(a);_.I(b,56,a.O)}return a.O};nxc.prototype.getState=function(){var a=_.QK(this).getState();a||(a=new xwc,_.QK(this).Ld(a));return a};var rxc=function(a,b){var c=new vwc;_.w(c,1,b);a=_.Wo(a);_.I(a,12,c)};nxc.prototype.ma=function(){var a=_.B(_.QK(this),zwc,4);if(!a){a=new zwc;var b=_.QK(this);_.I(b,4,a)}return a};
var sxc=function(a){var b=_.B(_.QK(a),Awc,8);b||(b=new Awc,a=_.QK(a),_.I(a,8,b));return b},txc=function(a){var b=_.B(_.QK(a),Fwc,19);b||(b=new Fwc,a=_.QK(a),_.I(a,19,b));return b},uxc=function(a){_.ui.call(this,"Bb");this.H=a};_.K(uxc,_.ui);uxc.prototype.Se=function(){return this.H};_.vxc=function(a,b){a=void 0===a?1:a;b=void 0===b?!1:b;_.Ei.call(this);this.H=!1;this.connectionState=b?1:a;this.O=b?!0:1===a;this.V=b};_.K(_.vxc,_.Ei);_.g=_.vxc.prototype;
_.g.isConnected=function(){return!this.H&&1===this.connectionState};_.g.Tk=function(){return 1===this.connectionState||2===this.connectionState};_.g.Se=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?_.rC.iU:_.rC.Hga;else 1===a?(b=_.rC.CL,this.O=!0):3===a&&(b=_.rC.hU);if(b)return b=new Nwc(b),this.connectionState=a,this.H=!1,this.dispatchEvent(b),!0}return!1};
var wxc=function(a,b){this.userId=a;this.H=b;this.db=null},yxc=function(a,b){a.H.info("drive.ds.sync.logging.ImpressionPersister","Persisting offline impressions.");return xxc(a,function(c){return c.count().then(function(d){return 1E3>d?a.add(c,b):a.handleError(Error("Ze"))},function(d){return a.handleError(d)})},"readwrite")};wxc.prototype.add=function(a,b){var c=this,d={};return a.add((d.userId=this.userId,d.rAb=b.toJSON(),d)).then(null,function(e){c.handleError(e)})};
var zxc=function(a){return new _.Yh(function(b){var c=new Map;xxc(a,function(d){return kwc(d.getIndex("userId"),a.userId).then(function(e){e=new Map(e.map(function(p){return[p,d.get(p)]}));for(var f={},h=_.m(e),k=h.next();!k.done;f={Kqa:f.Kqa},k=h.next()){var l=_.m(k.value);k=l.next().value;l=l.next().value;f.Kqa=k;l.then(function(p){return function(q){q&&c.set(p.Kqa,new _.oAa(q.rAb))}}(f))}return _.RI([].concat(_.Bd(e.values()))).then(function(){return b(c)})})})})},Axc=function(a,b){return xxc(a,
function(c){return c.remove(b)},"readwrite")},xxc=function(a,b,c){c=void 0===c?"readonly":c;return Bxc(a).then(function(d){try{var e=_.vrc(d,["OfflineImpressions"],c).objectStore("OfflineImpressions");return b(e)}catch(f){return a.handleError(f?_.rJ(f):void 0)}},function(d){return a.handleError(d)})},Bxc=function(a){return a.db?_.Zh(a.db):_.xrc("GoogleDriveDsImpressions",2,function(b,c){c.H.objectStoreNames.contains("OfflineImpressions")&&_.lwc(c,"OfflineImpressions");b=_.urc(c,"OfflineImpressions",
{autoIncrement:!0});try{b.H.createIndex("userId","userId",void 0)}catch(d){throw _.DI(d,"creating new index userId with key path userId");}},function(){return a.handleError(Error("$e"))}).then(function(b){return a.db=b},function(b){return _.$h(_.rJ(b))})};wxc.prototype.handleError=function(a){a||(a=Error("af"));_.IK(this.H,"drive.ds.sync.logging.ImpressionPersister",a.message,"severe");return _.Zh()};
_.Cxc=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;_.Ei.call(this);this.V=b;this.O=null;this.H=b?!1:a};_.K(_.Cxc,_.Ei);_.Cxc.prototype.Se=function(){return this.H};_.Cxc.prototype.Pl=function(a){var b=this.H!==a;!this.V&&b&&(this.H=a,this.dispatchEvent(new uxc(a)))};_.Cxc.prototype.cz=function(a){this.O=a};
var Exc=function(a,b,c,d,e,f){_.Ei.call(this);var h=this;this.V=a;this.H=b;this.connectionState=c;this.O=d;this.Ib=new _.Ze(this);this.Ib.listen(b,"Bb",function(k){k.Se()||Dxc(h)});this.Ib.listen(c,[_.rC.CL,_.rC.iU],function(){return void Dxc(h)});this.W=e;f.then(function(){return Dxc(h)})};_.K(Exc,_.Ei);Exc.prototype.GA=function(a){return(this.H.Se()||this.connectionState.Se())&&this.H.O?yxc(this.O,a):this.V.GA(a)};
var Dxc=function(a){return a.H.O?zxc(a.O).then(function(b){b.forEach(function(c,d){a.V.GA(c).then(function(){return Fxc(a,d)},function(){a.log("Unable to send offline impression batch "+d+".")})})}):Promise.resolve()},Fxc=function(a,b){a.log("Sent offline impression batch "+b+".");a.dispatchEvent("Cb");return Axc(a.O,b).then(function(){a.log("Removed offline impression batch "+b+".")},function(){a.log("Unable to remove offline impression batch "+b+".")})};
Exc.prototype.log=function(a){this.W.info("drive.ds.sync.logging.ClearcutOfflineTransport",a)};var Gxc=function(){};Gxc.prototype.HQ=function(){return new nxc};var Hxc=function(){this.H=new Iwc};Hxc.prototype.O=function(a){_.I(a,13,this.H)};Hxc.prototype.setEnvironment=function(a){this.H.setEnvironment(a);return this};
var Jxc=function(a,b,c,d){this.ha=b;this.connectionState=c;this.kw=d;this.O=this.H=this.V=null;this.client=_.RK(_.Dtc,_.DK(a));this.ka=_.y(a,94);this.ma=_.RK(_.Htc,_.Gj(a.ig(),8,0));this.swa=_.RK(_.Etc,_.Gj(a.ig(),9,2));this.ta=_.Q(a,10,!1);this.uu=_.vI(_.JI(a));this.OBa=_.EK(a);this.W=Ixc(a);this.buildLabel=a.Xi()};Jxc.prototype.Lj=function(){return this.client};
Ixc=function(a){var b=[].concat(_.Bd(_.Atc.keys())),c=[].concat(_.Bd(_.Btc.keys())),d=_.qK(a);return b.filter(function(e){return _.Atc.get(e)(a)}).concat(c.filter(function(e){return d&&_.Btc.get(e)(d)}))};_.RK=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};Jxc.prototype.Zn=function(a){return null==a?0:a?2:1};var Kxc=function(a){if(a.O)return a.O.H("aU7Ts")};
Jxc.prototype.Bb=function(a){return a instanceof _.xB||"undefined"!=typeof _.SK&&a instanceof _.SK||"undefined"!=typeof _.TK&&a instanceof _.TK||"undefined"!=typeof _.UK&&a instanceof _.UK?a.Bb():"undefined"!=typeof _.VK&&a instanceof _.VK||"undefined"!=typeof _.WK&&a instanceof _.WK||"undefined"!=typeof _.XK&&a instanceof _.XK||"undefined"!=typeof _.YK&&a instanceof _.YK||"undefined"!=typeof _.ZK&&a instanceof _.ZK?a.response?a.response.Bb():null:null};Jxc.prototype.Xi=function(){return this.buildLabel};
var Lxc=function(a){return a.ha.Se()||a.connectionState.Se()?2:1};Jxc.prototype.getEnvironment=function(){return this.kw};Mxc=function(a,b){this.H=a;var c=new _.Nya;_.Oya(c,b.W);a=this.H.HL();var d=_.etc(a);_.I(d,10,c);(c=b.Xi())&&_.dtc(a,c);this.H.HZ();this.O=b};
_.Nxc=function(a,b,c){var d=_.Vo(a.H.OF(b,c),_.vtc);rxc(d,Lxc(a.O));b=Kxc(a.O);"boolean"===typeof b&&ywc(d.getState(),b);1===c&&pxc(d,function(){return void a.H.jw(d)});qxc(d,function(){var e;var f=null===(e=a.O.V)||void 0===e?void 0:e.Ed();e=d.getState();_.w(e,1,f);var h,k;f=null===(k=null===(h=a.O.H)||void 0===h?void 0:h.H)||void 0===k?void 0:k.Ed();h=d.getState();_.w(h,2,f);var l,p;h=null===(p=null===(l=a.O.H)||void 0===l?void 0:l.O)||void 0===p?void 0:p.Ed();l=d.getState();_.w(l,7,h);a.H.Yp(d)});
return d};Oxc=function(a){var b=new _.Cza,c=new Hxc,d=a.Lj();_.w(c.H,1,d);_.w(c.H,8,a.ka);_.w(c.H,3,a.ma);_.w(c.H,4,a.swa);_.w(c.H,5,a.ta);_.w(c.H,6,a.uu);_.w(c.H,7,a.OBa);a=c.setEnvironment(a.getEnvironment());_.isc(b,_.xtc,a);_.Yo(b,_.vtc,new Gxc);return b};
Pxc=function(a,b,c,d,e,f,h,k){k=void 0===k?!1:k;var l=new _.OI(906,b,void 0,_.Ktc());l.ha=!1;var p=new _.jsc(l);b=new Date;l=_.jtc(_.itc(_.htc(mwc(),new _.ksc(l)),Oxc(c)),109).setSessionId(b.getTime()+"_"+_.Wg());if(k){a=new Exc(p,d,e,new wxc(a,f),f,h);_.gtc(l,a);d=l.build();_.ctc(d.HL(),1E3*b.getTime());var q=new Mxc(d,c);(new _.Ze).listen(a,"Cb",function(){_.Nxc(q,106008,0).Aj()});return q}_.gtc(l,p);a=l.build();_.ctc(a.HL(),1E3*b.getTime());return new Mxc(a,c)};
Qxc=function(a,b){this.V=a;this.W=b};Qxc.prototype.O=function(a,b){this.V&&_.Rxc(this)&&(a=_.Nxc(this.V,a,0),b&&_.zqc(a,b),a.Aj())};_.$K=function(a,b){if(a.V&&_.Rxc(a)){a=_.Nxc(a.V,106018,0);var c=_.B(_.QK(a),Ewc,15);if(!c){c=new Ewc;var d=_.QK(a);_.I(d,15,c)}c=_.w(c,1,1);_.w(c,2,b);a.Aj()}};Qxc.prototype.H=function(a,b){return this.V&&_.Rxc(this)?(a=_.Nxc(this.V,a,1),b&&_.zqc(a,b),a):null};_.Rxc=function(a){return!(!a.V||!a.V.H.qP())};
_.Sxc=function(a,b,c,d,e,f){var h=_.P(a,59),k=_.gJ(_.JI(a)).toString(),l=_.CK(_.JI(a));f=new Jxc(a,b,c,f);a=h?Pxc(l,k,f,b,c,d,e,_.Q(a,17,!1)):null;return new Qxc(a,f)};_.LJ=function(a){_.J.call(this,a)};_.K(_.LJ,_.J);_.Txc=function(a){_.J.call(this,a)};_.K(_.Txc,_.J);_.Txc.prototype.getId=function(){return _.y(this,1)};_.Txc.prototype.Ob=function(a){return _.w(this,1,a)};_.Txc.prototype.te=function(){return _.B(this,_.Df,2)};_.UJ=function(a){_.J.call(this,a)};_.K(_.UJ,_.J);
_.UJ.prototype.$n=function(){return _.y(this,2)};_.UJ.prototype.ud=function(){return _.B(this,_.Txc,3)};_.KJ=function(a){_.J.call(this,a)};_.K(_.KJ,_.J);_.KJ.prototype.ud=function(){return _.B(this,_.JJ,1)};_.KJ.prototype.Kca=function(a){return _.w(this,2,a)};_.IJ=function(a){_.J.call(this,a)};_.K(_.IJ,_.J);_.IJ.prototype.getId=function(){return _.y(this,1)};_.IJ.prototype.Ob=function(a){return _.w(this,1,a)};_.Uxc=function(a,b){return _.w(a,2,b)};_.XJ=function(a){_.J.call(this,a)};_.K(_.XJ,_.J);
_.XJ.prototype.ud=function(){return _.B(this,_.IJ,1)};Vxc=[2];_.fK=function(a){_.J.call(this,a,-1,Vxc)};_.K(_.fK,_.J);_.fK.prototype.Ac=function(){return _.y(this,1)};_.fK.prototype.AV=function(){return _.Wj(this,_.CG,2)};_.fK.prototype.te=function(){return _.B(this,_.Df,3)};_.Wxc=function(a){_.J.call(this,a)};_.K(_.Wxc,_.J);_.Wxc.prototype.Ck=function(){return _.y(this,1)};_.Xxc=function(a){var b=new _.Wxc;return _.w(b,1,a)};Yxc=[1];_.Cuc=function(a){_.J.call(this,a,-1,Yxc)};_.K(_.Cuc,_.J);
_.Zxc=function(a,b){this.O=b;this.H=new Map;this.jla(_.Wj(a,_.Kl,91))};_.Zxc.prototype.jla=function(a){a=_.m(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;b=c.getId();c=_.y(c,2);if(!b||!c)break;var d=_.$xc(this,b);if(d){d!==c&&Buc(b);break}this.H.set(b,c)}};cvc=function(a,b){return[].concat(_.Bd(new Set(b))).map(function(c){var d=(new _.Kl).Ob(c);a.H.has(c)?_.Ll(d,a.H.get(c)):a.O&&(c=a.O.H(c))&&_.Ll(d,_.ql(c));return d}).filter(function(c){return _.Dj(c,2)})};
_.$xc=function(a,b){return a.H.has(b)?String(a.H.get(b)):a.O&&(a=a.O.H(b))&&_.Dj(a,140)?_.ql(a):null};_.Fuc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};_.Luc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};_.Ruc=function(){this.H=_.Ef(new _.Df,312)};_.ayc=function(a,b){_.EI.call(this,a?a:500,b?b:6E5)};_.K(_.ayc,_.EI);_.aL=function(a,b,c,d){this.state=a;this.ma=b;this.ka=c;this.eg=d;this.ha=this.O=this.timeout=this.W=null;this.V=!1;this.H=null};
_.aL.prototype.getState=function(){return this.state};_.aL.prototype.mM=function(a){var b=this;if(this.W)return this.W;var c=_.ci();this.W=c.promise.then(function(){return _.Xxc(1)},function(d){d=_.SB(d).Tg;var e=0;2===d.Kp()?e=3:_.Jtc(d)&&(e=2);return _.Xxc(e)});a&&this.W.then(function(d){3===d.Ck()&&_.$K(b.eg,186469046)});this.H&&(a=_.y(txc(this.H),4)||0,Gwc(txc(this.H),a+1));setTimeout(function(){b.W=null},5E3);byc(this,c);return this.W};_.eyc=function(a,b){cyc(a,3)&&_.dyc(a,b)};
_.aL.prototype.reset=function(){this.O=null;fyc(this)};fyc=function(a){a.timeout&&(clearTimeout(a.timeout),a.timeout=null)};_.dyc=function(a,b){if(!a.O&&!a.V){a.H=a.eg.H(106025);if(a.H){var c=txc(a.H);var d=!(!a.state.isConnected()&&a.state.Tk());c=_.w(c,1,d);c=_.w(c,2,a.state.O);_.w(c,5,!!b)}a.O=new _.ayc(5E3,6E4);gyc(a)}};gyc=function(a){fyc(a);byc(a);a.O&&(a.timeout=setTimeout(function(){return void gyc(a)},a.O.Za()),_.FI(a.O))};
byc=function(a,b){_.di((a.ha?a.ha():_.Zh()).then(null,function(){return null}),function(){if(a.H){var c=_.y(txc(a.H),3)||0,d=txc(a.H);_.w(d,3,c+1)}hyc(a,b)})};hyc=function(a,b){a.log("Checking connection state.");var c=a.ma.then(function(d){return d.Qe(new _.Ruc)}).then(null,function(d){d=_.SB(d);_.Jtc(d.Tg)&&cyc(a,2);return _.$h(d)});b?b.resolve(c):c.then(null,function(){return null})};_.aL.prototype.log=function(a){this.ka.info("drive.ds.sync.connection.StateManager",a)};
cyc=function(a,b){return!a.V&&a.state.update(b)?(a.log("Connection status: "+_.Ntc.get(b)),!0):!1};_.iyc=function(){this.H={}};jyc=function(a,b,c){if(a.H[b])throw Error("bf");a.H[b]=c};_.iyc.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)}};kyc=function(a,b){for(var c=0;c<b.length;c++)delete a.H[b[c]]};
_.lyc=function(a,b){this.H=a;this.V=b;this.O=_.Ptc[_.Gj(a.ig(),8,0)];this.W=_.Ptc[_.Gj(a.ig(),51,5)];this.nonce=_.Wg()};
_.lyc.prototype.lc=function(a,b){if(b.CN)myc(this,a,b),nyc(this,a,b);else if(11===a.an){if(b.hKb){var c=b.CD||_.D(this.H.ig(),37,"");_.vj(a.uri,"key",c)}myc(this,a,b);oyc(this,a,b)}else switch(a.uri=pyc(this,a.an,a.uri),a.an){case 1:oyc(this,a,b);myc(this,a,b);break;case 0:b.uu||_.vI(_.JI(this.H))||_.Q(this.H,83,!1)&&_.vj(a.uri,"dsNonce",this.nonce);oyc(this,a,b);nyc(this,a,b);myc(this,a,b);break;case 2:case 3:case 4:case 5:oyc(this,a,b);nyc(this,a,b);myc(this,a,b);break;case 8:case 9:case 10:case 13:case 12:case 7:oyc(this,
a,b);nyc(this,a,b);break;default:throw Error("cf`"+a.an);}};qyc=function(a,b){var c=pyc(a,b,new _.lj);if(!c.H)throw Error("ef");return _.oj(_.nj(_.mj(new _.lj,c.O),c.H),c.W).Li(_.Qtc.has(b)?"/batch"+a.O:"/batch")};
pyc=function(a,b,c){var d=_.y(a.H.ig(),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=_.D(a.H.ig(),62,"");break;case 8:a=_.y(a.H.ig(),53);break;case 9:a=_.y(a.H.ig(),56);break;case 10:a=_.y(a.H.ig(),22);break;case 13:a=_.y(a.H.ig(),55);break;case 12:a=_.y(a.H.ig(),43);break;default:throw Error("cf`"+b);}a&&a.endsWith("/")&&(a=a.slice(0,-1));c=c.toString();if(!c)return new _.lj(a);
_.Ud(c,"/")&&(c=c.slice(1));return new _.lj(a+"/"+c)};oyc=function(a,b,c){a=_.JI(a.H);c.uu||_.vI(a)||(c=[{key:"u",value:_.CK(a)}],b.headers.authorization=_.gsc(c)||"",c=_.gJ(a),0<=c&&(b.headers["x-goog-authuser"]=String(c)))};
myc=function(a,b,c){var d=_.JI(a.H),e=a.H.ig(),f=c.b6a||!!_.y(e,13);c=c.c6a||_.Q(e,14,!1);var h=11===b.an;f&&((f=_.y(e,13))&&_.Ud(f,"email:")?_.vj(b.uri,"trace",f):f&&"trace:true"===f?_.vj(b.uri,"$trace","true"):f?_.vj(b.uri,"trace","token:"+f):_.vj(b.uri,"trace","email:"+d.getEmail().replace(/(@|\+).*$/,"")),h||_.vj(b.uri,"trace.deb","genoa:3:all,driveService:3:all"+(2===_.Gj(e,9,2)?"":",cospel:3:all,DriveService:3:all")));c&&!h&&a.V&&a.V.O(b.headers,b.method,b.uri.toString())};
nyc=function(a,b,c){c.uu||_.vI(_.JI(a.H))?_.vj(b.uri,"key",_.D(a.H.ig(),36,"")):(a=c.CD||_.D(a.H.ig(),37,""),_.vj(b.uri,"key",a))};_.Euc=function(a,b,c){this.request=a;this.pageSize=b;this.pageToken=c};_.Guc=function(a){this.request=a;this.requestId=_.Wg()};_.Ouc=function(a,b,c,d){this.request=a;this.file=b;this.hQ=void 0===c?null:c;this.metadata=d};Muc=function(a,b){this.request=a;this.metadata=b};
Nuc=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};_.jK=function(a,b,c,d){this.request=a;this.file=b;this.hQ=void 0===c?null:c;this.metadata=d};Wuc=[_.uJ,_.wJ,_.vJ,_.yJ,_.xJ,_.zJ,_.AJ,_.DJ,_.FJ,_.GJ,_.HJ,_.JJ,_.KJ,_.WJ,_.$J,_.bK,_.fK,_.hJ,_.gK,_.hK,_.iK,_.Guc,_.jK];ryc=[_.jJ];Xuc=[_.DG,_.Luc];Yuc=[_.UJ,_.KI,_.WD,_.kK];Zuc=[_.ZI,_.LJ,_.zA,_.jJ,_.Fuc];$uc=[_.kK,_.FG];avc=[_.IJ,_.Cuc,_.TJ,_.XJ,_.YJ,_.Euc,_.jK,Nuc,Muc];
syc=function(a){return a instanceof _.ZI||a instanceof _.kK||"undefined"!=typeof _.bL&&a instanceof _.bL||a instanceof _.hK||a instanceof _.GJ||a instanceof _.zJ||a instanceof _.DJ||a instanceof _.hJ&&_.pK(a)};_.tyc=function(a,b){this.H=b;this.W3={};this.jj=new twc;b=_.tJ({fields:_.ge(a,28),Cq:_.vI(_.JI(a))});this.Jb("SecondaryFields",b);this.Jb("SdkBackfillEnabled",!!_.Q(a,45,!1)+" (Include corpus cache: "+!!_.Q(a,46,!1)+")")};_.tyc.prototype.Jb=function(a,b){this.W3[a]=uyc(a,b)};
var vyc=function(a,b){var c=a.W3[b];c||(c=uyc(b,0,2),a.W3[b]=c);c.Jb(String(Number(c.Za())+1))};_.tyc.prototype.Sz=function(a){var b=_.Ra(this.W3);this.H&&b.push(uyc("CacheSize",this.H.Ed()));b.push(uyc("InitialViewDataLoaded",a));a=new _.Vwc;_.Lj(a,1,b);return _.ji(a)};uyc=function(a,b,c){var d=new _.Twc;_.w(d,1,a);_.w(d,4,c||1);d.Jb(String(b));d.Yl(_.Utc.get(a));return d};
_.wyc=function(a,b,c){var d=new _.ltc;_.w(d,2,"Pending...");b instanceof _.ZI?_.Xj(d,3,_.$I,b):b instanceof _.kK?_.Xj(d,4,_.$I,b):"undefined"!=typeof _.bL&&b instanceof _.bL?_.Xj(d,5,_.$I,b):b instanceof _.hK?_.Xj(d,6,_.$I,b):b instanceof _.GJ?_.Xj(d,7,_.$I,b):b instanceof _.zJ?_.Xj(d,8,_.$I,b):b instanceof _.DJ?_.Xj(d,9,_.$I,b):b instanceof _.hJ&&_.Xj(d,10,_.$I,b);var e=Tuc(b),f=[];if(b instanceof _.vJ)nK(f,"ID",b.getId()),nK(f,"Parent ID",b.Fk());else if(b instanceof _.GJ)nK(f,"TD ID",b.getId());
else if(b instanceof _.ZI)b=_.mxc(b.ud()),nK(f,"Query",b);else if(b instanceof _.kK)nK(f,"Query","All");else if(b instanceof _.hK)nK(f,"TD ID",b.getId()),nK(f,"Title",b.getTitle()),nK(f,"Theme Image ID",_.y(b,3));else if(b instanceof _.zJ)nK(f,"MimeType",b.getMimeType()),nK(f,"Title",b.getTitle()),nK(f,"Parents",_.ge(b,3)),nK(f,"Convert",_.P(b,8)),nK(f,"Request ID",b.hj()),nK(f,"Parent Request IDs",_.ge(b,10)),nK(f,"Revision Item ID",_.y(b,12)),nK(f,"Pinned",_.P(b,8));else if(b instanceof _.AJ)nK(f,
"Title",b.getTitle());else if(b instanceof _.DJ)nK(f,"ID",b.getId());else if(b instanceof _.HJ)nK(f,"WS ID",b.getId());else if(b instanceof _.WJ)nK(f,"Source ID",_.y(b,1)),nK(f,"Destination Parent ID",_.y(b,2)),nK(f,"validation token",_.y(b,4));else if(b instanceof _.hJ){if(nK(f,"ID",b.getId()),nK(f,"Title",b.getTitle()),nK(f,"Description",b.Cf()),nK(f,"Starred",_.P(b,4)),nK(f,"Trashed",b.Xh()),nK(f,"MimeType",b.getMimeType()),nK(f,"Parents",_.ge(b,8)),nK(f,"Parents to add",_.ge(b,9)),nK(f,"Parents to remove",
_.ge(b,10)),nK(f,"Restricted",_.P(b,11)),nK(f,"Folder Color",b.Zi()),nK(f,"Update Last Viewed",_.P(b,15)),nK(f,"Subscribed",_.P(b,16)),nK(f,"Available Offline",_.P(b,18)),nK(f,"Wksp to add",_.ge(b,31)),nK(f,"Wksp to remove",_.ge(b,32)),b=_.B(b,_.dl,25))nK(f,"Read Only",_.P(b,1)),nK(f,"Reason",_.y(b,2))}else b instanceof _.iK?(nK(f,"WS ID",b.getId()),nK(f,"Title",b.getTitle()),nK(f,"State",b.getState())):b instanceof _.Guc&&nK(f,"Title",b.request.getTitle());_.w(d,1,"Request: "+e+(c?" ("+c+")":"")+
"\n"+f.join("\n"));a.jj.add(d);return d};_.xyc=function(a,b){for(var c=new _.Xo,d=0;d<b.length&&20>d;d++){var e=b[d];c.append(e.getId()+":"+_.euc(e.getTitle()||"",20)+"\n")}20<b.length&&c.append(b.length-20+" more item(s)");_.w(a,2,c.toString()||"Done.")};_.tyc.prototype.$Q=function(){return this.jj.sh()};_.cL=function(a){_.J.call(this,a)};_.K(_.cL,_.J);_.cL.prototype.jd=function(){return _.B(this,_.xB,1)};_.yyc=function(a,b){return _.I(a,1,b)};_.cL.prototype.$n=function(){return _.y(this,3)};
_.zyc=function(a,b,c){_.ui.call(this,"Hb");this.requestId=a;this.progress=b;this.totalBytes=c};_.K(_.zyc,_.ui);
_.Ayc=function(a,b){this.O=a;this.V=b;this.H=null};
var dL=function(a){_.Ei.call(this);this.name=a};_.K(dL,_.Ei);_.g=dL.prototype;_.g.M3=function(){};_.g.pEa=function(){};_.g.m0a=function(){};_.g.ULa=function(){};_.g.l0a=function(){};_.g.PF=function(){this.dispatchEvent(new _.ui("Ib"))};_.g.toString=function(){return this.name+": "+this.max(Infinity)};
var Byc=function(a,b){dL.call(this,"Online");var c=this;this.O=a;this.H=b;this.Sc=new _.Ze(this);this.Ma(this.Sc);this.Sc.listen(this.O,"Bb",function(d){d.Se()||c.PF()});this.Sc.listen(this.H,"pb",this.PF)};_.K(Byc,dL);Byc.prototype.max=function(){var a=this.O.Se(),b=this.H.LB();return!a&&b?Infinity:0};Byc.prototype.M3=function(){this.PF()};
var Cyc=function(a){dL.call(this,"Online");var b=this;this.connectionState=a;this.Sc=new _.Ze(this);this.Ma(this.Sc);this.Sc.listen(this.connectionState,[_.rC.CL,_.rC.Hga,_.rC.iU],function(){return b.PF()})};_.K(Cyc,dL);Cyc.prototype.max=function(){return this.connectionState.isConnected()?Infinity:0};Cyc.prototype.M3=function(){this.PF()};
_.Dyc=function(a,b){this.H=a;this.O=b};_.Eyc=function(a){return a.H instanceof _.aL?new Cyc(a.H.getState()):new Byc(a.O,a.H)};_.Dyc.prototype.Mj=function(){return this.H instanceof _.aL?this.H.getState():this.O};
var Gyc;_.Fyc=function(a,b,c){this.BK=c;this.O=!0;this.V=0;this.H=new _.EI(a,b,.5)};Gyc=function(a){return a.H.O+a.V};
_.eL=function(a,b){dL.call(this,"Backoff");this.H=a;this.O=b};_.K(_.eL,dL);_.eL.prototype.max=function(){return this.H.O?Infinity:0};_.eL.prototype.ULa=function(){var a=this.H;a.V=0;a.H.reset()};_.eL.prototype.l0a=function(a){var b=this;Hyc(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.PF()},a),_.FI(this.H.H))};
var Hyc=function(a){var b;return(a=null===(b=_.ia(a.HD))||void 0===b?void 0:b.response)?quc(_.lIb(a)):!1};_.eL.prototype.log=function(a){this.O.info("drive.ds.network.queue.BackoffState",a)};
_.Iyc=function(a,b){dL.call(this,"Batch");this.O=a;this.V=b;this.H=null};_.K(_.Iyc,dL);_.Iyc.prototype.max=function(a){return a>=this.O?this.O:null!=this.H?this.V<=Date.now()-this.H?this.O:0:0};_.Iyc.prototype.M3=function(a){a>=this.O?this.PF():null==this.H&&Jyc(this)};_.Iyc.prototype.pEa=function(a,b){0<b?Jyc(this):this.H=null};var Jyc=function(a){a.H=Date.now()-1;_.n.setTimeout(a.PF.bind(a),a.V)};
_.fL=function(){this.jj=[]};_.g=_.fL.prototype;_.g.add=function(a,b){b?this.jj.unshift(a):this.jj.push(a);return!0};_.g.ksa=function(a){return _.Aa(this.jj,0,a)};_.g.Ed=function(){return this.jj.length};_.g.cancel=function(a){return _.va(this.jj,function(b){return b.Ev.config.requestId===a?(b.je.resolve(Uuc(b.Ev.Lw)),!0):!1})};_.g.fK=function(){return _.pg(this.jj,function(a){return _.pK(a.Ev.Lw)})};
var Kyc=function(){dL.call(this,"Immediate")};_.K(Kyc,dL);Kyc.prototype.max=function(){return Infinity};Kyc.prototype.M3=function(){this.PF()};
var Lyc=function(){dL.call(this,"One Request")};_.K(Lyc,dL);Lyc.prototype.max=function(){return 1};
_.gL=function(a){dL.call(this,"Parallel");this.limit=a;this.H=0};_.K(_.gL,dL);_.gL.prototype.max=function(){return Math.max(0,this.limit-this.H)};_.gL.prototype.M3=function(){this.H<this.limit&&this.PF()};_.gL.prototype.pEa=function(a){this.H+=a.length};_.gL.prototype.m0a=function(a){this.H-=a.length;this.H<this.limit&&this.PF()};
var Myc=function(){_.Ei.apply(this,arguments)};_.K(Myc,_.Ei);var Oyc=function(a,b){a.dispatchEvent(new Nyc(b))};Myc.prototype.O=function(){};var Nyc=function(a){_.ui.call(this,"Jb");this.request=a};_.K(Nyc,_.ui);
_.hL=function(a,b,c,d,e,f){_.Ei.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.Sc=new _.Ze(this);this.Ma(this.Sc);for(a=0;a<this.H.length;a++)this.Sc.listen(this.H[a],"Ib",this.k_a);for(a=0;a<this.O.length;a++)this.Sc.listen(this.O[a],"Jb",function(k){Pyc(h,!0,k.request)});this.ka=_.Ht("drive.ds.network.queue.Queue [%s]",f)};_.K(_.hL,_.Ei);_.hL.prototype.add=function(a){return Pyc(this,!1,{Ev:a,je:_.ci(),HD:[]})};
_.hL.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};_.hL.prototype.fK=function(){return this.V.fK()?!0:this.buckets.some(function(a){return a.fK()})};
var Pyc=function(a,b,c){if(!a.buckets.some(function(f){return f.add(c,b)}))return a=_.nq(new _.Dc,"No queue bucket accepted request."),_.$h(_.SB(a));for(var d=Qyc(a),e=0;e<a.H.length;e++)a.H[e].M3(d);return c.je.promise};_.g=_.hL.prototype;
_.g.k_a=function(){var a=Qyc(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].ksa(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.svb.bind(this,a[e]),this.rvb.bind(this,a[e]));e=Qyc(this);for(var f=0;f<this.H.length;f++)this.H[f].pEa(a,e);_.di(_.RI(d).then(this.qvb.bind(this,a)),function(){b.W.delete(c)});_.n.setTimeout(this.k_a.bind(this),0)};
_.g.svb=function(a,b){var c=a.Ev.config;this.log(Tuc(a.Ev.Lw)+" request completed successfully. xd4: "+!(!c||!c.CN));this.H.forEach(function(d){return d.ULa()});this.O.forEach(function(d){return d.O(a)});a.je.resolve(b)};
_.g.rvb=function(a,b){b=_.SB(b);this.log(Tuc(a.Ev.Lw)+(" request failed with error: "+b.ha+"."));a.HD.push({response:b,bRb:Date.now()});for(var c=0;c<this.H.length;c++)this.H[c].l0a(a);a.Ev.config.lEa||!this.O.some(function(d){return d.intercept(a)})?a.je.reject(b):this.log(Tuc(a.Ev.Lw)+" encountered an error, but was intercepted to be retried.")};_.g.qvb=function(a){Qyc(this);for(var b=0;b<this.H.length;b++)this.H[b].m0a(a)};
var Qyc=function(a){for(var b=0,c=0;c<a.buckets.length;c++)if(a.buckets[c].Ed()){b=a.buckets[c].Ed();break}return b};_.hL.prototype.log=function(a){this.ha.info(this.ka,a)};
_.Ryc=function(a,b,c,d){Myc.call(this);this.V=b;this.ka=c;this.W=d;this.H=new Map;this.ha=_.bk(a,21,1E3);this.ta=_.bk(a,1,1);this.ma=function(){return new _.Fyc(_.bk(a,63,1E3),_.bk(a,64,3E5),_.bk(a,65,10))}};_.K(_.Ryc,Myc);
_.Ryc.prototype.intercept=function(a){var b=a.HD.length,c=0<b&&_.ia(a.HD).response||null;if(c){c=_.fJ(c);if(2===c.Kp())return Syc(this,a);if(_.Jtc(c))return 2>=b?(Oyc(this,a),a=!0):a=!1,a;var d=c.Ak();if(3===d||31===d||13===d||9===d)return Tyc(this,a,b);if(quc(c))return b=Gyc(this.V),c=this.V,Gyc(c)<c.BK?(this.log("Backoff number "+b+" for a User Rate Limit error."),Oyc(this,a),a=!0):(this.log("Done retrying User Rate Limit errors after "+(b+" backoffs.")),a=!1),a}return!1};
var Syc=function(a,b){var c=Uyc(a,b),d=Gyc(c);if(Gyc(c)<c.BK)return a.log("Retry "+(d+1)+" for a failed request due to an offline error."),a.ka.Se()?(d=c.H.Za(),_.n.setTimeout(function(){return Oyc(a,b)},d),_.FI(c.H)):(_.n.setTimeout(function(){return Oyc(a,b)}),c.V++),!0;a.H.delete(b);return!1},Uyc=function(a,b){a.H.has(b)||a.H.set(b,a.ma());return a.H.get(b)},Tyc=function(a,b,c){var d=a.ta;if(c<=d)return a.log("Retry number "+(c+1)+" for a retryable error."),_.n.setTimeout(function(){return Oyc(a,
b)},a.ha*Math.pow(2,c)),!0;a.log("Done retrying retriable requests after "+d+" retries.");return!1};_.Ryc.prototype.O=function(a){this.H.delete(a)};_.Ryc.prototype.log=function(a){this.W.info("drive.ds.network.queue.RetryInterceptor",a)};
var Vyc=function(a){try{if("undefined"!==typeof FileReaderSync&&_.Ktc()){var b=new FileReaderSync;return Promise.resolve(b.readAsDataURL(a))}var c=new _.YJb,d=Mwc(c);c.H.readAsDataURL(a);return d.then()}catch(e){return Promise.reject(new _.WJb(_.rJ(e),"reading data"))}},Wyc=function(a){return Vyc(a.size?a.slice(0,1):a).then(function(){return null},function(b){return b.name})};
var Xyc=function(a,b,c,d,e,f,h){this.Ha=a;this.H=b;this.Ka=c;this.W=d;this.Qa=e;this.request=f;this.config=h;this.O=this.ta=this.progress=0;this.Fa=this.va=this.ha=null;this.je=_.ci();this.finished=!1;this.Ba=this.Bu=0;this.ka=null;this.ma=!1;this.V=null;a=f.request.Sz();a=_.Ktc()&&a?_.y(a,1):null;this.fileSize="number"===typeof a?a:f.file.size;this.requestId=h.requestId;this.hO="progress_"+this.requestId;h.hO=this.hO;this.ma=!!f.metadata};
Xyc.prototype.log=function(a){this.Ka.info("drive.ds.sync.request.ResumableUpload",a)};Xyc.prototype.start=function(){var a=this,b=new Muc(this.request.request,this.request.metadata),c=Yyc(this);this.Ha.then(function(d){return d.Qe(b,c)}).then(function(d){a.ha=d.O;a.va=d.H;a.Fa=d.V;Zyc(a)},function(d){return void a.je.reject(d)});return _.di(this.je.promise.then(function(d){$yc(a,d);return d},function(d){d=_.SB(d);$yc(a,d.Tg);return _.$h(d)}),function(){kyc(a.H,[a.hO])})};
var Yyc=function(a){var b=_.Za(a.config);jyc(a.H,a.hO,rwc(function(){return void a.H.notify([a.requestId],0)}));return b};Xyc.prototype.cancel=function(){return this.finished?!1:(this.finished=!0,this.je.resolve(Uuc(this.request)),!0)};
var Zyc=function(a){a.finished||(a.log("Uploading chunk "+a.Ba+" for "+a.ha+"."),azc(a,4))},azc=function(a,b){bzc(a).then(function(c){if(c){var d=czc(a,c.blob.size);a.Ha.then(function(f){return f.Qe(c,d)}).then(function(f){a.V=null;var h=c.blob.size;a.progress+=a.O;a.ta+=h;a.Ba++;f.YJ()&&(a.va=f.YJ());f.RM()&&(a.Fa=f.RM());a.progress<a.fileSize?Zyc(a):a.je.resolve(f)},function(f){if(d.lEa)a.cancel();else{var h=_.fJ(f);h.hBa()||h.$ka()||a.ma?dzc(a,b,h,!1):Wyc(c.blob).then(function(k){k=k?_.YEa.get(k)||
25:38;_.pJ(h,k);k=38===h.Kp();var l=38!==h.Kp()&&25!==h.Kp();dzc(a,b,h,k,l)},function(){})}})}else{var e=_.SB(_.pJ(_.nq(new _.Dc,"Could not read more of the file. Read "+a.progress+"/"+a.fileSize+" bytes."),5));a.je.reject(e)}})},dzc=function(a,b,c,d,e){e=void 0===e?!1:e;var f=4-b;c.gfa(f);!e&&0<b?(a.Bu++,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+"."));azc(a,b)},a.Qa*Math.pow(1.5,f))):a.je.reject(_.SB(c))},bzc=function(a,b){return a.ma&&a.V?_.Zh(a.V):ezc(a,b).then(function(c){if(!c)return null;if(a.ma&&0<a.fileSize&&0===c.size)return bzc(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 Nuc(a.ha,c,a.ta,a.ta+c.size-1,a.finished,a.request.request.getMimeType(),_.y(a.request.request,
12)||void 0);return a.V})},ezc=function(a,b){a.O=b?b:Math.min(a.fileSize-a.progress,a.W);b=a.progress;return a.request.hQ?a.request.hQ(b,a.O):_.Zh(_.guc(a.request.file,b,b+a.O))},czc=function(a,b){var c=_.Za(a.config);c.XQa=!0;var d=a.progress/a.fileSize,e=b/a.fileSize;kyc(a.H,[a.hO]);jyc(a.H,a.hO,function(f){a.H.notify([a.requestId],Math.min(d+e*f,1))});return c},$yc=function(a,b){b.VLa(3);b.gfa(a.Bu);b.YJ()||b.Fca(a.va);b.RM()||b.wca(a.Fa)};
_.fzc=function(a,b,c,d,e){this.ha=a;this.V=b;this.H=c;this.W=d;this.O=e};_.fzc.prototype.create=function(a,b){return new Xyc(this.ha,this.V,this.H,this.W,this.O,a,b)};
_.gzc=function(a){this.O=a;this.H={}};_.gzc.prototype.execute=function(a){for(var b=[],c=0;c<a.length;c++)if(a[c].Ev.Lw instanceof _.Ouc)b.push(hzc(this,a[c].Ev));else{var d=_.nq(new _.Dc,"ResumableUploadExecutor only supports ResumableUploadRequests.");b.push(Promise.reject(_.SB(d)))}return b};_.gzc.prototype.cancel=function(a){return!!this.H[a]&&this.H[a].cancel()};_.gzc.prototype.fK=function(){return!_.Ua(this.H)};
var hzc=function(a,b){var c=a.O.create(b.Lw,b.config),d=c.start(),e=b.config.requestId;a.H[e]=c;return _.di(d,function(){delete a.H[e]})};
_.izc=function(a,b){return new _.hL(b,a,[new Kyc],[new _.fL],[],"immediate")};_.jzc=function(a,b,c,d,e){return new _.hL(e,a,[_.Eyc(d),new _.eL(c,e),new Lyc],[new _.fL],[new _.Ryc(b,c,d.Mj(),e)],"connected")};_.kzc=function(a,b,c,d,e,f,h){h=void 0===h?_.bk(b,10,50):h;return new _.hL(e,a,[_.Eyc(d),new _.Iyc(h,_.bk(b,12,10)),new _.gL(3*h),new _.eL(c,e)],[new _.fL],[new _.Ryc(b,c,d.Mj(),e)],f)};_.lzc=function(a,b,c){b=_.bk(b,46,1);return new _.hL(c,a,[new _.gL(b)],[new _.fL],[],"resumable_upload")};
_.mzc=function(a,b,c,d,e,f,h,k){this.eI=a;this.ma=b;this.V=c;this.H=d;this.W=e;this.ha=f;this.ka=h;this.O=k};_.mzc.prototype.Qe=function(a,b){return nzc(this,a,b).then(null,function(c){c=_.SB(c);var d=c.Tg;Vuc(a)||_.pq(d);return _.$h(c)})};
var nzc=function(a,b,c){c=void 0===c?{}:c;var d=a.eI.validate(b);if(d)return _.$h(_.SB(d));var e=a.ma.translate(b);e instanceof _.Dc?d=void 0:Array.isArray(e)?(d=e.map(function(f){return a.V.execute(a,f,c)}).filter(function(f){return!!f}),d=0<d.length?Promise.all(d):void 0):d=a.V.execute(a,e,c)||void 0;return _.Zh(d).then(function(){if(e instanceof _.Dc)return _.$h(_.SB(e));if(Array.isArray(e)){var f=e.map(function(h){return ozc(a,b,h,c)});return _.RI(f)}return ozc(a,b,e,c)},function(f){return _.$h(_.SB(f))})},
ozc=function(a,b,c,d){var e=pzc(a,c);if(!e)return b=_.pJ(_.nq(new _.Dc,"Failed to choose a queue for server request."),18),_.$h(_.SB(b));if(e===a.H[7]||e===a.H[8])d.CN=!0;d=e.add({Lw:c,config:d});(_.pK(b)||_.pK(c))&&_.di(d,function(){var f=a.W;f.O()||(f.H&&(f.H.resolve(),f.H=null),f.V())});b=a.ha.apply(c,d);d.then(function(f){a.ka.apply(c,f)},function(){});return b};_.mzc.prototype.cancel=function(a){return _.Pa(this.H,function(b){return b.cancel(a)})};
var pzc=function(a,b){var c,d=!1;b instanceof _.LJ?d=!(null===(c=_.B(b,_.zA,2))||void 0===c||!_.P(c,7)):b instanceof _.zA?d=!!_.P(b,7):b instanceof _.ZI&&(d=(d=b.ud())&&!!_.P(d,46));return(b instanceof _.Ruc||b instanceof _.nJ&&_.P(b,9))&&a.H[1]?a.H[1]:b instanceof _.Ouc&&a.H[5]?a.H[5]:d&&bvc(b,a.O)&&a.H[7]?a.H[7]:bvc(b,a.O)&&a.H[8]?a.H[8]:d&&(b instanceof _.LJ||b instanceof _.zA)&&a.H[6]?a.H[6]:(d||ryc.includes(b.constructor))&&a.H[3]?a.H[3]:Wuc.includes(b.constructor)&&a.H[4]?a.H[4]:a.H[2]||a.H[1]};
var qzc=function(a){this.H=a};qzc.prototype.build=function(a,b){var c="====="+_.Wg()+"=====",d=a[0].an,e=b.every(function(l){return l.CN});if(e){var f=d;var h={"content-type":"text/plain; charset=UTF-8"};d="POST";var k=qyc(this.H,a[0].an);_.vj(k,"$ct",'multipart/mixed; boundary="'+c+'"')}else f=rzc[d],h=szc[d]||{},h["content-type"]=_.Ht('multipart/mixed; boundary="%s"',c),d=tzc[d],k=new _.lj("");a=uzc(this,a,b,c,e);return{an:f,body:a,headers:h,method:d,uri:k}};
var uzc=function(a,b,c,d,e){for(var f=Auc(vzc[b[0].an]||{}),h="",k=0;k<b.length;k++){e&&oyc(a.H,b[k],c[k]);var l=b[k],p=a.H,q=l,r=c[k];q.uri=pyc(p,q.an,q.uri);switch(q.an){case 0:case 5:nyc(p,q,r);myc(p,q,r);break;case 2:oyc(p,q,r);nyc(p,q,r);var v=q,z=_.y(p.H.ig(),57);v.headers.host=_.zj(z).H;v.headers.origin=_.n.location.origin?_.n.location.origin:_.n.location.protocol+"//"+_.n.location.host;myc(p,q,r);break;case 12:case 10:case 13:break;case 8:case 7:throw Error("df`"+q.an);default:throw Error("cf`"+
q.an);}p=l;q=p.uri.clone();_.mj(q,"");_.nj(q,"");_.oj(q,null);l=f+"\r\n"+(p.method+" "+q+" HTTP/1.1\r\n")+Auc(l.headers)+"\r\n"+(l.body?l.body+"\r\n":"");h+="--"+d+"\r\n";h+=l}return h+("--"+d+"--\r\n")},wzc={},rzc=(wzc[0]=1,wzc[2]=3,wzc),xzc={},tzc=(xzc[0]="POST",xzc[2]="PUT",xzc[12]="POST",xzc),yzc={},zzc={},szc=(zzc[2]=(yzc["x-goog-upload-protocol"]="batch",yzc),zzc),Azc={},Bzc={},Czc={},Dzc={},vzc=(Dzc[0]=(Azc["content-type"]="application/http",Azc["content-transfer-encoding"]="binary",Azc),Dzc[12]=
(Bzc["content-type"]="application/http",Bzc["content-transfer-encoding"]="binary",Bzc),Dzc[2]=(Czc["content-type"]="application/http",Czc),Dzc);
var Ezc=/^HTTP\/1\.1 (\d+) ([\w ]+)/,Fzc=/^multipart\/mixed; boundary="?([^"]+)"?$/;
var Gzc=function(a,b,c,d,e){this.V=a;this.W=b;this.ha=c;this.H=d;this.O=e;this.jj=new Map};Gzc.prototype.add=function(a,b){var c="DEFAULT";b.CN&&(c=qyc(this.V,a.an).toString());this.jj.has(c)||this.jj.set(c,[]);c=this.jj.get(c);if(1<=c.length&&!b.CN&&!rzc[a.an])return a=_.nq(new _.Dc,"Unsupported batch API: "+a.an),_.$h(_.SB(a));var d=_.ci();c.push({request:a,config:b,je:d});return d.promise};
Gzc.prototype.send=function(){for(var a={},b=_.m(this.jj.entries()),c=b.next();!c.done;a={Tqa:a.Tqa},c=b.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;try{Hzc(this,d)}catch(f){var e=_.rJ(f);e=_.oq(_.nq(new _.Dc,"Error executing XHR: "+e.message),e.stack);a.Tqa=_.SB(e);d.forEach(function(h){return function(k){k.je.reject(h.Tqa)}}(a));this.jj.delete(c)}}};
var Hzc=function(a,b){if(1===b.length){var c=b[0];if(!c.config.LBa&&!c.config.CN){var d=!1;if(rzc[c.request.an]){var e={an:c.request.an,headers:{},method:c.request.method,uri:c.request.uri.clone()};a.V.lc(e,c.config);2E3<e.uri.toString().length&&(d=!0)}if(!d){Izc(a,c);return}}}Jzc(a,b)},Izc=function(a,b){var c=b.je;a.W.$g(b.request,b.config).then(function(d){c.resolve(d);Kzc(a,b)},function(d){a.handleError(b,d);c.reject(d)})},Jzc=function(a,b){var c=[],d=[];b.forEach(function(e){c.push(e.request);
d.push(e.config)});a.W.$g(a.ha.build(c,d),{LBa:!0,CN:d.every(function(e){return e.CN})}).then(function(e){e.headers=_.juc(e.headers);var f=Fzc.exec(e.headers["content-type"]);var h=f&&f[1]?"--"+f[1]:null;if(!h)throw new _.Ec("Could not extract batch boundary.",_.pJ(_.oq(new _.Dc,JSON.stringify(e)),14));f=h+"\r\n";h=e.text.split(h+"--");if(2===h.length&&_.Ud(_.nia(h[0]),f)&&_.ye(h[1]))h=_.nia(h[0]).substring(f.length);else throw new _.Ec("Could not parse batch response; did not begin and end with boundary.",
_.pJ(_.oq(new _.Dc,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,r=q.push;var v=void 0;var z,A=e.headers,C=f[l],G=p&&p.uri,H=C.split("\r\n\r\n");if(2>H.length)v=new _.Ec("Individual batch response contained too few parts.",_.pJ(_.oq(new _.Dc,C),17));else{var L=H[1].split("\r\n");if(z=Ezc.exec(L[0])){p=_.ah(z[1]);z=z[2];L.shift();A=_.Za(A);for(var M=Object,R=M.assign,V={},ha=0;ha<L.length;ha++){var ba=_.wia(L[ha],":",1);ba&&2===
ba.length&&(V[(0,_.rg)(ba[0])]=(0,_.rg)(ba[1]))}L=_.juc(V);R.call(M,A,L);try{v=_.ye(_.Vg(H[2]))?void 0:JSON.parse(H[2])}catch(oa){}v=(p=_.ouc(p,z,A,C,v,void 0,void 0,G&&G.toString()))?_.SB(p):{headers:A,text:C,json:v||void 0}}else v=new _.Ec("Could not extract HTTP status code and text.",_.pJ(_.oq(new _.Dc,C),16))}r.call(q,v)}return k}).then(null,function(e){e=_.SB(e);return _.Nqc(e,b.length)}).then(function(e){for(var f=!1,h=0;h<b.length;h++){var k=b[h].je,l=e[h];l instanceof _.Dc||l instanceof _.Ec?
(l=_.SB(l),f||(f=a.handleError(b[h],l)),k.reject(l)):k.resolve(l)}f||Kzc(a,b[0])})},Kzc=function(a,b){var c=b.request.an;b=!b.config.uu&&_.na(Lzc,c);if(a.H){if(a=a.H,c=b?1:2,!a.state.isConnected()||b)c=cyc(a,c),b&&c&&a.reset(),a.H&&c&&(b||!a.state.O)&&(a.H.Aj(),a.H=null)}else a.O&&b&&a.O.va()};
Gzc.prototype.handleError=function(a,b){a=_.lIb(b);if(2===a.Kp()){if(this.H)return _.eyc(this.H),!0}else if(_.Jtc(a)){if(this.H){a=this.H;if(b=!a.V)b=a.state,b=!b.V&&b.isConnected()?b.H=!0:!1;b&&_.dyc(a);return!0}if(this.O)return this.O.ta(),!0}return!1};var Lzc=[0,2,4,7,8];
var Mzc=function(){_.ij.apply(this,arguments)};_.K(Mzc,_.ij);Mzc.prototype.getAllResponseHeaders=function(){return _.nia(_.ij.prototype.getAllResponseHeaders.call(this))};
var Nzc=function(a,b){this.W=a;this.V=b;this.O={};this.H={}};
Nzc.prototype.$g=function(a,b){var c=this;try{this.W.lc(a,b);var d=new Mzc;d.xC=!0;var e=b.requestId||"",f=_.ci();d.listen("complete",function(){var h=b.LBa,k=4===a.an;h=void 0===h?!1:h;k=void 0===k?!1:k;e&&(delete c.O[e],delete c.H[e]);var l={headers:_.ema(d),text:d.Kl()};if(!h)try{l.json=_.uI(d)}catch(p){}h=_.ouc(d.Bb(),_.bma(d),l.headers,l.text,l.json,d.O,_.fma(d),String(d.ta),k);d.dispose();h?f.reject(_.SB(h)):f.resolve(l)});e&&b.hO&&!b.CN&&(this.O[e]=d,this.H[e]=b,d.Gb=!0,d.listen("uploadprogress",
function(h){h.lengthComputable&&c.V.notify([b.hO],b.XQa?h.loaded/h.total:h.loaded/h.total/2)}),b.XQa||d.listen("downloadprogress",function(h){h.lengthComputable&&c.V.notify([b.hO],h.loaded/h.total/2+.5)}));d.send(a.uri,a.method,a.body,a.headers);return f.promise}catch(h){return _.$h(_.SB(h))}};Nzc.prototype.cancel=function(a){var b=this.O[a];a=this.H[a];return b&&b.isActive()?(a.lEa=!0,b.abort(),!0):!1};
_.Ozc=function(a,b,c,d,e,f,h){this.O=a;this.va=b;this.Ba=c;this.ta=d;this.ma=e;this.ha=f;this.H=h;this.V=[];this.ka=new qzc(this.O);this.W=new Nzc(this.O,this.va)};_.g=_.Ozc.prototype;
_.g.execute=function(a){for(var b=[],c=[],d=0;d<a.length;d++){var e=a[d].Ev;this.V.push(e);b.push(this.Ba.AE(e,a[d].HD));c.push(syc(e.Lw)?_.wyc(this.ma,e.Lw):void 0)}if(this.H&&this.H.V){var f=Promise.reject(_.SB(_.ouc(0,"",{},"",void 0,-99)));return a.map(function(){return f})}var h=new Gzc(this.O,this.W,this.ka,this.H||void 0,this.ha||void 0);d=[];e={};for(var k=0;k<a.length;e={zqa:e.zqa},k++){e.zqa=a[k].Ev.config;var l=b[k].then(function(p){return function(q){return h.add(q,p.zqa)}}(e));d.push(l)}Promise.allSettled(b).then(function(){h.send()});
b=[];for(e=0;e<a.length;e++)k=a[e].Ev,l=d[e].then(this.knb.bind(this,k.Lw,c[e],a[e].HD)).then(null,function(p){return Promise.reject(_.SB(p))}),l.then(this.WLa.bind(this,k),this.WLa.bind(this,k)),b.push(l);return b};_.g.knb=function(a,b,c,d){a=this.ta.AE(a,d,c);b&&(c=a.wd?a.wd():[],_.xyc(b,c));return a};_.g.cancel=function(a){return this.W.cancel(a)};_.g.fK=function(){return this.V.some(function(a){return _.pK(a.Lw)})};_.g.WLa=function(a){_.ua(this.V,a)};
_.Pzc=function(){};_.Pzc.prototype.execute=function(){return null};
var Qzc=function(){};
var Rzc=function(a,b){this.H=a;this.O=b};
_.Szc=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};
var Tzc=function(a){return"drive#fileList"===a.kind};
var Uzc;Uzc=function(a){this.H=a};_.iL=function(a,b){if(!_.Ca(b))throw new _.Ec("Expected an object, but got a "+_.fga(b)+".",_.qJ(11,void 0,8));var c=b.kind;if(!c)throw new _.Ec("Expected 'kind' parameter in response: "+JSON.stringify(b),_.qJ(11,void 0,21));if(!a.includes(c))throw new _.Ec("Expected "+a.join(" or ")+" but got a "+c+".",_.qJ(11,void 0,9));};_.jL=function(a){return null!=a?(new Date(a)).getTime():void 0};
_.Vzc=function(a){var b=null!=a.canDelete?a.canDelete:a.canDeleteTeamDrive;var c=_.hvc(new _.Yk,a.canAddChildren);c=_.w(c,18,a.canChangeTeamDriveBackground);c=_.w(c,2,a.canComment);c=_.w(c,3,a.canCopy);b=_.qvc(_.lvc(_.rvc(_.svc(_.tvc(_.pvc(_.ovc(_.kvc(_.jvc(_.ivc(c,b),a.canDownload),a.canEdit),a.canManageMembers),a.canManageVisitors),a.canMoveItemIntoTeamDrive),a.canMoveTeamDriveItem),a.canReadTeamDrive),a.canRemoveChildren),a.canRename);b=_.w(b,13,a.canRenameTeamDrive);b=_.uvc(_.nvc(_.mvc(b,a.canShare),
a.canTrash),a.canUntrash);b=_.w(b,27,a.canModifyContentRestriction);b=_.w(b,26,a.canShareOutsideDomain);b=_.xvc(_.wvc(_.vvc(_.w(b,30,a.canMoveItemWithinTeamDrive),a.canMoveItemOutOfTeamDrive),a.canMoveChildrenWithinTeamDrive),a.canMoveChildrenOutOfTeamDrive);b=_.w(b,34,a.canDeleteChildren);b=_.w(b,35,a.canTrashChildren);b=_.w(b,36,a.canRequestApproval);b=_.w(b,37,a.canReadCategoryMetadata);b=_.w(b,38,a.canEditCategoryMetadata);b=_.w(b,39,a.canChangeCategoryReferences);b=_.w(b,49,a.canSetMissingRequiredFields);
b=_.w(b,40,a.canAddMyDriveParent);b=_.w(b,41,a.canRemoveMyDriveParent);b=_.zvc(_.yvc(b,a.canShareChildFiles),a.canShareChildFolders);b=_.w(b,44,a.canRead);b=_.Cvc(_.Bvc(_.Avc(_.w(b,45,a.canMoveItemWithinDrive),a.canMoveItemOutOfDrive),a.canMoveChildrenWithinDrive),a.canAddFolderFromAnotherDrive);b=_.w(b,50,a.canChangeSecurityUpdateEnabled);b=_.w(b,51,a.canRemoveSecureLinkUpdateForAllFiles);b=_.w(b,52,a.canCreateDecryptedCopy);b=_.w(b,53,a.canCreateEncryptedCopy);b=_.w(b,54,void 0===a.canAddEncryptedChildren?
a.canAddChildren:a.canAddEncryptedChildren);return _.w(b,55,a.canBlockOwner)};_.kL=function(a,b){_.iL(["drive#user"],b);var c=_.fvc(_.gvc(_.dvc(1).Ob(b.permissionId),b.id).hd(b.displayName),b.emailAddress);b.picture&&c.Nn(b.picture.url);_.YI(a.H)&&_.fvc(c,b.emailAddressFromAccount||b.emailAddress);_.evc(c,a.Uf(b.id));_.w(c,9,b.domain);return c};Uzc.prototype.Uf=function(a){if(a)return _.CK(_.JI(this.H))==a};
var Wzc,aAc,iAc,oAc,dAc,cAc,fAc,hAc,jAc,Yzc,lAc,kAc,mAc,nAc,qAc,rAc,pAc,gAc;Wzc=function(a,b){this.H=a;this.O=b};
_.Zzc=function(a,b,c){var d=new _.cL,e=new _.xB,f=e.Vw;_.iL(["drive#fileList","drive#file"],b);var h=[];if("drive#file"===b.kind)(a=_.Xzc(a,b))&&h.push(a);else if(Tzc(b))for(var k=b.items||[],l=0;l<k.length;l++){var p=_.Xzc(a,k[l]);h.push(p)}e=f.call(e,h);if(Tzc(b)){_.w(e,8,b.incompleteSearch);_.iL(["drive#fileList"],b);if(h=b.spellResponse){f=[];var q=_.m(h.spellCorrections);for(a=q.next();!a.done;a=q.next()){h=[];a=_.m(a.value.spellFragments);for(k=a.next();!k.done;k=a.next())k=k.value,l=(new _.dub).Dc(Yzc.get(k.status)),
l=_.w(l,1,k.original),k=_.w(l,3,k.correction),h.push(k);a=new _.hub;h=_.Lj(a,1,h);f.push(h)}q=new _.jub;_.Lj(q,1,f)}if((f=b.suggestedNlpQueries)&&0<f.length){var r=new _.fub;_.Jj(r,1,f)}q||r?(f=new _.kub,q&&_.I(f,1,q),r&&_.I(f,2,r),r=f):r=null;_.I(e,7,r);_.iL(["drive#fileList"],b);r=[];f=_.m(b.items||[]);for(q=f.next();!q.done;q=f.next())q=q.value,h=q.id,!h||"1"!=q.searchResultSource&&"3"!=q.searchResultSource||r.push(h);_.Jj(e,18,r)}d=_.yyc(d,e);c=_.luc(c);c=_.w(d,2,c);Tzc(b)&&b.nextPageToken&&_.w(c,
3,b.nextPageToken);return c};
aAc=function(a,b,c,d,e){_.iL(["drive#adminFile","drive#file","drive#revision"],b);var f=_.Lwc(new _.oK,c);"drive#adminFile"===b.kind?(_.iL(["drive#adminFile"],b),c=(new _.jl).Ob(b.id),b.parentId&&_.xK(c,[b.parentId]),_.Uvc(c,b.teamDriveId),f.setItem(c),_.Lwc(f,c.getId())):"drive#file"===b.kind?(b=_.Xzc(a,b),f.setItem(b),c||_.Lwc(f,b.getId())):"drive#revision"===b.kind&&(b=_.$zc(a,b),_.I(f,4,b));f.Fca(_.kuc(d));f.wca(_.luc(d));(d=(d=d&&_.juc(d))&&d["x-server-object-version"])&&e&&(e=(new _.HK).Ob(d),
_.I(f,4,e));f.Dc(1);return f};_.bAc=function(a,b){return _.Lwc(new _.oK,a).Dc(1).Fca(_.kuc(b)).wca(_.luc(b))};
_.eAc=function(a,b){_.iL(["drive#permission"],b);var c=_.evc(_.gvc(_.dvc(cAc.get(b.type)).Ob(b.id),b.userId),a.H.Uf(b.userId));c=_.w(c,4,b.withLink);c=_.fvc(c.hd(b.name).Nn(b.photoLink),b.emailAddress);c=_.w(c,9,b.domain);c=_.w(c,10,b.deleted);c=_.w(c,12,b.audienceId);c=_.w(c,13,b.customerId);_.YI(a.O)&&c.hd(b.nameIfNotUser);b.role&&(a=dAc.get(b.role),2==a&&b.additionalRoles&&"commenter"==b.additionalRoles[0]?a=4:2==a&&"published"==b.view&&(a=6),_.w(c,6,a));return c};
_.Xzc=function(a,b){_.iL(["drive#file"],b);var c=b.title,d=(new _.jl).Ob(b.id),e=[];if(b&&b.parents)for(var f=_.m(b.parents),h=f.next();!h.done;h=f.next())e.push(h.value.id);c=_.Rvc(_.Nvc(_.JG(_.xK(d,e).setTitle(c),b.mimeType),b.alternateLink),b.hasThumbnail);null!=b.thumbnailVersion&&_.w(c,90,Number(b.thumbnailVersion));_.w(c,21,b.iconLink);c.Yl(b.description);_.Ovc(c,b.explicitlyTrashed);_.w(c,22,b.shared);null!=b.quotaBytesUsed&&_.w(c,28,Number(b.quotaBytesUsed));null!=b.fileSize&&_.w(c,14,Number(b.fileSize));
_.w(c,30,b.copyable);b.labels&&(d=b.labels,c.Lv(d.starred),_.w(c,6,d.hidden),c.On(d.trashed),_.Kvc(c,d.restricted),_.w(c,9,d.viewed));_.w(c,10,_.jL(b.createdDate));_.w(c,69,_.jL(b.serverCreatedDate));_.O8b(c,_.jL(b.modifiedDate));_.w(c,12,_.jL(b.modifiedByMeDate));_.w(c,13,_.jL(b.lastViewedByMeDate));_.w(c,23,_.jL(b.sharedWithMeDate));_.w(c,62,_.jL(b.xac));_.w(c,70,_.jL(b.recency));b.recencyReason&&(d=fAc.get(b.recencyReason)||0,_.w(c,71,d));d=[];if(b&&b.owners)for(e=b.owners,f=0;f<e.length;f++)(h=
_.kL(a.H,e[f]))&&d.push(h);_.Lvc(c,d);b.lastModifyingUser&&(d=_.kL(a.H,b.lastModifyingUser),_.Mvc(c,d));b.userPermission&&(d=dAc.get(b.userPermission.role),_.P8b(c,d));b.imageMediaMetadata&&(e=b.imageMediaMetadata,d=(new _.uK).zh(e.width).yh(e.height),d=_.w(d,4,e.rotation),e.date&&(e=e.date,f=new _.qtc,f.setMilliseconds(0),gAc.parse(e,f),_.w(d,1,f.getTime())),_.I(c,27,d));null!=b.folderColor&&_.Qvc(c,Number(b.folderColor));_.Pvc(c,b.subscribed);_.w(c,45,b.fileExtension);_.Jj(c,50,b.folderFeatures);
_.w(c,36,b.flaggedForAbuse);_.w(c,53,b.gplusMedia);_.w(c,46,b.primarySyncParentId||void 0);_.w(c,35,b.hasChildFolders);b.source&&(_.w(c,42,b.source.client_service_id),_.w(c,43,b.source.value));b.sharingUser&&(d=_.kL(a.H,b.sharingUser),_.Svc(c,d));b.sources?_.Jj(c,56,b.sources):b.gplusMedia&&_.Jj(c,56,["GOOGLE_PHOTOS"]);if(b.spaces){d=b.spaces;e=[];for(f=0;f<d.length;f++)h=d[f],_.Gqc[h]&&(h=_.lf(new _.kf,_.Gqc[h]),e.push(h));c.KA(e)}_.w(c,63,b.ownedByMe);_.w(c,29,b.shareable);b.sourceAppId&&_.w(c,
61,b.sourceAppId);_.w(c,74,b.changed);null!=b.recursiveFileSize&&_.w(c,77,Number(b.recursiveFileSize));null!=b.recursiveFileCount&&_.w(c,79,Number(b.recursiveFileCount));if(b.actionItems){d=b.actionItems;e=[];for(f=0;f<d.length;f++){var k=d[f];k.id&&k.type&&(h=(new _.Pna).Ob(k.id),k=hAc.get(k.type),h=_.w(h,2,k),e.push(h))}_.Lj(c,83,e)}b.capabilities&&_.yK(c,_.Vzc(b.capabilities));b.permissionsSummary&&_.Vvc(c,iAc(a,b.permissionsSummary));b.headRevisionId&&_.w(c,78,b.headRevisionId);b.templateData&&
(d=b.templateData,e=(new _.vK).Yl(d.description),f=jAc.get(d.galleryState),e=_.w(e,3,f),d=_.Jj(e,2,d.category),_.I(c,86,d));_.Uvc(c,b.teamDriveId);_.w(c,76,b.hasAugmentedPermissions);_.w(c,137,b.ancestorHasAugmentedPermissions);b.creator&&(d=_.kL(a.H,b.creator),_.Wvc(c,d));_.Xvc(c,b.primaryDomainName);_.Yvc(c,b.organizationDisplayName);_.w(c,94,b.passivelySubscribed);b.trashingUser&&_.Zvc(c,_.kL(a.H,b.trashingUser));c.Kca(_.jL(b.trashedDate));b.version&&_.w(c,75,Number(b.version));_.w(c,98,b.hasVisitorPermissions);
_.w(c,102,b.hasAppsScriptAddOn);if(d=b.pairedDocType)d=kAc.get(d),_.w(c,101,d);b.videoMediaMetadata&&(d=b.videoMediaMetadata,e=(new _.wK).zh(d.width).yh(d.height),d.durationMillis&&_.w(e,3,Number(d.durationMillis)),_.I(c,103,e));_.Jj(c,104,b.detectors);_.w(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=_.Fvc(_.Evc(new _.dl,f.readOnly),f.reason),d.push(f);_.Lj(c,125,d)}if(d=b.publishingInfo)_.w(c,118,d.published),
_.w(c,119,d.publishedUrl);_.Jj(c,120,b.workspaceIds);b.approvalMetadata&&b.approvalMetadata.approvalVersion&&_.w(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 _.Rna).Ob(f.approvalId).Dc(lAc.get(f.status)),d.push(f);_.Lj(c,127,d)}b.shortcutDetails&&(d=b.shortcutDetails,e=new _.aoa,e=_.w(e,1,d.targetId),e=_.w(e,3,d.targetMimeType),e=_.w(e,6,d.canRequestAccessToTarget),
d.targetLookupStatus&&(f=mAc.get(d.targetLookupStatus)||0,_.w(e,4,f)),d.targetFile&&(d=_.Xzc(a,d.targetFile),_.I(e,5,d)),_.I(c,132,e));b.clientEncryptionDetails&&(d=b.clientEncryptionDetails,e=new _.tK,f=nAc.get(d.encryptionState),e=_.w(e,1,f),d.decryptionMetadata&&(d=oAc(d.decryptionMetadata),_.I(e,2,d)),_.I(c,138,e));b.linkShareMetadata&&(d=b.linkShareMetadata,e=new _.Sna,e=_.w(e,2,d.securityUpdateEligible),e=_.w(e,3,d.securityUpdateEnabled),d=_.w(e,5,d.securityUpdateExplicitlySet),_.I(c,139,d));
_.w(c,140,b.resourceKey);_.Jj(c,135,b.authorizedAppIds);_.$vc(c,b.customerId);_.w(c,144,b.abuseIsAppealable);b.abuseNoticeReason&&(b=pAc.get(b.abuseNoticeReason)||0,_.w(c,145,b));_.yuc(c);_.YI(a.O)&&_.Tvc(c,5);return c};
_.$zc=function(a,b){_.iL(["drive#revision"],b);var c=(new _.HK).Ob(b.id);c=_.w(c,2,b.mimeType);c=_.w(c,3,_.jL(b.modifiedDate));c=_.w(c,4,b.pinned);c=_.w(c,5,b.downloadUrl);c=_.w(c,7,b.originalFilename);null!=b.fileSize&&_.w(c,8,Number(b.fileSize));b.lastModifyingUser&&(a=_.kL(a.H,b.lastModifyingUser),_.I(c,9,a));b.decryptionMetadata&&(b=oAc(b.decryptionMetadata),_.I(c,10,b));return c};
iAc=function(a,b){return _.Ivc(_.Hvc(_.Gvc(new _.Wna,b.entryCount),(b.visibility||[]).map(function(c){var d=_.dvc(cAc.get(c.type));d=_.w(d,9,c.domain);d=_.w(d,4,c.withLink).Ob(c.type+"|"+(c.domain||"")+"|"+c.withLink);if(c.role){var e=dAc.get(c.role);2==e&&c.additionalRoles&&"commenter"==c.additionalRoles[0]&&(e=4);_.w(d,6,e)}return d})),(b.selectPermissions||[]).map(function(c){return _.eAc(a,c)}))};
oAc=function(a){var b=a.wrappedKey;var c=new _.Dvc;b=b?_.msc(b):void 0;c=_.w(c,1,b);c=_.w(c,2,Number(a.kaclsId));c=_.w(c,5,a.kaclsName);b=qAc.get(a.aes256GcmChunkSize);c=_.w(c,3,b);b=rAc.get(a.keyFormat);c=_.w(c,6,b);return _.w(c,4,a.jwt)};dAc=new Map([["fileOrganizer",7],["organizer",5],["owner",1],["reader",2],["writer",3]]);cAc=new Map([["anyone",4],["audience",5],["domain",3],["group",2],["user",1]]);fAc=new Map([["createdByMe",1],["modifiedByMe",2],["modified",3],["viewedByMe",4]]);
hAc=new Map([["MENTION",0],["SUGGESTION",1],["ASSIGNMENT",2]]);jAc=new Map([["UNAVAILABLE",1],["AVAILABLE",2],["PENDING",3]]);Yzc=new Map([["CORRECT",1],["INCORRECT",2],["SUSPICIOUS",3]]);lAc=new Map([["IN_PROGRESS",1],["APPROVED",2],["CANCELLED",3]]);kAc=new Map([["docs",1],["sheets",2],["slides",3]]);mAc=new Map([["ok",1],["notFound",2],["permissionDenied",3]]);nAc=new Map([["unencrypted",1],["encrypted",2]]);qAc=new Map([["unset",0],["default",1],["small",2],["size16kb",3]]);
rAc=new Map([["unsetKeyFormat",0],["tinkKeyset",1],["tinkAesGcmKey",2]]);pAc=new Map([["unknownReason",0],["accessibleOnlyToOwner",1],["accessibleOnlyToOwningCustomer",2],["suspiciousOther",3],["suspiciousPhishing",4],["suspiciousMalware",5]]);gAc=new _.vWa("yyyy:MM:dd HH:mm:ss");
var sAc=function(a,b,c){this.O=a;this.H=b;this.V=c};
var vAc;_.tAc=function(a){this.V=new Uzc(a);this.nF=new Wzc(this.V,a)};_.tAc.prototype.AE=function(a,b,c){c=void 0===c?[]:c;try{return uAc(this,a,b,c)}catch(d){_.sJ(d)}};
var uAc=function(a,b,c,d){var e=a.ha(b,c);if(e)return e;if(b instanceof _.zJ)return _.lL(a,b,c);if(b instanceof _.IJ)return vAc(0,c,d);if(b instanceof _.zA||b instanceof _.LJ){if(!c.json)throw _.mL();return _.Zzc(a.nF,c.json,c.headers)}if(b instanceof _.jK)return _.lL(a,b,c);if("undefined"!=typeof _.Juc&&b instanceof _.Juc){if(!c.json)throw _.mL();a=c.json;return new _.Szc(a.fileId,a.jwt,Number(a.currentKaclsId),a.currentKaclsName,a.customerId)}if("undefined"!=typeof _.wAc&&b instanceof _.wAc){if(!c.json)throw _.mL();
return _.$zc(a.nF,c.json)}if(b instanceof _.XJ)return vAc(b.ud(),c,d);if(b instanceof Nuc){if(b.V){if(!c.json)throw _.mL();a=aAc(a.nF,c.json,null,c.headers,!!b.revisionId)}else a=_.bAc(null,c.headers);return a}if(b instanceof Muc){a=_.juc(c.headers);b=a.location;if(!b)throw a=_.pJ(new _.Dc,10),new _.Ec("No upload session URI included.",a);return new sAc(b,_.kuc(a),_.luc(a))}if(b instanceof _.Ruc)return new Qzc;throw new _.Ec("FromXhrConverter: Unsupported request type.",new _.Dc);};
_.tAc.prototype.ha=function(){return null};vAc=function(a,b,c){return"base64"===b.headers["x-goog-safety-encoding"]?new Rzc(_.Naa(b.text),c.length):new Rzc(new Uint8Array(_.uma(b.text)),c.length)};_.lL=function(a,b,c){if(!c.json){if(b instanceof _.hJ)return _.bAc(_.xAc(b));throw _.mL();}var d=!1;b instanceof _.jK&&(d=!!_.y(b.request,12));return aAc(a.nF,c.json,_.xAc(b),c.headers,d)};_.mL=function(){var a=_.pJ(new _.Dc,11);return new _.Ec("FromXhrConverter: JSON required, but none found",a)};
_.xAc=function(a){return a.getId?a.getId():a.Ac?a.Ac():null};
var BAc,CAc,EAc,yAc,FAc,zAc;
BAc=function(a,b){var c={};_.ye(_.Vg(a.getTitle()))||(_.y(a,12)?c.originalFilename=a.getTitle():c.title=a.getTitle());if(a.getMimeType()&&(c.mimeType=a.getMimeType(),a.Ac()&&_.gfa(a.getMimeType())&&b)){var d=b.h$(),e=b.O(),f={encryptionState:"encrypted"},h={};f.decryptionMetadata=(h.wrappedKey=_.Cj(b.V()),h.kaclsId=b.ha(),h.aes256GcmChunkSize=yAc[d?d.O():0],h.keyFormat=zAc[e?e.O():0],h);c.clientEncryptionDetails=f}_.AAc(c,_.ge(a,3));(b=a.Ac())&&(c.id=b);_.y(a,16)&&(c.embeddingParent=_.y(a,16));a.D1()&&
(c.shortcutDetails={},c.shortcutDetails.targetId=a.D1());"number"===typeof _.y(a,26)&&(c.modifiedDate=_.jwc(_.bxc(_.y(a,26)||0)));return c};_.AAc=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)}}};CAc={};_.DAc=(CAc[1]="active",CAc[2]="archived",CAc);EAc={};yAc=(EAc[0]="unset",EAc[1]="default",EAc[2]="small",EAc[3]="size16kb",EAc);FAc={};zAc=(FAc[0]="unsetKeyFormat",FAc[1]="tinkKeyset",FAc[2]="tinkAesGcmKey",FAc);
var IAc=function(a,b,c){return(a.hQ?a.hQ(0,a.file.size):Promise.resolve(a.file)).then(function(d){return Vyc(d)}).then(function(d){return GAc(a,b,d,c)},HAc)},GAc=function(a,b,c,d){var e=!!_.y(a.request,12),f="files";e&&(f+="/"+_.y(a.request,12));f=new _.lj(f);_.vj(f,"uploadType","multipart");_.vj(f,"supportsTeamDrives",!0);_.vj(f,"pinned",!!_.Q(a.request,13,!1));null!=_.P(a.request,8)&&_.vj(f,"convert",_.P(a.request,8));_.vj(f,"fields",_.tuc({fields:_.KK(b).filter(function(q){return 194!=q}),Cq:!1}));
zuc(f,a.request.te());var h=BAc(a.request,a.metadata),k=_.Wg();b={};b=(b["content-type"]=_.Ht('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());_.sK(d,_.Wj(a.request,_.Kl,28),[],null,b);a="--"+k;a=a+"\r\n"+Auc(l)+"\r\n"+h+"\r\n"+a+"\r\n"+Auc(p)+"\r\n"+c+"\r\n"+
a+"--";return{an:2,headers:b,method:e?"PUT":"POST",uri:f,body:a}},HAc=function(a){if(a instanceof _.WJb){var b=new _.Dc;_.nq(b,"fs.Error: "+a.message);a=(a=a.name)?_.YEa.get(a)||25:38;_.pJ(b,a);b=_.SB(b)}else b=_.rJ(a);return Promise.reject(b)};
_.nL=function(a,b,c,d){this.H=a;this.Mg=b;this.O=c;this.eg=d;this.ka=_.qK(a)||new _.bwc};_.nL.prototype.AE=function(a,b){try{return a.Lw instanceof _.jK?IAc(a.Lw,this.Mg,this.H):Promise.resolve(this.V(a.Lw,a.config,b))}catch(c){return c instanceof _.Ec?a=c.Tg:(a=new _.Dc,_.nq(a,"Error converting XHR: "+c.message),_.oq(a,c.stack),_.pJ(a,4)),Promise.reject(a)}};
_.nL.prototype.V=function(a,b,c){var d=0,e,f={},h="GET",k={},l=!1,p=!1;if(a instanceof _.zJ){h=(e=!!_.y(a,12))?"PUT":"POST";var q="files";e&&(q+="/"+_.y(a,12),k.pinned=!!_.Q(a,13,!1));null!=_.P(a,8)&&(k.convert=_.P(a,8));k.fields=_.tuc({fields:this.Ng(c),Cq:_.vI(_.JI(this.H)),GE:_.YI(this.H)});e=BAc(a);f["content-type"]="application/json";var r=a.te();p=!0;_.JK(k);_.JAc(this.H,k);_.sK(this.H,_.Wj(a,_.Kl,28),_.ge(a,3).concat([_.y(a,16),a.D1(),a.Ac()]),this.O,f)}else if(a instanceof _.IJ||a instanceof
_.XJ)a instanceof _.XJ?(l=a.ud(),_.Dj(a,2)&&(q="bytes="+_.y(a,2)+"-",_.Dj(a,3)&&(q+=_.y(a,3)),f.range=q)):l=a,q="files/"+l.getId(),_.y(l,2)&&(k.revisionId=_.y(l,2)),k.alt="media",f["X-Goog-Encode-Response-If-Executable"]="base64",_.sK(this.H,[_.Ll((new _.Kl).Ob(l.getId()),_.y(l,3))],[l.getId()],this.O,f),p=l=!0;else if(a instanceof _.LJ||a instanceof _.zA){if(a instanceof _.LJ)q=_.y(a,1),a=_.B(a,_.zA,2);else if(a instanceof _.zA)q=0,_.$K(this.eg,190196159);else throw Error("bg");p=a.qn()[q];q="files/"+
p;r=_.wa(this.Ng(c),this.Ng(c,a.O()));_.Ea(r);k.fields=_.tuc({fields:r,Cq:_.vI(_.JI(this.H)),GE:_.YI(this.H)});_.JK(k);_.KAc(this.H,k);_.LAc(this.H,k);this.W(p,k);r=a.te();p=!0;_.P(a,7)&&(b.LBa=!0);_.sK(this.H,_.Wj(a,_.Kl,11),a.qn(),this.O,f)}else if("undefined"!=typeof _.Juc&&a instanceof _.Juc)q="files/generateCseToken",a.id&&(k.fileId=a.id),k.role=a.role,r=a.H;else if("undefined"!=typeof _.wAc&&a instanceof _.wAc)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 Nuc){d=4;h="PUT";q=a.W;a.contentType&&(f["content-type"]=a.contentType);if(a.O>=a.H){var v=a.H;b=a.O;f["content-range"]=a.V?_.Ht("bytes %d-%d/%d",v,b,b+1):_.Ht("bytes %d-%d/*",v,b)}v=a.blob;p=!0}else a instanceof Muc?(d=2,h=(e=!!_.y(a.request,12))?"PUT":"POST",q="files",e&&(q+="/"+_.y(a.request,12)),k.uploadType="resumable",k.pinned=!!_.Q(a.request,13,!1),null!=_.P(a.request,8)&&(k.convert=_.P(a.request,8)),k.fields=_.tuc({fields:this.Ng(c).filter(function(z){return 194!=
z}),Cq:_.vI(_.JI(this.H)),GE:_.YI(this.H)}),_.JK(k),e=BAc(a.request,a.metadata),f["content-type"]="application/json",null!=a.request.getMimeType()&&(f["x-upload-content-type"]=a.request.getMimeType()),_.sK(this.H,[],_.ge(a.request,3),this.O,f),r=a.request.te(),p=!0):a instanceof _.Ruc?(q="about",k.fields="kind",r=a.H,p=!0):_.MAc(a);p&&_.NAc(c,k);0!=d||l||r&&_.y(r,1)||_.$K(this.eg,74438989);return _.OAc(this,d,q,k,f,h,r,e,v)};
_.OAc=function(a,b,c,d,e,f,h,k,l){c=new _.lj(c);[10,12,13].includes(b)||zuc(c,h);_.Q(a.ka,11,!1)&&(a=a.H.Xi())&&(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,_.wj(c,a,h);return{an:b,headers:e,method:f,uri:c,body:k?JSON.stringify(k):l}};_.KAc=function(a,b){_.Q(a.ig(),23,!1)&&(b.includePermissionsForView="published")};_.nL.prototype.W=function(){};
_.LAc=function(a,b){_.Q(a,14,!1)&&(b.useLegacyDomainPermissionBehavior=!1)};_.JAc=function(a,b){_.Q(a,3,!1)&&(b.enforceSingleParent=!0)};_.NAc=function(a,b){a&&a.length?(b.retryCount=a.length,b.msSinceLastAttempt=Date.now()-_.ia(a).bRb):b.retryCount=0};_.nL.prototype.Ng=function(a,b){b||(b=_.KK(this.Mg));0<a.length&&(b=b.slice(0),_.jaa(b,function(c){return Jwc.includes(c)}));return b};_.MAc=function(a){var b=_.pJ(new _.Dc,4);throw new _.Ec("ToXhrConverter: Unsupported request type: "+Tuc(a),b);};
_.oL=function(a,b,c,d,e,f){_.Ei.call(this);var h=this;this.O=a;this.V=b;this.Ba=c;this.W=d;this.va=e;this.ta=f;this.jj={};this.ha={};this.eg=null;_.Re(this,function(){h.fG()})};_.K(_.oL,_.Ei);_.oL.prototype.mQ=function(){return _.QI()};
_.oL.prototype.upload=function(a,b,c,d){vyc(this.V,"UploadTotalCount");var e=a.hj();if(e&&this.jj[e])throw new _.Ec("Upload requested with a duplicate request ID.");var f=_.ge(a,10);if(f&&f.length){if(1!==f.length)throw new _.Ec("Multi-parented uploads are not supported.");var h=this.jj[f[0]];if(!h)throw new _.Ec("The parent upload request must precede this request.");}!_.y(a,26)&&b&&b.lastModified&&_.w(a,26,b.lastModified);e||(e=this.mQ(),_.w(a,9,e));a=a.clone();f=PAc(this,e);this.jj[e]={request:a,
file:b,wf:f,FM:!1,Bu:0,success:!1,zE:!1,children:[],metadata:c,kla:void 0,hQ:d};h?QAc(this,e,h):this.ka(e);return f.en()};
var PAc=function(a,b){var c=new _.ei;c.mg(_.Eb(a.Fa,b),_.Eb(a.Ha,b),a);return c},QAc=function(a,b,c,d){var e=a.jj[b];c.children.push(b);_.Ea(c.children);c.wf.then(function(f){if(1===f.Bb()&&(f=f.Ac(),_.ge(e.request,3).push(f),_.NI(e.request,10),!c.zE||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.wf.Jd(_.XI(f)?f:Error(f))})};
_.oL.prototype.Fa=function(a,b){vyc(this.V,"UploadSuccessCount");a=this.jj[a];a.success=1===b.Bb();(b=a.kla)&&!a.zE&&(Bwc(Dwc(sxc(b),a.Bu),!0),b.Aj())};_.oL.prototype.Ha=function(a,b){var c=_.B(this.O,_.oJ,58);c&&_.Q(c,1,!1)&&(this.ha[a]=b);vyc(this.V,"UploadFailureCount");c=this.jj[a];(a=c.kla)&&!c.zE&&(Bwc(Dwc(sxc(a),c.Bu),!1),b=(c=b&&b.Tg)&&c.Ak(),c=c&&c.Kp(),b?Cwc(sxc(a),RAc.get(b)||13):c&&Cwc(sxc(a),SAc.get(c)||0),a.Aj())};
_.oL.prototype.ka=function(a){var b=this.jj[a];if(!b.FM){b.FM=!0;a=this.jj[a];var c=a.request,d=_.B(this.O,_.oJ,58);d&&_.Q(d,4,!1)&&(d=c.getTitle().match(TAc))&&(!d[1]||a.Bu<Number(d[1].substr(1)))&&(c=c.clone(),_.sa(_.ge(c,3),"$#@! Invalid parent ID."));a=c;c=(c=b.request.Sz())?_.y(c,1)||0:0;var e=b.file&&b.file.size||c;c=this.O.ig();d=_.bk(c,33,1048576);d=b.file&&b.file&&e>d?2:b.file?1:3;if(this.ta&&3!==d){var f=this.ta.H(106012);if(f){b.kla=f;f=sxc(f);f=_.w(f,1,2===d?2:1);f=_.w(f,4,!!b.metadata);
var h=!!_.y(a,12);f=_.w(f,5,h);e=_.w(f,6,e);c=_.bk(c,32,1073741824);_.w(e,7,c)}}switch(d){case 2:b.file&&UAc(this,new _.Ouc(a,b.file,b.hQ,b.metadata),b.wf,a.hj());break;case 1:b.file&&(c=b.wf,d=b.file,e=b.metadata,b=b.hQ,f=_.B(this.O,_.awc,2),UAc(this,new _.jK(a,d,b,f&&_.zK(f)?e:void 0),c,a.hj()));break;case 3:UAc(this,a,b.wf,a.hj());break;default:throw new _.Ec("Upload type ${uploadType} not supported.");}}};
var UAc=function(a,b,c,d){jyc(a.Ba,d,a.ma.bind(a,d));_.di(a.W.then(function(e){return e.Qe(b,{requestId:d})}).then(null,function(e){return VAc(a,b,e)}),function(){kyc(a.Ba,[d])}).then(c.callback,c.Jd,c)},VAc=function(a,b,c){var d=_.SB(c),e=b instanceof _.jK&&b.request.Ac()||"";c=d.Tg;if(e&&8===c.Ak()){a.log("Create failed with 409 Conflict, re-querying: "+e);var f=_.BA(new _.zA,[e]);return _.ki(a.W.then(function(h){return h.Qe(f)}).then(function(h){h=h.jd().wd()[0];var k=b.request;if(h&&!h.Xh()&&
(h.getMimeType()||"").replace(/\s/g,"")===(k.getMimeType()||"").replace(/\s/g,"")&&h.getTitle()===k.getTitle())return a.log("Matching item found for: "+e),_.Lwc((new _.oK).setItem(h),e).Dc(1);a.log("No matching item found for: "+e);return _.$h(d)}))}return _.ni(d)};_.g=_.oL.prototype;
_.g.cancel=function(a){var b=this,c=this.jj[a];if(c&&(!c.zE||0!==c.children.length))if(c.zE=!0,c.wf.kg())this.log('[Cancel] Response for "'+c.request.getTitle()+'" already received. Cannot cancel.'+(c.children.length?" Attempting to cancel children.":"")),_.Ja(c.children,this.cancel,this);else{var d=c.kla;d&&(Cwc(Bwc(Dwc(sxc(d),c.Bu),!1),2),d.Aj());var e=_.ci();c.FM?this.W.then(function(f){return void e.resolve(f.cancel(a))}):(c.FM=!0,c.wf.callback(Uuc(c.request)),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.fG=function(){var a=this;_.Ma(this.jj,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.jj[f]){var h=[];do{h.push(f);var k=(_.ge(b.jj[f].request,10)||[])[0];if(k){var l=b.jj[k];if(l.success||!l.wf.kg()||e[k])break;else if(!c.has(k)){e[f]=new _.Ec("Unable to retry request due to failed parent upload.");break}}f=k}while(f);_.ja(h,function(p){var q=b.jj[p];q.Bu++;if(!e[p])if(!q.wf.kg()||q.success)e[p]=new _.Ec("Unable to retry request.");else{var r=(_.ge(q.request,10)||[])[0];e[r]instanceof _.Ec?
e[p]=e[r]:(q.wf=PAc(b,p),q.FM=!1,q.zE=!1,(r=r?b.jj[r]:null)?QAc(b,p,r,!0):d.push(p),e[p]=q.wf.en())}})}else e[f]=new _.Ec("Retry request with unknown ID.")});a=a.map(function(f){f=e[f];return f instanceof _.ei?f:_.ni(f)});_.Ja(d,this.ka,this);return a};_.g.log=function(){this.isDisposed()};_.g.ud=function(a){return this.jj[a]};var TAc=/^uploadTestFailMe(\.[1-9])?$/,SAc=new Map([[2,12],[5,1],[27,3],[29,4],[30,5],[31,6],[35,7],[36,8],[37,9],[38,10],[25,11]]),RAc=new Map([[3,14]]);

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1hg");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1hh");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1hi");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1i4");

_.WAc=function(a,b){return _.w(a,1,b)};_.XAc=function(a,b){return _.I(a,1,b)};_.YAc=function(a,b){return _.w(a,2,b)};_.ZAc=function(a,b){return _.I(a,3,b)};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1h9");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1hd");

var $Ac,aBc;$Ac=[1];_.pL=function(a){_.J.call(this,a,-1,$Ac)};_.K(_.pL,_.J);_.pL.prototype.O=function(){return _.ge(this,1)};_.qL=function(a){_.J.call(this,a,-1,aBc)};_.K(_.qL,_.J);_.qL.prototype.Bb=function(){return _.y(this,1)};_.qL.prototype.Dc=function(a){return _.w(this,1,a)};_.qL.prototype.Pi=function(){return _.Wj(this,_.jl,2)};_.bBc=function(a,b){return _.Lj(a,2,b)};_.qL.prototype.Bq=function(a,b){return _.Yj(this,2,a,_.jl,b)};_.qL.prototype.dg=function(){return _.y(this,4)};
_.cBc=function(a,b){return _.w(a,4,b)};aBc=[2];

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1i7");

_.sL=function(a,b){_.w(a,1,b)};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1i8");

var dBc;_.eBc=function(a){return _.Je(a).Ng(_.Q(a.get(_.hp),19,!1)?dBc:_.He)};dBc=[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];

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1h8");

var fBc,gBc,hBc,iBc,jBc,lBc,mBc,nBc,oBc,pBc,rBc,sBc,tBc,uBc,vBc,vL,ABc,BBc,wL,xL,CBc,DBc,FBc,GBc,HBc,IBc,JBc,LBc,MBc,NBc,OBc,PBc,QBc,RBc,TBc,VBc,bCc,dCc,gCc,hCc,kCc,nCc,BL,oCc,pCc,qCc,rCc,sCc,tCc,uCc,vCc,wCc,zCc,yCc,CCc,ECc,GCc,ICc,MCc,OCc,PCc,QCc,RCc,SCc,TCc,XCc,ZCc,$Cc,aDc,tL,bDc,cDc,xBc,wBc,yBc,zBc,zEc,FL,HL,FEc,QEc,TEc,UEc,VEc,YEc,ZEc,xCc,BFc,CFc,DFc,EFc,GFc,HFc,IFc,JFc,IL,KFc,JL,LFc,MFc,NFc,OFc,PFc,QFc,KL,RFc,SFc,TFc,UFc,VFc,WFc,LL,$Fc,aGc,bGc,cGc,kBc,dGc,eGc,fGc,iGc,nHc,oHc,qHc,rHc,tHc,uHc,
vHc,wHc,zHc,BHc,LHc,UIc,YBc,VIc,WIc,XIc,$Ic,gJc,hJc,vNc,wNc,ENc,ONc,XNc,eOc,kOc,rOc,tOc,yOc,EOc;fBc=function(a){a={Title:a.getTitle(),Type:a.getMimeType(),Parents:_.ge(a,3),Convert:_.P(a,8),ID:a.hj()};var b=[];_.Ma(a,function(c,d){c&&b.push(d+": "+c)});return b.join("; ")};
gBc=function(a){var b=[];b.push(fBc(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.Bu&&b.push("# of retries by client: "+a.Bu);var d="";a.FM?a.wf.kg()?a.wf.mg(function(){d="Completed successfully."},function(e){d=e instanceof _.fi?"Canceled.":"Completed with failure. See attachment."}):d="In progress.":d="Not yet executed.";b.push("State: "+
d);return b.join("\n")};
hBc=function(a,b,c,d,e,f){var h=_.Ht("Drive Upload Report: %d/%d failed",_.Qa(f),_.Qa(e));a=a.ig();d.push("Batch query interval: "+_.bk(a,12,10)+"ms");d.push("Max resumable upload chunk size: "+_.bk(a,32,1073741824)/1024/1024+" MiB");d.push("Max batch upload file size: "+_.bk(a,33,1048576)/1024/1024+" MiB");d.push("Max files in an upload batch: "+_.bk(a,35,10)+" files");d.push("Max files in a non-upload batch: "+_.bk(a,10,50)+" files");d=d.join("\n");var k=[],l=[];_.Ma(e,function(p){l.push(gBc(p))});k.push({name:"AllUploadRequests.txt",
content:l.join("\n---------\n")});k.push({name:"DataserviceLogs.txt",content:_.Zwc(b)});_.Ma(f,function(p,q){var r=k.push;q=e[q].request;q=_.Ht('ErrorResponseFor"%s"(ID:%s).txt',q.getTitle()||"",q.hj()||"");var v=p.Tg;v=v?_.y(v,4):"No detail.";r.call(k,{name:q,content:p.toString()+"\n"+v})});return{title:h,description:d,UP:k,od:152391,T8:c,c0:361003}};iBc=function(a){return Array.prototype.concat.apply([],arguments)};jBc=function(a,b,c){c=_.Ga(a,b,c);return 0>c?(_.Aa(a,-(c+1),0,b),!0):!1};
lBc=function(a,b){var c=new _.pL,d=new Set;if(6===a){a=_.m(b);for(b=a.next();!b.done;b=a.next())(b=b.value)?(b=_.X7a.get(b.tv()))&&d.add(b):d.add(1);0===d.size&&d.add(0)}kBc(c,[].concat(_.Bd(d)));return c};
mBc=function(a){var b=[],c={};a=_.m(a);for(var d=a.next();!d.done;c={Eea:c.Eea},d=a.next())if(d=d.value){c.Eea=new Map;[].concat(_.Bd(_.kl(d)),[d.Am(),d.Tt(),d.Kq()]).forEach(function(p){return function(q){q&&p.Eea.set(tL(q),q)}}(c));for(var e=[],f=_.m(c.Eea.values()),h=f.next();!h.done;h=f.next())if(h=h.value){var k=h.getName(),l=h.getEmail();e.push(tL(h)+"-"+((k?k.length:k)+"-")+((l?l.length:l)+"-")+_.Uk(h))}b.push(d.getId()+","+d.tv()+","+(e.length?e.join(","):"-"))}return b.length?"People: "+
b.join("|"):""};nBc=function(a){var b=new _.Xo;b.append("kind,largestChangeId,nextPageToken,");b.append("items(deleted,fileId,id,kind,");b.append(_.tJ(a,!0,"file"));a.Y6&&(b.append(",teamDriveId,teamDrive("),b.append(a.Y6),b.append(")"));b.append(")");return b.toString()};oBc=function(a){var b=new _.Xo;b.append("kind,nextPageToken,items(");b.append(_.tJ(a,!0));b.append("),incompleteSearch");a.Y6&&(b.append(","),b.append(a.Y6));return b.toString()};
pBc=function(a,b){for(var c=0;c<b.length;c++){var d=a,e=b[c],f=d.getCapabilities(),h=_.B(d,_.tK,138),k=_.B(d,_.dl,111),l=_.B(d,_.uK,27),p=_.pl(d),q=d.Gf(),r=d.jg(),v=_.B(d,_.wK,103);switch(e){case 227:_.qb(d,144);break;case 228:_.qb(d,145);break;case 74:_.Mj(d,83);break;case 188:_.qb(d,137);break;case 149:_.NI(d,128);break;case 148:_.Mj(d,127);break;case 138:_.qb(d,126);break;case 184:_.NI(d,135);break;case 76:f&&_.qb(f,1);break;case 223:f&&_.qb(f,54);break;case 208:f&&_.qb(f,48);break;case 185:f&&
_.qb(f,40);break;case 224:f&&_.qb(f,55);break;case 213:f&&_.qb(f,50);break;case 156:f&&_.qb(f,39);break;case 61:f&&_.qb(f,2);break;case 216:f&&_.qb(f,52);break;case 217:f&&_.qb(f,53);break;case 77:f&&_.qb(f,4);break;case 134:f&&_.qb(f,34);break;case 147:f&&_.qb(f,38);break;case 81:f&&_.qb(f,10);break;case 82:f&&_.qb(f,11);break;case 114:f&&_.qb(f,27);break;case 133:f&&_.qb(f,33);break;case 202:f&&_.qb(f,47);break;case 132:f&&_.qb(f,32);break;case 101:f&&_.qb(f,20);break;case 201:f&&_.qb(f,46);break;
case 131:f&&_.qb(f,31);break;case 200:f&&_.qb(f,45);break;case 130:f&&_.qb(f,30);break;case 93:f&&_.qb(f,17);break;case 191:f&&_.qb(f,44);break;case 146:f&&_.qb(f,37);break;case 90:f&&_.qb(f,16);break;case 78:f&&_.qb(f,7);break;case 186:f&&_.qb(f,41);break;case 222:f&&_.qb(f,51);break;case 85:f&&_.qb(f,12);break;case 137:f&&_.qb(f,36);break;case 209:f&&_.qb(f,49);break;case 79:f&&_.qb(f,8);break;case 189:f&&_.qb(f,42);break;case 190:f&&_.qb(f,43);break;case 80:f&&_.qb(f,9);break;case 135:f&&_.qb(f,
35);break;case 102:f&&_.qb(f,21);break;case 69:_.qb(d,74);break;case 194:h&&_.Kj(h,2);break;case 193:h&&_.qb(h,1);break;case 1004:_.qb(d,108);break;case 136:_.Mj(d,125);break;case 115:k&&_.qb(k,1);break;case 116:k&&_.qb(k,2);break;case 34:_.qb(d,30);f&&_.qb(f,3);break;case 9:_.qb(d,10);break;case 91:_.Kj(d,91);break;case 43:_.qb(d,42);_.qb(d,43);break;case 187:_.qb(d,136);break;case 26:_.qb(d,24);break;case 108:_.NI(d,104);break;case 41:_.qb(d,40);f&&_.qb(f,5);break;case 42:_.qb(d,41);break;case 1005:_.Mj(d,
117);break;case 59:f&&_.qb(f,6);break;case 28:_.qb(d,26);break;case 44:_.qb(d,45);break;case 13:_.qb(d,14);break;case 48:_.qb(d,36);break;case 38:_.qb(d,34);break;case 49:_.NI(d,50);break;case 51:_.qb(d,53);break;case 104:_.qb(d,102);break;case 39:_.qb(d,35);break;case 87:_.qb(d,76);break;case 100:_.qb(d,98);break;case 72:_.qb(d,78);break;case 5:_.qb(d,6);break;case 20:_.qb(d,21);break;case 21:break;case 29:l&&_.qb(l,1);break;case 31:l&&_.qb(l,3);break;case 92:l&&_.qb(l,4);break;case 30:l&&_.qb(l,
2);break;case 16:_.Kj(d,17);break;case 12:_.qb(d,13);break;case 211:p&&_.qb(p,2);break;case 212:p&&_.qb(p,3);break;case 220:p&&_.qb(p,5);break;case 157:r&&_.Mj(r,8);break;case 3:_.qb(d,4);break;case 11:_.qb(d,12);break;case 10:_.qb(d,11);break;case 50:_.qb(d,49);_.qb(d,51);_.Kj(d,81);break;case 18:_.qb(d,19);break;case 95:_.qb(d,93);break;case 58:_.qb(d,63);break;case 14:_.Mj(d,15);break;case 103:_.qb(d,101);break;case 1:_.NI(d,2);break;case 96:_.qb(d,94);break;case 1003:_.Mj(d,107);break;case 75:_.Kj(d,
85);break;case 94:_.qb(d,92);break;case 45:_.qb(d,46);break;case 124:_.qb(d,118);break;case 125:_.qb(d,119);break;case 1002:_.Kj(d,100);break;case 32:_.qb(d,28);break;case 67:_.qb(d,70);break;case 68:_.qb(d,71);break;case 73:_.qb(d,79);break;case 71:_.qb(d,77);break;case 221:r&&_.qb(r,9);break;case 210:_.qb(d,140);break;case 7:_.qb(d,8);break;case 122:_.Kj(d,109);break;case 66:_.qb(d,69);break;case 33:_.qb(d,29);break;case 24:_.qb(d,22);break;case 25:_.qb(d,23);break;case 46:_.Kj(d,47);break;case 192:q&&
_.qb(q,6);break;case 159:q&&_.Kj(q,5);break;case 154:q&&_.qb(q,1);break;case 158:q&&_.qb(q,4);break;case 155:q&&_.qb(q,3);break;case 52:_.NI(d,56);break;case 56:_.qb(d,61);break;case 55:_.Mj(d,60);break;case 4:_.qb(d,5);break;case 35:_.qb(d,31);break;case 57:_.qb(d,62);break;case 83:_.qb(d,72);break;case 84:_.Kj(d,86);break;case 19:_.qb(d,20);_.qb(d,44);_.qb(d,90);break;case 2:_.qb(d,3);break;case 6:_.qb(d,7);break;case 98:_.qb(d,96);break;case 97:_.Kj(d,95);break;case 27:_.qb(d,25);break;case 70:_.qb(d,
75);break;case 107:v&&_.qb(v,3);break;case 106:v&&_.qb(v,2);break;case 105:v&&_.qb(v,1);break;case 8:_.qb(d,9);break;case 126:_.NI(d,120);break;default:throw Error("Qc`"+e);}}};rBc=function(a,b){if(0!=a.length){var c=new Set([].concat(_.Bd(a),_.Bd(qBc)));a=[].concat(_.Bd(_.reb.keys())).filter(function(e){return!c.has(e)});for(var d=0;d<b.length;d++)pBc(b[d],a)}};
sBc=function(a,b){var c=a.getCapabilities()||new _.Yk,d=_.B(a,_.tK,138),e=_.B(a,_.dl,111),f=_.B(a,_.uK,27),h=_.pl(a),k=a.Gf(),l=a.jg(),p=_.B(a,_.wK,103);switch(b){case 227:return null!=_.P(a,144);case 228:return null!=_.y(a,145);case 74:return 0<a.fu().length;case 188:return null!=_.P(a,137);case 149:return 0<_.ge(a,128).length;case 148:return 0<a.Lya().length;case 138:return null!=a.c9();case 184:return 0<_.ge(a,135).length;case 76:return null!=_.Zk(c);case 223:return null!=_.P(c,54);case 208:return null!=
_.P(c,48);case 185:return null!=_.P(c,40);case 224:return null!=_.P(c,55);case 213:return null!=_.P(c,50);case 156:return null!=_.P(c,39);case 61:return null!=_.P(c,2);case 216:return null!=_.P(c,52);case 217:return null!=_.P(c,53);case 77:return null!=_.P(c,4);case 134:return null!=_.P(c,34);case 147:return null!=_.P(c,38);case 81:return null!=_.P(c,10);case 82:return null!=_.P(c,11);case 114:return null!=_.P(c,27);case 133:return null!=_.P(c,33);case 202:return null!=_.P(c,47);case 132:return null!=
_.P(c,32);case 101:return null!=_.P(c,20);case 201:return null!=_.P(c,46);case 131:return null!=_.P(c,31);case 200:return null!=_.P(c,45);case 130:return null!=_.P(c,30);case 93:return null!=_.P(c,17);case 191:return null!=_.P(c,44);case 146:return null!=_.P(c,37);case 90:return null!=_.Fe(c);case 78:return null!=_.P(c,7);case 186:return null!=_.P(c,41);case 222:return null!=_.P(c,51);case 85:return null!=_.P(c,12);case 137:return null!=_.P(c,36);case 209:return null!=_.P(c,49);case 79:return null!=
_.P(c,8);case 189:return null!=_.P(c,42);case 190:return null!=_.P(c,43);case 80:return null!=_.P(c,9);case 135:return null!=_.P(c,35);case 102:return null!=_.P(c,21);case 69:return null!=_.P(a,74);case 194:return null!=d&&null!=_.B(d,_.Dvc,2);case 193:return null!=d&&null!=_.y(d,1);case 1004:return null!=_.P(a,108);case 136:return 0<a.S0().length;case 115:return null!=e&&null!=_.P(e,1);case 116:return null!=e&&null!=_.y(e,2);case 34:return null!=_.P(a,30)||null!=_.P(c,3);case 9:return null!=a.YC();
case 91:return null!=a.Kq();case 43:return null!=_.y(a,42)||null!=_.y(a,43);case 187:return null!=a.Bj();case 26:return null!=a.Cf();case 108:return 0<_.ge(a,104).length;case 41:return null!=_.P(c,5);case 42:return null!=_.y(a,41);case 1005:return 0<_.ol(a).length;case 59:return null!=_.P(c,6);case 28:return null!=a.JI();case 44:return null!=_.y(a,45);case 13:return null!=a.XL();case 48:return null!=_.P(a,36);case 38:return null!=a.Zi();case 49:return 0<_.ge(a,50).length;case 51:return null!=_.P(a,
53);case 104:return null!=_.P(a,102);case 39:return null!=a.Pja();case 87:return null!=_.ll(a);case 100:return null!=_.P(a,98);case 72:return null!=_.y(a,78);case 5:return null!=_.P(a,6);case 20:return null!=a.qf();case 21:return null!=a.getId();case 29:return!(!f||null==_.y(f,1));case 31:return!(!f||null==_.y(f,3));case 92:return!(!f||null==_.y(f,4));case 30:return!(!f||null==f.Ee());case 16:return null!=a.Am();case 12:return null!=a.sz();case 211:return null!=h&&null!=_.P(h,2);case 212:return null!=
h&&null!=_.P(h,3);case 220:return null!=h&&null!=_.P(h,5);case 157:return!(!l||!_.Wj(l,_.gl,8));case 3:return null!=a.getMimeType();case 11:return null!=a.wB();case 10:return null!=a.Aq();case 50:return null!=_.P(a,49)||null!=_.P(a,51)||null!=a.Tm();case 18:return null!=a.Mp();case 14:return 0<_.kl(a).length;case 95:return null!=a.jm();case 58:return null!=_.P(a,63);case 103:return null!=_.y(a,101);case 1:return 0<a.wk().length;case 96:return null!=_.P(a,94);case 1003:return 0<_.nl(a).length;case 75:return null!=
a.$v();case 94:return null!=a.dN();case 45:return null!=a.Dw();case 124:return null!=_.P(a,118);case 125:return null!=_.y(a,119);case 1002:return null!=_.ml(a);case 32:return null!=a.Tu();case 67:return null!=a.VJ();case 68:return null!=_.y(a,71);case 73:return null!=_.y(a,79);case 71:return null!=a.u1();case 221:return null!=l&&null!=_.P(l,9);case 210:return null!=_.ql(a);case 7:return null!=a.L6();case 122:return null!=_.uL(a);case 66:return null!=_.y(a,69);case 33:return null!=_.P(a,29);case 24:return null!=
a.Jj();case 25:return null!=a.By();case 46:return null!=a.Tt();case 192:return null!=k&&null!=_.P(k,6);case 159:return null!=k&&null!=_.le(k);case 154:return null!=k&&null!=_.y(k,1);case 158:return null!=k&&null!=_.oe(k);case 155:return null!=k&&null!=_.y(k,3);case 52:return 0<_.ge(a,56).length;case 55:return 0<a.DB().length;case 56:return null!=_.y(a,61);case 4:return null!=a.gB();case 35:return null!=_.P(a,31);case 57:return null!=_.y(a,62);case 83:return null!=a.yc();case 84:return null!=_.B(a,
_.vK,86);case 2:return null!=a.getTitle();case 19:return null!=a.Zx()||null!=_.P(a,44)||null!=_.y(a,90);case 6:return null!=a.Xh();case 98:return null!=a.aw();case 97:return null!=a.lD();case 27:return null!=a.Zo();case 70:return null!=a.ij();case 107:return null!=p&&null!=_.y(p,3);case 106:return null!=p&&null!=_.y(p,2);case 105:return null!=p&&null!=p.Ee();case 8:return null!=_.P(a,9);case 126:return 0<_.ge(a,120).length;default:throw Error("Rc`"+b);}};
tBc=function(a,b){return b.every(function(c){return sBc(a,c)})};uBc=function(a,b,c){c=void 0===c?[]:c;var d=a.concat(c);return b.every(function(e){return(new Set(d)).has(e)})};vBc=function(a,b){var c=new Set(b.concat(_.suc));return a.filter(function(d){return!c.has(d)})};
vL=function(a,b,c){var d,e;b=b.clone();for(var f=b.getCapabilities(),h=_.m(c),k=h.next();!k.done;k=h.next()){var l=k.value;if(sBc(b,l))if(_.veb.has(l)){if(f){var p=a.getCapabilities()||new _.Yk;_.yK(a,p);switch(l){case 76:_.hvc(p,_.Zk(f));break;case 223:var q=_.P(f,54);_.w(p,54,q);break;case 208:_.Cvc(p,_.P(f,48));break;case 185:var r=_.P(f,40);_.w(p,40,r);break;case 224:var v=_.P(f,55);_.w(p,55,v);break;case 213:var z=_.P(f,50);_.w(p,50,z);break;case 156:var A=_.P(f,39);_.w(p,39,A);break;case 61:var C=
_.P(f,2);_.w(p,2,C);break;case 216:var G=_.P(f,52);_.w(p,52,G);break;case 217:var H=_.P(f,53);_.w(p,53,H);break;case 77:_.ivc(p,_.P(f,4));break;case 134:var L=_.P(f,34);_.w(p,34,L);break;case 147:var M=_.P(f,38);_.w(p,38,M);break;case 81:_.ovc(p,_.P(f,10));break;case 82:_.pvc(p,_.P(f,11));break;case 114:var R=_.P(f,27);_.w(p,27,R);break;case 133:_.xvc(p,_.P(f,33));break;case 202:_.Bvc(p,_.P(f,47));_.wvc(p,_.P(f,32));break;case 132:_.wvc(p,_.P(f,32));break;case 101:_.tvc(p,_.P(f,20));break;case 201:_.Avc(p,
_.P(f,46));break;case 131:_.vvc(p,_.P(f,31));break;case 200:var V=_.P(f,45);_.w(p,45,V);break;case 130:var ha=_.P(f,30);_.w(p,30,ha);break;case 93:_.svc(p,_.P(f,17));break;case 191:var ba=_.P(f,44);_.w(p,44,ba);break;case 146:var oa=_.P(f,37);_.w(p,37,oa);break;case 90:_.rvc(p,_.Fe(f));break;case 78:_.lvc(p,_.P(f,7));break;case 186:var qa=_.P(f,41);_.w(p,41,qa);break;case 222:var Ba=_.P(f,51);_.w(p,51,Ba);break;case 85:_.qvc(p,_.P(f,12));break;case 137:var Ka=_.P(f,36);_.w(p,36,Ka);break;case 209:var ib=
_.P(f,49);_.w(p,49,ib);break;case 79:_.mvc(p,_.P(f,8));break;case 189:_.yvc(p,_.P(f,42));break;case 190:_.zvc(p,_.P(f,43));break;case 80:_.nvc(p,_.P(f,9));break;case 135:var Xa=_.P(f,35);_.w(p,35,Xa);break;case 102:_.uvc(p,_.P(f,21));break;case 34:var Hb=_.P(b,30);_.w(a,30,Hb);var $b=_.P(f,3);_.w(p,3,$b);break;case 41:var Bc=_.P(b,40);_.w(a,40,Bc);_.jvc(p,_.P(f,5));break;case 59:_.kvc(p,_.P(f,6))}}}else if(_.web.has(l)){var td=_.B(b,_.tK,138);if(td){var Xd=_.B(a,_.tK,138)||new _.tK;_.I(a,138,Xd);
switch(l){case 194:var Jd=_.B(td,_.Dvc,2);_.I(Xd,2,Jd);break;case 193:var qf=_.y(td,1);_.w(Xd,1,qf)}}}else if(_.xeb.has(l)){var ud=_.B(b,_.dl,111);if(ud){var Cb=_.B(a,_.dl,111)||new _.dl;_.I(a,111,Cb);switch(l){case 115:_.Evc(Cb,_.P(ud,1));break;case 116:_.Fvc(Cb,_.y(ud,2))}}}else if(_.yeb.has(l)){var ne=_.B(b,_.uK,27);if(ne){var Xg=_.B(a,_.uK,27)||new _.uK;_.I(a,27,Xg);switch(l){case 29:var se=_.y(ne,1);_.w(Xg,1,se);break;case 31:Xg.yh(_.y(ne,3));break;case 92:var li=_.y(ne,4);_.w(Xg,4,li);break;
case 30:Xg.zh(ne.Ee())}}}else if(_.zeb.has(l)){var Wi=_.pl(b);if(Wi){var vf=_.pl(a)||new _.Sna;_.I(a,139,vf);switch(l){case 211:var Ek=_.P(Wi,2);_.w(vf,2,Ek);break;case 212:var Vh=_.P(Wi,3);_.w(vf,3,Vh);break;case 220:var Vf=_.P(Wi,5);_.w(vf,5,Vf)}}}else if(_.Aeb.has(l)){var Yd=b.Gf();if(Yd){var Yg=a.Gf()||new _.aoa;_.I(a,132,Yg);switch(l){case 192:var Nh=_.P(Yd,6);_.w(Yg,6,Nh);break;case 159:var yi=_.le(Yd);_.I(Yg,5,yi);break;case 154:var $k=_.y(Yd,1);_.w(Yg,1,$k);break;case 158:var Wn=_.oe(Yd);
_.w(Yg,4,Wn);break;case 155:var Am=_.y(Yd,3);_.w(Yg,3,Am)}}}else if(_.Beb.has(l)){var Dh=b.jg();switch(l){case 157:if(Dh){var al=a.jg()||new _.Zna;wBc(a,al);xBc(al,_.Wj(Dh,_.gl,8))}break;case 221:if(Dh){var jk=a.jg()||new _.Zna;wBc(a,jk);var Zg=_.P(Dh,9);_.w(jk,9,Zg)}}}else if(_.Ceb.has(l)){var Pj=_.B(b,_.wK,103);if(Pj){var sj=_.B(a,_.wK,103)||new _.wK;_.I(a,103,sj);switch(l){case 107:var kk=_.y(Pj,3);_.w(sj,3,kk);break;case 106:sj.yh(_.y(Pj,2));break;case 105:sj.zh(Pj.Ee())}}}else switch(l){case 227:var Wh=
_.P(b,144);_.w(a,144,Wh);break;case 228:var Qj=_.y(b,145);_.w(a,145,Qj);break;case 74:var Rj=b.fu();_.Lj(a,83,Rj);break;case 188:var tj=_.P(b,137);_.w(a,137,tj);break;case 149:var lk=_.ge(b,128);_.Jj(a,128,lk);break;case 148:var bi=b.Lya();_.Lj(a,127,bi);break;case 138:var Bm=b.c9();_.w(a,126,Bm);break;case 184:var Sj=_.ge(b,135);_.Jj(a,135,Sj);break;case 69:var mk=_.P(b,74);_.w(a,74,mk);break;case 1004:var Cl=_.P(b,108);_.w(a,108,Cl);break;case 136:var Tj=b.S0();_.Lj(a,125,Tj);break;case 9:var wn=
b.YC();_.w(a,10,wn);break;case 91:_.Wvc(a,b.Kq());break;case 43:var bl=_.y(b,42);_.w(a,42,bl);var cl=_.y(b,43);_.w(a,43,cl);break;case 187:_.$vc(a,b.Bj());break;case 26:a.Yl(b.Cf());break;case 108:var Af=_.ge(b,104);_.Jj(a,104,Af);break;case 42:var Uj=_.y(b,41);_.w(a,41,Uj);break;case 1005:var em=_.ol(b);_.Lj(a,117,em);break;case 28:_.Ovc(a,b.JI());break;case 44:var Dl=_.y(b,45);_.w(a,45,Dl);break;case 13:var fm=b.XL();_.w(a,14,fm);break;case 48:var qc=_.P(b,36);_.w(a,36,qc);break;case 38:_.Qvc(a,
b.Zi());break;case 49:var Vj=_.ge(b,50);_.Jj(a,50,Vj);break;case 51:var Oh=_.P(b,53);_.w(a,53,Oh);break;case 104:var nk=_.P(b,102);_.w(a,102,nk);break;case 39:var Ph=b.Pja();_.w(a,35,Ph);break;case 87:var mi=_.ll(b);_.w(a,76,mi);break;case 100:var eg=_.P(b,98);_.w(a,98,eg);break;case 72:var Fk=_.y(b,78);_.w(a,78,Fk);break;case 5:var Hp=_.P(b,6);_.w(a,6,Hp);break;case 20:var Qh=b.qf();_.w(a,21,Qh);break;case 21:a.Ob(b.getId());break;case 16:_.Mvc(a,b.Am());break;case 12:var Eh=b.sz();_.w(a,13,Eh);
break;case 3:_.JG(a,b.getMimeType());break;case 11:var xn=b.wB();_.w(a,12,xn);break;case 10:_.O8b(a,b.Aq());break;case 50:var uj=_.P(b,49);_.w(a,49,uj);var yn=_.P(b,51);_.w(a,51,yn);var gm=b.Tm();_.I(a,81,gm);break;case 95:_.Yvc(a,b.jm());break;case 18:_.Nvc(a,b.Mp());break;case 58:var Gk=_.P(b,63);_.w(a,63,Gk);break;case 14:_.Lvc(a,_.kl(b));break;case 1:_.xK(a,b.wk());break;case 96:var Cm=_.P(b,94);_.w(a,94,Cm);break;case 103:var Po=_.y(b,101);_.w(a,101,Po);break;case 1003:yBc(a,_.nl(b));break;case 75:_.Vvc(a,
b.$v());break;case 94:_.Xvc(a,b.dN());break;case 45:var Ip=b.Dw();_.w(a,46,Ip);break;case 124:var rr=_.P(b,118);_.w(a,118,rr);break;case 125:var Nm=_.y(b,119);_.w(a,119,Nm);break;case 1002:var lm=_.ml(b).clone();(null===(d=_.ml(a))||void 0===d?0:_.P(d,3))&&_.w(lm,3,!0);(null===(e=_.ml(a))||void 0===e?0:_.P(e,4))&&_.w(lm,4,!0);_.I(a,100,lm);break;case 32:var tk=b.Tu();_.w(a,28,tk);break;case 67:var dp=b.VJ();_.w(a,70,dp);break;case 68:var Up=_.y(b,71);_.w(a,71,Up);break;case 73:var Kq=_.y(b,79);_.w(a,
79,Kq);break;case 71:var Nr=b.u1();_.w(a,77,Nr);break;case 210:var ku=_.ql(b);_.w(a,140,ku);break;case 7:_.Kvc(a,b.L6());break;case 122:zBc(a,_.uL(b));break;case 66:var Or=_.y(b,69);_.w(a,69,Or);break;case 33:var Zs=_.P(b,29);_.w(a,29,Zs);break;case 24:var qB=b.Jj();_.w(a,22,qB);break;case 25:var rB=b.By();_.w(a,23,rB);break;case 46:_.Svc(a,b.Tt());break;case 52:var Py=_.ge(b,56);_.Jj(a,56,Py);break;case 56:var lu=_.y(b,61);_.w(a,61,lu);break;case 55:a.KA(b.DB());break;case 4:a.Lv(b.gB());break;case 35:_.Pvc(a,
_.P(b,31));break;case 57:var Lq=_.y(b,62);_.w(a,62,Lq);break;case 83:_.Uvc(a,b.yc());break;case 84:var Mq=_.B(b,_.vK,86);_.I(a,86,Mq);break;case 98:a.Kca(b.aw());break;case 97:_.Zvc(a,b.lD());break;case 19:var sB=b.Zx();_.w(a,20,sB);_.Rvc(a,_.P(b,44));var ND=_.y(b,90);_.w(a,90,ND);break;case 2:a.setTitle(b.getTitle());break;case 6:a.On(b.Xh());break;case 27:_.P8b(a,b.Zo());break;case 70:var px=b.ij();_.w(a,75,px);break;case 8:var Qy=_.P(b,9);_.w(a,9,Qy);break;case 126:var qx=_.ge(b,120);_.Jj(a,120,
qx);break;default:throw Error("Sc`"+l);}}};ABc=function(a,b){var c=_.Iz[a];return b.filter(function(d){return!c||!c.has(d)})};BBc=function(a,b,c){a=ABc(c,a);return uBc(b,a,_.suc)};wL=function(a){return a?"application/vnd.google-apps.shortcut"===a.getMimeType():!1};xL=function(a,b){b=void 0===b?!1:b;if(!a)return!1;var c=a.getMimeType();return b&&wL(a)?(a=a.Gf(),!!a&&"application/vnd.google-apps.folder"===_.y(a,3)):"application/vnd.google-apps.folder"===c};
CBc=function(a){var b=a&&a.getId()||null;a&&wL(a)&&(a=(a=a.Gf())&&_.y(a,1))&&(b=a);return b};DBc=function(a){return!!_.P(a,31)&&!_.P(a,94)};FBc=function(a){return EBc.some(function(b){return sBc(a,b)})};GBc=function(a){return a.filter(function(b){return b}).some(function(b){return[4,5,2].includes(b.tv())})};HBc=function(a){return GBc(a.filter(function(b){return b}).map(function(b){return b.getItem()}))};
IBc=function(a,b){var c={};a=_.Na(a,function(d){return!!d});b=_.Na(b,function(d){return!!d});_.Ma(a,function(d,e){var f=b[e];f?_.ak(d,f)||(d=_.rEa(4).setItem(f),c[e]=d):(d=_.rEa(2).setItem(d),c[e]=d)});_.Ma(b,function(d,e){a[e]||(d=_.rEa(1).setItem(d),c[e]=d)});return c};JBc=function(a,b){return _.Qa(a)!==_.Qa(b)||!_.Ua(IBc(a,b))};_.KBc=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};
LBc=function(a,b){var c=_.juc(b||{}),d=new Map;a.forEach(function(e){d.set(e,c[e]||null)});return d};MBc=function(a,b){return 0<=b?!a||a<=b:!0};NBc=function(a,b){var c=a.Tm();c||(c=new _.Tna,b&&_.I(a,81,c));return c};OBc=function(a){if(xL(a))_.sL(NBc(a,!0),!0);else if(xL(a,!0)){var b=a.Gf();if(b=b&&_.le(b))_.sL(NBc(b,!0),!0),_.sL(NBc(a,!0),!0)}};PBc=function(a){return!!a.Tm()&&!xL(a)};
QBc=function(a){var b=[];_.Ja(a,function(c){if(3!=c.tv()){var d=c;if(null!=_.P(d,49)||null!=_.P(d,51)||null!=d.Tm())c=c.clone(),_.qb(c,49),_.qb(c,51),_.Kj(c,81);b.push(c)}});return b};RBc=function(a,b){if(b){var c=[];_.P(b,3)&&c.push("folder");var d=_.Iqc()&&4===b.getType()?"title_natural":_.ntc[b.getType()];b=_.ptc[b.nf()];d&&(b&&(d+=" "+b),c.push(d));c.length&&(a.orderBy=c.join(","))}};
TBc=function(a){for(var b=0;b<a.length;b++){var c=a[b];c&&c instanceof _.J?a[b]=c.Lc():c&&c instanceof _.SK?a[b]=c.Lc(function(d){return d?d.Lc():null}):c&&c instanceof SBc&&(a[b]=c.Lc())}};VBc=function(a){var b=a.slice(0),c=new Set(b);UBc.forEach(function(d){c.has(d)||b.push(d)});b.sort();return b};
bCc=function(a,b,c){var d=_.B(a,WBc,66);if(d){var e=_.y(d,1),f=_.EK(a);a=_.gJ(_.JI(a));e=new _.lj(e);var h=new _.lj(window.location);var k=h.O+"://"+h.H;null!=h.W&&(k+=":"+h.W);h=_.Cj(k,3);_.vj(e,"co",h);h=e.Ke();!f&&0<a&&(h+="u/"+a+"/");e.Li(h+"_/dataservice/cacheproxy");f=_.y(d,5)||"";if(_.Aqc(window.location.href,e.toString())&&f)return e=VBc(c),c=_.y(d,6),b="#"+b+"_",d=new _.yI,d.update(e.join(",")),b+=_.psc(d.digest()),c&&(b+="&jobset="+c),b=_.Wy(f+"?"+b),_.n.SharedWorker?(c=new SharedWorker(_.Jba(b),
void 0),b=new XBc(c.port),c.port.start()):b=new XBc(new Worker(_.Jba(b),void 0)),new YBc(new ZBc(b,!0),1,f,e);c=e.toString();b="cpiframe_"+_.QI();c=_.wh("IFRAME",{name:b,id:b,src:c});c.style.cssText=_.Mha(_.Wtc(_.fg("display: none;")));document.body.appendChild(c);c=_.tsc(e.O,void 0,e.H,e.W).toString();return new YBc(new ZBc($Bc(window.frames[b],c),!0),0,e.toString())}b=new aCc;return new YBc(new ZBc(b.O,!1),2,"inline",c,new ZBc(b.H,!1))};
dCc=function(a){var b=new cCc;if(a instanceof _.uJ)_.Xj(b,16,yL,a);else if(a instanceof _.vJ)_.Xj(b,1,yL,a);else if(a instanceof _.wJ)_.Xj(b,2,yL,a);else if(a instanceof _.zL)_.Xj(b,17,yL,a);else if(a instanceof _.zJ)_.Xj(b,3,yL,a);else if(a instanceof _.bL)_.Xj(b,4,yL,a);else if(a instanceof _.xJ)_.Xj(b,5,yL,a);else if(a instanceof _.DJ)_.Xj(b,6,yL,a);else if(a instanceof _.FJ)_.Xj(b,7,yL,a);else if(a instanceof _.GJ)_.Xj(b,8,yL,a);else if(a instanceof _.JJ)_.Xj(b,9,yL,a);else if(a instanceof _.WJ)_.Xj(b,
18,yL,a);else if(a instanceof _.$J)_.Xj(b,10,yL,a);else if(a instanceof _.aK)_.Xj(b,11,yL,a);else if(a instanceof _.bK)_.Xj(b,12,yL,a);else if(a instanceof _.hJ)_.Xj(b,13,yL,a);else if(a instanceof _.gK)_.Xj(b,14,yL,a);else if(a instanceof _.hK)_.Xj(b,15,yL,a);else throw new _.Ec("Unsupported request type");return b};
gCc=function(a){a=a.map(function(c){var d=new eCc;if(c instanceof _.uJ)_.Xj(d,6,AL,c);else if(c instanceof _.zL)_.Xj(d,7,AL,c);else if(c instanceof _.DJ)_.Xj(d,1,AL,c);else if(c instanceof _.$J)_.Xj(d,2,AL,c);else if(c instanceof _.aK)_.Xj(d,3,AL,c);else if(c instanceof _.hJ)_.Xj(d,4,AL,c);else if(c instanceof _.hK)_.Xj(d,5,AL,c);else throw new _.Ec("Unsupported request type");return d});var b=new fCc;_.Lj(b,1,a);return b};
hCc=function(a){return _.Wj(a,eCc,1).map(function(b){return _.ek(b,_.uJ,6,AL)||_.ek(b,_.DJ,1,AL)||_.ek(b,_.$J,2,AL)||_.ek(b,_.aK,3,AL)||_.ek(b,_.hJ,4,AL)||_.ek(b,_.hK,5,AL)||_.ek(b,_.zL,7,AL)})};kCc=function(a){var b=new iCc;if(a instanceof _.XD)_.Xj(b,1,jCc,a);else if(a instanceof _.YD)_.Xj(b,2,jCc,a);else throw new _.Ec("Unsupported request type");return b};
nCc=function(a){var b=new lCc;if(a instanceof _.AJ)_.Xj(b,1,mCc,a);else if(a instanceof _.HJ)_.Xj(b,2,mCc,a);else if(a instanceof _.iK)_.Xj(b,3,mCc,a);else throw new _.Ec("Unsupported request type");return b};BL=function(a,b,c){return b?new c(JSON.parse(a)):a};oCc=function(a){a={t:a.title,d:a.description,c:a.od,fi:a.T8,dti:a.c0,a:a.UP?a.UP.map(function(b){return JSON.stringify({n:b.name,c:b.content,ct:b.contentType,ec:b.B8})}):void 0};return JSON.stringify(a)};
pCc=function(a){a=JSON.parse(a);return{title:a.t,description:a.d,od:a.c,T8:a.fi,c0:a.dti,UP:a.a?a.a.map(function(b){b=JSON.parse(b);return{name:b.n,content:b.c,contentType:b.ct,B8:b.ec}}):void 0}};qCc=function(a,b,c){a=a?1:2;a=_.pd(_.od(new _.nd,12),a);var d=(new _.of).On(!0);d=_.w(d,17,!0);a=_.pf(d,a);c&&_.Ql(a,c);c=new _.ktc;b&&_.WAc(c,b);return _.XAc(_.ZAc(new _.ZI,a),c)};rCc=function(a){return a.map(function(b){return b.getItem()})};
sCc=function(a){var b={};a.forEach(function(c){b[c.getId()]=c.getItem()});return b};tCc=function(a,b){var c=new _.lj(_.D(b,16,"")+"/open"),d=a.getId();wL(a)&&(d=CBc(a));_.vj(c,"id",d);_.vj(c,"authuser",_.gJ(_.JI(b)));_.Q(b,89,!1)&&_.Dj(a,140)&&_.vj(c,"resourcekey",_.ql(a));return c.toString()};uCc=function(a){return String.fromCharCode(10>a?48+a:87+a)};vCc=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]=uCc(d>>4);b[2*c+3]=uCc(d&15)}return b.join("")};
wCc=function(a){_.Yf("drive.DebugUtil.printFindById",function(c){a.JM(c).then(function(d){window.console.log(JSON.stringify(d))})});_.Yf("drive.DebugUtil.getLogs",function(){return _.Zwc(a.Rf())});_.Yf("drive.DebugUtil.printLogs",function(){window.console.log(_.Zwc(a.Rf()))});_.Yf("drive.DebugUtil.printRequestHistory",function(){a.$Q().then(function(c){c.forEach(function(d){window.console.log(_.y(d,1));window.console.log(_.y(d,2))})})});_.Yf("drive.DebugUtil.getState",function(){return a.getState()});
var b=a.La();b&&_.Q(b,1,!1)&&(_.Yf("drive.DebugUtil.getContext",function(){return a.getContext()}),_.Yf("drive.DebugUtil.setOffline",function(c){return void a.Pl(c)}))};zCc=function(a,b){b.info("drive.ds.sync.api.Dump","Requesting dump stats.");b=new _.Df;_.Ef(b,305);_.Ff(b,!0);_.w(b,3,2);var c=new _.WD;_.I(c,1,b);xCc(c,[7]);a=a.then(function(d){return d.Qe(c)}).then(yCc);return _.ki(a)};
yCc=function(a){a=_.Wj(a,_.pp,3);var b=new ACc;a.forEach(function(c){var d=c.getKey();"corpusSize"===(d&&_.y(d,2))&&(c=_.ah(c.Za()),_.w(b,3,c))});return"number"===typeof _.y(b,3)?b:null};CCc=function(a,b){var c=BCc(a.xm,b.Ac());if(c){var d=c.getItem(),e=d.$v();if(e){var f=e.dR(),h=_.va(f,function(k){return k.getId()===_.y(b,2)});_.Hvc(e,f);h||(f=_.Wj(e,_.Sk,3),_.va(f,function(k){return k.getId()===_.y(b,2)}),_.Ivc(e,f));_.Gvc(e,(_.y(e,1)||1)-1);a.zl([d],c.V)}}};
ECc=function(a,b,c){if(b=BCc(a.xm,b.Ac())){var d=b.getItem(),e=d.$v();if(e){if(1===c.getType()||2===c.getType()){var f=_.Wj(e,_.Sk,3);f.push(c);_.Ha(f,DCc);_.Ivc(e,f)}else f=e.dR(),f.push(c),_.Ha(f,DCc),_.Hvc(e,f);_.Gvc(e,(_.y(e,1)||0)+1);a.zl([d],b.V)}}};GCc=function(a){return a.map(function(b){var c=new _.fLb;var d=b.serviceName?FCc.get(b.serviceName):void 0;c=_.w(c,3,d);return _.w(c,2,Number(b.bytesUsed))})};
ICc=function(a){return(a.quotaBytesByService||[]).reduce(function(b,c){return c.serviceName&&HCc.has(c.serviceName)?b+Number(c.bytesUsed):b},0)};
MCc=function(a){var b=a.json.exportJob,c=JCc[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=_.mf(b.archives||[],function(l){f=f+Number(l.sizeOfContents)||0;h=h+Number(l.compressedSize)||0;return l.storagePath});b=_.mf(b.failedItemInfos||[],function(l){var p=_.JG((new _.jl).Ob(l.docId).setTitle(l.title),l.mediaType);p=(new _.KCc).setItem(p);p=_.w(p,3,l.relativePath);return _.w(p,4,l.cause)});return new LCc(c,d,k,f,h,e,a,b)};
OCc=function(a){var b={},c=a.getKey(),d=c&&_.y(c,2);b.key=d;b.value=a.Za();(a=c&&_.qp(c))&&(b.namespace=NCc[a]);return b};PCc=function(a){for(var b=[],c=0;c<a.length;c++)b.push(NCc[a[c]]);return b};QCc=function(a){return"kind,defaultAppIds,items("+a+")"};RCc=function(a,b){return _.Q(b,93,!1)?a+",adminSecureLinkSetting":a};SCc=function(a,b){var c;return(null===(c=_.qK(b))||void 0===c?0:_.Q(c,16,!1))?a+",individualQuotaBytesTotal,individualQuotaBytesUsedAggregate":a};
TCc=function(){var a=!(!_.n.IDBObjectStore||!_.n.IDBObjectStore.prototype.getAll);return!!(_.n.indexedDB||_.n.mozIndexedDB||_.n.webkitIndexedDB||_.n.moz_indexedDB)&&a};
XCc=function(a,b){var c,d,e;b=b.clone();if((null===(c=_.qK(b))||void 0===c?0:_.Q(c,18,!1))||(null===(d=_.qK(b))||void 0===d?0:_.Q(d,17,!1)))null===(e=_.qK(b))||void 0===e?void 0:_.w(e,15,!0);_.w(b,75,1<_.n.devicePixelRatio);var f=b;var h=_.Q(f,61,!1),k=_.qK(f),l=!!k&&_.Q(k,10,!1);if(_.vI(_.JI(f))||!h&&!l)_.w(f,61,!1),_.Kj(f,66),k&&_.w(k,10,!1),f=!1;else{if(h){_.n.SharedWorker||(h=!1);var p=_.B(f,WBc,66);p&&_.y(p,1)||(h=!1);_.EK(f)&&!_.Q(f,52,!1)&&(h=!1)}h?k&&_.w(k,10,!1):(_.w(f,61,!1),_.Kj(f,66));
f=h||l}if(f)return f=_.Q(b,61,!1)?3:5,a=new CL(a,b,f),new UCc(a);f=_.vI(_.JI(b))?2:1;a=new DL(a,b,f,void 0,void 0,void 0);return _.vI(_.JI(b))?new VCc(a):new WCc(a)};ZCc=function(a){return _.Je(a).Ng(_.Q(a.get(_.hp),19,!1)?YCc:_.GVa)};$Cc=function(a,b){a.push(b>>>0&255);a.push(b>>>8&255);a.push(b>>>16&255);a.push(b>>>24&255)};aDc=function(a,b){return _.Lj(a,1,b)};tL=function(a){return _.y(a,11)};bDc=[1];cDc=function(a){_.J.call(this,a,-1,bDc)};_.K(cDc,_.J);
cDc.prototype.Wga=function(a){_.Yj(this,1,a,_.Sk,void 0)};var dDc=function(a){var b=new cDc;return _.Lj(b,1,a)},eDc=function(a,b){return _.I(a,1,b)},fDc=function(a,b){_.Lj(a,2,b)},gDc=function(a,b){_.I(a,6,b)},hDc=function(a,b){_.I(a,7,b)},iDc=function(a,b){return _.Xj(a,3,_.Wk,b)},jDc=function(a){_.J.call(this,a)};_.K(jDc,_.J);var kDc=function(a){_.J.call(this,a)};_.K(kDc,_.J);var lDc=function(a){_.J.call(this,a)};_.K(lDc,_.J);var mDc=function(a){_.J.call(this,a)};_.K(mDc,_.J);
var nDc=function(a){_.J.call(this,a)};_.K(nDc,_.J);var oDc=function(a){_.J.call(this,a)};_.K(oDc,_.J);var pDc=function(a){_.J.call(this,a)};_.K(pDc,_.J);var qDc=function(a){_.J.call(this,a)};_.K(qDc,_.J);var rDc=function(a){_.J.call(this,a)};_.K(rDc,_.J);var sDc=function(a){_.J.call(this,a)};_.K(sDc,_.J);var tDc=function(a){_.J.call(this,a)};_.K(tDc,_.J);var uDc=function(a){_.J.call(this,a)};_.K(uDc,_.J);var vDc=function(a){_.J.call(this,a)};_.K(vDc,_.J);var wDc=function(a){_.J.call(this,a)};
_.K(wDc,_.J);var xDc=function(a,b){_.Lj(a,1,b)},yDc=function(a,b){return _.w(a,2,b)},zDc=function(a,b){return _.I(a,3,b)},ADc=function(a,b){return _.w(a,4,b)},BDc=function(a){_.J.call(this,a)};_.K(BDc,_.J);var CDc=function(a,b){_.Lj(a,1,b)},DDc=function(a,b){return _.I(a,2,b)},EDc=function(a){_.J.call(this,a)};_.K(EDc,_.J);
var FDc=function(a,b){_.Lj(a,1,b)},GDc=function(a,b){return _.I(a,4,b)},HDc=function(a,b){_.I(a,5,b)},IDc=function(a,b){_.Lj(a,2,b)},JDc=function(a,b){_.w(a,3,b)},KDc=function(a,b){_.Lj(a,4,b)},LDc=function(a,b){return _.I(a,5,b)},MDc=function(a){_.J.call(this,a)};_.K(MDc,_.J);var NDc=function(a,b){_.Lj(a,1,b)},ODc=function(a,b){return _.I(a,2,b)},PDc=function(a){_.J.call(this,a)};_.K(PDc,_.J);
var QDc=function(a,b){_.Lj(a,2,b)},RDc=function(a){var b=new _.Kna;return _.Lj(b,3,a)},SDc=[1,2],TDc=function(a){_.J.call(this,a)};_.K(TDc,_.J);TDc.prototype.Cg=function(a){return _.Xj(this,1,SDc,a)};var UDc=[1],VDc=function(a){_.J.call(this,a,-1,UDc)};_.K(VDc,_.J);VDc.prototype.Qp=function(){return _.y(this,2)};var WDc=function(a,b){_.Lj(a,1,b)},XDc=function(a,b){return _.w(a,2,b)},YDc=function(a,b){return _.I(a,3,b)},ZDc=function(a){_.J.call(this,a)};_.K(ZDc,_.J);
var $Dc=[2],aEc=function(a){_.J.call(this,a,-1,$Dc)};_.K(aEc,_.J);var bEc=function(a,b){_.Lj(a,2,b)},cEc=function(a,b){return _.I(a,3,b)},dEc=[1],eEc=function(a){_.J.call(this,a)};_.K(eEc,_.J);eEc.prototype.Cg=function(a){return _.Xj(this,1,dEc,a)};var fEc=function(a,b){_.Lj(a,1,b)},gEc=function(a,b){return _.Lj(a,2,b)},hEc=function(a){_.J.call(this,a)};_.K(hEc,_.J);var iEc=function(a,b){_.Lj(a,1,b)},jEc=function(a,b){return _.I(a,2,b)},kEc=function(a){_.J.call(this,a)};_.K(kEc,_.J);
var lEc=[1,2,3,4],mEc=[1],nEc=[1,2],oEc=[1],pEc=[1],qEc=[1,2],rEc=[1],sEc=function(a,b){return _.I(a,1,b)},tEc=function(a,b){return _.w(a,2,b)},uEc=function(a,b){return _.w(a,3,b)},vEc=function(a,b){return _.w(a,4,b)},wEc=function(a,b){return _.w(a,5,b)},xEc=function(a,b){return _.w(a,6,b)},yEc=function(a){_.J.call(this,a)};_.K(yEc,_.J);xBc=function(a,b){_.Lj(a,8,b)};wBc=function(a,b){return _.I(a,73,b)};yBc=function(a,b){_.Lj(a,107,b)};_.uL=function(a){return _.B(a,yEc,109)};
zBc=function(a,b){_.I(a,109,b)};zEc=function(a){_.J.call(this,a)};_.K(zEc,_.J);var AEc=function(a){_.J.call(this,a)};_.K(AEc,_.J);var BEc=function(a){var b=new _.wk;_.Bk(b,1,_.y(a,1));_.Bk(b,2,_.y(a,2));return _.yk(b)},CEc=function(a){_.J.call(this,a)};_.K(CEc,_.J);var WBc=function(a){_.J.call(this,a)};_.K(WBc,_.J);var DEc=[11],EEc=function(a){_.J.call(this,a,-1,DEc)};_.K(EEc,_.J);var EL=function(a){_.J.call(this,a)};_.K(EL,_.J);EL.prototype.getKey=function(){return _.y(this,2)};
EL.prototype.ht=function(){return _.Dj(this,2)};FL=function(a){return _.D(a,4,"en")};_.GL=function(a){return _.B(a,EEc,34,1)};HL=function(a,b,c){if(b.length!=c.length)return!0;for(var d=0;d<b.length;d++)if(!a.O(b[d]||void 0,c[d]||void 0))return!0;return!1};FEc=function(a,b){return _.w(a,5,b)};_.GEc=function(a,b){return _.w(a,2,b)};_.HEc=function(a,b){return _.w(a,3,b)};_.IEc=function(a,b){return _.w(a,1,b)};_.JEc=function(a,b){return _.w(a,2,b)};_.KEc=function(a,b){return _.Lj(a,5,b)};
_.LEc=function(a,b){return _.w(a,6,b)};_.MEc=function(a,b){return _.w(a,7,b)};_.NEc=function(a,b){return _.w(a,8,b)};_.OEc=function(a,b){return _.w(a,10,b)};_.PEc=function(a,b){return _.w(a,15,b)};QEc=[2];_.REc=function(a){_.J.call(this,a,-1,QEc)};_.K(_.REc,_.J);_.REc.prototype.Sh=function(){return _.y(this,1)};_.SEc=function(a,b){return _.I(a,1,b)};TEc=function(a,b){return _.w(a,2,b)};UEc=function(a,b){return _.w(a,3,b)};VEc=function(a,b){_.Lj(a,4,b)};_.WEc=function(a,b){_.I(a,8,b)};
_.XEc=function(a,b){_.I(a,9,b)};YEc=function(a,b){_.w(a,10,b)};ZEc=function(a){_.J.call(this,a)};_.K(ZEc,_.J);ZEc.prototype.Za=function(){return _.Hj(this,1)};ZEc.prototype.Jb=function(a){return _.rb(this,1,a,0)};xCc=function(a,b){_.Jj(a,3,b)};_.$Ec=function(a){_.J.call(this,a)};_.K(_.$Ec,_.J);_.$Ec.prototype.getId=function(){return _.y(this,1)};_.$Ec.prototype.Ob=function(a){return _.w(this,1,a)};_.$Ec.prototype.Ee=function(){return _.y(this,4)};_.$Ec.prototype.zh=function(a){return _.w(this,4,a)};
_.bL=function(a){_.J.call(this,a)};_.K(_.bL,_.J);_.bL.prototype.getTitle=function(){return _.y(this,1)};_.bL.prototype.setTitle=function(a){return _.w(this,1,a)};_.bL.prototype.te=function(){return _.B(this,_.Df,2)};
var aFc=function(a,b){return _.Jj(a,9,b)},bFc=function(a,b){return _.Jj(a,10,b)},cFc=function(a,b){return _.w(a,36,b)},dFc=function(a,b){return _.Lj(a,38,b)},eFc=function(a,b){return _.w(a,2,b)},fFc=function(a,b){return _.I(a,3,b)},gFc=function(){var a=new _.bJ;return _.w(a,5,!0)},hFc=function(a){_.J.call(this,a)};_.K(hFc,_.J);var iFc=function(a){_.J.call(this,a)};_.K(iFc,_.J);var jFc=function(a){_.J.call(this,a)};_.K(jFc,_.J);var kFc=function(a){_.J.call(this,a)};_.K(kFc,_.J);
var lFc=function(a){_.J.call(this,a)};_.K(lFc,_.J);var mFc=function(a){_.J.call(this,a)};_.K(mFc,_.J);mFc.prototype.Cy=function(){return _.P(this,1)};mFc.prototype.Zn=function(){return _.y(this,5)};mFc.prototype.Sm=function(){return _.y(this,6)};mFc.prototype.Bt=function(a){return _.w(this,6,a)};var nFc=function(a,b){return _.w(a,1,b)},oFc=function(a,b){return _.w(a,3,b)},pFc=function(a,b){return _.w(a,4,b)},qFc=function(a,b){_.w(a,7,b)},rFc=function(a){_.J.call(this,a)};_.K(rFc,_.J);
rFc.prototype.Cy=function(){return _.P(this,2)};var sFc=function(a,b){_.w(a,1,b)},tFc=function(a){_.J.call(this,a)};_.K(tFc,_.J);tFc.prototype.Sm=function(){return _.y(this,3)};tFc.prototype.Bt=function(a){return _.w(this,3,a)};tFc.prototype.Zn=function(){return _.y(this,4)};var uFc=function(a){_.J.call(this,a)};_.K(uFc,_.J);var vFc=function(a){_.J.call(this,a)};_.K(vFc,_.J);
var wFc=function(a,b){return _.w(a,1,b)},xFc=function(a,b){return _.w(a,2,b)},yFc=function(a,b){_.w(a,3,b)},zFc=[1,3,5],AFc=function(a){_.J.call(this,a,-1,zFc)};_.K(AFc,_.J);AFc.prototype.QE=function(){return _.ge(this,1)};AFc.prototype.Cy=function(){return _.P(this,2)};AFc.prototype.Zn=function(){return _.y(this,7)};BFc=function(a,b){_.w(a,2,b)};CFc=function(a,b){_.Nj(a,5,b,void 0)};DFc=function(a,b){_.w(a,6,b)};EFc=function(a,b){_.w(a,7,b)};_.FFc=function(a,b){_.I(a,2,b)};
GFc=function(a,b,c){_.IK(a,b,c,"warning")};HFc=function(a){return[].concat(_.Bd(a.O))};IFc=function(a){return a.H.concat([].concat(_.Bd(a.O)))};JFc=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(_.Bd(c))};IL=function(a){var b=_.QK(a).ud();b||(b=new _.wwc,a=_.QK(a),_.I(a,1,b));return b};KFc=function(a){var b=_.B(_.QK(a),AFc,3);b||(b=new AFc,a=_.QK(a),_.I(a,3,b));return b};
JL=function(a){var b=_.B(_.QK(a),mFc,16);b||(b=new mFc,a=_.QK(a),_.I(a,16,b));return b};LFc=function(a){var b=_.B(_.QK(a),jFc,7);b||(b=new jFc,a=_.QK(a),_.I(a,7,b));return b};MFc=function(a){var b=_.B(_.QK(a),lFc,12);b||(b=new lFc,a=_.QK(a),_.I(a,12,b));return b};NFc=function(a){var b=_.B(_.QK(a),rFc,17);b||(b=new rFc,a=_.QK(a),_.I(a,17,b));return b};OFc=function(a){var b=_.B(_.QK(a),vFc,21);b||(b=new vFc,a=_.QK(a),_.I(a,21,b));return b};
PFc=function(a){if(a instanceof _.xI)return 2;if(a instanceof _.FG)return 10;if(a instanceof _.of)return _.PJ(a)?3:_.QJ(a)?7:_.RJ(a)?8:1;if(a instanceof _.zA)return 9;if(a instanceof _.RG)return 11;if(a instanceof _.YJ)return 15;if(a instanceof _.KI)return 6;if(a instanceof _.TJ){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 _.WD)return 4;if(a instanceof _.mA)return 12;if(a instanceof _.IG)return 13}return 0};
QFc=function(a){var b=null;a instanceof _.xB||"undefined"!=typeof _.SK&&a instanceof _.SK||"undefined"!=typeof _.TK&&a instanceof _.TK?b=a.Ze()||0:"undefined"!=typeof _.VK&&a instanceof _.VK||"undefined"!=typeof _.WK&&a instanceof _.WK||"undefined"!=typeof _.XK&&a instanceof _.XK||"undefined"!=typeof _.YK&&a instanceof _.YK||"undefined"!=typeof _.ZK&&a instanceof _.ZK?b=a.Je:"undefined"!=typeof _.UK&&a instanceof _.UK&&(b=a.Ze());return b||0};
KL=function(a,b,c){return a.V&&_.Rxc(a)?(a=_.Nxc(a.V,b,0),c&&_.zqc(a,c),a):null};RFc=function(a){a.V&&_.Rxc(a)&&(a=a.V,a.H.qP()&&a.H.GZ())};SFc=function(a){var b=new _.LJ;return _.w(b,1,a)};TFc=function(a,b){return _.I(a,2,b)};UFc=function(a,b){return _.I(a,1,b)};VFc=function(a,b){a.ha=b};WFc=[2];LL=function(a){_.J.call(this,a,-1,WFc)};_.K(LL,_.J);LL.prototype.Bb=function(){return _.y(this,1)};LL.prototype.Dc=function(a){return _.w(this,1,a)};LL.prototype.Wga=function(a){_.Yj(this,2,a,_.Sk,void 0)};
LL.prototype.dk=function(){return _.y(this,3)};var XFc=function(a,b){return _.Lj(a,2,b)},YFc=[2],ZFc=function(a){_.J.call(this,a,-1,YFc)};_.K(ZFc,_.J);ZFc.prototype.Bb=function(){return _.y(this,1)};ZFc.prototype.Dc=function(a){return _.w(this,1,a)};ZFc.prototype.dk=function(){return _.y(this,3)};$Fc=function(a){return a.H?a.H.promise:a.O()?(a.H=new _.Hn,a.H.promise):null};
aGc=function(a){for(var b=[],c=_.m(a.W),d=c.next();!d.done;d=c.next()){d=_.m(d.value);d.next();d=d.next().value;d=_.m(d);for(var e=d.next();!e.done;e=d.next())(e=e.value.Ev.config.timestamp)&&b.push(e)}a=_.m(a.buckets);for(d=a.next();!d.done;d=a.next()){c=[];d=_.m(d.value.jj);for(e=d.next();!e.done;e=d.next())(e=e.value.Ev.config.timestamp)&&c.push(e);_.ya(b,c)}return b};bGc=function(a,b){_.iL(["drive#permissionList"],b);return XFc(new LL,(b.items||[]).map(function(c){return _.eAc(a,c)}))};
cGc=function(a,b){return xEc(wEc(vEc(_.Ivc(_.Gvc(new _.Wna,b.entryCount),(b.selectPermissions||[]).map(function(c){return _.eAc(a,c)})),b.memberCount),b.userEntryCount),b.groupEntryCount)};kBc=function(a,b){return _.Jj(a,1,b)};dGc=function(a){if(8192>=a.length)return String.fromCharCode.apply(null,a);for(var b="",c=0;c<a.length;c+=8192)b+=String.fromCharCode.apply(null,Array.prototype.slice.call(a,c,c+8192));return b};
eGc=function(a,b){if(!(a instanceof b.constructor))throw Error("aa");var c=a.fr(!1);b=b.fr(!1);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++)_.Oaa(c[e],b[e])||(d[e]=b[e]);return new a.constructor(d)};fGc=[2,6];_.TK=function(a){_.J.call(this,a,-1,fGc)};_.K(_.TK,_.J);_.g=_.TK.prototype;_.g.Bb=function(){return _.y(this,1)};_.g.Dc=function(a){return _.w(this,1,a)};_.g.wd=function(){return _.Wj(this,_.jl,2)};
_.g.Vw=function(a){return _.Lj(this,2,a)};_.g.nh=function(a,b){return _.Yj(this,2,a,_.jl,b)};_.g.dk=function(){return _.y(this,3)};_.g.ul=function(){return _.Q(this,4,!0)};var gGc=function(a,b){return _.Lj(a,6,b)};_.TK.prototype.dg=function(){return _.y(this,10)};_.TK.prototype.nP=function(a){return _.w(this,10,a)};_.TK.prototype.Ze=function(){return _.y(this,9)};_.TK.prototype.Ki=function(a){return _.w(this,9,a)};
var hGc={SUCCESS:1,O6b:2,OYb:3,tUb:4,a7b:5,t1b:6,i1b:7,fVb:8,M5b:9,a6b:10,N6b:11,HWb:12,lWb:13,OZb:14,gYb:15,pWb:16,oWb:17,uWb:18,rWb:19,sWb:20,r6b:21,X6b:22,M1b:23,S0b:24,YUb:25,PERMISSION_DENIED:26,g0b:27,kVb:28,jVb:29,INTERRUPTED:30,l2b:31,F2b:32,WWb:33,bXb:34,T5b:35,iXb:36,hYb:37,aXb:38,h1b:39,OVb:40,g2b:41,H2b:42,K5b:43,AVb:44,NVb:45,eYb:46,b0b:47,f1b:48,D1b:49,h2b:50,D5b:51,mWb:52,L5b:53,J5b:54,GVb:55,DVb:56,tXb:57,A0b:58,i2b:59,A_b:60,X3b:61,L4b:62,r5b:63,c_b:64,U0b:65,d7b:66,kXb:67,iYb:68,
M6b:69,h_b:70,iVb:71,vVb:72,T4b:73,s5b:74,o5b:75,m5b:76,H4b:190,l5b:191,U4b:192,$4b:126,W4b:128,X4b:129,Y4b:130,Z4b:131,a5b:132,b5b:133,f4b:127,c4b:134,d4b:135,h4b:136,i4b:137,j4b:138,e4b:194,g4b:195,k4b:196,b4b:197,K4b:189,W3b:139,Y3b:140,l4b:141,m4b:142,y4b:143,B4b:144,C4b:145,D4b:146,E4b:147,F4b:148,G4b:149,J4b:150,P4b:151,R4b:152,S4b:153,V4b:154,c5b:155,e5b:156,f5b:157,g5b:158,h5b:159,i5b:160,j5b:161,n5b:162,q5b:163,t5b:164,Z3b:165,$3b:166,a4b:167,U3b:168,V3b:169,p4b:170,n4b:171,o4b:172,q4b:173,
r4b:174,s4b:175,t4b:176,u4b:177,v4b:178,w4b:179,x4b:180,z4b:181,A4b:182,I4b:106,Q4b:183,d5b:184,k5b:185,M4b:186,N4b:187,O4b:188,p5b:244,f2b:77,R6b:78,W6b:79,o0b:80,TZb:81,VZb:82,sXb:83,dYb:84,h0b:85,k6b:86,$Wb:87,j_b:88,i_b:89,w5b:90,u5b:91,v5b:92,S6b:93,bWb:94,aWb:95,YVb:96,$Vb:97,ZVb:98,c7b:99,F3b:100,xWb:101,qWb:102,vWb:103,tWb:104,wWb:105,jYb:107,Y5b:108,z3b:109,G6b:110,mYb:111,lYb:112,F_b:113,G_b:114,L2b:115,HVb:116,N_b:117,CXb:118,T6b:119,n1b:120,o1b:121,PZb:193,nWb:122,QWb:123,SZb:124,N0b:125,
k_b:198,q2b:199,$Zb:200,XTb:201,f_b:202,d_b:203,lVb:204,B7b:205,V_b:206,VVb:207,k1b:208,G2b:209,B3b:210,xUb:211,D_b:212,K_b:213,O5b:214,N5b:215,b_b:216,NZb:217,a_b:218,mXb:219,b6b:220,nXb:221,B_b:222,V5b:223,m7b:224,Y0b:225,U5b:226,SWb:227,T_b:228,rXb:229,QVb:230,i6b:231,P0b:232,FILE_TOO_LARGE:233,g_b:234,lXb:235,aYb:236,C2b:237,V0b:238,ITb:239,RVb:240,b1b:241,M3b:242,YWb:243,VTb:245,WZb:246,F1b:247,UZb:248,n0b:249,T0b:250,fYb:251,VYb:252,E_b:253,EVb:254,kYb:255,b7b:256,HYb:257,x0b:258,S2b:259,p2b:260,
r_b:261,CWb:262,ZWb:263,XUb:264,f0b:265,$6b:266,MTb:267,NUb:268,MUb:269,g1b:270,GTb:271,HTb:272,$Ub:273,UVb:274,PUb:275,OUb:276,U_b:277,nYb:278},ML=function(a,b){_.ui.call(this,"Aa");this.error=a;this.H=b};_.K(ML,_.ui);iGc={U6b:0,y0b:1,O1b:2,B1b:3,m_b:4,uUb:5,z0b:6,C1b:7,uZb:8,WUb:9,z1b:10};
_.NL=function(a,b,c,d,e,f){_.Ei.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=kBc(new _.pL,[1]);this.limit=e.Ei();this.Je=0;_.Re(this,function(){h.O=!1;h.H=[]});_.f8a++};_.K(_.NL,_.Ei);_.g=_.NL.prototype;_.g.ti=function(){return String(_.Da(this))};_.g.isActive=function(){return this.O};
_.g.activate=function(){this.O=!0;_.pa(this.items)&&6===this.Bb()&&this.Vj()||jGc(this)};_.g.ud=function(){return this.request};_.g.Ei=function(){return this.limit};_.g.Bb=function(){return this.status};_.g.jq=function(){return this.ka};_.g.Vj=function(){return this.ha};_.g.zr=function(){var a=_.e8a().ty(this.H,this.items),b=(new _.wI).Dc(this.Bb());a=_.Lj(b,2,a);this.H=this.items;return a};
_.g.Fr=function(a){this.isActive()&&(this.limit+=a||50,this.log("incrementMaxCount with "+a+" called on Livelist "+(this.ti()+". New limit is ")+(this.limit+".")),this.Ha(this.ti(),this.limit))};var kGc=function(a,b){return a.Bb()!==b.Bb()||HL(_.e8a(),a.items,b.wd())},lGc=function(a,b){a.items=b.wd();a.status=b.Bb();_.YI(a.Ba)&&(a.ka=lBc(a.status,a.items));a.ha=b.ul();a.Je=b.Ze()};
_.NL.prototype.FB=function(a){this.dispatchEvent(new _.Fc(new _.Ec("Error occurred running a query after "+a.H+" retries.",a.error)))};_.NL.prototype.gW=function(){this.dispatchEvent(new _.ui(_.WEa))};_.NL.prototype.Au=function(a,b){var c=this;b+="\n\n\nQuery:\n"+OL(this.V,this.ud());return _.ki(this.va.then(function(d){return d.eMb(a,b,c.ud(),c.Ei(),c.items)}))};
var jGc=function(a){if(a.isActive()){var b=a.jq().O();a.log("Livelist "+a.ti()+" returning "+a.items.length+". Status: "+(_.$a(hGc)[a.Bb()]+". ")+(6===a.Bb()?"MissingTypes: "+b.join(",")+". ":"")+("Datasource: "+_.$a(iGc)[a.Je]+". Query: ")+(OL(a.V,a.request)+" ")+mBc(a.items));mGc(a,a.items,a.request);a.dispatchEvent(new _.ui(_.Pc,a))}},mGc=function(a,b,c){if(_.PJ(c))c="quick access";else if(_.QJ(c))c="people predict";else if(_.RJ(c))c="drive priority";else return;b=b.map(function(d){return d.getId()}).join(", ");
a.log("Livelist "+a.ti()+" returning "+a.items.length+" for "+(c+": "+b))};_.NL.prototype.refresh=function(){};_.NL.prototype.log=function(a){this.Fa.info(this.W,a)};_.NL.prototype.Ya=function(){_.g8a++;_.Ei.prototype.Ya.call(this)};var nGc=function(){this.map={};this.status=6;this.Je=null};_.g=nGc.prototype;_.g.Bb=function(){return this.status};_.g.Dc=function(a){this.status=a};_.g.Ze=function(){return this.Je};_.g.Ki=function(a){this.Je=a};_.g.hq=function(){return this.map};
var oGc=function(a,b){a.map=b};nGc.prototype.Lc=function(a){var b=[];_.Ma(this.map,function(c,d){b.push({k:d,v:c?a(c):null})});return JSON.stringify({s:this.status,d:this.Je,me:b})};var pGc=function(a,b,c){c=JSON.parse(c);a.Dc(c.s);a.Ki(c.d);var d={};c.me.forEach(function(e){d[e.k]=e.v?b(e.v):null});a.map=d},qGc=function(){nGc.apply(this,arguments)};_.K(qGc,nGc);_.SK=function(){nGc.apply(this,arguments)};_.K(_.SK,nGc);
var qBc=[1004,1005,1002,1003],EBc=[1002,1003,1005],PL=function(a,b,c,d,e,f){_.Ei.call(this);var h=this;this.V=a;this.ka=b;this.ha=c;this.ma=d;this.ta=e;this.request=f;this.O=!1;this.H={};this.items={};this.status=6;this.W=kBc(new _.pL,[1]);this.log("Creating find by ids live map: "+this.request.qn().join(", "));_.Re(this,function(){h.O=!1;h.H=[]});_.ilb++};_.K(PL,_.Ei);_.g=PL.prototype;_.g.ti=function(){return String(_.Da(this))};
_.g.activate=function(){this.O=!0;_.Ua(this.items)&&6===this.status||rGc(this)};_.g.ud=function(){return this.request};_.g.getData=function(){this.H=this.items;var a=new _.SK;_.YI(this.V)?a.Dc(GBc(Object.values(this.items))?6:this.status):a.Dc(this.status);a.map=this.items;return a};_.g.zr=function(){var a=IBc(this.H,this.items),b=new qGc;b.Dc(this.status);b.map=a;this.H=this.items;return b};_.g.Bb=function(){return this.status};_.g.jq=function(){return this.W};
_.g.aT=function(a){sGc(a);var b=this.request;this.request=a;this.ta(this.ti(),b,a)};_.g.update=function(a){var b=this;0<=_.ma(this.ud().qn(),"root")?this.ma.addCallback(function(c){var d=a.hq()[c];d&&(_.Va(a.map,c),a.map.root=d);tGc(b,a)}):tGc(this,a)};var tGc=function(a,b){if(a.status!==b.Bb()||JBc(a.items,b.hq()))a.status=b.Bb(),a.items=b.hq(),_.YI(a.V)&&(a.W=lBc(a.status,Object.values(a.items))),rGc(a)};
PL.prototype.FB=function(a){this.dispatchEvent(new _.Fc(new _.Ec("Error occurred running a find-by-IDs query after "+a.H+" retries.",a.error)))};PL.prototype.gW=function(){this.dispatchEvent(new _.ui(_.WEa))};var rGc=function(a){a.O&&(a.log("Livelist "+a.ti()+" returning "+(Object.values(a.items).length+". Status: ")+(_.$a(hGc)[a.Bb()]+". Query: ")+(OL(a.ka,a.request)+" ")+mBc(Object.values(a.items))),a.dispatchEvent(new _.ui(_.Pc,a)))};
PL.prototype.log=function(a){this.ha.info("drive.ds.sync.IdViewCacheLiveMap",a)};PL.prototype.Ya=function(){_.jlb++;_.Ei.prototype.Ya.call(this)};var uGc=[1,2],vGc=function(a){_.J.call(this,a,-1,uGc)};_.K(vGc,_.J);_.wGc=function(a){_.J.call(this,a)};_.K(_.wGc,_.J);_.wGc.prototype.Bb=function(){return _.y(this,1)};_.wGc.prototype.Dc=function(a){return _.w(this,1,a)};_.wGc.prototype.rn=function(){return _.B(this,_.GG,2)};var xGc=function(a){_.ui.call(this,a)};_.K(xGc,_.ui);
var yGc=function(a){_.J.call(this,a)};_.K(yGc,_.J);yGc.prototype.O=function(){return _.B(this,_.pD,1)};yGc.prototype.V=function(){return _.B(this,_.pD,2)};yGc.prototype.ha=function(){return _.B(this,_.pD,3)};var zGc=function(a){_.J.call(this,a)};_.K(zGc,_.J);zGc.prototype.O=function(){return _.P(this,1)};zGc.prototype.V=function(){return _.P(this,3)};zGc.prototype.ha=function(){return _.P(this,4)};var AGc=function(a){_.J.call(this,a)};_.K(AGc,_.J);AGc.prototype.O=function(){return _.P(this,1)};
AGc.prototype.V=function(){return _.P(this,2)};var QL=[13,19,12,11,10,15,14,9,8,18,17,16],BGc=function(a){_.J.call(this,a)};_.K(BGc,_.J);BGc.prototype.O=function(){return _.y(this,4)};var CGc=function(a){_.J.call(this,a)};_.K(CGc,_.J);CGc.prototype.V=function(){return _.y(this,1)};CGc.prototype.O=function(){return _.y(this,2)};var DGc=function(a){_.J.call(this,a)};_.K(DGc,_.J);DGc.prototype.V=function(){return _.y(this,1)};DGc.prototype.O=function(){return _.y(this,2)};
var EGc=function(a){_.J.call(this,a)};_.K(EGc,_.J);var FGc=[1],GGc=function(a){_.J.call(this,a)};_.K(GGc,_.J);GGc.prototype.O=function(){return _.P(this,1)};GGc.prototype.V=function(){return _.P(this,2)};var HGc=function(a){_.J.call(this,a)};_.K(HGc,_.J);_.g=HGc.prototype;_.g.O9a=function(){return _.P(this,1)};_.g.P9a=function(){return _.P(this,2)};_.g.L9a=function(){return _.B(this,yGc,3)};_.g.Q9a=function(){return _.Dj(this,3)};_.g.N9a=function(){return _.B(this,yGc,4)};
_.g.S9a=function(){return _.Dj(this,4)};_.g.M9a=function(){return _.y(this,5)};_.g.R9a=function(){return _.Dj(this,5)};var IGc=function(a){_.J.call(this,a)};_.K(IGc,_.J);_.g=IGc.prototype;_.g.getLabel=function(){return _.y(this,1)};_.g.Tp=function(){return _.Dj(this,1)};_.g.Za=function(){return _.y(this,2)};_.g.Jb=function(a){return _.w(this,2,a)};_.g.Ui=function(){return _.qb(this,2)};_.g.Pg=function(){return _.Dj(this,2)};_.g.Cf=function(){return _.y(this,5)};
_.g.Yl=function(a){return _.w(this,5,a)};_.g.K9a=function(){return _.Dj(this,5)};_.g.getCapabilities=function(){return _.B(this,GGc,3)};_.g.J9a=function(){return _.B(this,HGc,4)};var JGc=function(a){_.J.call(this,a,-1,FGc)};_.K(JGc,_.J);JGc.prototype.O=function(){return _.Wj(this,IGc,1)};var KGc=function(a,b){_.Lj(a,1,b)},LGc=function(a){_.J.call(this,a)};_.K(LGc,_.J);LGc.prototype.O=function(){return _.y(this,1)};LGc.prototype.iW=function(){return _.Dj(this,1)};
LGc.prototype.getOptions=function(){return _.B(this,JGc,2)};var MGc=function(a){_.J.call(this,a)};_.K(MGc,_.J);MGc.prototype.iW=function(){return _.Dj(this,1)};MGc.prototype.getOptions=function(){return _.B(this,DGc,2)};var NGc=function(a){_.J.call(this,a)};_.K(NGc,_.J);var OGc=function(a){_.J.call(this,a)};_.K(OGc,_.J);OGc.prototype.iW=function(){return _.Dj(this,1)};OGc.prototype.getOptions=function(){return _.B(this,NGc,2)};var RL=[3,4,5,6,7,8,9,10,11,12],PGc=function(a){_.J.call(this,a)};
_.K(PGc,_.J);_.g=PGc.prototype;_.g.cMa=function(a){return _.Xj(this,3,RL,a)};_.g.r4a=function(a){return _.Xj(this,4,RL,a)};_.g.G3a=function(a){return _.Xj(this,5,RL,a)};_.g.F3a=function(a){return _.Xj(this,6,RL,a)};_.g.t3a=function(a){return _.Xj(this,7,RL,a)};_.g.e4a=function(a){return _.Xj(this,8,RL,a)};_.g.d4a=function(a){return _.Xj(this,9,RL,a)};_.g.w4a=function(a){return _.Xj(this,10,RL,a)};_.g.dMa=function(a){return _.Xj(this,11,RL,a)};_.g.bMa=function(a){return _.Xj(this,12,RL,a)};
var QGc=function(a){_.J.call(this,a)};_.K(QGc,_.J);var RGc=function(a){_.J.call(this,a)};_.K(RGc,_.J);RGc.prototype.O=function(){return _.y(this,1)};RGc.prototype.iW=function(){return _.Dj(this,1)};RGc.prototype.getOptions=function(){return _.B(this,QGc,2)};var SGc=function(a){_.J.call(this,a)};_.K(SGc,_.J);_.g=SGc.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Ob=function(a){return _.w(this,1,a)};_.g.D9a=function(){return _.y(this,2)};_.g.we=function(){return _.y(this,4)};
_.g.C9a=function(){return _.B(this,zGc,5)};_.g.getCapabilities=function(){return _.B(this,AGc,6)};_.g.I9a=function(){return _.y(this,7)};_.g.t3a=function(a){return _.Xj(this,13,QL,a)};_.g.B9a=function(){return _.ek(this,BGc,19,QL)};_.g.bMa=function(a){return _.Xj(this,19,QL,a)};_.g.F3a=function(a){return _.Xj(this,12,QL,a)};_.g.G3a=function(a){return _.Xj(this,11,QL,a)};_.g.zsb=function(){return _.ek(this,CGc,10,QL)};_.g.E9a=function(){return _.ek(this,LGc,15,QL)};
_.g.d4a=function(a){return _.Xj(this,15,QL,a)};_.g.F9a=function(){return _.ek(this,JGc,14,QL)};_.g.e4a=function(a){return _.Xj(this,14,QL,a)};_.g.r4a=function(a){return _.Xj(this,9,QL,a)};_.g.G9a=function(){return _.ek(this,DGc,8,QL)};_.g.cMa=function(a){return _.Xj(this,8,QL,a)};_.g.H9a=function(){return _.ek(this,RGc,18,QL)};_.g.dMa=function(a){return _.Xj(this,18,QL,a)};_.g.w4a=function(a){return _.Xj(this,17,QL,a)};var TGc=[5],UGc=function(a){_.J.call(this,a)};_.K(UGc,_.J);
UGc.prototype.ha=function(){return _.P(this,1)};UGc.prototype.O=function(){return _.P(this,2)};UGc.prototype.ka=function(){return _.P(this,3)};UGc.prototype.V=function(){return _.P(this,4)};var SL=function(a){_.J.call(this,a,-1,TGc)};_.K(SL,_.J);SL.prototype.getName=function(){return _.y(this,1)};SL.prototype.hd=function(a){return _.w(this,1,a)};SL.prototype.Pm=function(){return _.y(this,2)};var VGc=function(a,b){return _.w(a,2,b)};SL.prototype.V=function(){return _.y(this,14)};
var WGc=function(a,b){return _.w(a,14,b)};_.g=SL.prototype;_.g.getTitle=function(){return _.y(this,3)};_.g.setTitle=function(a){return _.w(this,3,a)};_.g.Cf=function(){return _.y(this,4)};_.g.Yl=function(a){return _.w(this,4,a)};_.g.T9a=function(){return _.y(this,15)};_.g.Bk=function(){return _.Wj(this,SGc,5)};
var XGc=function(a,b){return _.Lj(a,5,b)},YGc=function(a,b){_.I(a,6,b)},ZGc=function(a,b){_.I(a,7,b)},$Gc=function(a,b){_.I(a,8,b)},aHc=function(a,b){return _.w(a,9,b)},bHc=function(a,b){return _.w(a,10,b)},cHc=function(a,b){return _.w(a,11,b)};SL.prototype.O=function(){return _.B(this,zGc,12)};var dHc=function(a,b){_.I(a,12,b)};SL.prototype.getCapabilities=function(){return _.B(this,UGc,13)};var eHc=function(a,b){_.I(a,13,b)};SL.prototype.getCustomer=function(){return _.y(this,16)};
var fHc=function(a,b){return _.w(a,16,b)},gHc=[5,7,9],hHc=function(a){_.J.call(this,a,-1,gHc)};_.K(hHc,_.J);_.g=hHc.prototype;_.g.getUser=function(){return _.B(this,_.Sk,1)};_.g.$A=function(a){_.w(this,2,a)};_.g.setBooleanValue=function(a){return _.w(this,3,a)};_.g.setTextValue=function(a){return _.w(this,4,a)};_.g.Ioa=function(a){return _.Jj(this,5,a)};_.g.addTextValues=function(a,b){return _.Nj(this,5,a,b)};_.g.setSelectionValue=function(a){return _.w(this,6,a)};
_.g.Eoa=function(a){return _.Jj(this,7,a)};_.g.addSelectionValues=function(a,b){return _.Nj(this,7,a,b)};_.g.setIntegerValue=function(a){return _.w(this,8,a)};_.g.voa=function(a){return _.Jj(this,9,a)};_.g.addIntegerValues=function(a,b){return _.Nj(this,9,a,b)};var iHc=[7,10,12,16,13,3],TL=function(a){_.J.call(this,a,-1,iHc)};_.K(TL,_.J);var UL=function(a){return _.y(a,4)};_.g=TL.prototype;_.g.$A=function(a){_.w(this,4,a)};_.g.setBooleanValue=function(a){return _.w(this,5,a)};
_.g.X9a=function(){return _.y(this,6)};_.g.setTextValue=function(a){return _.w(this,6,a)};_.g.Ioa=function(a){return _.Jj(this,7,a)};_.g.addTextValues=function(a,b){return _.Nj(this,7,a,b)};_.g.V9a=function(){return _.y(this,8)};_.g.setLongTextValue=function(a){return _.w(this,8,a)};_.g.W9a=function(){return _.y(this,9)};_.g.setSelectionValue=function(a){return _.w(this,9,a)};_.g.OLa=function(){return _.ge(this,10)};_.g.Eoa=function(a){return _.Jj(this,10,a)};
_.g.addSelectionValues=function(a,b){return _.Nj(this,10,a,b)};_.g.U9a=function(){return _.y(this,11)};_.g.setIntegerValue=function(a){return _.w(this,11,a)};_.g.voa=function(a){return _.Jj(this,12,a)};_.g.addIntegerValues=function(a,b){return _.Nj(this,12,a,b)};_.g.Y9a=function(){return _.B(this,_.Sk,15)};_.g.setUserValue=function(a){return _.I(this,15,a)};_.g.oWa=function(){return _.Wj(this,_.Sk,16)};var jHc=function(a,b){_.Lj(a,16,b)};
TL.prototype.addUserValues=function(a,b){return _.Yj(this,16,a,_.Sk,b)};TL.prototype.O=function(){return _.y(this,17)};TL.prototype.setDateStringValue=function(a){return _.w(this,17,a)};TL.prototype.V=function(){return _.Dj(this,17)};var kHc=function(a,b){_.Lj(a,13,b)};TL.prototype.getId=function(){return _.y(this,14)};TL.prototype.Ob=function(a){return _.w(this,14,a)};TL.prototype.getName=function(){return _.y(this,1)};TL.prototype.hd=function(a){return _.w(this,1,a)};
var lHc=[2],WL=function(a){_.J.call(this,a,-1,lHc)};_.K(WL,_.J);WL.prototype.getName=function(){return _.y(this,1)};WL.prototype.hd=function(a){return _.w(this,1,a)};WL.prototype.O=function(){return _.Wj(this,TL,2)};var mHc=function(a,b){_.Lj(a,2,b)};WL.prototype.Ac=function(){return _.y(this,3)};nHc=function(a,b){return _.w(a,3,b)};_.zL=function(a){_.J.call(this,a)};_.K(_.zL,_.J);_.zL.prototype.getId=function(){return _.y(this,1)};_.zL.prototype.Ob=function(a){return _.w(this,1,a)};
_.zL.prototype.te=function(){return _.B(this,_.Df,3)};oHc=[3];_.XL=function(a){_.J.call(this,a,-1,oHc)};_.K(_.XL,_.J);_.XL.prototype.getType=function(){return _.y(this,1)};_.XL.prototype.Ac=function(){return _.y(this,2)};_.pHc=function(a){_.J.call(this,a)};_.K(_.pHc,_.J);_.pHc.prototype.getFeature=function(){return _.y(this,1)};qHc=[1];_.PK=function(a){_.J.call(this,a,-1,qHc)};_.K(_.PK,_.J);rHc=[2,3,8];_.aK=function(a){_.J.call(this,a,-1,rHc)};_.K(_.aK,_.J);
_.aK.prototype.getId=function(){return _.y(this,1)};_.aK.prototype.Ob=function(a){return _.w(this,1,a)};_.aK.prototype.te=function(){return _.B(this,_.Df,4)};_.aK.prototype.yc=function(){return _.y(this,5)};var sHc=function(a){_.J.call(this,a)};_.K(sHc,_.J);tHc=[1,2,4];uHc={0:"UNSPECIFIED_FEEDBACK",1:"IMPLICIT_REJECT",2:"NOT_HELPFUL_RIGHT_NOW"};vHc=function(a,b){return new _.jrc(_.krc.bound(a,b,void 0,void 0))};
wHc=function(){var a=new _.ei,b=_.wrc().deleteDatabase("GoogleDriveDs");b.onsuccess=function(){a.callback()};b.onerror=function(c){a.Jd(_.CI(c.target,"deleting database GoogleDriveDs"))};b.onblocked=function(){};return a};_.xHc=function(a){_.J.call(this,a)};_.K(_.xHc,_.J);_.xHc.prototype.Jp=function(){return _.y(this,1)};_.xHc.prototype.Ed=function(){return _.y(this,2)};_.xHc.prototype.setSize=function(a){return _.w(this,2,a)};_.xHc.prototype.getUrl=function(){return _.y(this,3)};
_.yHc=function(a){_.J.call(this,a)};_.K(_.yHc,_.J);_.yHc.prototype.getType=function(){return _.y(this,1)};zHc=[2,3];_.AHc=function(a){_.J.call(this,a,-1,zHc)};_.K(_.AHc,_.J);BHc=[4,5,6,17,18,24];_.YL=function(a){_.J.call(this,a,-1,BHc)};_.K(_.YL,_.J);_.YL.prototype.getId=function(){return _.y(this,1)};_.YL.prototype.Ob=function(a){return _.w(this,1,a)};_.YL.prototype.getName=function(){return _.y(this,2)};_.YL.prototype.hd=function(a){return _.w(this,2,a)};
var CHc=function(a,b){return _.Jj(a,4,b)},DHc=function(a,b){return _.Jj(a,5,b)};_.YL.prototype.JQ=function(){return _.y(this,8)};_.YL.prototype.getType=function(){return _.y(this,23)};var EHc=[3],ZL=function(a){_.J.call(this,a,-1,EHc)};_.K(ZL,_.J);ZL.prototype.kq=function(){return _.y(this,1)};var FHc=function(a,b){return _.w(a,1,b)};ZL.prototype.getTitle=function(){return _.y(this,2)};ZL.prototype.setTitle=function(a){return _.w(this,2,a)};ZL.prototype.wd=function(){return _.Wj(this,_.jl,3)};
var GHc=function(a,b){return _.Lj(a,3,b)};ZL.prototype.nh=function(a,b){return _.Yj(this,3,a,_.jl,b)};ZL.prototype.V=function(){return _.y(this,4)};var HHc=function(a,b){return _.w(a,4,b)};ZL.prototype.O=function(){return _.B(this,_.Vk,5)};var IHc=function(a,b){return _.I(a,5,b)},ACc=function(a){_.J.call(this,a)};_.K(ACc,_.J);var JHc=[2],$L=function(a){_.J.call(this,a,-1,JHc)};_.K($L,_.J);$L.prototype.Bb=function(){return _.y(this,1)};$L.prototype.Dc=function(a){return _.w(this,1,a)};
$L.prototype.xl=function(){return _.Wj(this,ZL,2)};var KHc=function(a,b){return _.Lj(a,2,b)};$L.prototype.dg=function(){return _.y(this,4)};LHc=function(a,b){return _.w(a,4,b)};_.UK=function(a){_.J.call(this,a)};_.K(_.UK,_.J);_.g=_.UK.prototype;_.g.Bb=function(){return _.y(this,1)};_.g.Dc=function(a){return _.w(this,1,a)};_.g.HT=function(){return _.Ij(this,2,void 0,_.GG)};_.g.dk=function(){return _.y(this,3)};_.g.Ze=function(){return _.y(this,5)};_.g.Ki=function(a){return _.w(this,5,a)};
var MHc=[1],AL=[1,2,3,4,5,6,7],eCc=function(a){_.J.call(this,a)};_.K(eCc,_.J);var fCc=function(a){_.J.call(this,a,-1,MHc)};_.K(fCc,_.J);var aM=function(a){_.J.call(this,a)};_.K(aM,_.J);aM.prototype.getQuery=function(){return _.B(this,_.of,1,1)};var NHc=function(a,b){return _.I(a,1,b)};aM.prototype.$n=function(){return _.y(this,4)};var OHc=function(a,b){return _.I(a,5,b)},PHc=[1,2,5,7,9,10,12,14],bM=function(a){_.J.call(this,a,-1,PHc)};_.K(bM,_.J);bM.prototype.wd=function(){return _.Wj(this,_.jl,1)};
var QHc=function(a,b){return _.Lj(a,1,b)};bM.prototype.nh=function(a,b){return _.Yj(this,1,a,_.jl,b)};bM.prototype.Wga=function(a){_.Yj(this,2,a,_.Sk,void 0)};var RHc=function(a,b){return _.w(a,3,b)};bM.prototype.bo=function(){return _.y(this,4)};bM.prototype.Eu=function(a){return _.w(this,4,a)};var SHc=function(a,b){return _.Lj(a,5,b)};bM.prototype.tv=function(){return _.P(this,6)};var THc=function(a,b){return _.w(a,6,b)};bM.prototype.xf=function(){return _.B(this,_.qC,8)};
var UHc=function(a,b){return _.Jj(a,12,b)};bM.prototype.Zn=function(){return _.Gj(this,13,0)};var VHc=function(a,b){return _.w(a,13,b)},WHc={aVb:0,ZUb:1,M_b:2,W5b:3,Z5b:4,s1b:5},yL=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18],cCc=function(a){_.J.call(this,a)};_.K(cCc,_.J);var jCc=[1,2],iCc=function(a){_.J.call(this,a)};_.K(iCc,_.J);var mCc=[1,2,3],lCc=function(a){_.J.call(this,a)};_.K(lCc,_.J);
var XHc=function(a,b){return 1<a?2===b:a===b},YHc=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("Te");},cM=function(a,b,c,d,e){this.item=a;this.count=void 0===b?0:b;this.V=void 0===c?1:c;this.O=d;this.H=e};_.g=cM.prototype;_.g.clone=function(){return new cM(this.item.clone(),this.count,this.V,this.O,this.H)};_.g.getId=function(){return this.item.getId()};_.g.$b=function(){return this.count};_.g.getItem=function(){return this.item};
_.g.setItem=function(a){this.item=a;return this};_.g.fz=function(a){this.V=a};_.g.equals=function(a){return this.count===a.$b()&&this.V===a.V&&this.O===a.O&&this.H===a.H&&_.ak(this.item,a.getItem())};
var ZHc=function(a,b){a.H=b;return a},dM=function(a){return a instanceof _.jl?null!=a.getId()&&a.getId()==a.yc():null!=a.Ac()&&a.Ac()==a.yc()},$Hc=function(a,b,c){c=void 0===c?[]:c;var d=a.clone(),e=b.jg();null!=e&&wBc(a,e.clone());if((e=b.getCapabilities())&&null!=_.P(e,13)){var f=a.getCapabilities()||new _.Yk,h=_.P(e,13);_.w(f,13,h);_.yK(a,f)}e&&null!=_.P(e,18)&&(f=a.getCapabilities()||new _.Yk,e=_.P(e,18),_.w(f,18,e),_.yK(a,f));vL(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.jg()&&vL(a,d,c)},aIc=function(a,b,c){c=void 0===c?[]:c;if(!b||!dM(a)&&!dM(b))return a;if(2==a.tv()){c=_.y(a,82);var d=b.clone();$Hc(d,a);_.Tvc(d,b.tv());_.kJ(d,c);return d}a=a.clone();$Hc(a,b,c);return a},bIc=function(a){return(a=a?a.jg():null)&&_.P(a,7)||!1},cIc=function(a,b){this.V=a;this.items={};this.fields=new Set;this.H={};this.O=new Set;this.W=new Set(b)},dIc=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]={}})},fIc=function(a,b,c){b.every(function(d){return dM(d)})?eIc(b,c,a.H,a.O):b.every(function(d){return!dM(d)})&&eIc(b,c,a.items,a.fields)},eIc=function(a,b,c,d){b=_.uuc(b,[].concat(_.Bd(d)));if(0!==b.length)for(a=_.m(a),d=a.next();!d.done;d=a.next()){d=d.value;var e=d.Gf();e=e?_.le(e):null;for(var f=_.m(b),h=f.next();!h.done;h=f.next()){h=h.value;var k=c[h][d.getId()];k&&vL(d,k,[h]);e&&(k=c[h][e.getId()])&&vL(e,k,[h])}}};
cIc.prototype.update=function(a,b,c){b&&dM(b)?gIc(a,b,this.H,this.O,c):gIc(a,b,this.items,this.fields,c)};cIc.prototype.tJ=function(a){var b=this;_.Ma(this.items,function(c,d){_.Va(b.items[d],a)});_.Ma(this.H,function(c,d){_.Va(b.H[d],a)})};
var gIc=function(a,b,c,d,e){_.Ma(c,function(f,h){h=Number(h);if(e.includes(h)&&(f[a]&&!b?_.Va(f,a):b&&tBc(b,[h])&&(f[a]=hIc(b,h)),b)){var k=b.Gf();(k=k?_.le(k):null)&&tBc(k,[h])&&(f[k.getId()]=hIc(k,h))}});b&&pBc(b,[].concat(_.Bd(d)))},hIc=function(a,b){var c=new _.jl;c.Ob(a.getId());vL(c,a,[b]);return c};cIc.prototype.clear=function(){var a=this;_.Ma(this.items,function(b,c){a.items[c]={}});_.Ma(this.H,function(b,c){a.H[c]={}})};
cIc.prototype.log=function(a){this.V.info("drive.ds.sync.cache.FieldsCache",a)};var iIc=function(a,b,c){var d=this;this.pt=b;this.Av=c;this.Hd=new Map;this.rootId="";a.addCallback(function(e){d.rootId=e})};_.g=iIc.prototype;_.g.sy=function(){return this.Hd};_.g.fk=function(a){var b=new Map;a=_.m(a.qn());for(var c=a.next();!c.done;c=a.next())c=c.value,this.Hd.has(c)&&b.set(c,this.Hd.get(c).getItem());return b};
_.g.query=function(a,b){var c=[];if(jIc(a)){for(var d=_.m(this.Hd.values()),e=d.next();!e.done;e=d.next())e=e.value,eM(this.pt,a,e.getItem())&&(void 0===b||XHc(e.V,b))&&c.push(e);this.Av.sort(a,c)}return c};_.g.get=function(a){return this.Hd.get(a)||null};_.g.getAll=function(a){var b=[];a=_.m(a);for(var c=a.next();!c.done;c=a.next())(c=this.Hd.get(c.value))&&b.push(c);return b};
_.g.update=function(a){a.H?(a.H.count++,a.O&&a.O.count--,kIc(this,a.H)?(this.Hd.delete(a.id),a.H.count--):this.Hd.set(a.id,a.H)):(this.Hd.delete(a.id),a.O.count--)};var kIc=function(a,b){return 1<b.$b()||XHc(b.V,2)||b.getItem().JI()||PBc(b.getItem())?!1:"root"!==b.getId()&&b.getId()!==a.rootId};iIc.prototype.tJ=function(){for(var a=_.m(this.Hd.values()),b=a.next();!b.done;b=a.next())b=b.value,kIc(this,b)&&(this.Hd.delete(b.getId()),b.count--)};
var lIc=function(a,b,c,d){this.Mg=a;this.W=b;this.O=c;this.V=d},BCc=function(a,b){return(b=a.O.get(b))?(b=b.clone(),fIc(a.V,[b.getItem()],IFc(a.Mg)),b):null};lIc.prototype.H=function(a){return(a=BCc(this,a))?a.getItem():null};var mIc=function(a,b){var c={};b.forEach(function(d){var e=BCc(a,d);e&&(c[d]=e)});return c},nIc=function(a,b){return _.Oa(mIc(a,b),function(c){return c.getItem()})},oIc=function(a,b){b=fM(a.W,b);return a.O.query(b).map(function(c){return c.clone()})};
lIc.prototype.query=function(a){return oIc(this,a).map(function(b){return b.getItem()})};lIc.prototype.Ed=function(){return this.O.sy().size};
var pIc=function(a){var b=new Set;a=_.m(a.O.sy().values());for(var c=a.next();!c.done;c=a.next()){c=c.value.getItem();for(var d=_.m(_.kl(c)),e=d.next();!e.done;e=d.next())e=e.value,b.add(e.getId()||tL(e));(d=c.Am())&&b.add(d.getId()||tL(d));(d=c.Tt())&&b.add(d.getId()||tL(d));(d=c.Kq())&&b.add(d.getId()||tL(d));(c=c.lD())&&b.add(c.getId()||tL(c))}return b.size},qIc=function(a){return[].concat(_.Bd(new Set(a.map(function(b){return _.mtc.get(b)}).filter(function(b){return b})))).join(",")},gM=function(a,
b,c){b=void 0===b?[]:b;c=void 0===c?!1:c;b=[].concat(_.Bd(b));b=qIc(b);var d=_.YI(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,customerId":
_.Q(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,customerId":"kind,id,name,colorRgb,backgroundImageLink,creator,permissionsSummary,trusted,primaryDomainName,organizationDisplayName,restrictions,backgroundImageGridViewLink,backgroundImageListViewLink,hidden,customerId";
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";_.Q(a,77,!1)&&(c+=",canChangeCategoryReferences");
_.Q(a,93,!1)&&(c+=",canRemoveSecureLinkUpdateForAllFiles",d+=",removeSecureLinkUpdateForAllFiles");return(b.length?d+","+b:d)+",capabilities("+c+")"},rIc=function(a,b){b=void 0===b?[]:b;return"kind,nextPageToken,items("+gM(a,b,!1)+")"},sIc=function(a){var b=new _.Xo;_.OK(b,"hidden",_.P(a,4));a=_.P(a,6);null!=a&&_.OK(b,"canRemoveSecureLinkUpdateForAllFiles",a);return b.toString()},tIc=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}},uIc=function(a){var b=_.Iqc(),c={};b&&(c.numeric=b);this.H=_.Jqc(a,c)};uIc.prototype.compare=function(a,b,c){b=vIc(b);c=vIc(c);a=a.wc();var d=tIc(a);if(a&&d){d=wIc(this,a);var e=4===a.getType()?this.H:_.Fa;return xIc(a,d,e,b,c)}return _.Fa(b.getId(),c.getId())};
uIc.prototype.sort=function(a,b,c){a=a.wc();var d=tIc(a);a&&d&&(d=wIc(this,a),d=yIc(b,d),_.Ha(b,zIc(this,a,d)));c&&0<c&&_.Aa(b,c,b.length-c)};
var vIc=function(a){return a instanceof _.jl?a:a.getItem()},wIc=function(a,b){b=tIc(b);return _.N(a.O,a,b,_.Fa)},yIc=function(a,b){var c={};a.forEach(function(d){d=vIc(d);var e=d.getId();c[e]=b(d)});return c},zIc=function(a,b,c){return function(d,e){var f=4===b.getType()?a.H:_.Fa;d=vIc(d);e=vIc(e);return xIc(b,function(h){return c[h.getId()]},f,d,e)}},xIc=function(a,b,c,d,e){var f=1===a.nf()?1:-1;if(_.P(a,3)){a=xL(d,!0);var h=xL(e,!0);a=a===h?0:a?-1:1}else a=0;return a||f*(c(b(d),b(e))||_.Fa(d.getId(),
e.getId()))};uIc.prototype.O=function(a,b,c){for(var d=AIc(a[0],c),e=1;e<a.length;e++){var f=AIc(a[e],c);d=1===b(f,d)?f:d}return d};
var AIc=function(a,b){switch(a){case 21:return b.getId()||"";case 3:return b.getMimeType()||"";case 4:return b.gB()||!1;case 12:return b.sz()||0;case 11:return b.wB()||0;case 10:return b.Aq()||0;case 2:return(b.getTitle()||"").toLowerCase();case 25:return b.By()||0;case 57:return _.y(b,62)||0;case 32:return b.Tu()||0;case 9:return b.YC()||0;case 67:return b.VJ()||0;case 98:return b.aw()||0;default:return""}},BIc=function(a,b){this.fields=a;this.rootId="";this.fields.sort();this.H=b;this.Cq=_.vI(_.JI(b));
a=_.qK(b);this.V=!(!a||!_.Q(a,1,!1));this.O=!(!a||!_.Q(a,8,!1))};BIc.prototype.Eu=function(a){this.rootId=a||""};
var fM=function(a,b,c){b=b.clone();"root"===b.getId()&&b.Ob(a.rootId);_.Ol(b).filter(function(d){return"root"===d.Za()}).forEach(function(d){return d.Jb(a.rootId)});_.wf(b,_.Nl(b).map(function(d){d.Jb(d.Za().toLowerCase());return d}));c&&_.Ml(b,a.fields);b.O().sort();return b},OL=function(a,b,c){if(b instanceof _.of){b=fM(a,b);var d=_.mxc(b)}else if(b instanceof _.zA)d=b.qn().sort().join(","),_.Q(b,5,!1)&&(d+="|cachedOnly");else{if(b instanceof _.xI)return d=sIc(b),d+"|tdList";if(b instanceof _.FG)return d=
b.qn().sort().join(","),b.O().length&&(d+="|"+qIc(b.O())),d+"|tdMap";throw Error("Xe");}return 3===c?d:d+"|"+CIc(a,b.O(),2===c)},CIc=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(_.Bd(e)).filter(function(h){return f.has(h)}).forEach(function(h){e.delete(h);f.delete(h)});f.size&&(d=d+" - "+_.tJ({fields:[].concat(_.Bd(f)),Cq:a.Cq}));e.size&&(d=d+" + "+_.tJ({fields:[].concat(_.Bd(e)),Cq:a.Cq}));
return d};BIc.prototype.equals=function(a,b,c){var d;c&&(d=3);return OL(this,a,d)===OL(this,b,d)};
var sGc=function(a){if(!a.qn().every(function(b){return!_.ye(b)}))throw new _.Ec("Invalid ids for FindByIdsRequest");},EIc=function(a,b,c){if(_.QJ(b))throw new _.Ec("Did not expect a PeoplePredict request. Use peoplePredictQuery() for PeoplePredict requests. ");DIc(a,b,c)},DIc=function(a,b,c){var d;a.O||(d=_.qJ(3));if(b.getId())throw new _.Ec("Use findByIds() for find by id queries.",d?d:_.qJ(3));if(!b.Ei()||0>=b.Ei())throw new _.Ec("A positive limit is required on an ItemQueryRequest.",d?d:_.qJ(3));
_.ge(b,33);a.V&&c||(d=a.fields.slice(),c&&(d=d.concat(c)),FIc(a,d,b.O()));if(c=(c=b.wc())&&tIc(c))d=b.O().length?b.O():a.fields,FIc(a,d,c);if(_.PJ(b)){if(a.Cq)throw new _.Ec("User must be authenticated for a Quick Access request.");if(!GIc(a)&&20<b.Ei())throw new _.Ec("Limit must be in the range [1, 20].");c=2===_.BK(b);d=_.ge(b,33).length;if(c&&1!==d||d&&!c)throw new _.Ec("A Team Drive Quick Access request must specify the Team Drive corpora and a single Team Drive id.");c=_.Mj(_.qb(_.Kj(_.qb(_.qb(_.qb(_.NI(_.qb(_.Kj(_.NI(b.clone(),
1),30),32),33),45),47),74),75),48),6);d=new _.of;if(!_.ak(c,d))throw new _.Ec("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: "+eGc(d,c));}else if(_.Q(b,74,!1))throw new _.Ec("If is_quick_access_for_shared_files_request is set to true, is_quick_access_request must also be true.");if(_.RJ(b)){if(a.Cq)throw new _.Ec("User must be authenticated for a DrivePriority request.");if(2===
_.BK(b))throw new _.Ec("Team Drive corpora is not valid for a Drive Priority request.");a=_.qb(_.qb(_.qb(_.Kj(_.NI(b.clone(),1),30),32),45),52);b=new _.of;if(!_.ak(a,b))throw new _.Ec("Some fields specified are not valid for a Drive Priority request. Valid: field, request_descriptor, limit, corpora and is_drive_priority_request. Extra: "+eGc(b,a));}},HIc=function(a,b,c){if(!_.QJ(b))throw new _.Ec("Expected a PeoplePredict request.");DIc(a,b,c);if(a.Cq)throw new _.Ec("User must be authenticated for a People Predict request.");
if(2===_.BK(b))throw new _.Ec("Team Drive corpora is not valid for a People Predict request.");a=_.qb(_.qb(_.qb(_.Kj(_.NI(b.clone(),1),30),32),45),49);b=new _.of;if(!_.ak(a,b))throw new _.Ec("Some fields specified are not valid for a People Predict request. Valid: field, request_descriptor, limit, corpora and is_people_predict_request. Extra: "+eGc(b,a));},FIc=function(a,b,c){var d;a.O||(d=_.qJ(3));if(!uBc(b,c,_.suc)){var e=_.tJ({fields:c,Cq:a.Cq}),f=_.tJ({fields:b,Cq:a.Cq});a=_.tJ({fields:vBc(c,
b),Cq:a.Cq});throw new _.Ec("Requested field was not previously specified. Needed "+e+", but had "+(f+". Missing: "+a+"."),d?d:_.qJ(3));}},GIc=function(a){return 200<=_.DK(a.H)&&300>_.DK(a.H)},IIc=function(a){var b=new Set;a=_.m(_.Nl(a));for(var c=a.next();!c.done;c=a.next())switch(_.FOa(c.value.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("DRIVE_FORM")}return[].concat(_.Bd(b))},JIc=function(a){switch(_.DK(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"}},KIc=function(a){_.O.call(this);this.H=a};_.Zf(KIc,_.O);_.g=KIc.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.mO=function(a){this.H.addCallback(function(b){b.mO(a)})};_.g.send=function(a,b){this.H.addCallback(function(c){c.send(a,b)})};_.g.Ya=function(){this.cancel();KIc.wb.Ya.call(this)};
var XBc=function(a){_.dz.call(this);this.H=a;this.V=_.Pe(this.H,"message",this.tob,!1,this)};_.Zf(XBc,_.dz);_.g=XBc.prototype;_.g.eg=null;_.g.send=function(a,b){var c=[];b=this.fya(c,b);a={serviceName:a,payload:b,"--goog.messaging.PortChannel":!0};_.wtc&&(a=(0,_.Ji)(a));this.H.postMessage(a,c)};
_.g.tob=function(a){a=a.Ae;var b=a.data;if(_.wtc)try{b=JSON.parse(b)}catch(e){return}if(_.Ca(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.FBa(a.ports||[],b),d.vEa),null!=b&&d.callback(b))}};
_.g.fya=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)?b.map((0,_.N)(this.fya,this,a)):b&&b.constructor==Object?_.Oa(b,function(c,d){c=this.fya(a,c);return"_port"==d?{type:"escaped",val:c}:c},this):b};
_.g.FBa=function(a,b){return Array.isArray(b)?b.map((0,_.N)(this.FBa,this,a)):b&&b.constructor==Object?b._port&&"real"==b._port.type?a[b._port.index]:_.Oa(b,function(c,d){return this.FBa(a,"_port"==d?c.val:c)},this):b};_.g.Ya=function(){_.Ci(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;XBc.wb.Ya.call(this)};
var $Bc=function(a,b){if("*"==b)return new KIc(_.ni(Error("Ye")));var c=new _.Fi(50),d=_.Eb(_.aa,c),e=new _.ei(d);_.gi(e,d);c.start();_.Pe(c,"tick",function(){var f=new MessageChannel,h=function(){f.port1.removeEventListener("message",h,!0);c.isDisposed()||e.callback(new XBc(f.port1))};f.port1.start();f.port1.addEventListener("message",h,!0);a.postMessage({"--goog.messaging.PortChannel":!0},b,[f.port2])});return new KIc(e)},LIc=function(a){_.O.call(this);this.H=new _.Kqc(a);this.V={};this.O=_.Mqc(this.H,
"private");this.W=_.Mqc(this.H,"public");this.O.registerService("mics",(0,_.N)(this.Llb,this),!0)};_.Zf(LIc,_.O);_.g=LIc.prototype;_.g.vFb=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.vFb++;this.V[d]=c;c={signature:d};c.data=b;this.W.send(a,c)};_.g.Llb=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,_.N)(this.Klb,this,b),!0)};
_.g.Klb=function(a,b){a=a(b.data);var c=b.signature;_.Zh(a).then((0,_.N)(function(d){var e={};e.data=d;e.signature=c;this.O&&this.O.send("mics",e)},this))};var MIc=function(a,b){_.O.call(this);this.W=b;this.started=!1;this.V=new _.Kqc(a);this.Ma(this.V);this.H=new LIc(_.Mqc(this.V,"direct"));this.Ma(this.H)};_.K(MIc,_.O);MIc.prototype.registerService=function(a,b){this.H.registerService(a,b)};MIc.prototype.send=function(a,b,c){this.H.send(a,b||{},function(d){return(c||_.Uf)(d)})};
var ZBc=function(a,b){MIc.call(this,a,b);this.O=new LIc(_.Mqc(this.V,"passthrough"));this.Ma(this.O)};_.K(ZBc,MIc);var hM=function(a,b,c){a.O.registerService(b,function(d){return c(d)})},iM=function(a,b,c,d){a.O.send(b,c||{},d||_.Uf)};ZBc.prototype.start=function(){this.started||(this.started=!0)};var UBc=[],NIc=function(){_.dz.call(this);this.H=null};_.K(NIc,_.dz);NIc.prototype.send=function(a,b){_.b9a(this.H,a,b)};
var aCc=function(){this.O=new NIc;this.H=new NIc;var a=this.O;a.H||(a.H=this.H);a=this.H;a.H||(a.H=this.O)},OIc=function(a,b,c,d){this.clientId=a;this.method=b;this.args=c;this.requestId=d;this.H=void 0},PIc=function(a,b){b=void 0===b?!1:b;void 0===a.H&&(a.H=b)&&TBc(a.args);return{c:a.clientId,m:a.method,a:a.args,req:a.requestId,s:a.H}},QIc=function(a){var b=new OIc(a.c,a.m,a.a,a.req);b.H=a.s;return b},RIc=function(a,b,c){this.data=b?void 0:a;this.error=b;this.O=c;this.H=void 0},SIc=function(a,b){b=
void 0===b?!1:b;void 0===a.H&&a.data&&(a.H=b)&&TBc(a.data);return{d:a.data,err:a.error&&b?a.error.Lc():a.error,uid:a.O,s:b}},TIc=function(a){var b=a.s,c=a.err;c=void 0===c?void 0:b?new _.Dc(JSON.parse(a.err)):c;a=new RIc(c?void 0:a.d,c,a.uid);c||(a.H=b);return a},SBc=function(a,b){this.H=a;this.HD=b};SBc.prototype.get=function(){for(var a={},b=0;b<this.H.length;b++)a[this.H[b]]=this.HD[b];return a};
SBc.prototype.Lc=function(){for(var a={},b={},c=0;c<this.HD.length;c++){var d=this.HD[c],e=this.H[c];d instanceof Error?b[e]=_.fJ(d).Lc():a[e]=d.Lc()}return{r:a,e:b}};UIc=function(a,b){if(b){var c=[],d=[];_.Ma(a.r,function(e,f){c.push(f);d.push(new _.oK(JSON.parse(e)))});_.Ma(a.e,function(e,f){c.push(f);e=new _.Dc(JSON.parse(e));d.push(_.rJ(e))});return new SBc(c,d)}return a};YBc=function(a,b,c,d,e){this.channel=a;this.H=b;this.endpoint=c;this.V=d;this.O=e};
_.VK=function(a,b,c){this.response=a;this.Je=void 0===b?0:b;this.J_=void 0===c?null:c};_.WK=function(a,b,c,d){this.response=a;this.pageToken=void 0===b?"":b;this.H=void 0===c?!1:c;this.Je=void 0===d?0:d};VIc=function(a){_.WK.call(this,a,void 0,void 0,void 0);this.q3a=new _.Hn};_.K(VIc,_.WK);WIc=function(a,b){this.response=a;this.pageToken=void 0===b?"":b};_.YK=function(a,b,c){this.response=a;this.Je=void 0===b?0:b;this.J_=void 0===c?null:c};
_.XK=function(a,b,c){this.response=a;this.Je=void 0===b?0:b;this.J_=void 0===c?null:c};_.ZK=function(a,b,c,d){this.response=a;this.pageToken=void 0===b?"":b;this.H=void 0===c?!1:c;this.Je=void 0===d?0:d};XIc={FTb:0,aUb:1,YZb:3,n7b:5,Yhb:6,0:"ACCOUNT",1:"APPS",3:"ITEMS",5:"USER_PREFS",6:"PEOPLE"};_.BJ=function(a){_.J.call(this,a)};_.K(_.BJ,_.J);_.BJ.prototype.Nh=function(){return _.y(this,1)};_.BJ.prototype.te=function(){return _.B(this,_.Df,3)};_.EJ=function(a){_.J.call(this,a)};_.K(_.EJ,_.J);
_.EJ.prototype.Ac=function(){return _.y(this,1)};_.EJ.prototype.te=function(){return _.B(this,_.Df,3)};_.MJ=function(a){_.J.call(this,a)};_.K(_.MJ,_.J);_.MJ.prototype.Nh=function(){return _.y(this,1)};_.MJ.prototype.te=function(){return _.B(this,_.Df,2)};_.NJ=function(a){_.J.call(this,a)};_.K(_.NJ,_.J);_.NJ.prototype.Nh=function(){return _.y(this,1)};_.NJ.prototype.te=function(){return _.B(this,_.Df,2)};_.OJ=function(a){_.J.call(this,a)};_.K(_.OJ,_.J);_.g=_.OJ.prototype;
_.g.Ac=function(){return _.y(this,1)};_.g.zf=function(){return _.y(this,2)};_.g.getType=function(){return _.y(this,3)};_.g.Za=function(){return _.y(this,4)};_.g.Jb=function(a){return _.w(this,4,a)};_.g.Ui=function(){return _.qb(this,4)};_.g.Pg=function(){return _.Dj(this,4)};_.g.te=function(){return _.B(this,_.Df,7)};_.VJ=function(a){_.J.call(this,a)};_.K(_.VJ,_.J);_.VJ.prototype.Ac=function(){return _.y(this,1)};_.VJ.prototype.te=function(){return _.B(this,_.Df,2)};
_.VJ.prototype.Ei=function(){return _.bk(this,3,1E3)};_.VJ.prototype.vi=function(a){return _.w(this,3,a)};_.ZJ=function(a){_.J.call(this,a)};_.K(_.ZJ,_.J);_.ZJ.prototype.te=function(){return _.B(this,_.Df,1)};var YIc=function(){var a=new _.ZJ,b=_.Ef(new _.Df,301);return _.I(a,1,b)};_.ZJ.prototype.yc=function(){return _.y(this,3)};_.Quc=function(a){_.J.call(this,a)};_.K(_.Quc,_.J);_.Quc.prototype.yc=function(){return _.y(this,1)};_.eK=function(a){_.J.call(this,a)};_.K(_.eK,_.J);
_.eK.prototype.Nh=function(){return _.y(this,1)};_.eK.prototype.te=function(){return _.B(this,_.Df,4)};var ZIc=function(a){_.J.call(this,a)};_.K(ZIc,_.J);$Ic=function(a,b){return _.w(a,1,b)};_.CJ=function(a){_.J.call(this,a)};_.K(_.CJ,_.J);_.CJ.prototype.getId=function(){return _.y(this,1)};_.CJ.prototype.Ob=function(a){return _.w(this,1,a)};_.SJ=function(a){_.J.call(this,a)};_.K(_.SJ,_.J);_.SJ.prototype.getId=function(){return _.y(this,1)};_.SJ.prototype.Ob=function(a){return _.w(this,1,a)};
_.Duc=function(a){_.J.call(this,a)};_.K(_.Duc,_.J);var aJc=function(a,b,c){_.Ei.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};_.K(aJc,_.Ei);aJc.prototype.LB=function(){return this.O};aJc.prototype.fQ=function(){var a=this;if(this.W)return this.W;var b=_.ci();this.W=b.promise;_.n.setTimeout(function(){a.W=null},5E3);bJc(this,b);return b.promise};
aJc.prototype.ta=function(){!0===this.O&&(this.log("Became unauthenticated."),this.O=!1,this.V=!0,cJc(this))};aJc.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 xGc("pb")))};
var dJc=function(a,b){a.ha=b},cJc=function(a){a.H||(a.H=new _.ayc(5E3),a.timeout=_.n.setTimeout(function(){return eJc(a)},a.H.Za()))},eJc=function(a){bJc(a);a.H&&(_.FI(a.H),a.timeout=_.n.setTimeout(function(){return eJc(a)},a.H.Za()))},bJc=function(a,b){var c=_.Zh();a.ha&&(c=a.ha());c.then(function(){return fJc(a,b)})},fJc=function(a,b){a.log("Checking authentication state.");var c=a.Ba.then(function(d){return d.Qe(new _.Ruc)});b?c.then(function(){b.resolve($Ic(new ZIc,1))},function(d){var e=_.SB(d).Tg;
d=0;_.Jtc(e)?(a.log("Checked authentication state: unauthenticated."),d=2):(a.log("Checked authentication state: error occurred."),_.pq(e),_.w(e,21,"Checked authentication state: error occurred."),a.ka(e));e=new ZIc;$Ic(e,d);b.resolve(e)}):c.then(null,function(d){d=_.SB(d);_.Jtc(d.Tg)&&a.V&&(a.dispatchEvent(new xGc("qb")),a.V=!1)})};aJc.prototype.log=function(a){this.ma.info("drive.ds.sync.auth.StateManager",a)};_.Suc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};
_.Huc=function(a){this.H=a;this.type=1};_.Iuc=function(a){this.H=a;this.type=0};_.Puc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};gJc=function(a){return _.ek(a,_.ZI,3,_.$I)||_.ek(a,_.kK,4,_.$I)||_.ek(a,_.bL,5,_.$I)||_.ek(a,_.hK,6,_.$I)||_.ek(a,_.GJ,7,_.$I)||_.ek(a,_.zJ,8,_.$I)||_.ek(a,_.DJ,9,_.$I)||_.ek(a,_.hJ,10,_.$I)};hJc=function(a){_.J.call(this,a)};_.K(hJc,_.J);_.g=hJc.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Ob=function(a){return _.w(this,1,a)};
_.g.Yz=function(){return _.y(this,3)};_.g.Ke=function(){return _.y(this,4)};_.g.Li=function(a){return _.w(this,4,a)};var iJc=function(a){this.eg=a;this.H=new Map;this.O=this.eg.W};
iJc.prototype.create=function(a,b){if(0!=PFc(b)){var c=this.eg.H(106001);if(c){var d=PFc(b),e=IL(c);_.w(e,2,d);d=IL(c);e=null;if(b instanceof _.RG||b instanceof _.zA||b instanceof _.of||b instanceof _.TJ||b instanceof _.WD||b instanceof _.FG||b instanceof _.xI||b instanceof _.KI||b instanceof _.IG||b instanceof _.mA)e=b.te();e=e&&_.Q(e,2,!1);_.w(d,7,"boolean"==typeof e?e:void 0);d=IL(c);b=b instanceof _.of?0<_.Ol(b).length:void 0;_.w(d,8,b);this.H.set(a,c)}}};
var jJc=function(a,b,c){if(a=a.H.get(b))a=IL(a),_.w(a,5,c)},kJc=function(a,b,c){(a=a.H.get(b))&&_.P(IL(a),8)&&(a=IL(a),_.w(a,9,c))},lJc=function(a,b,c,d,e){var f=a.H.get(b);f&&(IL(f).Dc(c),IL(f).Ki(d),null!=e&&(c=IL(f),_.w(c,6,e)),f.Aj(),a.H.delete(b))},mJc=function(a,b,c){var d=a.H.get(b);if(d){var e=a.O.Bb(c);c=QFc(c);if(1==e||2==c)e=_.RK(_.ztc,c),d=IL(d),d=3==e||8==e?!_.P(d,5):0!=e?_.Vtc.has(e):null,lJc(a,b,1,e,d)}},nJc=function(a,b,c){var d=a.O.Bb(c);d=_.RK(_.ytc,d||22);var e=QFc(c);e=_.RK(_.ztc,
e);lJc(a,b,d,e,"undefined"!=typeof _.VK&&c instanceof _.VK||"undefined"!=typeof _.XK&&c instanceof _.XK||"undefined"!=typeof _.YK&&c instanceof _.YK?c.J_:null)},jM=function(a,b,c){c=void 0===c?3:c;var d=a.H.get(b);d&&(IL(d).Dc(c),d.Aj(),a.H.delete(b))},oJc=[2,4],kM=function(a){_.J.call(this,a,-1,oJc)};_.K(kM,_.J);kM.prototype.Bb=function(){return _.y(this,1)};kM.prototype.Dc=function(a){return _.w(this,1,a)};kM.prototype.dk=function(){return _.y(this,3)};
var pJc=[2],lM=function(a){_.J.call(this,a,-1,pJc)};_.K(lM,_.J);lM.prototype.Bb=function(){return _.y(this,1)};lM.prototype.Dc=function(a){return _.w(this,1,a)};lM.prototype.O=function(){return _.Wj(this,WL,2)};var qJc=function(a,b){return _.Lj(a,2,b)};lM.prototype.dk=function(){return _.y(this,3)};var rJc=[4,9],sJc=function(a){_.J.call(this,a,-1,rJc)};_.K(sJc,_.J);_.g=sJc.prototype;_.g.Bb=function(){return _.y(this,1)};_.g.Dc=function(a){return _.w(this,1,a)};_.g.FVa=function(){return _.y(this,2)};
_.g.RLa=function(){return _.y(this,3)};_.g.lsb=function(){return _.Wj(this,_.bJ,4)};var tJc={V6b:0,x1b:1,A1b:2,y1b:4,e_b:5,qXb:6,l_b:7,N1b:8},uJc=function(a){_.J.call(this,a)};_.K(uJc,_.J);uJc.prototype.getUrl=function(){return _.y(this,1)};var mM=function(a){_.J.call(this,a)};_.K(mM,_.J);var vJc=function(a,b){return _.w(a,1,b)};mM.prototype.getName=function(){return _.y(this,2)};mM.prototype.hd=function(a){return _.w(this,2,a)};mM.prototype.getEmail=function(){return _.y(this,3)};
var wJc=function(a,b){return _.w(a,3,b)};mM.prototype.qp=function(){return _.Dj(this,3)};var xJc=[1],yJc=function(a){_.J.call(this,a,-1,xJc)};_.K(yJc,_.J);var zJc=function(a,b){return _.Lj(a,1,b)},AJc=[2],nM=function(a){_.J.call(this,a,-1,AJc)};_.K(nM,_.J);nM.prototype.Bb=function(){return _.y(this,1)};nM.prototype.Dc=function(a){return _.w(this,1,a)};nM.prototype.xl=function(){return _.Wj(this,_.GG,2)};var BJc=function(a,b){return _.Lj(a,2,b)};nM.prototype.dk=function(){return _.y(this,3)};
var CJc=function(a){_.J.call(this,a)};_.K(CJc,_.J);_.g=CJc.prototype;_.g.Ac=function(){return _.y(this,1)};_.g.Bb=function(){return _.y(this,2)};_.g.Dc=function(a){return _.w(this,2,a)};_.g.getError=function(){return _.B(this,_.Dc,3)};_.g.Ie=function(a){return _.I(this,3,a)};_.g.eo=function(){return _.Dj(this,3)};var DJc=[1],EJc=function(a){_.J.call(this,a,-1,DJc)};_.K(EJc,_.J);var FJc=function(a,b){return _.Jj(a,1,b)},GJc=function(a,b){this.O=a|0;this.H=b|0};
GJc.prototype.equals=function(a){return this===a?!0:a instanceof GJc?this.O===a.O&&this.H===a.H:!1};GJc.prototype.Ec=function(){return 31*this.O+17*this.H|0};
var HJc=function(a,b){return new GJc(a,b)},IJc=function(a,b){b=~b;a?a=~a+1:b+=1;return HJc(a,b)},JJc=function(a){var b="-"===a[0];a=a.slice(b?3:2);return(b?IJc:HJc)(parseInt(a.slice(-8),16),parseInt(a.slice(-16,-8)||"",16))},KJc=function(){this.H=this.W=this.O=this.V=null},LJc=function(a){this.W=a;this.O=new Map;this.V=new Set;this.enabled=!0;this.error=null;this.started=!1},oM=function(a,b,c){if(a.started)throw Error("gf");c={Ho: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)}},pM=function(a,b){if(!a.started)throw Error("hf");if(!a.enabled)throw Error("jf`"+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.Ho.delete(b);if(0===e.Ho.size)try{e.callback()}catch(f){throw a.enabled=!1,a.error=f?_.rJ(f):null,f;}}}};LJc.prototype.H=function(a){return this.V.has(a)};
LJc.prototype.start=function(){this.started=!0};LJc.prototype.log=function(a){this.W.info("drive.ds.MilestoneManager",a)};var MJc=function(a,b,c){this.id=a;this.O=b;this.H=c},NJc=function(a,b){return new MJc((a?a:b).getId(),a,b)},qM=function(a){return new MJc(a.getId(),null,a)},OJc=function(a,b){this.pt=a;this.Av=b;this.XE=!0;this.S7=!1;this.Je=0},rM=function(a,b){(a.XE=b)||a.tJ()};_.g=OJc.prototype;
_.g.Dka=function(a,b){if(5===this.xE(a))throw Error("kf");for(var c=[],d=_.m(this.sy()),e=d.next();!e.done;e=d.next())e=e.value,eM(this.pt,a,e.getItem())&&c.push(e);this.Av.sort(a,c,b);return c};_.g.Ed=function(){return this.sy().length};_.g.fk=function(a,b){a=this.Dka(a,b);a=rCc(a);b=new _.xB;b.Vw(a);b.Dc(this.aH()?6:1);return b};_.g.update=function(a){var b=this.us(a.O),c=this.us(a.H);if(!b&&!c)return!1;b&&this.kJ(a.O);c&&this.qR(a.H);return!0};
_.g.xE=function(a){return this.XE&&this.S7?jIc(a)?1:5:5};_.g.ZW=function(){this.S7=!0};_.g.us=function(a){return!!a&&this.XE};_.g.Ki=function(a){this.Je=a};_.g.Ze=function(){return this.Je};var sM=function(a,b,c,d,e,f){f=void 0===f?"":f;OJc.call(this,a,b);var h=this;this.ha=c;this.nextPageToken=f;this.Hd=[];this.O={};this.request=fM(c,d,!0);this.W=OL(c,d);this.H=!e;PJc(this,e);this.V=function(k,l){return h.Av.compare(h.request,k,l)}};_.K(sM,OJc);_.g=sM.prototype;_.g.ud=function(){return this.request};
_.g.NM=function(){return this.W};_.g.qR=function(a){var b=this.O[a.getId()];b&&this.kJ(b);jBc(this.Hd,a,this.V);this.O[a.getId()]=a;a.count++;this.Hd.length>this.request.Ei()&&(this.kJ(_.ia(this.Hd)),this.H=!1)};_.g.kJ=function(a){var b=this.Hd,c=_.Ga(b,a,this.V);0<=c&&_.ta(b,c);_.Va(this.O,a.getId());a.count--};_.g.tJ=function(){this.Hd.forEach(function(a){a.count--});this.Hd=[];this.O={}};_.g.sy=function(){return this.Hd};
_.g.xE=function(a){var b;if(b=this.ha.equals(this.request,a,!0))a=a.O(),b=this.request.O(),b=uBc(b,a,_.suc);return b?this.H?1:6:5};_.g.Dka=function(a,b){if(5===this.xE(a))throw Error("kf");b=b?Math.min(b,this.Hd.length):this.Hd.length;return _.za(this.Hd,0,b)};_.g.us=function(a){if(!OJc.prototype.us.call(this,a)||!eM(this.pt,this.request,a.getItem()))return!1;if(this.H||_.Q(this.request,48,!1))return!0;var b=_.ia(this.Hd);return!!b&&0>=this.V(a,b)};_.g.aH=function(){return this.H?!1:!0};
_.g.getType=function(){return"CacheHintCorpusCache"};_.g.zl=function(a,b){var c=this,d=_.ia(this.Hd);!this.H&&d&&_.la(a,function(e){return e.getId()===d.getId()})&&(b?(this.kJ(d),PJc(this,_.ia(a))):this.H=!0);_.Ja(a,function(e){c.update(qM(e))})};var PJc=function(a,b){b&&eM(a.pt,a.request,b.getItem())&&a.qR(b)};sM.prototype.yy=function(){return this.nextPageToken};var tM=function(a,b){OJc.call(this,a,b);this.Hd=new Map};_.K(tM,OJc);tM.prototype.qR=function(a){this.Hd.set(a.getId(),a);a.count++};
tM.prototype.kJ=function(a){this.Hd.delete(a.getId());a.count--};tM.prototype.tJ=function(){for(var a=_.m(this.Hd.values()),b=a.next();!b.done;b=a.next())b.value.count--;this.Hd=new Map};tM.prototype.sy=function(){return Array.from(this.Hd.values())};var QJc=function(a,b){tM.call(this,a,b);this.ZW()};_.K(QJc,tM);_.g=QJc.prototype;
_.g.xE=function(a){var b=this,c=tM.prototype.xE.call(this,a);if(5===c)return c;if(0<_.ge(a,33).length)return 5;a=_.Ol(a);return 0<a.length?a.every(function(d){return(d=b.Hd.get(d.Za()))&&!d.getItem().yc()&&d.H})?1:5:5};_.g.us=function(a){return tM.prototype.us.call(this,a)&&!(null===a||void 0===a?0:a.getItem().yc())};_.g.Dka=function(a,b){for(var c=[],d=_.m(this.sy()),e=d.next();!e.done;e=d.next())e=e.value,eM(this.pt,a,e.getItem())&&c.push(e);this.Av.sort(a,c,b);return c};_.g.ud=function(){return new _.of};
_.g.NM=function(){return null};_.g.getType=function(){return"MyDriveCorpusCache"};_.g.aH=function(){return!1};var RJc=function(a){return[].concat(_.Bd(a.Hd.values())).filter(function(b){return b.H}).map(function(b){return b.getId()})},uM=function(a,b,c,d){tM.call(this,a,b);var e=this;this.H=d;oM(c,["aU7Ts","BNEDtc"],function(){return e.ZW()})};_.K(uM,tM);
uM.prototype.xE=function(a){var b=this,c=tM.prototype.xE.call(this,a);if(5==c)return c;if(0<_.ge(a,33).length)return 5;a=_.Ol(a);return 0<a.length&&!a.every(function(d){d=b.Hd.get(d.Za());return null!=d&&!d.getItem().yc()&&DBc(d.getItem())&&!_.P(d.getItem(),108)})?5:1};uM.prototype.us=function(a){return tM.prototype.us.call(this,a)&&SJc(this,a.getItem())};var SJc=function(a,b){if(_.P(b,31)||!a.S7)return!0;var c=a.H();return b.wk().some(function(d){var e=a.Hd.get(d);return d==c||null!=e&&DBc(e.getItem())})};
_.g=uM.prototype;_.g.ZW=function(){tM.prototype.ZW.call(this);for(var a=_.m(this.Hd),b=a.next();!b.done;b=a.next()){var c=_.m(b.value);b=c.next().value;c=c.next().value;SJc(this,c.getItem())||(c.count--,this.Hd.delete(b))}};_.g.ud=function(){return new _.of};_.g.NM=function(){return null};_.g.getType=function(){return"SubscribedCorpusCache"};_.g.aH=function(){return!1};
var TJc=/^[\x00-\x7F]*$/,vM=function(){this.H=[this.W,this.O,this.V,this.ha,this.wEb,this.sEb,this.iEb,this.lEb,this.kEb,this.pEb,this.gEb,this.jEb,this.qEb,this.rEb,this.tEb,this.hEb,this.vEb,this.uEb,this.dEb,this.nEb,this.mEb,this.eEb,this.oEb,this.xEb,this.fEb];this.rootId=""};vM.prototype.Eu=function(a){this.rootId=a||""};
var jIc=function(a){return UJc(a)&&0==_.ge(a,40).length&&void 0==_.y(a,41)},UJc=function(a){var b=!0;_.Wj(a,_.rf,13).forEach(function(d){"me"!=d.Za()&&(b=!1)});var c=a.wc();c=!c||5!=c.getType();return 0==_.Wj(a,_.Il,5).length&&0==_.Wj(a,_.rf,14).length&&0==_.Wj(a,_.rf,15).length&&!_.Dj(a,58)&&!_.P(a,18)&&!_.P(a,34)&&0==_.Wj(a,_.Bl,35).length&&0==_.Wj(a,_.Bl,38).length&&c&&b&&0==_.ge(a,39).length&&!_.y(a,42)&&0==_.Wj(a,_.Al,44).length&&!_.PJ(a)&&!_.QJ(a)&&!_.RJ(a)&&0==_.Wj(a,_.El,57).length&&VJc(a)&&
!_.B(a,_.Ioa,59)&&null==_.P(a,60)&&0==_.Wj(a,_.rf,68).length&&0==_.Wj(a,_.rf,67).length&&null==_.P(a,69)&&!_.P(a,73)},VJc=function(a){return _.Wj(a,_.Jl,4).every(function(b){b=b.Za();return!b||!b.includes("*")&&TJc.test(b)})};vM.prototype.L8=function(a,b){var c=this;return b.filter(function(d){return eM(c,a,d)})};var eM=function(a,b,c){return!!c&&WJc(a,c)&&a.H.every(function(d){return d.call(a,b,c)})},WJc=function(a,b){return b.getId()!=a.rootId&&!dM(b)};
vM.prototype.W=function(a,b){var c=!0,d=_.Wj(a,_.Jl,4);if(!VJc(a))return!0;for(a=0;a<d.length&&c;a++){var e=d[a];if(e.Za()){var f=_.Q(e,3,!1),h=(b.getTitle()||"").toLowerCase(),k=e.Za().toLowerCase();if(2==_.y(e,1))h=k==h,c=c&&(f?!h:h);else{e=[];if(0<=k.indexOf("-"))for(var l=RegExp("\\w*-[\\w-]*"),p=_.m(k.match(l)||[]),q=p.next();!q.done;q=p.next())e.push(q.value),k=k.replace(l,"");e.push.apply(e,_.Bd(k.split(RegExp("\\b"))));for(k=0;k<e.length&&c;k++)l=e[k],p=!0,0!=(0,_.rg)(l).length&&(0==l.replace(/\./g,
"").length&&(p=!1),l=!!h.match(p?new RegExp("(^|[^\\w])"+_.Sg(l)+"($|[^\\w])|(^|[ ])"+_.Sg(l)):new RegExp(_.Sg(l))),c=c&&(f?!l:l))}}}return c};
vM.prototype.O=function(a,b){var c=_.Nl(a),d=0,e=0,f=!1,h=!1;c=_.m(c);for(var k=c.next();!k.done;k=c.next())if(k=k.value,k.Za()){var l=b.getMimeType()||"";if(_.P(k,4)){var p=b.Gf();l=p&&_.y(p,3)||""}p=_.Q(k,2,!1);var q=k.Za();_.rK(a)&&(q=q.toLowerCase(),l=l.toLowerCase());k=0===_.Gj(k,3,0)?q===l:l.includes(q);p?(e++,h=h||k):(d++,f=f||k)}return d&&!f||e&&h?!1:!0};
vM.prototype.V=function(a,b){var c=!0;a=_.Wj(a,_.Gl,7);a=_.m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=b.Aq();c=c&&XJc(e,d)}return c};vM.prototype.ha=function(a,b){var c=!0;a=_.Wj(a,_.Gl,8);a=_.m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=b.sz();c=c&&XJc(e,d)}return c};var XJc=function(a,b){if(null!=_.y(b,2))switch(_.y(b,1)){case 1:return a<=_.y(b,2);case 2:return a<_.y(b,2);case 3:return a==_.y(b,2);case 4:return a>_.y(b,2);case 5:return a>=_.y(b,2);default:return!1}return!0};
_.g=vM.prototype;_.g.wEb=function(a,b){var c=a.Xh();a=(a=_.BK(a))&&(2==a||3==a);return null==c||c==!!b.Xh()&&(!c||1==b.Zo()||!!a)};_.g.sEb=function(a,b){return null==_.P(a,10)||_.P(a,10)==!!b.gB()};_.g.iEb=function(a,b){return null==_.P(a,11)||_.P(a,11)==!!_.P(b,6)};_.g.lEb=function(a,b){a=_.Ol(a);a=_.m(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.Za()){var d="root"==c.Za()&&this.rootId||c.Za();d=b.wk().includes(d);if(_.Q(c,2,!1)?d:!d)return!1}return!0};
_.g.kEb=function(a,b){a=_.Wj(a,_.rf,13);a=_.m(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,"me"==c.Za()){var d=1==b.Zo();if(_.Q(c,2,!1)?d:!d)return!1}return!0};_.g.pEb=function(a,b){return null==_.P(a,16)||(_.P(a,16)?null!=b.By():!0)};_.g.gEb=function(a,b){var c=_.P(a,17);a=(a=_.BK(a))&&(2==a||3==a);return null==c||c==!!b.JI()&&(!c||1==b.Zo()||!!a)};_.g.jEb=function(a,b){b=NBc(b);return null==_.P(a,19)||_.P(a,19)==!!_.el(b)};
_.g.qEb=function(a,b){var c=_.bb(_.ge(b,56));a=_.Wj(a,_.AK,25);return 0==a.length?!0:a.every(function(d){return c[d.Za()]})};_.g.rEb=function(a,b){if(0==a.DB().length)return!0;var c=_.bb(b.DB().map(function(d){return d.aR()}));a=_.bb(a.DB().map(function(d){return d.aR()}));return _.Pa(a,function(d,e){return c[e]})};_.g.tEb=function(a,b){a=_.ge(a,33);return!a.length||a.includes(b.yc()||"")};_.g.hEb=function(a,b){var c=_.bb(_.ge(b,50));a=_.Wj(a,_.Hl,37);return 0==a.length?!0:a.every(function(d){return c[d.Za()]})};
_.g.vEb=function(a,b){return _.y(a,41)?(b=_.B(b,_.vK,86),null!=b&&_.y(a,41)==_.y(b,3)):!0};_.g.uEb=function(a,b){if(_.ge(a,40).length){if(b=_.B(b,_.vK,86)){var c=_.bb(_.ge(b,2));return _.ge(a,40).some(function(d){return c[d]})}return!1}return!0};_.g.dEb=function(a,b){var c=_.BK(a);return 1==c?(b=_.P(b,31),!!_.Ol(a).length||!!_.Wj(a,_.Bl,35).length||1==_.P(a,18)||_.PJ(a)||_.QJ(a)||_.RJ(a)||!!a.Qp()||null==b||b):2==c?!!b.yc():!0};
_.g.nEb=function(a,b){return _.PJ(a)?!_.Dj(b,100)||b.Xh()?!1:_.Q(a,74,!1)?!!_.P(_.ml(b),4):!!_.P(_.ml(b),3):!0};_.g.mEb=function(a,b){return _.QJ(a)?!!_.nl(b).length&&!b.Xh():!0};_.g.eEb=function(a,b){return _.RJ(a)?!!_.ol(b).length&&!b.Xh():!0};_.g.oEb=function(a,b){return _.Dj(a,50)?_.Q(a,50,!1)?_.Dj(b,101)&&0!==_.y(b,101):!_.Dj(b,101):!0};_.g.xEb=function(a,b){a=a.Qp();return!a||_.ge(b,120).includes(a)};
_.g.fEb=function(a,b){b=_.B(b,_.tK,138);if(null==_.P(a,65)||null==b)return!0;b=2==_.y(b,1);return _.P(a,65)==b};var wM=function(a,b,c,d){d=void 0===d?5E3:d;tM.call(this,a,b);this.teamDriveId=c;this.limit=d};_.K(wM,tM);_.g=wM.prototype;
_.g.xE=function(a){var b=this,c=tM.prototype.xE.call(this,a);if(5==c)return c;c=_.Ol(a);var d=c.every(function(e){var f=e.Za();return(null!=b.Hd.get(f)||b.teamDriveId==f)&&!_.Q(e,2,!1)});if(0<c.length&&d)return 1;a=_.ge(a,33);return 0!=a.length&&a.includes(this.teamDriveId)?1:5};_.g.us=function(a){return tM.prototype.us.call(this,a)&&!!a&&a.getItem().yc()==this.teamDriveId&&!dM(a.getItem())};_.g.aH=function(){return!1};_.g.ud=function(){var a=new _.of;_.Rl(a,[this.teamDriveId]);_.Sl(a,2);return a};
_.g.NM=function(){return null};_.g.yc=function(){return this.teamDriveId};_.g.getType=function(){return"TeamDriveCorpusCache: "+this.teamDriveId};var YJc=function(a,b){this.W=a;this.ka=b;this.ha=[];this.O=this.H=null;this.V=[];a=new _.of;_.w(a,48,!0);b=new _.nd;_.od(b,11);_.pd(b,2);_.pf(a,b);this.ma=fM(this.W,a,!0)};
YJc.prototype.add=function(a){a instanceof uM?this.H=a:a instanceof QJc?this.O=a:a instanceof sM?(this.log("Adding new cache hint for "+OL(this.W,a.ud(),2)),this.ha.push(a)):a instanceof wM&&this.V.push(a)};
YJc.prototype.remove=function(a){var b=this;if(a instanceof uM)this.H&&(rM(this.H,!1),this.H=null);else if(a instanceof QJc)this.O&&(rM(this.O,!1),this.O=null);else if(a instanceof sM){var c=_.ka(this.ha,function(d){return b.W.equals(d.ud(),a.ud())});0<=c&&(rM(this.ha[c],!1),_.ta(this.ha,c))}else a instanceof wM&&(c=_.ka(this.V,function(d){return b.W.equals(d.ud(),a.ud())}),0<=c&&(rM(this.V[c],!1),_.ta(this.V,c)))};
var ZJc=function(a){var b=[];a.H&&b.push(a.H);a.O&&b.push(a.O);_.ya(b,_.xa(a.ha));_.ya(b,_.xa(a.V));return b},$Jc=function(a,b){b=void 0===b?!1:b;return a.ha.filter(function(c){return a.H&&b?(c=c.ud().clone(),_.qb(c,32),_.Mj(c,26),!_.ak(a.ma,c)):!0})};YJc.prototype.XV=function(){return _.xa(this.V)};var aKc=function(a,b){return _.pg(a.V,function(c){return c.yc()===b})},bKc=function(a,b){return $Jc(a).find(function(c){return a.W.equals(c.ud(),fM(a.W,b,!0))})};
YJc.prototype.log=function(a,b){this.ka.log("drive.ds.sync.cache.CorpusCacheList",a,void 0===b?"info":b)};var cKc=function(a,b){_.ui.call(this,"Db");this.ids=a;this.error=b};_.K(cKc,_.ui);cKc.prototype.getError=function(){return this.error};cKc.prototype.H=function(){return this.ids};var dKc=function(a){_.ui.call(this,"Eb");this.people=a};_.K(dKc,_.ui);dKc.prototype.getPeople=function(){return this.people};var eKc=function(a){_.ui.call(this,"Fb");this.people=a};_.K(eKc,_.ui);
eKc.prototype.getPeople=function(){return this.people};var gKc=function(a,b,c){c=void 0===c?0:c;this.person=a;this.Je=c;this.V=this.W=null;this.O=!1;this.H=new Set(b?[b]:[]);6===c&&(this.O=!0);fKc(this)};gKc.prototype.Ze=function(){return this.Je};
var hKc=function(a){return 0===a.Je?1:2===a.Je||(1===a.Je||4===a.Je)&&(a.person.qp()||a.O)?3:2},iKc=function(a,b,c){if(_.y(b,1)!==_.y(a.person.clone(),1))return!1;6===c&&(a.O=!0);var d=hKc(a),e=a.Ze();if(4===c?0:1===e?1===c:5===e||6===e||2===e||4===e?0!==c&&e!==c:1)return b=wJc(b.clone(),a.getEmail(b)),e=!_.ak(a.person,b),a.person=b,a.Je=c,fKc(a),e||d!==hKc(a);if(4===c)return a.Je=c,fKc(a),d!==hKc(a);c=b;return!a.person.getEmail()&&c.getEmail()?(wJc(a.person,a.getEmail(b)),!0):!1};
gKc.prototype.getEmail=function(a){var b=this.person.getEmail();a=a.getEmail();return!a&&b&&0!==b.length?b:a};var fKc=function(a){1===a.Je?(a.W=Date.now(),a.V=null):4===a.Je&&(a.V=Date.now())},kKc=function(a,b,c,d){_.Ei.call(this);var e=this;this.O=a;this.V=b;this.W=c;this.ha=d;this.H=[];this.ka=new _.VI(function(){return jKc(e)},100,this)};_.K(kKc,_.Ei);kKc.prototype.$g=function(a){a&&_.YI(this.O)&&(this.H.includes(a)||this.H.push(a),this.ka.oe())};
var jKc=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)}})};kKc.prototype.sendRequest=function(a){var b=this;return this.W.then(function(c){var d=c.Qe;var e=new _.YJ;e=_.Jj(e,1,a);return d.call(c,e)}).then(function(c){c=_.Wj(c,mM,1);b.dispatchEvent(new dKc(c))},function(c){c=_.SB(c);b.dispatchEvent(new cKc(a,c))})};
kKc.prototype.log=function(a){this.V.info("drive.ds.sync.query.PeopleQueryRunner",a)};
var nKc=function(a,b,c,d,e){_.Ei.call(this);var f=this;this.H=new Map;this.O=new Set;this.V=new Map;this.Sc=new _.Ze(this);this.Ma(this.Sc);this.ka=b;this.ha=d;this.ta=_.bk(_.B(a,CEc,85)||new CEc,1,864E5);this.W=new kKc(a,b,c,e);this.ma=new _.mE(function(){var h,k=null===(h=f.ha)||void 0===h?void 0:KL(h,106015);if(k){h=_.B(_.QK(k),kFc,11);if(!h){h=new kFc;var l=_.QK(k);_.I(l,11,h)}h=_.w(h,1,f.H.size);_.w(h,2,f.O.size);k.Aj()}},500,this);this.Sc.listen(this.W,"Eb",function(h){h=h.getPeople();lKc(f,
h,1);f.ma.oe()});this.Sc.listen(this.W,"Db",function(h){mKc(f,h)})};_.K(nKc,_.Ei);nKc.prototype.get=function(a){var b=this.H.get(a);return b?(oKc(this,b)&&pKc(this,a),b):null};var pKc=function(a,b){if(!b)return Promise.resolve();if(a.V.has(b))return a.V.get(b).promise;a.W.$g(b);var c=new _.Hn;a.V.set(b,c);return c.promise};nKc.prototype.Sb=function(a){var b=this;return qKc(this,a)?Promise.resolve(this.H.get(a)):pKc(this,a).then(function(){return b.H.get(a)})};
nKc.prototype.vc=function(){return 0===this.H.size};nKc.prototype.clear=function(){this.log("Clearing the PeopleCache.");this.H.clear();this.O.clear()};
var rKc=function(a){return[].concat(_.Bd(a.H.values())).filter(function(b){return 3===hKc(b)&&4!==b.Ze()}).map(function(b){return b.person.clone()})},sKc=function(a,b){return(a=a.H.get(b))?[].concat(_.Bd(a.H)):[]},tKc=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(_.Bd(e.H)).length&&(a.H.delete(d),a.O.delete(d)))}},lKc=function(a,b,c){if(![1,2].includes(c))throw Error("lf");0!==b.length&&(a.log("Importing "+b.length+" from "+
(Object.keys(tJc)[c]+".")),uKc(a,b,c))},wKc=function(a,b,c,d){0!==b.length&&vKc(a,b,c,void 0===d?0:d)},qKc=function(a,b){b=a.H.get(b);return!(!b||3!==hKc(b)||oKc(a,b))},vKc=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=_.y(f,1),k=a.H.get(h);if(k)iKc(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&&pKc(k,_.y(f,1));l=new gKc(f,p,l);k.H.set(_.y(f,1),l)}e&&1===d&&(f.getName()?a.O.delete(h):a.O.add(h))}return e},oKc=function(a,
b){switch(b.Ze()){case 1:return Date.now()-Number(b.W)>a.ta;case 4:return 1E3<Date.now()-Number(b.V);default:return!0}};nKc.prototype.log=function(a,b){this.ka.log("drive.ds.sync.cache.PeopleCache",a,void 0===b?"info":b)};
var mKc=function(a,b){b=b.H().map(function(c){var d=a.H.get(c);return d?d.person.clone():vJc(new mM,c)});uKc(a,b,4)},uKc=function(a,b,c){for(var d=_.m(b),e=d.next();!e.done;e=d.next()){e=_.y(e.value,1);var f=a.V.get(e);f&&(f.resolve(),a.V.delete(e))}vKc(a,b,void 0,c)&&a.dispatchEvent(new eKc(b))},xKc=function(a,b,c,d,e,f){_.Ei.call(this);var h=this;this.Sc=new _.Ze(this);this.Ma(this.Sc);this.H=new nKc(a,b,c,e,f);this.O=_.qK(a)||new _.bwc;this.Sc.listen(this.H,"Fb",function(k){return h.dispatchEvent(k)})};
_.K(xKc,_.Ei);xKc.prototype.VO=function(a){var b=this;if(a.H){var c=a.H.getItem(),d=yKc(this,[c]).map(function(e){return zKc(b,e)});wKc(this.H,d,a.H.getId(),this.Ze(_.y(c,82)))}a.O&&tKc(this.H,a.id,AKc(this,a))};xKc.prototype.Ze=function(a){return _.buc.get(a)||0};
var AKc=function(a,b){var c=BKc(a,b.O),d=BKc(a,b.H);return c.filter(function(e){return!d.includes(e)})},BKc=function(a,b){return b?CKc(a,[b.getItem()]):[]},EKc=function(a,b){b=b.getUser();wKc(a.H,[zKc(a,b)],"ACCOUNT");DKc(a,b)},GKc=function(a,b){var c=_.Wj(b,_.HK,2).map(function(d){var e=_.B(d,_.Sk,9,1);return a.H.Sb(tL(e)).then(function(){return void FKc(a,[e])})});return Promise.all(c).then(function(){return b})},HKc=function(a,b){FKc(a,yKc(a,b))},FKc=function(a,b){b=_.m(b);for(var c=b.next();!c.done;c=
b.next())c=c.value,tL(c)&&DKc(a,c)},IKc=function(a,b,c){for(var d=new Set,e=_.m(b),f=e.next();!f.done;f=e.next())f=f.value,tL(f)&&(d.add(tL(f)),wKc(a.H,[zKc(a,f)],c));return Promise.all([].concat(_.Bd(d)).map(function(h){return a.H.Sb(h)})).then(function(){return FKc(a,b)})},KKc=function(a,b){return CKc(a,[b]).some(function(c){return!JKc(a,c)})},JKc=function(a,b){return qKc(a.H,b)},CKc=function(a,b){var c=new Set;a=yKc(a,b);a=_.m(a);for(b=a.next();!b.done;b=a.next())(b=tL(b.value))&&c.add(b);return[].concat(_.Bd(c))},
yKc=function(a,b){return b.map(function(c){var d=c.$v();d=d?[].concat(_.Bd(d.dR()),_.Bd(_.Wj(d,_.Sk,3))):[];var e=c.Gf();e=(e=e&&_.le(e))?yKc(a,[e]):[];return[].concat(_.Bd(_.kl(c)),[c.Am(),c.Tt(),c.Kq(),c.lD()],_.Bd(d),_.Bd(e))}).flat().filter(function(c){return c&&!!tL(c)})};xKc.prototype.Gd=function(a){return sKc(this.H,a).filter(function(b){return"ACCOUNT"!==b})};
var LKc=function(a){return zJc(new yJc,rKc(a.H))},MKc=function(a,b){return b.map(function(c){c=c.clone();var d=yKc(a,[c]);d=_.m(d);for(var e=d.next();!e.done;e=d.next())e=e.value,_.qb(e,3),_.qb(e,8),_.qb(e,5);return c})},OKc=function(a,b){return b.some(function(c){return NKc(a,c)})},NKc=function(a,b){return yKc(a,[b]).some(function(c){return _.Dj(c,3)||c.qp()||_.Dj(c,5)})},DKc=function(a,b){var c=a.H.get(tL(b));if(c){a=c.person.clone();var d=_.fvc(b.hd(a.getName()),a.getEmail());c=hKc(c);_.w(d,16,
c);(a=_.B(a,uJc,4))&&b.Nn(a.getUrl())}},zKc=function(a,b){var c=tL(b);c=wJc(vJc(new mM,c).hd(b.getName()),b.getEmail());var d=new uJc;var e=_.y(b,5);d=_.w(d,1,e);c=_.I(c,4,d);_.Q(a.O,9,!1)&&(_.qb(b,3),_.qb(b,8),_.qb(b,5));return c},PKc=function(){this.suggestionSessionId=this.W=null;this.V=[];this.incompleteSearch=!1;this.O=[];this.H=!0};PKc.prototype.dg=function(){return this.suggestionSessionId};PKc.prototype.Hza=function(){return this.O};PKc.prototype.vc=function(){return this.H};
var QKc=function(a){if(!a)return null;a=a.split("/");return 2>a.length?null:a[1]},RKc=function(a,b){a=QKc(a);b=QKc(b);return!(!a||!b||a!==b)},SKc=function(a){return a.Ac()+"_"+QKc(a.getName())},TKc=function(a,b){var c=_.ge(a,1).map(function(d,e){return b[Number(e)].value.q3a.promise});return Promise.allSettled(c).then(function(d){return _.ge(a,1).map(function(e,f){e=e.toString();var h=new CJc;e=_.w(h,1,e);f=d[Number(f)];"fulfilled"===f.status?e.Dc(1):(e.Dc(3),e.Ie(f.reason.Tg));return e})})},xM=function(a,
b){_.O.call(this);this.O=a;this.request=b;this.Ny=new Set;this.status=6;this.V=new Map;this.Je=0};_.K(xM,_.O);_.g=xM.prototype;_.g.ji=function(a){var b=this;this.Ny.add(a);return this.resize().then(function(){return b.jO(a)})};_.g.kk=function(a){this.Ny.delete(a);0===this.Ny.size&&this.dispose()};_.g.Ze=function(){return this.Je};_.g.Ki=function(a){this.Je=a};
_.g.qD=function(a,b,c){var d=this;c=void 0===c?1:c;var e=!1;a.forEach(function(f){e=d.Lu(f,c)||e});b||(e=1!==this.status||e,this.status=1);return e?this.IX():_.Zh([])};_.g.IX=function(){for(var a=[],b=_.m(this.Ny.values()),c=b.next();!c.done;c=b.next())a.push(this.jO(c.value));return _.ai(a)};
_.g.HX=function(a){this.status=3;for(var b=[],c={},d=_.m(this.Ny.values()),e=d.next();!e.done;c={Dqa:c.Dqa},e=d.next())c.Dqa=e.value,b.push(this.O.then(function(f){return function(h){return void h.HX(f.Dqa,a)}}(c)));return _.ai(b)};_.g.xA=function(){for(var a=this,b=[],c={},d=_.m(this.Ny.values()),e=d.next();!e.done;c={Eqa:c.Eqa},e=d.next())c.Eqa=e.value,b.push(this.O.then(function(f){return function(h){return void h.xA(f.Eqa)}}(c)));return _.ai(b).then(function(){a.Ki(0===a.Ze()?1:6)})};
_.g.resize=function(){var a=this;return this.O.then(function(b){var c=0;a.Ny.forEach(function(d){d=b.oka(d);c=Math.max(c,d.Ei?d.Ei()||0:0)});a.ffa(c)})};var UKc=function(a,b){return b?a.V.get(a.Tja(b))||null:null};_.g=xM.prototype;_.g.VH=function(a,b){var c=UKc(this,a);b=YHc(c,b);this.V.set(this.Tja(a),b)};_.g.Tja=function(a){return a};_.g.SLa=function(){return[]};_.g.jO=function(a){var b=this;return this.O.then(function(c){return void c.jO(a,b.fk())})};_.g.removeItem=function(){};
var yM=function(a,b){_.Ei.call(this);this.request=a;this.pageToken="";this.H=this.O=!1;this.data=[];this.limit=0;this.W=b};_.K(yM,_.Ei);var VKc=function(a){return!a.O||""!==a.pageToken};yM.prototype.$g=function(a){this.limit=void 0===a?1E5:a;return!this.H&&this.data.length<=this.limit&&VKc(this)?WKc(this):_.Zh()};
var WKc=function(a){a.O=!0;a.H=!0;var b=a.Xha(a.request,a.limit-a.data.length,a.pageToken);return a.W(b).then(function(c){return XKc(a,c)},function(c){return a.handleError(c)})},XKc=function(a,b){a.H=!1;a.pageToken=a.ika(b);b=a.wja(b);b.forEach(function(c){return a.data.push(c)});a.S5(b);return a.data.length<a.limit&&VKc(a)?_.ai([_.Zh(b),WKc(a)]).then(function(c){return c[0].concat(c[1])}):_.Zh(b)};
yM.prototype.handleError=function(a){this.H=!1;a=_.fJ(a);var b=new ML(a);this.TLa(b);this.dispatchEvent(b);return _.$h(a)};yM.prototype.S5=function(){};yM.prototype.TLa=function(){};var YKc=function(a,b,c){yM.call(this,c,function(d){return a.then(function(e){return e.Qe(d)}).Dg(function(e){return void _.sJ(e)})});this.V=b};_.K(YKc,yM);_.g=YKc.prototype;_.g.Xha=function(a,b,c){a=a.clone();a.vi(b);return new _.Fuc(a,c)};_.g.ika=function(a){return a.pageToken||""};_.g.wja=function(a){return a.response.O()};
_.g.S5=function(a){this.V.qD(a,!1,1)};_.g.TLa=function(a){this.V.FB(this.request,a)};var ZKc=function(a,b,c,d){xM.call(this,a,d.clone());this.ha=b;this.W=c;this.data=[];this.H=null};_.K(ZKc,xM);_.g=ZKc.prototype;_.g.refresh=function(){this.xA();this.H=new YKc(this.ha,this.W,this.request);return this.H.$g(this.request.Ei()||100)};_.g.Jp=function(a){return this.data.find(function(b){return RKc(b.getName(),a)})};
_.g.ffa=function(a){this.H&&a===this.request.Ei()||(this.request.vi(a),this.H?this.H.$g(a):this.refresh())};_.g.fk=function(){var a=this,b=qJc((new lM).Dc(this.status),this.data.filter(function(c){return a.W.HCa(c)}).map(function(c){return c.clone()}));return new _.WK(b,void 0,void 0,this.Ze())};_.g.qD=function(a,b,c){var d=this;a=a.filter(function(e){return e.Ac()===d.request.Ac()});return xM.prototype.qD.call(this,a,b,c)};
_.g.Lu=function(a,b){b=void 0===b?1:b;if(!MBc(UKc(this,a.getName()),b))return!1;var c=-1===b?0:this.data.length,d=this.data.findIndex(function(e){return RKc(e.getName(),a.getName())});-1<d&&(this.data.splice(d,1),c=d);this.data.splice(c,0,a);this.VH(a.getName(),b);return!0};_.g.removeItem=function(a){_.va(this.data,function(b){return RKc(b.getName(),a)})&&(this.V.delete(this.Tja(a)),this.IX())};_.g.Tja=function(a){return QKc(a)};_.g.VH=function(a,b){this.Jp(a)&&xM.prototype.VH.call(this,a,b)};
_.g.SLa=function(a){var b=this;return a instanceof _.fK&&a.Ac()===this.request.Ac()?a.AV().map(function(c){return b.Jp(c.Pm())}).filter(function(c){return!!c}).map(function(c){return c.clone()}):[]};var zM=function(){this.H=new Map};zM.prototype.ji=function(a,b){var c=this.getKey(b),d=this.H.get(c),e=!d;d||(d=this.Zha(b),this.H.set(c,d));d.ji(a);return e};var $Kc=function(a,b,c){var d=a.getKey(c),e=a.H.get(d),f=!e;e||(e=a.Bwa(c),a.H.set(d,e));e.ji(b);return f};
zM.prototype.kk=function(a,b){var c=this.H.get(this.getKey(b));c&&(c.kk(a),c.isDisposed()&&this.H.delete(this.getKey(b)))};var aLc=function(a,b,c){var d=a.H.get(a.getKey(c));d&&(d.kk(b),d.isDisposed()&&a.H.delete(a.getKey(c)))},bLc=function(a,b){return a.H.get(b)};zM.prototype.qD=function(a,b,c){var d=this;c=void 0===c?1:c;var e=a.filter(function(f){return d.HCa(f)});this.H.forEach(function(f){f.qD(e,b,c)})};zM.prototype.removeItem=function(a,b){b=b?this.H.get(b):null;(b?[b]:this.H).forEach(function(c){c.removeItem(a)})};
var cLc=function(a,b){a=Array.from(a.H.values()).map(function(c){return c.SLa(b)});return[].concat.apply([],_.Bd(a))};zM.prototype.VH=function(a,b){this.H.forEach(function(c){c.VH(a,b)})};zM.prototype.HCa=function(){return!0};zM.prototype.FB=function(a,b){(a=this.H.get(this.getKey(a)))&&a.HX(b)};zM.prototype.s2=function(a,b,c,d){var e=this.getKey(b),f=this.H.get(e);f||(f=this.Zha(b),f.Ki(c),this.H.set(e,f),this.qD(a,d))};var dLc=function(){this.V=new Set;this.O=0;this.H=[]},eLc=function(a,b){a.V.add(b)};
dLc.prototype.W=function(a){this.V.delete(a)};var fLc=function(a,b){var c;if(c=b instanceof _.jl)c=b.aw(),c=!!(b.Xh()&&c&&c<=Math.max.apply(Math,_.Bd([a.O].concat(_.Bd(a.H)))));if(c)return!0;b=b instanceof _.jl?b.getId():b;return a.V.has(b)},gLc=function(a,b){return _.va(a.H,function(c){return c===b})&&b>a.O?(a.O=b,!0):!1};dLc.prototype.L8=function(a){var b=this;return a.filter(function(c){return!fLc(b,c)})};var hLc=function(a,b){this.H=new Map;this.V=a;this.W=b;this.O=new dLc};_.K(hLc,zM);
var iLc=function(a,b){eLc(a.O,SKc(b));(a=bLc(a,b.Ac()))&&a.IX()};_.g=hLc.prototype;_.g.getKey=function(a){return a.Ac()};_.g.Zha=function(a){return new ZKc(this.V,this.W,this,a)};_.g.Bwa=function(a){return new ZKc(this.V,this.W,this,a)};_.g.So=function(a){a=_.m(a);for(var b=a.next();!b.done;b=a.next())(b=b.value.getItem())&&(b=bLc(this,b.getId()))&&b.refresh()};_.g.HCa=function(a){return!fLc(this.O,SKc(a))};
var jLc=function(a){var b=new _.GG;b.Ob(a);return b},kLc=function(){_.Ei.call(this);this.H=Date.now()};_.K(kLc,_.Ei);kLc.prototype.jF=function(){this.H=Date.now();this.dispatchEvent("Gb")};
var lLc=function(a,b){this.O=a;this.H=b},mLc=function(a,b){b=_.M9b(b);var c=new YKc(a.O,a.H,b);new Promise(function(d,e){return c.$g(100).then(d,e)})},nLc=function(){this.Hd={}},AM=function(a,b){oLc(a,"subscribed");b&&oLc(a,b);return a.Hd[b||"subscribed"].je.promise},oLc=function(a,b){a.Hd[b]||(a.Hd[b]={count:0,yR:[],v1a:[],je:_.ci()});a.Hd[b].count++},qLc=function(a,b){b&&!pLc(a,b)||pLc(a,"subscribed")},pLc=function(a,b){if(!a.Hd[b])return!1;a.Hd[b].count--;0===a.Hd[b].count&&(a.Hd[b].je.resolve({items:a.Hd[b].yR,
aLb:a.Hd[b].v1a}),_.Va(a.Hd,b));return!0};nLc.prototype.So=function(a,b){var c=this,d=b||"subscribed";a.forEach(function(e){var f=e.yc();f&&f===e.Ac()&&c.Hd[f]&&c.Hd[f].v1a.push(e);c.Hd[d]&&c.Hd[d].yR.push(e)})};var rLc=function(a,b,c){yM.call(this,a,c);this.V=b};_.K(rLc,yM);rLc.prototype.Xha=function(a,b){return a.clone().vi(b)};rLc.prototype.ika=function(){return""};rLc.prototype.wja=function(a){return[a]};rLc.prototype.S5=function(a){this.V(a)};
var sLc=function(a,b,c,d){xM.call(this,a,d.clone());this.ha=b;this.H=this.MS=null;this.W=c};_.K(sLc,xM);sLc.prototype.refresh=function(){var a=this;this.xA();this.H=new rLc(this.request,this.W,function(b){return a.ha.then(function(c){return c.Qe(b)})});return this.H.$g(this.request.Ei()||0)};sLc.prototype.ffa=function(a){1===this.status||this.H&&a===this.request.Ei()||(this.request.vi(a),this.H?this.H.$g(a):this.refresh())};
sLc.prototype.fk=function(){if(this.MS)return this.MS;var a=new $L;a.Dc(this.status);return a};sLc.prototype.Lu=function(a){this.MS=a;return!0};var tLc=function(a,b,c){this.H=new Map;this.O=a;this.W=b;this.V=c};_.K(tLc,zM);_.g=tLc.prototype;_.g.log=function(a){this.V.info("drive.ds.sync.cache.SuggestedWorkspaceCacheManager",a)};_.g.getKey=function(a){return a.toString()};_.g.Zha=function(a){var b=this;return new sLc(this.O,this.W,function(c){b.qD(c,!1)},a)};_.g.Bwa=function(){throw Error("mf");};
_.g.s2=function(a,b,c,d){var e=a[0].xl();this.log("Initialized "+e.length+" suggested workspaces: "+e.map(function(f){return f.kq()}).join(", "));zM.prototype.s2.call(this,a,b,c,d)};var uLc=function(a,b,c,d){_.Ei.call(this);this.request=a;this.Ba=b;this.ta=c;this.va=d;this.ma=0;this.je=null;this.O=new Set};_.K(uLc,_.Ei);
uLc.prototype.$g=function(){var a=this;if(this.je)return this.je.promise;this.je=_.ci();for(var b={},c=_.m(this.W(this.request)),d=c.next();!d.done;b={Uqa:b.Uqa,lea:b.lea},d=c.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;b.lea=d;b.Uqa=e;this.ma++;this.Ba.then(function(f){return function(h){return h.Qe(f.Uqa)}}(b)).then(function(f){return function(h){var k=f.lea;a.V(h);vLc(a,k)}}(b),function(f){return function(h){return void a.handleError(f.lea,h)}}(b))}return this.je.promise};
var vLc=function(a,b){a.O.add(b);a.O.size===a.ma?(a.ha(a.request),a.dispatchEvent("za"),a.je.resolve()):a.dispatchEvent("wa")};uLc.prototype.handleError=function(a,b){b=_.SB(b);var c=b.Tg;5===c.Xs()||4===c.Ak()?(this.va.info("drive.ds.sync.query.SimpleFindByIdsRunner","Deleting "+a+" due to: "+b.message),this.ka(a),vLc(this,a)):(a=new ML(c,_.bk(this.ta.ig(),1,1)),this.dispatchEvent(a),this.je.reject(b))};var wLc=function(a,b,c,d,e){uLc.call(this,a.clone(),c,d,e);this.H=b};_.K(wLc,uLc);
wLc.prototype.W=function(a){var b=new Map;a.qn().forEach(function(c){var d=_.N8b(a.clone(),[c]);b.set(c,d)});return b};wLc.prototype.V=function(a){var b=[];a.HT().forEach(function(c){b.push(c)});this.H(b,!0)};wLc.prototype.ha=function(){this.H([],!1)};wLc.prototype.ka=function(a){this.H([jLc(a)],!0)};var xLc=function(a,b,c,d,e,f){xM.call(this,a,f.clone());this.ma=b;this.W=c;this.ka=d;this.ha=e;this.ol={};this.H=null};_.K(xLc,xM);
xLc.prototype.refresh=function(){this.H=new wLc(this.request,this.ha,this.ma,this.W,this.ka);return this.H.$g()};xLc.prototype.ffa=function(){this.H||this.refresh()};xLc.prototype.fk=function(){var a=new _.UK;a.Dc(this.status);_.Ma(this.ol,function(b,c){a.HT().set(c,b||new _.GG)});a.Ki(this.Ze());return a};xLc.prototype.Lu=function(a){var b=a.getId();if(_.ak(a,jLc(a.getId()))){if(this.ol[b])return delete this.ol[b],!0}else if(0<=this.request.qn().indexOf(b))return this.ol[b]=a,!0;return!1};
var yLc=function(a,b){a=a.getState();return null==a||b.getState()==a},zLc=function(a,b,c){yM.call(this,a,c);this.V=b};_.K(zLc,yM);zLc.prototype.Xha=function(a,b,c){a=a.clone();a.vi(b);return new _.Suc(a,c)};zLc.prototype.ika=function(a){return a.pageToken||""};zLc.prototype.wja=function(a){return a.response.xl()};zLc.prototype.S5=function(a){this.V(a)};var ALc=function(a){this.H=_.Jqc(a,{numeric:!0})};
ALc.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=_.Fa(b.getId(),c.getId())*(a?1:-1);return f};ALc.prototype.V=function(a,b,c){var d=_.y(b,4),e=_.y(c,4),f;d!==e?f=_.Fa(d,e)*(a?1:-1):f=_.Fa(b.getId(),c.getId())*(a?1:-1);return f};var BLc=function(a,b,c,d,e){xM.call(this,a,e.clone());this.ha=b;this.ol=[];this.H=null;this.W=d;a=new ALc(c);b=(c=this.request.Ew())?c.getType():0;c=c?c.nf():0;this.ka=1===b?a.O.bind(a,2!==c):a.V.bind(a,1===c)};
_.K(BLc,xM);BLc.prototype.refresh=function(){var a=this;this.xA();this.H=new zLc(this.request,this.W,function(b){return a.ha.then(function(c){return c.Qe(b)})});return this.H.$g(this.request.Ei()||0)};BLc.prototype.ffa=function(a){1===this.status||this.H&&a===this.request.Ei()||(this.request.vi(a),this.H?this.H.$g(a):this.refresh())};BLc.prototype.fk=function(){var a=new nM;a.Dc(this.status);BJc(a,this.ol.map(function(b){return b.clone()}));return new _.ZK(a,void 0,1!==this.status&&VKc(this.H),this.Ze())};
BLc.prototype.Lu=function(a){var b=_.va(this.ol,function(c){return c.getId()===a.getId()});return a&&yLc(this.request,a)&&!_.ak(a,jLc(a.getId()))?jBc(this.ol,a,this.ka):b};var CLc=function(a,b,c,d){this.H=new Map;this.V=a;this.ha=b;this.W=c;this.O=d};_.K(CLc,zM);_.g=CLc.prototype;_.g.log=function(a){this.W.info("drive.ds.sync.cache.WorkspaceCacheManager",a)};_.g.getKey=function(a){return a.toString()};
_.g.Zha=function(a){var b=this;return new BLc(this.V,this.ha,FL(_.JI(this.O)),function(c){return void b.qD(c,!1)},a)};_.g.Bwa=function(a){var b=this;return new xLc(this.V,this.ha,this.O,this.W,function(c,d){return b.qD(c,d)},a)};_.g.s2=function(a,b,c,d){this.log("Initialized "+a.length+" items for workspaces: "+a.map(function(e){return e.getId()}).join(", "));zM.prototype.s2.call(this,a,b,c,d)};
var DLc=function(a,b){b=void 0===b?!1:b;var c=a.getMimeType();wL(a)&&(c=(c=a.Gf())?_.y(c,3):"");xL(a)&&(a.Zi()&&(c+="+"+String(a.Zi())),a.Jj()&&(c+="+shared"));return _.WTa(c,b?"32":"16")},ELc=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("&")},FLc=function(a,b){var c=_.P(a,44),d=a.Gf();if(d){if(1!==_.oe(d))return null;c=(c=_.le(d))?_.P(c,44):!0}if(!c)return null;c={};d=a.getId();wL(a)&&(d=CBc(a));
d=[_.D(b,65,"https://lh3.google.com"),"u",_.gJ(_.JI(b)),"d",d].join("/");d+="={size}";_.Q(b,89,!1)&&_.Dj(a,140)&&(c.resourcekey=_.ql(a));return d=ELc(d,c)},GLc=function(a){this.H=a},ILc=function(a,b,c){if(c.includes(20)&&c.includes(3)){var d=DLc(b,_.Q(a.H,75,!1));_.w(b,21,d)}c.includes(18)&&_.Nvc(b,tCc(b,a.H));c.includes(19)&&(d=FLc(b,a.H),_.w(b,20,d));HLc(a,b,c);if(wL(b)){if(d=(d=b.Gf())&&_.le(d)){if(c.includes(20)&&c.includes(3)){var e=DLc(d,_.Q(a.H,75,!1));_.w(d,21,e)}c.includes(18)&&_.Nvc(d,tCc(d,
a.H));c.includes(19)&&(e=FLc(d,a.H),_.w(d,20,e));HLc(a,d,c)}_.Rvc(b,!!b.Zx())}},HLc=function(a,b,c){var d=c.includes(41);c=c.includes(42);if(d||c){var e=b.getMimeType();e&&(e=!xL(b)&&!wL(b)&&!_.Td(e)&&(!b.L6()||2!==b.Zo()),d&&_.w(b,40,e),e&&c&&(a=a.H,d=b.getId(),wL(b)&&(d=CBc(b)),c=new _.lj(_.D(a,16,"")+"/uc"),_.vj(c,"id",d),_.vj(c,"authuser",_.gJ(_.JI(a))),_.vj(c,"export","download"),_.Q(a,89,!1)&&_.Dj(b,140)&&_.vj(c,"resourcekey",_.ql(b)),_.w(b,41,c.toString())))}},JLc=function(a,b){this.hia="";
this.startTime=b||new Date;this.H=a;this.I$=vCc(a)};JLc.prototype.clone=function(){return new JLc(this.H,this.startTime)};var KLc=function(){this.H=null;this.zY=[]},LLc=function(a){return _.mf(a.zY,function(b){return _.Za(b)})};KLc.prototype.hN=function(){return this.H};
KLc.prototype.O=function(a,b,c){if(this.H){var d=this.H;if(!a["X-Google-DapperTraceInfo"]){var e=new KJc;e.V=JJc(d.I$);var f=_.Wg().substring(0,8);d=vCc(f);f=(new hJc).Ob(f);f=_.w(f,2,d);b=_.w(f,3,b).Li(c);this.zY.push(b);e.O=JJc(d);e.H=HJc(808464432,808464432);e.W=41;b=String.fromCharCode;c=b.apply;d=new _.wk;if(e.V){f=e.V.O>>>0;var h=e.V.H>>>0;_.xk(d,1,1);var k=d.O;$Cc(k,f);$Cc(k,h)}e.O&&(f=e.O.O>>>0,h=e.O.H>>>0,_.xk(d,2,1),k=d.O,$Cc(k,f),$Cc(k,h));f=e.W;null!=f&&(_.xk(d,3,5),$Cc(d.O,f));e.H&&(f=
e.H.O>>>0,e=e.H.H>>>0,_.xk(d,4,1),h=d.O,$Cc(h,f),$Cc(h,e));e=_.yk(d);a["X-Google-DapperTraceInfo"]=_.n.btoa(c.call(b,null,e))}}};var MLc=function(){this.Eb=[];this.O=this.H=0};MLc.prototype.discard=function(a){for(var b=this.H,c=this.O,d=this.Eb,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 NLc=function(a,b){if(!c)var c=b.length;for(var d=a.H,e=a.O,f=a.Eb,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},OLc=function(a){this.key=a;this.H=new _.Ztc;this.O=new _.Xtc(new _.Ztc,_.uma(a))};OLc.prototype.encrypt=function(a){for(var b=[],c=0;16>c;c++)b[c]=Math.floor(256*Math.random());b=dGc(b);c=PLc(this,a);return b.concat(c,QLc(this,b,a,!0))};
var RLc=function(a,b){var c=QLc(a,b.substring(0,16),b.substring(36),!1);b=b.substring(16,36);a=PLc(a,c);if(b!==a)throw Error("nf");return c},PLc=function(a,b){a=_.Ytc(a.O,_.fuc(b));return dGc(a)},QLc=function(a,b,c,d){a.H.reset();a.H.update(b);a.H.update(a.key);b=new MLc;a=a.H.digest();if(!e)var e=a.length;for(var f=b.Eb,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=_.fuc(c.substring(8192*
e,8192*(e+1))),NLc(b,a),d+=dGc(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;NLc(b,a);d.push(a)}if(d.length){for(c=0;c<d.length-1;c++)if(8192!==d[c].length)throw Error("of");c=8192*(d.length-1)+d[d.length-1].length;b=Array(c);for(a=e=0;e<c;)f=SLc(d,e++),128>f?b[a++]=String.fromCharCode(f):191<f&&224>f?(h=SLc(d,e++),b[a++]=String.fromCharCode((f&31)<<6|h&63)):
239<f&&365>f?(h=SLc(d,e++),k=SLc(d,e++),l=SLc(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=SLc(d,e++),k=SLc(d,e++),b[a++]=String.fromCharCode((f&15)<<12|(h&63)<<6|k&63));b.length=a;d=b.join("")}else d="";return d},SLc=function(a,b){return a[Math.floor(b/8192)][b%8192]},TLc=function(a,b,c){this.data=a;this.mZa=b;this.H=c;this.isEncrypted=!1};TLc.prototype.getData=function(){return this.data};
TLc.prototype.Sm=function(){return this.mZa};var ULc=function(a,b,c,d){this.O=a;this.H=_.ci();this.wp=!1;this.V=_.D(b,7,"");this.W=_.bk(_.GL(b),6,2E7);this.GE=_.YI(b);this.ha=_.bk(_.GL(b),12,0);this.ka=c;this.eg=d||null};ULc.prototype.initialize=function(){var a=this;this.wp||(this.wp=!0,this.O.initialize().then(function(){a.H.resolve()},function(b){a.H.reject(b)}));return _.ki(this.H.promise)};
ULc.prototype.tB=function(a){if(a instanceof _.qC)return 0;if(a instanceof kM)return 1;if(a instanceof vGc)return 5;if(a instanceof bM)return 3;if(a instanceof yJc)return 6;throw new _.Ec("Unsupported dataShard in getDataType");};var VLc=function(a){if(0==a)return _.qC;if(1==a)return kM;if(5==a)return vGc;if(3==a)return bM;if(6==a)return yJc;throw new _.Ec("Unsupported dataType:"+a+" in getDataTypeCtor");};ULc.prototype.Zn=function(a){if(a instanceof bM)return a.Zn()};
ULc.prototype.Sm=function(a){if(a instanceof bM)return a.wd().length};ULc.prototype.tv=function(a){if(a instanceof bM)return a=a.tv(),null!=a?a:void 0};
var $Lc=function(a,b,c,d){if(0==c.length)return _.Zh();for(var e=a.tB(c[0]),f=_.m(c),h=f.next();!h.done;h=f.next())a.tB(h.value);var k=a.Zn(c[0]),l=0;3==e&&WLc(a,c);var p=!!b;return XLc(a,c).then(function(q){if(p){var r=a.eg?a.eg.H(106023,d):null;l=q.reduce(function(z,A){(A=A.Sm())&&(z+=A);return z},0);var v=YLc(a,b,q.map(function(z){return z.getData()})).then(function(z){if(z.length!=q.length)return _.$h(Error("pf"));z=_.m(z.entries());for(var A=z.next();!A.done;A=z.next()){var C=_.m(A.value);A=
C.next().value;C=C.next().value;A=q[A];A.data=C;A.isEncrypted=!0}return q});r&&(qFc(pFc(oFc(JL(r),_.RK(_.Ftc,e)),_.RK(_.Ctc,k)),!0),v.then(function(){var z=l;nFc(JL(r),!0).Bt(z);r.Aj()},function(){var z=l;nFc(JL(r),!1).Bt(z);r.Aj()}));return v}return q}).then(function(q){return a.H.promise.then(function(){return ZLc(a.O,q,e,k,p,d)})})},XLc=function(a,b){return new _.Yh(function(c,d){var e=!1,f=[];b.forEach(function(l){if(!e){var p=l.Lc();p.length>a.W?e=!0:f.push(new TLc(p,a.Sm(l),a.tv(l)))}});if(e){var h=
Error("qf"),k=new _.Dc;_.dJ(k,2);_.pJ(k,23);_.w(k,21,h.message);_.pq(k);a.ka(k);d(h)}c(f)})},WLc=function(a,b){a.Zn(b[0]);for(var c=_.m(b),d=c.next();!d.done;d=c.next())a.Zn(d.value);a.GE||aMc(b);if(a.ha)for(a=a.ha,c=b.length-1;0<=c;c--)if(b[c].Zn()){d=[];for(var e=b[c].wd();e.length>a;){var f=_.Aa(e,a-1,a);f=QHc(new bM,f);d.push(f)}QHc(b[c],e);d.length&&_.Eb(_.Aa,b,c+1,0).apply(null,d)}},BM=function(a,b,c,d,e,f){var h=_.ci(),k;_.di(a.H.promise.then(function(){return bMc(a.O,c,d,e)}).then(function(l){var p=
l.map(function(r){return r.data}),q=new _.ei;if(l[0]&&l[0].w0){if(k=a.eg?a.eg.H(106022,f):null)qFc(pFc(oFc(JL(k),_.RK(_.Ftc,c)),_.RK(_.Ctc,d)),!0),q.en().then(function(r){var v=k;r=void 0!=r;nFc(JL(v),r);_.oxc(v)});cMc(a,q,b,p)}else q.callback(p);return _.Zh(q)},function(){}).then(function(l){var p=[];if(l){var q=0;l=_.m(l);for(var r=l.next();!r.done;r=l.next())r=r.value,r=new (VLc(c))(JSON.parse(r)),q+=a.Sm(r),p.push(r);3==c&&(a.GE||dMc(p),eMc(p));k&&JL(k).Bt(q)}h.resolve(p)}),function(){k&&k.Aj()}).Dg(h.reject,
h);return h.promise},aMc=function(a){if(a.length){for(var b=0;b<a.length;b++)if(_.Wj(a[b],_.Sk,2).length)return;b=new Map;for(var c=new Map,d=_.m(a),e=d.next();!e.done;e=d.next()){e=e.value.wd()||[];e=_.m(e);for(var f=e.next();!f.done;f=e.next())if(f=f.value,_.Lvc(f,fMc(_.kl(f),b,c)),_.Mvc(f,fMc([f.Am()],b,c)[0]),_.Svc(f,fMc([f.Tt()],b,c)[0]),_.Wvc(f,fMc([f.Kq()],b,c)[0]),_.Zvc(f,fMc([f.lD()],b,c)[0]),f=f.$v())_.Hvc(f,fMc(f.dR(),b,c)),_.Ivc(f,fMc(_.Wj(f,_.Sk,3),b,c))}var h=[];b.forEach(function(k){h.push(k)});
_.Lj(a[0],2,h)}},fMc=function(a,b,c){if(!a)return a;var d=[];a=_.m(a);for(var e=a.next();!e.done;e=a.next()){var f=e.value;f&&f.getId()?(e=f.getId(),b.has(e)?_.ak(f,b.get(e))?d.push(c.get(e)):d.push(f):(b.set(e,f.clone()),f=new _.Sk,f.Ob(e),c.set(e,f),d.push(f))):d.push(f)}return d},dMc=function(a){var b=new Map,c=new Map;a[0]&&_.Wj(a[0],_.Sk,2)&&_.Wj(a[0],_.Sk,2).forEach(function(h){b.set(h.getId(),h);h=(new _.Sk).Ob(h.getId());c.set(h.getId(),h)});if(b.size){a=_.m(a);for(var d=a.next();!d.done;d=
a.next()){d=d.value;var e=d.wd()||[];e=_.m(e);for(var f=e.next();!f.done;f=e.next())if(f=f.value,_.Lvc(f,gMc(_.kl(f),b,c)),_.Mvc(f,gMc([f.Am()],b,c)[0]),_.Svc(f,gMc([f.Tt()],b,c)[0]),_.Wvc(f,gMc([f.Kq()],b,c)[0]),_.Zvc(f,gMc([f.lD()],b,c)[0]),f=f.$v())_.Hvc(f,gMc(f.dR(),b,c)),_.Ivc(f,gMc(_.Wj(f,_.Sk,3),b,c));_.Mj(d,2)}}},gMc=function(a,b,c){if(!a)return a;var d=[];a=_.m(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&e.getId()){var f=e.getId();_.ak(c.get(f),e)?d.push(b.get(f).clone()):d.push(e)}else d.push(e);
return d},eMc=function(a){for(var b={},c=1;c<a.length;b={Uda:b.Uda},c++)if(!a[c].Zn()){for(var d=0,e=c;e<a.length&&!a[e].Zn();e++)d++;e=a[c-1];d=_.Aa(a,c,d);b.Uda=e.wd();d.forEach(function(f){return function(h){_.ya(f.Uda,h.wd())}}(b));QHc(e,b.Uda)}},YLc=function(a,b,c){if(!_.Ktc()&&a.V){var d=new Worker(_.Jba(_.Wy(a.V)),void 0),e=new _.ei;d.addEventListener("message",function(k){d.terminate();e.callback(k.data)},!1);d.addEventListener("error",function(k){d.terminate();e.Jd(Error(String(k)))},!1);
c=FJc(new EJc,c);d.postMessage({command:"encrypt",data:{request:c.Lc(),key:b}});return e}try{a=[];var f=new OLc(b);for(b=0;b<c.length;b++)a.push(f.encrypt(c[b]));var h=_.ji(a)}catch(k){h=_.ni(k)}return h},cMc=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(!_.Ktc()&&a.V){var f=new Worker(_.Jba(_.Wy(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 OLc(c);for(c=0;c<d.length;c++)a.push(RLc(h,d[c]));b.callback(a)}catch(k){b.callback(void 0)}},hMc=/^[\w]+$/,iMc=function(a,b,c){return[a.ls(),a.clientId,b?"#":CM(a)].join(":")+":"+(c||"")},jMc=function(a,b,c){this.global=void 0===c?!1:c;a.match(hMc);this.key=a;this.value=b};jMc.prototype.getKey=function(){return this.key};jMc.prototype.Za=function(){return this.value};
var kMc=function(a,b){return{k:iMc(b,a.global,a.key),v:a.value}},lMc=function(a,b){a=iMc(a,b);return vHc(a+"A",a+"z")},mMc=function(a,b){this.H=a;this.O=b},nMc=function(a){return a?new mMc(a.versionKey,a.versionChangeTimestamp):null},oMc=function(a,b){return a+":"+b},pMc=function(a,b,c,d,e){this.data=a;this.index=b;this.size=c;this.timestamp=d;this.w0=void 0===e?null:e},qMc=function(a){return{data:a.data,index:a.index,size:a.size,timestamp:a.timestamp,e:a.w0}},rMc=function(a,b,c,d){a=CM(a)+"_"+b;
3===b&&(a+="_"+d);return a+=_.Ht(":%02d",c)},sMc=function(a,b,c,d){c=rMc(a,b,void 0===c?0:c,d);a=CM(a)+"_"+b;3===b&&(a+="_"+d);return vHc(c,a+":a")},tMc=function(a){var b=CM(a)+"_";a=CM(a)+"_A";return vHc(b,a)},uMc=function(a){return a?new pMc(a.data,a.index,a.size,a.timestamp,a.e):null},vMc=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=_.xa(e);_.Ha(this.fields);_.Ea(this.fields);this.H=f};
vMc.prototype.ls=function(){return this.userId};vMc.prototype.Ng=function(){return _.xa(this.fields)};
var CM=function(a){if(!a.O){var b=new _.yI;b.update([a.userId,a.clientId,a.W,a.V].join(":"));b.update(a.fields);a.O=_.psc(b.digest())}return a.O},wMc=function(a){return{versionKey:CM(a),versionInfo:{u:a.userId,c:a.clientId,pv:a.W,phk:a.V,f:a.fields},lastAccessedTimestamp:a.H}},xMc=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 vMc(c.u,c.c,c.pv,c.phk,c.f,a.lastAccessedTimestamp);b?a.O=d:CM(a)!==d&&(a=null);return a},DM=function(a,
b,c,d){c=void 0===c?null:c;d=void 0===d?!1:d;_.O.call(this);var e=this;this.eg=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.Qa=a.then(function(f){e.version=f});this.Ib=new _.Ze(this);this.Ma(this.Ib)};_.K(DM,_.O);DM.prototype.initialize=function(){return yMc(this)};
var yMc=function(a,b){a.V||(a.V=_.ci(),a.Qa.then(function(){b?(a.va=!1,zMc(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)"),_.xrc("GoogleDriveDs",2,a.Fa.bind(a),a.ta.bind(a)).mg(a.Ka.bind(a),a.ta.bind(a)),_.Ii(2E4).then(a.Ha.bind(a)))},function(c){a.V.reject(new _.Ec("Database version error",void 0,_.XI(c)?c:void 0))}));return a.V.promise},zMc=function(a,b){a.H=b;a.Ib.listen(a.H,"close",
a.ha.bind(a,"Browser closing database"));a.Ib.listen(a.H,"versionchange",a.ha.bind(a,"Database version change detected, closing"))};DM.prototype.Fa=function(a,b){this.log("Upgrading GoogleDriveDs to version "+a.newVersion);this.Ba=!0;_.Ja(b.H.objectStoreNames,function(c){return _.lwc(b,c)});_.Ma(_.mJ,function(c){var d=_.cuc.get(c);_.urc(b,c,d?{keyPath:d}:void 0)})};
DM.prototype.ta=function(a){var b;a&&a instanceof _.AI&&"InvalidStateError"==a.getName()&&_.Bj.Mu?b=Error("rf"):_.XI(a)&&(b=a);this.ha("Unable to open database GoogleDriveDs (version 2)");this.V.reject(b);AMc(this,!1)};DM.prototype.Ka=function(a){this.ka?a.dispose():(zMc(this,a),this.Ma(this.H),this.readOnly||BMc(this).then(null,function(){}),this.log("Initialized database GoogleDriveDs"),this.V.resolve(),AMc(this,!0))};
var AMc=function(a,b){if(a.ma){var c=a.ma,d=_.B(_.QK(c),hFc,5);d||(d=new hFc,c=_.QK(c),_.I(c,5,d));d=_.w(d,1,2);c=a.ij().W;d=_.w(d,2,c);c=a.ij().ka;d=_.w(d,5,c);b=_.w(d,3,b);b=_.w(b,4,a.Ba);d=a.ij().ma;_.w(b,6,d);a.ma.Aj();a.ma=null}};DM.prototype.Ha=function(){this.H||this.Tf()||(this.ha("Opening database GoogleDriveDs timed out."),this.ta(Error("sf")))};DM.prototype.ha=function(a){this.log(a);this.ka||(this.ka=!0,this.O="Database disabled: "+a,this.H&&this.va&&this.H.close())};DM.prototype.Tf=function(){return this.ka};
var CMc=function(a){return a.ka?a.O:null};DM.prototype.ij=function(){return this.version};
var EM=function(a,b,c){c=void 0===c?"readonly":c;if(a.readOnly&&"readonly"!=c)return null;a=a.H;try{return _.vrc(a,[b],c)}catch(d){return null}},BMc=function(a){var b=_.mJ.k_,c=EM(a,b,"readwrite");if(!c)return _.$h(Error("tf"));c.objectStore(b).put(wMc(a.ij()));return _.Zh(c.wait()).then(function(){})},DMc=function(a){if(!a.H)return _.$h(Error("uf"));if(a.Tf())return _.$h(Error(a.O));var b=_.mJ.k_,c=EM(a,b,"readwrite");if(!c)return _.$h(Error("vf"));b=c.objectStore(b);return _.Zh(b.remove(CM(a.ij())))},
EMc=function(a,b,c){if(!a.length)return b.resolve([]),null;var d=[];a=_.m(a);for(var e=a.next();!e.done;e=a.next())(e=uMc(e.value))&&(d[e.index]=e);if(!d[0])return b.reject(Error("wf")),0;a=d[0].timestamp;if(!a)return b.reject(Error("xf")),0;e=d[0].size;if(!e)return b.reject(Error("yf")),0;if(e>d.length)return b.reject(Error("zf`"+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("Af`"+e)),0;if(c&&a<c)return b.reject(Error("Bf`"+a+"`"+c)),d.length>
e?e:null;if(d.length>e)return b.resolve(d.slice(0,e)),e;b.resolve(d);return null},bMc=function(a,b,c,d){if(!a.H||3==b&&void 0==c)return _.$h(Error("Cf"));if(a.Tf())return _.$h(Error(a.O));var e=sMc(a.ij(),b,0,c),f=_.mJ.y5,h=EM(a,f);if(!h)return _.$h(Error("Df"));e=h.objectStore(f).getAll(e);var k=_.ci();e.mg(function(l){l=EMc(l,k,d);a.readOnly||null==l||FMc(a,b,c,l).then(null,function(){})},k.reject);return k.promise},ZLc=function(a,b,c,d,e,f){if(a.H){if(a.Tf())return _.$h(Error(a.O));if(100<b.length||
3==c&&void 0==d)return _.$h(Error("Ef"))}else return _.$h(Error("Ff"));var h=Date.now(),k=b.length,l=b.map(function(v,z){return{key:rMc(a.ij(),c,z,d),data:new pMc(v.getData(),z,k,h,e),metadata:v}}),p=_.mJ.y5;b=EM(a,p,"readwrite");if(!b)return _.$h(Error("Gf"));p=b.objectStore(p);var q={};l=_.m(l);for(var r=l.next();!r.done;q={mea:q.mea},r=l.next())r=r.value,q.mea=GMc(a,c,d,r.metadata,f),p.put(qMc(r.data),r.key).then(function(v){return function(){var z=v.mea;z&&(nFc(JL(z),!0),z.Aj())}}(q),function(v){return function(z){var A=
v.mea,C=z instanceof _.AI?z.code:_.Uqc;A&&a.W&&(z=nFc(JL(A),!1),C=_.RK(_.Gtc,C),_.w(z,2,C),A.Aj())}}(q));return _.Zh(b.wait()).then(function(){})},GMc=function(a,b,c,d,e){if(a.W){var f=a.W.W;if(a=a.W.H(106019,e))b=pFc(oFc(JL(a),_.RK(_.Ftc,b)),_.RK(_.Ctc,c)),f=f.Zn(d.H),f=_.w(b,5,f),qFc(f,d.isEncrypted),void 0!=d.Sm()&&JL(a).Bt(d.Sm());return a}return null},FMc=function(a,b,c,d){d=void 0===d?0:d;if(a.H){if(a.Tf())return _.$h(Error(a.O));if(3==b&&void 0==c)return _.$h(Error("Hf"))}else return _.$h(Error("If"));
b=sMc(a.ij(),b,d,c);c=_.mJ.y5;a=EM(a,c,"readwrite");if(!a)return _.$h(Error("Jf"));a.objectStore(c).remove(b);return _.Zh(a.wait()).then(function(){})},HMc=function(a){if(!a.H)return _.$h(Error("Kf"));if(a.Tf())return _.$h(Error(a.O));var b=tMc(a.ij()),c=_.mJ.y5;a=EM(a,c,"readwrite");if(!a)return _.$h(Error("Lf"));a.objectStore(c).remove(b);return _.Zh(a.wait()).then(function(){})};
DM.prototype.getMetadata=function(a){if(this.H){if(this.Tf())return _.$h(Error(this.O));if(a&&0==a.length)return _.$h(Error("Mf"))}else return _.$h(Error("Nf"));var b=this.ij(),c=_.mJ.M6,d=EM(this,c);if(!d)return _.$h(Error("Of"));c=d.objectStore(c);if(a){d=[];a=_.m(a);for(var e=a.next();!e.done;e=a.next())e=e.value,d.push(_.Zh(c.get(iMc(b,e.global,e.key))));c=_.ai(d)}else c=_.ai([c.getAll(lMc(b,!1)).then(),c.getAll(lMc(b,!0)).then()]).then(function(f){var h=_.m(f);f=h.next().value;h=h.next().value;
return iBc(f,h)});return c.then(function(f){return f.map(function(h){a:{if(h){var k=h.k.split(":"),l="#"===k[2];if(4===k.length&&(l||k[2]===CM(b))){h=k[0]!==b.ls()||k[1]!==String(b.clientId)?void 0:new jMc(k[3],h.v,l);break a}}h=void 0}return h})})};
var IMc=function(a,b){if(a.H){if(a.Tf())return _.$h(Error(a.O));if(0==b.length)return _.$h(Error("Pf"))}else return _.$h(Error("Qf"));var c=_.mJ.M6,d=EM(a,c,"readwrite");if(!d)return _.$h(Error("Rf"));c=d.objectStore(c);d=[];b=_.m(b);for(var e=b.next();!e.done;e=b.next())d.push(c.put(kMc(e.value,a.ij())).then());return _.ai(d).then(function(){})},JMc=function(a,b){b=void 0===b?!1:b;if(a.H){if(a.Tf())return _.$h(Error(a.O))}else return _.$h(Error("Tf"));var c=a.ij(),d=_.mJ.M6;a=EM(a,d,"readwrite");
if(!a)return _.$h(Error("Uf"));d=a.objectStore(d);a=[];a.push(d.remove(lMc(c,!1)).then());b&&a.push(d.remove(lMc(c,!0)).then());return _.ai(a).then(function(){})},KMc=function(a){if(!a.H)return _.$h(Error("Vf"));if(a.Tf())return _.$h(Error(a.O));var b=oMc(a.ij().ls(),a.ij().clientId),c=_.mJ.hU;a=EM(a,c);if(!a)return _.$h(Error("Wf"));c=a.objectStore(c);return _.Zh(c.get(b)).then(function(d){return nMc(d)})},LMc=function(a,b){b=void 0===b?!1:b;if(!a.H)return _.$h(Error("Xf"));if(a.Tf())return _.$h(Error(a.O));
var c=a.ij(),d=oMc(c.ls(),c.clientId);b=new mMc(CM(c),b?Date.now():void 0);c=_.mJ.hU;a=EM(a,c,"readwrite");if(!a)return _.$h(Error("Yf"));a.objectStore(c).put({versionKey:b.H,versionChangeTimestamp:b.O},d);return _.Zh(a.wait())};DM.prototype.Pl=function(a){var b=this;return this.H?this.Tf()?_.$h(Error(this.O)):KMc(this).then(function(c){var d=CM(b.ij());if(c)if(a){if(!c.O&&d==c.H&&d!=CM(a))return LMc(b,!0);if(c.O&&d==CM(a))return LMc(b)}else{if(d!=c.H)return LMc(b)}else if(!a)return LMc(b)}):_.$h(Error("Zf"))};
var MMc=function(a){if(!a.H)return _.$h(Error("$f"));if(a.Tf())return _.$h(Error(a.O));var b=a.ij(),c=oMc(b.ls(),b.clientId);return KMc(a).then(function(d){if(d){d=_.mJ.hU;var e=EM(a,d,"readwrite");if(e)return e.objectStore(d).remove(c).then()}})};
DM.prototype.clear=function(a){var b=this;a=void 0===a?!1:a;return this.H?this.Tf()?_.$h(Error(this.O)):KMc(this).then(function(c){var d=c&&c.H==CM(b.ij());return d&&!a?!1:(c&&d?MMc(b):_.Zh()).then(function(){return _.ai([JMc(b,a),HMc(b),DMc(b)]).then(function(){return!0},function(){return!1})},function(){return!1})}):_.$h(Error("ag"))};DM.prototype.close=function(){this.ha("Closing database")};DM.prototype.log=function(a){this.eg.info("drive.ds.sync.storage.VersionedDb",a)};
var NMc=function(a){if(1>=a.ij())return!1;var b=a.H.objectStoreNames;return _.Ra(_.mJ).every(function(c){return b&&b.contains(c)})},OMc=function(){var a=_.ci();_.xrc("GoogleDriveDs").mg(function(b){b?NMc(b)?a.resolve(b):(b.close(),_.Zh(wHc()).then(function(){return void a.resolve(null)},function(){return void a.resolve(null)})):a.resolve(null)},function(){return void a.resolve(null)});return a.promise},PMc=function(a,b,c){var d=_.ci();a?_.vrc(a,[_.mJ.k_],"readonly").objectStore(_.mJ.k_).getAll().mg(function(e){e=
_.Ra(e).map(function(f){return xMc(f)}).filter(function(f){return null!=f});d.resolve(e.filter(function(f){return(!b||f.ls()==b)&&(!c||f.clientId==c)}))},d.reject):d.resolve([]);return d.promise},QMc=function(a,b,c){var d=_.ci();OMc().then(function(e){if(e){var f=_.mJ.hU;_.vrc(e,[f],"readonly").objectStore(f).get(a+":"+b).then(function(h){return nMc(h)}).then(function(h){if(h){var k=0;"number"==typeof c&&"number"==typeof h.O&&(k=c+h.O-Date.now());var l=_.mJ.k_,p=_.vrc(e,[l],"readonly");p.objectStore(l).get(h.H).then(function(q){(q=
xMc(q))?(q.ka=!0,0>k?q.ha=!0:0<k&&(q.ma=k),d.resolve(q)):d.resolve(null)});_.gi(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},RMc=function(a,b,c){var d=_.ci(),e=new DM(_.Zh(a),b);yMc(e,c).then(function(){return d.resolve(e)},d.reject);return d.promise},SMc=function(a,b,c,d,e){e=void 0===e?!1:e;var f=[];a.forEach(function(h){var k=RMc(h,b,c);f.push(k.then(function(l){return l.clear(e)}).then(function(l){return l?
h:void 0}))});_.ai(f).then(function(h){var k=[];h.forEach(function(l){l&&(k.push(l),b.info("drive.ds.sync.storage.VersionedDb","Cleared version: "+CM(l)))});d.resolve(k)})},TMc=function(a,b,c){var d=Date.now()-12096E5,e=_.ci();OMc().then(function(f){f?(_.di(e.promise,function(){f.close()}),PMc(f,a,b).then(function(h){return h.filter(function(k){return k.H<d})},function(){return[]}).then(function(h){SMc(h,c,f,e)})):e.resolve([])});return e.promise},UMc=function(a,b,c){var d=_.ci();OMc().then(function(e){e?
(_.di(d.promise,function(){e.close()}),PMc(e,a,b).then(function(f){SMc(f,c,e,d,!0)})):d.resolve([])});return d.promise},VMc=function(a,b,c,d){if(a.length){var e=_.mJ.y5,f=a.shift(),h=rMc(f,3,0,1);try{_.vrc(c,[e],"readonly").objectStore(e).get(h).then(function(k){(k=uMc(k))&&(!k.w0||k.w0&&d.has(f.V))?b.resolve(f):VMc(a,b,c,d)},function(){return b.resolve(null)})}catch(k){b.resolve(null)}}else b.resolve(null)},WMc=function(a,b,c,d,e,f,h){var k=_.ci();OMc().then(function(l){l?(_.di(k.promise,function(){l.close()}),
PMc(l,a,b).then(function(p){return p.filter(function(q){return(!h||h!=CM(q))&&q.W==c&&q.H>=e&&BBc(d.filter(function(r){return!_.duc.has(r)}),q.Ng(),b)})},function(){return[]}).then(function(p){p.length?(p.sort(function(q,r){return r.H-q.H}),VMc(p,k,l,new Set(f))):k.resolve(null)})):k.resolve(null)});return k.promise},XMc={key:"rid",global:!0},YMc={key:"ooi",global:!0},ZMc={key:"rtds",global:!1},$Mc={key:"dct",global:!1},aNc={key:"pc",global:!1},bNc=function(a){this.H=new _.Yh(function(b){a?a.initialize().then(function(){return b(a)},
function(){return b(null)}):b(null)})};bNc.prototype.get=function(a){return this.H.then(function(b){if(b&&!b.Tf())return b.getMetadata([a]).then(function(c){return(c=c[0])?c.Za():void 0},function(){})})};bNc.prototype.set=function(a,b){return this.H.then(function(c){return c&&!c.Tf()?IMc(c,[new jMc(a.key,b,a.global)]).then(function(){return!0},function(){return!1}):!1})};bNc.prototype.bo=function(){return this.get(XMc).then(function(a){return a?a:null})};
bNc.prototype.Eu=function(a){return this.set(XMc,a)};var cNc=function(a){return a.get(YMc).then(function(b){return"boolean"===typeof b?b:null})};bNc.prototype.cz=function(a){return this.set(YMc,a)};var dNc=function(a){return a.get(aNc).then(function(b){return"boolean"===typeof b?b:null})},eNc=function(a){return a.get(ZMc).then(function(b){return Array.isArray(b)?b:null})},fNc=function(a){return a.get($Mc).then(function(b){return"number"===typeof b?b:null})},gNc=function(){this.jj=[]};_.K(gNc,_.fL);
gNc.prototype.add=function(a,b){var c=a.Ev.Lw;return c instanceof _.jK&&_.y(c.request,12)?_.fL.prototype.add.call(this,a,b):!1};gNc.prototype.ksa=function(a){return this.jj.splice(0,Math.min(a,1))};var hNc=function(a,b){this.jj=[];this.H=b};_.K(hNc,_.fL);hNc.prototype.add=function(a,b){return a.Ev.Lw instanceof _.jK?!1:_.fL.prototype.add.call(this,a,b)};
hNc.prototype.ksa=function(a){for(var b=[],c=[],d={},e=0,f=0;f<this.jj.length&&b.length<a;f++){var h=this.jj[f],k=h.Ev.Lw;k instanceof _.BJ||k instanceof _.NJ||k instanceof _.eK?k="app|"+k.Nh():k instanceof _.wJ||k instanceof _.xJ||k instanceof _.DJ||k instanceof _.hJ?k="item|"+(k instanceof _.wJ?k.Ac():k.getId()):k instanceof _.EJ||k instanceof _.OJ?k="item|"+k.Ac():k instanceof _.FJ||k instanceof _.gK?k="item|"+k.Ac():k instanceof _.YD||k instanceof _.XD?(k=k instanceof _.YD?_.B(k,_.pp,1).getKey():
k.getKey(),k="pref|"+_.y(k,2)+"|"+_.qp(k)):k=k instanceof _.GJ?"td|"+k.getId():null;var l=h.Ev.Lw;if(l instanceof _.zJ)l=!!_.P(l,8);else if(l instanceof _.xJ){l=this.H.H(l.getId());var p;if(p=!!l)p=!!(l&&l.getMimeType()&&_.Deb.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++)_.ta(this.jj,c[a]);return b};
var iNc=function(a,b,c,d,e,f,h,k,l){a=a.ig();h=new _.fzc(k,h,d,_.bk(a,32,1073741824),_.bk(a,21,1E3));h=new _.gzc(h);k=new _.Fyc(_.bk(a,59,2E3),_.bk(a,60,2E4),_.bk(a,61,6));c=new _.Dyc(l?l:c,l?void 0:e);e={};e[1]=_.izc(b,d);e[2]=_.jzc(b,a,k,c,d);e[3]=_.kzc(b,a,k,c,d,"batch");l=_.bk(a,10,50);f=new _.hL(d,b,[_.Eyc(c),new _.Iyc(l,_.bk(a,11,100)),new _.gL(l),new _.eL(k,d)],[new hNc(a,f),new gNc,new _.fL],[new _.Ryc(a,k,c.Mj(),d)],"mutation");return e[4]=f,e[5]=_.lzc(h,a,d),e[6]=_.kzc(b,a,k,c,d,"find_by_ids_batch"),
e[7]=_.kzc(b,a,k,c,d,"xd4_batch"),e[8]=_.kzc(b,a,k,c,d,"xd4_batch_one",1),e},jNc=function(a){return a.nextPageToken?a.nextPageToken:a.continuationToken?a.continuationToken:""},kNc=function(a){var b={};return b.parentId=a.Fk(),b},lNc=function(a){var b={};_.AAc(b,[_.y(a,2)||""]);return b},mNc=function(a){var b={};_.ye(_.Vg(a.getTitle()))||(b.title=a.getTitle());_.AAc(b,_.ge(a,3));_.P(a,8)&&(b.description="",a={},b.labels=(a.starred=!1,a));return b},nNc=function(a){var b={};null!=a.getTitle()&&(b.title=
a.getTitle());null!=_.y(a,3)&&(b.workspaceToken=_.y(a,3));return b},oNc=function(a){var b={};b.sourceIds=_.ge(a.request,1);b.destinationFolderId=_.y(a.request,2);a.pageToken&&(b.continuationToken=a.pageToken);return b},pNc=function(a){var b={},c={};_.ye(_.Vg(a.getTitle()))||(b.title=a.getTitle());null!=a.Cf()&&(b.description=a.Cf());null!=_.P(a,4)&&(c.starred=_.P(a,4));null!=a.Xh()&&(c.trashed=a.Xh());_.ye(_.Vg(a.getMimeType()))||(b.mimeType=a.getMimeType());"number"===typeof _.y(a,7)&&(b.modifiedDate=
_.jwc(_.bxc(_.y(a,7)||0)));null!=_.P(a,11)&&(c.restricted=_.P(a,11));_.Qa(c)&&(b.labels=c);null!=a.Zi()&&(b.folderColor=a.Zi());null!=_.P(a,16)&&(b.subscribed=_.P(a,16));null!=_.P(a,40)&&(c={},b.linkShareMetadata=(c.securityUpdateEnabled=_.P(a,40),c));if(c=_.B(a,_.dl,25)){b.contentRestrictions=[];var d={};null!=_.P(c,1)&&(d.readOnly=_.P(c,1));null!=_.y(c,2)&&(d.reason=_.y(c,2));b.contentRestrictions.push(d)}_.AAc(b,_.ge(a,8));return b},qNc=function(a){var b={};null!=_.P(a,3)&&(b.pinned=_.P(a,3));
return b},rNc=function(a){var b={};null!=a.getTitle()&&(b.name=a.getTitle());if(null!=_.y(a,3))b.backgroundImageId=_.y(a,3);else{var c=_.y(a,6);null!=c&&(c=c.toString(16),b.colorRgb="#"+(0,_.Tg)("0",6-c.length)+c);c=_.B(a,_.$Ec,9);if(null!=c){a={};var d=c.getId();d&&(a.id=d);d=_.y(c,2);"number"===typeof d&&(a.xCoordinate=d);d=_.y(c,3);"number"===typeof d&&(a.yCoordinate=d);(c=c.Ee())&&(a.width=c);b.backgroundImageFile=a}}return b},sNc=function(a){var b={};null!=a.getTitle()&&(b.title=a.getTitle());
null!=a.getState()&&(a=_.DAc[a.getState()])&&(b.state=a);return b},tNc=function(a){_.J.call(this,a)};_.K(tNc,_.J);tNc.prototype.Cf=function(){return _.D(this,1)};tNc.prototype.Yl=function(a){return _.hk(this,1,a)};tNc.prototype.getUrl=function(){return _.D(this,2)};_.uNc=function(a){_.J.call(this,a)};_.K(_.uNc,_.J);_.uNc.prototype.getType=function(){return _.Gj(this,1,0)};_.uNc.prototype.getContext=function(){return _.B(this,tNc,2)};vNc=[1];wNc=[2,4];_.xNc=function(a){_.J.call(this,a,-1,wNc)};
_.K(_.xNc,_.J);_.xNc.prototype.getLabel=function(){return _.D(this,1)};_.xNc.prototype.getTitle=function(){return _.D(this,3)};_.xNc.prototype.setTitle=function(a){return _.hk(this,3,a)};_.yNc=function(a){_.J.call(this,a,-1,vNc)};_.K(_.yNc,_.J);_.zNc=[2,3,4];_.ANc=function(a){_.J.call(this,a)};_.K(_.ANc,_.J);_.ANc.prototype.we=function(){return _.D(this,3)};_.ANc.prototype.Nn=function(a){return _.hk(this,4,a)};_.BNc=function(a){_.J.call(this,a)};_.K(_.BNc,_.J);_.CNc=function(a){_.J.call(this,a)};
_.K(_.CNc,_.J);var DNc=function(a){_.J.call(this,a)};_.K(DNc,_.J);ENc=[3,5];_.FM=[8,9,10,11,12,13,14];_.FNc=function(a){_.J.call(this,a)};_.K(_.FNc,_.J);_.GNc=function(a){_.J.call(this,a,-1,ENc)};_.K(_.GNc,_.J);_.GNc.prototype.Bb=function(){return _.Gj(this,6,0)};_.GNc.prototype.Dc=function(a){return _.ik(this,6,a)};var HNc=function(a){_.J.call(this,a)};_.K(HNc,_.J);var INc=function(a){_.J.call(this,a)};_.K(INc,_.J);var JNc=function(a){_.J.call(this,a)};_.K(JNc,_.J);
var KNc=[1],LNc=function(a){_.J.call(this,a,-1,KNc)};_.K(LNc,_.J);var MNc=function(a){_.J.call(this,a)};_.K(MNc,_.J);var NNc=function(a){_.J.call(this,a)};_.K(NNc,_.J);ONc=[7];_.PNc=[1,2,3];_.QNc=function(a){_.J.call(this,a)};_.K(_.QNc,_.J);_.RNc=function(a){_.J.call(this,a)};_.K(_.RNc,_.J);_.SNc=function(a){_.J.call(this,a)};_.K(_.SNc,_.J);_.TNc=function(a){_.J.call(this,a,-1,ONc)};_.K(_.TNc,_.J);_.UNc=function(a){_.J.call(this,a)};_.K(_.UNc,_.J);
_.UNc.prototype.getName=function(){return _.D(this,1)};_.UNc.prototype.hd=function(a){return _.hk(this,1,a)};var VNc=function(a){_.J.call(this,a)};_.K(VNc,_.J);VNc.prototype.getName=function(){return _.D(this,1)};VNc.prototype.hd=function(a){return _.hk(this,1,a)};VNc.prototype.getTitle=function(){return _.D(this,2)};VNc.prototype.setTitle=function(a){return _.hk(this,2,a)};_.WNc=[1,4];XNc=function(a){_.J.call(this,a)};_.K(XNc,_.J);XNc.prototype.getUser=function(){return _.ek(this,_.CNc,1,_.WNc)};
var YNc=[8,9,10],ZNc=function(a){_.J.call(this,a)};_.K(ZNc,_.J);ZNc.prototype.getType=function(){return _.Gj(this,6,0)};var $Nc=function(a){_.J.call(this,a)};_.K($Nc,_.J);_.aOc=function(a){_.J.call(this,a)};_.K(_.aOc,_.J);_.g=_.aOc.prototype;_.g.getName=function(){return _.D(this,1)};_.g.hd=function(a){return _.hk(this,1,a)};_.g.getTitle=function(){return _.D(this,2)};_.g.setTitle=function(a){return _.hk(this,2,a)};_.g.Eja=function(){return _.ek(this,ZNc,9,YNc)};
_.g.YUa=function(){return _.ek(this,$Nc,10,YNc)};_.g.ij=function(){return _.bk(this,5)};_.g.getMimeType=function(){return _.D(this,6)};_.g.dD=function(){return _.B(this,XNc,7)};var bOc=function(a){_.J.call(this,a)};_.K(bOc,_.J);var cOc=[8,9,10],dOc=function(a){_.J.call(this,a)};_.K(dOc,_.J);_.g=dOc.prototype;_.g.getName=function(){return _.D(this,1)};_.g.hd=function(a){return _.hk(this,1,a)};_.g.getTitle=function(){return _.D(this,2)};_.g.setTitle=function(a){return _.hk(this,2,a)};
_.g.Eja=function(){return _.ek(this,ZNc,9,cOc)};_.g.YUa=function(){return _.ek(this,$Nc,10,cOc)};eOc=[1,3];_.GM=function(a){_.J.call(this,a)};_.K(_.GM,_.J);_.GM.prototype.Eh=function(){return _.ek(this,dOc,1,eOc)};_.fOc=[1,2,3];_.gOc=function(a){_.J.call(this,a)};_.K(_.gOc,_.J);_.hOc=function(a){_.J.call(this,a)};_.K(_.hOc,_.J);var iOc=function(a){_.J.call(this,a)};_.K(iOc,_.J);var jOc=function(a){_.J.call(this,a)};_.K(jOc,_.J);kOc=[2,3];_.lOc=function(a){_.J.call(this,a,-1,kOc)};_.K(_.lOc,_.J);
_.lOc.prototype.getType=function(){return _.Gj(this,1,0)};_.mOc=function(a){_.J.call(this,a)};_.K(_.mOc,_.J);_.mOc.prototype.getType=function(){return _.Gj(this,1,0)};var nOc=function(a){_.J.call(this,a)};_.K(nOc,_.J);nOc.prototype.getType=function(){return _.Gj(this,1,0)};var oOc=function(a){_.J.call(this,a)};_.K(oOc,_.J);_.pOc=function(a){_.J.call(this,a)};_.K(_.pOc,_.J);_.pOc.prototype.O=function(){return _.Q(this,1)};var qOc=function(a){_.J.call(this,a)};_.K(qOc,_.J);rOc=[1,2,4];
_.sOc=function(a){_.J.call(this,a)};_.K(_.sOc,_.J);tOc=[1,2];_.uOc=function(a){_.J.call(this,a)};_.K(_.uOc,_.J);_.uOc.prototype.getParent=function(){return _.B(this,_.GM,1)};_.uOc.prototype.tg=function(a){return _.I(this,1,a)};_.vOc=function(a){_.J.call(this,a,-1,tOc)};_.K(_.vOc,_.J);_.wOc=function(a){_.J.call(this,a,-1,rOc)};_.K(_.wOc,_.J);_.HM=function(a){_.J.call(this,a)};_.K(_.HM,_.J);_.HM.prototype.getEmail=function(){return _.D(this,1)};_.HM.prototype.getTitle=function(){return _.D(this,2)};
_.HM.prototype.setTitle=function(a){return _.hk(this,2,a)};_.IM=[2,3,4,5];_.JM=function(a){_.J.call(this,a)};_.K(_.JM,_.J);_.JM.prototype.zf=function(){return _.Gj(this,1,0)};_.JM.prototype.getUser=function(){return _.ek(this,_.CNc,2,_.IM)};var xOc=function(a){_.J.call(this,a)};_.K(xOc,_.J);yOc=[1,2,3,4];_.zOc=function(a){_.J.call(this,a,-1,yOc)};_.K(_.zOc,_.J);_.AOc=function(a){_.J.call(this,a)};_.K(_.AOc,_.J);_.BOc=function(a){_.J.call(this,a)};_.K(_.BOc,_.J);_.COc=function(a){_.J.call(this,a)};
_.K(_.COc,_.J);_.DOc=function(a){_.J.call(this,a)};_.K(_.DOc,_.J);_.DOc.prototype.getType=function(){return _.Gj(this,1,0)};EOc=[1];_.FOc=function(a){_.J.call(this,a)};_.K(_.FOc,_.J);_.FOc.prototype.getFeature=function(){return _.Gj(this,1,0)};_.GOc=function(a){_.J.call(this,a,-1,EOc)};_.K(_.GOc,_.J);var HOc=function(a){_.J.call(this,a)};_.K(HOc,_.J);var IOc=function(a){_.J.call(this,a)};_.K(IOc,_.J);var JOc=function(a){_.J.call(this,a)};_.K(JOc,_.J);
JOc.prototype.getType=function(){return _.Gj(this,1,0)};_.KM=[1,2,3,4,5,6,7,8,9,10,11,12,13,18,15,16,19,20,21];_.LM=function(a){_.J.call(this,a)};_.K(_.LM,_.J);_.LM.prototype.cA=function(){return _.ek(this,JOc,10,_.KM)};_.KOc=function(a){_.J.call(this,a)};_.K(_.KOc,_.J);var LOc=function(a){_.J.call(this,a)};_.K(LOc,_.J);_.MOc=function(a){_.J.call(this,a)};_.K(_.MOc,_.J);_.NOc=function(a){_.J.call(this,a)};_.K(_.NOc,_.J);_.NOc.prototype.getType=function(){return _.Gj(this,1,0)};_.MM=[1,2,3,4,5];
_.OOc=function(a){_.J.call(this,a)};_.K(_.OOc,_.J);_.OOc.prototype.getUser=function(){return _.ek(this,_.CNc,1,_.MM)};var POc=function(a){_.J.call(this,a)};_.K(POc,_.J);POc.prototype.getType=function(){return _.Gj(this,2,0)};POc.prototype.Nh=function(){return _.D(this,1)};_.QOc=function(a){_.J.call(this,a)};_.K(_.QOc,_.J);_.g=_.QOc.prototype;_.g.getName=function(){return _.D(this,1)};_.g.hd=function(a){return _.hk(this,1,a)};_.g.getTitle=function(){return _.D(this,2)};
_.g.setTitle=function(a){return _.hk(this,2,a)};_.g.Na=function(){return _.B(this,_.aOc,3)};_.ROc=function(a){_.J.call(this,a)};_.K(_.ROc,_.J);_.ROc.prototype.getParent=function(){return _.B(this,_.aOc,4)};_.ROc.prototype.tg=function(a){return _.I(this,4,a)};_.NM=[1,5,3];_.SOc=function(a){_.J.call(this,a)};_.K(_.SOc,_.J);_.SOc.prototype.Eh=function(){return _.ek(this,_.aOc,1,_.NM)};_.TOc=function(a){_.J.call(this,a)};_.K(_.TOc,_.J);_.TOc.prototype.O=function(){return _.y(this,1)};
var UOc=function(a){_.J.call(this,a)};_.K(UOc,_.J);UOc.prototype.O=function(){return _.P(this,1)};UOc.prototype.V=function(){return _.y(this,2)};_.OM=function(a){_.J.call(this,a)};_.K(_.OM,_.J);_.g=_.OM.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Ob=function(a){return _.w(this,1,a)};_.g.getTitle=function(){return _.y(this,2)};_.g.setTitle=function(a){return _.w(this,2,a)};_.g.msa=function(){return _.y(this,3)};_.g.oz=function(){return _.y(this,4)};
_.g.m$=function(){return _.B(this,UOc,6)};_.g.Erb=function(){return _.B(this,_.TOc,7)};_.g.cVa=function(){return _.y(this,8)};_.g.lsa=function(){return _.P(this,9)};_.PM=function(a){_.J.call(this,a)};_.K(_.PM,_.J);_.g=_.PM.prototype;_.g.getType=function(){return _.y(this,1)};_.g.getId=function(){return _.y(this,2)};_.g.Ob=function(a){return _.w(this,2,a)};_.g.getTitle=function(){return _.y(this,3)};_.g.setTitle=function(a){return _.w(this,3,a)};_.g.Ed=function(){return _.y(this,5)};
_.g.setSize=function(a){return _.w(this,5,a)};_.g.j$a=function(){return _.y(this,6)};_.VOc=function(a,b){return _.w(a,6,b)};_.PM.prototype.Cf=function(){return _.y(this,8)};_.PM.prototype.Yl=function(a){return _.w(this,8,a)};_.PM.prototype.O=function(){return _.P(this,9)};var WOc=function(a){_.J.call(this,a)};_.K(WOc,_.J);WOc.prototype.Bb=function(){return _.y(this,1)};WOc.prototype.Dc=function(a){return _.w(this,1,a)};
var XOc=function(a,b){return _.I(a,2,b)},YCc=[90,59,75],YOc=function(a){_.J.call(this,a)};_.K(YOc,_.J);YOc.prototype.getType=function(){return _.y(this,1)};var ZOc=function(a){var b=new YOc;return _.w(b,1,a)},$Oc=function(a,b){return _.I(a,2,b)};YOc.prototype.zy=function(){return _.y(this,3)};YOc.prototype.dz=function(a){return _.w(this,3,a)};YOc.prototype.Qi=function(){return _.y(this,4)};YOc.prototype.setPosition=function(a){return _.w(this,4,a)};
var bPc=function(a){_.J.call(this,a,-1,aPc)};_.K(bPc,_.J);bPc.prototype.Bb=function(){return _.y(this,1)};bPc.prototype.Dc=function(a){return _.w(this,1,a)};var aPc=[2];
var cPc=function(a){_.J.call(this,a)};_.K(cPc,_.J);
var dPc=function(a){_.J.call(this,a)};_.K(dPc,_.J);dPc.prototype.getType=function(){return _.y(this,1)};var ePc=function(a){var b=new dPc;return _.w(b,1,a)},fPc=function(a,b){return _.I(a,2,b)};dPc.prototype.zy=function(){return _.y(this,3)};dPc.prototype.dz=function(a){return _.w(this,3,a)};dPc.prototype.Qi=function(){return _.y(this,4)};dPc.prototype.setPosition=function(a){return _.w(this,4,a)};
var QM=function(a){_.J.call(this,a)};_.K(QM,_.J);QM.prototype.getType=function(){return _.y(this,1)};var gPc=function(a){var b=new QM;return _.w(b,1,a)};QM.prototype.rn=function(){return _.B(this,ZL,2)};var hPc=function(a,b){return _.I(a,2,b)};QM.prototype.zy=function(){return _.y(this,3)};QM.prototype.dz=function(a){return _.w(this,3,a)};QM.prototype.Qi=function(){return _.y(this,4)};QM.prototype.setPosition=function(a){return _.w(this,4,a)};
var RM=function(a){_.J.call(this,a)};_.K(RM,_.J);RM.prototype.getType=function(){return _.y(this,1)};var iPc=function(a){var b=new RM;return _.w(b,1,a)};RM.prototype.rn=function(){return _.B(this,_.GG,2)};var jPc=function(a,b){return _.I(a,2,b)};RM.prototype.zy=function(){return _.y(this,3)};RM.prototype.dz=function(a){return _.w(this,3,a)};RM.prototype.Qi=function(){return _.y(this,4)};RM.prototype.setPosition=function(a){return _.w(this,4,a)};
var kPc=function(a){_.J.call(this,a)};_.K(kPc,_.J);kPc.prototype.Bb=function(){return _.y(this,1)};kPc.prototype.Dc=function(a){return _.w(this,1,a)};kPc.prototype.xr=function(){return _.B(this,_.YL,2)};
var mPc=function(a){_.J.call(this,a,-1,lPc)};_.K(mPc,_.J);mPc.prototype.Bb=function(){return _.y(this,1)};mPc.prototype.Dc=function(a){return _.w(this,1,a)};mPc.prototype.dk=function(){return _.y(this,3)};var lPc=[2];
var nPc=function(a){_.J.call(this,a)};_.K(nPc,_.J);nPc.prototype.jd=function(){return _.B(this,LL,1)};nPc.prototype.$n=function(){return _.y(this,2)};
var oPc=function(a){_.J.call(this,a)};_.K(oPc,_.J);_.g=oPc.prototype;_.g.Bb=function(){return _.y(this,1)};_.g.Dc=function(a){return _.w(this,1,a)};_.g.xr=function(){return _.B(this,_.YL,2)};_.g.dk=function(){return _.y(this,3)};_.g.Nh=function(){return _.y(this,4)};
var SM=function(a){_.J.call(this,a)};_.K(SM,_.J);SM.prototype.Bb=function(){return _.y(this,1)};SM.prototype.Dc=function(a){return _.w(this,1,a)};SM.prototype.dk=function(){return _.y(this,3)};
var pPc=function(a){_.J.call(this,a)};_.K(pPc,_.J);_.g=pPc.prototype;_.g.Bb=function(){return _.y(this,1)};_.g.Dc=function(a){return _.w(this,1,a)};_.g.dk=function(){return _.y(this,2)};_.g.XLa=function(){return _.B(this,_.pp,3)};_.g.getKey=function(){return _.B(this,_.Yb,4)};_.g.ht=function(){return _.Dj(this,4)};
var qPc=function(a){_.J.call(this,a)};_.K(qPc,_.J);qPc.prototype.getKey=function(){return _.y(this,1)};qPc.prototype.ht=function(){return _.Dj(this,1)};var sPc=function(a){_.J.call(this,a,-1,rPc)};_.K(sPc,_.J);var tPc=[2,4,6,10],uPc=[3,5,7,8,9],rPc=[1];
var vPc=function(a){_.J.call(this,a)};_.K(vPc,_.J);
var TM=function(a){_.J.call(this,a,-1,wPc)};_.K(TM,_.J);TM.prototype.Bb=function(){return _.y(this,1)};TM.prototype.Dc=function(a){return _.w(this,1,a)};TM.prototype.O=function(){return _.Wj(this,SL,2)};var xPc=function(a,b){return _.Lj(a,2,b)};TM.prototype.dk=function(){return _.y(this,3)};var wPc=[2];
var yPc=function(a){_.J.call(this,a)};_.K(yPc,_.J);yPc.prototype.Bb=function(){return _.y(this,1)};yPc.prototype.Dc=function(a){return _.w(this,1,a)};yPc.prototype.O=function(){return _.B(this,SL,2)};yPc.prototype.dk=function(){return _.y(this,3)};
var zPc=function(a){_.J.call(this,a)};_.K(zPc,_.J);zPc.prototype.yy=function(){return _.y(this,2)};
var BPc=function(a){_.J.call(this,a,-1,APc)};_.K(BPc,_.J);BPc.prototype.Bb=function(){return _.y(this,1)};BPc.prototype.Dc=function(a){return _.w(this,1,a)};BPc.prototype.Pi=function(){return _.Wj(this,_.qEa,2)};BPc.prototype.Bq=function(a,b){return _.Yj(this,2,a,_.qEa,b)};var APc=[2];
var DPc=function(a){_.J.call(this,a,-1,CPc)};_.K(DPc,_.J);DPc.prototype.Bb=function(){return _.y(this,1)};DPc.prototype.Dc=function(a){return _.w(this,1,a)};DPc.prototype.xl=function(){return _.Wj(this,QM,2)};var CPc=[2];
_.FPc=function(a){_.J.call(this,a,-1,EPc)};_.K(_.FPc,_.J);var EPc=[1];
var UM=function(a){_.J.call(this,a,-1,GPc)},JPc,KPc;_.K(UM,_.J);UM.prototype.$n=function(){return _.y(this,1)};var HPc=function(a,b){return _.w(a,1,b)},IPc=function(a,b){return _.w(a,2,b)};UM.prototype.Bb=function(){return _.y(this,3)};UM.prototype.Dc=function(a){return _.w(this,3,a)};JPc=function(a,b){return _.w(a,4,b)};KPc=function(a,b){return _.Lj(a,5,b)};_.LPc=function(a){_.J.call(this,a)};_.K(_.LPc,_.J);_.LPc.prototype.$b=function(){return _.y(this,2)};_.NPc=function(a){_.J.call(this,a,-1,MPc)};
_.K(_.NPc,_.J);var OPc=function(a,b){return _.w(a,1,b)},PPc=function(a,b){return _.w(a,2,b)},QPc=function(a,b){return _.Lj(a,3,b)},GPc=[5],MPc=[3];
_.VM=function(a){_.J.call(this,a,-1,RPc)};_.K(_.VM,_.J);_.VM.prototype.AV=function(){return _.Wj(this,_.CG,2)};_.VM.prototype.te=function(){return _.B(this,_.Df,3)};var RPc=[1,2];
_.WM=function(a){_.J.call(this,a)};_.K(_.WM,_.J);_.WM.prototype.Bb=function(){return _.y(this,1)};_.WM.prototype.Dc=function(a){return _.w(this,1,a)};_.WM.prototype.xf=function(){return _.B(this,_.qC,2)};_.SPc=function(a,b){return _.I(a,2,b)};_.WM.prototype.dk=function(){return _.y(this,3)};
var TPc=function(a){_.J.call(this,a)};_.K(TPc,_.J);TPc.prototype.Bb=function(){return _.y(this,1)};TPc.prototype.Dc=function(a){return _.w(this,1,a)};
var VPc=function(a){_.J.call(this,a,-1,UPc)};_.K(VPc,_.J);VPc.prototype.Bb=function(){return _.y(this,1)};VPc.prototype.Dc=function(a){return _.w(this,1,a)};VPc.prototype.xl=function(){return _.Wj(this,RM,2)};var UPc=[2];
_.XM=function(a){_.J.call(this,a)};_.K(_.XM,_.J);_.XM.prototype.pY=function(a){_.I(this,1,a)};_.XM.prototype.qv=function(){return _.B(this,_.Ky,2)};_.XM.prototype.BO=function(a){_.I(this,2,a)};
_.WPc=function(a){_.J.call(this,a)};_.K(_.WPc,_.J);_.WPc.prototype.Sh=function(){return _.B(this,POc,2)};_.WPc.prototype.O=function(a){_.Xj(this,5,_.XPc,a)};_.XPc=[5,6];
var YPc;_.ZPc=function(a){_.J.call(this,a,-1,YPc)};_.K(_.ZPc,_.J);_.ZPc.prototype.O=function(a){_.Xj(this,6,_.YM,a)};YPc=[3,4,5];_.YM=[6,7];
var $Pc=function(a){_.J.call(this,a)};_.K($Pc,_.J);$Pc.prototype.getType=function(){return _.y(this,1)};var aQc=function(a){var b=new $Pc;return _.w(b,1,a)};$Pc.prototype.zy=function(){return _.y(this,3)};$Pc.prototype.dz=function(a){return _.w(this,3,a)};$Pc.prototype.Qi=function(){return _.y(this,4)};$Pc.prototype.setPosition=function(a){return _.w(this,4,a)};
var cQc=function(a){_.J.call(this,a,-1,bQc)};_.K(cQc,_.J);cQc.prototype.Bb=function(){return _.y(this,1)};cQc.prototype.Dc=function(a){return _.w(this,1,a)};cQc.prototype.dk=function(){return _.y(this,3)};var bQc=[2];
_.dQc=function(a){_.J.call(this,a)};_.K(_.dQc,_.J);_.dQc.prototype.getId=function(){return _.y(this,1)};_.dQc.prototype.Ob=function(a){return _.w(this,1,a)};_.dQc.prototype.te=function(){return _.B(this,_.Df,4)};
var fQc=function(a){_.J.call(this,a,-1,eQc)};_.K(fQc,_.J);fQc.prototype.Bb=function(){return _.y(this,1)};fQc.prototype.Dc=function(a){return _.w(this,1,a)};fQc.prototype.dk=function(){return _.y(this,3)};var eQc=[2];
_.ZM=function(a){_.J.call(this,a)};_.K(_.ZM,_.J);_.ZM.prototype.getType=function(){return _.y(this,1)};var gQc=function(a){var b=new _.ZM;return _.w(b,1,a)},hQc=function(a,b){return _.I(a,2,b)};_.ZM.prototype.zy=function(){return _.y(this,3)};_.ZM.prototype.dz=function(a){return _.w(this,3,a)};_.ZM.prototype.Qi=function(){return _.y(this,4)};_.ZM.prototype.setPosition=function(a){return _.w(this,4,a)};
_.KCc=function(a){_.J.call(this,a)};_.K(_.KCc,_.J);_.g=_.KCc.prototype;_.g.getItem=function(){return _.B(this,_.jl,1)};_.g.setItem=function(a){return _.I(this,1,a)};_.g.getError=function(){return _.B(this,_.Dc,2)};_.g.Ie=function(a){return _.I(this,2,a)};_.g.eo=function(){return _.Dj(this,2)};_.g.Xs=function(){return _.y(this,4)};
var jQc=function(a){_.J.call(this,a,-1,iQc)};_.K(jQc,_.J);var iQc=[2,4];
var lQc=function(a){_.J.call(this,a,-1,kQc)};_.K(lQc,_.J);var kQc=[1];
var nQc=function(a){_.J.call(this,a,-1,mQc)};_.K(nQc,_.J);nQc.prototype.Bb=function(){return _.y(this,1)};nQc.prototype.Dc=function(a){return _.w(this,1,a)};nQc.prototype.dk=function(){return _.y(this,3)};var mQc=[2];
var pQc=function(a){_.J.call(this,a,-1,oQc)};_.K(pQc,_.J);pQc.prototype.Bb=function(){return _.y(this,1)};pQc.prototype.Dc=function(a){return _.w(this,1,a)};pQc.prototype.dk=function(){return _.y(this,3)};var oQc=[2];
var qQc=function(a){_.J.call(this,a)};_.K(qQc,_.J);
var sQc=function(a){_.J.call(this,a,-1,rQc)};_.K(sQc,_.J);sQc.prototype.O=function(){return _.y(this,2)};var tQc=function(a,b){_.w(a,2,b)},rQc=[1];
var vQc=function(a){_.J.call(this,a,-1,uQc)};_.K(vQc,_.J);vQc.prototype.yy=function(){return _.D(this,2)};var uQc=[1];
var wQc=function(a){_.ui.call(this,"Kb");this.dataType=a};_.K(wQc,_.ui);
var xQc=function(a,b){_.ui.call(this,"Lb");this.OOa=a;this.Lta=b};_.K(xQc,_.ui);
var yQc=function(){};_.g=yQc.prototype;_.g.vM=function(a,b){return $Oc(ZOc(1),a).setPosition(b)};_.g.uM=function(a,b){return $Oc(ZOc(2).setPosition(b),a)};_.g.BE=function(a,b,c){return $Oc(ZOc(3).dz(b).setPosition(c),a)};_.g.nQ=function(a,b){return $Oc(ZOc(4),a).setPosition(b)};_.g.TM=function(a){return _.B(a,WL,2)};
var zQc=function(){_.My.call(this,new yQc,function(a){return a&&a.getName()})};_.K(zQc,_.My);
var $M=function(a,b,c){c=void 0===c?50:c;_.Ei.call(this);var d=this;this.W=a;this.connectionState=b;this.limit=c;this.active=!1;this.status=6;this.va=kBc(new _.pL,[1]);this.ha=this.H=!1;this.Sc=new _.Ze(this);this.Ma(this.Sc);_.Re(this,function(){d.active=!1;d.Sc.removeAll()})};_.K($M,_.Ei);_.g=$M.prototype;_.g.ti=function(){return String(_.Da(this))};_.g.Se=function(){return this.W.Se()||this.connectionState.Se()};
_.g.activate=function(){var a=this;this.active||(this.active=!0,this.Sc.listen(this.W,"Bb",function(){return void a.Xt()}),this.Sc.listen(this.connectionState,[].concat(_.Bd(Object.values(_.rC))),function(){return void a.Xt()}),this.W.Se()?this.Sc.$c(this.W,"Bb",function(b){b.Se()||(a.MG(),a.dispatchEvent(new _.ui(_.uq)))}):this.connectionState.Se()?this.Sc.$c(this.connectionState,[_.rC.CL,_.rC.iU],function(){a.MG();a.dispatchEvent(new _.ui(_.uq))}):(this.MG(),this.dispatchEvent(new _.ui(_.uq))))};
_.g.MG=function(){};_.g.Fr=function(a){var b=this;if(this.Vj()){var c=this.limit;this.limit+=a||50;this.$b()>c&&this.Xt();this.W.Se()?this.Sc.$c(this.W,"Bb",function(d){d.Se()||b.SO()}):this.SO()}};_.g.IL=function(){this.Se()&&!this.H?this.status=2:this.status=this.H?1:6};_.g.Bb=function(){return this.status};_.g.jq=function(){return this.va};_.g.handleError=function(a){this.dispatchEvent(new _.Fc(a))};_.g.gW=function(){this.dispatchEvent(new _.ui(_.WEa))};_.g.Vj=function(){return!this.H||this.ha};
_.g.refresh=function(){this.H=this.active=!1;this.status=6;this.Sc.removeAll();this.activate()};_.g.SO=function(){};
var AQc=function(a,b,c,d,e){$M.call(this,a,b,e.Ei()||void 0);this.ka=c;this.request=e;this.V=[];this.data=[];this.changed=!1;this.O=new zQc;this.ma=d};_.K(AQc,$M);_.g=AQc.prototype;_.g.MG=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.ui(_.Pc,this))};_.g.getData=function(){return qJc(new lM,this.data).Dc(this.status)};_.g.zr=function(){var a=this.O.ty(this.V,this.data);this.V=this.data;var b=(new bPc).Dc(this.status);return _.Lj(b,2,a)};
_.g.SO=function(){this.ma(this.ti(),this.limit)};_.g.Xt=function(){if(this.active){var a=this.status;this.IL();if(this.changed||a!==this.status)this.changed=!1,BQc(this)}};_.g.$b=function(){return this.data.length};_.g.ud=function(){return this.request};_.g.update=function(a){var b=a.response;if(this.status!==b.Bb()||HL(this.O,this.data,b.O()))this.H=!0,this.status=b.Bb(),this.data=b.O(),this.ha=a.H,BQc(this)};
var BQc=function(a){a.log("Livelist "+a.ti()+" returning "+a.data.length+" for "+(a.request.Ac()+". Status: ")+(_.$a(hGc)[a.Bb()]+"."));a.dispatchEvent(new _.ui(_.Pc,a))};AQc.prototype.FB=function(a){this.dispatchEvent(new _.Fc(new _.Ec("Error occurred running a category metadata query after "+a.H+" retries.",a.error)))};AQc.prototype.log=function(a){this.ka.info("drive.ds.sync.CategoryMetadataLiveList",a)};
var CQc=function(a,b,c,d,e,f,h){_.NL.call(this,a,b,c,e,f,d);this.eg=h;this.W="drive.ds.sync.ViewCacheLiveList";this.ta=null;this.ma=void 0};_.K(CQc,_.NL);CQc.prototype.getData=function(){this.H=this.items;var a=FEc((new _.xB).Dc(this.Bb()).Vw(this.items),this.Vj());a=_.I(a,7,this.ta).nP(this.suggestionSessionId).Ki(this.Je);return _.Jj(a,18,this.ma)};
CQc.prototype.update=function(a){if(kGc(this,a)&&(lGc(this,a),this.ta=a.P5(),this.suggestionSessionId=a.dg(),this.ma=a.$ja(),jGc(this),this.suggestionSessionId&&GIc(this.V)&&(a=this.eg.H(106027)))){var b=_.B(_.QK(a),uFc,20);if(!b){b=new uFc;var c=_.QK(a);_.I(c,20,b)}_.w(b,1,this.suggestionSessionId);a.Aj()}};
var DQc=function(a,b){var c={};a=_.Na(a,function(d){return!!d});b=_.Na(b,function(d){return!!d});_.Ma(a,function(d,e){var f=b[e];f?_.ak(d,f)||(d=jPc(iPc(4),f),c[e]=d):(d=jPc(iPc(2),d),c[e]=d)});_.Ma(b,function(d,e){a[e]||(d=jPc(iPc(1),d),c[e]=d)});return c},EQc=function(a,b){return _.Qa(a)!==_.Qa(b)||!_.Ua(DQc(a,b))};
var FQc=function(a,b){_.Ei.call(this);this.request=b;this.active=!1;this.status=6;this.H={};this.data={}};_.K(FQc,_.Ei);_.g=FQc.prototype;_.g.activate=function(){this.active||(this.active=!0,_.Ua(this.data)&&6===this.status||this.dispatchEvent(new _.ui(_.Pc,this)))};_.g.Bb=function(){return this.status};_.g.jq=function(){return new _.pL};_.g.getData=function(){this.H=this.data;var a=(new _.UK).Dc(this.status);_.Ma(this.data,function(b,c){a.HT().set(c,b||new _.GG)});return a};
_.g.zr=function(){var a=DQc(this.H,this.data);this.H=this.data;var b=(new TPc).Dc(this.status);_.Ma(a,function(c,d){_.Ij(b,2,void 0,RM).set(d,c)});return b};_.g.aT=function(){throw Error("cg");};_.g.ti=function(){return String(_.Da(this))};_.g.ud=function(){return this.request};_.g.update=function(a){var b={};a.HT().forEach(function(c,d){c||(c=jLc(d));b[d]=c});if(this.status!==a.Bb()||EQc(this.H,b))this.status=a.Bb(),this.data=b,this.active&&this.dispatchEvent(new _.ui(_.Pc,this))};
_.g.FB=function(a){this.dispatchEvent(new _.Fc(new _.Ec("Error occurred running a Workspace find by id after "+a.H+" retries.",a.error)))};_.g.gW=function(){this.dispatchEvent(new _.ui(_.WEa))};
var GQc=function(a,b,c,d,e,f){_.NL.call(this,a,b,c,d,e,f);this.ma=[];this.W="drive.ds.sync.PeoplePredictLiveList"};_.K(GQc,_.NL);GQc.prototype.getData=function(){this.H=this.items;var a=(new _.TK).Dc(this.Bb()).Vw(this.items);var b=this.Vj();a=_.w(a,4,b);return gGc(a,this.ma).nP(this.suggestionSessionId).Ki(this.Je)};GQc.prototype.update=function(a){kGc(this,a)&&(lGc(this,a),this.ma=_.Wj(a,_.Sk,6),this.suggestionSessionId=a.dg(),jGc(this))};
var HQc=function(){};_.g=HQc.prototype;_.g.vM=function(a,b){return hPc(gPc(1),a).setPosition(b)};_.g.uM=function(a,b){return hPc(gPc(2).setPosition(b),a)};_.g.BE=function(a,b,c){return hPc(gPc(3).dz(b).setPosition(c),a)};_.g.nQ=function(a,b){return hPc(gPc(4),a).setPosition(b)};_.g.TM=function(a){return a.rn()};
var IQc=function(){_.My.call(this,new HQc,function(a){return a&&a.kq()})};_.K(IQc,_.My);
var JQc=function(a,b,c){$M.call(this,a.Mj(),a.Ck(),b.Ei()||10);this.request=b;this.O=[];this.data=[];this.changed=!1;this.V=new IQc;this.suggestionSessionId=null;this.ka=c};_.K(JQc,$M);_.g=JQc.prototype;_.g.MG=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.ui(_.Pc,this))};_.g.getData=function(){this.O=this.data;return LHc(KHc((new $L).Dc(this.status),this.data.slice(0)),this.suggestionSessionId)};
_.g.zr=function(){var a=this.V.ty(this.O,this.data);this.O=this.data;var b=(new DPc).Dc(this.status);return _.Lj(b,2,a)};_.g.SO=function(){};_.g.Xt=function(){var a=this.status;this.IL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ui(_.Pc,this))};_.g.$b=function(){return this.data.length};_.g.ud=function(){return this.request};
_.g.update=function(a){if(this.status!==a.Bb()||HL(this.V,this.data,a.xl())){this.changed=this.H=!0;this.data=a.xl();if(a=a.dg())this.suggestionSessionId=a;this.Xt()}};_.g.refresh=function(){this.ka()};_.g.FB=function(a){this.dispatchEvent(new _.Fc(new _.Ec("Error occurred running a Suggested Workspace query after "+(a.H+" retries."),a.error)))};
var KQc=function(a,b,c){_.Ei.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=kBc(new _.pL,[1]);this.O=!0;this.limit=a.Ei();_.Re(this,function(){d.H=!1;d.V=[]})};_.K(KQc,_.Ei);_.g=KQc.prototype;_.g.ti=function(){return String(_.Da(this))};_.g.activate=function(){this.H=!0;_.pa(this.items)&&6===this.status&&this.O||this.dispatchEvent(new _.ui(_.Pc,this))};_.g.ud=function(){return this.request};_.g.Bb=function(){return this.status};
_.g.jq=function(){return this.W};_.g.Vj=function(){return this.O};_.g.getData=function(){this.V=this.items;return FEc((new _.xB).Dc(this.status).Vw(this.items),this.O)};_.g.zr=function(){var a=_.e8a().ty(this.V,this.items),b=(new _.wI).Dc(this.status);a=_.Lj(b,2,a);this.V=this.items;return a};_.g.Fr=function(a){this.H&&(this.limit+=a||20,this.ka.FF(this.ti(),this.limit))};
_.g.update=function(a){if(this.status!==a.Bb()||HL(_.e8a(),this.items,a.wd()))this.items=a.wd(),this.status=a.Bb(),_.YI(this.ha)&&(this.W=lBc(this.status,this.items)),this.O=a.ul(),this.H&&this.dispatchEvent(new _.ui(_.Pc,this))};_.g.FB=function(a){this.dispatchEvent(new _.Fc(new _.Ec("Error occurred running a Team Drive query after "+a.H+" retries.",a.error)))};_.g.gW=function(){this.dispatchEvent(new _.ui(_.WEa))};_.g.Au=function(){throw Error("dg");};_.g.refresh=function(){};
var LQc=function(a,b,c){_.Ei.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=kBc(new _.pL,[1]);this.context.Rf().info("drive.ds.sync.TeamDriveLiveMap","Creating TD find by ids live map: "+this.request.qn().join(", "));_.Re(this,function(){d.V=!1;d.O=[]})};_.K(LQc,_.Ei);_.g=LQc.prototype;_.g.ti=function(){return String(_.Da(this))};
_.g.activate=function(){this.V=!0;(0<Object.values(this.H).length||6!==this.status)&&this.dispatchEvent(new _.ui(_.Pc,this))};_.g.ud=function(){return this.request};_.g.getData=function(){this.O=this.H;var a=new _.SK;a.Dc(this.status);a.map=this.H;return a};_.g.zr=function(){var a=IBc(this.O,this.H),b=new qGc;b.Dc(this.status);b.map=a;this.O=this.H;return b};_.g.Bb=function(){return this.status};_.g.jq=function(){return this.W};
_.g.aT=function(a){var b=this.request;this.request=a;this.ha.SY(this.ti(),b,a)};_.g.update=function(a){if(this.status!==a.Bb()||JBc(this.H,a.hq()))this.status=a.Bb(),this.H=a.hq(),_.YI(this.context.Nc)&&(this.W=lBc(this.status,Object.values(this.H))),this.V&&this.dispatchEvent(new _.ui(_.Pc,this))};_.g.FB=function(a){this.dispatchEvent(new _.Fc(new _.Ec("Error occurred running a team drive find-by-IDs query after "+a.H+" retries.",a.error)))};_.g.gW=function(){this.dispatchEvent(new _.ui(_.WEa))};
var MQc=function(){};_.g=MQc.prototype;_.g.vM=function(a,b){return jPc(iPc(1),a).setPosition(b)};_.g.uM=function(a,b){return jPc(iPc(2).setPosition(b),a)};_.g.BE=function(a,b,c){return jPc(iPc(3).dz(b).setPosition(c),a)};_.g.nQ=function(a,b){return jPc(iPc(4),a).setPosition(b)};_.g.TM=function(a){return a.rn()};
var NQc=function(){_.My.call(this,new MQc,function(a){return a&&a.getId()})};_.K(NQc,_.My);
var OQc=function(a,b,c){$M.call(this,a.Mj(),a.Ck(),b.Ei()||10);this.request=b;this.ka=c;this.O=[];this.data=[];this.changed=!1;this.V=new NQc};_.K(OQc,$M);_.g=OQc.prototype;_.g.MG=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.ui(_.Pc,this))};_.g.getData=function(){this.O=this.data;return BJc((new nM).Dc(this.status),this.data.slice(0))};_.g.zr=function(){var a=this.V.ty(this.O,this.data);this.O=this.data;var b=(new VPc).Dc(this.status);return _.Lj(b,2,a)};
_.g.SO=function(){this.ka.FF(this.ti(),this.limit)};_.g.Xt=function(){var a=this.status;this.IL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ui(_.Pc,this))};_.g.$b=function(){return this.data.length};_.g.ud=function(){return this.request};_.g.update=function(a){var b=a.response;if(this.status!==b.Bb()||HL(this.V,this.data,b.xl()))this.H=!0,this.status=b.Bb(),this.data=b.xl(),this.ha=a.H,this.dispatchEvent(new _.ui(_.Pc,this))};
_.g.FB=function(a){this.dispatchEvent(new _.Fc(new _.Ec("Error occurred running a Workspace query after "+a.H+" retries.",a.error)))};
var PQc=function(a,b){this.context=a;this.ha=b;this.H={};this.ka={};this.ma={};this.V=null;this.W=a.Nf;this.O=this.context.lfa;this.ta=this.context.T5};_.g=PQc.prototype;_.g.Cwa=function(a){var b=this,c=new CQc(this.context.ym,this.context.$P,this.context.Rf(),this.context.Nc,function(d,e){b.FF(d,e)},a,this.context.tk());this.ji(c);_.Re(c,function(){b.kk(c)});return c};
_.g.Fwa=function(a){var b=this,c=new GQc(this.context.ym,this.context.$P,this.context.Rf(),function(d,e){b.FF(d,e)},a,this.context.Nc);this.ji(c);_.Re(c,function(){b.kk(c)});return c};_.g.zwa=function(a){var b=this,c=new PL(this.context.Nc,this.context.ym,this.context.Rf(),this.context.IZ,this.SY.bind(this),a);this.ji(c);_.Re(c,function(){b.kk(c)});return c};_.g.Iwa=function(a){var b=this,c=new KQc(a,this,this.context.Nc);this.ji(c);_.Re(c,function(){b.kk(c)});return c};
_.g.Jwa=function(a){var b=this,c=new LQc(this.context,this,a);this.ji(c);_.Re(c,function(){b.kk(c)});return c};_.g.Mwa=function(a){var b=this,c=new OQc(this.context,a,this);this.ji(c);_.Re(c,function(){b.kk(c)});return c};_.g.Gwa=function(a){var b=this,c=new JQc(this.context,a,function(){if(a instanceof _.kA){var d=QQc(b.context);bLc(d,d.getKey(a)).refresh()}});this.ji(c);_.Re(c,function(){b.kk(c)});return c};
_.g.Nwa=function(a){var b=this,c=new FQc(this.context,a);this.ji(c);_.Re(c,function(){b.kk(c)});return c};_.g.vwa=function(a){var b=this,c=new AQc(this.context.Mj(),this.context.Ck(),this.context.Rf(),function(d,e){b.FF(d,e)},a);this.ji(c);_.Re(c,function(){b.kk(c)});return c};
_.g.ji=function(a){var b=a.ti();this.H[b]=a;this.ha.create(b,a.ud());if(a.ud()instanceof _.mA)a=this.O.ji(b,a.ud());else if(a.ud()instanceof _.IG)a=$Kc(this.O,b,a.ud());else if(a.ud()instanceof _.kA)a=QQc(this.context).ji(b,a.ud());else if(a.ud()instanceof _.RG)a=this.ta.ji(b,a.ud());else{var c=a.ud(),d=OL(this.context.ym,c,2);this.log("Registering LiveList "+a.ti()+" "+d);a=this.W.ji(b,c)}"boolean"===typeof a&&jJc(this.ha,b,a)};
_.g.kk=function(a){if(a.ud()instanceof _.mA)this.O.kk(a.ti(),a.ud());else if(a.ud()instanceof _.IG)aLc(this.O,a.ti(),a.ud());else if(a.ud()instanceof _.kA)QQc(this.context).kk(a.ti(),a.ud());else if(a.ud()instanceof _.RG)this.ta.kk(a.ti(),a.ud());else{var b=a.ud(),c=OL(this.context.ym,b,2);this.log("Unregistering LiveList "+a.ti()+" "+c);this.W.kk(a.ti(),b)}jM(this.ha,a.ti(),4);delete this.H[a.ti()]};_.g.SY=function(a,b,c){this.W.kk(a,b);this.W.ji(a,c)};
_.g.FF=function(a,b){var c=RQc(this,a).ud();c.vi(b);c instanceof _.mA?this.O.ji(a,c):c instanceof _.IG?$Kc(this.O,a,c):c instanceof _.RG?this.ta.ji(a,c):this.W.ji(a,c)};_.g.jO=function(a,b){var c=this.H[a]&&this.H[a].ud();c&&(c instanceof _.of?rBc(c.O(),b.wd().filter(function(d){return!dM(d)})):c instanceof _.zA&&rBc(c.O(),Object.values(b.hq()).filter(function(d){return d&&!dM(d)})));this.ka[a]=b;this.V||(this.V=_.Gi(this.P8,50,this))};
_.g.HX=function(a,b){this.ma[a]=b;this.V||(this.V=_.Gi(this.P8,50,this))};_.g.xA=function(a){(a=this.H[a])&&a.gW()};_.g.P8=function(){_.Hi(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&&(mJc(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])jM(this.ha,a,3),d.FB(c)};
_.g.oka=function(a){return RQc(this,a).ud()};var RQc=function(a,b){if(!a.H[b])throw Error("eg`"+b);return a.H[b]};PQc.prototype.log=function(a,b){this.context.Rf().log("drive.ds.sync.cache.LocalLiveRequestManager",a,void 0===b?"info":b)};
var SQc=function(){},TQc=function(a){this.H=a},LCc=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.uA=f;this.H=h;this.W=k};
var aN=function(a,b){_.Ei.call(this);this.O=a;this.request=b;this.je=_.ci();this.complete=!1;this.H=""};_.K(aN,_.Ei);aN.prototype.start=function(){var a=this;this.O.then(function(b){return b.Qe(a.request)}).then(this.W.bind(this)).Dg(this.handleError.bind(this));return this.je.promise};aN.prototype.W=function(a){this.H=a.H;this.dispatchEvent(new xQc(0,this.H));UQc(this)};
var UQc=function(a){_.n.setTimeout(function(){a.O.then(function(b){return b.Qe(new _.Iuc(a.H))}).then(function(b){if(a.complete||1!==b.status&&3!==b.status&&2!==b.status){a.complete=!0;if(4===b.status){var c=new jQc;c=_.Jj(c,2,b.V);c=_.w(c,3,a.H);c=_.w(c,5,b.ka);c=_.w(c,6,b.ha);c=_.w(c,7,b.uA);c=_.w(c,8,b.H);b=_.Lj(c,4,b.W);a.je.resolve(b)}else b=_.eJ(_.oq(_.nq(new _.Dc,"Export failed for request "+a.H+": "+b.status),JSON.stringify(b)),8),a.handleError(b);a.dispose()}else a.dispatchEvent(new xQc(b.O,
a.H)),UQc(a)}).Dg(function(b){a.handleError(b)})},5E3)};aN.prototype.cancel=function(){var a=this;this.O.then(function(b){return b.Qe(new _.Huc(a.H))}).then(this.V.bind(this)).Dg(this.handleError.bind(this))};aN.prototype.V=function(){if(!this.complete){var a=new jQc;a=_.w(a,3,this.H);a=_.w(a,1,!0);this.je.resolve(a);this.complete=!0;this.dispose()}};aN.prototype.handleError=function(a){this.complete=!0;this.je.reject(_.rJ(a));this.dispose()};
var VQc=function(){_.ui.call(this,"VbxEwf")};_.K(VQc,_.ui);
var WQc=function(a,b){this.context=a;this.H=null;this.qc=b||null};_.g=WQc.prototype;_.g.La=function(){return _.B(this.context.Nc,_.oJ,58)};_.g.getContext=function(){return this.context};_.g.Sz=function(){return this.context.aB.Sz(this.H)};_.g.Rf=function(){return this.context.Rf()};_.g.JM=function(a){return _.ji(this.context.Nf.xm.H(a))};_.g.$Q=function(){return _.ji(this.context.aB.$Q())};
_.g.L4=function(a,b,c){var d=new _.ei;if(_.ek(a,_.ZI,3,_.$I)||_.ek(a,_.kK,4,_.$I)||_.ek(a,_.bL,5,_.$I)||_.ek(a,_.hK,6,_.$I)||_.ek(a,_.GJ,7,_.$I)||_.ek(a,_.zJ,8,_.$I)||_.ek(a,_.DJ,9,_.$I)||_.ek(a,_.hJ,10,_.$I)){var e=gJc(a);this.context.Um().then(function(f){return f.Qe(e,{b6a:b,c6a:c})}).then(this.k$a.bind(this,d),d.Jd,d);return d}throw Error("fg");};
_.g.k$a=function(a,b){var c=[],d="";if(b instanceof _.cL){c=b.jd().wd();var e=_.y(b,2);d=b.$n()}else if(b instanceof _.oK)b.getItem()&&c.push(b.getItem()),e=b.RM();else throw Error("gg");a.callback({items:c,hia:e,pageToken:d})};_.g.Apa=function(){var a=this.context.Nc,b=a.ig();a="email:"+_.JI(a).getEmail().replace(/@.*$/,"");_.w(b,13,a)};_.g.Hha=function(){this.context.Ks.gS();var a=this.context.Nc;UMc(_.CK(_.JI(a)),_.DK(a),this.context.Rf()).Dg(function(){})};
_.g.b9=function(){return _.Ptc[_.Gj(this.context.Nc.ig(),8,0)]};_.g.dda=function(){this.context.QF.H=new JLc(_.Wg().substring(0,8))};_.g.LS=function(){var a=this.context.QF.hN(),b=null;a&&(b=LLc(this.context.QF),b={traceId:a,spanRecs:b});a=this.context.QF;a.H=null;a.zY=[];return _.ji(b)};_.g.hN=function(){return _.ji(this.context.QF.hN())};
_.g.getState=function(a){var b=this.context.Sj,c=b.H.bind(b);b={};b.b=this.context.Nc.Xi();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.Nf.xm.Ed();c=this.context.Nf.Kt;var d=c.H;d&&(b.cs_sutd=d.S7,b.cs_ss=d.Ed());b.cs_ch=$Jc(c).length;b.cs_td=c.XV().length;(c=this.context.U5)&&(b.t_cps=c.eWa().getStats().join(","));b.t_id=XQc(this.context);
var e=[];YQc(this.context.ZQ()).forEach(function(f,h){e.push(h+":"+f.join(";"))});b.t_ct=e.join(",");b.n_a=this.context.pz?this.context.Ck().isConnected():this.context.xI.LB();b.n_o=this.context.pz?this.context.Ck().Se():this.context.Mj().Se();b.n_csm=!!this.context.pz;a&&(b.csw_cc=_.Qa(a.channels),b.csw_ac=a.O,b.csw_mcc=a.H);return _.ji(JSON.stringify(b))};_.g.Yoa=function(){this.qc&&(this.qc.dispatchEvent(new VQc),this.qc.Gu())};
_.g.Pl=function(a){var b=this.context.pz;b&&a!==b.V&&(b.V=a,b.reset(),a?b.state.update(3):_.dyc(b))};
var aRc=function(a,b){this.context=a;this.Mg=b;this.H=_.uuc(_.KK(this.Mg),ZQc);this.O=_.uuc(_.KK(this.Mg),$Qc)};
aRc.prototype.zl=function(a){var b=this,c=this.context.QP.xf().xf(),d=(c=c?c.getUser():null)?c.getId():null,e={};a.forEach(function(h){_.yuc(h);var k=h.getId(),l=b.context.bo();_.Tvc(h,3);_.kJ(h,5);var p=NBc(h,!0);h.getCapabilities()||_.yK(h,new _.Yk);_.P(p,2)&&((p=h.wk())&&p.length?_.w(h,46,p[0]):(_.xK(h,[l]),_.w(h,46,l)),l=h.Aq(),_.w(h,12,l),l=new _.Sk,l.Ob(d),_.w(l,6,1),_.evc(l,!0),_.Mvc(h,l),_.Lvc(h,[l]),_.P8b(h,1));e[k]=h});a=Object.keys(e);c=this.context.Nf;var f=mIc(c.xm,a);_.Ma(f,function(h,
k){vL(h.getItem(),e[k],b.H);(b.context.Mj().Se()||b.context.Ck().Se()||3===h.getItem().tv())&&vL(h.getItem(),e[k],b.O);_.Va(e,k)});_.Ma(e,function(h){_.el(h.Tm())&&(f[h.getId()]=new cM(h))});bRc(c,Object.values(f))};
var cRc=function(a,b){var c=[];b.forEach(function(d){c.push(d.getItem())});a.zl(c)},dRc=function(a){a=a.context.Nf;var b=new _.of;b.Pl(!0);b=oIc(a.xm,b);for(var c=[],d=[],e=0;e<b.length;e++){var f=b[e].getItem();if(3===f.tv()){var h=new _.bJ;_.cJ(h,f.getId());_.lJ(h);d.push(h)}else h=new _.Tna,_.sL(h,!1),_.w(h,2,!1),_.I(f,81,h),c.push(b[e])}bRc(a,c);a.So(d)},ZQc=[50],$Qc=[12,11,10,67,68];
var eRc=function(a){this.context=a;this.H=null;this.V=!1;this.O=new aRc(a,a.Mg)};_.g=eRc.prototype;_.g.kY=function(a){this.H=a;this.V=!1;if(a){if(this.H){a=this.m$a.bind(this);var b=this.l$a.bind(this);this.log("Querying all offline items.");this.H.pV().mg(a,b);this.V||(this.H.t_((0,_.N)(this.Nwb,this)),this.V=!0)}}else dRc(this.O)};_.g.m$a=function(a){this.log("Processing all offline item(s): "+a.length);this.O.zl(a);pM(this.context.Sj,"GZTDpc")};_.g.l$a=function(){this.log("Error fetching offline items.")};
_.g.Nwb=function(a){this.log("Handling offline change(s): "+a.length);cRc(this.O,a)};_.g.log=function(a){this.context.Rf().info("drive.ds.sync.offline.LocalDataService",a)};
var bN=function(a){_.Ei.call(this);this.context=a;this.Ba="drive.ds.sync.BaseItemService";this.Sc=new _.Ze(this);this.ma=null;this.Ta=this.va=!1;var b=new eRc(a);this.context.ha=b;this.Fa=new WQc(a,this);wCc(this.Fa);(b=_.B(a.Nc,_.oJ,58))&&_.Q(b,1,!1);this.Ma(this.Sc);this.O=this.context.Sj;this.W=a.ifa;this.V=new PQc(a,this.W);a=this.context;b=this.V;a.W=b;a.O.resolve(b);this.JRa()};_.K(bN,_.Ei);_.g=bN.prototype;_.g.JRa=function(){};
_.g.initialize=function(){var a=this;if(!this.ma){this.ma=_.ci();var b=this.context.tk().H(106E3);this.ma.promise.then(function(){b&&b.Aj()},function(){_.$K(a.context.tk(),181008852)});var c=_.EK(this.context.Nc)?"(coldstart) ":"";this.context.Rf().info(this.Ba,"Initializing "+c+" with client build: "+this.context.Nc.Xi());this.Sc.listen(this.context,_.Oc,this.rub);this.Sc.listen(this.context.xI,["pb","qb"],function(d){return void a.dispatchEvent(d)});this.Sc.listen(this.context.Ck(),[].concat(_.Bd(Object.values(_.rC))),
function(d){return void a.dispatchEvent(d)});this.$a();this.O.start();pM(this.O,"NSockf")}return this.ma.promise};_.g.GWa=function(){this.context.Rf().info(this.Ba,"Ready to process requests.");this.va||(this.va=!0,this.ma.resolve())};_.g.rub=function(a){var b=a.error,c=b.Tg;c&&3===c.getType()&&!this.va?(this.va=!0,this.ma.reject(b)):this.dispatchEvent(a)};_.g.GY=function(){throw cN("teamDriveQuery");};_.g.lda=function(){throw cN("teamDriveFindByIds");};
_.g.spa=function(){throw cN("teamDriveMovePreflight");};_.g.xFa=function(){throw cN("peoplePredictQuery");};_.g.query=function(a){EIc(this.context.ym,a,HFc(this.context.Mg));this.jF();var b=a.clone();b=this.V.Cwa(b);this.Ta||(a=a.te(),a&&121===_.y(a,1)||(this.Ta=!0,this.Sc.listen(b,_.Pc,this.YLa)));return b};_.g.YLa=function(a){a=a.currentTarget;if(1===a.Bb()){var b=this.O.H("W6J7De");this.Fa.H=b;this.Sc.Yc(a,_.Pc,this.YLa)}};_.g.Gq=function(a){this.jF();sGc(a);return this.V.zwa(a.clone())};
_.g.Bua=function(){throw cN("activityQuery");};_.g.mva=function(){throw cN("backupsQuery");};_.g.hGa=function(){throw cN("refreshBackups");};_.g.qV=function(){throw cN("getAndroidBackupItems");};_.g.g8=function(){throw cN("deleteBackup");};_.g.AFa=function(){throw cN("permissionQuery");};_.g.U$=function(){throw cN("insertPermission");};_.g.h8=function(){throw cN("deletePermission");};_.g.ld=function(){throw cN("mutate");};_.g.MN=function(){throw cN("mutateWorkspace");};
_.g.Fz=function(){throw cN("bulkMutate");};_.g.ywa=function(){throw cN("createFileUploader");};_.g.XRa=function(a){return new aN(this.context.Um(),a)};_.g.yr=function(a){if(3===a.getType())return _.ki(this.context.Um().then(function(b){return b.Qe(a)}).then(null,_.sJ));throw cN("getApps with type "+a.getType());};_.g.xr=function(){throw cN("getApp");};_.g.W$=function(){throw cN("installApp");};_.g.f8=function(){throw cN("deleteApp");};_.g.YS=function(){throw cN("updateApp");};
_.g.mN=function(){throw cN("getUserAccount");};_.g.KG=function(){throw cN("getUserPrefs");};_.g.XR=function(){throw cN("mutateUserPref");};_.g.mu=function(){throw cN("getRevisions");};_.g.kBa=function(){return!1};_.g.Pl=function(a){this.context.pz?a?_.eyc(this.context.pz,!0):this.context.Ck().Se()&&this.context.pz.mM(!0).then(null,function(){}):this.context.Mj().Pl(a)};_.g.cz=function(){throw cN("setOfflineOptIn");};_.g.kY=function(){throw cN("setLocalItemService");};_.g.jF=function(){};
_.g.ZR=function(){this.context.ZR();this.context.tk().O(106006)};_.g.s9=function(){return this.Fa};_.g.hY=function(){};_.g.LB=function(){return this.context.xI.LB()};_.g.fQ=function(){return _.Q(this.context.Nc.ig(),52,!1)?_.Zh($Ic(new ZIc,0)):this.context.xI.fQ()};_.g.isConnected=function(){return 1===this.context.Ck().get()};_.g.B7=function(){var a=this.context.pz;return a?a.mM():_.Zh(_.Xxc(0))};_.g.sync=function(){throw cN("sync");};_.g.Gu=function(){return this.context.Gu()};
_.g.lba=function(){throw cN("offlineDataLoaded");};_.g.yna=function(a){return this.context.Um().then(function(b){return b.Qe(a)}).then(function(b){return b})};_.g.Nva=function(){throw cN("categoryMetadataQuery");};_.g.w7=function(){throw cN("changeCategoryLinks");};_.g.UO=function(){throw cN("updateCategoryMetadata");};_.g.SFa=function(){throw cN("publishedCategoriesQuery");};_.g.TFa=function(){throw cN("publishedCategoryQuery");};_.g.xKa=function(){throw cN("workspaceFindByIdsRequest");};
_.g.oqa=function(){throw cN("workspaceQueryRequest");};_.g.QIa=function(){throw cN("suggestedWorkspaceItemQueryRequest");};_.g.RIa=function(){throw cN("suggestedWorkspaceQueryRequest");};_.g.r_=function(){throw cN("addCacheHint");};_.g.X_=function(){throw cN("createUserFeedback");};_.g.So=function(){throw cN("handleChanges");};var cN=function(a){return new _.Ec(a+" is unsupported",_.qJ(3))};
var VCc=function(a){bN.call(this,a);this.Ba="drive.ds.sync.AnonymousItemService";a.Eu("")};_.K(VCc,bN);VCc.prototype.$a=function(){oM(this.O,["NSockf"],this.GWa.bind(this))};
var fRc=new Set([1,2,4,5,6]),gRc=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.Je=0};gRc.prototype.xf=function(){var a=new _.WM;a.Dc(this.status);this.H&&_.SPc(a,hRc(this));return a};
var iRc=function(a,b,c,d){d=void 0===d?!1:d;var e=fRc.has(c);if(1===a.status&&!e)return!1;a.Je=c;var f=a.status;c=!a.H;if(_.YI(a.O)){var h=(h=b&&b.getUser())&&tL(h);h=!(!h||!JKc(a.ka,h));a.status=h&&e||d?1:6}f=!_.ak(a.H,b)||(_.YI(a.O)?a.status!==f:6===a.status&&e);a.H=b.clone();_.YI(a.O)||(a.status=e||d?1:6);c&&(pM(a.ha,"toquGd"),a.W.info("drive.ds.sync.account.InMemoryAccountCache","Account loaded from "+(e?"server":"cache")));f&&a.V.update(0);return f};gRc.prototype.Ze=function(){return this.Je};
var hRc=function(a){return a.H?a.H.clone():null};
var jRc=function(a){_.Ei.call(this);this.ha=a;this.Je=0};_.K(jRc,_.Ei);var kRc=function(a){a=a.clone();var b=function(c){return c.toLowerCase()};CHc(a,_.ge(a,4).map(b));DHc(a,_.ge(a,5).map(b));return a};_.g=jRc.prototype;_.g.yr=function(){};_.g.put=function(){};_.g.remove=function(){};_.g.aQ=function(){};_.g.QG=function(){return 0!==this.Je};_.g.Ze=function(){return this.Je};
var lRc=new Set([1,2,4,5,6]),mRc=function(a,b,c){jRc.call(this,b);this.W=a;this.V=c;this.H={};this.O=[];this.status=6;this.wp=!1};_.K(mRc,jRc);mRc.prototype.yr=function(){var a=new kM;if(!_.Ua(this.H)){_.Jj(a,4,this.O);var b=[];_.Ma(this.H,function(c){b.push(c.clone())});_.Lj(a,2,b)}a.Dc(this.status);return a};mRc.prototype.put=function(a){this.H[a.getId()]=kRc(a);this.V.update(1);this.dispatchEvent(new _.ui("Mb",this))};mRc.prototype.remove=function(a){_.Va(this.H,a)&&this.V.update(1)};
mRc.prototype.aQ=function(a,b,c){c=void 0===c?!1:c;var d=!lRc.has(b);1===this.status&&d||(this.Je=b,nRc(this,a,!d||c),d||this.V.update(1),this.wp||(this.wp=!0,this.W.info("drive.ds.sync.appsettings.InMemoryAppSettingsCache","Apps initialized."),pM(this.ha,"nVUlO")))};
var nRc=function(a,b,c){var d=!1,e=c?1:6;d=e!==a.status;a.status=e;e=_.ge(b,4);if(!d)if(e.length!==a.O.length)d=!0;else{var f=e.concat(a.O);_.Ea(f);d=f.length!==a.O.length}a.O=e;var h=_.Za(a.H);_.yqc(a.H);b=_.Wj(b,_.YL,2);d||(d=b.length!==_.Qa(h));b.forEach(function(k){var l=kRc(k);a.H[k.getId()]=l;d||(k=h[k.getId()],d=!k||!_.ak(l,k))});a.W.info("drive.ds.sync.appsettings.InMemoryAppSettingsCache",(c?"Fresh":"Stale")+" apps loaded: "+b.length);d&&a.dispatchEvent(new _.ui("Mb",a))};
var dN=function(a){_.O.call(this);this.context=a;this.Ny=new Set;this.Fp=6;this.bCa=!0;this.Je=0;this.Sc=new _.Ze(this);this.Ma(this.Sc)};_.K(dN,_.O);_.g=dN.prototype;_.g.ji=function(a){this.WQa(a);this.Ny.add(a);this.resize(!0);this.jO(a)};_.g.WQa=function(){};_.g.kk=function(a){this.Ny.delete(a);0!=this.Ny.size||this.QYa()?this.resize(!1):this.dispose()};_.g.Ze=function(){return this.Je};_.g.Ki=function(a){this.Je=a};_.g.dC=function(a){this.bCa=!1;this.Fp=a};_.g.FJ=function(){return this.Fp};
_.g.refresh=function(){};_.g.fk=function(){};
var pRc=function(a,b,c){if(Array.isArray(c)){c.forEach(function(k,l,p){p[l]=k.clone()});var d=c}else{d=[];for(var e=_.m(Object.entries(c)),f=e.next();!f.done;f=e.next()){var h=_.m(f.value);f=h.next().value;if(h=h.next().value)h=h.clone(),c[f]=h,d.push(h)}}oRc(a.context.Nf,d,b);d.forEach(function(k){ILc(a.context.eMa,k,b);if(k.yc()){var l=k.getCapabilities();dM(k)?l&&(_.qvc(l,_.P(l,13)),_.nvc(l,!1),_.uvc(l,!1)):xL(k)?(l&&_.w(l,3,!1),_.w(k,30,!1)):l&&(_.yvc(l,!1),_.zvc(l,!1))}k.getCapabilities()||_.yK(k,
new _.Yk)})};dN.prototype.resize=function(){};dN.prototype.ud=function(){};dN.prototype.zl=function(a,b){var c=this,d=!1;a.forEach(function(e){e=qM(e);d=c.Lu(e,!0)||d});b||(1!=this.FJ()&&(d=!0),this.dC(1));d&&this.IX()};var qRc=function(a,b){var c=!1;b.forEach(function(d){c=a.Lu(d)||c});c&&a.IX();return c};_.g=dN.prototype;_.g.update=function(a){return qRc(this,[a])};_.g.Lu=function(){};_.g.IX=function(){var a=this;this.VQa();this.Ny.forEach(function(b){a.jO(b)})};_.g.VQa=function(){};
_.g.jO=function(a){var b=rRc(this.context).oka(a);this.cYa(b)||(b=this.fk(b),rRc(this.context).jO(a,b))};_.g.HX=function(a){var b=this;this.dC(3);this.Ny.forEach(function(c){rRc(b.context).HX(c,a)})};_.g.xA=function(){var a=this;this.Ny.forEach(function(b){rRc(a.context).xA(b)});this.Ki(0==this.Ze()?1:6)};_.g.QYa=function(){return!1};_.g.cYa=function(){return!1};
var sRc=function(a){_.ui.call(this,"xa");this.id=a};_.K(sRc,_.ui);
var tRc=function(a,b,c,d){d=void 0===d?!1:d;_.Ei.call(this);this.request=a;this.context=b;this.nKa=d;this.je=null;this.items={};this.W=[];this.V=[];this.H=null;this.originalRequest=c||a;this.O=new Set};_.K(tRc,_.Ei);
tRc.prototype.$g=function(){var a=this;if(this.je)return this.je.promise;this.je=_.ci();for(var b={},c=_.m(this.request.qn().entries()),d=c.next();!d.done;b={Vqa:b.Vqa,dea:b.dea,Fqa:b.Fqa},d=c.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;b.Fqa=e;b.Vqa=TFc(SFc(d),this.request);b.dea=void 0;this.nKa&&(b.dea={nKa:!0});this.context.Um().then(function(f){return function(h){return h.Qe(f.Vqa,f.dea)}}(b)).then(function(f){return void uRc(a,f)},function(f){return function(h){var k=f.Fqa;h=
_.SB(h);5===h.Tg.Xs()||4===h.Tg.Ak()?(a.context.Rf().info("drive.ds.sync.query.ViewCacheFindByIdsRunner","Deleting "+k+" due to: "+h.message),a.V.push(k),vRc(a)):a.handleError(h)}}(b))}return this.je.promise};var uRc=function(a,b){b.jd().wd().forEach(function(c){_.kJ(c,1);a.W.push(c)});vRc(a)},vRc=function(a){a.H||(a.H=_.n.setTimeout(a.ha.bind(a),10))};
tRc.prototype.ha=function(){_.n.clearTimeout(this.H);this.H=null;wRc(this);xRc(this);this.O.size===this.request.qn().length?(this.context.Nf.zl([],1,this.originalRequest,!1),this.dispatchEvent("za"),this.je.resolve(this.items)):this.dispatchEvent("wa")};
var wRc=function(a){var b=a.W;a.W=[];b=a.context.kfa.L8(b);if(_.vI(_.JI(a.context.Nc))){var c=a.context.Nf.xm;_.Ja(b,function(d){var e=c.H(d.getId());e&&_.xK(d,e.wk())})}b.forEach(function(d){a.O.add(d.getId());a.items[d.getId()]=d});a.context.Nf.zl(b,1,a.originalRequest,!0)},xRc=function(a){var b=a.V;a.V=[];b.forEach(function(c){var d=_.lJ(_.cJ(new _.bJ,c));a.context.Nf.So([d]);a.O.add(c);a.items[c]=null;a.dispatchEvent(new sRc(c))})};
tRc.prototype.handleError=function(a){var b=new ML(a.Tg,_.bk(this.context.Nc.ig(),1,1));this.context.Nf.FB(this.request,b);this.dispatchEvent(b);this.je.reject(a)};
var yRc=function(a,b,c,d){dN.call(this,a);this.Mg=b;this.request=c;this.Hd={};this.H=null;this.O=_.qK(a.Nc)||new _.bwc;d&&this.zl(d,!0)};_.K(yRc,dN);
yRc.prototype.refresh=function(){var a=this;if(this.H)return this.H.promise;this.Fp=6;if(_.Q(this.request,5,!1))return this.dC(1),_.Zh();var b=this.bCa?!uBc(_.KK(this.Mg),this.request.O()):!1,c=[],d=this.context.bo();this.request.qn().forEach(function(h){if("root"!==h&&h!==d){var k=a.Hd[h],l=k&&k.getItem();if(k=!k||l&&1!==l.tv()||b)l=l&&l.Tm(),k=!(l&&_.P(l,2));k&&c.push(h)}});if(0===c.length)return this.zl([],!1),_.Zh();this.H=_.ci();this.H.promise.then(function(){a.H=null},function(){a.H=null});
var e=this.request.clone();_.BA(e,c);var f=new tRc(e,this.context,this.request);this.context.Mj().Se()?(this.Sc.listen(this.context.Mj(),"Bb",function(h){h.Se()||(a.Sc.Yc(a.context.Mj(),"Bb"),zRc(a,f,a.H))}),this.Fp=0<Object.values(this.Hd).length?1:2):(this.context.Ck().Se()&&(this.Fp=0<Object.values(this.Hd).length?1:2),zRc(this,f,this.H));return this.H.promise};var zRc=function(a,b,c){a.Sc.listen(b,"xa",function(d){a.Hd[d.id]=null});a.xA();b.$g().then(function(){c.resolve()},c.reject)};_.g=yRc.prototype;
_.g.Eha=function(a){var b=this;if(this.context.ym.equals(a,this.request,!0)){if(uBc(_.KK(this.Mg),a.O()))return!0;if(uBc(this.request.O(),a.O(),_.KK(this.Mg))){if(this.bCa)return!0;if(_.Q(this.O,5,!1))return this.request.qn().every(function(c){return(c=b.Hd[c])&&_.P(c.getItem(),31)})}}return!1};
_.g.fk=function(a){var b=new _.SK;_.YI(this.context.Nc)?b.Dc(HBc(Object.values(this.Hd))?6:this.Fp):b.Dc(this.Fp);b.Ki(this.Ze());oGc(b,_.Oa(this.Hd,function(c){return c?c.getItem():null}));pRc(this,a.O(),b.hq());return b};_.g.resize=function(){};_.g.ud=function(){return this.request};_.g.Ed=function(){return Object.values(this.Hd).length};_.g.Lu=function(a){var b=this.us(a.O),c=this.us(a.H);if(b||c)c?(this.Hd[a.id]=a.H,a.H.count++,b&&a.O.count--):(this.Hd[a.id]=null,a.O.count--);else return!1;return!0};
_.g.us=function(a){return!!a&&_.na(this.request.qn(),a.getId())};
var ARc=function(a,b){_.ui.call(this,a);this.changes=b};_.K(ARc,_.ui);
var BRc=function(a){var b=new PKc;if(a.dg()){var c=a.dg();b.H=!1;b.suggestionSessionId=c}a instanceof _.TK&&_.Wj(a,_.Sk,6).length?(a=_.Wj(a,_.Sk,6),b.H=!1,b.V=a):a instanceof _.xB&&(a.P5()||a.Yra()||a.$ja().length)&&(c=a.P5(),b.H=!1,b.W=c,c=a.Yra()||!1,b.H=!1,b.incompleteSearch=c,a=a.$ja(),b.H=!1,b.O=a);return b};
var eN=function(a,b,c,d,e){e=void 0===e?"":e;_.Ei.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.Rf();this.Ba=new Set;this.ma=c||!1;this.Ha=d||!1;this.Fa=this.PFa(b);this.ha=new PKc};_.K(eN,_.Ei);var CRc=function(a){return!a.va||""!==a.nextPageToken},ERc=function(a,b){a.W=b;return a.V.length<a.W&&!a.O&&CRc(a)?DRc(a):_.ji()};eN.prototype.$b=function(){return this.V.length};eN.prototype.H=function(){return this.V.slice()};
var DRc=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 _.ei;d.addCallback(function(f){return void FRc(a,c,f)});var e=_.YAc(_.ZAc(new _.ZI,a.Fa),c);b=_.WAc(new _.ktc,b);a.Ha&&_.w(b,10,!0);_.XAc(e,b);a.va=!0;a.O=!0;a.context.Um().then(function(f){return f.Qe(e)}).then(a.ta.bind(a,d),a.handleError.bind(a,d,b));return d};
eN.prototype.ta=function(a,b){this.O=!1;if(b instanceof _.TK)var c=b;else c=b.jd(),this.nextPageToken=b.$n()||"";this.ha=BRc(c);this.ha.vc()||this.dispatchEvent("ya");a.callback(c.wd())};
eN.prototype.handleError=function(a,b,c){c=_.SB(c);this.O=!1;if(5===c.Tg.Xs())a.callback([]);else{if(10===c.Tg.Xs()&&(_.WAc(b,Math.ceil(_.bk(b,1,1E3)/2-2E-15)),1<_.bk(b,1,1E3))){var d=_.XAc(_.YAc(_.ZAc(new _.ZI,this.Fa),this.nextPageToken),b);this.O=!0;this.context.Um().then(function(e){return e.Qe(d)}).then(this.ta.bind(this,a),this.handleError.bind(this,a,b));return}b=new ML(c.Tg,_.bk(this.context.Nc.ig(),1,1));this.ZLa(b);this.dispatchEvent(b);a.Jd(c)}};
var FRc=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: ")+(_.mxc(a.request)+" paginationToken: ")+b;b=_.pq(_.nq(_.eJ(_.dJ(new _.Dc,2),9),f));a.context.dispatchEvent(new _.Fc(new _.Ec(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())_.kJ(b.value,
a.ma?2:1);c=[];b=_.m(a.u1a(f));for(f=b.next();!f.done;f=b.next())f=f.value,a.V.push(f.getId()),f=_.cJ(new _.bJ,f.getId()).setItem(f),c.push(f);c.length&&a.dispatchEvent(new ARc("wa",c));if(a.V.length<a.W&&a.nextPageToken)return DRc(a);a.dispatchEvent("za")};_.g=eN.prototype;_.g.u1a=function(a){return a};_.g.ZLa=function(){};_.g.ud=function(){return this.request};_.g.PFa=function(a){a=a.clone();this.ma&&_.w(a,46,!0);return a};_.g.log=function(a){this.Ka.info("drive.ds.sync.query.QueryRunner",a)};
var GRc=function(a,b,c,d){eN.call(this,a,b,void 0,c,d)};_.K(GRc,eN);GRc.prototype.u1a=function(a){a=this.context.kfa.L8(a);this.context.Nf.zl(a,1,this.request,CRc(this));return a};GRc.prototype.ZLa=function(a){this.context.Nf.FB(this.request,a)};GRc.prototype.PFa=function(a){var b=a=eN.prototype.PFa.call(this,a),c=_.Ol(b);0===_.ge(b,33).length&&1===c.length&&(c=this.context.Nf.xm.H(c[0].Za()))&&(c=c.yc())&&(_.Rl(b,[c]),_.Sl(b,2));HRc(this,a);return a};
var HRc=function(a,b){if(_.Ol(b).some(function(d){return(d=a.context.Nf.xm.H(d.Za()))&&_.P(d,108)})){var c=b.te();c||(c=new _.Df,_.Ql(b,c));_.Ef(c,937)}};
var IRc=function(a,b,c,d){this.context=a;this.Mg=b;this.W=d;this.Ana=0;this.H=c},MRc=function(a,b){if(b){a.log("Processing potential rejoin for TD: "+b);var c=_.Sl(_.Ml(_.Rl(new _.of,[b]),_.KK(a.Mg)),1),d=_.Ef(new _.Df,306);_.Ql(c,d);JRc(a);c=new GRc(a.context,c);ERc(c,5E3).addCallback(a.V.bind(a,c));KRc(a);LRc(a,b)}},KRc=function(a){var b=_.Ra(a.H);b=b.filter(function(d){return d instanceof yRc});var c=new Set;b.forEach(function(d){d.ud().qn().forEach(function(e){a.W.get(e)||c.add(e)})});b=_.Ef(new _.Df,
310);a.log("Re-querying missing find-by-ids :"+c.size);a.lO([].concat(_.Bd(c)),b)},LRc=function(a,b){var c=[];(a.context.Nf.YFa.lQ[b||"subscribed"]||[]).forEach(function(d){_.Ma(a.H,function(e){_.ak(e.ud(),d)&&c.push(e)})});_.Ea(c);0<c.length&&(JRc(a),c.forEach(function(d){d=OL(a.context.ym,d.ud(),3);a.log("Refreshing "+b+" cache: "+d)}),_.di(_.ai(c.map(function(d){return d.refresh().Dg(_.Uf)})),a.O.bind(a)))};
IRc.prototype.lO=function(a,b,c,d,e){c=void 0===c?!1:c;a=a.filter(function(f){return!_.ye(f)});if(0===a.length)return _.Zh({});a=_.w(_.AA(_.BA(new _.zA,a),d||_.KK(this.Mg)),7,!0);_.CA(a,b);e&&e.length&&_.Lj(a,11,e);JRc(this);b=new tRc(a,this.context,void 0,c);return _.di(b.$g(),this.V.bind(this,b))};IRc.prototype.V=function(a){a.dispose();this.O()};var JRc=function(a){a.Ana++;a.context.Ks.setActive(!1)};IRc.prototype.O=function(){this.Ana--;0===this.Ana&&this.context.Ks.setActive(!0)};
IRc.prototype.log=function(a){this.context.Rf().info("drive.ds.sync.cache.CacheRefresher",a)};
var NRc=function(a,b,c){_.O.call(this);this.context=a;this.H=b;this.request=c;this.O=this.je=null;a=new _.Df;_.Ff(a,!1);_.Ef(a,305);_.Ql(this.request,a);this.Sc=new _.Ze(this);this.Ma(this.Sc)};_.K(NRc,_.O);
NRc.prototype.$g=function(){if(!this.je){this.je=_.ci();if(_.Q(this.request,48,!1))return this.H.Ki(9),this.je.resolve(this.H),this.je.promise;this.O=new eN(this.context,this.request,!0);this.Sc.listen(this.O,"wa",this.W);this.Sc.listen(this.O,"za",this.V.bind(this));this.Sc.listen(this.O,"Aa",this.je.reject.bind(this.je));ERc(this.O,this.request.Ei())}return this.je.promise};NRc.prototype.W=function(a){a=_.m(a.changes);for(var b=a.next();!b.done;b=a.next())b=b.value.getItem(),this.H.update(qM(new cM(b)))};
NRc.prototype.V=function(){this.H instanceof sM?this.H.H=!CRc(this.O):CRc(this.O)&&rM(this.H,!1);this.H.Ki(5);this.je.resolve(this.H)};
var PRc=function(a,b){_.ui.call(this,ORc);this.cache=a;this.changes=b};_.K(PRc,_.ui);var ORc="Nb";
var QRc=function(a,b){return new _.Yh(function(c,d){b.then(function(e){for(var f=new Map,h=_.m(a.sy()),k=h.next();!k.done;k=h.next()){k=k.value;var l=k.getId();OBc(k.getItem());f.set(l,ZHc(new cM(k.getItem()),k.H))}h=_.m(e.items);for(k=h.next();!k.done;k=h.next())k=k.value,l=k.Ac(),l=f.get(l)||null,k.Dk()?l&&a.update(new MJc(l.getId(),l,null)):(k=k.getItem(),OBc(k),a.update(NJc(l,ZHc(new cM(k),null===l||void 0===l?void 0:l.H))));a.ZW();c(e.aLb)},d)})};
var RRc=function(a,b){_.O.call(this);this.context=a;this.Mg=b};_.K(RRc,_.O);
RRc.prototype.$g=function(a){this.log("Running initial view populator (IVDP).");try{var b=new bM(JSON.parse(a))}catch(l){this.handleError("Error parsing initial view dump.",_.rJ(l));return}a=_.JI(this.context.Nc);if(!_.vI(a)){var c=b.xf();if(c){var d=c.getUser();d&&d.getId()===_.D(a,6,"")&&iRc(this.context.QP,c,4)}(a=b.bo())&&this.context.Eu(a,6)}var e=_.y(b,3)||void 0;e&&SRc(this.context,e,!0);if((a=_.Wj(b,_.pp,9))&&a.length){c=(c=this.context.Nc.ig())&&_.ge(c,30)||[];var f=new Set(c);a.forEach(function(l){(l=
(l=l.getKey())&&_.qp(l))&&f.add(l)});this.context.fE.aQ(a,4,[].concat(_.Bd(f.values())))}a=b.wd();a.forEach(function(l){_.yuc(l);_.kJ(l,6)});if(c=_.Wj(b,aM,5)[0])if(b=this.context.ym,BBc(_.KK(this.Mg),c.getQuery().O(),_.DK(this.context.Nc)))if((d=c.getQuery().wc())&&4===d.getType()&&!_.Iqc())this.handleError("Invalid initial view data, natural sort unsupported");else{if(0<a.length){d=fM(b,c.getQuery());b=_.y(c,2)||void 0;d.vi(b);b=a.map(function(l){return new cM(l,void 0,1,e)});var h=_.B(c,_.jl,3);
if(h&&_.y(c,2)){var k=b[b.length-1];_.kJ(h,6);if(!_.ak(h,k.getItem())){this.handleError("Invalid last item in initial view data.");return}}c=(h=_.qK(this.context.Nc))&&_.Q(h,2,!1)&&c.$n()||"";k=new sM(this.context.pt,this.context.Av,this.context.ym,d,k,c);k.Ki(4);d=c=0;b=_.m(b);for(h=b.next();!h.done;h=b.next())k.update(qM(h.value))?c++:d++;TRc(this.context.Nf,k);b=k.ud();this.log("Imported "+c+" initial view items (IVDP) successfully ("+d+" failed) into the cache hint corpus cache. Query: "+k.NM());
k=new _.ZI;_.ZAc(k,b);k=_.wyc(this.context.aB,k,"IVDP");_.xyc(k,a);pM(this.context.Sj,"W6J7De")}}else this.handleError("Invalid initial view data, fields: "+CIc(b,c.getQuery().O()));else this.handleError("No initial query found")};RRc.prototype.handleError=function(a,b){var c=b?void 0:_.pq(_.eJ(_.dJ(new _.Dc,2),6));b=new _.Ec(a,c,b);this.context.oJ(b.Tg);this.log("Initial view dump population failed. Message: "+a);pM(this.context.Sj,"DEJoH")};
RRc.prototype.log=function(a){this.context.Rf().info("drive.ds.sync.cache.InitialViewPopulator",a)};
var URc=function(a){_.Ei.call(this);this.context=a;this.W="drive.ds.sync.cache.CorpusCachePopulator";this.V=0;this.O=new uM(a.pt,a.Av,a.Sj,function(){return a.bo()});this.H=this.context.Nc;this.ta=new QJc(a.pt,a.Av)};_.K(URc,_.Ei);
var VRc=function(a,b){var c=_.bk(a.H,31,2E4);b="number"===typeof _.y(b,3)?_.y(b,3):c+1;b>c?(rM(a.O,!1),c="partialCorpus",a.log("Too many subscribed items at "+b+"; skipping subscribed cache.")):(c="fullCorpus",a.log("Caching all subscribed items."));a.context.aB.Jb("CachedCorpusType",c)};URc.prototype.log=function(a,b){this.context.Rf().log(this.W,a,b||"info")};var WRc=function(a,b){0===a.V&&(a.V=b)};
var XRc=function(a,b){var c;if(c=!!b&&!!b.jg())a=_.P(a,4),c=null==a||!!_.P(b.jg(),7)==a;return c};
var YRc=function(a,b){_.Ei.call(this);this.context=a;this.request=b;this.V=[];this.nextPageToken="";this.H=this.O=!1};_.K(YRc,_.Ei);YRc.prototype.$g=function(){return this.H||this.O&&""===this.nextPageToken?_.ji():ZRc(this)};YRc.prototype.$b=function(){return this.V.length};
var ZRc=function(a){a.O=!0;a.H=!0;var b=eFc(fFc(new _.kK,a.request),a.nextPageToken),c=_.wyc(a.context.aB,b);return _.ki(a.context.Um().then(function(d){return d.Qe(b)}).then(function(d){var e=d.jd().wd();a.nextPageToken=d.$n()||"";$Rc(a,c,e)},function(d){return void a.handleError(d)}))},$Rc=function(a,b,c){_.xyc(b,c);for(b=0;b<c.length;b++)_.kJ(c[b],1);a.context.Nf.zl(c,1,a.request,!a.O||""!==a.nextPageToken);var d=[];_.Ja(c,function(e){this.V.push(e.getId());e=_.cJ(new _.bJ,e.getId()).setItem(e);
d.push(e)},a);d.length&&a.dispatchEvent(new ARc("wa",d));a.nextPageToken?ZRc(a):(a.H=!1,a.dispatchEvent("za"))};YRc.prototype.handleError=function(a){this.H=!1;a=new ML(_.fJ(a),_.bk(this.context.Nc.ig(),1,1));this.dispatchEvent(a)};YRc.prototype.ud=function(){return this.request};
var aSc=function(a){this.H=_.Jqc(a,{numeric:!0})};aSc.prototype.sort=function(a){_.Ha(a,this.compare.bind(this))};aSc.prototype.compare=function(a,b){a=a.getItem();b=b.getItem();var c=this.H(a.getTitle(),b.getTitle());return 0===c?_.Fa(a.getId(),b.getId()):c};
var bSc=function(a,b,c,d){d=void 0===d?!1:d;dN.call(this,a);this.Mg=b;this.Hd=[];this.je=null;this.request=c.clone();this.Hv=new YRc(a,this.request);this.PPb=new aSc(FL(_.JI(a.Nc)));this.mCa=null!=_.P(this.request,6);_.Re(this,this.tmb,this);d&&(this.je=_.ci(),this.je.resolve())};_.K(bSc,dN);_.g=bSc.prototype;_.g.refresh=function(){3===this.Fp&&(this.Fp=6,this.je=null);return this.kca()};_.g.isInitialized=function(){return!!this.je};
_.g.kca=function(){var a=this;if(this.isInitialized())return this.je.promise;this.je=_.ci();this.context.Mj().Se()?this.Sc.listen(this.context.Mj(),"Bb",function(b){b.Se()||(a.Sc.Yc(a.context.Mj(),"Bb"),a.xA(),a.Hv.$g().mg(a.je.resolve,a.je.reject,a.je))}):this.context.Ck().Se()?this.Sc.$c(this.context.Ck(),[_.rC.CL,_.rC.iU],function(){a.xA();a.Hv.$g().mg(a.je.resolve,a.je.reject,a.je)}):(this.xA(),this.Hv.$g().mg(this.je.resolve,this.je.reject,this.je));return this.je.promise};_.g.resize=function(){};
_.g.ud=function(){return this.request};_.g.sy=function(){return this.Hd};_.g.Eha=function(a){return this.context.ym.equals(a,this.request)};_.g.fk=function(a){a=a.Ei();this.PPb.sort(this.Hd);var b=rCc(_.za(this.Hd,0,Math.min(a,this.Hd.length)));pRc(this,IFc(this.Mg),b);var c=new _.xB;c.Vw(b);c.Dc(this.dwa(a));c.Ki(this.Ze());FEc(c,a<this.Hd.length||!(this.context.Mj().Se()||this.context.Ck().Se())&&1!==this.Fp);return c};
_.g.dwa=function(a){return 1===this.Fp||a<=this.Hd.length?1:this.context.Mj().Se()||this.context.Ck().Se()?0<this.Hd.length?1:2:6};_.g.zl=function(a,b){this.isInitialized()&&dN.prototype.zl.call(this,a,b)};_.g.Lu=function(a,b){b=void 0===b?!1:b;if(!this.isInitialized())return!1;var c=a.id,d=_.la(this.Hd,function(h){return h.getId()===c}),e=!!d;b=this.us(a.H,b);var f=a.O;d&&(f=d,e=!0);if(e||b)e?b?this.WJa(f,a.H):this.kJ(f):this.qR(a.H);else return!1;return!0};_.g.qR=function(a){this.Hd.push(a);a.count++};
_.g.kJ=function(a){_.ua(this.Hd,a);a.count--};_.g.oya=function(a){return _.ma(this.Hd,a)};_.g.WJa=function(a,b){this.Hd[this.oya(a)]=b;b.count++;a.count--};_.g.us=function(a,b){b=void 0===b?!1:b;if(!a)return!1;if(this.mCa&&null!=_.P(this.request,6)){if(b)return!0;var c=a.getId();b=!!this.Hd.find(function(d){return c===d.getId()},this);a=dM(a.getItem())&&XRc(this.request,a.getItem());return b&&a}return dM(a.getItem())&&XRc(this.request,a.getItem())};_.g.tmb=function(){this.Hd.forEach(function(a){a.count--})};
_.g.QYa=function(){return!0};_.g.getType=function(){return"TeamDriveViewCache"};_.g.Ed=function(){return this.Hd.length};_.g.ZW=function(){this.Fp=1};
var cSc=function(a){this.H=a},dSc=function(a,b,c,d,e){if(0===e||null===b){var f=new zPc;_.w(f,2,b);_.w(f,1,d);return _.Zh(f)}var h=YIc();_.w(h,2,b);c&&_.w(h,3,c);return a.H.then(function(k){return k.Qe(h)}).then(function(k){var l,p=null!==(l=k.yy())&&void 0!==l?l:null;k=d+_.y(k,1);return dSc(a,p,c,k,e-1)})};
var eSc=function(a,b){URc.call(this,a);this.Mg=b;this.ha=void 0;this.ka=null;this.ma=!1;this.ED=void 0;this.W="drive.ds.sync.cache.LocalDumpPopulator"};_.K(eSc,URc);eSc.prototype.handleError=function(){this.log("Local dump population failed.");pM(this.context.Sj,"mrK8ic")};
eSc.prototype.$g=function(){var a=this;if(this.ka)return this.ka;if(this.context.sQ){var b=new _.ei;this.ka=b;this.initialize().then(function(){var c=_.Wj(_.GL(a.H),EL,11);c=c[0]&&c[0].getKey()||"";return fSc(a,a.context.sQ,c,4)}).then(null,function(c){if(_.Q(a.H,8,!0))return gSc(a,c);throw c;}).then(function(){_.YI(a.H)||a.context.Nf.xq.H.clear();pM(a.context.Sj,"zaOY7");b.callback()},function(c){WRc(a,8);a.handleError();b.Jd(c)});return b}this.handleError();return _.ni(Error("hg"))};
eSc.prototype.initialize=function(){var a=this;return _.Zh(this.context.sQ.initialize()).then(function(){if(!_.EK(a.H)){var b=_.bk(_.GL(a.H),7,432E6);b&&(a.ha=Date.now()-b);return new _.Yh(function(c,d){dNc(a.context.wD).then(function(e){e?c():d(Error("ig"))})})}})};
var fSc=function(a,b,c,d){return _.$f(a,function f(){var h=this,k;return _.Qf(f,function(l){return 1==l.H?(k=h.ha,hSc(h,b,c,k),iSc(h,b,c,k),jSc(h,b,c,k),_.Kf(l,kSc(h,b,c,k),2)):_.Kf(l,Promise.all([lSc(h,b,c,d,k),mSc(h,b,c,d,k),nSc(h,b,c,d,k),oSc(h,b,c,d,k)]),0)})})},hSc=function(a,b,c,d){var e=function(){return a.log("Failed to load account from storage.")};BM(b,c,0,void 0,d,a.ED).then(function(f){f[0]?iRc(a.context.QP,f[0],a.Ze(),_.EK(a.H)):e()},function(){return e()})},iSc=function(a,b,c,d){var e=
function(){return a.log("Failed to load apps from storage.")};BM(b,c,1,void 0,d,a.ED).then(function(f){f[0]?a.context.JZ.aQ(f[0],a.Ze(),_.EK(a.H)):e()},function(){return e()})},jSc=function(a,b,c,d){var e=function(){return a.log("Failed to load user prefs from storage.")};BM(b,c,5,void 0,d,a.ED).then(function(f){if(f[0]){f=f[0];var h=_.Wj(f,_.pp,1);h.length&&a.context.fE.aQ(h,a.Ze(),_.ge(f,2),_.EK(a.H))}else e()},function(){return e()})},lSc=function(a,b,c,d,e){var f=new _.Hn;BM(b,c,3,1,e,a.ED).then(function(h){return pSc(a,
h[0])}).then(function(h){if(h){b!==a.context.sQ||BBc(_.ge(h,12),_.KK(a.Mg),_.DK(a.H))||(a.log("Disabling dump updater due to inconsistent fields.","warning"),a.context.Ks.gS());var k=_.y(h,3);if(!k||0>k)throw Error("lg");a.context.Eu(h.bo(),d);k=_.y(h,3);"number"===typeof k&&SRc(a.context,Number(k));_.EK(a.H)&&(a.log("Coldstart: Firing INITIAL_CHANGES_PROCESSED."),a.context.vDa());a.zl(h,d);f.resolve()}else f.reject("Failed to load cache hints from storage.")},f.reject,f);return f.promise},mSc=function(a,
b,c,d,e){return qSc(a,2,b,c,d,e).then(null,function(){var f;return(null===(f=_.qK(a.H))||void 0===f?0:_.Q(f,17,!1))?qSc(a,5,b,c,d,e):Promise.reject(Error("jg"))})},qSc=function(a,b,c,d,e,f){var h=new _.Hn;BM(c,d,3,b,f,a.ED).then(function(k){k[0]?(a.zl(k[0],e),h.resolve()):h.reject(Error("kg"))},function(k){return h.reject(k)});return h.promise},nSc=function(a,b,c,d,e){var f=new _.Hn;BM(b,c,3,4,e,a.ED).then(function(h){h.forEach(function(k){a.zl(k,d)});f.resolve()},function(h){return f.reject(h)});
return f.promise},oSc=function(a,b,c,d,e){var f=new _.Hn;BM(b,c,3,3,e,a.ED).then(function(h){h.length?h.forEach(function(k){a.zl(k,d)}):pM(a.context.Sj,"rVezo");f.resolve()},function(h){return f.reject(h)});return f.promise},kSc=function(a,b,c,d){var e=new _.Hn;BM(b,c,6,void 0,d,a.ED).then(function(f){f=_.m(f);for(var h=f.next();!h.done;h=f.next())h=h.value,_.Wj(h,mM,1).length&&(a.log("Importing "+_.Wj(h,mM,1).length+" people into the PeopleCache."),h=_.Wj(h,mM,1),lKc(a.context.Nf.xq.H,h,2));e.resolve()},
function(f){return e.reject(f)});return e.promise},pSc=function(a,b){var c=_.y(b,3);if(c&&!_.EK(a.H)){var d=new cSc(a.context.Um()),e=_.bk(_.GL(a.H),13,5);return dSc(d,c,null,0,e).then(function(f){return _.Dj(f,2)?(a.log("Encrypted dump too stale."),a.context.tk().O(106007),WRc(a,9),null):b},function(){return b})}return _.Zh(b)},gSc=function(a,b){var c=CM(a.context.JL.ij()),d=_.Wj(_.GL(a.H),EL,11).filter(function(e){return e.ht()});return WMc(_.CK(_.JI(a.H)),_.DK(a.H),_.bk(_.GL(a.H),10,0)||0,_.KK(a.Mg),
a.ha||0,d.map(function(e){return _.y(e,1)}),c).then(function(e){if(e){var f=d.find(function(l){return e.V===_.y(l,1)}),h=new DM(_.Zh(e),a.context.Rf(),null,!0),k=new ULc(h,a.H,function(l){a.context.oJ(l)});k.initialize();a.ma=!0;return fSc(a,k,f?f.getKey():null,8).then(function(){return h.getMetadata([aNc])}).then(function(l){l[0]?(l=l[0].Za(),l=a.context.wD.set(aNc,l)):l=Promise.resolve();return l}).then(function(){h.close()})}return _.$h(new _.Ec("No compatible dumps to forklift were found.",null,
b))})},vSc=function(a,b,c){var d;switch(b.Zn()){case 1:return rSc(a,b,c);case 2:return sSc(a,b,a.O);case 5:return(null===(d=_.qK(a.H))||void 0===d?0:_.Q(d,17,!1))?sSc(a,b,a.ta):null;case 3:return tSc(a,b);case 4:return uSc(a,b);default:return null}},rSc=function(a,b,c){var d=[];_.Wj(b,aM,5).forEach(function(e){var f=void 0,h=_.B(e,_.jl,3);h&&(_.yuc(h),_.P(a.H,67)&&pBc(h,EBc),_.kJ(h,c),f=new cM(h));var k=e.getQuery();if(!_.Q(k,48,!1)||_.Wj(a.H,_.of,44).some(function(l){if(!_.Q(l,48,!1))return!1;l=
fM(a.context.ym,l,!0);return _.ak(l,k)}))e=new sM(a.context.pt,a.context.Av,a.context.ym,k,f),e.Ki(a.Ze()),d.push({cache:e,changes:AM(a.context.Gz,null)})});return d},sSc=function(a,b,c){b=_.B(b,ACc,11);if(!b)throw Error("mg");VRc(a,b);return c.XE?(c.Ki(a.Ze()),[{cache:c,changes:AM(a.context.Gz,null)}]):[]},uSc=function(a,b){return _.Wj(b,aM,5).map(function(c){c=new bSc(a.context,a.Mg,_.B(c,_.xI,5),!0);c.Ki(a.Ze());return{cache:c,changes:AM(a.context.Gz,null)}})},tSc=function(a,b){var c=_.ge(_.Wj(b,
aM,5)[0].getQuery(),33)[0],d=_.y(b,3)||void 0;b=AM(a.context.Gz,c);fN(a.context).addCallback(function(f){f.Kua(c,d)});var e=new wM(a.context.pt,a.context.Av,c);e.Ki(a.Ze());return[{cache:e,changes:b}]};
eSc.prototype.zl=function(a,b){var c=this,d=vSc(this,a,b);if(d&&0!==d.length){for(var e=_.m(a.wd()),f=e.next();!f.done;f=e.next()){var h=f.value;_.yuc(h);_.P(this.H,67)&&pBc(h,EBc);_.kJ(h,b);_.YI(this.H)||this.context.Nf.xq.H.vc()||HKc(this.context.Nf.xq,[h]);f=new cM(h);_.ge(a,14).includes(h.getId())&&ZHc(f,!0);for(h=0;h<d.length;h++)d[h].cache.update(qM(f))}d.forEach(function(k){var l=k.cache;c.dispatchEvent(new PRc(l,k.changes));c.log("Imported "+l.Ed()+" items into the "+l.getType());var p=null;
l instanceof wM&&(p=l.yc());c.context.R$.promise.then(function(){qLc(c.context.Gz,p)})});1===a.Zn()&&pM(this.context.Sj,"ZA9qG")}else this.log("Ignoring corpus cache for "+a.Zn()+".")};eSc.prototype.Ze=function(){return this.ma?7:3};
var wSc=function(a){_.O.call(this);this.context=a};_.K(wSc,_.O);wSc.prototype.$g=function(a){try{xSc(this,new qPc(JSON.parse(a)))}catch(b){this.handleError("Error parsing prefetched request.",b)}};
var xSc=function(a,b){a.log("Running prefetched request populator for "+b.getKey()+".");switch(b.getKey()){case 1:case 3:ySc(a,b);break;case 4:zSc(a,b);break;case 6:ASc(a,b);break;case 2:BSc(a,b);break;case 7:CSc(a,b);break;case 5:_.Wj(_.ek(b,sPc,7,uPc),qPc,1).forEach(function(c){xSc(a,c)});break;default:a.handleError("Unsupported prefetched request.")}},ySc=function(a,b){var c=_.ek(b,_.of,2,tPc);b=JSON.parse(_.dk(b,3,uPc)||"{}");var d=new _.ZI;_.ZAc(d,c);b=a.context.ZQ().osa.AE(d,{headers:{},text:"",
json:b}).jd();DSc(a,c,b)},ASc=function(a,b){DSc(a,_.ek(b,_.of,2,tPc),_.ek(b,_.xB,9,uPc))},DSc=function(a,b,c){for(var d=c.wd(),e=_.m(d),f=e.next();!f.done;f=e.next())_.kJ(f.value,7);c=BRc(c);a=a.context.Nf;b=fM(a.context.ym,b);e=gN(a,b);a.log("Initializing cache with "+d.length+" items for key '"+e+"'");f=a.O[e];f||(f=new hN(a.context,b),f.Ki(2),ESc(a,e,f));c.vc()||f.nsa(c);a.zl(d,1,b)},BSc=function(a,b){b=_.ek(b,_.iA,5,uPc);var c=a.context.Nc.ig();c=c&&_.ge(c,30)||[];var d=new Set(c);_.Wj(b,_.pp,
3).forEach(function(e){(e=(e=e.getKey())&&_.qp(e))&&d.add(e)});a.context.fE.aQ(_.Wj(b,_.pp,3),2,[].concat(_.Bd(d.values())))},zSc=function(a,b){a.context.lfa.s2(_.ek(b,nM,8,uPc).xl(),_.ek(b,_.mA,6,tPc),2,!1)},CSc=function(a,b){var c=_.ek(b,_.kA,10,tPc);b=JSON.parse(_.dk(b,3,uPc)||"{}");b=a.context.ZQ().osa.AE(c,{headers:{},text:"",json:b});QQc(a.context).s2([b],c,2,!1)};
wSc.prototype.handleError=function(a,b){var c=b?void 0:_.pq(_.eJ(_.dJ(new _.Dc,2),6));this.context.dispatchEvent(new _.Fc(new _.Ec(a,c,b)));this.log("Prefetched request population failed.")};wSc.prototype.log=function(a){this.context.Rf().info("drive.ds.sync.cache.PrefetchedRequestPopulator",a)};
var iN=function(a){URc.call(this,a);this.ha=[];this.ka=[];this.W="drive.ds.sync.cache.SdkCachePopulator";this.va=Math.ceil(1.1*_.bk(a.Nc,31,2E4))};_.K(iN,URc);iN.prototype.$g=function(){if(!_.Q(this.H,45,!1))return WRc(this,5),this.handleError(),_.ni(Error("ng"));this.log("Drive SDK cache population initiated.");return this.context.oVa().addCallback(this.Fa,this).addCallback(this.Ba,this).Sg(this.handleError,this)};
iN.prototype.Fa=function(){var a=this;pM(this.context.Sj,"L6uQWd");fN(this.context).addCallback(function(b){b.Ada()});if(_.Q(this.H,46,!1))return zCc(this.context.Um(),this.context.Rf()).addCallback(function(b){if(!b)throw WRc(a,4),Error("og");VRc(a,b)});this.log("Subscribed corpus cache population disabled.");rM(this.O,!1);return _.ji()};
iN.prototype.Ba=function(){this.context.vDa();var a=new _.ei;if(this.O.XE){this.log("Starting subscribed corpus cache population.");var b=this.O.ud();b.vi(this.va);this.O.Ki(5);FSc(this,this.O,b)}b=_.Wj(this.H,_.of,44);b=_.m(b);for(var c=b.next();!c.done;c=b.next())c=new sM(this.context.pt,this.context.Av,this.context.ym,c.value),c.Ki(5),FSc(this,c,c.ud()),c=OL(this.context.ym,c.ud()),this.log("Starting "+c+" cache hint corpus cache population.");_.ai(this.ka).then(a.callback,this.ma.bind(this,a),
a);return a};var FSc=function(a,b,c){var d=AM(a.context.Gz,null);b=new NRc(a.context,b,c);a.ha.push(b);b=_.di(b.$g().then(function(e){!e.XE&&e instanceof uM&&(a.log("Subscribed corpus cache disabled, too many backfill items."),a.context.aB.Jb("CachedCorpusType","errorUncachedCorpus"));a.dispatchEvent(new PRc(e,d))}),function(){a.context.R$.promise.then(function(){qLc(a.context.Gz,null)})});a.ka.push(b)};
iN.prototype.ma=function(a,b){for(var c=_.m(this.ha),d=c.next();!d.done;d=c.next())d.value.dispose();WRc(this,7);c=b;b instanceof ML?c=_.rJ(b.error):_.XI(b)||(c=Error("pg`"+b));a.Jd(c)};iN.prototype.handleError=function(){this.log("Drive SDK cache population failed.");pM(this.context.Sj,"Gv4zef")};iN.prototype.Ze=function(){return 5};
var GSc=function(a,b){_.O.call(this);this.context=a;this.V=b;this.Sc=new _.Ze(this);this.impression=null;this.W=[];this.Ma(this.Sc);this.H=new eSc(this.context,this.context.Mg);this.Ma(this.H);this.O=new iN(this.context);this.Ma(this.O)};_.K(GSc,_.O);
GSc.prototype.$g=function(){var a=this;this.log("Corpus cache population initiated.");this.impression=this.context.tk().H(106002);_.n._DRIVE_dsp&&HSc(this);_.n._DRIVE_dspc=function(c){HSc(a,c)};AM(this.context.Gz,null);_.Q(this.context.Nc,24,!1)&&!_.EK(this.context.Nc)&&(_.n._DRIVE_ivd||null===_.n._DRIVE_ivd?ISc(this):_.n._DRIVE_ivdc=function(){ISc(a)});var b=this.context.sQ;if(b)return this.Sc.listen(this.H,ORc,this.ha),this.Sc.listen(this.O,ORc,this.ha),(!_.Q(this.context.Nc,10,!1)&&_.P(this.context.Nc,
69)?this.context.wX.promise:Promise.resolve()).then(function(){return b.initialize().then(function(){a.log("Dump storage initialized.");a.impression&&(a.H.ED=a.impression);return a.H.$g().mg(function(){return JSc(a,a.H.Ze())},function(){KSc(a,a.H.Ze(),a.H.V);return _.EK(a.context.Nc)?a.handleError(Error("qg")):a.O.$g().then(function(){return JSc(a,a.O.Ze())},function(c){KSc(a,a.O.Ze(),a.O.V);return a.handleError(c)})})},function(c){a.handleError(_.XI(c)?c:void 0,!0)})});this.handleError(void 0,!0)};
var HSc=function(a,b){var c=new wSc(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.$g(d)});c.dispose()};GSc.prototype.ha=function(a){var b=a.cache;this.log("Cache populated: "+b.getType());this.W.push(LSc(this,b,a.changes))};
var JSc=function(a,b){qLc(a.context.Gz,null);pM(a.context.Sj,"L6uQWd");fN(a.context).addCallback(function(c){c.Ada()});return Promise.all(a.W).then(function(){MSc(a,b)})},MSc=function(a,b){if(!a.isDisposed()){_.EK(a.context.Nc)||NSc(a.V,_.Wj(a.context.Nc,_.of,44));a.log("Corpus cache population complete.");var c=a.context.Sj;c.H("mrK8ic")?c.H("Gv4zef")||a.context.Ks.wDa():dNc(a.context.wD).then(function(d){d&&a.context.Ks.wDa()},function(){});pM(c,"rVezo");pM(c,"BNEDtc");a.impression&&(b=_.RK(_.ztc,
b),CFc(KFc(a.impression),b),BFc(KFc(a.impression),!0),DFc(KFc(a.impression),pIc(a.V.xm)),EFc(KFc(a.impression),a.context.Nf.Zn()),a.impression.Aj());a.dispose()}},KSc=function(a,b,c){a.impression&&(b=_.RK(_.ztc,b),CFc(KFc(a.impression),b),a=KFc(a.impression),_.Nj(a,3,c,void 0))};
GSc.prototype.handleError=function(a,b){b=void 0===b?!1:b;qLc(this.context.Gz,null);var c=this.context.Sj;pM(c,"L6uQWd");fN(this.context).addCallback(function(d){d.Ada()});pM(c,"mrK8ic");pM(c,"Gv4zef");pM(c,"rVezo");pM(c,"BNEDtc");this.context.aB.Jb("CachedCorpusType","partialCorpus");c=!!this.H.context.sQ||_.Q(this.O.H,45,!1);a&&!b&&c?(c=void 0,b="Corpus population failed: ",_.XI(a)?(c=a,b+=c.message):b+=String(a),this.log(b),a=new _.Ec(b,void 0,c),c=a.Tg,_.dJ(c,_.EK(this.context.Nc)?3:1),_.eJ(c,
6),_.nq(c,b),_.pq(c),this.context.dispatchEvent(new _.Fc(a))):this.log("Corpus population skipped");this.impression&&(BFc(KFc(this.impression),!1),this.impression.Aj());this.dispose()};var LSc=function(a,b,c){return QRc(b,c).then(function(d){d.some(function(e){return b instanceof wM&&e.Dk()&&e.Ac()===b.yc()})||TRc(a.V,b,d)},function(){return a.handleError(Error("rg"))})},ISc=function(a){if(_.n._DRIVE_ivd){var b=new RRc(a.context,a.context.Mg);a.Ma(b);b.$g(_.n._DRIVE_ivd)}else pM(a.context.Sj,"DEJoH")};
GSc.prototype.log=function(a){this.context.Rf().info("drive.ds.sync.cache.CorpusCachePopulatorManager",a)};
var OSc=function(){tM.apply(this,arguments)};_.K(OSc,tM);_.g=OSc.prototype;_.g.us=function(a){var b;if(b=tM.prototype.us.call(this,a))a=a&&a.getItem()&&a.getItem().Tm(),b=!(!a||!_.P(a,3));return b};_.g.ud=function(){};_.g.NM=function(){return null};_.g.getType=function(){};_.g.aH=function(){};
var PSc=function(a,b){this.context=a;this.H=b;this.lQ={}},RSc=function(a,b){if(!_.PJ(b)){var c=_.ge(b,33);if(1===c.length)QSc(a,c[0],b);else{c=_.Ol(b);if(1===c.length&&!_.Q(c[0],2,!1)){var d=c[0].Za();c=a.H.get(d);if(!c){c=a.context.Nf.wI;var e=_.Ef(new _.Df,310);c.lO([d],e).then(function(f){if((f=f[d])&&f.yc()){var h=f.getCapabilities();h&&_.Fe(h)&&(f=f.yc(),QSc(a,f,b))}else QSc(a,null,b)});return}if(c.getItem().yc()&&_.Fe(c.getItem().getCapabilities())){c=c.getItem().yc();QSc(a,c,b);return}}QSc(a,
null,b)}}},QSc=function(a,b,c){if(b){var d=a.H.get(b);if(d&&!dM(d.getItem()))return}d=b||"subscribed";a.lQ[d]||(a.lQ[d]=[]);a.lQ[d].push(c);b&&(fN(a.context).addCallback(function(e){e.Kua(b)}),SSc(a.context.aJa,b))},TSc=function(a,b){if(!_.PJ(b)){var c={},d;for(d in a.lQ){c.tT=d;for(var e=0;e<a.lQ[c.tT].length;e++)if(_.ak(b,a.lQ[c.tT][e])){_.ta(a.lQ[c.tT],e);"subscribed"!==c.tT&&fN(a.context).addCallback(function(f){return function(h){h.CGa(f.tT,!1)}}(c));return}c={tT:c.tT}}}};
var USc=function(){this.H=new Map;this.O=[];this.V=[]};
USc.prototype.update=function(a){var b=this,c=a.id,d=a.O;a=a.H;var e=(d||a).getItem();wL(e)&&(a?(e=a.getItem().Gf())&&_.y(e,1)&&(1===_.oe(e)||3===_.oe(e))&&(e=_.y(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&&!_.ak(a.getItem(),d.getItem()))&&this.H.get(c).forEach(function(f){b.V.push(f)})};
var VSc=function(a){return a.V.filter(function(b){return!a.O.includes(b)})},WSc=function(a){a.O=[];a.V=[]};
var XSc=function(a,b){uLc.call(this,a.clone(),b.Um(),b.Nc,b.Rf());this.context=b};_.K(XSc,uLc);XSc.prototype.W=function(a){var b=new Map;a.qn().forEach(function(c){var d=_.K8b(a.clone(),[c]);b.set(c,d)});return b};XSc.prototype.V=function(a){a=a.wd()[0];this.context.Nf.zl([a],1,void 0,!0,this.request.O())};XSc.prototype.ha=function(a){this.context.Nf.zl([],1,a,!1,this.request.O())};XSc.prototype.ka=function(a){a=_.lJ(_.cJ(new _.bJ,a));this.context.Nf.So([a])};
var YSc=function(a,b,c,d){dN.call(this,a);this.Mg=b;this.request=c;this.Hd={};d&&this.zl(d,!0)};_.K(YSc,dN);_.g=YSc.prototype;
_.g.refresh=function(){var a=this;this.Fp=6;var b=gM(this.context.Nc)!==gM(this.context.Nc,this.request.O()),c=[];this.request.qn().forEach(function(h){var k=a.Hd[h];k&&k.getItem().jg()&&!b||c.push(h)});if(0===c.length)return this.zl([],!1),_.Zh();var d=this.request.clone();_.K8b(d,c);var e=new XSc(d,this.context),f=_.ci();this.context.Mj().Se()?(this.Sc.listen(this.context.Mj(),"Bb",function(h){h.Se()||(a.Sc.Yc(a.context.Mj(),"Bb"),a.xA(),e.$g().then(f.resolve,f.reject,f))}),this.Fp=0<_.Qa(this.Hd)?
1:2):(this.context.Ck().Se()&&(this.Fp=0<_.Qa(this.Hd)?1:2),this.xA(),e.$g().then(f.resolve,f.reject,f));return f.promise};_.g.Eha=function(a){return this.context.ym.equals(a,this.request)&&uBc(_.KK(this.Mg),a.O())};_.g.fk=function(a){var b=new _.SK;b.Dc(this.Fp);b.Ki(this.Ze());oGc(b,_.Oa(this.Hd,function(c){return c?c.getItem():null}));pRc(this,a.O(),b.hq());return b};_.g.resize=function(){};_.g.ud=function(){return this.request};_.g.Ed=function(){return _.Qa(this.Hd)};
_.g.Lu=function(a){var b=this.us(a.O),c=this.us(a.H);if(b||c)c?(this.Hd[a.id]=a.H,a.H.count++,b&&a.O.count--):(this.Hd[a.id]=null,a.O.count--);else return!1;return!0};_.g.us=function(a){return!!a&&this.request.qn().includes(a.getId())};
var hN=function(a,b,c,d,e){dN.call(this,a);var f=this;this.V=0;this.Hd=[];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.ta=Date.now();this.request=b.clone();this.Fa=OL(this.context.ym,b);this.Hv=new GRc(this.context,this.request,!1,e);b=this.request.wc()&&tIc(this.request.wc());var h=this.context.Av;this.H=b?function(k,l){return h.compare(f.request,k,l)}:null;this.mCa=!b||!jIc(this.request)||_.vI(_.JI(a.Nc));
this.Ha=UJc(this.request);c&&this.zl(c,!d);this.va=_.bk(a.Nc.ig(),16,36E5);_.rK(this.request)&&this.Sc.listen(this.context.Qga,"Gb",this.Ka);_.Re(this,function(){_.aa(f.Hv);f.clear()})};_.K(hN,dN);hN.prototype.refresh=function(){this.log(this.NM()+" | Refresh called, currently "+this.Ed()+" items cached");return ZSc(this,!1)};
var ZSc=function(a,b){a.Fp=6;if(_.Q(a.request,48,!1))return a.Fp=1,_.Zh();if(_.rK(a.request)){var c=$Sc,d=a.context.Qga.H;d=Math.max(Date.now()-d,a.va);c(a,Math.min(d,2592E5))}return aTc(a,b)};hN.prototype.initialize=function(){return this.count>=this.request.Ei()||1===this.Fp?_.Zh():this.refresh()};hN.prototype.clear=function(){bTc(this)};
var bTc=function(a){a.Hd.forEach(function(b){b.count--});a.count=0;a.Hd=[];a.O.clear()},$Sc=function(a,b){_.n.clearTimeout(a.Ba);a.Ba=_.n.setTimeout(function(){return ZSc(a,!0)},b)};hN.prototype.Ka=function(){Date.now()-this.ta>this.va&&$Sc(this,0)};
var aTc=function(a,b){a.Hv&&(a.Sc.Yc(a.Hv,"ya",a.nsa),a.Sc.Yc(a.Hv,"za",a.$La),a.Hv.dispose());var c=a.request.te();c&&_.Ff(c,!1);a.Hv=new GRc(a.context,a.request,b);a.V=0;a.Sc.listen(a.Hv,"ya",function(){return a.nsa(a.Hv.ha)});a.Sc.listen(a.Hv,"za",a.$La);return a.kca()};
hN.prototype.kca=function(){var a=this,b=_.ci();this.context.Mj().Se()?this.Sc.listen(this.context.Mj(),"Bb",function(c){c.Se()||(a.Sc.Yc(a.context.Mj(),"Bb"),cTc(a,b))}):this.context.Ck().Se()?this.Sc.$c(this.context.Ck(),[_.rC.CL,_.rC.iU],function(){cTc(a,b)}):cTc(this,b);return b.promise};var cTc=function(a,b){a.xA();var c=a.request.Ei()+a.V;_.cka(ERc(a.Hv,c).mg(b.resolve,b.reject,b),function(){return a.ta=Date.now()})};_.g=hN.prototype;
_.g.resize=function(a){this.log(this.NM()+" | Resize called");var b=0;for(var c=_.m(new Set([].concat(_.Bd(this.Ny)))),d=c.next();!d.done;d=c.next())d=d.value,d=rRc(this.context).oka(d),b=Math.max(b,d.Ei());_.rK(this.request)?(this.request.vi(b),2!==this.Ze()&&!this.Hv.O&&(b>this.count||a)?this.refresh():this.tJ()):this.request.Ei()!==b&&(this.request.vi(b),b>this.count?this.kca():this.tJ())};_.g.ud=function(){return this.request};_.g.NM=function(){return this.Fa};_.g.Ed=function(){return this.Hd.length};
_.g.Eha=function(a){return this.context.ym.equals(a,this.request)};
_.g.fk=function(a){var b=a.Ei(),c,d=!1;if(_.QJ(this.request)){var e=this.Hd.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=_.nl(k.getItem()).filter(function(l){return h.includes(_.B(l,_.Sk,1).getId())});k=k.clone();yBc(k.getItem(),d);e[c]=k}e=e.filter(function(l){return _.nl(l.getItem()).length})}d=HBc(e);c=new _.TK;_.w(c,4,!1);gGc(c,f)}else e=this.Hd.slice(0,b),c=new _.xB,FEc(c,b<this.Hd.length||!(this.context.Mj().Se()||
this.context.Ck().Se())&&1!==this.Fp),_.I(c,7,this.ka),_.w(c,8,this.incompleteSearch),_.Jj(c,18,this.ha),d=HBc(e);e=rCc(e);pRc(this,a.O(),e);c.Vw(e);c.Dc(d?6:this.dwa(b));c.Ki(this.Ze());c.nP(this.suggestionSessionId);return c};_.g.dwa=function(a){return 1===this.Fp||a<=this.count?1:this.context.Mj().Se()||this.context.Ck().Se()?0<this.Hd.length?1:2:6};_.g.nsa=function(a){this.ka=a.W;this.incompleteSearch=a.incompleteSearch;this.ha=a.Hza();this.W=a.V;this.suggestionSessionId=a.dg()};
_.g.$La=function(){var a=this.request.Ei()-this.count;0<a&&CRc(this.Hv)&&(this.V+=a,this.kca())};_.g.zl=function(a,b){_.rK(this.request)&&bTc(this);var c=!1;a=_.m(a);for(var d=a.next();!d.done;d=a.next())d=qM(d.value),c=this.Lu(d,!0)||c;b||(1!==this.Fp&&(c=!0),this.Fp=1);if(a=this.H){a:{a=this.Hd;d=this.H||_.Fa;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.jo("ViewCache unsorted after import"),this.context.Av.sort(this.request,this.Hd));c&&(this.IX(),dTc(this,b))};
var dTc=function(a,b){_.Ol(a.request).length&&a.Hd.length&&a.context.IZ.then(function(c){var d=KL(a.context.tk(),106024,a.ma);if(d){var e=_.Ol(a.request)[0].Za(),f=_.B(_.QK(d),tFc,18);if(!f){f=new tFc;var h=_.QK(d);_.I(h,18,f)}f=_.w(f,1,!b);c=_.w(f,2,c===e).Bt(a.Hd.length);e=a.context.Nf.Zn();_.w(c,4,e);a.ma=d;d.Aj()}})};_.g=hN.prototype;
_.g.Lu=function(a,b){var c=this.O.get(a.id),d=!!c,e=this.us(a.H,b),f=a.O;c&&(d?a.O&&a.O!==c&&this.jo("Updating different wrapper from the existing one"):this.jo("Updating existing item but old wrapper did not match"),f=c,d=!0);if(d||e)if(d)e?this.WJa(f,a.H):(this.kJ(f),_.rK(this.request)&&$Sc(this,0));else{if(_.rK(this.request)&&!b)return!1;this.qR(a.H)}else return!1;return!0};_.g.qR=function(a){this.H?jBc(this.Hd,a,this.H):this.Hd.push(a);a.count++;eTc(a)&&this.count++;this.O.set(a.getId(),a)};
_.g.kJ=function(a){if(this.H){var b=this.Hd,c=_.Ga(b,a,this.H);0<=c&&_.ta(b,c)}else _.ua(this.Hd,a);a.count--;eTc(a)&&this.count--;this.O.delete(a.getId())};_.g.oya=function(a){return this.H?_.Ga(this.Hd,a,this.H):_.ma(this.Hd,a)};_.g.WJa=function(a,b){this.H&&0!==this.H(a,b)?(this.kJ(a),this.qR(b)):(this.Hd[this.oya(a)]=b,b.count++,eTc(b)&&this.count++,a.count--,eTc(a)&&this.count--,this.O.delete(a.getId()),this.O.set(b.getId(),b))};
_.g.us=function(a,b){if(!a)return!1;if(this.mCa&&!_.rK(this.request)){if(b)return!0;if(!this.Ha){var c=a.getId();b=!!this.Hd.find(function(e){return c===e.getId()},this);a=eM(this.context.pt,this.request,a.getItem());return b&&a}}if(!eM(this.context.pt,this.request,a.getItem()))return!1;var d=1.2*this.request.Ei();if(1===this.Fp||!this.H||XHc(a.V,2)||this.count<d||b||PBc(a.getItem()))return!0;b=0===this.Hd.length?null:this.Hd[this.Hd.length-1];return!!b&&0>=this.H(a,b)};
_.g.tJ=function(){this.log(this.NM()+" | Evict called");if(1!==this.Fp&&!this.context.Mj().Se()&&!this.context.Ck().Se()){var a=1.2*this.request.Ei();if(!(a>=this.count||this.Hv&&a>=this.Hv.$b())){a=this.count-this.request.Ei();for(var b=this.Hd.length-1;0<=b&&0<a;b--){var c=this.Hd[b];XHc(c.V,2)||PBc(c.getItem())||(c.count--,eTc(c)&&this.count--,this.O.delete(c.getId()),_.ta(this.Hd,b),a--)}aTc(this,!1)}}};
_.g.jo=function(a){var b=new _.Dc;_.dJ(b,2);_.eJ(b,6);_.pq(b);this.context.dispatchEvent(new _.Fc(new _.Ec(a,b)))};var eTc=function(a){return!XHc(a.V,2)&&3!==a.getItem().tv()};hN.prototype.log=function(a,b){this.context.Rf().log("drive.ds.sync.cache.ViewCache",a,void 0===b?"info":b)};hN.prototype.WQa=function(a){var b=this,c=_.Ol(this.request);c.length&&(c=c.some(function(d){return(d=b.context.Nf.xm.H(d.Za()))&&_.P(d,108)}),kJc(this.context.ifa,a,c))};hN.prototype.VQa=function(){this.tJ()};
hN.prototype.cYa=function(a){return 1!==this.Fp&&a.Ei()>this.count&&this.Hv.O};
var jN=function(a,b){var c;_.O.call(this);var d=this;this.O={};this.W=new USc;this.Sc=new _.Ze(this);this.Ma(this.Sc);this.context=a;this.Mg=b;this.Kt=new YJc(a.ym,a.Rf());this.context.tk().W.H=this.Kt;if(null===(c=_.qK(this.context.Nc))||void 0===c?0:_.Q(c,15,!1))b=new QJc(a.pt,a.Av),this.Kt.add(b),a.jfa.promise.then(function(){var e,f,h,k;null===(f=null===(e=d.Kt)||void 0===e?void 0:e.O)||void 0===f?void 0:rM(f,!(null===(k=null===(h=d.Kt)||void 0===h?void 0:h.H)||void 0===k?0:k.XE))});this.H=new iIc(a.IZ,
a.pt,a.Av);_.P(a.Nc,60)&&(this.va=new OSc(a.pt,a.Av));this.V=new cIc(a.Rf(),_.KK(this.Mg));fTc(this,_.ge(this.context.Nc,28));this.xm=new lIc(this.Mg,this.context.ym,this.H,this.V);this.context.tk().W.V=this.xm;this.wI=new IRc(this.context,this.Mg,this.O,this.H);this.YFa=new PSc(this.context,this.H);this.ka=new GSc(this.context,this);_.Re(this.ka,function(){d.ka=null});this.ta=_.uuc(_.KK(this.Mg),gTc);oM(this.context.Sj,["NSockf"],function(){return d.initialize()});oM(this.context.Sj,["NSockf","jroI5d"],
function(){var e=d.context.Nc;if(_.B(e,_.jl,12))e=_.B(e,_.jl,12);else{var f=_.evc(_.gvc(new _.Sk,_.CK(_.JI(e))),!0);f=_.w(f,6,1);var h=_.D(_.JI(e),6,"");h&&f.Ob(h);f=_.P8b(_.Lvc(_.Mvc(_.JG((new _.jl).Ob(d.context.bo()).setTitle(_.D(e,38,"My Drive")),"application/vnd.google-apps.folder").On(!1),f),[f]),1);f=_.w(f,29,!0);f=_.w(f,63,!0);e=_.hvc(new _.Yk,_.Q(e,6,!0));e=_.w(e,2,!1);e=_.yK(f,_.uvc(_.nvc(_.mvc(_.qvc(_.rvc(_.pvc(_.ovc(_.lvc(_.kvc(_.jvc(_.ivc(_.w(e,3,!1),!1),!1),!0),!0),!1),!1),!1),!1),!1),
!1),!1))}d.zl([e],1);pM(d.context.Sj,"hVFf7")});this.ha=_.ci();oM(this.context.Sj,["BNEDtc"],function(){d.ha.resolve()});this.xq=new xKc(this.context.Nc,this.context.Rf(),a.Um(),a.ifa,this.context.tk(),this.context.wX.promise);_.YI(this.context.Nc)&&this.Sc.listen(this.xq,"Fb",this.ma);this.aMa=new _.Zxc(this.context.Nc,this.xm)};_.K(jN,_.O);
jN.prototype.ma=function(a){var b=a.getPeople();this.log("Handling PeopleCache updated with "+b.length+".");var c=new Set;a=new Set;b=_.m(b);for(var d=b.next();!d.done;d=b.next()){d=_.y(d.value,1);for(var e=this.xq.Gd(d),f=_.m(e),h=f.next();!h.done;h=f.next())c.add(h.value);if(e=h=e[e.length-1])d=this.xq.H.get(d),e=!(!d||1!==d.Ze()&&4!==d.Ze()||3===hKc(d));e&&a.add(h)}b=[];c=_.m(c);for(h=c.next();!h.done;h=c.next())h=h.value,(d=this.H.get(h))?(h=d.getItem().clone(),hTc(this,h),b.push(NJc(d,new cM(h,
void 0,1)))):this.log("b/154479164 Unexpected missing wrapper for "+h+".","warning");iTc(this,b,[]);this.context.Ks.update(6);a.size&&this.wI.lO([].concat(_.Bd(a)),_.Ef(new _.Df,311))};jN.prototype.initialize=function(){this.ka.$g()};
jN.prototype.ji=function(a,b){if(b instanceof _.of)b=fM(this.context.ym,b),jTc(this,b.O()),RSc(this.YFa,b),b=kTc(this,b),b.cache.ji(a);else if(b instanceof _.zA)b=lTc(this,b),jTc(this,b.O()),b=mTc(this,b),b.cache.ji(a);else if(b instanceof _.xI){var c=gN(this,b),d=this.O[c];d?(3==d.FJ()?(this.log(c+" | TeamDriveQueryRequest backed by refreshing existing cache"),d.refresh()):this.log(c+" | TeamDriveQueryRequest backed by existing view cache"),b={cache:d,yv:!1}):(this.log(c+" | ItemQueryRequest backed by new cache"),
d=new bSc(this.context,this.Mg,b),d.refresh().Dg(_.Uf),ESc(this,c,d),b={cache:d,yv:!0});b.cache.ji(a)}else if(b instanceof _.FG)c=b.O(),d=this.V,dIc(d,d.H,d.O,c),b=mTc(this,b),b.cache.ji(a);else throw Error("sg");return b.yv};jN.prototype.kk=function(a,b){if(b instanceof _.of)b=fM(this.context.ym,b),TSc(this.YFa,b);else if(b instanceof _.zA)b=lTc(this,b);else if(!(b instanceof _.xI||b instanceof _.FG))throw Error("sg");b=gN(this,b);var c=this.O[b];c&&(c.kk(a),c.isDisposed()&&delete this.O[b])};
var gN=function(a,b){return OL(a.context.ym,b,2)},kTc=function(a,b){var c,d,e=gN(a,b),f=a.O[e];if(f)return 3==f.FJ()?(a.log(e+" | ItemQueryRequest backed by refreshing existing cache"),f.refresh()):a.log(e+" | ItemQueryRequest backed by existing view cache"),{cache:f,yv:!1};var h=[],k=5;f=!1;for(var l=ZJc(a.Kt),p=0;p<l.length;p++){var q=l[p];k=q.xE(b);if(5!=k){l=1==k?void 0:b.Ei();if((null===(c=_.qK(a.context.Nc))||void 0===c?0:_.Q(c,18,!1))&&q instanceof QJc){f=!0;k=5;a.log("Partial Caching dark launch: Skipped returning from the MyDrive cache for "+
(e+"."));break}h=q.Dka(b,l);var r=q.Ze();var v=q instanceof sM?q.yy():"";a.log(e+" | ItemQueryRequest backed by "+q.getType()+" | size "+(q.Ed()+" | initial "+h.length));break}}5==k&&a.log(e+" | ItemQueryRequest backed by new cache");if(a.context.Mj().Se()||a.context.Ck().Se())h=h.concat(a.H.query(b,1)),_.Ea(h,void 0,function(A){return A.getId()}),k=(k=a.Kt.H)&&k.S7&&5!=k.xE(b)?k.xE(b):6,a.log("Offline: Populate with "+h.length+" initial items(s)");var z=new hN(a.context,b,h,1==k,v);r&&z.Ki(r);z.zl(a.H.query(b,
2),1!=k);r=z.initialize();(null===(d=_.qK(a.context.Nc))||void 0===d?0:_.Q(d,18,!1))&&f&&r.then(function(){return fN(a.context)}).then(function(A){return A.eWa().hTb()}).then(function(){var A,C;if(z.isDisposed())a.log("Partial Caching dark launch: ViewCache is disposed skipping match check for "+e);else{var G=z.fk(b).wd().map(function(R){return R.getId()}),H=(null===(C=null===(A=a.Kt)||void 0===A?void 0:A.O)||void 0===C?void 0:C.fk(b,b.Ei()).wd().map(function(R){return R.getId()}))||[],L=_.Ia(G.sort(),
H.sort()),M=KL(a.context.tk(),106030);M&&(yFc(xFc(wFc(OFc(M),G.length),H.length),L),M.Aj());L?a.log("Partial Caching dark launch: Network/Cache match for "+e):a.log("Partial Caching dark launch: Network/Cache mismatch for "+e+("\nNetwork: "+G.length+".  Cache: ")+(H.length+".\nNetwork: ")+(G+".\nCache: ")+(H+"."),"warning")}},function(){a.log("Partial Caching dark launch: Error waiting for changelog processing.Won't be checking match for "+e,"warning")});r.Dg(function(A){A=_.fJ(A);_.pq(A);a.context.dispatchEvent(new _.Fc(new _.Ec("Error during view cache init",
A)))});ESc(a,e,z);return{cache:z,yv:!0}},mTc=function(a,b){var c=gN(a,b),d=!1,e=a.O[c];if(e&&e.Eha(b))a.log("FindByIdsRequest backed by existing query cache: "+c);else{var f=a.H.getAll(b.qn()),h;b instanceof _.zA?h=new yRc(a.context,a.Mg,b,f):h=new YSc(a.context,a.Mg,b,f);f.length&&h.Ki(8);h.refresh().Dg(_.Uf);b=h;d=!0;ESc(a,c,b);e?(nTc(e,b),e=b,a.log("FindByIdsRequest backed by recreated query cache: "+c)):(e=b,a.log("FindByIdsRequest backed by new query cache: "+c+" with "+(f.length+" initial items.")))}return{cache:e,
yv:d}};jN.prototype.XV=function(){return Object.values(this.O).filter(function(a){return a.ud()instanceof _.xI})};
jN.prototype.M1a=function(a){for(var b=_.Ef(new _.Df,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=CIc(this.context.ym,c,!0),this.log("Refreshing "+a+" for secondary fields: "+d+"."),this.wI.lO([a],b,!1,c))};
var oRc=function(a,b,c){c&&c.length&&fIc(a.V,b,c);_.YI(a.context.Nc)&&HKc(a.xq,b)},TRc=function(a,b,c){var d,e,f;if(b instanceof bSc){var h=gN(a,b.ud());if(a.O[h]){a.log(h+" | Cache already exists, ignoring persisted data");return}}b instanceof OJc&&a.Kt.remove(b);h=new Map;var k=a.H.sy(),l=new Map(k);k=[];for(var p=_.m(b.sy()),q=p.next();!q.done;q=p.next()){q=q.value;var r=q.getId(),v=a.H.get(r);if(v){var z=v.getItem().tv();(null===(d=_.qK(a.context.Nc))||void 0===d?0:_.Q(d,15,!1))&&!0===q.H&&ZHc(v,
q.H);3==z||4==z?h.set(q.getId(),q.getItem()):v!=q&&k.push(new MJc(q.getId(),q,v));l.delete(r)}else{r=qM(q);if(null===(e=_.qK(a.context.Nc))||void 0===e?0:_.Q(e,15,!1))null===(f=a.Kt.O)||void 0===f?void 0:f.update(r);a.H.update(r);a.W.update(r);_.YI(a.context.Nc)&&a.xq.VO(r)}_.YI(a.context.Nc)&&hTc(a,q.getItem())}l=_.m(l.values());for(q=l.next();!q.done;q=l.next())k.push(qM(q.value));a.log("Applying "+k.length+" updates to newly added CorpusCache");k=_.m(k);for(l=k.next();!l.done;l=k.next())b.update(l.value);
b instanceof bSc?(k=gN(a,b.ud()),ESc(a,k,b)):a.Kt.add(b);k=[];h=_.m(h.values());for(l=h.next();!l.done;l=h.next())l=l.value,p=new _.bJ,_.cJ(p,l.getId()),p.setItem(l),k.push(p);a.So(k);a.log("Merged cache: "+b.getType());b instanceof wM&&c.forEach(function(A){oTc(a.context.psa,A)});a.context.Ks.update(3)},nTc=function(a,b){(new Set([].concat(_.Bd(a.Ny)))).forEach(function(c){b.ji(c);a.kk(c)})};
jN.prototype.zl=function(a,b,c,d,e){var f=this,h;this.log("Importing "+a.length+" items");e||(e=c?[].concat(_.Bd(c.O().filter(function(C){return!_.KK(f.Mg).includes(C)}))):[]);c&&c instanceof _.of&&_.rK(c)&&pTc(this,a,c);for(var k=[],l=[],p=0;p<a.length;p++){var q=a[p],r=new cM(q,void 0,b),v=this.H.get(q.getId()),z=v?v.getItem():null,A=qTc(this,v,r);if(null!=A)r.fz(A),rTc(this,z,q),OBc(q),q=aIc(q,z,e),r.setItem(q);else if(null!=v)r=v,q=z;else continue;_.YI(this.context.Nc)&&hTc(this,q);!v||sTc(this,
z,q,e)?(l.push(NJc(v,r)),k.push(r)):k.push(v)}a=null;if(c){if(c instanceof _.of){if(null===(h=_.qK(this.context.Nc))||void 0===h?0:_.Q(h,15,!1))a=_.Ol(c),1==a.length&&(a=a[0].Za(),(a=this.H.get(a))&&!a.H&&ZHc(a,!d));(a=bKc(this.Kt,c))&&a.zl(k,!!d)}c=gN(this,c);(a=this.O[c])&&a.zl(k,!!d)}0<l.length&&(_.YI(this.context.Nc)&&l.forEach(function(C){return f.xq.VO(C)}),iTc(this,l,e,a?[a]:[]),tTc(this,k));rRc(this.context).P8()};
var hTc=function(a,b){KKc(a.xq,b)||5!=b.tv()||_.Tvc(b,1)},sTc=function(a,b,c,d){(b=b?_.qb(b.clone(),82):null)&&oRc(a,[b],d);c=_.qb(c.clone(),82);oRc(a,[c],[]);return!_.ak(b,c)},pTc=function(a,b,c){uTc(a,b,c);b.forEach(function(d,e){var f=a.xm.H(d.getId());f&&(vL(f,d,[1002]),vL(f,d,[1003]),vL(f,d,[1005]),b[e]=f);_.PJ(c)&&0<_.ge(c,33).length&&_.Uvc(d,_.ge(c,33)[0])})},uTc=function(a,b,c){var d;_.PJ(c)?d="quick access":_.QJ(c)?d="people predict":_.RJ(c)&&(d="drive priority");c=b.map(function(e){return e.getId()}).join(", ");
a.log("Got "+b.length+" ItemSuggest items for "+d+": "+c)},bRc=function(a,b){var c=new Map;b=_.m(b);for(var d=b.next();!d.done;d=b.next())d=d.value,c.get(d.V)||c.set(d.V,[]),c.get(d.V).push(d);c=_.m(c);for(b=c.next();!b.done;b=c.next())d=_.m(b.value),b=d.next().value,d=d.next().value,a.zl(rCc(d),b)};jN.prototype.jla=function(a){this.aMa.jla(a)};
jN.prototype.So=function(a){for(var b=this,c=[],d=0;d<a.length;d++){var e=a[d],f=e.Dk()?null:e.getItem(),h=e.Ac(),k=(h=this.H.get(h))?h.getItem():null,l=null;if(f){l=new cM(f,void 0,void 0,_.y(e,1)||void 0);var p=qTc(this,h,l);if(null==p)continue;l.fz(p);rTc(this,k,f);_.Q(e,5,!1)&&pBc(f,EBc);OBc(f);f=aIc(f,k);l.setItem(f);_.YI(this.context.Nc)&&hTc(this,f)}if(k&&!f||f&&sTc(this,k,f,[]))this.context.aJa.Dy(e),c.push(NJc(h,l))}_.YI(this.context.Nc)&&c.forEach(function(q){return b.xq.VO(q)});iTc(this,
c,[])};var rTc=function(a,b,c){b&&!c.Tm()&&vL(c,b,a.ta);var d=b?b.Gf():null,e=c.Gf();e=e?_.le(e):null;d&&e&&rTc(a,_.le(d),e);b&&!_.ml(c)&&vL(c,b,[1002]);b&&!_.nl(c).length&&vL(c,b,[1003]);b&&!_.ol(c).length&&vL(c,b,[1005]);b&&null==c.u1()&&vL(c,b,[71]);b&&null==_.y(c,79)&&vL(c,b,[73]);b&&_.P(b,31)&&!_.P(c,31)&&(pBc(c,EBc),a.log("Cleared Item Suggest data for "+b.getId()+"."))};
jN.prototype.FB=function(a,b){if(a instanceof _.of||a instanceof _.zA||a instanceof _.xI)a=gN(this,a),(a=this.O[a])&&a.HX(b);else throw Error("sg");};var qTc=function(a,b,c){var d=c.getItem();if(fLc(a.context.kfa,d))return null;if(b){a=b.V;var e=c.V;if(!(0<=e?!a||a<=e:1))return null;a=b.getItem();if(3!=a.tv()&&!dM(a)&&!dM(d)&&a.yc()==d.yc())if(a.ij()&&d.ij()){if(a.ij()>d.ij())return null}else if(b.O&&c.O){if(b.O>c.O)return null}else if(a.Aq()>d.Aq())return null}return YHc(b&&b.V,c.V)};
jN.prototype.VH=function(a,b){(a=this.H.get(a))&&a.fz(YHc(a.V,b))};
var iTc=function(a,b,c,d){d=void 0===d?[]:d;var e;if(null===(e=_.qK(a.context.Nc))||void 0===e?0:_.Q(e,15,!1))for(var f=_.m(b),h=f.next();!h.done;h=f.next())h=h.value,h.O&&h.H&&ZHc(h.H,h.O.H);h=_.m(b);for(f=h.next();!f.done;f=h.next())f=f.value,a.V.update(f.id,f.H?f.H.getItem():null,c);c=Object.values(a.O);d=_.m(d);for(h=d.next();!h.done;h=d.next())_.ua(c,h.value);d=_.m(c);for(h=d.next();!h.done;h=d.next())qRc(h.value,b);h=ZJc(a.Kt);d=0;c=_.m(h);for(h=c.next();!h.done;h=c.next()){f=h.value;var k=
!1,l=_.m(b);for(h=l.next();!h.done;h=l.next())f.update(h.value)&&(k=!0);k&&d++;f instanceof wM&&f.Ed()>=1.2*f.limit&&vTc(a.context.aJa,f.yc(),!1)}b=_.m(b);for(h=b.next();!h.done;h=b.next())h=h.value,_.P(a.context.Nc,60)&&a.va.update(h),a.H.update(h),a.H.get(h.id)||a.V.tJ(h.id),a.W.update(h);0<d&&a.context.Ks.Vma(d);wTc(a)},wTc=function(a){var b=a.W.O.slice(0),c=VSc(a.W);WSc(a.W);if(b.length){a.log("Refreshing shortcuts with unknown targets: "+b.join(", "));var d=new _.Df;_.Ef(d,308);a.wI.lO(b,d,!0)}if(c.length){a.log("Updating locally stale shortcuts: "+
c.join(", "));b=mIc(a.xm,c);var e=[];Object.values(b).forEach(function(f){var h=f.getItem().Gf(),k=_.y(h,1);if(k=a.xm.H(k))_.I(h,5,k),_.w(h,4,1),e.push(f)});bRc(a,e)}},xTc=function(a){rRc(a.context).P8();a.H.tJ()},lTc=function(a,b){_.Ha(b.O());var c=_.ma(b.qn(),"root");if(0>c)return b;b=b.clone();b.qn()[c]=a.context.bo();return b},fTc=function(a,b){var c;null!==(c=_.qK(a.context.Nc))&&void 0!==c&&_.Q(c,1,!1)||(b=JFc(a.Mg,b),a=a.V,dIc(a,a.items,a.fields,b))},jTc=function(a,b){var c;if(null===(c=_.qK(a.context.Nc))||
void 0===c?0:_.Q(c,1,!1))b=JFc(a.Mg,b),a=a.V,dIc(a,a.items,a.fields,b)},tTc=function(a,b){a.ha.promise.then(function(){var c=b.filter(function(e){return 4==e.getItem().tv()});if(c.length){c=c.map(function(e){return e.getId()});a.log("Refreshing "+c.length+" partial items. "+c);var d=_.Ef(new _.Df,311);a.wI.lO(c,d)}})},NSc=function(a,b){a.ha.promise.then(function(){for(var c={},d=_.m(b),e=d.next();!e.done;c={c5:c.c5,yqa:c.yqa},e=d.next()){e=e.value;if(bKc(a.Kt,e))break;c.c5=new sM(a.context.pt,a.context.Av,
a.context.ym,e);e=new NRc(a.context,c.c5,e);c.yqa=AM(a.context.Gz,null);_.di(e.$g().then(function(f){return function(){QRc(f.c5,f.yqa).then(function(h){TRc(a,f.c5,h)})}}(c)),function(){qLc(a.context.Gz,null)})}})};jN.prototype.Zn=function(){var a=this.Kt.H;return a&&a.XE?1:2};jN.prototype.log=function(a,b){this.context.Rf().log("drive.ds.sync.cache.CacheManager",a,void 0===b?"info":b)};var ESc=function(a,b,c){a.O[b]=c;a.log(b+" | Set cache with "+c.Ed()+" items")},gTc=[50];
var zTc=function(a){_.O.call(this);var b=this;this.context=a;this.H=[];this.V=new _.tl;this.O=new Map;this.ka=-1;this.ha=0;var c=_.ci();this.va=c.promise;eNc(this.context.wD).then(function(d){b.H=d||[];c.resolve();yTc(b)},function(){return c.resolve()});oM(this.context.Sj,["rVezo"],(0,_.N)(this.W,this))};_.K(zTc,_.O);
var SSc=function(a,b){_.Q(a.context.Nc,46,!1)&&a.va.then(function(){if(a.H[0]!==b){_.ua(a.H,b);for(bIc(a.context.Nf.xm.H(b))?a.log(b,"Hidden TD, not tracking in recency list"):_.Aa(a.H,0,0,b);a.H.length>2*_.bk(a.context.Nc,47,5);)a.H.pop();a.context.wD.set(ZMc,a.H)}a.context.Nf.Kt.XV().length+a.O.size<_.bk(a.context.Nc,47,5)&&(yTc(a),a.W())})},ATc=function(a,b){_.ua(a.H,b)&&a.context.wD.set(ZMc,a.H)};
zTc.prototype.Dy=function(a){oTc(this.context.psa,a);if(dM(a)){var b=a.yc();a.Dk()?vTc(this,b,!0):(a=a.getItem(),bIc(a)&&ATc(this,b))}};var vTc=function(a,b,c){ATc(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.Nf.Kt;for(var e=d.XV(),f=0;f<e.length;f++){var h=e[f];if(h.yc()===b){a.log(b,"Cache removed");d.remove(h);a.context.Ks.update(3);break}}fN(a.context).addCallback(function(k){k.CGa(b,c)});a.W()};
zTc.prototype.W=function(){if(this.context.Sj.H("rVezo")){var a=this.context.Nf.Kt;BTc(this);for(var b={};this.V.$b()&&!(this.ha>=_.bk(this.context.Nc,47,5));){var c=_.ul(this.V);this.ha++;aKc(a,c)||this.O.has(c)||(this.O.set(c,null),b.Dea=new _.Quc,_.w(b.Dea,1,c),this.context.Um().then(function(d){return function(e){return e.Qe(d.Dea)}}(b)).then(this.ta.bind(this,c),this.ma.bind(this,c)));b={Dea:b.Dea}}}};
var yTc=function(a){a.H&&a.H.length&&(a.ha=0,a.V.clear(),a.H.forEach(function(b){a.V.enqueue(b)}))},BTc=function(a){_.n.clearTimeout(a.ka);a.ka=_.n.setTimeout(function(){yTc(a);a.W()},36E5)};zTc.prototype.ta=function(a,b){var c=_.y(b,1);c&&c>_.bk(this.context.Nc,48,1E3)?(this.log(a,"Too large to backfill: "+_.y(b,1)),CTc(this,a,!1)):DTc(this,a)};
zTc.prototype.ma=function(a,b){(b=_.fJ(b).Ak())&&4===b?(this.log(a,"Non-existent or inaccessible, removing from cache"),a=_.lJ(_.auc(_.cJ(new _.bJ,a),a)),this.context.Nf.So([a])):DTc(this,a)};
var DTc=function(a,b){var c=new wM(a.context.pt,a.context.Av,b),d=c.ud().clone();d.vi(_.bk(a.context.Nc,48,1E3));d=new NRc(a.context,c,d);a.O.set(b,d);a.log(b,"Backfill started");var e=AM(a.context.Gz,b);fN(a.context).addCallback(function(f){f.Kua(b)});_.di(d.$g().then(function(){ETc(a,b,c,e)},function(){a.log(b,"Backfill failed");a.ha--;CTc(a,b,!0)}),function(){qLc(a.context.Gz,b)})},ETc=function(a,b,c,d){c.XE?(c.ZW(),QRc(c,d).then(function(e){a.log(b,"Backfill complete, size: "+c.Ed());TRc(a.context.Nf,
c,e);CTc(a,b,!1)},function(){a.log(b,"Backfill changes failed");CTc(a,b,!0)})):(a.log(b,"Backfill exceeded size limit"),CTc(a,b,!0))},CTc=function(a,b,c){var d=a.O.get(b);d&&d.dispose();a.O.delete(b);c&&fN(a.context).addCallback(function(e){e.CGa(b,!1)});a.W();0<a.O.size||a.context.Nf.Kt.XV().map(function(e){return e.yc()}).filter(function(e){return!a.H.includes(e)}).forEach(function(e){vTc(a,e,!0)})};
zTc.prototype.log=function(a,b){this.context.Rf().info("drive.ds.sync.cache.TeamDriveCacheManager",a+" | "+b)};
var FTc=function(){_.O.apply(this,arguments)};_.K(FTc,_.O);
var ITc=function(a,b){b=GTc(b);var c=a.getItem(),d=HTc(c.getCapabilities());b.J3.forEach(function(e){_.P8b(e.getItem(),c.Zo());_.yK(e.getItem(),d.clone())});return b},LTc=function(a,b,c){var d=JTc(c);c=c.find(function(e){return e.getId()===b.getId()});c={rK:c?c:new cM(b),children:[]};KTc(a,d,c);return c},JTc=function(a){var b={};a=_.m(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;for(var d=_.m(c.getItem().wk()),e=d.next();!e.done;e=d.next())e=e.value,b[e]||(b[e]=[]),b[e].push(c)}return b},KTc=
function(a,b,c){var d=c.rK.getItem();(b[d.getId()]||[]).forEach(function(e){c.children.push(KTc(a,b,{rK:e,parent:c,children:[]}))});return c},NTc=function(a,b){b=b.children.filter(function(l){return!_.ll(l.rK.getItem())});for(var c=new Map,d=[];b.length;){var e=b.pop(),f=e.rK.getItem();if(!c.has(f.getId())){_.P8b(f,a.Zo());MTc(a,f,e.parent?e.parent.rK.getItem():void 0);for(var h=_.m(e.children),k=h.next();!k.done;k=h.next())k=k.value,_.ll(k.rK.getItem())||b.push(k);c.set(f.getId(),!0);d.push(e.rK)}}return d},
OTc=function(a){a=a.children.filter(function(h){return!_.ll(h.rK.getItem())});for(var b=new Map,c=[];a.length;){var d=a.pop(),e=d.rK.getItem();if(!b.has(e.getId())){c.push(_.lJ(_.cJ(new _.bJ,e.getId())));d=_.m(d.children);for(var f=d.next();!f.done;f=d.next())f=f.value,_.ll(f.rK.getItem())||a.push(f);b.set(e.getId(),!0)}}return c},GTc=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();_.ll(e)||_.P(e,137)?c.push(e):b.push(d)}return{pQ:c,J3:b}},HTc=
function(a){a=a.clone();var b=null!=_.P(a,34)?_.P(a,34):_.P(a,7),c=null!=_.P(a,35)?_.P(a,35):_.P(a,7);_.w(a,45,c);_.Avc(a,b);_.w(a,30,c);_.vvc(a,b);_.Bvc(a,c);_.wvc(a,c);_.xvc(a,b);_.ivc(a,b);_.nvc(a,c);_.tvc(a,b);_.svc(a,_.P(a,7));_.mvc(a,_.P(a,10)||_.P(a,11));_.uvc(a,_.Zk(a));_.qb(a,18);_.qb(a,13);_.qb(a,10);_.yvc(a,_.P(a,42));_.zvc(a,_.P(a,43));_.Cvc(a,_.P(a,48));return a},MTc=function(a,b,c){var d=a.getCapabilities(),e=b.getCapabilities(),f=_.P(d,30);_.w(e,30,f);_.vvc(e,_.P(d,31));_.Bvc(e,_.P(d,
47));_.wvc(e,_.P(d,32));_.xvc(e,_.P(d,33));_.ivc(e,_.P(d,4));_.nvc(e,_.P(d,9));_.uvc(e,_.P(d,21));_.tvc(e,_.P(d,20));_.svc(e,_.P(d,17));_.hvc(e,_.Zk(d));_.lvc(e,_.P(d,7));_.ovc(e,_.P(d,10));_.pvc(e,_.P(d,11));f=_.P(d,45);_.w(e,45,f);_.Avc(e,_.P(d,46));_.Cvc(e,_.P(d,48));a=_.ll(a);_.w(b,137,a);c&&(c=c.getCapabilities(),xL(b)?(_.mvc(e,_.P(c,43)),_.zvc(e,_.P(c,43)),_.yvc(e,_.P(c,42))):_.mvc(e,_.P(c,42)))};
var PTc=function(a){this.context=a;this.V=new FTc;this.O=_.Ef(new _.Df,306);this.H=a.Nf},oTc=function(a,b){if(dM(b))b.Dk()?QTc(a,b):RTc(a,b);else if(_.Q(a.context.Nc,86,!1)){var c=b.Ac(),d=a.H.xm.H(c);var e=d&&d.yc();var f=b.getItem()&&b.getItem().yc();if(!d||!e||!xL(b.getItem()||d)||f&&f!==e)e=!1;else if(e=!!_.ll(d),!b.Dk()){var h=b.getItem();f=_.ll(d)!==_.ll(h);h=h.Zo()!==d.Zo();e=f||e&&h}if(e)if(b.Dk()){if(b=STc(a,d.yc()),d=a.V,e=(new _.jl).Ob(c),b=(b=LTc(d,e,b))?OTc(b):[],a.context.Nf.So(b),a.log(c,
"SD shared folder delete | Removed "+b.length+" item(s)"),a=KL(a.context.tk(),106009))c=LFc(a),_.w(c,2,b.length),a.Aj()}else if(c=b.getItem(),d=STc(a,c.yc()),e=a.V,c=b.getItem(),c=(d=LTc(e,c,d))?NTc(c,d):[],bRc(a.context.Nf,c),a.log(b.Ac(),"SD shared folder update | Updated "+c.length+" item(s)"),a=KL(a.context.tk(),106010))b=LFc(a),_.w(b,1,c.length),a.Aj()}},QTc=function(a,b){var c=b.Ac();b=STc(a,c);b=GTc(b);var d=_.mf(b.J3,function(e){return _.lJ(_.cJ(new _.bJ,e.getId()))});a.context.Nf.So(d);a.H.wI.lO(b.pQ.map(function(e){return e.getId()}),
a.O,void 0,void 0,b.pQ.map(function(e){return _.Ll((new _.Kl).Ob(e.getId()),_.ql(e))}));a.log(c,"SD delete | Remove "+d.length+" item(s), "+(b.pQ.length+" divergent items"));if(a=KL(a.context.tk(),106016))c=MFc(a),_.w(c,1,b.pQ.length),_.w(c,2,b.J3.length),a.Aj()},RTc=function(a,b){var c=b.Ac(),d=STc(a,c),e=a.H.xm.H(c);b=ITc(b,d);bRc(a.context.Nf,b.J3);a.H.wI.lO(b.pQ.map(function(h){return h.getId()}),a.O,void 0,void 0,b.pQ.map(function(h){return _.Ll((new _.Kl).Ob(h.getId()),_.ql(h))}));a.log(c,"SD update | Update "+
b.J3.length+" item(s), "+(b.pQ.length+" divergent items"));if(d=KL(a.context.tk(),106017)){var f=MFc(d);_.w(f,1,b.pQ.length);_.w(f,2,b.J3.length);d.Aj()}e||MRc(a.H.wI,c)},STc=function(a,b){var c=new _.of;_.Rl(c,[b]);_.Sl(c,2);return oIc(a.H.xm,c)};PTc.prototype.log=function(a,b){this.context.Rf().info("drive.ds.sync.change.TdChangeProcessor",a+": "+b)};
var TTc=function(a,b,c){this.H=a;this.V=b;this.oJ=c};
TTc.prototype.Zw=function(a,b){var c=this;if(a.AV().length){var d=bLc(this.H,a.Ac());if(d){var e=d?cLc(this.H,a):[];for(var f={},h=_.m(a.AV()),k=h.next();!k.done;f={vL:f.vL},k=h.next())if(k=k.value,f.vL=UTc(e,k.Pm(),a.Ac()),_.P(k,3))iLc(this.H,f.vL),_.di(b,function(r){return function(){c.H.O.W(SKc(r.vL))}}(f));else{for(var l=_.m(_.Wj(k,_.BG,2)),p=l.next();!p.done;p=l.next())VTc(this,f.vL,p.value);k=_.m(_.ge(k,4));for(l=k.next();!l.done;l=k.next())WTc(f.vL,l.value);this.H.qD([f.vL],!1,-1);b.then(function(r){return function(){return void c.H.VH(r.vL.getName(),
-2)}}(f),function(r){return function(){c.H.VH(r.vL.getName(),-2)}}(f))}e=this.jd(d.fk().response)}}e=e?e:this.jd();var q=e.q3a;b.then(function(r){q.resolve(r)},function(r){q.reject(_.SB(r));c.handleError(a.Ac(),r)});return e};TTc.prototype.jd=function(a){a=void 0===a?new lM:a;return new VIc(a.Dc(1))};var UTc=function(a,b,c){var d=a.find(function(e){return RKc(e.getName(),b)});d||(d=nHc((new WL).hd(b),c),a.push(d));return d};
TTc.prototype.handleError=function(a,b){mLc(this.V,a);a=_.fJ(b);_.w(a,21,"Server error updating metadata after optimistic application.");this.oJ(a)};
var VTc=function(a,b,c){var d=b.O().find(function(e){return e.getId()===c.getId()});d||(d=new TL,d.Ob(c.getId()),mHc(b,b.O().concat([d])),XTc(d,c));if(1===UL(d))d.setBooleanValue(_.P(c,3));else if(12===UL(d))d.setDateStringValue(_.y(c,17));else if(2===UL(d))d.setTextValue(_.y(c,4));else if(3===UL(d))_.ge(c,6).length?d.Ioa(_.ge(c,6)):_.ge(c,5).length&&(a=_.ge(d,7).concat(_.ge(c,5)),d.Ioa(a));else if(4===UL(d))d.setLongTextValue(_.y(c,7));else if(5===UL(d))d.setSelectionValue(_.y(c,8));else if(6===
UL(d))_.ge(c,10).length?d.Eoa(_.ge(c,10)):_.ge(c,9).length&&(a=d.OLa().concat(_.ge(c,9)),d.Eoa(a));else if(7===UL(d))d.setIntegerValue(_.y(c,11));else if(8===UL(d))_.ge(c,13).length?d.voa(_.ge(c,13)):_.ge(c,12).length&&(a=_.ge(d,12).concat(_.ge(c,12)),d.voa(a));else if(10===UL(d))d.setUserValue(a.O(_.y(c,14)));else if(11===UL(d))_.ge(c,16).length?jHc(d,_.ge(c,16).map(a.O)):_.ge(c,15).length&&jHc(d,d.oWa().concat(_.ge(c,15).map(a.O)));else throw d="Optimistic Applier: Unsupported value type "+(UL(d)+
"."),new _.Ec(d,new _.Dc);},WTc=function(a,b){if(a=a.O().find(function(c){return c.getId()===b}))if(1===UL(a))_.qb(a,5);else if(12===UL(a))_.qb(a,17);else if(2===UL(a))_.qb(a,6);else if(3===UL(a))_.NI(a,7);else if(4===UL(a))_.qb(a,8);else if(5===UL(a))_.qb(a,9);else if(6===UL(a))_.NI(a,10);else if(7===UL(a))_.qb(a,11);else if(8===UL(a))_.NI(a,12);else if(10===UL(a))_.Kj(a,15);else if(11===UL(a))_.Mj(a,16);else throw a="Optimistic Applier: Unsupported value type "+(UL(a)+"."),new _.Ec(a,new _.Dc);
},XTc=function(a,b){_.Dj(b,3)?a.$A(1):_.Dj(b,17)?a.$A(12):_.Dj(b,4)?a.$A(2):_.ge(b,6).length||_.ge(b,5).length?a.$A(3):_.Dj(b,7)?a.$A(4):_.Dj(b,8)?a.$A(5):_.ge(b,10).length||_.ge(b,9).length?a.$A(6):_.Dj(b,11)?a.$A(7):_.ge(b,13).length||_.ge(b,12).length?a.$A(8):_.Dj(b,14)?a.$A(10):(_.ge(b,16).length||_.ge(b,15).length)&&a.$A(11)};TTc.prototype.O=function(a){return _.fvc(_.dvc(1),a)};
var YTc=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};YTc.prototype.apply=function(a,b){var c=this;if(!_.pK(a))return b;var d=null;a instanceof _.DJ?d=ZTc(this,a,b):a instanceof _.KJ?d=$Tc(this,a,b):a instanceof _.hJ?d=this.Zw(a,b):a instanceof _.yJ?d=aUc(this,a,b):a instanceof _.fK&&(d=this.va.Zw(a,b));d&&(this.W++,this.ha.setActive(!1),_.di(b,function(){c.W--;0==c.W&&c.ha.setActive(!0)}));return d?_.Zh(d):b};
var ZTc=function(a,b,c){eLc(a.O,b.getId());var d=a.H.xm.H(b.getId());_.di(c.then(function(){return void a.ma("VMiG2e")},a.ta.bind(a,b.getId(),d)),a.O.W.bind(a.O,b.getId()));c.then(null,function(e){e=_.fJ(e);_.w(e,21,"Server error deleting item after optimistic application.");a.V(e)});return(new _.oK).Dc(1)},$Tc=function(a,b,c){var d=_.y(b,2);d&&a.O.H.push(d);c.then(function(){d&&gLc(a.O,d)&&_.di(bUc(a,d,new _.ayc(1E4,3E5),Date.now()+72E5,5),function(){return void a.ma("VMiG2e")})},function(){d&&_.ua(a.O.H,
d)});c.then(null,function(e){e=_.fJ(e);_.w(e,21,"Server error emptying trash after optimistic application.");a.V(e)});return(new _.oK).Dc(1)},bUc=function(a,b,c,d,e){if(Date.now()>d||0>=e)return _.Zh();var f=_.ci(),h=c.Za();_.FI(c);setTimeout(function(){a.ka.then(function(k){var l=_.Ef(new _.Df,1425);l=qCc(!0,1,l);return k.Qe(l).then(function(p){if(p=p.jd())if(p=p.wd()[0],!p||(p.aw()||0)>b){f.resolve();return}_.di(bUc(a,b,c,d,e),function(){return void f.resolve()})},function(){return _.di(bUc(a,b,
c,d,e-1),function(){return void f.resolve()})})})},h);return f.promise},aUc=function(a,b,c){var d=b.yc(),e=a.H.xm.H(d);if(!e)return null;e=e.clone();oRc(a.H,[e],[157]);var f=e.jg();cUc(f,_.Wj(b,_.gl,2));dUc(f,_.Wj(b,_.gl,3));a.H.zl([e],-1,void 0,void 0,[157]);_.di(c,function(){a.H.VH(d,-2)}).then(function(h){a.H.zl([_.B(h,_.jl,2)],1,void 0,void 0,[157])},null);c.then(null,function(h){h=_.fJ(h);_.w(h,21,"Server error updating item after optimistic application.");a.V(h)});return XOc(new WOc,e).Dc(1)},
cUc=function(a,b){var c={};b=_.m(b);for(var d=b.next();!d.done;c={tea:c.tea},d=b.next())c.tea=d.value,_.Wj(a,_.gl,8).some(function(e){return function(f){return f.Pm()==e.tea.Pm()}}(c))||_.Yj(a,8,c.tea,_.gl,void 0)},dUc=function(a,b){var c=b.map(function(d){return d.Pm()});b=_.Wj(a,_.gl,8).filter(function(d){return!c.includes(d.Pm())});xBc(a,b)};
YTc.prototype.Zw=function(a,b){var c=this,d=this.H.xm.H(a.getId());if(!d||d.yc()&&0==a.Xh()||null!=_.P(a,40))return null;var e=_.ge(a,10),f=_.ge(a,9);if(0<e.length&&0<f.length&&(e=Object.values(nIc(this.H.xm,e.concat(f))).map(function(k){return k.yc()||"root"}),_.Ea(e),1<e.length))return null;var h=d.clone();eUc(this,a,h);this.H.zl([h],-1,void 0,void 0,HFc(this.Mg));b.then(function(){return c.H.VH(a.getId(),-2)},function(){c.H.VH(a.getId(),-2);c.ta(a.getId(),d)});b.then(null,function(k){k=_.fJ(k);
if(63==k.Ak()){var l=h.getId();_.w(k,22,l);_.w(k,23,f[0])}_.w(k,21,"Server error updating item after optimistic application.");c.V(k)});return _.Lwc((new _.oK).setItem(h),h.getId()).Dc(1)};
var eUc=function(a,b,c){null!=b.Cf()&&c.Yl(b.Cf());null!=b.Zi()&&_.Qvc(c,b.Zi());null!=b.getMimeType()&&_.JG(c,b.getMimeType());null!=_.y(b,7)&&_.O8b(c,_.y(b,7));null!=_.P(b,11)&&_.Kvc(c,_.P(b,11));null!=_.P(b,4)&&c.Lv(_.P(b,4));null!=_.P(b,16)&&_.Pvc(c,_.P(b,16));null!=b.getTitle()&&c.setTitle(b.getTitle());null!=b.Xh()&&(c.On(b.Xh()),_.Ovc(c,b.Xh()));null!=_.P(b,18)&&_.sL(NBc(c,!0),_.P(b,18));_.ge(b,8).length&&_.xK(c,_.ge(b,8));if(_.ge(b,9).length){var d=new Set(c.wk());_.ge(b,9).forEach(function(p){return d.add(p)});
_.xK(c,[].concat(_.Bd(d)))}if(_.ge(b,10).length){var e=new Set(c.wk());_.ge(b,10).forEach(function(p){return e.delete(p)});_.xK(c,[].concat(_.Bd(e)));var f=c.Dw();f&&_.ge(b,10).includes(f)&&_.qb(c,46)}if(!c.Dw()){var h=a.Ba();f=c.wk().find(function(p){var q=a.H.xm.H(p);return q&&!!q.Dw()||p==h});_.w(c,46,f||void 0)}c.wk().length&&(f=a.H.xm.H(c.wk()[0]))&&_.Uvc(c,f.yc());if(f=_.B(b,_.dl,25)){var k=_.B(c,_.dl,111)||new _.dl;null!=_.P(f,1)&&_.Evc(k,_.P(f,1));null!=_.y(f,2)&&_.Fvc(k,_.y(f,2));_.I(c,111,
k)}var l=_.ge(c,120);_.ge(b,31).forEach(function(p){l.includes(p)||l.push(p)});_.ge(b,32).forEach(function(p){_.ua(l,p)});_.Jj(c,120,l)};YTc.prototype.ta=function(a,b){var c=this,d=_.BA(new _.zA,[a]);this.ka.then(function(e){return e.Qe(d)}).then(function(e){e=e.jd().wd()[0];c.H.zl([e.clone()],1)},function(){b&&c.H.zl([b.clone()],1)})};
var fUc=function(a){this.H=a};_.K(fUc,_.Pzc);fUc.prototype.execute=function(a,b,c){var d=_.Pzc.prototype.execute.call(this,a,b,c);if(d)return d;if(c.nKa||b instanceof _.ZI&&_.rK(b.ud()))if(c=$Fc(this.H))return c;return b instanceof _.KJ?(c=_.Ef(new _.Df,1424),a.Qe(qCc(!1,1,c)).then(function(e){(e=e.jd())&&(e=e.wd()[0])&&_.Dj(e,96)&&b.Kca(e.aw())},function(){})):null};
var DCc=function(a,b){return[gUc,hUc,iUc,jUc].reduce(function(c,d){var e;0!==c?e=c:e=_.Fa(d(a),d(b));return e},0)},gUc=function(a){return kUc[a.zf()]},hUc=function(a){return lUc[a.getType()]},iUc=function(a){return a.getName()||""},jUc=function(a){return a.getId()||""},kN={},kUc=(kN[5]=0,kN[7]=1,kN[1]=2,kN[3]=3,kN[4]=4,kN[2]=5,kN[6]=6,kN),mUc={},lUc=(mUc[1]=0,mUc[2]=1,mUc[3]=2,mUc[4]=3,mUc);
var nUc=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.ta=k;this.Mg=l};
nUc.prototype.apply=function(a,b){var c=this;if(!(b instanceof _.oK&&8===b.Bb()))if(a instanceof _.xJ||a instanceof _.zJ||a instanceof _.Guc||a instanceof _.WJ||a instanceof _.hJ||a instanceof _.hK||a instanceof _.Ouc||a instanceof _.jK||a instanceof _.zL){var d=_.kJ(b.getItem().clone(),9);this.H.zl([d],1);ILc(this.ta,b.getItem(),_.KK(this.Mg))}else if(a instanceof _.DJ)b=_.lJ(_.cJ(new _.bJ,a.getId())),this.H.So([b]);else if(a instanceof _.GJ)b=_.lJ(_.auc(_.cJ(new _.bJ,a.getId()),a.getId())),this.H.So([b]),
oTc(this.ma,b);else if(a instanceof _.KJ)b=qCc(!0).ud(),b=this.H.xm.query(b).map(function(e){return _.lJ(_.cJ(new _.bJ,e.getId()))}),this.H.So(b);else if(a instanceof _.BJ)this.O.remove(a.Nh());else if(a instanceof _.NJ||a instanceof _.eK)this.O.put(b.xr());else if(a instanceof _.EJ)CCc(this.H,a);else if(a instanceof _.XD)this.W.remove(a.getKey());else if(a instanceof _.OJ)ECc(this.H,a,_.B(b,_.Sk,2));else if(a instanceof _.YD)this.W.put(b.XLa());else if(a instanceof _.AJ||a instanceof _.iK)this.ha.qD([b.rn()],
!1);else if(a instanceof _.HJ)this.ha.qD([jLc(a.getId())],!1);else if(a instanceof _.Fuc)this.V.qD(b.response.O(),!1,1);else if(a instanceof _.fK)a.AV().filter(function(e){return _.P(e,3)}).forEach(function(e){return c.V.removeItem(e.Pm()||"",a.Ac())}),mLc(this.ka,a.Ac()),this.H.M1a(a.Ac());else if(a instanceof _.PK)for(b=_.m(_.Wj(a,_.pHc,1)),d=b.next();!d.done;d=b.next())switch(d=d.value,d.getFeature()){case 3:case 4:case 1:switch(d=_.B(d,_.XL,2),d.getType()){case 1:case 2:if(d=this.H.xm.H(d.Ac()))d=
_.cJ(gFc(),d.getId()).setItem(d.clone()),this.H.So([d])}}};
var oUc=function(a){this.H=a};
oUc.prototype.translate=function(a){if(a instanceof _.$J){var b=this.H.H(a.getId());if(!b)return new _.Dc;var c=(new _.hJ).Ob(a.getId());if(b.yc()){var d=b.getCapabilities();_.Fe(d)||_.P(d,9)?c.On(!0):_.iJ(c,!1)}else d=a.getParent(),1===b.Zo()?c.On(!0):d?(b=this.H.H(d),!b||_.P(b.getCapabilities(),7)?bFc(c,[d]):_.iJ(c,!1)):_.iJ(c,!1);return c}if(a instanceof _.aK)return dFc(cFc(bFc(aFc((new _.hJ).Ob(a.getId()),_.ge(a,2)),_.ge(a,3)),_.P(a,6)),_.Wj(a,_.Kl,8));if(a instanceof _.bK){b=this.H.H(a.getId());
if(!b)return new _.Dc;c=(new _.hJ).Ob(a.getId());b.yc()?(d=b.getCapabilities(),_.Fe(d)||_.P(d,9)?c.On(!1):_.iJ(c,!0)):(d=a.getParent(),1===b.Zo()?c.On(!1):d?(b=this.H.H(d),!b||_.Zk(b.getCapabilities())?aFc(c,[d]):_.iJ(c,!0)):_.iJ(c,!0));return c}if(a instanceof _.bL)return new _.Guc(a);if(a instanceof _.VM)return _.ge(a,1).map(function(f){var h=new _.fK;f=_.w(h,1,f);h=a.AV();f=_.Lj(f,2,h);h=a.te();return _.I(f,3,h)});if(a instanceof _.JJ){c=qCc(!1,1).ud();var e=0;this.H.query(c).forEach(function(f){(f=
f.aw())&&(e=Math.max(e,f))});return UFc(new _.KJ,a).Kca(e)}return a};
var pUc=function(){};pUc.prototype.validate=function(a){var b=null;a instanceof _.SJ?(a=a.getId()||"",_.ye(a)&&(b="Tried to request backup with no id.")):a instanceof _.CJ&&(a=a.getId()||"",_.ye(a)&&(b="Tried to delete backup with no id."));return b?_.fJ(b):null};
var qUc=function(a,b){this.H=a;this.O=b},uUc=function(a,b){_.iL(["drive#about"],b);var c=new _.WM,d=new _.qC;if(b.user){var e=_.kL(a.H,b.user);_.I(d,1,e)}a=rUc(a,b);a=UEc(TEc(_.SEc(new _.jLb,a),b.rootFolderId),b.domainSharingPolicy);b.gsuiteSubscriptionInfo&&(e=b.gsuiteSubscriptionInfo,_.WEc(a,_.HEc(_.GEc((new _.pC).Dc(sUc.get(e.status)),Number(e.trialMillisRemaining)),_.jL(e.trialEndTime))));b.teamDashboardCapabilities&&(e=b.teamDashboardCapabilities,_.XEc(a,_.JEc(_.IEc(new _.eLb,e.canAdministerTeam),
e.canManageInvites)));b.importFormats&&VEc(a,b.importFormats.map(function(f){var h=new _.REc;h=_.w(h,1,f.source);return _.Jj(h,2,f.targets)}));b.adminSecureLinkSetting&&YEc(a,tUc.get(b.adminSecureLinkSetting));_.I(d,3,a);_.SPc(c,d);b=b.largestChangeId;null!=b&&_.w(c,4,Number(b));return c},rUc=function(a,b){var c;var d=new _.iLb;d=_.w(d,1,Number(b.quotaBytesTotal));d=_.w(d,2,Number(b.quotaBytesUsed));d=_.w(d,3,Number(b.quotaBytesUsedAggregate));d=_.w(d,4,Number(b.quotaBytesUsedInTrash));d=_.NEc(_.MEc(_.LEc(_.KEc(d,
GCc(b.quotaBytesByService||[])),b.quotaType?vUc.get(b.quotaType):void 0),Number(b.quotaBytesTotal)),"-1"===b.quotaBytesTotal?-1:Math.max(Number(b.quotaBytesTotal)-Number(b.quotaBytesUsedAggregate),0));var e=Number(b.quotaBytesUsedAggregate)-ICc(b);d=_.w(d,9,e);d=_.OEc(d,Number(b.quotaBytesUsedAggregate));d=_.w(d,11,Number(b.quotaBytesUsedInTrash));d=_.w(d,13,_.KBc(Number(b.quotaBytesUsedAggregate),Number(b.quotaBytesTotal)));d=_.PEc(d,wUc.get(b.quotaStatus)||0);if(b.graceQuotaInfo&&b.graceQuotaInfo.endDate){e=
new _.hLb;var f=_.W7a(new Date(b.graceQuotaInfo.endDate));e=_.I(e,1,f);e=_.w(e,2,Number(b.graceQuotaInfo.additionalQuotaBytes));_.I(d,12,e)}if(null===(c=_.qK(a.O))||void 0===c?0:_.Q(c,16,!1)){var h;(a=d.LJ())&&(null===(h=null===b||void 0===b?void 0:b.graceQuotaInfo)||void 0===h?0:h.gracePeriodActive)&&a.setActive(!!b.graceQuotaInfo.gracePeriodActive);h=_.w(d,16,Number(b.individualQuotaBytesTotal));h=_.w(h,17,_.KBc(Number(b.individualQuotaBytesUsedAggregate),Number(b.individualQuotaBytesTotal)));b=
_.w(h,9,Number(b.individualQuotaBytesUsedAggregate))}else b=d;return b},wUc=new Map([["softLimitExceeded",2],["hardLimitExceeded",3],["underLimit",1]]),HCc=new Set(["POOLED_STORAGE","FAMILY"]),sUc=new Map([["isInTrial",1],["hasPaidContract",2],["noSubscription",3],["trialExpired",4]]),FCc=new Map([["DRIVE",1],["FAMILY",4],["GMAIL",2],["PHOTOS",3],["POOLED_STORAGE",5]]),vUc=new Map([["LIMITED",1],["UNLIMITED",2],["POOLED",3]]),tUc=new Map([["unknown",0],["requireLessSecureLinks",1],["removeLessSecureLinks",
2],["userCanChoose",3]]);
var xUc={TYPE_UNSPECIFIED:0,MOBILE:1,SYNC_CLIENT:2,APP:3},yUc={TYPE_UNSPECIFIED:0,MY_DRIVE_ROOT:1,SHARED_DRIVE_ROOT:2,STANDARD_FOLDER:3},zUc={TYPE_UNSPECIFIED:0,USER_DELETION:1,TRASH_AUTO_PURGE:2,MULTIPARENTING_MIGRATION:4},AUc={TYPE_UNSPECIFIED:0,TRASH:1,PERMANENT_DELETE:2},BUc={TYPE_UNSPECIFIED:0,UNTRASH:1,REVIVE:2},CUc={ROLE_UNSPECIFIED:0,OWNER:1,ORGANIZER:2,FILE_ORGANIZER:3,EDITOR:4,COMMENTER:5,VIEWER:6,PUBLISHED_VIEWER:7},DUc={SUBTYPE_UNSPECIFIED:0,ADDED:1,DELETED:2,REPLY_ADDED:3,REPLY_DELETED:4,
RESOLVED:5,REOPENED:6},EUc={SUBTYPE_UNSPECIFIED:0,ADDED:1,DELETED:2,REPLY_ADDED:3,REPLY_DELETED:4,RESOLVED:5,REOPENED:6,REASSIGNED:7},FUc={SUBTYPE_UNSPECIFIED:0,ADDED:1,DELETED:2,REPLY_ADDED:3,REPLY_DELETED:4,ACCEPTED:7,REJECTED:8,ACCEPT_DELETED:9,REJECT_DELETED:10},GUc={TYPE_UNSPECIFIED:0,FLAGGED:1,CLEARED:2},HUc={TYPE_UNSPECIFIED:0,LOADED_FOR_VIEW:1,VIEWED_MORE_CONTENT:2,OPEN_WITH_APP_INITIATED:3},IUc={DOMAIN_VISIBILITY_UNKNOWN:0,DOMAIN_VISIBILITY_CONSUMER:1,DOMAIN_VISIBILITY_SAME_DOMAIN:2,DOMAIN_VISIBILITY_ALL_DOMAINS:3,
DOMAIN_VISIBILITY_RESTRICTED:4},JUc={NAMED_PARTY_UNKNOWN:0,NAMED_PARTY_UNNAMED:1,NAMED_PARTY_NAMED:2},KUc={TYPE_UNSPECIFIED:0,DOWNLOADED:1,DOWNLOAD_INITIATED:2,PRINT_INITIATED:3},LUc={UNSPECIFIED_REFERENCE_TYPE:0,LINK:1,DISCUSS:2},MUc={FEATURE_UNSPECIFIED:0,SHARING_OUTSIDE_DOMAIN:1,DIRECT_SHARING:2,ITEM_DUPLICATION:3,DRIVE_FILE_STREAM:4},NUc={RESTRICTION_UNSPECIFIED:0,UNRESTRICTED:1,FULLY_RESTRICTED:2},OUc={STATUS_UNSPECIFIED:0,IN_PROGRESS:1,COMPLETED:2,CANCELLED:3},PUc={DECISION_UNSPECIFIED:0,APPROVED:1,
DECLINED:2},QUc={TYPE_UNSPECIFIED:0,LABEL_ADDED:1,LABEL_REMOVED:2,LABEL_FIELD_VALUE_CHANGED:3},RUc={PUBLISH_MODE_UNSPECIFIED:0,NONE:1,FIXED:2,AUTO:3},SUc={REASON_UNSPECIFIED:0,ORPHAN_REPARENTED:1},ZUc=function(a){return a.map(function(b){var c=new _.ZPc;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=TUc(e);_.I(c,2,d);break;case "actors":d=UUc(e);_.Lj(c,3,d);break;case "actions":d=VUc(e);_.Lj(c,
4,d);break;case "targets":d=WUc(e);_.Lj(c,5,d);break;case "timestamp":c.O(XUc(e));break;case "timeRange":d=YUc(e),_.Xj(c,7,_.YM,d)}}return c})},VUc=function(a){return a.map(function(b){var c=new _.WPc;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=TUc(e);_.I(c,1,d);break;case "source":d=new POc;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":_.ik(d,2,xUc[h]);break;case "appId":_.hk(d,1,h)}}_.I(c,2,d);break;case "actor":d=$Uc(e);_.I(c,3,d);break;case "target":d=aVc(e);_.I(c,4,d);break;case "timestamp":c.O(XUc(e));break;case "timeRange":d=YUc(e),_.Xj(c,6,_.XPc,d)}}return c})},WUc=function(a){return a.map(function(b){return aVc(b)})},cVc=function(a){return a.map(function(b){return bVc(b)})},dVc=function(a){return a.map(function(b){var c=new _.uOc;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 "parent":c.tg(bVc(e));break;case "shortcut":d=bVc(e),_.I(c,2,d)}}return c})},aVc=function(a){var b=new _.SOc;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=eVc(d);_.Xj(b,1,_.NM,c);break;case "drive":c=new _.QOc;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.hd(f);
break;case "title":c.setTitle(f);break;case "root":e=eVc(f),_.I(c,3,e)}}_.Xj(b,5,_.NM,c);break;case "fileComment":c=new _.ROc;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":_.hk(c,1,f);break;case "legacyDiscussionId":_.hk(c,2,f);break;case "linkToDiscussion":_.hk(c,3,f);break;case "parent":c.tg(eVc(f))}_.Xj(b,3,_.NM,c)}}return b},bVc=function(a){var b=new _.GM;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 dOc;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.hd(f);break;case "title":c.setTitle(f);break;case "driveFile":e=c;f=new bOc;_.Xj(e,8,cOc,f);break;case "driveFolder":e=fVc(f);_.Xj(c,9,cOc,e);break;case "driveShortcut":e=gVc(f),_.Xj(c,10,cOc,e)}}_.Xj(b,1,eOc,c);break;case "drive":c=hVc(d),_.Xj(b,3,eOc,c)}}return b},
eVc=function(a){var b=new _.aOc;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.hd(d);break;case "title":b.setTitle(d);break;case "mimeType":_.hk(b,6,d);break;case "version":_.gk(b,5,d);break;case "owner":c=new XNc;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=iVc(f);_.I(c,3,e);break;case "user":e=lN(f);_.Xj(c,
1,_.WNc,e);break;case "drive":e=hVc(f),_.Xj(c,4,_.WNc,e)}}_.I(b,7,c);break;case "driveFile":c=new bOc;_.Xj(b,8,YNc,c);break;case "driveFolder":c=fVc(d);_.Xj(b,9,YNc,c);break;case "driveShortcut":c=gVc(d),_.Xj(b,10,YNc,c)}}return b},hVc=function(a){var b=new VNc;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.hd(d);break;case "title":b.setTitle(d)}}return b},fVc=function(a){var b=new ZNc;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":_.ik(b,6,yUc[d])}}return b},gVc=function(a){var b=new $Nc;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":_.hk(b,1,d);break;case "targetMimeType":_.hk(b,2,d)}}return b},UUc=function(a){return a.map(function(b){return $Uc(b)})},$Uc=function(a){var b=new _.OOc;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=lN(d);_.Xj(b,1,_.MM,c);break;case "anonymous":c=new LOc;_.Xj(b,2,_.MM,c);break;case "impersonation":c=new _.MOc;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=lN(f),_.I(c,1,e)}}_.Xj(b,3,_.MM,c);break;case "system":c=new _.NOc;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":_.ik(c,1,zUc[f])}_.Xj(b,4,_.MM,c);break;case "administrator":c=new _.KOc,_.Xj(b,5,_.MM,c)}}return b},jVc=function(a){return a.map(function(b){return lN(b)})},lN=function(a){var b=new _.CNc;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 _.ANc;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":_.hk(c,1,f);break;case "isCurrentUser":_.fk(c,2,f);break;case "displayName":_.hk(c,3,f);break;case "photoUrl":c.Nn(f)}}_.Xj(b,2,_.zNc,c);break;case "unknownUser":c=new DNc;_.Xj(b,4,_.zNc,c);break;case "deletedUser":c=new _.BNc,_.Xj(b,3,_.zNc,c)}}return b},XUc=function(a){var b=(new Date(a)).getTime();a=Math.floor(b/1E3);b=b%1E3*1E6;return _.V7a((new _.Ky).setSeconds(a),b)},YUc=function(a){var b=new _.XM;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.pY(XUc(d));break;case "endTime":b.BO(XUc(d))}}return b},iVc=function(a){var b=new _.UNc;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.hd(d);break;case "legacyId":_.hk(b,3,d);break;case "audienceDisplayName":_.hk(b,4,d)}}return b},TUc=function(a){for(var b=new _.LM,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 _.hOc,l=_.m(Object.entries(h)),p=l.next();!p.done;p=l.next()){var q=_.m(p.value),r=q.next().value,v=q.next().value;switch(r){case "new":var z=k,A=new iOc;_.Xj(z,1,_.fOc,A);break;case "upload":var C=k,G=new jOc;_.Xj(C,2,_.fOc,G);break;case "copy":for(var H=v,L=new _.gOc,M=_.m(Object.entries(H)),R=M.next();!R.done;R=M.next()){var V=_.m(R.value),ha=V.next().value,ba=V.next().value;switch(ha){case "originalObject":var oa=
bVc(ba);_.I(L,1,oa)}}_.Xj(k,3,_.fOc,L)}}_.Xj(b,1,_.KM,k);break;case "edit":var qa=new oOc;_.Xj(b,2,_.KM,qa);break;case "move":for(var Ba=new _.wOc,Ka=_.m(Object.entries(h)),ib=Ka.next();!ib.done;ib=Ka.next()){var Xa=_.m(ib.value),Hb=Xa.next().value,$b=Xa.next().value;switch(Hb){case "addedParents":var Bc=cVc($b);_.Lj(Ba,1,Bc);break;case "removedParents":var td=cVc($b);_.Lj(Ba,2,td);break;case "fromOwnershipTransfer":_.fk(Ba,3,$b);break;case "reparents":var Xd=$b.map(kVc);_.Lj(Ba,4,Xd);break;case "multiparentingMigration":for(var Jd=
$b,qf=new _.vOc,ud=_.m(Object.entries(Jd)),Cb=ud.next();!Cb.done;Cb=ud.next()){var ne=_.m(Cb.value),Xg=ne.next().value,se=ne.next().value;switch(Xg){case "removedParents":var li=cVc(se);_.Lj(qf,2,li);break;case "migratedParents":var Wi=dVc(se);_.Lj(qf,1,Wi)}}_.I(Ba,5,qf)}}_.Xj(b,3,_.KM,Ba);break;case "rename":for(var vf=new _.COc,Ek=_.m(Object.entries(h)),Vh=Ek.next();!Vh.done;Vh=Ek.next()){var Vf=_.m(Vh.value),Yd=Vf.next().value,Yg=Vf.next().value;switch(Yd){case "oldTitle":_.hk(vf,1,Yg);break;case "newTitle":_.hk(vf,
2,Yg)}}_.Xj(b,4,_.KM,vf);break;case "delete":for(var Nh=new _.mOc,yi=_.m(Object.entries(h)),$k=yi.next();!$k.done;$k=yi.next()){var Wn=_.m($k.value),Am=Wn.next().value,Dh=Wn.next().value;switch(Am){case "type":_.ik(Nh,1,AUc[Dh])}}_.Xj(b,5,_.KM,Nh);break;case "restore":for(var al=new _.DOc,jk=_.m(Object.entries(h)),Zg=jk.next();!Zg.done;Zg=jk.next()){var Pj=_.m(Zg.value),sj=Pj.next().value,kk=Pj.next().value;switch(sj){case "type":_.ik(al,1,BUc[kk])}}_.Xj(b,6,_.KM,al);break;case "permissionChange":for(var Wh=
new _.zOc,Qj=_.m(Object.entries(h)),Rj=Qj.next();!Rj.done;Rj=Qj.next()){var tj=_.m(Rj.value),lk=tj.next().value,bi=tj.next().value;switch(lk){case "addedPermissions":var Bm=lVc(bi);_.Lj(Wh,1,Bm);break;case "removedPermissions":var Sj=lVc(bi);_.Lj(Wh,2,Sj);break;case "resharedPermissions":var mk=lVc(bi);_.Lj(Wh,3,mk);break;case "otherActivePermissions":var Cl=lVc(bi);_.Lj(Wh,4,Cl)}}_.Xj(b,7,_.KM,Wh);break;case "comment":for(var Tj=new _.TNc,wn=_.m(Object.entries(h)),bl=wn.next();!bl.done;bl=wn.next()){var cl=
_.m(bl.value),Af=cl.next().value,Uj=cl.next().value;switch(Af){case "post":for(var em=Uj,Dl=new _.QNc,fm=_.m(Object.entries(em)),qc=fm.next();!qc.done;qc=fm.next()){var Vj=_.m(qc.value),Oh=Vj.next().value,nk=Vj.next().value;switch(Oh){case "subtype":_.ik(Dl,1,DUc[nk])}}_.Xj(Tj,1,_.PNc,Dl);break;case "assignment":for(var Ph=Uj,mi=new _.RNc,eg=_.m(Object.entries(Ph)),Fk=eg.next();!Fk.done;Fk=eg.next()){var Hp=_.m(Fk.value),Qh=Hp.next().value,Eh=Hp.next().value;switch(Qh){case "subtype":_.ik(mi,1,EUc[Eh]);
break;case "assignedUser":var xn=lN(Eh);_.I(mi,7,xn)}}_.Xj(Tj,2,_.PNc,mi);break;case "suggestion":for(var uj=Uj,yn=new _.SNc,gm=_.m(Object.entries(uj)),Gk=gm.next();!Gk.done;Gk=gm.next()){var Cm=_.m(Gk.value),Po=Cm.next().value,Ip=Cm.next().value;switch(Po){case "subtype":_.ik(yn,1,FUc[Ip])}}_.Xj(Tj,3,_.PNc,yn);break;case "mentionedUsers":var rr=jVc(Uj);_.Lj(Tj,7,rr)}}_.Xj(b,8,_.KM,Tj);break;case "dlpChange":for(var Nm=new _.lOc,lm=_.m(Object.entries(h)),tk=lm.next();!tk.done;tk=lm.next()){var dp=
_.m(tk.value),Up=dp.next().value,Kq=dp.next().value;switch(Up){case "type":_.ik(Nm,1,GUc[Kq])}}_.Xj(b,9,_.KM,Nm);break;case "view":for(var Nr=new JOc,ku=_.m(Object.entries(h)),Or=ku.next();!Or.done;Or=ku.next()){var Zs=_.m(Or.value),qB=Zs.next().value,rB=Zs.next().value;switch(qB){case "type":_.ik(Nr,1,HUc[rB]);break;case "viewHistoryVisibility":for(var Py=rB,lu=new IOc,Lq=_.m(Object.entries(Py)),Mq=Lq.next();!Mq.done;Mq=Lq.next()){var sB=_.m(Mq.value),ND=sB.next().value,px=sB.next().value;switch(ND){case "domainPolicyVisibilityState":_.ik(lu,
1,IUc[px]);break;case "namedPartyState":_.ik(lu,2,JUc[px])}}_.I(Nr,2,lu)}}_.Xj(b,10,_.KM,Nr);break;case "download":for(var Qy=new nOc,qx=_.m(Object.entries(h)),rx=qx.next();!rx.done;rx=qx.next()){var sx=_.m(rx.value),$s=sx.next().value,at=sx.next().value;switch($s){case "type":_.ik(Qy,1,KUc[at])}}_.Xj(b,11,_.KM,Qy);break;case "reference":for(var il=new _.uNc,Pr=_.m(Object.entries(h)),Pl=Pr.next();!Pl.done;Pl=Pr.next()){var tB=_.m(Pl.value),OD=tB.next().value,Ry=tB.next().value;switch(OD){case "type":_.ik(il,
1,LUc[Ry]);break;case "context":for(var Li=Ry,Sy=new tNc,Nq=_.m(Object.entries(Li)),Vp=Nq.next();!Vp.done;Vp=Nq.next()){var HG=_.m(Vp.value),W7=HG.next().value,cK=HG.next().value;switch(W7){case "description":Sy.Yl(cK);break;case "url":_.hk(Sy,2,cK)}}_.I(il,2,Sy)}}_.Xj(b,12,_.KM,il);break;case "settingsChange":for(var Kg=new _.GOc,fT=_.m(Object.entries(h)),tx=fT.next();!tx.done;tx=fT.next()){var mm=_.m(tx.value),uB=mm.next().value,gT=mm.next().value;switch(uB){case "restrictionChanges":var uO=mVc(gT);
_.Lj(Kg,1,uO)}}_.Xj(b,13,_.KM,Kg);break;case "approvalChange":for(var mo=new _.GNc,g_=_.m(Object.entries(h)),vO=g_.next();!vO.done;vO=g_.next()){var mu=_.m(vO.value),PD=mu.next().value,Ty=mu.next().value;switch(PD){case "approvalName":_.hk(mo,2,Ty);break;case "approvalEventNames":_.Jj(mo,3,Ty);break;case "initiator":var hT=lN(Ty);_.I(mo,4,hT);break;case "reviewers":var X7=jVc(Ty);_.Lj(mo,5,X7);break;case "status":mo.Dc(OUc[Ty]);break;case "dueTime":var h_=XUc(Ty);_.I(mo,7,h_);break;case "approvalRequested":var Uy=
mo,ux=new HNc;_.Xj(Uy,8,_.FM,ux);break;case "approvalCancelled":var dK=mo,Y7=new INc;_.Xj(dK,9,_.FM,Y7);break;case "reviewerResponded":for(var iT=Ty,wO=new _.FNc,i_=_.m(Object.entries(iT)),vB=i_.next();!vB.done;vB=i_.next()){var j_=_.m(vB.value),k_=j_.next().value,l_=j_.next().value;switch(k_){case "reviewerDecision":_.ik(wO,1,PUc[l_])}}_.Xj(mo,10,_.FM,wO);break;case "commentAdded":var zB=mo,$y=new JNc;_.Xj(zB,11,_.FM,$y);break;case "reviewersChanged":for(var GO=Ty,PG=new LNc,GT=_.m(Object.entries(GO)),
lK=GT.next();!lK.done;lK=GT.next()){var C8=_.m(lK.value),Vza=C8.next().value,D8=C8.next().value;switch(Vza){case "reviewerChanges":var E8=nVc(D8);_.Lj(PG,1,E8)}}_.Xj(mo,12,_.FM,PG);break;case "dueTimeChanged":for(var grc=Ty,UAb=new NNc,Wza=_.m(Object.entries(grc)),Xza=Wza.next();!Xza.done;Xza=Wza.next()){var VAb=_.m(Xza.value),WAb=VAb.next().value,m_a=VAb.next().value;switch(WAb){case "oldDueTime":var UD=XUc(m_a);_.I(UAb,1,UD)}}_.Xj(mo,13,_.FM,UAb)}}_.Xj(b,18,_.KM,mo);break;case "lock":var XAb=new qOc;
_.Xj(b,15,_.KM,XAb);break;case "unlock":var YAb=new HOc;_.Xj(b,16,_.KM,YAb);break;case "appliedLabelChange":for(var n_a=new _.yNc,o_a=_.m(Object.entries(h)),Yza=o_a.next();!Yza.done;Yza=o_a.next()){var p_a=_.m(Yza.value),q_a=p_a.next().value,ZAb=p_a.next().value;switch(q_a){case "changes":var $Ab=oVc(ZAb);_.Lj(n_a,1,$Ab)}}_.Xj(b,19,_.KM,n_a);break;case "publishChange":for(var Zza=new _.BOc,aBb=_.m(Object.entries(h)),E_=aBb.next();!E_.done;E_=aBb.next()){var Pia=_.m(E_.value),HT=Pia.next().value,bBb=
Pia.next().value;switch(HT){case "oldPublishState":var hrc=pVc(bBb);_.I(Zza,1,hrc);break;case "newPublishState":var irc=pVc(bBb);_.I(Zza,2,irc)}}_.Xj(b,20,_.KM,Zza);break;case "linkShareMetadataChange":for(var r_a=new _.pOc,mK=_.m(Object.entries(h)),s_a=mK.next();!s_a.done;s_a=mK.next()){var $za=_.m(s_a.value),cBb=$za.next().value,t_a=$za.next().value;switch(cBb){case "securityUpdateEnabled":_.fk(r_a,1,t_a)}}_.Xj(b,21,_.KM,r_a)}}return b},kVc=function(a){var b=new _.sOc;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":_.ik(b,1,SUc[d])}}return b},lVc=function(a){return a.map(function(b){var c=new _.JM;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":_.ik(c,1,CUc[e]);break;case "user":d=lN(e);_.Xj(c,2,_.IM,d);break;case "group":d=new _.HM;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":_.hk(d,1,h);break;case "title":d.setTitle(h)}}_.Xj(c,3,_.IM,d);break;case "domain":d=iVc(e);_.Xj(c,4,_.IM,d);break;case "anyone":d=new xOc;_.Xj(c,5,_.IM,d);break;case "allowDiscovery":_.fk(c,6,e)}}return c})},mVc=function(a){return a.map(function(b){var c=new _.FOc;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":_.ik(c,1,MUc[e]);break;case "newRestriction":_.ik(c,
2,NUc[e])}}return c})},nVc=function(a){return a.map(function(b){var c=new MNc;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=lN(e);_.I(c,3,d);break;case "addedReviewer":d=lN(e),_.I(c,4,d)}}return c})},oVc=function(a){return a.map(function(b){var c=new _.xNc;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":_.hk(c,
1,e);break;case "types":d=qVc(e),_.Jj(c,2,d)}}return c})},qVc=function(a){return a.map(function(b){return QUc[b]})},pVc=function(a){var b=new _.AOc;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":_.ik(b,1,RUc[d]);break;case "signinRequired":_.fk(b,2,d);break;case "publishedTime":c=XUc(d),_.I(b,3,c)}}return b};
var sVc=function(a){return(a.items||[]).map(function(b){return rVc(b)})},tVc=function(a,b){var c=new oPc;b=_.w(c,4,b);a&&"drive#app"==a.kind&&(a=rVc(a),_.I(b,2,a));return b},rVc=function(a){_.iL(["drive#app"],a);var b=(new _.YL).Ob(a.id);b=_.w(b,3,a.useByDefault).hd(a.name);b=_.w(b,7,a.openUrlTemplate);b=DHc(CHc(b,a.primaryMimeTypes),a.secondaryMimeTypes);b=_.w(b,8,a.createUrl);b=_.w(b,9,a.createInFolderTemplate);b=_.w(b,10,a.objectType);b=_.w(b,11,a.supportsCreate);b=_.w(b,12,a.supportsImport);b=
_.w(b,13,a.supportsMultiOpen);b=_.w(b,27,a.supportsOfflineCreate);b=_.w(b,14,a.installed);b=_.w(b,15,a.authorized);b=_.w(b,16,a.productUrl);b=_.Jj(b,17,a.primaryFileExtensions);b=_.Jj(b,18,a.secondaryFileExtensions);b=_.w(b,19,a.shortDescription);b=_.w(b,20,a.longDescription);b=_.w(b,21,a.productId);b=_.w(b,22,a.removable);var c=uVc.get(a.type);b=_.w(b,23,c);b=_.w(b,25,a.hasAppData);b=_.w(b,26,Number(a.appDataQuotaBytesUsed));b=_.w(b,28,a.requiresAuthorizationBeforeOpenWith);b=_.w(b,30,a.hasDriveWideScope);
b=_.w(b,31,a.driveSource);b=_.w(b,32,a.driveBranded);b=_.w(b,33,a.hidden);b=_.w(b,34,a.supportsMobileBrowser);b=_.w(b,35,a.supportsTeamDrives);b=_.w(b,36,a.hasGsmListing);c=a.icons||[];for(var d=[],e=0;e<c.length;e++){var f=d,h=f.push,k=c[e],l=new _.xHc;l=_.w(l,3,k.iconUrl).setSize(k.size);k.category&&(k=vVc.get(k.category),_.w(l,1,k));h.call(f,l)}_.Lj(b,6,d);c=a.chromeExtensionIds||[];d=[];for(e=0;e<c.length;e++)d.push(c[e]);_.Jj(b,24,d);c=a.rankingInfo||{};a=new _.AHc;d=c.absoluteScore;null!=d&&
_.w(a,1,Number(d));d=wVc(c.mimeTypeScores||[]);_.Lj(a,2,d);c=wVc(c.fileExtensionScores||[]);_.Lj(a,3,c);_.I(b,29,a);return b},wVc=function(a){return a.map(function(b){var c=b.type;b=b.score;var d=new _.yHc;c=_.w(d,1,c);return _.w(c,2,Number(b))})},uVc=new Map([["WEB_ONLY",1],["WEB_AND_CHROME_EXTENSION",2],["CHROME_EXTENSION_ONLY",3]]),vVc=new Map([["application",1],["document",2],["documentShared",3]]);
var yVc=function(a){var b=new pQc;if(!a.backups)return b;a=a.backups.map(function(c){var d=(new _.OM).Ob(c.id).setTitle(c.title);d=_.w(d,3,_.jL(c.updateTime));var e=xVc.get(c.backupSource);d=_.w(d,4,e);d=_.w(d,5,c.iconUri);d=_.w(d,8,_.jL(c.expiryTime));d=_.w(d,9,"boolean"===typeof c.hasGoogleoneBackup?c.hasGoogleoneBackup:!1);if(1===d.oz())e=new UOc,e=_.w(e,1,c.whatsappOngoingBackupEnabled),c=_.w(e,2,c.whatsappPhoneNumber),_.I(d,6,c);else if(2===d.oz()){e=Number(c.deviceAndroidId);var f=new _.TOc;
f=_.w(f,1,c.deviceName);f=_.w(f,2,c.deviceModelName);c=_.w(f,3,c.shouldIncludeSpecialSyncItems);c=_.w(c,4,isNaN(e)?void 0:e);_.I(d,7,c)}return d});_.Lj(b,2,a);return b},AVc=function(a){var b=new lQc;if(!a.backupItems)return b;a=a.backupItems.map(function(c){var d=(new _.PM).Ob(c.id);var e=zVc.get(c.type);d=_.w(d,1,e).setTitle(c.title);d=_.w(d,4,c.iconUri);d=_.VOc(d.setSize(c.size?Number(c.size):void 0),_.jL(c.updateTime));d=_.w(d,7,c.hasCustomBehavior).Yl(c.description);return _.w(d,9,c.ongoingSyncEnabled)});
_.Lj(b,1,a);return b},xVc=new Map([["BACKUP_SOURCE_UNSPECIFIED",0],["BACKUP_SOURCE_WHATSAPP",1],["BACKUP_SOURCE_ANDROID",2]]),zVc=new Map([["TYPE_UNSPECIFIED",0],["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 BVc=function(a,b){this.H=a;this.O=b};
var CVc=new Map([["READ",2],["WRITE",3],["COMMENT",4]]),DVc=function(a,b,c){var d=c.itemId;c=c.driveItem;d=(new _.jl).Ob(d);c&&(_.JG(d.setTitle(c.title),c.mimeType),c.userCapabilities&&_.yK(d,_.Vzc(c.userCapabilities)));_.KK(b).includes(19)&&_.Rvc(d,!0);ILc(a,d,_.KK(b));_.Tvc(d,4);return d},GVc=function(a,b,c){for(var d=[],e=[],f={},h=_.m(c.item||[]),k=h.next();!k.done;f={zea:f.zea},k=h.next()){var l=k.value;if(l.person){f.zea=l.itemId;k=EVc(l.person).Ob(f.zea);var p={};l=_.m(l.childItem||[]);for(var q=
l.next();!q.done;p={Iqa:p.Iqa},q=l.next()){var r=q.value;e.some(function(v){return function(z){return z.getId()===v.zea}}(f))||e.push(k);p.Iqa=r.itemId;q=d.find(function(v){return function(z){return z.getId()===v.Iqa}}(p));void 0===q&&(q=DVc(a,b,r),d.push(q));r=uEc(tEc(sEc(new _.Una,k.clone()),FVc(r)),r.url);_.Yj(q,107,r,_.Una,void 0)}}}return gGc((new _.TK).Vw(d),e).nP(c.suggestionSessionId)},EVc=function(a){return _.fvc((new _.Sk).Ob(a.id).hd(a.displayName),a.emailAddress).Nn(a.photoUrl)},RVc=function(a){var b=
a.action;return b?b.map(function(c){var d=new _.vna,e=HVc(c);e&&_.Xj(d,2,_.Wk,e);(e=IVc(c))&&iDc(d,e);(e=JVc(c))&&_.Xj(d,4,_.Wk,e);(e=KVc(c))&&_.Xj(d,5,_.Wk,e);(e=LVc(c))&&_.Xj(d,6,_.Wk,e);(e=MVc(c))&&_.Xj(d,7,_.Wk,e);(e=NVc(c))&&_.Xj(d,8,_.Wk,e);(e=OVc(c))&&_.Xj(d,9,_.Wk,e);(e=PVc(c))&&_.Xj(d,10,_.Wk,e);(c=QVc(c))&&_.Xj(d,11,_.Wk,c);return d}):(a=mN(a),a=RDc([a]),[iDc(new _.vna,a)])},TVc=function(a){return(a.justification||[]).map(function(b){return SVc(b)})},mN=function(a){return(a=a.justification)?
SVc(a):null},SVc=function(a){var b=eDc(new _.Vk,UVc(a.displayText)),c=a.primaryPerson,d=a.allPeople;c?(c=EVc(c),_.Xj(b,3,_.una,c),fDc(b,[c])):d?(c=(d.person||[]).map(function(e){return EVc(e)}),d=dDc(c),_.Xj(b,4,_.una,d),fDc(b,c)):(c=(a.person||[]).map(function(e){return EVc(e)}),c.length&&(d=dDc(c),_.Xj(b,4,_.una,d),fDc(b,c)));_.w(b,5,_.jL(a.eventTime));gDc(b,UVc(a.justificationDescription));hDc(b,UVc(a.unstructuredJustificationDescription));return b},UVc=function(a){if(!a)return null;a=a.textSegment||
[];return aDc(new _.Pk,a.map(function(b){var c=(new _.Qk).lh(b.text),d=b.link;if(d){var e=new _.Rk;d=_.w(e,1,d.url)}else d=null;c=_.I(c,2,d);c=_.w(c,3,b.bold);return _.w(c,4,b.italic)}))},HVc=function(a){a=a.documentDocosAction;if(!a)return null;var b=GDc(new _.Dna,mN(a));FDc(b,(a.subAction||[]).map(function(c){var d=new _.Ena;c.reply?(c=new _.xna,_.Xj(d,1,_.Xk,c)):c.resolve?(c=new qDc,_.Xj(d,2,_.Xk,c)):c.reassign?(c=new oDc,_.Xj(d,3,_.Xk,c)):c.acceptSuggestion?(c=new jDc,_.Xj(d,4,_.Xk,c)):c.rejectSuggestion?
(c=new pDc,_.Xj(d,5,_.Xk,c)):c.openThread&&(c=new _.wna,_.Xj(d,6,_.Xk,c));return d}));_.w(b,2,a.discussionId);_.w(b,3,a.postId);HDc(b,UVc(a.anchorText));return b},JVc=function(a){a=a.documentShareAction;if(!a)return null;var b=LDc(new _.Gna,mN(a));KDc(b,(a.subAction||[]).map(function(c){var d=new MDc;c.suggestedShare?(c=new uDc,_.Xj(d,1,nEc,c)):c.responseToRequest&&(c=new rDc,_.Xj(d,2,nEc,c));return d}));IDc(b,(a.sharee||[]).map(function(c){return EVc(c)}));JDc(b,CVc.get(a.shareeRole));return b},
IVc=function(a){a=a.documentViewAction;if(!a)return null;var b=RDc(TVc(a));QDc(b,(a.subAction||[]).map(function(c){var d=new TDc;c.open?d.Cg(new lDc):c.reviewEdits&&(c=new sDc,_.Xj(d,2,SDc,c));return d}));return b},KVc=function(a){a=a.emailViewAction;if(!a)return null;var b=cEc(new aEc,mN(a));bEc(b,(a.subAction||[]).map(function(c){var d=new eEc;c.open&&d.Cg(new mDc);return d}));return b},LVc=function(a){a=a.calendarEventAction;if(!a)return null;var b=ADc(zDc(yDc(new _.zna,a.eventId),mN(a)),a.guestCount);
xDc(b,(a.subAction||[]).map(function(c){var d=new BDc;if(c.viewCalendarEvent){var e=new vDc;_.Xj(d,1,lEc,e)}c.shareWithAttendees&&(e=new tDc,_.Xj(d,2,lEc,e));c.present&&(e=new nDc,_.Xj(d,3,lEc,e));c.openDocument&&(c=new lDc,_.Xj(d,4,lEc,c));return d}));return b},MVc=function(a){a=a.documentWorkspaceAction;if(!a)return null;var b=YDc(XDc(new VDc,a.workspaceId),mN(a));WDc(b,(a.subAction||[]).map(function(c){var d=new ZDc;c.addToWorkspace&&(c=new kDc,_.Xj(d,1,pEc,c));return d}));return b},NVc=function(a){a=
a.documentTopicAction;if(!a)return null;var b=ODc(new _.Ina,mN(a));NDc(b,(a.subAction||[]).map(function(c){var d=new PDc;c.openDocument&&(c=new lDc,_.Xj(d,1,oEc,c));return d}));return b},OVc=function(a){a=a.popularDocumentAction;if(!a)return null;var b=jEc(new _.Ona,mN(a));iEc(b,(a.subAction||[]).map(function(c){var d=new kEc;c.openDocument&&(c=new lDc,_.Xj(d,1,rEc,c));return d}));return b},PVc=function(a){a=a.collaboratorActivityAction;if(!a)return null;var b=DDc(new _.Bna,mN(a));CDc(b,(a.subAction||
[]).map(function(c){var d=new EDc;c.openDocument&&(c=new lDc,_.Xj(d,1,mEc,c));return d}));return b},QVc=function(a){a=a.formResponseAction;if(!a)return null;var b=gEc(new _.Mna,TVc(a));fEc(b,(a.subAction||[]).map(function(c){var d=new hEc;c.openDocument?(c=new lDc,_.Xj(d,1,qEc,c)):c.viewResponses&&(c=new wDc,_.Xj(d,2,qEc,c));return d}));return b},FVc=function(a){a=((a.justification||{}).displayText||{}).textSegment||[];return 0<a.length?(a[0]||{}).text||"":""};
var VVc=function(a,b){this.H=a;this.O=b},XVc=function(a,b,c){_.iL(["drive#categoryMetadataList"],c);var d=new lM,e=Object.values(c.categoryMetadata||{});qJc(d,e.map(function(f){return WVc(a,f,b.Ac())}));d.Dc(1);return new _.WK(d,jNc(c))},ZVc=function(a,b){var c=new TM;xPc(c,(b.categories||[]).map(function(d){return YVc(a,d)}));c.Dc(1);return new WIc(c,jNc(b))},WVc=function(a,b,c){_.iL(["drive#categoryMetadata"],b);c=nHc((new WL).hd(b.categoryName),c);b=Object.values(b.attributeValues||[]);mHc(c,b.map(function(d){return $Vc(a,
d)}).filter(function(d){return null!==d}));return c},YVc=function(a,b){var c,d=fHc(XGc(cHc(bHc(aHc(WGc(VGc((new SL).hd(b.name),b.categoryName),b.latestName).setTitle(b.title).Yl(b.description),_.jL(b.createTime)),_.jL(b.updateTime)),_.jL(b.publishTime)),(null!==(c=b.attributes)&&void 0!==c?c:[]).map(function(e){a:{var f=e.type;var h=(new SGc).Ob(e.id);h=_.w(h,2,e.queryGuid);h=_.w(h,3,e.helpText);h=_.w(h,4,e.displayName);if(e.attributeDisplayHints){var k=aWc(e.attributeDisplayHints);_.I(h,5,k)}if(e.capabilities){k=
e.capabilities;var l=new AGc;l=_.w(l,1,k.canSearch);k=_.w(l,2,k.canWrite);_.I(h,6,k)}if(f&&(_.w(h,7,bWc[f]),e=e[cWc(f)+"Options"],!dWc(a,h,f,e))){f=null;break a}f=h}return f}).filter(function(e){return null!==e})),b.customer);b.createdBy&&YGc(d,eWc(b.createdBy));b.ySb&&ZGc(d,eWc(b.ySb));b.publishedBy&&$Gc(d,eWc(b.publishedBy));b.displayHints&&dHc(d,aWc(b.displayHints));b.capabilities&&eHc(d,fWc(b.capabilities));b.learnMoreUri&&_.w(d,15,b.learnMoreUri);return d},$Vc=function(a,b){_.iL(["drive#categoryAttributeValue"],
b);var c=(new TL).Ob(b.id);if(b.userScoped)b=Object.values(b.userScoped),kHc(c,b.map(function(d){_.iL(["drive#userScopedAttributeValue"],d);var e=new hHc,f=_.kL(a.H,d.scopedUser);e=_.I(e,1,f);return a.Jb(e,d)?e:null}).filter(function(d){return null!==d})),c.$A(9);else if(!a.Jb(c,b))return null;return c},aWc=function(a){var b=new zGc;b=_.w(b,1,a.disabled);b=_.w(b,2,a.hidden);b=_.w(b,3,a.activatedInAllDrives);return _.w(b,4,!!a.required)},fWc=function(a){var b=new UGc;b=_.w(b,1,a.canSearch);b=_.w(b,
2,a.canApply);b=_.w(b,4,a.canRemove);return _.w(b,3,a.canManageSharedDriveActivation)},dWc=function(a,b,c,d){return gWc(a,function(){hWc(a)[c](b,d)},c,b)},iWc=function(a){a=void 0===a?{}:a;var b=new DGc;b=_.w(b,1,a.minSize);return _.w(b,2,a.maxSize)},kWc=function(a){var b=new JGc;KGc(b,(a.choices||[]).map(function(c){var d=new IGc;d=_.w(d,1,c.label).Jb(c.value);c.description&&d.Yl(c.description);if(c.capabilities){var e=c.capabilities;var f=new GGc;f=_.w(f,1,e.canSearch);e=_.w(f,2,e.canSelect);_.I(d,
3,e)}c.displayHints&&(c=c.displayHints,e=new HGc,e=_.w(e,1,c.disabled),e=_.w(e,2,c.hidden),c.badgePriority&&_.w(e,5,c.badgePriority),c.badgeColors&&(f=jWc(c.badgeColors),_.I(e,3,f)),c.darkBadgeColors&&(c=jWc(c.darkBadgeColors),_.I(e,4,c)),_.I(d,4,e));return d}));return b},jWc=function(a){var b=new yGc;var c=lWc(a.backgroundColor);b=_.I(b,1,c);c=lWc(a.foregroundColor);b=_.I(b,2,c);a=lWc(a.soloColor);return _.I(b,3,a)},lWc=function(a){var b=new _.pD;b=_.rb(b,1,a.red,0);b=_.rb(b,2,a.green,0);b=_.rb(b,
3,a.blue,0);a.alpha&&(a=(new ZEc).Jb(a.alpha),_.I(b,4,a));return b},mWc=function(a){var b=new NGc;b=_.w(b,1,a.showThousandsSeparator);b=_.w(b,2,Number(a.minValue));return _.w(b,3,Number(a.maxValue))},nWc=function(a){var b=(new _.noa).setYear(a.year).setMonth(a.month);return _.w(b,3,a.day)};VVc.prototype.Jb=function(a,b){var c=this,d=b.valueType.replace(/([A-Z])/g,"_$1").toLowerCase().toUpperCase();a.$A(bWc[d]);return gWc(this,function(){oWc(c)[d](a,b[b.valueType])},b.valueType)};
var gWc=function(a,b,c,d){try{b()}catch(e){if(e instanceof TypeError&&!(d instanceof PGc))return GFc(a.O,"drive.ds.response.MetadataParser","Response Parser: Error parsing type "+c+"."),!1;throw e;}return!0},eWc=function(a){return _.dvc(1).Ob(a.personName.split("/")[1])},cWc=function(a){return a.toLowerCase().replace(/_([a-z])/g,function(b,c){return c.toUpperCase()})},hWc=function(a){return{BOOLEAN:function(b,c){var d=b.t3a;var e=new EGc;e=_.w(e,1,c.trueLabel);c=_.w(e,2,c.falseLabel);return d.call(b,
c)},TEXT:function(b,c){return b.cMa(iWc(c))},TEXT_LIST:function(b,c){var d=b.r4a;var e=new MGc;e=_.w(e,1,c.maxEntries);c=iWc(c.options);c=_.I(e,2,c);return d.call(b,c)},LONG_TEXT:function(b,c){var d=new CGc;d=_.w(d,1,c.minSize);c=_.w(d,2,c.maxSize);return _.Xj(b,10,QL,c)},SELECTION:function(b,c){return b.e4a(kWc(c))},SELECTION_LIST:function(b,c){var d=b.d4a;var e=new LGc;e=_.w(e,1,c.maxEntries);c=kWc(c.options);c=_.I(e,2,c);return d.call(b,c)},INTEGER:function(b,c){return b.G3a(mWc(c))},INTEGER_LIST:function(b,
c){var d=b.F3a;var e=new OGc;e=_.w(e,1,c.maxEntries);c=mWc(c.options);c=_.I(e,2,c);return d.call(b,c)},USER:function(b){return b.w4a(new QGc)},USER_LIST:function(b,c){var d=b.dMa,e=new RGc;c=_.w(e,1,c.maxEntries);e=new QGc;c=_.I(c,2,e);return d.call(b,c)},DATE:function(b,c){var d=b.bMa;var e=new BGc;e=_.w(e,4,c.dateFormat);var f=nWc(c.minValue);e=_.I(e,2,f);c=nWc(c.maxValue);c=_.I(e,3,c);return d.call(b,c)},USER_SCOPED:function(b,c){var d=new PGc;d=_.w(d,1,c.canReadCollaboratorValues);var e=c.subtype;
_.w(d,2,bWc[e]);var f=cWc(e)+"Options";dWc(a,d,e,c[f]);return _.Xj(b,16,QL,d)}}},oWc=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.Ioa(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.Eoa(c)},INTEGER:function(b,c){return b.setIntegerValue(parseInt(c,10))},INTEGER_LIST:function(b,c){return b.voa(c.map(function(d){return parseInt(d,
10)}))},USER:function(b,c){return b.setUserValue(_.kL(a.H,c))},USER_LIST:function(b,c){jHc(b,c.map(function(d){return _.kL(a.H,d)}))},DATE_STRING:function(b,c){return b.setDateStringValue(c)}}},bWc={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 qWc=function(a){a=a.personResponse||[];return zJc(new yJc,a.map(function(b){var c=b.person;b=vJc(new mM,b.personId);var d=b.hd;var e=c;e=void 0===e?{}:e;var f,h;e=e.metadata;e=null!==(h=null===(f=null===e||void 0===e?void 0:e.bestDisplayName)||void 0===f?void 0:f.displayName)&&void 0!==h?h:"";f=wJc(d.call(b,e),pWc(c));c=void 0===c?{}:c;c=c.photo?c.photo[0]:null;h=new uJc;c=_.w(h,1,c&&!c.isDefault?c.url:null);return _.I(f,4,c)}))},pWc=function(a){a=void 0===a?{}:a;var b;a=(a.email||[]).find(function(c){return"SIGNUP_EMAIL"===
c.classification&&!0===c.metadata.primary});return null!==(b=null===a||void 0===a?void 0:a.value)&&void 0!==b?b:""};
var rWc=function(a){this.H=a},tWc=function(a,b){_.iL(["drive#teamDriveList","drive#driveList"],b);return(b.items||[]).map(function(c){return sWc(a,c)})},sWc=function(a,b){_.iL(["drive#teamDrive","drive#drive"],b);var c=new _.Zna,d=b.colorRgb;d?(d=d.substring(1),d=/^[a-fA-F0-9]+$/.test(d)?parseInt(d,16):0):d=0;_.w(c,2,d);_.w(c,1,b.backgroundImageLink);_.w(c,3,b.trusted);_.w(c,5,b.backgroundImageGridViewLink);_.w(c,6,b.backgroundImageListViewLink);_.w(c,7,b.hidden);_.w(c,9,b.removeSecureLinkUpdateForAllFiles);
(d=b.categoryReferences)&&xBc(c,d.map(function(e){_.iL(["drive#driveCategoryReference"],e);var f=new _.gl;return _.w(f,1,e.category)}));c=_.$vc(_.Yvc(_.Xvc(_.Tvc(_.Uvc(wBc(_.JG((new _.jl).Ob(b.id).setTitle(b.name),"application/vnd.google-apps.folder"),c),b.id),2),b.primaryDomainName),b.organizationDisplayName),b.customerId);b.capabilities&&(d=_.rvc(_.Vzc(b.capabilities),!0),_.yK(c,d));b.permissionsSummary&&_.Vvc(c,cGc(a.H,b.permissionsSummary));b.restrictions&&zBc(c,uWc(b.restrictions));return c},
uWc=function(a){var b=new yEc;b=_.w(b,1,a.copyRequiresWriterPermission);b=_.w(b,2,a.disallowDriveFileStream);b=_.w(b,3,a.domainUsersOnly);"teamMembersOnly"in a&&_.w(b,4,a.teamMembersOnly);return b};
var vWc={DRIVE_FE:2,DRIVE_BE:4,EXPLORER:1,GENERAL:3,PSYNCHO:5,SLACK:6,DRIVE_BE_EX:7,DRIVE_SHARING:9,TEAMKIT:10},NCc=_.$a(vWc);
var wWc=function(a){_.iL(["drive#setting"],a);var b=new _.Yb;b=_.w(b,2,a.key);b=_.w(b,1,a.namespace?vWc[a.namespace]:void 0);return _.uBa(new _.pp,b).Jb(a.value)};
var yWc=function(a){_.iL(["drive#workspaceList"],a);var b=a.items||[];b=BJc(new nM,b.map(function(c){return xWc(c)}));return new _.ZK(b,jNc(a))},xWc=function(a){_.iL(["drive#workspace"],a);var b=(new _.GG).Ob(a.id).setTitle(a.title);b=_.w(b,3,_.jL(a.createdDate));return _.w(b,4,_.jL(a.modifiedDate)).Ld(a.state?zWc[a.state]:void 0)},AWc=function(a,b,c){var d=c.item||[];return _.cBc(_.bBc(new _.qL,d.map(function(e){return DVc(a,b,e)})),c.suggestionSessionId)},CWc=function(a,b,c){var d=c.item||[];return LHc(KHc(new $L,
d.map(function(e){return BWc(a,b,e)})),c.suggestionSessionId)},BWc=function(a,b,c){var d=c.driveWorkspace,e=c.childItem||[];return IHc(GHc(HHc(FHc(new ZL,c.predictionId).setTitle(d&&d.title),d&&d.workspaceToken),e.map(function(f){return DVc(a,b,f)})),mN(c))},DWc=function(a){var b=new _.wGc;a.kind&&(a=xWc(a),_.I(b,2,a));b.Dc(1);return b},zWc={active:1,archived:2};
var JCc={QUEUED:1,COUNTING:3,BUILDING:2,SUCCEEDED:4,FAILED:5};
var EWc=function(a,b,c,d){_.tAc.call(this,b);this.Mg=a;this.ka=c;this.O=d;this.W=null;this.ma=new qUc(this.V,b);this.H=new rWc(this.nF);this.ta=new BVc(this.nF,this.H)};_.K(EWc,_.tAc);var FWc=function(a){a.W||(a.W=new VVc(a.V,a.ka));return a.W};
EWc.prototype.ha=function(a,b){if(a instanceof _.uJ)var c=_.bAc(_.xAc(a));else{if(a instanceof _.vJ)var d=_.lL(this,a,b);else{if(a instanceof _.Fuc)var e=GWc(this,a.request,b);else{if(a instanceof _.wJ)var f=_.lL(this,a,b);else{if(a instanceof _.yJ){if(!b.json)throw _.mL();var h=XOc((new WOc).Dc(1),sWc(this.H,b.json))}else{if(a instanceof _.xJ)var k=_.lL(this,a,b);else{if(a instanceof _.PK)var l=new sHc;else{if(a instanceof _.AJ)var p=HWc(a,b);else{if(a instanceof _.BJ)var q=tVc(void 0,a.Nh());else{if(a instanceof
_.CJ)var r=new qQc;else{if(a instanceof _.DJ)var v=_.bAc(_.xAc(a));else{if(a instanceof _.EJ)var z=new SM;else{if(a instanceof _.FJ)var A=_.bAc(_.xAc(a));else{if(a instanceof _.GJ)var C=_.bAc(_.xAc(a));else{if(a instanceof _.XD){var G=new pPc,H=a.getKey();var L=_.I(G,4,H)}else{if(a instanceof _.HJ)var M=HWc(a,b);else{if(a instanceof _.KJ)var R=_.bAc(_.xAc(a));else{if(a instanceof _.Cuc){if(!b.json)throw _.mL();var V=new TQc(b.json.exportJob.id)}else{if(a instanceof _.MJ){if(!b.json)throw _.mL();var ha=
b.json,ba=new kPc,oa=rVc(ha);var qa=_.I(ba,2,oa).Dc(1)}else{if(a instanceof _.NJ)var Ba=IWc(a,b);else{if(a instanceof _.OJ){if(!b.json)throw _.mL();var Ka=(new SM).Dc(1),ib=_.eAc(this.nF,b.json);var Xa=_.I(Ka,2,ib)}else{if(a instanceof _.ZI)a:{if(!b.json)throw _.mL();if(a instanceof _.ZI){var Hb=a.ud();if(Hb&&_.PJ(Hb)){for(var $b=this.O,Bc=this.Mg,td=b.json,Xd=[],Jd=_.m(td.item||[]),qf=Jd.next();!qf.done;qf=Jd.next()){var ud=qf.value;if(ud.driveItem){var Cb=new _.Xna,ne=_.w(Cb,2,FVc(ud));_.Q(Hb,74,
!1)?_.w(ne,4,!0):_.w(ne,3,!0);var Xg=DVc($b,Bc,ud);var se=_.I(Xg,100,ne);Xd.push(se)}}var li=(new _.xB).Vw(Xd).nP(td.suggestionSessionId);var Wi=_.yyc(new _.cL,li);break a}if(Hb&&_.QJ(Hb)){Wi=GVc(this.O,this.Mg,b.json);break a}if(Hb&&_.RJ(Hb)){for(var vf=this.O,Ek=this.Mg,Vh=b.json,Vf=[],Yd=_.m(Vh.item||[]),Yg=Yd.next();!Yg.done;Yg=Yd.next()){var Nh=Yg.value;if(Nh.driveItem){var yi=DVc(vf,Ek,Nh),$k=RVc(Nh);var Wn=_.Lj(yi,117,$k);Vf.push(Wn)}}var Am=(new _.xB).Vw(Vf).nP(Vh.suggestionSessionId);Wi=
_.yyc(new _.cL,Am);break a}}Wi=_.Zzc(this.nF,b.json,b.headers)}else{if(a instanceof _.SJ){if(!b.json)throw _.mL();var Dh=AVc(b.json)}else{if(a instanceof _.TJ){if(!b.json)throw _.mL();var al=b.json;_.iL(["drive#appList"],al);var jk=new kM,Zg=sVc(al);var Pj=_.Lj(jk,2,Zg);var sj=_.Jj(Pj,4,al.defaultAppIds).Dc(1)}else{if(a instanceof _.Duc){if(!b.json)throw _.mL();var kk=yVc(b.json)}else{if(a instanceof _.jJ)var Wh=JWc(this,b);else{if(a instanceof _.UJ){if(!b.json)throw _.mL();var Qj=new nPc,Rj=bGc(this.nF,
b.json);var tj=_.I(Qj,1,Rj);var lk=_.w(tj,2,jNc(b.json))}else{if(a instanceof _.VJ){if(!b.json)throw _.mL();var bi=this.nF,Bm=b.json,Sj=new ZFc;_.iL(["drive#revisionList"],Bm);for(var mk=[],Cl=Bm.items||[],Tj=0;Tj<Cl.length;Tj++){var wn=_.$zc(bi,Cl[Tj]);mk.push(wn)}var bl=_.Lj(Sj,2,mk)}else{if(a instanceof _.WJ)var cl=_.lL(this,a,b);else{if(a instanceof _.nJ)var Af=KWc(a,b);else{if(a instanceof _.YJ){if(!b.json)throw _.mL();var Uj=qWc(b.json)}else{if(a instanceof _.Luc){if(!b.json)throw _.mL();var em=
ZVc(FWc(this),b.json)}else{if(a instanceof _.DG){if(!b.json)throw _.mL();var Dl=FWc(this),fm=b.json,qc=new yPc,Vj=YVc(Dl,fm);var Oh=_.I(qc,2,Vj).Dc(1)}else{if(a instanceof _.ZJ){if(!b.json)throw _.mL();var nk=b.json;_.iL(["drive#remainingCount"],nk);var Ph=new zPc,mi=nk.nextPageToken;null!=mi&&_.w(Ph,2,Number(mi));_.w(Ph,1,Number(nk.remainingCount));var eg=Ph}else{if(a instanceof _.FG){if(!b.json)throw _.mL();var Fk=(new _.xB).Vw([sWc(this.H,b.json)])}else{if(a instanceof _.kK){if(!b.json)throw _.mL();
var Hp=(new _.xB).Vw(tWc(this.H,b.json)),Qh=_.yyc(new _.cL,Hp);var Eh=_.w(Qh,3,jNc(b.json))}else{if(a instanceof _.eK)var xn=IWc(a,b);else{if(a instanceof _.fK)var uj=GWc(this,a,b);else{if(a instanceof _.hJ)var yn=_.lL(this,a,b);else{if(a instanceof _.gK)var gm=_.lL(this,a,b);else{if(a instanceof _.hK)var Gk=LWc(this,b);else{if(a instanceof _.YD){if(!b.json)throw _.mL();var Cm=wWc(b.json),Po=new pPc;var Ip=_.I(Po,3,Cm);var rr=Cm.getKey();var Nm=_.I(Ip,4,rr)}else{if(a instanceof _.iK)var lm=HWc(a,
b);else{if(a instanceof _.KI){if(!b.json)throw _.mL();var tk=uUc(this.ma,b.json)}else{if(a instanceof _.IG){if(!b.json)throw _.mL();var dp=xWc(b.json),Up=new _.UK;Up.HT().set(dp.getId(),dp);var Kq=Up}else{if(a instanceof _.Euc){if(!b.json)throw _.mL();for(var Nr=b.json,ku=new vQc,Or=_.m(Object.entries(Nr)),Zs=Or.next();!Zs.done;Zs=Or.next()){var qB=_.m(Zs.value),rB=qB.next().value,Py=qB.next().value;switch(rB){case "nextPageToken":_.hk(ku,2,Py);break;case "activities":var lu=ZUc(Py);_.Lj(ku,1,lu)}}var Lq=
ku}else{if(a instanceof _.Guc)var Mq=LWc(this,b);else{if("undefined"!=typeof _.Kuc&&a instanceof _.Kuc)var sB=JWc(this,b);else{if(a instanceof _.Huc){if(!b.json)throw _.mL();var ND=new SQc}else{if(a instanceof _.Iuc){if(!b.json)throw _.mL();var px=MCc(b)}else{if(a instanceof _.WD){if(!b.json)throw _.mL();var Qy=b.json,qx=new _.iA;_.iL(["drive#settingList"],Qy);for(var rx=[],sx=Qy.items||[],$s=0;$s<sx.length;$s++){var at=wWc(sx[$s]);at&&rx.push(at)}var il=_.llb(qx,rx)}else{if(a instanceof _.kA){if(!b.json)throw _.mL();
var Pr=CWc(this.O,this.Mg,b.json).Dc(1)}else{if(a instanceof _.EG){if(!b.json)throw _.mL();var Pl=AWc(this.O,this.Mg,b.json)}else{if(a instanceof _.Quc){if(!b.json)throw _.mL();var tB=b.json;_.iL(["drive#teamDrive"],tB);var OD=tB.recursiveFolderCount,Ry=tB.recursiveFileCount,Li=new cPc;var Sy=_.w(Li,1,Ry);var Nq=_.w(Sy,2,OD)}else{if(a instanceof _.Puc)var Vp=MWc(b);else{if(a instanceof _.Suc){if(!b.json)throw _.mL();var HG=yWc(b.json)}else HG=a instanceof _.zL?LWc(this,b):null;Vp=HG}Nq=Vp}Pl=Nq}Pr=
Pl}il=Pr}px=il}ND=px}sB=ND}Mq=sB}Lq=Mq}Kq=Lq}tk=Kq}lm=tk}Nm=lm}Gk=Nm}gm=Gk}yn=gm}uj=yn}xn=uj}Eh=xn}Fk=Eh}eg=Fk}Oh=eg}em=Oh}Uj=em}Af=Uj}cl=Af}bl=cl}lk=bl}Wh=lk}kk=Wh}sj=kk}Dh=sj}Wi=Dh}Xa=Wi}Ba=Xa}qa=Ba}V=qa}R=V}M=R}L=M}C=L}A=C}z=A}v=z}r=v}q=r}p=q}l=p}k=l}h=k}f=h}e=f}d=e}c=d}return c};
var HWc=function(a,b){if(!b.json){if(a instanceof _.HJ)return DWc({});throw _.mL();}return DWc(b.json)},LWc=function(a,b){if(!b.json)throw _.mL();a=sWc(a.H,b.json);return(new _.oK).Dc(1).setItem(a)},GWc=function(a,b,c){if(!c.json)throw _.mL();return XVc(FWc(a),b,c.json)},IWc=function(a,b){if(!b.json)throw _.mL();return tVc(b.json,a.Nh())},JWc=function(a,b){if(!b.json)throw _.mL();a=a.ta;var c=b.json;_.iL(["drive#about","drive#changeList"],c);b=new sJc;var d=c.largestChangeId;null!=d&&_.w(b,3,Number(d));
if("drive#changeList"===c.kind){d=c.nextPageToken;null!=d&&_.w(b,2,Number(d));_.iL(["drive#changeList"],c);d=[];c=c.items||[];for(var e=0;e<c.length;e++){var f=a,h=c[e];_.iL(["drive#change"],h);var k=new _.bJ;k=_.w(k,1,Number(h.id));h.teamDriveId?(_.auc(k,h.teamDriveId),_.cJ(k,h.teamDriveId)):_.cJ(k,h.fileId);h.file?k.setItem(_.Xzc(f.H,h.file)):h.teamDrive&&k.setItem(sWc(f.O,h.teamDrive));h.deleted&&!k.getItem()&&_.lJ(k);d.push(k)}_.Lj(b,4,d)}return b},MWc=function(a){var b,c;if(!a.json)throw _.mL();
a=a.json;var d=a.result&&a.result.status;d=d&&NWc[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 QPc(PPc(OPc(new _.NPc,f.sourceId),f.fileCount),null!==(k=null===(h=f.unmovableFileReasons)||void 0===h?void 0:h.map(function(l){var p=new _.LPc;p=_.w(p,1,l.unmovableReason);return _.w(p,2,l.count)}))&&void 0!==k?k:[])})))&&void 0!==c?c:[];return KPc(JPc(IPc(HPc(new UM,jNc(a)),a.processedFileCount).Dc(d),a.result&&a.result.validationToken),
e)},KWc=function(a,b){var c=new sQc;if(_.ge(a,6).length){var d=[];LBc(_.ge(a,6),b.headers).forEach(function(e,f){var h=new _.huc;e=_.w(h,1,f).Jb(e);d.push(e)});_.Lj(c,1,d)}tQc(c,b.json?JSON.stringify(b.json):b.text);return c},NWc={movable:1,deadlineExceeded:2,exceedsSourceLimit:3,exceedsDestinationDepthLimit:4,exceedsDestinationSizeLimit:5,tooManyUnmovableFiles:6,tooHighProportionUnmovableFiles:7};
var PWc=function(a){var b=new _.Xo;if(a=a.getState()){var c=[];c.push("state");c.push("=");c.push(OWc[a]);_.MK(b,c.join(" "))}return b.toString()},QWc={},OWc=(QWc[1]="active",QWc[2]="archived",QWc);
var RWc=function(a,b,c,d){_.nL.call(this,b,c,a.aMa,d);this.ma=a;this.ha=new BIc(_.KK(c),b)};_.K(RWc,_.nL);
RWc.prototype.V=function(a,b,c){var d=this,e,f;try{return _.nL.prototype.V.call(this,a,b,c)}catch(V){}var h=0,k={},l="GET",p={},q=!1,r=!1;if(a instanceof _.vJ){l="POST";var v="admin/files/"+a.getId()+"/migrateToTeamDrive";_.P(a,3)&&(p.useDomainAdminAccess=!0);p.fields="kind,id,parentId,teamDriveId";p.fileId=a.getId();_.Dj(a,4)&&(p.preFlightValidationToken=_.y(a,4));var z=kNc(a);k["content-type"]="application/json";q=r=!0;_.sK(this.H,[],[a.getId(),a.Fk()],this.O,k)}else if(a instanceof _.wJ){l="POST";
v="files/"+a.Ac()+"/authorize";p.appId=a.Nh();_.P(a,3)&&(p.propagate=!0);var A=a.te();r=!0;_.JK(p);_.sK(this.H,[],[a.Ac()],this.O,k)}else if(a instanceof _.zL)v="drives/"+a.getId(),l="PUT",z={},z=(z.removeSecureLinkUpdateForAllFiles=_.Q(a,2,!1),z),k["content-type"]="application/json",p.fields=gM(this.H,[],!0),A=a.te(),r=!0;else if(a instanceof _.Guc)l="POST",v="teamdrives/"+a.requestId,p.fields=gM(this.H),z={},z=(z.name=a.request.getTitle(),z),k["content-type"]="application/json",A=a.request.te(),
r=!0;else if(a instanceof _.AJ)l="POST",v="workspaces",p.fields="kind,id,title,createdDate,modifiedDate,state",z=nNc(a),k["content-type"]="application/json",A=a.te(),r=!0;else if(a instanceof _.xJ)l="POST",v="files/"+a.getId()+"/copy",p.fields=_.tuc({fields:this.Ng(c),Cq:_.vI(_.JI(this.H)),GE:_.YI(this.H)}),p.convert=_.Q(a,4,!1),z=mNc(a),k["content-type"]="application/json",A=a.te(),a=_.ge(a,3).concat([a.getId()]),_.sK(this.H,[],a,this.O,k),r=!0,_.JK(p),_.JAc(this.H,p);else if(a instanceof _.BJ)l=
"DELETE",v="apps/"+a.Nh(),p.appId=a.Nh(),p.deleteAppData=!!_.P(a,2),A=a.te(),r=!0;else if(a instanceof _.CJ)l="DELETE",v="backups/"+a.getId(),h=9;else if(a instanceof _.DJ)l="DELETE",v="files/"+a.getId(),A=a.te(),r=!0,_.JK(p),_.JAc(this.H,p),_.sK(this.H,[],[a.getId()],this.O,k);else if(a instanceof _.EJ)l="DELETE",v="files/"+a.Ac()+"/permissions/"+_.y(a,2),A=a.te(),r=!0,_.JK(p);else if(a instanceof _.FJ)l="DELETE",v="files/"+a.Ac()+"/revisions/"+_.y(a,2),A=a.te(),r=!0,_.sK(this.H,[],[a.Ac()],this.O,
k);else if(a instanceof _.GJ)l="DELETE",v="teamdrives/"+a.getId(),A=a.te(),r=!0;else if(a instanceof _.XD)l="DELETE",A=a.getKey(),v="settings/"+_.y(A,2),_.qp(A)&&(p.namespace=NCc[_.qp(A)]),A=a.te(),r=!0;else if(a instanceof _.HJ)l="DELETE",v="workspaces/"+a.getId(),A=a.te(),r=!0;else if(a instanceof _.KJ)l="DELETE",v="files/trash",A=a.ud().te(),r=!0,_.JAc(this.H,p);else if(a instanceof _.MJ)v="apps/"+a.Nh(),A=a.te(),r=!0,p.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 _.SJ)v="backups/"+a.getId()+"/items",h=9,p.languageCode=FL(_.JI(this.H));else if(a instanceof _.NJ)l="POST",v="apps",p.appId=a.Nh(),A=a.te(),r=!0;else if(a instanceof _.OJ)l="POST",v="files/"+a.Ac()+"/permissions",p.fields=_.YI(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",p.emailMessage=
_.y(a,5)||"",p.sendNotificationEmail=!_.Q(a,6,!1),z={},1==a.zf()?z.role="owner":3==a.zf()?z.role="writer":4==a.zf()?(z.role="reader",z.additionalRoles=["commenter"]):2==a.zf()&&(z.role="reader"),1==a.getType()?z.type="user":2==a.getType()?z.type="group":3==a.getType()?z.type="domain":4==a.getType()?z.type="anyone":5==a.getType()&&(z.type="audience"),a.Za()&&(z.value=a.Za()),z.withLink=!_.Q(a,8,!1),k["content-type"]="application/json",A=a.te(),r=!0,_.JK(p);else if(a instanceof _.Cuc)h=8,l="POST",v=
"/v1/exports",k["content-type"]="application/json",z=_.ge(a,1).map(function(V){if(_.Q(d.H,89,!1)){var ha=_.$xc(d.O,V);if(null!==ha)return{id:V,resource_key:{resource_key:ha}}}return{id:V}}),z={archiveFormat:null,archivePrefix:_.y(a,2),conversions:null,items:z,locale:null};else if(a instanceof _.ZI||a instanceof _.PK||a instanceof _.kA||a instanceof _.EG)if(b=a instanceof _.ZI?a.ud():a,_.rK(b)){h=10;l="POST";v="/v1/items";k["content-type"]="application/json";z={};var C=9==_.DK(this.H)?"WEB_MOBILE":
"WEB_DESKTOP",G={};G.applicationType=JIc(this.H);G.platformType=C;G.languageCode=FL(_.JI(this.H));G.timeZone=(new _.St).g$();G.requestType="LIVE_REQUEST";a instanceof _.ZI&&(C=a.getOptions())&&_.Q(C,10,!1)&&(G.requestType="BACKGROUND_REQUEST");if(b instanceof _.of)if(_.PJ(b)){if(GIc(this.ha)){G.scenarioType="ONE_PICK";if(a=null===(f=null===(e=_.B(b,zEc,75))||void 0===e?void 0:_.B(e,AEc,1))||void 0===f?void 0:_.y(f,1))G.clientTags=G.clientTags||[],G.clientTags.push({name:a});this.eg.O(106026)}else _.Q(b,
74,!1)?G.scenarioType="QUICK_ACCESS_FOR_SHARED_FILES":G.scenarioType="QUICK_ACCESS";2==_.BK(b)&&(GIc(this.ha)||(G.scenarioType="QUICK_ACCESS_FOR_SHARED_DRIVE"),z.contextFeature={type:"DRIVE_TEAM_DRIVE_ROOT_ID",stringValue:_.ge(b,33)[0]});_.Nl(b).length&&(z.itemType=IIc(b))}else _.QJ(b)?G.scenarioType="DRIVE_PEOPLE_WITH_ACTIONS":_.RJ(b)&&(G.scenarioType="DRIVE_PRIORITY");else b instanceof _.PK?(v="/v1/userfeedback",z.userFeedback=_.Wj(b,_.pHc,1).map(function(V){var ha=_.B(V,_.XL,2),ba={},oa={};oa.feedbackType=
uHc[ha.getType()];ba.item=oa;ba.clientInfo=G;switch(V.getFeature()){case 1:G.scenarioType="DRIVE_PRIORITY";oa.itemId=ha.Ac();break;case 3:G.scenarioType="QUICK_ACCESS";oa.itemId=ha.Ac();break;case 4:G.scenarioType="QUICK_ACCESS_FOR_SHARED_FILES";oa.itemId=ha.Ac();break;case 2:G.scenarioType="DRIVE_WORKSPACES",oa.itemId=ha.Ac(),oa.childItem=_.Wj(ha,_.XL,3).map(function(qa){var Ba={};Ba.itemId=qa.Ac();return Ba})}return ba})):b instanceof _.kA?G.scenarioType="DRIVE_WORKSPACES":b instanceof _.EG?(G.scenarioType=
"ITEMS_FOR_DRIVE_WORKSPACE",z.contextFeature=[{type:"GENERIC_TITLE",stringValue:b.getTitle()||""},{type:"DRIVE_WORKSPACE_ID",stringValue:b.Qp()||""},{type:"DRIVE_EMPTY_WORKSPACE",boolValue:_.P(b,5)}]):_.MAc(a);b instanceof _.PK||(z.maxSuggestions=b.Ei(),z.clientInfo=G)}else{A=b.te();r=!0;v="files";p.q=_.lxc(b);C=[];var H;(H=_.qK(this.H))&&_.Q(H,4,!1)?(H=_.wa(this.Ng(c),this.Ng(c,b.O())),_.Ea(H)):H=_.xa(this.Ng(c));var L=void 0,M=!1;0<_.Wj(b,_.Il,5).length&&(L=_.y(this.H.ig(),50),M=!0);p.fields=oBc({fields:H,
Cq:_.vI(_.JI(this.H)),Y6:L||void 0,GE:_.YI(this.H),tAb:M});p.appDataFilter="NO_APP_DATA";0<_.Wj(b,_.AK,25).length&&(p.sources=_.dxc(b));0<b.DB().length&&(p.spaces=_.exc(b));a.$n()&&(p.pageToken=a.$n());(a=a.getOptions())&&_.bk(a,1,1E3)&&(p.maxResults=_.bk(a,1,1E3));_.Q(b,36,!1)&&(p.includeUnsubscribed=!0);_.y(b,43)&&(p.rawUserQuery=_.y(b,43));_.JK(p);p.includeItemsFromAllDrives=_.Q(b,66,!0);0<_.ge(b,33).length&&2==_.BK(b)&&(a=_.ge(b,33)[0],p.teamDriveId=a,C.push(a));p.corpora=_.Qwc[_.BK(b)];_.P(b,
18)&&(_.Va(p,"corpora"),p.corpus="DOMAIN");a=_.Ol(b);H=_.Wj(b,_.Bl,35);L=_.Wj(b,_.Bl,38);C=C.concat(a.filter(function(V){return!_.Q(V,2,!1)}).map(function(V){return V.Za()})).concat(H.map(function(V){return V.Za()})).concat(L.map(function(V){return V.Za()}));_.sK(this.H,_.Wj(b,_.Kl,63),C,this.O,k);RBc(p,b.wc());_.KAc(this.H,p);_.LAc(this.H,p);_.B(b,_.Bea,64)&&(a=BEc(_.B(b,_.Bea,64)),a=_.nb(a,4),p.searchSessionData=a)}else if(a instanceof _.TJ){v="apps";switch(a.getType()){case 1:p.fields=SWc;break;
case 2:p.fields=TWc;break;case 4:p.fields=UWc;break;case 3:h=5,v="apps",p.fields="items(icons[category='application'],icons(size,iconUrl),id,name,openUrlTemplate,primaryFileExtensions,primaryMimeTypes,productId,rankingInfo,secondaryFileExtensions,secondaryMimeTypes,kind),kind",p.appQueryScope="all_webstore",b.uu=!0}p.languageCode=FL(_.JI(this.H));0<_.ge(a,3).length&&(p.appFilterExtensions=_.ge(a,3).join(","));0<_.ge(a,4).length&&(p.appFilterMimeTypes=_.ge(a,4).join(","));A=a.te();r=!0}else if(a instanceof
_.Duc)v="backups",h=9,p.languageCode=FL(_.JI(this.H));else if(a instanceof _.jJ)v="changes",p.includeDeleted=_.Q(a,3,!0),p.includeSubscribed=_.Q(a,4,!0),p.maxResults=a.OQ(),p.startChangeId=_.y(a,1),p.fields=nBc({fields:this.Ng(c),Y6:gM(this.H,_.ge(a,5)),Cq:_.vI(_.JI(this.H)),GE:_.YI(this.H)}),p.appDataFilter="NO_APP_DATA",a.yc()||(p.filters="DRIVE_DATASERVICE"),A=_.ge(this.H.ig(),31),A.length&&(p.spaces=_.mf(A,function(V){return _.Hqc[V]}).join(",")),_.JK(p),p.includeCorpusRemovals=!0,p.includeItemsFromAllDrives=
!0,a.yc()&&(p.teamDriveId=a.yc()),A=a.te(),r=!0;else if(a instanceof _.UJ)b=a.ud(),v="files/"+b.getId()+"/permissions",p.fields=_.YI(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.$n()&&(p.pageToken=a.$n()),_.y(a,1)&&(p.maxResults=_.y(a,1)),A=b.te(),r=!0,_.JK(p),
_.KAc(this.H,p),_.LAc(this.H,p),_.sK(this.H,[],[b.getId()],this.O,k);else if(a instanceof _.VJ)p.fields=_.YI(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))",p.maxResults=a.Ei(),v="files/"+a.Ac()+"/revisions",A=a.te(),r=!0,
_.sK(this.H,[],[a.Ac()],this.O,k);else if(a instanceof _.WJ)l="POST",v="files/"+(_.y(a,1)||"")+"/migrateToDrive",_.P(a,3)&&(p.useDomainAdminAccess=!0),p.fields=_.tuc({fields:this.Ng(c),Cq:_.vI(_.JI(this.H)),GE:_.YI(this.H)}),p.fileId=_.y(a,1),_.Dj(a,4)&&(p.preFlightValidationToken=_.y(a,4)),z=lNc(a),k["content-type"]="application/json",q=r=!0,_.sK(this.H,[],[_.y(a,1)||"",_.y(a,2)||""],this.O,k);else if(a instanceof _.FG)v="teamdrives/"+a.qn()[0],p.fields=gM(this.H,a.O()),A=a.te(),r=!0;else if(a instanceof
_.Puc)l="POST",v="admin/files/migrateToTeamDrivePreFlight",_.P(a.request,3)&&(p.useDomainAdminAccess=!0),z=oNc(a),k["content-type"]="application/json",r=q=!0,_.sK(this.H,[],_.ge(a.request,1),this.O,k);else if(a instanceof _.kK)A=a.ud(),v="teamdrives",p.fields=rIc(this.H,A.O()),p.q=sIc(A),a.$n()&&(p.pageToken=a.$n()),(A=(A=a.getOptions())&&_.bk(A,1,1E3))&&(p.maxResults=A),A=a.ud().te(),r=!0;else if(a instanceof _.Quc)v="teamdrives/"+a.yc(),p.fields="kind,id,recursiveFileCount,recursiveFolderCount",
r=q=!0;else if(a instanceof _.eK)l="PUT",v="apps/"+a.Nh(),p.appId=a.Nh(),z={},z.useByDefault=_.P(a,2),_.P(a,3)&&(z.hasAppData=!1),k["content-type"]="application/json",A=a.te(),r=!0;else if(a instanceof _.hJ)l="PUT",v="files/"+a.getId(),p.fields=_.tuc({fields:this.Ng(c),Cq:_.vI(_.JI(this.H)),GE:_.YI(this.H)}),p.modifiedDateBehavior="DRIVE_UI",p.updateViewedDate=!!_.P(a,15),p.fileId=a.getId(),_.ge(a,9).length&&(p.addParents=_.ge(a,9).join(",")),_.ge(a,10).length&&(p.removeParents=_.ge(a,10).join(",")),
_.ge(a,31).length&&(p.addWorkspaces=_.ge(a,31).join(",")),_.ge(a,32).length&&(p.removeWorkspaces=_.ge(a,32).join(",")),null!=_.P(a,24)&&(p.confirmed=_.P(a,24)),p.languageCode=FL(_.JI(this.H)),z=pNc(a),k["content-type"]="application/json",A=a.te(),r=!0,_.JK(p),this.W(a.getId(),p),_.P(a,36)?p.bypassMultiparentingCheck=!0:_.JAc(this.H,p),b=_.ge(a,9).concat(_.ge(a,10)),b.push(a.getId()),_.sK(this.H,_.Wj(a,_.Kl,38),b,this.O,k);else if(a instanceof _.gK)l="PUT",v="files/"+a.Ac()+"/revisions/"+_.y(a,2),
z=qNc(a),k["content-type"]="application/json",A=a.te(),_.sK(this.H,[],[a.Ac()],this.O,k);else if(a instanceof _.hK)v="teamdrives/"+a.getId(),null!=_.P(a,15)?(l="POST",v+="/"+(_.P(a,15)?"hide":"unhide")):(l="PUT",z=rNc(a),k["content-type"]="application/json"),p.fields=gM(this.H),A=a.te(),r=!0;else if(a instanceof _.iK)l="PUT",v="workspaces/"+a.getId(),p.fields="kind,id,title,createdDate,modifiedDate,state",z=sNc(a),k["content-type"]="application/json",A=a.te(),r=!0;else if(a instanceof _.YD)l="PUT",
z=_.B(a,_.pp,1),A=z.getKey(),v="settings/"+_.y(A,2),(A=_.qp(A))&&(p.namespace=NCc[A]),z=OCc(z),k["content-type"]="application/json",A=a.te(),r=!0;else if(a instanceof _.KI)v="about",p.fields=_.YI(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",p.fields=RCc(p.fields,this.H),p.fields=SCc(p.fields,this.H),A=a.te(),r=!0;else if(a instanceof _.nJ){h=11;l=a.Yz();v=a.getUrl();var R=_.y(a,5)||"";_.Wj(a,_.huc,2).forEach(function(V){k[V.getKey()]=
V.Za()});_.Wj(a,_.huc,4).forEach(function(V){p[V.getKey()]=V.Za()});_.P(a,7)&&(b.hKb=!0);_.P(a,8)&&(b.uu=!0);_.P(a,9)&&(b.lEa=!0)}else a instanceof _.Fuc?(b=a.request.Ac(),v="files/"+b+"/listCategoryMetadata",A=a.request.te(),a.pageToken&&(p.pageToken=a.pageToken),a.request.Ei()&&(p.maxResults=a.request.Ei()),p.fields="kind,nextPageToken,categoryMetadata",_.sK(this.H,[],[b],this.O,k)):a instanceof _.fK?(k["content-type"]="application/json",l="POST",b=a.Ac(),v="files/"+b+"/updateCategoryMetadata",
A=a.te(),z={categoryMetadata:a.AV().map(function(V){var ha=_.Wj(V,_.BG,2).map(function(oa){return{id:oa.getId(),userId:oa.ls(),setBooleanValue:_.P(oa,3),setTextValue:_.y(oa,4),setTextValues:_.ge(oa,6),addTextValues:_.ge(oa,5),setLongTextValue:_.y(oa,7),setSelectionValue:_.y(oa,8),setSelectionValues:_.ge(oa,10),addSelectionValues:_.ge(oa,9),setIntegerValue:_.y(oa,11),setIntegerValues:_.ge(oa,13),addIntegerValues:_.ge(oa,12),setUserValue:_.y(oa,14),setUserValues:_.ge(oa,16),addUserValues:_.ge(oa,15),
setDateStringValue:_.y(oa,17)}}),ba={categoryName:V.Pm()};ha.length?ba.categoryAttributeValueDeltas=ha:_.ge(V,4).length?ba.revertAttributeIds=_.ge(V,4):_.P(V,3)&&(ba.removeCategory=_.P(V,3));return ba})},_.sK(this.H,[],[b],this.O,k)):a instanceof _.YJ?(h=13,v=_.vI(_.JI(this.H))?"/v2/people/public":"/v2/people",p.person_id=a.qn(),p["request_mask.include_container"]=["PROFILE","DOMAIN_PROFILE"],p["request_mask.include_field.paths"]=["person.metadata.best_display_name","person.photo","person.email"],
p["merged_person_source_options.included_profile_states"]=["DASHER_ADMIN_DISABLED"],_.vI(_.JI(this.H))||(p["core_id_params.enable_private_names"]=!0)):a instanceof _.Luc?(h=12,v="/v1/categories/-/published",k["content-type"]="application/json",a.pageToken&&(p.pageToken=a.pageToken),a.request.Ei()&&(p.maxResults=a.request.Ei()),a.request.getCustomer()&&(p.customer=a.request.getCustomer()),p.$outputDefaults=!0,p.languageCode=FL(_.JI(this.H))):a instanceof _.DG?(h=12,v="/v1/"+a.getName(),k["content-type"]=
"application/json",p.$outputDefaults=!0,p.languageCode=FL(_.JI(this.H))):a instanceof _.yJ?(k["content-type"]="application/json",l="POST",v="drives/"+a.yc()+"/changeCategoryReferences",A=a.te(),r=!0,p.fields=gM(this.H,[157],!0),z={},b=_.Wj(a,_.gl,2),b.length&&(z.addCategoryReferences=b.map(function(V){return{category:V.Pm()}})),a=_.Wj(a,_.gl,3),a.length&&(z.removeCategoryReferences=a.map(function(V){return V.Pm()}))):a instanceof _.IG?(v="workspaces/"+a.qn()[0],p.fields="kind,id,title,createdDate,modifiedDate,state",
A=a.te(),r=!0):a instanceof _.Euc?(h=7,l="POST",v="/v2/activity:query",k["content-type"]="application/json",z={},z.pageSize=a.pageSize,a.pageToken&&(z.pageToken=a.pageToken),b="items/"+a.request.getId(),_.Q(a.request,2,!1)?z.ancestorName=b:z.itemName=b,z.consolidationStrategy={legacy:{}},(a=_.qK(this.H))&&_.Q(a,13,!1)&&(z.filter="actor.type_case:(USER IMPERSONATION ADMINISTRATOR SYSTEM) actor.system.type:MULTIPARENTING_MIGRATION")):a instanceof _.Huc?(h=8,l="POST",v="/v1/exports/"+a.H+":cancel"):
a instanceof _.Iuc?(h=8,v="/v1/exports/"+a.H):"undefined"!=typeof _.Kuc&&a instanceof _.Kuc?(v="changes",p.fields="kind,largestChangeId",_.JK(p),p.includeItemsFromAllDrives=!0,a.teamDriveId&&(p.teamDriveId=a.teamDriveId),A=a.H,r=!0):a instanceof _.WD?(v="settings",A=_.ge(a,3),p.namespace=PCc(A),A=a.te(),r=!0):a instanceof _.Suc?(v="workspaces",p.fields="kind,nextPageToken,items(kind,id,title,createdDate,modifiedDate,state)",a.pageToken&&(p.pageToken=a.pageToken),a.request.Ei()&&(p.maxResults=a.request.Ei()),
p.q=PWc(a.request),(A=a.request.Ew())&&1==A.getType()&&(p.orderBy="title"),A=a.request.te(),r=!0):a instanceof _.ZJ?(v="changes/getRemainingCount",p.pageToken=_.y(a,2),_.Dj(a,3)&&(p.supportsTeamDrives=!0,p.includeItemsFromAllDrives=!0,p.teamDriveId=a.yc()),A=a.te()):a instanceof _.uJ?(k["content-type"]="application/json",l="POST",v="files/"+a.Ac()+"/sendAccessRequest",z={},q=!0):_.MAc(a);r&&_.NAc(c,p);0!=h||q||A&&_.y(A,1)||_.$K(this.eg,74438989);return _.OAc(this,h,v,p,k,l,A,z,R)};
RWc.prototype.W=function(a,b){a=this.ma.xm.H(a);b.expectedParentIds=a?a.wk().join(","):[]};
var SWc=QCc("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"),TWc=
QCc("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"),
UWc=QCc("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 VWc=function(a,b,c,d,e,f,h,k,l,p,q,r,v,z,A,C,G,H,L,M,R,V,ha){this.hoa=_.ci();this.hfa=new _.iyc;var ba=new _.Ayc(this.fK.bind(this),function(){return R("w8KrJc")}),oa=new oUc(b.xm),qa=new fUc(ba);c=new YTc(b,f,new TTc(d,e,c),h,this.hoa.promise,k,l,c,R);d=new nUc(b,p,q,r,v,d,e,C,k);this.O=new _.lyc(a,z);z=new RWc(b,a,k,V);this.osa=new EWc(k,a,A,C);this.H=iNc(a,new _.Ozc(this.O,this.hfa,z,this.osa,G,H,L),H,A,M,b.xm,this.hfa,this.hoa.promise,L||void 0);this.hoa.resolve(ha?ha:new _.mzc(new pUc,oa,
qa,this.H,ba,c,d,a))};VWc.prototype.fK=function(){return _.Pa(this.H,function(a){return a.fK()})};var YQc=function(a){var b=new Map,c=Date.now();_.Ma(a.H,function(d,e){d=aGc(d);d.length&&b.set(e,d.map(function(f){return f?c-f:null}))});return b};
var WWc=function(a,b){var c=this;this.context=a;this.Mg=b;this.ka=null;this.yR=0;this.ma=this.active=!1;this.H=this.va=null;this.W={};this.Ha=this.Fa=!1;this.eg=a.tk();this.ha=_.ci();this.O=a.Nc;this.Ka=_.qK(this.O)||new _.bwc;b=_.GL(this.O);this.Ba=new _.ayc(_.bk(b,2,37500),_.bk(b,3,6E5));this.ta=a.sQ;_.Ma(XIc,function(d){c.W[d]=[]});this.V=a.Nf.Kt;oM(a.Sj,["hVFf7","T8oKm","BNEDtc"],function(){c.log("Initializing: loaded from local dump");c.initialize()});oM(a.Sj,["hVFf7","T8oKm","mrK8ic"],function(){c.log("Initializing: loaded from sdk backfill");
c.initialize()});oM(a.Sj,["mrK8ic","BNEDtc"],function(){c.log("Updating: sdk backfill complete");c.lL().Dg(_.Uf)})};_.g=WWc.prototype;_.g.initialize=function(){var a=this;this.Fa||(this.Fa=!0,fN(this.context).addCallback(function(b){a.ta.initialize().mg(function(){a.ka=b;a.setActive(!0)},function(c){c&&GFc(a.context.Rf(),"drive.ds.sync.storage.LiveDumpUpdater","Error initializing dump storage",_.rJ(c));a.log("Error initializing dump storage");a.gS()})}))};
_.g.isInitialized=function(){return!!this.ka||this.ma};_.g.Vma=function(a){this.active&&(this.yR+=a,this.yR>_.bk(_.GL(this.O),1,500)&&this.update(3))};_.g.setActive=function(a){if(this.isInitialized()&&this.active!==a){var b=this.context;a&&(b.ZQ().fK()||0<b.Nf.wI.Ana||b.Mj().Se()||b.Ck().Se())||((this.active=a)?(this.ha.resolve(),this.H||this.lL().Dg(_.Uf)):(this.ha=_.ci(),_.n.clearTimeout(this.va)))}};_.g.gS=function(){this.ma=!0};_.g.nWa=function(){return this.H?this.H.promise:_.Zh()};
_.g.lL=function(){var a=this;if(this.H)return this.H.promise;this.H=_.ci();_.di(this.H.promise,function(){a.H=null});var b=this.eg.H(106021)||void 0;this.ha.promise.then(function(){return cNc(a.context.wD)}).then(function(c){var d=!c;return a.ma?d:_.ai([XWc(a,3,d,void 0,void 0,b),XWc(a,0,d,void 0,!0,b),XWc(a,1,d,void 0,!0,b),XWc(a,5,d,void 0,!0,b),XWc(a,6,d,void 0,!0,b)]).then(function(){return d},function(e){e=new _.Ec("Failed to update dump",void 0,_.rJ(e));return _.$h(e)})},function(){return _.$h(Error("tg"))}).then(function(c){a.H.resolve(c);
b&&(c=NFc(b),_.w(c,2,!0),b.Aj())},function(c){a.H.reject(c);b&&(c=NFc(b),_.w(c,2,!1),b.Aj())});return this.H.promise};_.g.update=function(a,b){var c=this,d=new _.ei,e=this.eg.H(106021)||void 0;e&&(sFc(NFc(e),_.RK(_.Ftc,a)),d.then(function(){var f=NFc(e);_.w(f,2,!0);e.Aj()},function(){var f=NFc(e);_.w(f,2,!1);e.Aj()}));this.ha.promise.then(function(){return cNc(c.context.wD)}).then(function(f){f=!f;c.ma?d.callback():_.hi(XWc(c,a,f,b,void 0,e),d)});return d};
var XWc=function(a,b,c,d,e,f){var h=_.ia(a.W[b]);if(h){if(h.encrypt===c&&1<a.W[b].length)return h.wf.en();var k=new _.ei;_.gi(h.wf,function(){_.hi(a.Lu(b,c,d,e,f),k)})}else k=a.Lu(b,c,d,e,f);var l={encrypt:c,wf:k};a.W[b].push(l);_.gi(k,function(){_.va(a.W[b],function(p){return l===p})});k.Sg(function(p){a.ta.O.Tf()?a.gS():p instanceof _.Ec&&(p=p.O||null,p instanceof _.AI&&"InvalidStateError"==p.getName()&&p.message&&-1<p.message.indexOf("The database connection is closing.")&&a.gS());return null});
return k};
WWc.prototype.Lu=function(a,b,c,d,e){var f=this,h=new _.ei;this.ha.promise.then(function(){if(3===a)_.hi(YWc(f,c||!1,b,e),h);else{switch(a){case 0:var k=hRc(f.context.QP);break;case 1:k=f.context.JZ.yr();break;case 5:k=ZWc(f.context.fE);break;case 6:k=LKc(f.context.Nf.xq);break;default:h.Jd("Invalid data type to write to storage.");return}if(k){var l=_.Wj(_.GL(f.O),EL,11)[0].getKey();!l&&b?(f.log("Skipping dump update, encrypted and no key"),h.callback()):$Lc(f.ta,b?l:null,[k],e).then(function(){return void h.callback()},function(p){return void h.Jd(p)})}else d?
(f.log("Skipping dump update: "+a),h.callback()):h.Jd("Failed to get data to write to dump.")}});return h};
var YWc=function(a,b,c,d){_.n.clearTimeout(a.va);a.va=_.n.setTimeout((0,_.N)(a.Qa,a),a.Ba.Za());if(b&&0===a.yR)return _.ji();a.yR=0;b=_.Wj(_.GL(a.O),EL,11)[0].getKey();if(!b&&c)return a.log("Skipping dump update, encrypted and no key"),_.ji();for(var e=[],f=_.m($Wc(a)),h=f.next();!h.done;h=f.next())h=aXc(a,h.value),h.length&&e.push($Lc(a.ta,c?b:null,h,d));var k=new _.ei;Promise.all(e).then(function(){a.Ha&&a.context.wD.set(aNc,!0);k.callback()},function(l){return void k.Jd(l)});return k},$Wc=function(a){var b,
c,d,e=Object.values(WHc).filter(function(f){return 0<f&&!bXc.includes(f)});(null===(b=_.qK(a.context.Nc))||void 0===b?0:_.Q(b,17,!1))?(null===(c=a.V.H)||void 0===c?0:c.XE)||null===(d=a.V.O)||void 0===d||!d.XE?e.push(2):e.push(5):e.push(2);return e};WWc.prototype.Qa=function(){_.FI(this.Ba);this.update(3,!0)};
var aXc=function(a,b){switch(b){case 1:return[cXc(a)];case 2:return b=a.V.H,a=VHc(dXc(a,b),2),b&&THc(a,b.aH()),[a];case 5:return b=a.V.O,a=VHc(dXc(a,b),5),b&&(THc(a,b.aH()),b=RJc(b),_.Jj(a,14,b)),[a];case 3:return eXc(a);case 4:return fXc(a);default:throw new _.Ec("Unsupported CacheType");}},cXc=function(a){for(var b={},c=[],d=$Jc(a.V,!0),e=!0,f=0;f<d.length;f++){var h=d[f],k=h.sy(),l=gXc(a,rCc(k));k=l.length;var p=0<k?l[k-1]:null;_.Ja(l,function(q){b[q.getId()]=q});if(0<k||h.H)l=NHc(new aM,h.ud()),
h.H||(_.w(l,2,k),_.I(l,3,p),e=!1),c.push(l)}d=_.Ra(b);a.log("Exporting "+d.length+" initial dump items.");return THc(VHc(SHc(QHc(RHc(UHc((new bM).Eu(a.context.bo()),_.KK(a.Mg)),a.ka.VQ(null)),hXc(d)),c),1),!e)},dXc=function(a,b){var c=b?b.sy():[];c=gXc(a,_.Ra(sCc(c)));a.log("Exporting "+c.length+" secondary dump items.");c.length>_.bk(_.GL(a.O),5,2E4)&&(b&&rM(b,!1),c=[]);c=QHc(new bM,hXc(c));var d=new ACc;(a=a.V.H)&&a.XE&&(a=a.sy(),_.w(d,3,a.length));a=_.I(c,11,d);b&&THc(a,b.aH());return a},eXc=function(a){var b=
[],c=a.ka;a.V.XV().forEach(function(d){var e=c.VQ(d.yc());if(e){var f=gXc(a,rCc(d.sy()));a.log("Exporting "+f.length+" TD dump items for: "+d.yc());e=THc(VHc(RHc(QHc(new bM,hXc(f)),e),3),d.aH());d=NHc(new aM,d.ud());SHc(e,[d]);b.push(e)}});return b},fXc=function(a){var b={},c=[];a.context.Nf.XV().forEach(function(d){1===d.FJ()&&null==_.P(d.ud(),6)&&(rCc(d.sy()).forEach(function(e){b[e.getId()]=e}),d=OHc(NHc(new aM,new _.of),d.ud()),c.push(d))});return[THc(VHc(SHc(QHc(new bM,hXc(Object.values(b))),
c),4),!1)]},gXc=function(a,b){b=QBc(b);_.P(a.O,67)&&(b=iXc(b));_.YI(a.O)&&(_.Q(a.Ka,9,!1)?OKc(a.context.Nf.xq,b)&&(_.$K(a.eg,179490965),a.log("b/179490965 Unexpected people data when writing to disk cache.","warning"),b=MKc(a.context.Nf.xq,b)):b=MKc(a.context.Nf.xq,b));return b.filter(function(c){return 4!==c.tv()})},iXc=function(a){var b=[];a=_.m(a);for(var c=a.next();!c.done;c=a.next())c=c.value,FBc(c)?(c=c.clone(),pBc(c,EBc),b.push(c)):b.push(c);return b},hXc=function(a){return a.map(function(b){return b.clone()})};
WWc.prototype.log=function(a,b){this.context.Rf().log("drive.ds.sync.storage.LiveDumpUpdater",a,void 0===b?"info":b)};WWc.prototype.wDa=function(){this.Ha=!0};var bXc=[2,5];
var jXc=function(){};_.g=jXc.prototype;_.g.setActive=function(){};_.g.gS=function(){};_.g.update=function(){return _.ji()};_.g.nWa=function(){return _.Zh()};_.g.lL=function(){return _.Zh()};_.g.Vma=function(){};_.g.wDa=function(){};
var CL=function(a,b,c,d){_.Ei.call(this);var e=this;this.Aa=a;this.kw=c;this.rootId=null;this.Fa=!0;this.ha=null;this.ma=[];this.va=d||new _.Wwc;this.Nc=b.clone();(a=_.qK(this.Nc))&&_.Q(a,1,!1)&&_.NI(this.Nc,28);this.Mg=new _.$wc(this.Nc);this.ym=new BIc(_.KK(this.Mg),this.Nc);kXc(this);this.wX=new _.Hn;this.rb=_.n.setTimeout(function(){e.Rf().info("drive.ds.sync.ThinContext","Page stable timed out.");e.wX.resolve();e.tk().O(106020)},1E4);this.IZ=new _.ei;this.Ba=new _.Cxc(_.EK(this.Nc),_.Q(this.Nc.ig(),
52,!1));this.connectionState=new _.vxc(_.EK(this.Nc)?3:1,!_.Q(this.Nc.ig(),52,!1));this.eg=_.Sxc(this.Nc,this.Ba,this.connectionState,this.va,this.wX.promise,this.kw);this.ifa=new iJc(this.eg);this.$P=new _.ei;this.log("Enabled experiments: "+this.tk().W.W);lXc(this)};_.K(CL,_.Ei);CL.prototype.getEnvironment=function(){return this.kw};CL.prototype.ZR=function(){this.Rf().info("drive.ds.sync.ThinContext","Notified of page stable.");_.n.clearTimeout(this.rb);this.wX.resolve()};
var lXc=function(a){var b=function(){a.Gu().Dg(_.Uf)},c=a.Aa;(c=c&&_.zc(c,_.im))?_.zi(c,"w",b):_.Ktc()||_.zi(_.n,"unload",b)};CL.prototype.Gu=function(){this.eg.O(106005);RFc(this.eg);var a=this.ma.map(function(b){return b()});_.ra(this.ma);return _.RI(a).then()};var mXc=function(a,b){a.ma.push(b)};_.g=CL.prototype;_.g.Rf=function(){return this.va};_.g.Eu=function(a,b){"string"===typeof a&&null===this.rootId&&(this.rootId=a,this.IZ.callback(a),a.length&&this.$3a(a,b||null))};_.g.$3a=function(){};
_.g.bo=function(){return this.rootId};_.g.tk=function(){return this.eg};var nXc=function(a){if(!a.ha)throw Error("ug");return a.ha},oXc=function(a,b){a.ha=b};CL.prototype.LB=function(){return this.Fa||this.connectionState.isConnected()};CL.prototype.Mj=function(){return this.Ba};CL.prototype.Ck=function(){return this.connectionState};CL.prototype.DNb=function(a){this.$P.callback(a)};
var kXc=function(a){var b=a.Nc.ig();0===_.ge(b,30).length&&(a.log("No user pref namespaces provided, user prefs disabled."),_.w(b,19,3));if(!_.D(b,37,""))throw Error("vg");_.y(b,57)||(a.log("No root URI provided; using prod default."),_.w(b,57,"https://clients6.google.com"));if(_.Q(_.GL(a.Nc),9,!1))if(b=_.Wj(_.GL(a.Nc),EL,11),0<b.length){if(!_.y(b[0],1)||!b[0].getKey()&&!_.EK(a.Nc)&&!_.Q(a.Nc,10,!1))throw Error("wg");}else _.w(_.GL(a.Nc),9,!1),a.log("Disabling IndexedDB support, missing configuration.");
if(!_.Q(_.GL(a.Nc),9,!1)&&(_.EK(a.Nc)||_.Q(a.Nc,10,!1)))throw Error("xg");var c=_.JI(a.Nc);b=!(!c||!_.vI(c));c=c&&_.CK(c)||"";if(!b&&!c)throw Error("yg");b&&_.Mj(a.Nc,44);_.Wj(a.Nc,_.of,44).forEach(function(d){try{EIc(a.ym,d)}catch(e){if(e instanceof _.Ec&&(d=e.Tg)&&3===d.Xs())throw Error("zg");throw e;}})};CL.prototype.oJ=function(a){this.dispatchEvent(new _.Fc(new _.Ec(void 0,a)))};CL.prototype.log=function(a){this.Rf().info("drive.ds.sync.ThinContext",a)};
var pXc=function(a,b){this.H=a;this.Je=b};
var qXc=new Set([5,4,1,6,2]),rXc=new Map([[3,1],[7,1],[2,2],[4,2],[5,3],[1,4],[6,5]]),sXc=function(a,b,c){_.Ei.call(this);this.ha=a;this.V=b;this.W=c;this.GF=new Map;this.O=new Map;this.status=6;this.H=null};_.K(sXc,_.Ei);
sXc.prototype.aQ=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())&&_.qp(q))&&f.add(q)});[].concat(_.Bd(f.values())).forEach(function(q){return void c.push(q)})}if(c.length){var h=qXc.has(b),k=new Map;c.forEach(function(q){k.set(q,new Map)});a.forEach(function(q){var r=q.getKey(),v=r&&_.qp(r);r=r&&_.y(r,2);v=k.get(v);r&&v&&v.set(r,tXc(q))});var l=0,p=0;[].concat(_.Bd(k.keys())).forEach(function(q){var r=k.get(q),v=e.GF.get(q);v?h&&
(r.forEach(function(z){var A=z.getKey();(A=v.get(A&&_.y(A,2)))&&_.ak(z,A)||l++}),[].concat(_.Bd(v.values())).forEach(function(z){z=z.getKey();r.has(_.y(z,2))||p++}),e.GF.set(q,r),e.O.set(q,b)):(l+=r.size,e.GF.set(q,r),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,pM(this.V,"px2C2c");pM(this.V,"rkYxSd")}(l||p)&&uXc(this,!h)}};
sXc.prototype.QG=function(){return 0<this.GF.size};var uXc=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 _.ui("WPi0i"))};sXc.prototype.put=function(a){var b=a.getKey(),c=b&&_.qp(b);b=b&&_.y(b,2);if(c&&b&&(c=this.GF.get(c))){var d=c.get(b);a=tXc(a);d&&_.ak(a,d)||(c.set(b,a),uXc(this))}};sXc.prototype.remove=function(a){var b=a&&_.qp(a);a=a&&_.y(a,2);b&&a&&(b=this.GF.get(b))&&b.delete(a)&&uXc(this)};
var ZWc=function(a,b){var c=[];(b||[].concat(_.Bd(a.GF.keys()))).forEach(function(e){(e=a.GF.get(e))&&[].concat(_.Bd(e.values())).forEach(function(f){return void c.push(f.clone())})});b=b?b.filter(function(e){return a.GF.has(e)}):[].concat(_.Bd(a.GF.keys()));var d=new vGc;_.Lj(d,1,c);_.Jj(d,2,b);return d};
sXc.prototype.KG=function(a){var b=this,c=ZWc(this,a),d=new _.iA;d.Dc(this.status);_.llb(d,_.Wj(c,_.pp,1));_.I(d,4,c);var e=0;a.forEach(function(f){f=b.O.get(f);rXc.has(f)&&Infinity>rXc.get(f)&&(e=f)});return new pXc(d,e)};var tXc=function(a){a=a.clone();a.Pg()||a.Jb("");return a};
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var vXc=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},xXc=function(a,b){return wXc(a[b])+(wXc(a[b+1])<<8)+(wXc(a[b+2])<<16)+(wXc(a[b+3])<<24)},wXc=function(a){return 127<a?a-256:a};
var DL=function(a,b,c,d,e,f){CL.call(this,a,b,c,d);var h=this;this.Ta=_.ci();this.pt=new vM;this.W=null;this.O=_.ci();this.Ha=new _.ei;this.U5=null;this.kfa=new dLc;this.V=null;this.$a=_.ci();this.ta=new _.ei;this.QF=new KLc;this.Gz=new nLc;this.Qga=new kLc;this.R$=new _.Hn;this.Ka=!1;this.jfa=new _.Hn;this.H={};this.ka=null;this.Ib=new _.Ze;this.Ma(this.Ib);this.Sj=e?e:new LJc(this.Rf());this.tk().W.O=this.Sj;this.JL=_.Q(_.GL(b),9,!1)&&TCc()?yXc(this,b):null;this.Av=new uIc(FL(_.JI(b)));this.wD=
zXc(this,this.JL);this.sQ=AXc(this,this.JL,b);this.Nf=new jN(this,this.Mg);this.Ks=BXc(this);(a=(a=_.B(this.Nc,_.jl,12))&&a.getId())&&this.Eu(a,6);this.QP=new gRc(this.Nc,this.Nf.xq,this.Sj,this.Rf(),this.Ks);this.JZ=new mRc(this.Rf(),this.Sj,this.Ks);this.fE=new sXc(this.Rf(),this.Sj,this.Ks);this.xI=new aJc(this.Um(),this.Rf(),function(k){return void h.oJ(k)});this.pz=_.Q(this.Nc.ig(),52,!1)?new _.aL(this.Ck(),this.Um(),this.Rf(),this.tk()):null;oM(this.Sj,["mrK8ic"],function(){h.$a.promise.then(function(){SRc(h,
h.V)})});this.eMa=new GLc(this.Nc);this.aB=new _.tyc(this.Nc,this.Nf.xm);this.psa=new PTc(this);this.T5=new hLc(this.O.promise,this.Um());this.kb=new lLc(this.Um(),this.T5);this.lfa=new CLc(this.O.promise,this.Um(),this.Rf(),this.Nc);this.Qa=new VWc(this.Nc,this.Nf,this.oJ.bind(this),this.T5,this.kb,this.Ks,this.kfa,this.Mg,this.bo.bind(this),this.psa,this.JZ,this.fE,this.lfa,this.QF,this.Rf(),this.eMa,this.aB,this.xI,this.pz,this.Mj(),this.Vob.bind(this),this.tk(),f);this.Ta.resolve(this.Qa);this.aJa=
new zTc(this);oM(this.Sj,["BNEDtc"],function(){return h.jfa.resolve()});mXc(this,function(){h.Ks.gS();return _.Zh()})};_.K(DL,CL);
var yXc=function(a,b){var c=_.CK(_.JI(b)),d=_.DK(b),e=function(){},f=_.Wj(_.GL(b),EL,11);f=f[0]&&_.y(f[0],1);var h=new vMc(c,d,_.bk(_.GL(b),10,0)||0,f||"",_.KK(a.Mg));_.EK(b)?c=QMc(c,d).then(function(l){return l?l:h}):_.Q(b,10,!1)&&0<_.bk(_.GL(b),8,432E6)?(b=CXc(a,c),c=QMc(c,d,b).then(function(l){return l&&(e=function(p){return p.Pl(h).Dg(function(){return null})},!l.ha)?l:h})):c=_.Zh(h);var k=new DM(c,a.Rf(),a.tk());k.initialize().then(function(){return e(k)},function(){return null});return k},CXc=
function(a,b){var c=_.bk(_.GL(a.Nc),8,432E6);if(!_.EK(a.Nc)&&0<c){a=Math;var d=a.abs;b=_.uma(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+=xXc(b,e),h.b+=xXc(b,e+4),h.c+=xXc(b,e+8),vXc(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+=xXc(b,e+4);h.a+=xXc(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+=xXc(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=vXc(h);return d.call(a,b)%c}};DL.prototype.cz=function(a){var b=this;return this.JL?this.JL.Tf()?_.$h(Error("Ag`"+CMc(this.JL))):cNc(this.wD).then(function(c){var d=b.JL,e=[];e.push(b.Ks.nWa());e.push(a?d.Pl():MMc(d));if(a===c)return _.ai(e).then(function(){return!1});!1===a&&(e.push(BMc(d)),(c=b.bo())&&e.push(b.wD.Eu(c)));return _.ai(e).then(function(){return b.wD.cz(a)},function(){return!1})}):_.$h(Error("Bg"))};
var AXc=function(a,b,c){var d=null;b&&(d=new ULc(b,c,function(e){a.oJ(e)},a.tk()),d.initialize());return d},zXc=function(a,b){var c=new bNc(b||void 0);c.bo().then(function(d){d&&a.Eu(d,5)});b&&(cNc(c).then(function(d){a.Mj().cz(d)}),_.ai([b.initialize(),a.wX.promise]).then(function(){DXc(a,c)},function(){}));return c},DXc=function(a,b){fNc(b).then(function(c){(!c||c<Date.now()-864E5)&&TMc(_.CK(_.JI(a.Nc)),_.DK(a.Nc),a.Rf()).then(function(d){d&&(d=Date.now(),b.set($Mc,d))},function(){})})},BXc=function(a){if(!a.sQ)return new jXc;
var b=new WWc(a,a.Mg);a.Ib.listen(a.Mj(),"Bb",function(c){return void b.setActive(!c.Se())});a.Ib.listen(a.Ck(),[].concat(_.Bd(Object.values(_.rC))),function(){return void b.setActive(a.Ck().isConnected())});return b};DL.prototype.hY=function(a){this.U5=a;this.Ha.callback(a)};var fN=function(a){return a.Ha.en()},XQc=function(a){return a.JL?a.JL.Tf():null},EXc=function(a,b){a.Sj.H("NSockf")?pM(a.Sj,b):oM(a.Sj,["NSockf"],function(){pM(a.Sj,b)})};
DL.prototype.$3a=function(a,b){this.log("Setting Root ID: "+a);a&&(this.pt.Eu(a),this.ym.Eu(a),6!==b&&1!==b||this.wD.Eu(a),EXc(this,"jroI5d"))};DL.prototype.oVa=function(){return this.ta.en()};var SRc=function(a,b,c){0>b||((void 0===c?0:c)?a.V?a.V=Math.max(a.V,b):(a.V=b,a.$a.resolve()):a.ta.kg()||(a.ta.callback(b),EXc(a,"T8oKm")))},rRc=function(a){if(!a.W)throw Error("Cg");return a.W};_.g=DL.prototype;_.g.ZQ=function(){return this.Qa};_.g.Um=function(){return this.Ta.promise.then(function(a){return a.hoa.promise})};
_.g.vDa=function(){this.Ka||(this.Ka=!0,this.R$.resolve(),pM(this.Sj,"aU7Ts"))};_.g.LB=function(){throw Error("Dg");};_.g.Vob=function(a){this.dispatchEvent(a)};var FXc=function(a,b){fTc(a.Nf,b)},GXc=function(a,b,c){a.H[b]=c},QQc=function(a){a.ka||(a.ka=new tLc(a.O.promise,a.Um(),a.Rf()));return a.ka};
var nN=function(a,b,c){_.Ei.call(this);var d=this;this.Fa=a;this.rb=b;this.va=_.ci();this.Ba=this.channel=this.clientId=null;c.then(function(e){return HXc(d,e)})};_.K(nN,_.Ei);var HXc=function(a,b){a.clientId=b.clientId;a.channel=b.channel;a.Ba=b.H;hM(a.channel,a.Fa,function(c){c=TIc(c);a.z$(c.O,!(!c.data||!c.H),c.data,c.error)});a.log("Service initialized: "+a.Fa);a.va.resolve()};nN.prototype.z$=function(){};
nN.prototype.send=function(a,b,c,d){var e=this,f=_.ci();this.va.promise.then(function(){var h=e.channel;iM(h,e.Fa,PIc(new OIc(e.clientId,a,b,d),h.W),function(k){return void IXc(k,a,f,c||function(){})})});return f.promise};var IXc=function(a,b,c,d){a=TIc(a);a.data?c.resolve(d(a.data,a.H)):(a.error?d=a.error:(d=new _.Dc,_.dJ(d,2),_.eJ(d,6),_.w(d,21,"Worker["+b+"]: An invalid response was received")),c.reject(new _.Ec(void 0,d)))};nN.prototype.log=function(a){this.Ba&&this.Ba.info(this.rb,a)};
var JXc=function(a,b,c,d){this.clientId=a;this.channel=b;this.H=c;this.O=d};
var oN=function(a,b){_.O.call(this);this.V=a;this.va=b;this.Ka=this.LU()};_.K(oN,_.O);oN.prototype.registerService=function(a){var b=this;hM(a,this.V,function(c){return b.Gw(c)})};
oN.prototype.Gw=function(a){var b=this;a=QIc(a);var c=a.H,d=this.Ka[a.method],e=null;if(d)try{var f=d(a);if(f instanceof RIc)return SIc(f,c);if(f.then)return f.then(function(h){return SIc(h,c)},function(h){h=_.fJ(h);return SIc(b.jd(void 0,h),c)})}catch(h){e=_.rJ(h)}f=new _.Dc;_.dJ(f,2);_.eJ(f,3);_.nq(f,this.V+":"+a.method+": "+(e?e.message:"unsupported method"));e&&e.stack&&_.w(f,20,e.stack);return SIc(this.jd(void 0,f),c)};
oN.prototype.jd=function(a,b,c){if(a&&!b)return new RIc(a,void 0,c);a=_.fJ(b);return new RIc(void 0,a,c)};oN.prototype.update=function(a,b,c,d){(a=this.va.channels[a]||null)&&iM(a,this.V,SIc(this.jd(c,d,b),a.W))};
var KXc=function(){this.channels={};this.H=this.O=this.V=0},LXc=function(a,b){var c=a.V++;a.channels[c]=b;a.O++;a.H=Math.max(a.H,_.Qa(a.channels));return c},MXc=function(a,b){var c=a.channels[b];return c?(delete a.channels[b],c):null};
var NXc=function(a,b){oN.call(this,"LRM",b);this.context=a;this.H={};a=this.context;a.W=this;a.O.resolve(this);this.ha=this.context.Nf;this.O=this.context.lfa;this.W=QQc(this.context);this.ka=this.context.T5};_.K(NXc,oN);
NXc.prototype.LU=function(){var a=this,b={};return b["4.1"]=function(c){var d=c.clientId+":"+c.requestId;c=BL(c.args[0],!!c.H,_.of);return a.ji(d,c)},b["4.9"]=function(c){var d=c.clientId+":"+c.requestId;c=BL(c.args[0],!!c.H,_.xI);return a.ji(d,c)},b["4.2"]=function(c){var d=c.clientId+":"+c.requestId;c=BL(c.args[0],!!c.H,_.zA);return a.ji(d,c)},b["4.10"]=function(c){var d=c.clientId+":"+c.requestId;c=BL(c.args[0],!!c.H,_.FG);return a.ji(d,c)},b["4.3"]=function(c){var d=c.clientId+":"+c.requestId;
c=BL(c.args[0],!!c.H,_.of);return a.kk(d,c)},b["4.11"]=function(c){var d=c.clientId+":"+c.requestId;c=BL(c.args[0],!!c.H,_.xI);return a.kk(d,c)},b["4.4"]=function(c){var d=c.clientId+":"+c.requestId;c=BL(c.args[0],!!c.H,_.zA);return a.kk(d,c)},b["4.12"]=function(c){var d=c.clientId+":"+c.requestId;c=BL(c.args[0],!!c.H,_.FG);return a.kk(d,c)},b["4.5"]=function(c){var d=c.clientId+":"+c.requestId,e=BL(c.args[0],!!c.H,_.zA);c=BL(c.args[1],!!c.H,_.zA);return a.SY(d,e,c)},b["4.6"]=function(c){var d=c.clientId+
":"+c.requestId,e=BL(c.args[0],!!c.H,_.FG);c=BL(c.args[1],!!c.H,_.FG);return a.SY(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=BL(c.args[0],!!c.H,_.mA);return a.ji(d,c)},b["4.14"]=function(c){var d=c.clientId+":"+c.requestId;c=BL(c.args[0],!!c.H,_.IG);return a.ji(d,c)},b["4.15"]=function(c){var d=c.clientId+":"+c.requestId;c=BL(c.args[0],!!c.H,_.mA);return a.kk(d,c)},b["4.16"]=function(c){var d=c.clientId+
":"+c.requestId;c=BL(c.args[0],!!c.H,_.IG);return a.kk(d,c)},b["4.18"]=function(c){var d=c.clientId+":"+c.requestId;c=BL(c.args[0],!!c.H,_.RG);return a.ji(d,c)},b["4.19"]=function(c){var d=c.clientId+":"+c.requestId;c=BL(c.args[0],!!c.H,_.RG);return a.kk(d,c)},b["4.22"]=function(c){var d=c.clientId+":"+c.requestId;c=BL(c.args[0],!!c.H,_.kA);return a.ji(d,c)},b["4.23"]=function(c){var d=c.clientId+":"+c.requestId;c=BL(c.args[0],!!c.H,_.kA);return a.kk(d,c)},b["4.21"]=function(c){c=a.H[c.clientId+":"+
c.requestId].query;if(c instanceof _.kA){var d=a.W;bLc(d,d.getKey(c)).refresh()}return a.jd([])},b};NXc.prototype.ji=function(a,b){var c=this,d=new _.Hn;this.H[a]={query:b,RSb:d.promise};b instanceof _.mA?d.resolve(this.O.ji(a,b)):b instanceof _.IG?d.resolve($Kc(this.O,a,b)):b instanceof _.kA?d.resolve(this.W.ji(a,b)):b instanceof _.RG?d.resolve(this.ka.ji(a,b)):d.resolve(this.ha.ji(a,b));return d.promise.then(function(){return c.jd([])})};NXc.prototype.kk=function(a,b){OXc(this,a,b);return this.jd([])};
var OXc=function(a,b,c){delete a.H[b];c instanceof _.mA?a.O.kk(b,c):c instanceof _.IG?aLc(a.O,b,c):c instanceof _.kA?a.W.kk(b,c):c instanceof _.RG?a.ka.kk(b,c):a.ha.kk(b,c)};_.g=NXc.prototype;_.g.SY=function(a,b,c){OXc(this,a,b);return this.ji(a,c)};_.g.FF=function(a){var b=a.clientId+":"+a.requestId,c=this.H[b].query;c.vi(a.args[0]);c instanceof _.mA?this.O.ji(b,c):c instanceof _.IG?$Kc(this.O,b,c):c instanceof _.kA?this.W.ji(b,c):c instanceof _.RG?this.ka.ji(b,c):this.ha.ji(b,c);return this.jd([])};
_.g.jO=function(a,b){var c=this,d=this.H[a];if(d){a=a.split(":");var e=_.$g(a[0]),f=a[1];d.RSb.then(function(h){b instanceof _.ZK||b instanceof _.WK?c.update(e,f,[b.response,b.pageToken,b.H,b.Je,h]):(d.query instanceof _.of?rBc(d.query.O(),b.wd().filter(function(k){return!dM(k)})):d.query instanceof _.zA&&rBc(d.query.O(),Object.values(b.hq()).filter(function(k){return k&&!dM(k)})),c.update(e,f,[b,h]))})}};
_.g.HX=function(a,b){if(this.H[a]){var c=a.split(":");a=_.$g(c[0]);c=c[1];var d=b.error;d.gfa(b.H);this.update(a,c,void 0,d)}};_.g.xA=function(a){this.H[a]&&(a=a.split(":"),this.update(_.$g(a[0]),a[1],["cacheRefresh"]))};_.g.P8=function(){};_.g.oka=function(a){if(!this.H[a])throw Error("eg`"+a);return this.H[a].query};var PXc=function(a,b){_.Ma(a.H,function(c,d){_.$g(d.split(":")[0])===b&&OXc(a,d,c.query)})};
var QXc=function(a,b,c){nN.call(this,"LRM","drive.ds.sync.cache.LiveRequestManagerProxy",a);this.context=b;this.H=c;this.O={}};_.K(QXc,nN);QXc.prototype.Cwa=function(a){var b=this;a=new CQc(this.context.ym,this.context.$P,this.context.Rf(),this.context.Nc,function(c,d){return b.FF(c,d)},a,this.context.tk());RXc(this,a);return a};QXc.prototype.Fwa=function(a){var b=this;a=new GQc(this.context.ym,this.context.$P,this.context.Rf(),function(c,d){return b.FF(c,d)},a,this.context.Nc);RXc(this,a);return a};
var RXc=function(a,b){a.ji(b);_.Re(b,function(){a.kk(b);a.send("4.3",[b.ud()],void 0,b.ti())});a.send("4.1",[b.ud()],void 0,b.ti())};_.g=QXc.prototype;_.g.zwa=function(a){var b=this,c=new PL(this.context.Nc,this.context.ym,this.context.Rf(),this.context.IZ,this.SY.bind(this),a);this.ji(c);_.Re(c,function(){b.kk(c);b.send("4.4",[c.ud()],void 0,c.ti())});this.send("4.2",[c.ud()],void 0,c.ti());return c};
_.g.Iwa=function(a){var b=this,c=new KQc(a,this,this.context.Nc);this.ji(c);_.Re(c,function(){b.kk(c);b.send("4.11",[c.ud()],void 0,c.ti())});this.send("4.9",[c.ud()],void 0,c.ti());return c};_.g.Jwa=function(a){var b=this,c=new LQc(this.context,this,a);this.ji(c);_.Re(c,function(){b.kk(c);b.send("4.12",[c.ud()],void 0,c.ti())});this.send("4.10",[c.ud()],void 0,c.ti());return c};
_.g.Mwa=function(a){var b=this,c=new OQc(this.context,a,this);this.ji(c);_.Re(c,function(){b.kk(c);b.send("4.15",[c.ud()],void 0,c.ti())});this.send("4.13",[c.ud()],void 0,c.ti());return c};_.g.Nwa=function(a){var b=this,c=new FQc(this.context,a);this.ji(c);_.Re(c,function(){b.kk(c);b.send("4.16",[c.ud()],void 0,c.ti())});this.send("4.14",[c.ud()],void 0,c.ti());return c};
_.g.Gwa=function(a){var b=this,c=new JQc(this.context,a,function(){b.send("4.21",[],void 0,c.ti())});this.ji(c);_.Re(c,function(){b.kk(c);b.send("4.23",[c.ud()],void 0,c.ti())});this.send("4.22",[c.ud()],void 0,c.ti());return c};_.g.vwa=function(a){var b=this,c=new AQc(this.context.Mj(),this.context.Ck(),this.context.Rf(),function(d,e){return b.FF(d,e)},a);this.ji(c);_.Re(c,function(){b.kk(c);b.send("4.19",[c.ud()],void 0,c.ti())});this.send("4.18",[c.ud()],void 0,c.ti());return c};
_.g.ji=function(a){this.H.create(a.ti(),a.ud());this.O[a.ti()]=a};_.g.kk=function(a){jM(this.H,a.ti(),4);delete this.O[a.ti()]};_.g.SY=function(a,b,c){if(b instanceof _.zA&&c instanceof _.zA)this.send("4.5",[b,c],void 0,a);else if(b instanceof _.FG&&c instanceof _.FG)this.send("4.6",[b,c],void 0,a);else throw Error("Eg");};
_.g.FF=function(a,b){if(!this.O[a])throw Error("eg`"+a);var c=this.O[a];if(c.ud()instanceof _.of)var d="4.7";else if(c.ud()instanceof _.xI)d="4.8";else if(c.ud()instanceof _.RG)d="4.20";else if(c.ud()instanceof _.mA)d="4.17";else throw Error("Fg");c.ud().vi(b);this.send(d,[b],void 0,a)};
_.g.z$=function(a,b,c,d){if(a=this.O[a]){var e,f=0;if(d)b=new ML(d,d.G5()),a.FB(b),jM(this.H,a.ti(),3);else if(c&&c[f]){d=c[f++];if("cacheRefresh"===d){a.gW();return}var h=a.ud();if(h instanceof _.of||h instanceof _.xI)h instanceof _.of&&_.QJ(h)?e=BL(d,b,_.TK):e=BL(d,b,_.xB);else if(h instanceof _.zA||h instanceof _.FG)b?(e=new _.SK,pGc(e,function(k){return new _.jl(JSON.parse(k))},d)):e=d;else if(h instanceof _.RG)e=new _.WK(BL(d,b,lM),c[f++],c[f++],c[f++]);else if(h instanceof _.mA)e=new _.ZK(BL(d,
b,nM),c[f++],c[f++],c[f++]);else if(h instanceof _.IG)e=BL(d,b,_.UK);else if(h instanceof _.kA)e=BL(d,b,$L);else throw Error("Gg");}e&&(b=f,c&&"boolean"===typeof c[b]&&jJc(this.H,a.ti(),!!c[b]),mJc(this.H,a.ti(),e),a.update(e))}};
var pN=function(){_.Ei.apply(this,arguments);this.commands=new _.tl;this.ha=this.active=this.wp=!1};_.K(pN,_.Ei);pN.prototype.initialize=function(){this.wp||(this.wp=!0,this.V(),this.setActive(!0))};pN.prototype.V=function(){};pN.prototype.setActive=function(a){this.active=a;SXc(this)};var SXc=function(a){if(a.active&&!a.ha){var b=_.ul(a.commands);if(b)if(a.va()){do a.ka(b);while(b=_.ul(a.commands))}else a.ha=!0,_.di(a.Ba(b),function(){a.ha=!1;SXc(a)})}};pN.prototype.ka=function(){};
pN.prototype.Ba=function(){};pN.prototype.va=function(){return!0};pN.prototype.enqueue=function(a){try{var b=new _.ei;this.commands.enqueue(new TXc(a,b));SXc(this);return b}catch(c){return _.ni(_.rJ(c))}};var TXc=function(a,b){this.H=a;this.wf=b};TXc.prototype.getCommand=function(){return this.H};TXc.prototype.AG=function(){return this.wf};
var WXc=function(a){pN.call(this);var b=this;this.context=a;this.O=null;this.Sc=new _.Ze(this);this.Ma(this.Sc);this.Sc.listen(this.context,"VMiG2e",function(){return void UXc(b)});this.H=this.context.Nf.xq;_.YI(this.context.Nc)&&this.Sc.listen(this.H,"Fb",this.W);var c=a.Sj;oM(c,["toquGd"],function(){return b.initialize()});var d=["NSockf"];1!==_.Gj(a.Nc.ig(),17,1)&&(d.push("iuEtc"),oM(c,["mrK8ic"],function(){pM(c,"iuEtc")}));oM(c,d,function(){VXc(b)})};_.K(WXc,pN);WXc.prototype.V=function(){XXc(this)};
var VXc=function(a){if(1===a.context.QP.xf().Bb())Promise.resolve();else{var b=_.Ef(_.Ff(new _.Df,!0),301);b=_.LI(new _.KI,b);a.refresh(b).then(null,function(c){c=_.fJ(c);_.w(c,21,"Initial account request failed.");a.context.oJ(c)})}},UXc=function(a){var b=_.Ef(new _.Df,304);b=_.LI(new _.KI,b);a.refresh(b).then(null,function(){})};
WXc.prototype.refresh=function(a,b){var c=this;this.O||(this.O=_.di(this.context.Um().then(function(d){return d.Qe(a,b)}).then(function(d){var e=d.xf(),f=e.getUser();if(f&&!1===_.Tk(f))d=_.gJ(_.JI(c.context.Nc)),d=Error("Hg`"+d+"`"+tL(f)),_.Ab(d),_.$K(c.context.tk(),73301807),d=Promise.reject(d);else{f=c.context.QP;var h=0===f.Ze()?1:6;_.YI(c.context.Nc)&&EKc(c.H,e);h=iRc(f,e,h);(e=e.getMetadata())&&c.context.Eu(_.y(e,2),1);(d=_.y(d,4))&&SRc(c.context,d,!0);h&&c.dispatchEvent(new _.ui("WPi0i"));d=
Promise.resolve(new _.YK(f.xf(),f.Ze(),!1))}return d}).then(function(d){return d},function(d){d=_.fJ(d);_.w(d,5,1);return Promise.reject(new _.Ec("Error fetching account from server.",d))}),function(){c.O=null}));return this.O};
WXc.prototype.ka=function(a){var b=a.getCommand();if(b.H){var c={};b.CD&&(c.CD=b.CD);this.refresh(b.request,c).then(function(e){return a.AG().callback(e)},function(e){return void a.AG().Jd(e)})}else if(b=this.context.QP,c=b.xf(),_.YI(this.context.Nc)){c=c.xf();var d=c.getUser();d=JKc(this.H,tL(d));EKc(this.H,c);iRc(b,c,b.Ze())&&this.dispatchEvent(new _.ui("WPi0i"));a.AG().callback(new _.YK(b.xf(),b.Ze(),d))}else c.Bb(),b=new _.YK(c,b.Ze(),!0),a.AG().callback(b)};
var XXc=function(a){var b=a.context.Nc.ig();_.n.setTimeout(function(){var c=_.Ef(new _.Df,306);c=_.LI(new _.KI,c);a.refresh(c).then(function(){XXc(a)},function(){XXc(a)})},Math.ceil(_.bk(b,7,9E5)*Math.random())+_.bk(b,3,72E5))};WXc.prototype.W=function(a){var b=this.context.QP,c=b.xf().xf();c&&a.getPeople().find(function(d){return _.y(d,1)===tL(c.getUser())})&&(EKc(this.H,c),iRc(b,c,b.Ze())&&this.dispatchEvent(new _.ui("WPi0i")))};var YXc=function(a,b,c){this.request=a;this.H=!!b;this.CD=c||null};
var $Xc=function(a){pN.call(this);this.context=a;this.ta=this.W=!1;this.O=null;this.H=1;this.ma=0;this.error=null;this.Sc=new _.Ze(this);this.Ma(this.Sc);this.Sc.listen(this.context.JZ,"Mb",_.Eb(this.dispatchEvent,new _.ui("Mb",this)));ZXc(this)};_.K($Xc,pN);
var ZXc=function(a){var b=a.context.Sj;oM(b,["nVUlO"],function(){a.ta=!0;a.setActive(!0)});if(!_.EK(a.context.Nc)){var c=_.Gj(a.context.Nc.ig(),18,1);oM(b,["NSockf"],function(){1===c?aYc(a):a.setActive(!0)});2===c&&oM(b,["mrK8ic"],function(){a.W||aYc(a)})}},aYc=function(a){var b=new _.Df;_.Ff(b,!0);_.Ef(b,301);var c=new _.TJ;_.FFc(c,b);_.w(c,1,1);a.refresh(c).Dg(function(){return null})};
$Xc.prototype.refresh=function(a,b){var c=this;_.n.clearTimeout(this.ma);this.ma=0;var d=_.ci();this.O=d.promise;_.di(this.O,function(){c.O=null;bYc(c)});var e=this.H;this.H=a.getType()||e;var f=!this.W;this.W=!0;var h=new _.TJ;_.w(h,1,this.H);_.FFc(h,a.te());this.context.Um().then(function(k){return k.Qe(h,b)}).then(function(k){c.error=null;var l=c.context.JZ;l.aQ(k,l.QG()?6:1);d.resolve()},function(k){c.H=e;k=_.SB(k);var l=k.Tg;_.w(l,5,2);f?(_.dJ(l,1),k.message="Initial app settings refresh failed.",
_.w(k.Tg,21,"Initial app settings refresh failed."),c.context.oJ(l),c.setActive(!0)):(_.dJ(l,2),k.message="Error occurred while loading the latest set of apps.",_.w(k.Tg,21,"Error occurred while loading the latest set of apps."));c.error=k;d.reject(k)});return this.O};$Xc.prototype.va=function(){return!1};
$Xc.prototype.Ba=function(a){var b=this,c=a.getCommand(),d=c.request,e=c.cja,f=c.CD?{CD:c.CD}:void 0;if(!cYc(d))return this.context.Um().then(function(l){return l.Qe(d,f)}).then(function(l){a.AG().callback(new _.VK(l,1,!1))},function(l){a.AG().Jd(_.rJ(l))}),_.Zh();c=_.Zh();var h=!1;this.O?dYc(this,d.getType())?e=this.O:c=e=new _.Yh(function(l,p){b.O.then(function(){b.refresh(d,f).then(function(){return l()},p)})}):!e&&this.ta&&dYc(this,d.getType())&&!this.error?(h=!0,e=_.Zh()):e=this.refresh(d,f);
var k=a.AG();e.then(function(){var l=b.context.JZ;k.callback(new _.VK(l.yr(),l.Ze(),h))},function(l){k.Jd(l)});return c.then()};
var cYc=function(a){var b=a.getType();return 1===b||2===b||4===b?(b=_.ge(a,4),a=_.ge(a,3),!(b&&b.length)&&!(a&&a.length)):!1},dYc=function(a,b){return a.H===b||4===a.H||2===a.H&&1===b},bYc=function(a){var b=a.context.Nc.ig(),c=new _.Df;_.Ef(c,306);var d=new _.TJ;_.w(d,1,1);_.FFc(d,c);a.ma=_.n.setTimeout(function(){return void a.refresh(d)},Math.ceil(_.bk(b,7,9E5)*Math.random())+_.bk(b,4,72E5))},eYc=function(a,b,c){this.request=a;this.cja=!!b;this.CD=c||null};
var gYc=function(a){pN.call(this);var b=this;this.context=a;this.error=null;this.Sc=new _.Ze(this);this.Ma(this.Sc);this.Sc.listen(this.context.fE,"WPi0i",function(){return b.dispatchEvent(new _.ui("WPi0i"))});this.H=_.ci();this.O=_.ge(this.context.Nc.ig(),30);fYc(this)};_.K(gYc,pN);
var fYc=function(a){var b=a.context.Sj;oM(b,["rkYxSd"],function(){return a.initialize()});oM(b,["px2C2c"],function(){a.context.Rf().info("drive.ds.sync.userprefs.UserPrefsManager","All user prefs loaded.");a.H.resolve();a.H=null});var c=["NSockf"],d=_.Gj(a.context.Nc.ig(),19,1);1!==d&&(c.push("OZvrNc"),2===d&&oM(b,["mrK8ic"],function(){pM(b,"OZvrNc")}));!_.Q(a.context.Nc,11,!1)&&_.Q(a.context.Nc,24,!1)&&(c.push("DEJoH"),_.n.setTimeout(function(){0<_.Wj(ZWc(a.context.fE),_.pp,1).length||(b.H("NSockf")?
pM(b,"DEJoH"):oM(b,["NSockf"],function(){pM(b,"DEJoH")}))},12E3));oM(b,c,function(){if(!b.H("px2C2c")){var e=new _.Df;_.Ff(e,!0);_.Ef(e,301);var f=new _.WD;_.I(f,1,e);xCc(f,hYc(a));a.query(f).Dg(function(){a.initialize()})}})};gYc.prototype.V=function(){var a="User prefs detected: "+_.Wj(ZWc(this.context.fE),_.pp,1).length;this.context.Rf().info("drive.ds.sync.userprefs.UserPrefsManager",a);iYc(this)};
gYc.prototype.query=function(a,b){var c=this,d=b?{CD:b}:void 0;return this.context.Um().then(function(e){return e.Qe(a,d)}).then(function(e){c.error=null;var f=c.context.fE;f.aQ(_.Wj(e,_.pp,3),f.QG()?6:1,_.ge(a,3))}).then(null,function(e){e=_.SB(e);_.w(e.Tg,5,4);0<c.commands.$b()||c.context.oJ(e.Tg);c.error=e;throw e;})};
gYc.prototype.ka=function(a){var b=this,c=a.getCommand(),d=a.AG(),e=new Set([].concat(_.Bd(this.context.fE.GF.keys()))),f=_.ge(c.request,3);f.find(function(h){return!e.has(h)})&&(c.cja=!0);this.error?d.Jd(this.error):c.cja?(xCc(c.request,hYc(this,f)),_.di(this.H?this.H.promise:this.query(c.request,c.CD||void 0),function(){b.getData(d,f,!1)})):this.getData(d,f,!0)};var hYc=function(a,b){b=void 0===b?[]:b;a=new Set([].concat(_.Bd(a.O),_.Bd([].concat(_.Bd(a.context.fE.GF.keys()))),_.Bd(b)));return[].concat(_.Bd(a.values()))};
gYc.prototype.getData=function(a,b,c){b=this.context.fE.KG(b);a.callback(new _.XK(b.H,b.Je,c))};var iYc=function(a){var b=a.context.Nc.ig();_.n.setTimeout(function(){var c=new _.WD,d=new _.Df;_.Ef(d,306);_.I(c,1,d);xCc(c,hYc(a));_.di(a.query(c).Dg(_.Uf),function(){iYc(a)})},Math.ceil(_.bk(b,7,9E5)*Math.random())+_.bk(b,5,72E5))},jYc=function(a,b,c){this.request=a;this.cja=!!b;this.CD=c||null};
var kYc=function(a,b,c,d){oN.call(this,"IS",b);this.context=a;this.Sc=new _.Ze(this);this.Ba=_.ci();this.O=null;this.ha=!1;this.W=null;this.Fa=new WQc(a);wCc(this.Fa);this.Ma(this.Sc);this.ka=new WXc(a);this.Ma(this.ka);this.Sc.listen(this.ka,"WPi0i",function(){return c(new wQc(1))});this.ma=new $Xc(a);this.Ma(this.ma);this.Sc.listen(this.ma,"Mb",function(){return c(new wQc(2))});this.ta=new gYc(a);this.Ma(this.ta);this.Sc.listen(this.ta,"WPi0i",function(){return c(new wQc(4))});this.Ha=d;this.H=
this.context.Um()};_.K(kYc,oN);_.g=kYc.prototype;
_.g.LU=function(){var a={};return a["3.43"]=this.r_.bind(this),a["3.42"]=this.w7.bind(this),a["3.1"]=this.mN.bind(this),a["3.2"]=this.KG.bind(this),a["3.3"]=this.ld.bind(this),a["3.35"]=this.MN.bind(this),a["3.4"]=this.Fz.bind(this),a["3.5"]=this.yr.bind(this),a["3.6"]=this.XR.bind(this),a["3.8"]=this.Pl.bind(this),a["3.36"]=this.cz.bind(this),a["3.9"]=this.jF.bind(this),a["3.10"]=this.xr.bind(this),a["3.11"]=this.W$.bind(this),a["3.12"]=this.f8.bind(this),a["3.13"]=this.YS.bind(this),a["3.14"]=this.U$.bind(this),
a["3.15"]=this.h8.bind(this),a["3.16"]=this.mu.bind(this),a["3.17"]=this.bDb.bind(this),a["3.18"]=this.fDb.bind(this),a["3.19"]=this.fQ.bind(this),a["3.20"]=this.dDb.bind(this),a["3.25"]=this.cDb.bind(this),a["3.22"]=this.g8.bind(this),a["3.28"]=this.sync.bind(this),a["3.30"]=this.yna.bind(this),a["3.29"]=this.fxb.bind(this),a["3.40"]=this.hDb.bind(this),a["3.33"]=this.iDb.bind(this),a["3.39"]=this.UO.bind(this),a["3.37"]=this.gDb.bind(this),a["3.38"]=this.n$a.bind(this),a["3.41"]=this.ZR.bind(this),
a["3.44"]=this.X_.bind(this),a["3.45"]=this.So.bind(this),a["3.46"]=this.B7.bind(this),a};_.g.mN=function(a){var b=this,c=BL(a.args[0],!!a.H,_.KI);a=new YXc(c,a.args[1],this.context.H[a.clientId]);pM(this.context.Sj,"iuEtc");return this.ka.enqueue(a).then(function(d){return b.jd([d.response,d.Je,d.J_])},function(d){return b.jd(void 0,d)})};
_.g.KG=function(a){var b=this,c=BL(a.args[0],!!a.H,_.WD);a=new jYc(c,a.args[1],this.context.H[a.clientId]);pM(this.context.Sj,"OZvrNc");return this.ta.enqueue(a).then(function(d){return b.jd([d.response,d.Je,d.J_])},function(d){return b.jd(void 0,d)})};
_.g.ld=function(a){var b=this,c=BL(a.args[0],!!a.H,cCc),d=_.ek(c,_.uJ,16,yL)||_.ek(c,_.vJ,1,yL)||_.ek(c,_.wJ,2,yL)||_.ek(c,_.zJ,3,yL)||_.ek(c,_.bL,4,yL)||_.ek(c,_.xJ,5,yL)||_.ek(c,_.DJ,6,yL)||_.ek(c,_.FJ,7,yL)||_.ek(c,_.GJ,8,yL)||_.ek(c,_.JJ,9,yL)||_.ek(c,_.WJ,18,yL)||_.ek(c,_.$J,10,yL)||_.ek(c,_.aK,11,yL)||_.ek(c,_.bK,12,yL)||_.ek(c,_.hJ,13,yL)||_.ek(c,_.gK,14,yL)||_.ek(c,_.hK,15,yL)||_.ek(c,_.zL,17,yL),e=qN(this,a);return this.H.then(function(f){return f.Qe(d,e)}).then(function(f){return b.jd([f])},
function(f){return b.jd(void 0,f)})};_.g.MN=function(a){var b=this,c=BL(a.args[0],!!a.H,lCc),d=_.ek(c,_.AJ,1,mCc)||_.ek(c,_.HJ,2,mCc)||_.ek(c,_.iK,3,mCc),e=qN(this,a);return this.H.then(function(f){return f.Qe(d,e)}).then(function(f){return b.jd([f])},function(f){return b.jd(void 0,f)})};
_.g.Fz=function(a){var b=this,c=BL(a.args[0],!!a.H,fCc),d=qN(this,a),e=[],f=[];hCc(c).forEach(function(h){h instanceof _.uJ?e.push(String(h.Ac())):e.push(String(h.getId()));f.push(b.H.then(function(k){return k.Qe(h,d)}))});a=_.RI(f).then(function(h){return h.map(function(k){return k.value||k.reason})});_.di(a,function(){return void xTc(b.context.Nf)});return a.then(function(h){return b.jd([new SBc(e,h)])})};
_.g.yr=function(a){var b=this,c=BL(a.args[0],!!a.H,_.TJ),d=a.args[1];if(3===c.getType())if(!d&&this.W)a=this.W;else{var e=qN(this,a);a=this.H.then(function(f){return f.Qe(c,e)}).then(function(f){return new _.VK(f,1,!1)});this.W||(this.W=a.then(function(f){return new _.VK(f.response,f.Je,!0)}),setTimeout(function(){b.W=null},9E5))}else a=new eYc(c,d,this.context.H[a.clientId]),pM(this.context.Sj,"Qubz4b"),a=this.ma.enqueue(a);return a.then(function(f){return b.jd([f.response,f.Je,f.J_])},function(f){return b.jd(void 0,
f)})};_.g.XR=function(a){var b=this,c=BL(a.args[0],!!a.H,iCc),d=_.ek(c,_.XD,1,jCc)||_.ek(c,_.YD,2,jCc),e=qN(this,a);return this.H.then(function(f){return f.Qe(d,e)}).then(function(f){return b.jd([f])},function(f){return b.jd(void 0,f)})};_.g.Pl=function(a){a=a.args[0];if(this.context.pz)a?_.eyc(this.context.pz,!0):this.context.Ck().Se()&&this.context.pz.mM(!0).then(null,function(){});else try{this.context.Mj().Pl(a)}catch(b){return this.jd(void 0,b)}return this.jd([])};
_.g.cz=function(a){var b=this,c=a.args[0];return this.context.cz(c).then(function(d){return d?(b.context.Mj().cz(c),b.Ha(c),b.context.Ks.lL().Dg(function(){return!c})):_.Zh(!c)}).then(function(d){return b.jd([d])},function(d){return b.jd(void 0,d)})};_.g.sync=function(){var a=this;return _.ai([this.context.R$.promise,this.context.jfa.promise]).then(function(){return a.context.Ks.lL()}).then(function(){return a.jd([])},function(b){return a.jd(void 0,b)})};
_.g.jF=function(){try{var a=this.context.U5;a&&a.boa();this.context.Qga.jF();return this.jd([])}catch(b){return this.jd(void 0,b)}};_.g.ZR=function(){this.context.ZR();return this.jd([])};_.g.xr=function(a){var b=this,c=BL(a.args[0],!!a.H,_.MJ),d=qN(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.jd([e])},function(e){return b.jd(void 0,e)})};
_.g.W$=function(a){var b=this,c=BL(a.args[0],!!a.H,_.NJ),d=qN(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.jd([e])},function(e){return b.jd(void 0,e)})};_.g.f8=function(a){var b=this,c=BL(a.args[0],!!a.H,_.BJ),d=qN(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.jd([e])},function(e){return b.jd(void 0,e)})};
_.g.YS=function(a){var b=this,c=BL(a.args[0],!!a.H,_.eK),d=qN(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.jd([e])},function(e){return b.jd(void 0,e)})};_.g.U$=function(a){var b=this,c=BL(a.args[0],!!a.H,_.OJ),d=qN(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return _.YI(b.context.Nc)?IKc(b.context.Nf.xq,[_.B(e,_.Sk,2)],c.Ac()).then(function(){return e}):e}).then(function(e){return b.jd([e])},function(e){return b.jd(void 0,e)})};
_.g.h8=function(a){var b=this,c=BL(a.args[0],!!a.H,_.EJ),d=qN(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.jd([e])},function(e){return b.jd(void 0,e)})};_.g.mu=function(a){var b=this,c=BL(a.args[0],!!a.H,_.VJ),d=qN(this,a);return this.H.then(function(e){return e.Qe(c,d).then(function(f){return _.YI(b.context.Nc)?GKc(b.context.Nf.xq,f):f})}).then(function(e){return b.jd([e])},function(e){return b.jd(void 0,e)})};
_.g.bDb=function(a){var b=this,c=BL(a.args[0],!!a.H,_.dQc),d=new _.Euc(c,a.args[1],a.args[2]||void 0),e=qN(this,a);return this.H.then(function(f){return f.Qe(d,e)}).then(function(f){return b.jd([f])},function(f){return b.jd(void 0,f)})};
_.g.fDb=function(a){var b=this,c=BL(a.args[0],!!a.H,_.UJ),d=qN(this,a);return this.H.then(function(e){return e.Qe(c,d).then(function(f){return _.YI(b.context.Nc)?IKc(b.context.Nf.xq,_.Wj(f.jd(),_.Sk,2),c.ud().getId()).then(function(){return f}):f})}).then(function(e){return b.jd([e])},function(e){return b.jd(void 0,e)})};_.g.fQ=function(){var a=this;return(_.Q(this.context.Nc.ig(),52,!1)?_.Zh($Ic(new ZIc,0)):this.context.xI.fQ()).then(function(b){return a.jd([b])},function(b){return a.jd(void 0,b)})};
_.g.dDb=function(a){var b=this,c=BL(a.args[0],!!a.H,_.Duc),d=qN(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.jd([e])},function(e){return b.jd(void 0,e)})};_.g.cDb=function(a){var b=this,c=BL(a.args[0],!!a.H,_.SJ),d=qN(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.jd([e])},function(e){return b.jd(void 0,e)})};
_.g.g8=function(a){var b=this,c=BL(a.args[0],!!a.H,_.CJ),d=qN(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.jd([e])},function(e){return b.jd(void 0,e)})};_.g.yna=function(a){var b=this,c=BL(a.args[0],!!a.H,_.nJ),d=qN(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.jd([e,null])},function(e){return b.jd([null,_.fJ(e)])})};_.g.fxb=function(){return this.jd([!0])};
_.g.hDb=function(a){var b=this,c=BL(a.args[0],!!a.H,_.EG),d=qN(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.jd([e])},function(e){return b.jd(void 0,e)})};_.g.iDb=function(a){var b=this,c=BL(a.args[0],!!a.H,_.kA),d=qN(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.jd([e])},function(e){return b.jd(void 0,e)})};_.g.r_=function(a){a=BL(a.args[0],!!a.H,_.of);NSc(this.context.Nf,[a]);return this.jd([])};
_.g.w7=function(a){var b=this,c=BL(a.args[0],!!a.H,_.yJ),d=qN(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.jd([e])},function(e){return b.jd(void 0,e)})};_.g.UO=function(a){var b=this,c=BL(a.args[0],!!a.H,_.VM),d=qN(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return TKc(c,e)}).then(function(e){return b.jd(e)},function(e){return b.jd(void 0,e)})};
_.g.gDb=function(a){var b=this,c=new _.Luc(BL(a.args[0],!!a.H,_.Q8b),a.args[1]),d=qN(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.jd([e.response,e.pageToken])},function(e){return b.jd(void 0,e)})};_.g.n$a=function(a){var b=this,c=BL(a.args[0],!!a.H,_.DG),d=qN(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.jd([e])},function(e){return b.jd(void 0,e)})};
_.g.X_=function(a){var b=this,c=BL(a.args[0],!!a.H,_.PK),d=qN(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.jd([e])},function(e){return b.jd(void 0,e)})};_.g.So=function(a){var b=a.args.map(function(c){return BL(c,!!a.H,_.bJ)});this.context.Nf.So(b);xTc(this.context.Nf);return this.jd([])};_.g.B7=function(){var a=this,b=this.context.pz;return(b?b.mM():_.Zh(_.Xxc(0))).then(function(c){return a.jd([c])},function(c){return a.jd(void 0,c)})};
_.g.initialize=function(){var a=this;if(!this.O){this.O=_.ci();this.context.Rf().info("drive.ds.sync.cacheproxy.WorkerSyncedItemService","Initializing with client build: "+this.context.Nc.Xi());this.Sc.listen(this.context,_.Oc,function(e){e=e.error;var f=e.Tg;f&&3===f.getType()&&!a.ha?(a.ha=!0,a.O.reject(e)):GFc(a.context.Rf(),"drive.ds.sync.cacheproxy.WorkerSyncedItemService","An error occurred in the Shared Worker")});var b=this.context.Sj,c=["hVFf7"];_.EK(this.context.Nc)&&c.push("BNEDtc");oM(b,
c,function(){a.ha||(a.ha=!0,a.O.resolve())});oM(b,["GZTDpc"],function(){return a.Ba.resolve()});var d=function(){fN(a.context).then(function(e){return void e.start()})};oM(b,["T8oKm","ZA9qG"],function(){return void d()});oM(b,["T8oKm","mrK8ic"],function(){return void d()});b.start();pM(b,"NSockf")}return this.O.promise};_.g.lba=function(){return this.Ba.promise};_.g.Gu=function(){var a=this.context.U5;a&&a.dispose();return this.context.Gu()};
var qN=function(a,b){return(a=a.context.H[b.clientId])?{CD:a}:{}};
var lYc=function(a,b,c){oN.call(this,"DU",b);this.context=a;this.O=c;this.H=new WQc(a)};_.K(lYc,oN);_.g=lYc.prototype;
_.g.LU=function(){var a=this,b={};return b["5.1"]=function(){return a.Hha()},b["5.2"]=function(c){return a.JM(c)},b["5.4"]=function(c){return a.Sz(c)},b["5.5"]=function(){return a.$Q()},b["5.10"]=function(){return a.hN()},b["5.6"]=function(){return a.dda()},b["5.7"]=function(){return a.LS()},b["5.9"]=function(c){return a.Apa(c)},b["5.8"]=function(c){return a.L4(c)},b["5.11"]=function(){return a.Yoa()},b["5.12"]=function(c){return a.getState(c)},b["5.13"]=function(c){return a.Pl(c)},b};
_.g.Hha=function(){var a=this;this.context.Ks.gS();var b=this.context.Nc;return UMc(_.CK(_.JI(b)),_.DK(b),this.context.Rf()).Dg(function(){}).then(function(){return a.jd([])})};_.g.JM=function(a){a=this.context.Nf.xm.H(a.args[0]);return this.jd([a])};_.g.Sz=function(a){var b=this;return this.context.aB.Sz(a.args[0]).then(function(c){return b.jd([c])})};_.g.$Q=function(){return this.jd(this.context.aB.$Q())};
_.g.L4=function(a){var b=this,c=BL(a.args[0],!!a.H,_.ltc),d=a.args[1],e=a.args[2];if(_.ek(c,_.ZI,3,_.$I)||_.ek(c,_.kK,4,_.$I)||_.ek(c,_.bL,5,_.$I)||_.ek(c,_.hK,6,_.$I)||_.ek(c,_.GJ,7,_.$I)||_.ek(c,_.zJ,8,_.$I)||_.ek(c,_.DJ,9,_.$I)||_.ek(c,_.hJ,10,_.$I)){var f=gJc(c);return this.context.Um().then(function(h){return h.Qe(f,{b6a:d,c6a:e})}).then(function(h){a:{var k=[],l="";if(h instanceof _.cL){k=h.jd().wd();var p=_.y(h,2);l=h.$n()}else if(h instanceof _.oK)h.getItem()&&k.push(h.getItem()),p=h.RM();
else{h=b.jd(void 0,Error("gg"));break a}h=b.jd([p,l].concat(_.Bd(k)))}return h},function(h){return b.jd(void 0,h)})}return _.Zh(this.jd(void 0,Error("fg")))};_.g.Apa=function(){var a=this.context.Nc,b=a.ig();a="email:"+_.JI(a).getEmail().replace(/@.*$/,"");_.w(b,13,a);return this.jd([])};_.g.dda=function(){this.context.QF.H=new JLc(_.Wg().substring(0,8));return this.jd([])};
_.g.LS=function(){var a=this.context.QF.hN();if(a){var b=LLc(this.context.QF);a=[a.H,a.startTime].concat(_.Bd(b))}else a=[];b=this.context.QF;b.H=null;b.zY=[];return this.jd(a)};_.g.hN=function(){var a=this.context.QF.hN();return this.jd(a?[a.H,a.startTime]:[])};_.g.getState=function(){var a=this;return this.H.getState(this.va).then(function(b){return a.jd([b])})};_.g.Yoa=function(){var a=[this.O.Gu(),_.Ii(3E4)];_.di(_.Oja(a),function(){_.n.setTimeout(function(){self.close()})});return this.jd([])};
_.g.Pl=function(a){this.H.Pl(a.args[0]);return this.jd([])};
var mYc=function(a,b,c,d,e,f,h){_.oL.call(this,a,b,c,d,f,h);this.H=e;this.eg=null};_.K(mYc,_.oL);mYc.prototype.tM=function(a,b){var c=this;return _.ki(this.H.then(function(d){return d.s2a(hBc(c.O,c.va,a,b,c.jj,c.ha))},null))};mYc.prototype.ma=function(a,b){var c=this.ud(a);if(c){var d=0;if(c.file){var e=c.request&&c.request.Sz();e&&(d=_.y(e,1));0===d&&(d=c.file.size)}this.dispatchEvent(new _.zyc(a,b,d))}};
var nYc=function(a,b,c,d,e,f,h,k){oN.call(this,"FU",k);this.ka=a;this.ha=b;this.ta=c;this.Ba=d;this.W=e;this.ma=f;this.eg=h;this.H={};this.O={};this.Sc=new _.Ze(this);this.Ma(this.Sc)};_.K(nYc,oN);_.g=nYc.prototype;
_.g.LU=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.fG(c)},b["7.4"]=function(c){return a.retry(c)},b["7.5"]=function(c){return a.tM(c)},b["7.6"]=function(c){c=c.clientId+":"+c.requestId;a.H[c]&&(a.H[c].dispose(),delete a.H[c]);return a.jd([])},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.jd([])},b};
_.g.upload=function(a){var b=this,c=a.clientId+":"+a.requestId,d=BL(a.args[0],!!a.H,_.zJ),e=a.args[1];if(!this.H[c]){var f=new mYc(this.ka,this.ha,this.ta,this.Ba,this.W,this.ma,this.eg);this.Sc.listen(f,"Hb",_.Eb(this.o$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.hj(),r=_.ci();b.O[q]=r;b.update(l,p,oYc(3,q,[h,k]));return r.promise}).then(function(h){return b.jd([h])},function(h){return b.jd(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.jd([])};_.g.fG=function(a){a=a.clientId+":"+a.requestId;this.H[a]&&this.H[a].fG();return this.jd([])};
_.g.retry=function(a){var b=this,c=a.requestId,d=a.clientId+":"+c;if(this.H[d]){var e=a.args[0],f=a.args.slice(1),h=this.H[d].retry(f),k={},l=0;_.Ja(f,function(p){k[p]=h[l++]});_.Ma(k,function(p,q){p.mg(function(r){b.update(a.clientId,c,oYc(0,e,[q,r]))},function(r){b.update(a.clientId,c,oYc(1,e,[q,r.Tg]))})});return this.jd([])}return this.jd(void 0,_.fJ("Could not retry upload."))};
_.g.tM=function(a){var b=a.clientId+":"+a.requestId,c=a.args[0];a=a.args.slice(1);return this.H[b]?(b=this.H[b],c=hBc(b.O,b.va,c,a,b.jj,b.ha),this.jd([oCc(c)])):this.jd(void 0,_.fJ("FileUploader not found."))};_.g.o$a=function(a,b,c){this.update(a,b,oYc(2,c.requestId,[c.progress,c.totalBytes]))};var oYc=function(a,b,c){return[Number(a),b].concat(_.Bd(c))};
var pYc=function(a,b){oN.call(this,"IE",b);this.O=a;this.H=new Map};_.K(pYc,oN);pYc.prototype.LU=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};
pYc.prototype.export=function(a){var b=this,c=a.requestId,d=a.clientId+":"+c,e=BL(a.args[0],!!a.H,_.Cuc);e=new aN(this.O,e);var f=_.Pe(e,"Lb",function(h){b.update(a.clientId,c,[h.OOa,h.Lta])});_.Re(e,function(){_.Ci(f);b.H.delete(d)});this.H.set(d,e);return e.start().then(function(h){return b.jd([h])},function(h){return b.jd(void 0,h)})};pYc.prototype.cancel=function(a){(a=this.H.get(a.clientId+":"+a.requestId))&&a.cancel();return this.jd([])};
var qYc=function(a,b){oN.call(this,"ODS",b);this.context=a;this.H=!1;this.W=_.ci();this.O=new aRc(a,a.Mg)};_.K(qYc,oN);qYc.prototype.LU=function(){var a=this,b={};return b["6.1"]=function(c){return rYc(a,c)},b["6.2"]=function(c){return sYc(a,c)},b["6.3"]=function(){a.H&&(dRc(a.O),a.H=!1,a.W=_.ci());return a.jd([])},b};
var rYc=function(a,b){if(!a.H){a.H=!0;var c=b.args.map(function(d){return BL(d,!!b.H,_.jl)});a.O.zl(c);pM(a.context.Sj,"GZTDpc");a.W.resolve()}return a.jd([])},sYc=function(a,b){return a.W.promise.then(function(){var c=b.args.map(function(d){return BL(d,!!b.H,_.bJ)});cRc(a.O,c);return a.jd([])})};
var tYc=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("Ig`"+b);a.services.set(b,new _.ei)})};tYc.prototype.activate=function(a){var b=this.services.get(a.V);if(b&&!b.kg())b.callback(a);else throw Error("Jg`"+a.V);};var uYc=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)})};tYc.prototype.Eo=function(){return[].concat(_.Bd(this.services.values())).every(function(a){return a.kg()})};
var vYc=function(){},wYc={0:2E3,1:3E3,2:5E3},xYc=function(a,b){this.request=a;this.ha=b;this.O=_.ci();this.continuationToken="";this.V=0;this.zE=this.W=!1;this.H=vYc};xYc.prototype.$g=function(a){var b=this;this.W||(this.W=!0,this.sendRequest());a&&(this.H=a);return this.O.promise.then(function(c){b.H=vYc;b.V=0;return c},function(c){b.H=vYc;b.V=0;return Promise.reject(c)})};
xYc.prototype.sendRequest=function(){var a=this;if(this.zE)this.O.resolve((new UM).Dc(8));else{var b=new _.Puc(this.request,this.continuationToken);this.ha.then(function(c){return c.Qe(b)}).then(function(c){yYc(a,c)},function(c){a.handleError(c)})}};var yYc=function(a,b){var c;a.continuationToken=null!==(c=b.$n())&&void 0!==c?c:"";a.H(b);a.continuationToken?setTimeout(function(){a.sendRequest()},zYc(a.V++,a.ka)):a.O.resolve(b)};xYc.prototype.handleError=function(a){a=_.SB(a);this.O.reject(a)};
xYc.prototype.cancel=function(){this.zE=!0};var zYc=function(a,b){return b?b:(a=wYc[a])?a:1E4};
var AYc=function(a,b){oN.call(this,"TM",b);this.O=a;this.H=new Map};_.K(AYc,oN);AYc.prototype.LU=function(){var a=this,b={};return b["10.1"]=function(c){return BYc(a,c)},b["10.2"]=function(c){return a.cancel(c)},b};
var BYc=function(a,b){var c=b.clientId+":"+b.requestId,d=BL(b.args[0],!!b.H,_.FPc);d=new xYc(d,a.O);a.H.set(c,d);return _.di(d.$g(function(e){var f;a.update(b.clientId,null!==(f=b.requestId)&&void 0!==f?f:"",[e])}).then(function(e){return a.jd([e])},function(e){return a.jd(void 0,e)}),function(){a.H.delete(c)})};AYc.prototype.cancel=function(a){this.H.get(a.clientId+":"+a.requestId).cancel();return this.jd([])};
var rN=function(a,b,c){_.O.call(this);this.H=a;this.kw=b;this.kb=c;this.fields=null;this.Ha=!1;this.Ka=_.ci();this.W=!1;this.Ba=_.ci();this.O=_.ci();this.ta=null;this.va=this.Ta=!1;this.Ab=_.ci();this.ha=new Set;this.Fa=new Set;this.V=new Map;this.ma=new Set;this.gz=Date.now();this.services=new tYc;this.Ib=new _.Ze(this);this.Ma(this.Ib)};_.K(rN,_.O);rN.prototype.hY=function(a){this.O.promise.then(function(b){b.U5||a.sMa(b)})};
var FYc=function(a,b){var c=LXc(a.H,b),d=a.Rb.bind(a,c);hM(b,"8.1",d);b.registerService("8.1",d);hM(b,"8.4",a.Qa.bind(a,c));b.registerService("8.5",function(f){return CYc(a,c,f)});hM(b,"8.2",a.Gb.bind(a,c));hM(b,"8.3",a.Mb.bind(a,c));uYc(a.services,b);b.start();DYc(a,c,b);a.ka(c,b);var e=[];a.ta||(a.ta=_.ai([a.Ka.promise,a.Ba.promise]).then((0,_.N)(a.initialize,a)));e.push(a.ta);_.ai(e).then(function(){return void EYc(a,c,b)},function(f){a.Ta=!0;iM(b,"2.2",{err:_.fJ(f).Lc()},d)})},GYc=function(a){return Math.floor((Date.now()-
a.gz)/1E3)},HYc=function(a,b,c){var d=function(e){iM(b,"2.8",{au:"pb"===e.type})};a.Ib.listen(c.xI,["pb","qb"],d);_.Re(b,a.Ib.Yc.bind(a.Ib,c.xI,["pb","qb"],d))},IYc=function(a,b,c){var d=c.Ck(),e=[].concat(_.Bd(Object.values(_.rC))),f=function(h){iM(b,"2.19",{cs:h.connectionState})};a.Ib.listen(d,e,f);_.Re(b,function(){a.Ib.Yc(d,e,f)})};
rN.prototype.Rb=function(a){var b=MXc(this.H,a);if(b&&((this.services.services.get("LRM")||null).addCallback(function(d){PXc(d,a)}),b.dispose(),this.log(_.Ht("Client %d disconnected (num clients remaining: %d)",a,_.Qa(this.H.channels))),0===_.Qa(this.H.channels))){var c=function(){_.n.setTimeout(function(){self.close()})};this.Ta?c():(this.services.services.get("IS")||null).addCallback(function(d){_.di(d.Gu(),c)})}};
rN.prototype.Qa=function(a,b){if(this.ha.has(a))return _.Zh();var c=new _.cc(JSON.parse(b.dsc));_.w(c,24,!1);this.Ha||(this.Ha=!0,this.Ka.resolve(c));this.ha.add(a);return this.O.promise.then(function(d){GXc(d,a,_.D(c.ig(),37,""));FXc(d,_.ge(c,28));d.Nf.jla(_.Wj(c,_.Kl,91));return d.wX.promise.then(function(){NSc(d.Nf,_.Wj(c,_.of,44))})},function(){})};
rN.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 RRc(e,e.Mg);e.$g(d);e.dispose();(e=c.H.channels[a]||null)&&iM(e,"2.16")})}};rN.prototype.Mb=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){JYc(new wSc(h),e);(h=c.H.channels[a]||null)&&iM(h,"2.17",{t:f})})}};
var JYc=function(a,b){b.filter(function(c){return c}).forEach(function(c){return a.$g(c)});a.dispose()};rN.prototype.$a=function(){for(var a=[],b={},c=_.m(_.Ra(this.H.channels)),d=c.next();!d.done;b={Yda:b.Yda,Bea:b.Bea},d=c.next())b.Yda=d.value,b.Bea=_.ci(),iM(b.Yda,"2.12",void 0,function(e){return function(){e.Yda.dispose();e.Bea.resolve()}}(b)),a.push(b.Bea.promise);return _.ai(a).then()};
rN.prototype.initialize=function(a){var b=this;a=a[0];_.iwc(a,this.fields);var c=_.B(a,_.oJ,58);c=c&&_.Q(c,1,!1)?this.kb:void 0;try{var d=new DL(null,a,this.kw,c,void 0,void 0),e=d.tk().H(106E3);mXc(d,this.$a.bind(this));this.Ib.listen(d.Mj(),"Bb",function(k){k={os:k.Se()};for(var l=_.m(_.Ra(b.H.channels)),p=l.next();!p.done;p=l.next())iM(p.value,"2.6",k)});this.Ib.listen(d,_.Oc,this.rb);this.Ib.listen(d,"w8KrJc",this.Ic);dJc(d.xI,this.ka.bind(this));var f=d.pz;f&&VFc(f,function(){return b.ka()});
this.O.resolve(d);var h=KYc(this,d,new kYc(d,this.H,(0,_.N)(this.oc,this),(0,_.N)(this.zc,this)));e&&h.then(function(){return e&&e.Aj()});return h}catch(k){return _.$h(k)}};
var KYc=function(a,b,c){a.services.activate(c);a.services.activate(new NXc(b,a.H));a.services.activate(new lYc(b,a.H,c));a.services.activate(new qYc(b,a.H));a.services.activate(new nYc(b.Nc,b.aB,b.ZQ().hfa,b.Um(),b.$P,b.Rf(),b.tk(),a.H));a.services.activate(new pYc(b.Um(),a.H));a.services.activate(new AYc(b.Um(),a.H));return c.initialize()},EYc=function(a,b,c){var d=_.Qa(a.H.channels);a.log(_.Ht("Client %d connected (num clients: %d, added: %d, max concurrent: %d)",b,d,a.H.O,a.H.H));iM(c,"2.2",{id:b,
clients:d,uptimeSec:GYc(a),dsp:!a.V.has(b),ivd:!a.ma.has(b)});a.O.promise.then(function(e){e.IZ.addCallback(function(f){c.isDisposed()||iM(c,"2.5",{id:f})});1<d&&fN(e).addCallback(function(f){return f.Sva()});(a.services.services.get("IS")||null).addCallback(function(f){f.lba().then(function(){c.isDisposed()||iM(c,"2.14")})});HYc(a,c,e);IYc(a,c,e)})};rN.prototype.oc=function(a){a={dt:a.dataType};for(var b=_.m(_.Ra(this.H.channels)),c=b.next();!c.done;c=b.next())iM(c.value,"2.15",a)};
rN.prototype.zc=function(a){var b={oois:a};_.Ra(this.H.channels).forEach(function(c){iM(c,"2.18",b)})};rN.prototype.rb=function(a){a={p:a.error.Tg.Lc()};for(var b=_.m(_.Ra(this.H.channels)),c=b.next();!c.done;c=b.next())iM(c.value,"2.10",a)};rN.prototype.Ic=function(){for(var a=_.m(_.Ra(this.H.channels)),b=a.next();!b.done;b=a.next())iM(b.value,"2.7")};var DYc=function(a,b,c){a.ha.has(b)?_.Zh():new _.Yh(function(d){iM(c,"2.1",void 0,function(e){d(a.Qa(b,e))})})};
rN.prototype.ka=function(a,b){var c=this;if("number"===typeof a){if(!b)return _.$h(Error("Kg"));if(this.W&&this.Fa.has(a))return _.Zh()}b=b||_.Ra(this.H.channels)[0];if(!b)return _.$h(Error("Lg"));var d=_.ci();b.send("1.1",void 0,function(e){CYc(c,a,e);d.resolve()});return d.promise};var CYc=function(a,b,c){_.Ma(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())};
rN.prototype.log=function(a){this.O.promise.then(function(b){return b.Rf().info("drive.ds.sync.cacheproxy.Worker",a)})};
var LYc=function(a,b){nN.call(this,"DU","drive.ds.sync.DebugUtilProxy",a);this.context=b;this.H=null};_.K(LYc,nN);_.g=LYc.prototype;_.g.La=function(){return _.B(this.context.Nc,_.oJ,58)};_.g.getContext=function(){return this.context};_.g.Sz=function(){return _.ki(this.send("5.4",[this.H],function(a,b){return BL(a[0],b,_.Vwc)}))};_.g.Rf=function(){return this.context.Rf()};_.g.JM=function(a){return _.ki(this.send("5.2",[a],function(b,c){return b[0]?BL(b[0],c,_.jl):null}))};
_.g.$Q=function(){return _.ki(this.send("5.5",[],function(a,b){return a.map(function(c){return BL(c,b,_.ltc)})}))};_.g.L4=function(a,b,c){return _.ki(this.send("5.8",[a,b,c],function(d,e){var f=d[0],h=d[1];return{items:d.slice(2).map(function(k){return BL(k,e,_.jl)}),hia:f,pageToken:h}}))};_.g.Apa=function(){this.send("5.9",[])};_.g.Hha=function(){this.send("5.1",[])};_.g.b9=function(){return _.Ptc[_.Gj(this.context.Nc.ig(),8,0)]};_.g.dda=function(){this.send("5.6",[])};
_.g.LS=function(){return _.ki(this.send("5.7",[],function(a,b){if(0===a.length)return null;var c=a[0],d=new Date(a[1]);a=a.slice(2).map(function(e){return BL(e,b,hJc)});return{traceId:new JLc(c,d),spanRecs:a}}))};_.g.hN=function(){return _.ki(this.send("5.10",[],function(a){return 0===a.length?null:new JLc(a[0],new Date(a[1]))}))};_.g.getState=function(){return _.ki(this.send("5.12",[],function(a){return a[0]}))};_.g.Yoa=function(){this.send("5.11",[])};_.g.Pl=function(a){this.send("5.13",[a])};
var MYc=function(a,b){nN.call(this,"IE","drive.ds.sync.itemexport.ItemExportSessionProxy",a);this.request=b;this.promise=null;this.id=String(_.Da(this))};_.K(MYc,nN);MYc.prototype.start=function(){var a=this;this.promise||(this.promise=this.send("9.1",[this.request],function(b,c){return BL(b[0],c,jQc)},this.id).then(),this.promise.then(function(){return a.dispose()},function(){return a.dispose()}));return this.promise};MYc.prototype.cancel=function(){this.send("9.2",[],void 0,this.id)};
MYc.prototype.z$=function(a,b,c){this.dispatchEvent(new xQc(c[0],c[1]))};
var NYc=function(a){nN.call(this,"ODS","drive.ds.sync.offline.DataServiceProxy",a);this.H=null};_.K(NYc,nN);NYc.prototype.kY=function(a){var b=this;(this.H=a)?(this.log("Querying all offline items."),this.H.pV().mg(function(c){b.log("Forwarding all offline items response, count:"+c.length);b.send("6.1",c)},function(){b.log("Error fetching offline items.")}),this.H.t_(function(c){b.log("Forwarding offline items changes, count:"+c.length);b.send("6.2",c)})):this.send("6.3",[])};
var OYc=function(a,b){yM.call(this,a,b)};_.K(OYc,yM);OYc.prototype.Xha=function(a,b,c){return new _.Luc(a,c)};OYc.prototype.ika=function(a){return a.pageToken||""};OYc.prototype.wja=function(a){return a.response.O()};OYc.prototype.S5=function(){};
var PYc=function(a,b,c){$M.call(this,a.Mj(),a.Ck(),b.Ei()||void 0);this.request=b;this.O=[];this.changed=!1;this.ka=c;this.V=new OYc(this.request,this.ka)};_.K(PYc,$M);_.g=PYc.prototype;_.g.MG=function(){this.V.$g().then(this.p$a.bind(this),this.handleError.bind(this))};_.g.getData=function(){return xPc(new TM,this.O).Dc(this.status)};_.g.zr=function(){return new vPc};_.g.Vj=function(){return!this.Se()&&(!this.H||VKc(this.V))};_.g.p$a=function(a){this.changed=this.H=!0;this.O=a;this.Xt()};
_.g.Xt=function(){if(this.active){var a=this.status;this.IL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ui(_.Pc,this))}};_.g.$b=function(){return this.O.length};
var QYc=function(a,b,c){$M.call(this,a.Mj(),a.Ck(),b.Ei()||10);this.request=b;this.O=[];this.data=[];this.changed=!1;this.V=new _.c8a;this.suggestionSessionId=null;this.ka=c};_.K(QYc,$M);_.g=QYc.prototype;_.g.MG=function(){var a=this;this.ka(this.request).then(function(b){a.H=!0;a.changed=!0;a.data=b.Pi();a.suggestionSessionId=b.dg();a.Xt()},this.handleError.bind(this))};_.g.getData=function(){this.O=this.data;return _.cBc(_.bBc((new _.qL).Dc(this.status),this.data.slice(0)),this.suggestionSessionId)};
_.g.zr=function(){var a=this.V.ty(this.O,this.data);this.O=this.data;var b=(new BPc).Dc(this.status);return _.Lj(b,2,a)};_.g.SO=function(){};_.g.Xt=function(){var a=this.status;this.IL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ui(_.Pc,this))};_.g.$b=function(){return this.data.length};
var RYc=function(){};_.g=RYc.prototype;_.g.vM=function(a,b){b=aQc(1).setPosition(b);_.I(b,2,a);return b};_.g.uM=function(a,b){b=aQc(2).setPosition(b);_.I(b,2,a);return b};_.g.BE=function(a,b,c){b=aQc(3).dz(b).setPosition(c);_.I(b,2,a);return b};_.g.nQ=function(a,b){b=aQc(4).setPosition(b);_.I(b,2,a);return b};_.g.TM=function(a){return _.B(a,_.ZPc,2)};
var TYc=function(){_.My.call(this,new RYc,function(a){return SYc(a)})};_.K(TYc,_.My);var SYc=function(a){switch(_.sb(a,_.YM)){case 6:return _.Ly(_.ek(a,_.Ky,6,_.YM)).getTime().toString();case 7:var b=_.ek(a,_.XM,7,_.YM);a=_.B(b,_.Ky,1);b=b.qv();return a&&b?(a=_.Ly(a).getTime(),_.Ly(b).getTime()+"--"+a):"";default:return""}},VYc=function(){UYc||(UYc=new TYc);return UYc},UYc;
var WYc=function(a,b,c,d){$M.call(this,b.Mj(),b.Ck(),d);this.request=a;this.V=!1;this.ka=[];this.O=[];this.token="";this.changed=!1;this.ma=new _.ayc(_.bk(b.Nc.ig(),6,1E3));this.ta=c};_.K(WYc,$M);_.g=WYc.prototype;_.g.activate=function(){$M.prototype.activate.call(this);this.Xt()};_.g.MG=function(){_.P(this.request,3)?this.page():this.poll()};_.g.Fr=function(a){if(a=a||50,this.O.length>this.limit)this.changed=!0;$M.prototype.Fr.call(this,a)};
_.g.getData=function(){var a=(new fQc).Dc(this.status);_.Lj(a,2,this.O.slice(0,this.limit));this.ka=_.xa(this.O);return a};_.g.zr=function(){var a=VYc().ty(this.ka,this.O),b=new cQc;a=_.Lj(b,2,a).Dc(this.status);this.ka=_.xa(this.O);return a};_.g.Vj=function(){return!this.Se()&&(!this.H||this.O.length>this.limit||!!this.token)};_.g.ud=function(){return this.request};
_.g.page=function(a){var b=this;this.active?(this.V=!0,this.Vj()&&this.O.length<this.limit?this.ta(this.request,this.limit-this.O.length,this.token).then(function(c){b.H=!0;var d=_.Wj(c,_.ZPc,1);b.O=b.O.concat(d);b.token=c.yy()||"";0<d.length&&(b.changed=!0);b.Xt();b.page(a)},function(c){b.dispatchEvent(new _.Fc(c));b.V=!1}):(this.V=!1,a&&a.callback(),XYc(this))):this.V=!1};
_.g.poll=function(){var a=this;this.active&&(this.V=!0,this.ta(this.request,this.limit).then(function(b){var c=VYc();a.H=!0;var d=_.Wj(b,_.ZPc,1);HL(c,a.O.slice(0,d.length),d)?(a.O=d,a.token=b.yy()||"",a.changed=!0,a.Xt(),a.page()):(a.V=!1,XYc(a))},function(b){a.dispatchEvent(new _.Fc(b));a.V=!1}))};_.g.Xt=function(){if(this.active){var a=this.status;this.IL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ui(_.Pc,this))}};
_.g.IL=function(){this.Se()&&!this.H?this.status=2:this.status=this.O.length<this.limit&&(!this.H||this.token)?6:1};_.g.SO=function(){this.active&&this.Vj()&&!this.V&&this.page(new _.ei)};var XYc=function(a){_.P(a.request,3)||(_.FI(a.ma),_.n.setTimeout((0,_.N)(a.poll,a),a.ma.Za()))};WYc.prototype.$b=function(){return this.O.length};
var YYc=function(){};_.g=YYc.prototype;_.g.vM=function(a,b){return hQc(gQc(1),a).setPosition(b)};_.g.uM=function(a,b){return hQc(gQc(2).setPosition(b),a)};_.g.BE=function(a,b,c){return hQc(gQc(3).dz(b).setPosition(c),a)};_.g.nQ=function(a,b){return hQc(gQc(4),a).setPosition(b)};_.g.TM=function(a){return _.B(a,_.OM,2)};
var ZYc=function(){_.My.call(this,new YYc,function(a){return a.getId()})};_.K(ZYc,_.My);var aZc=function(){$Yc||($Yc=new ZYc);return $Yc},$Yc;
var bZc=function(a,b,c){$M.call(this,b.Mj(),b.Ck());this.request=a;this.V=[];this.backups=[];this.changed=!1;this.O=new _.ayc(_.bk(b.Nc.ig(),54,1E3));this.ka=c};_.K(bZc,$M);_.g=bZc.prototype;_.g.activate=function(){$M.prototype.activate.call(this);this.Xt()};_.g.MG=function(){this.poll()};_.g.getData=function(){var a=new pQc;a=_.Lj(a,2,this.backups).Dc(this.status);this.V=_.xa(this.backups);return a};
_.g.zr=function(){var a=aZc().ty(this.V,this.backups),b=new nQc;a=_.Lj(b,2,a).Dc(this.status);this.V=_.xa(this.backups);return a};_.g.Vj=function(){return!this.Se()&&!this.H};_.g.poll=function(){var a=this,b=new _.ei;this.ka(this.request).then(function(c){a.H=!0;c=_.Wj(c,_.OM,2);HL(aZc(),a.backups,c)&&(a.changed=!0,a.backups=c,a.O.reset());a.Xt();b.callback();cZc(a)},function(c){a.dispatchEvent(new _.Fc(c));b.Jd(c);cZc(a)});return b};
_.g.Xt=function(){if(this.active){var a=this.status;this.IL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ui(_.Pc,this))}};_.g.SO=function(){};var cZc=function(a){a.active&&(_.n.setTimeout((0,_.N)(a.poll,a),a.O.Za()),_.FI(a.O))};bZc.prototype.$b=function(){return this.backups.length};
var dZc=function(){};_.g=dZc.prototype;_.g.vM=function(a,b){return fPc(ePc(1),a).setPosition(b)};_.g.uM=function(a,b){return fPc(ePc(2).setPosition(b),a)};_.g.BE=function(a,b,c){return fPc(ePc(3).dz(b).setPosition(c),a)};_.g.nQ=function(a,b){return fPc(ePc(4),a).setPosition(b)};_.g.TM=function(a){return _.B(a,_.Sk,2)};
var eZc=function(){_.My.call(this,new dZc,function(a){return a.getId()})};_.K(eZc,_.My);_.Wf(eZc);
var sN=function(a,b,c){_.Ei.call(this);this.context=a;this.request=b;this.nextPageToken="";this.H=this.O=!1;this.limit=0;this.permissions=[];this.V=c};_.K(sN,_.Ei);sN.prototype.vi=function(a){this.limit=a};sN.prototype.$g=function(){return this.H||this.O&&""===this.nextPageToken?Promise.resolve():fZc(this)};sN.prototype.kka=function(){return this.permissions};
var fZc=function(a){a.O=!0;a.H=!0;var b=Math.min(a.limit-a.permissions.length,100);var c=new _.UJ;c=_.I(c,3,a.request);c=_.w(c,2,a.nextPageToken);b=_.w(c,1,b);return a.V(b).then(a.W.bind(a)).then(null,a.handleError.bind(a))};sN.prototype.W=function(a){this.H=!1;this.nextPageToken=a.$n()||"";a=_.Wj(a.jd(),_.Sk,2);this.permissions=_.wa(this.permissions,a);a.length&&this.dispatchEvent("wa");if(this.nextPageToken&&this.permissions.length<this.limit)return fZc(this);this.dispatchEvent("za")};
sN.prototype.handleError=function(a){this.H=!1;a=new ML(_.fJ(a),_.bk(this.context.Nc.ig(),1,1));this.dispatchEvent(a)};
var gZc=function(a,b,c,d){$M.call(this,b.Mj(),b.Ck(),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 sN(b,this.request,this.ma);_.Re(this,function(){e.V&&(_.n.clearTimeout(e.V),e.V=null)})};_.K(gZc,$M);_.g=gZc.prototype;_.g.activate=function(){$M.prototype.activate.call(this);this.Xt()};_.g.MG=function(){this.query()};_.g.Fr=function(a){$M.prototype.Fr.call(this,a||100)};
_.g.getData=function(){var a=XFc(new LL,this.permissions.slice(0,this.limit)).Dc(this.status);this.ka=_.xa(this.permissions);return a};_.g.zr=function(){var a=eZc.tb().ty(this.ka,this.permissions),b=new mPc;a=_.Lj(b,2,a).Dc(this.status);this.ka=_.xa(this.permissions);return a};_.g.Vj=function(){var a;(a=!this.Se())&&!(a=!this.H)&&(a=this.O,a=!a.O||""!==a.nextPageToken);return a};_.g.ud=function(){return this.request};
_.g.query=function(){var a=this;this.O=new sN(this.context,this.request,this.ma);this.O.vi(this.limit);return this.O.$g().then(function(){return hZc(a)},function(b){return a.handleError(b)})};_.g.handleError=function(a){$M.prototype.handleError.call(this,a);iZc(this)};var hZc=function(a){a.H=!0;var b=a.O.kka();HL(eZc.tb(),a.permissions,b)&&(a.changed=!0,a.permissions=b);a.Xt();iZc(a)};
gZc.prototype.Xt=function(){if(this.active){var a=this.status;this.IL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ui(_.Pc,this))}};gZc.prototype.SO=function(){var a=this;this.O.vi(this.limit);this.O.$g().then(function(){return hZc(a)},function(b){return a.handleError(b)})};var iZc=function(a){if(a.active){var b=a.context.Nc.ig();a.V=_.n.setTimeout((0,_.N)(a.query,a),Math.ceil(_.bk(b,7,9E5)*Math.random())+_.bk(b,15,36E5))}};gZc.prototype.$b=function(){return this.permissions.length};
var jZc=function(a){6!==a.status&&_.n.setTimeout(function(){a.dispatchEvent(new _.ui(_.Pc,a))},0)};
var kZc=function(){},lZc=function(a,b){nN.call(this,"TM","drive.ds.sync.TeamDriveMovePreflightRunnerProxy",a);this.request=b;this.O=kZc;this.H=null;this.id=String(_.Da(this))};_.K(lZc,nN);lZc.prototype.z$=function(a,b,c){a===this.id&&(a=_.m(c).next().value,this.O(BL(a,b,UM)))};lZc.prototype.$g=function(a){a=void 0===a?kZc:a;if(!this.H){this.O=a;var b=_.ci();this.H=b;this.send("10.1",[this.request],function(c,d){return BL(c[0],d,UM)},this.id).then(function(c){return void b.resolve(c)},function(c){return void b.reject(c)})}return this.H.promise};
lZc.prototype.cancel=function(){this.send("10.2",[this.request],void 0,this.id)};
var mZc=function(a,b,c){_.Ei.call(this);var d=this;this.instanceId=a;this.H=b;this.V=c;this.Bu={};this.O={};_.Re(this,function(){d.H("7.6",[])})};_.K(mZc,_.Ei);_.g=mZc.prototype;_.g.getId=function(){return this.instanceId};_.g.mQ=function(){return _.QI()};
_.g.upload=function(a,b){!_.y(a,26)&&b&&b.lastModified&&_.w(a,26,b.lastModified);var c;b&&(c=b.type?b:new File([b],b.name,{type:b.type}));if(b){var d=new _.nwc;_.w(d,1,b.size);_.I(a,15,d);this.O[a.hj()]=b}return _.ki(this.H("7.1",[a,c],function(e,f){return BL(e[0],f,_.oK)}))};_.g.cancel=function(a){this.H("7.2",[a])};_.g.fG=function(){this.H("7.3",[])};
_.g.retry=function(a){for(var b={},c=_.m(a),d=c.next();!d.done;d=c.next())b[d.value]=new _.ei;c=this.mQ();this.Bu[c]=b;b=_.Ra(b);this.H("7.4",[c].concat(_.Bd(a)));return b};_.g.tM=function(a,b){var c=this;return _.ki(this.H("7.5",[a].concat(_.Bd(b)),function(d){return pCc(d[0])}).then(function(d){return c.V.addCallback(function(e){return e.s2a(d)})}))};var nZc=function(a,b,c,d){if(a.Bu[b]&&a.Bu[b][c]){var e=a.Bu[b][c];d instanceof _.oK?e.callback(d):e.Jd(d);delete a.Bu[b][c];_.Ua(a.Bu[b])&&delete a.Bu[b]}};
var oZc=function(a,b){nN.call(this,"FU","drive.ds.sync.upload.FileUploaderProxyManager",a);this.O=b;this.H=new Map};_.K(oZc,nN);var pZc=function(a){var b=_.QI(),c=new mZc(b,function(d,e,f){return a.send(d,e,f,b)},a.O);a.H.set(b,c);_.Re(c,function(){return void a.H.delete(b)});return c};
oZc.prototype.z$=function(a,b,c){if((a=this.H.get(a))&&c){var d=c[1],e=c.slice(2);switch(c[0]){case 3:b=e[0];e=e[1];e=Math.min(e,1073741824);c=a.O[d];a.H("7.7",[d,_.guc(c,b,Math.min(c.size,b+e))]);break;case 0:b=BL(e[1],b,_.oK);nZc(a,d,e[0],b);break;case 1:b=new _.Ec(void 0,BL(e[1],b,_.Dc));nZc(a,d,e[0],b);break;case 2:a.dispatchEvent(new _.zyc(d,e[0],e[1]));break;default:throw Error("Mg");}}};
var qZc=function(a,b){if(0===a.length)throw new _.Ec("mutateUserPref requires a namespace.",_.qJ(3));var c=null;b instanceof _.YD?c=(b=(b=_.B(b,_.pp,1))&&b.getKey())&&_.qp(b)||null:b instanceof _.XD&&(c=(b=b.getKey())&&_.qp(b)||null);if(!c||!a.find(function(d){return d===c}))throw new _.Ec("mutateUserPref unsupported for namespace: "+c,_.qJ(3));};
var rZc=function(a){this.H=a};
var UCc=function(a){nN.call(this,"IS","drive.ds.sync.ItemServiceProxy",(sZc=_.ci()).promise);var b=this;this.ta=null;this.Qa=this.Ta=this.$a=this.ma=!1;this.ha=this.ka=this.W=null;this.kb=new _.Hn;this.Ka=new _.Hn;this.V=sZc;sZc=void 0;this.context=a;oXc(this.context,new NYc(this.V.promise));JFc(this.context.Mg,_.ge(this.context.Nc,28));this.H=this.context.ifa;this.O=new QXc(this.V.promise,this.context,this.H);this.Ab=new oZc(this.V.promise,this.context.$P);this.Ha=new LYc(this.V.promise,this.context);
this.Sc=new _.Ze(this);this.Ma(this.Sc);this.Sc.listen(this.context.Ck(),[].concat(_.Bd(Object.values(_.rC))),function(c){return void b.dispatchEvent(c)})},sZc;_.K(UCc,nN);
UCc.prototype.initialize=function(){var a=this;if(!this.ta){this.ta=this.va.promise;var b=this.context.tk().H(106E3);this.ta.then(function(){b&&b.Aj();a.i1a()},function(){_.$K(a.context.tk(),181008852)});var c=_.EK(this.context.Nc)?"(coldstart) ":"";this.context.Rf().info("drive.ds.sync.ItemServiceProxy","Initializing "+c+"with client build: "+this.context.Nc.Xi());var d=bCc(this.context.Nc,this.ti(),_.KK(this.context.Mg));tZc(this,d);2===d.H?(c=new rN(new KXc,6,this.context.Rf()),FYc(c,d.O),this.Ka.resolve(c)):
wCc(this.Ha);this.context.Rf().info("drive.ds.sync.ItemServiceProxy","Connecting to worker: "+d.endpoint);d.channel.start();mXc(this.context,function(){return uZc(d.channel)})}return this.ta};
var uZc=function(a){return _.Oja([new _.Yh(function(b){a.isDisposed()||iM(a,"8.1",void 0,function(){a.dispose();b()})}),_.Ii(1E4)])},tZc=function(a,b){var c=b.channel;0===b.H?c.registerService("2.0",function(){return{uid:a.ti(),fds:_.KK(a.context.Mg)}}):c.registerService("1.1",function(){return vZc(a,b)});2===b.H?a.Ka.promise.then(function(){return void wZc(a,b)}):wZc(a,b);hM(c,"2.1",function(){return{dsc:a.context.Nc.Lc()}});hM(c,"2.2",function(d){"number"===typeof d.id?(a.V.resolve(new JXc(d.id,
c,a.context.Rf(),d.clients)),d.dsp&&xZc(c),d.ivd&&yZc(a,c)):(d=new _.Dc(JSON.parse(d.err)),a.va.reject(new _.Ec("Unable to initialize dataservice.",d)))});hM(c,"2.15",function(d){a.dispatchEvent(new wQc(d.dt))});hM(c,"2.5",function(d){a.context.Eu(d.id)});hM(c,"2.6",function(d){a.context.Mj().Pl(d.os)});hM(c,"2.18",function(d){a.context.Mj().cz(d.oois)});hM(c,"2.7",function(){a.ma=!1});hM(c,"2.8",function(d){a.context.Fa=d.au;a.dispatchEvent(new xGc(d.au?"pb":"qb"))});hM(c,"2.19",function(d){a.context.Ck().update(d.cs)});
hM(c,"2.9",function(d){var e=d.logName,f=d.level;d=_.Ht("[CSW %s] %s",d.totalTime,d.message);switch(f){case "config":a.context.Rf().config(e,d);break;case "fine":_.IK(a.context.Rf(),e,d,"fine");break;case "finer":_.IK(a.context.Rf(),e,d,"finer");break;case "finest":_.IK(a.context.Rf(),e,d,"finest");break;case "info":a.context.Rf().info(e,d);break;case "warning":case "severe":GFc(a.context.Rf(),e,d);break;default:GFc(a.context.Rf(),"drive.ds.sync.ItemServiceProxy","Unknown log level: "+f),GFc(a.context.Rf(),
e,d)}});hM(c,"2.10",function(d){return void a.w$(d)});hM(c,"2.12",function(){a.Qa=!0;tN(a)});hM(c,"2.14",function(){return a.kb.resolve()});hM(c,"2.16",function(){return a.$a=!0});hM(c,"2.17",function(d){a.context.Rf().info("drive.ds.sync.ItemServiceProxy","Prefetched request loaded for: "+d.t.join(","))})},wZc=function(a,b){1!==b.H&&2!==b.H||b.channel.send("8.5",vZc(a,b));iM(b.channel,"8.4",{dsc:a.context.Nc.Lc()});xZc(b.channel);yZc(a,b.channel)},xZc=function(a){_.n._DRIVE_dsp&&iM(a,"8.3",{dsp:zZc(_.n._DRIVE_dsp)});
_.n._DRIVE_dspc=function(b){if(_.n._DRIVE_dsp){var c=[];c[b]=_.n._DRIVE_dsp[b];iM(a,"8.3",{dsp:zZc(c)})}}},yZc=function(a,b){_.Q(a.context.Nc,24,!1)&&(_.n._DRIVE_ivd?iM(b,"8.2",{ivd:_.n._DRIVE_ivd}):void 0===_.n._DRIVE_ivd&&(_.n._DRIVE_ivdc=function(){_.n._DRIVE_ivd&&iM(b,"8.2",{ivd:_.n._DRIVE_ivd})}))},vZc=function(a,b){var c={};if(1===b.H){var d=new _.$Pa(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.Nc.Xi(),
ufds:b.V}};UCc.prototype.ti=function(){var a=_.Mj(_.Mj(_.NI(this.context.Nc.clone(),28),44),91),b=new _.yI;b.update(_.CK(_.JI(a)));b.update(String(_.gJ(_.JI(a))));b.update(a.Lc());return _.psc(b.digest())};var zZc=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=UCc.prototype;_.g.w$=function(a){this.dispatchEvent(new _.Fc(new _.Ec(void 0,new _.Dc(JSON.parse(a.p)))))};
_.g.query=function(a){tN(this);EIc(this.context.ym,a,HFc(this.context.Mg));this.jF();var b=this.O.Cwa(a);this.Ta||(a=a.te(),a&&121===_.y(a,1)||(this.Ta=!0,this.Sc.listen(b,_.Pc,this.fMa)));return b};_.g.fMa=function(a){a=a.currentTarget;1===a.Bb()&&(this.Ha.H=this.$a,this.Sc.Yc(a,_.Pc,this.fMa))};_.g.Gq=function(a){tN(this);sGc(a);this.jF();return this.O.zwa(a)};
_.g.Bua=function(a,b){var c=this;tN(this);if(this.ka&&_.ak(this.ka.ud(),a))return this.ka;this.ka=new WYc(a.clone(),this.context,function(d,e,f){return c.send("3.17",[d,e,f],function(h,k){return BL(h[0],k,vQc)})},b);_.n.setTimeout(function(){c.ka=null},3E3);return this.ka};
_.g.AFa=function(a,b){var c=this;tN(this);if(this.ha&&_.ak(this.ha.ud(),a))return jZc(this.ha),this.ha;this.ha=new gZc(a,this.context,function(d){return c.send("3.18",[d],function(e,f){return BL(e[0],f,nPc)})},b);_.n.setTimeout(function(){c.ha=null},3E3);return this.ha};_.g.U$=function(a){tN(this);return _.ki(this.send("3.14",[a],function(b,c){return BL(b[0],c,SM)}))};_.g.h8=function(a){tN(this);return _.ki(this.send("3.15",[a],function(b,c){return BL(b[0],c,SM)}))};
_.g.ld=function(a){tN(this);!this.ma&&_.pK(a)&&(this.ma=!0);a=dCc(a);return _.ki(this.send("3.3",[a],function(b,c){return BL(b[0],c,_.oK)}))};_.g.MN=function(a){tN(this);a=nCc(a);return this.send("3.35",[a],function(b,c){return BL(b[0],c,_.wGc)})};_.g.Fz=function(a){tN(this);for(var b=0;b<a.length;b++)!this.ma&&_.pK(a[b])&&(this.ma=!0);a=gCc(a);return _.ki(this.send("3.4",[a],function(c,d){return UIc(c[0],d).get()}))};_.g.ywa=function(){tN(this);return pZc(this.Ab)};
_.g.XRa=function(a){tN(this);return new MYc(this.V.promise,a)};_.g.yr=function(a,b){var c=this;tN(this);var d=_.Wg();this.H.create(d,a);return _.ki(this.send("3.5",[a,!!b],function(e,f){f=BL(e[0],f,kM);return new _.VK(f,e[1],e[2])})).addCallback(function(e){nJc(c.H,d,e);return e.response}).Sg(function(e){jM(c.H,d);return e})};_.g.xr=function(a){tN(this);return this.send("3.10",[a],function(b,c){return BL(b[0],c,kPc)})};
_.g.W$=function(a){tN(this);return _.ki(this.send("3.11",[a],function(b,c){return BL(b[0],c,oPc)}))};_.g.f8=function(a){tN(this);return _.ki(this.send("3.12",[a],function(b,c){return BL(b[0],c,oPc)}))};_.g.YS=function(a){tN(this);return _.ki(this.send("3.13",[a],function(b,c){return BL(b[0],c,oPc)}))};
_.g.mN=function(a,b){var c=this;tN(this);var d=_.Wg();this.H.create(d,a);return _.ki(this.send("3.1",[a,!!b],function(e,f){f=BL(e[0],f,_.WM);return new _.YK(f,e[1],e[2])})).addCallback(function(e){nJc(c.H,d,e);return e.response}).Sg(function(e){jM(c.H,d);return e})};
_.g.KG=function(a,b){var c=this,d=_.ge(this.context.Nc.ig(),30);if(!d||0===d.length)return _.ni(new _.Ec("getUserPrefs requires a namespace.",_.qJ(3)));0===_.ge(a,3).length&&xCc(a,d);tN(this);var e=_.Wg();this.H.create(e,a);return _.ki(this.send("3.2",[a,!!b],function(f,h){h=BL(f[0],h,_.iA);return new _.XK(h,f[1],f[2])})).addCallback(function(f){nJc(c.H,e,f);return f.response}).Sg(function(f){jM(c.H,e);return f})};
_.g.XR=function(a){tN(this);qZc(_.ge(this.context.Nc.ig(),30),a);a=kCc(a);return this.send("3.6",[a],function(b,c){return BL(b[0],c,pPc)})};_.g.mu=function(a){tN(this);return _.ki(this.send("3.16",[a],function(b,c){return BL(b[0],c,ZFc)}))};_.g.kBa=function(){return this.ma};_.g.Pl=function(a){tN(this);this.send("3.8",[a])};_.g.cz=function(a){tN(this);return _.Zh(this.send("3.36",[a],function(b){return!!b[0]}))};_.g.kY=function(a){tN(this);nXc(this.context).kY(a);this.cz(!!a)};
_.g.jF=function(){tN(this);this.send("3.9",[])};_.g.ZR=function(){tN(this);this.send("3.41",[]);this.context.ZR();var a=KL(this.context.tk(),106006);a&&this.V.promise.then(function(b){var c=_.B(_.QK(a),iFc,6);if(!c){c=new iFc;var d=_.QK(a);_.I(d,6,c)}c=_.w(c,1,b.clientId);_.w(c,2,b.O);a.Aj()},function(){})};_.g.LB=function(){tN(this);return this.context.LB()};_.g.fQ=function(){tN(this);return _.Zh(this.send("3.19",[],function(a,b){return BL(a[0],b,ZIc)}))};_.g.isConnected=function(){return this.context.Ck().isConnected()};
_.g.B7=function(){return this.send("3.46",[],function(a,b){return BL(a[0],b,_.Wxc)})};_.g.s9=function(){return this.Ha};_.g.sync=function(){tN(this);return _.Zh(this.send("3.28",[]))};_.g.Gu=function(){return this.context.Gu()};_.g.hY=function(a){this.Ka.promise.then(function(b){return void b.hY(a)})};_.g.lda=function(a){tN(this);return this.O.Jwa(a)};_.g.GY=function(a){tN(this);return this.O.Iwa(a)};_.g.xFa=function(a){tN(this);HIc(this.context.ym,a,HFc(this.context.Mg));return this.O.Fwa(a)};
_.g.spa=function(a){tN(this);return new lZc(this.V.promise,a)};_.g.mva=function(a){var b=this;tN(this);if(!this.W||this.W.isDisposed())this.W=new bZc(a,this.context,function(c){return b.send("3.20",[c],function(d,e){return BL(d[0],e,pQc)})});return this.W};_.g.hGa=function(){this.W&&!this.W.isDisposed()?this.W.poll():_.Zh()};_.g.g8=function(a){tN(this);return _.ki(this.send("3.22",[a],function(b,c){return BL(b[0],c,qQc)}))};
_.g.qV=function(a){tN(this);return _.ki(this.send("3.25",[a],function(b,c){return BL(b[0],c,lQc)}))};_.g.lba=function(){return this.kb.promise};_.g.yna=function(a){var b=_.ci();_.ki(this.send("3.30",[a],function(c,d){c[0]?b.resolve(BL(c[0],d,sQc)):b.reject(new _.Ec(void 0,BL(c[1],d,_.Dc)))})).Sg(function(c){return void b.reject(c)});return b.promise};_.g.Nva=function(a){tN(this);return this.O.vwa(a)};_.g.w7=function(a){tN(this);return this.send("3.42",[a],function(b,c){return BL(b[0],c,WOc)})};
_.g.UO=function(a){tN(this);var b=new _.Hn;this.send("3.39",[a],function(c,d){return c.map(function(e){return BL(e,d,CJc)})}).then(function(c){return void b.resolve(c)},function(c){return void b.reject(c)});return Promise.resolve(new rZc(b.promise))};_.g.SFa=function(a){var b=this;tN(this);return new PYc(this.context,a,function(c){return _.Zh(b.send("3.37",[c.request,c.pageToken],function(d,e){return new WIc(BL(d[0],e,TM),d[1])}))})};
_.g.TFa=function(a){tN(this);return this.send("3.38",[a],function(b,c){return BL(b[0],c,yPc)})};_.g.xKa=function(a){tN(this);return this.O.Nwa(a)};_.g.oqa=function(a){tN(this);return this.O.Mwa(a)};_.g.QIa=function(a){var b=this;tN(this);return new QYc(this.context,a,function(){return _.Zh(b.send("3.40",[a],function(c,d){return BL(c[0],d,_.qL)}))})};_.g.RIa=function(a){tN(this);return this.O.Gwa(a)};_.g.r_=function(a){tN(this);this.send("3.43",[a])};
_.g.X_=function(a){tN(this);return _.Zh(this.send("3.44",[a],function(b,c){return BL(b[0],c,sHc)}))};_.g.So=function(a){tN(this);if(1!==_.DK(this.context.Nc))return Promise.reject(Error("Ng"));for(var b=_.m(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!c.Ac())return Promise.reject(Error("Og"));if(!c.Dk()&&!c.getItem())return Promise.reject(Error("Pg"))}return Promise.resolve(this.send("3.45",a))};
_.g.i1a=function(){var a=this;if(3===this.context.getEnvironment()){var b=[_.Ii(1E4,!1),this.send("3.29",[],function(c){return!!c[0]}).then()];_.Oja(b).then(function(c){c?_.Gi(a.i1a.bind(a),6E4):(a.Qa=!0,tN(a))})}};var tN=function(a){a.Qa&&a.dispatchEvent(new VQc)};
var WCc=function(a){bN.call(this,a);this.ha=this.ka=this.ta=null;this.kb=_.ci();this.H=a.Um()};_.K(WCc,bN);WCc.prototype.JRa=function(){this.Ha=new WXc(this.context);this.Ma(this.Ha);this.Ka=new $Xc(this.context);this.Ma(this.Ka);this.Qa=new gYc(this.context);this.Ma(this.Qa)};
WCc.prototype.$a=function(){var a=this,b=["hVFf7"];_.EK(this.context.Nc)&&b.push("BNEDtc");oM(this.O,b,function(){return void a.GWa()});oM(this.O,["T8oKm","ZA9qG"],function(){return void AZc(a)});oM(this.O,["T8oKm","mrK8ic"],function(){return void AZc(a)});this.Sc.listen(this.Ha,"WPi0i",this.qsa.bind(this,1));this.Sc.listen(this.Ka,"Mb",this.qsa.bind(this,2));this.Sc.listen(this.Qa,"WPi0i",this.qsa.bind(this,4));oM(this.O,["GZTDpc"],function(){return a.kb.resolve()})};var AZc=function(a){fN(a.context).addCallback(function(b){b.start()})};
_.g=WCc.prototype;_.g.qsa=function(a){_.na(tHc,a)&&this.dispatchEvent(new wQc(a))};_.g.GY=function(a){return this.V.Iwa(a.clone())};_.g.xFa=function(a){HIc(this.context.ym,a,HFc(this.context.Mg));return this.V.Fwa(a.clone())};_.g.lda=function(a){return this.V.Jwa(a.clone())};_.g.spa=function(a){return new xYc(a,this.context.Um())};
_.g.Bua=function(a,b){var c=this;if(this.ta&&_.ak(this.ta.ud(),a))return this.ta;this.ta=new WYc(a.clone(),this.context,this.wjb.bind(this),b);_.n.setTimeout(function(){c.ta=null},3E3);return this.ta};_.g.wjb=function(a,b,c){var d=new _.Euc(a,b,c);return _.ki(this.H.then(function(e){return e.Qe(d)}).Dg(function(e){return _.sJ(e)}))};_.g.mva=function(a){var b=this;if(!this.ha||this.ha.isDisposed())this.ha=new bZc(a,this.context,function(c){return BZc(b,c)});return this.ha};var BZc=function(a,b){return _.ki(a.H.then(function(c){return c.Qe(b)}).Dg(function(c){return _.sJ(c)}))};
_.g=WCc.prototype;_.g.hGa=function(){this.ha&&!this.ha.isDisposed()?this.ha.poll().then():_.Zh()};_.g.qV=function(a){return _.ki(this.H.then(function(b){return b.Qe(a)}))};_.g.g8=function(a){return _.ki(this.H.then(function(b){return b.Qe(a)}))};_.g.AFa=function(a,b){var c=this;if(this.ka&&_.ak(this.ka.ud(),a))return jZc(this.ka),this.ka;this.ka=new gZc(a.clone(),this.context,this.wKb.bind(this),b);_.n.setTimeout(function(){c.ka=null},3E3);return this.ka};
_.g.wKb=function(a){var b=this;return this.H.then(function(c){return c.Qe(a)}).then(function(c){return _.YI(b.context.Nc)?IKc(b.context.Nf.xq,_.Wj(c.jd(),_.Sk,2),a.ud().getId()).then(function(){return c}):c},_.sJ)};_.g.U$=function(a){var b=this;return _.ki(this.H.then(function(c){return c.Qe(a)}).then(function(c){return _.YI(b.context.Nc)?IKc(b.context.Nf.xq,[_.B(c,_.Sk,2)],a.Ac()).then(function(){return c}):c},_.sJ))};
_.g.h8=function(a){return _.ki(this.H.then(function(b){return b.Qe(a)}).then(null,_.sJ))};_.g.Nva=function(a){return this.V.vwa(a.clone())};_.g.w7=function(a){return this.H.then(function(b){return b.Qe(a)}).then(null,_.sJ)};_.g.UO=function(a){return this.H.then(function(b){return b.Qe(a)}).then(function(b){var c=new _.Hn;TKc(a,b).then(function(d){return c.resolve(d)});return new rZc(c.promise)},function(b){return void _.sJ(b)})};_.g.SFa=function(a){var b=this;return new PYc(this.context,a,function(c){return b.H.then(function(d){return d.Qe(c)}).Dg(function(d){return _.sJ(d)})})};
_.g.TFa=function(a){return this.H.then(function(b){return b.Qe(a)}).then(null,_.sJ)};_.g.ld=function(a){return _.ki(this.H.then(function(b){return b.Qe(a)}).then(null,_.sJ))};_.g.MN=function(a){return this.H.then(function(b){return b.Qe(a)}).then(null,_.sJ)};_.g.Fz=function(a){var b=this,c=[],d=[];a.forEach(function(f){f instanceof _.uJ?c.push(String(f.Ac())):c.push(String(f.getId()));d.push(b.ld(f))});a=new _.wo(d);var e=new _.ei;a.addCallback(this.cmb.bind(this,e,c));return e};
_.g.ywa=function(){return new mYc(this.context.Nc,this.context.aB,this.context.ZQ().hfa,this.context.Um(),this.context.$P,this.context.Rf(),this.context.tk())};_.g.yr=function(a,b){var c=this,d=_.Wg();this.W.create(d,a);3===a.getType()?a=bN.prototype.yr.call(this,a).addCallback(function(e){return new _.VK(e,1,!1)}):(pM(this.O,"Qubz4b"),a=this.Ka.enqueue(new eYc(a,b)));return a.addCallback(function(e){nJc(c.W,d,e);return e.response}).Sg(function(){jM(c.W,d)})};
_.g.xr=function(a){return _.ki(this.H.then(function(b){return b.Qe(a)}).then(null,_.sJ))};_.g.W$=function(a){return _.ki(this.H.then(function(b){return b.Qe(a)}).then(null,_.sJ))};_.g.f8=function(a){return _.ki(this.H.then(function(b){return b.Qe(a)}).then(null,_.sJ))};_.g.YS=function(a){return _.ki(this.H.then(function(b){return b.Qe(a)}).then(null,_.sJ))};
_.g.mN=function(a,b){var c=this;pM(this.O,"iuEtc");var d=_.Wg();this.W.create(d,a);return this.Ha.enqueue(new YXc(a,b)).addCallback(function(e){nJc(c.W,d,e);return e.response}).Sg(function(){jM(c.W,d)})};
_.g.KG=function(a,b){var c=this,d=_.ge(this.context.Nc.ig(),30);if(!d||0===d.length)return _.ni(new _.Ec("getUserPrefs requires a namespace.",_.qJ(3)));0===_.ge(a,3).length&&xCc(a,d);var e=_.Wg();this.W.create(e,a);pM(this.O,"OZvrNc");return this.Qa.enqueue(new jYc(a,b)).addCallback(function(f){nJc(c.W,e,f);return f.response}).Sg(function(){jM(c.W,e)})};_.g.XR=function(a){qZc(_.ge(this.context.Nc.ig(),30),a);return _.ki(this.H.then(function(b){return b.Qe(a)}).then(null,_.sJ))};
_.g.mu=function(a){var b=this;return _.ki(this.H.then(function(c){return c.Qe(a)}).then(function(c){return _.YI(b.context.Nc)?GKc(b.context.Nf.xq,c):c},_.sJ))};_.g.xKa=function(a){return this.V.Nwa(a.clone())};_.g.oqa=function(a){return this.V.Mwa(a.clone())};_.g.QIa=function(a){var b=this;return new QYc(this.context,a,function(c){return b.H.then(function(d){return d.Qe(c)}).Dg(function(d){return _.sJ(d)})})};_.g.RIa=function(a){return this.V.Gwa(a.clone())};
_.g.r_=function(a){NSc(this.context.Nf,[a])};_.g.X_=function(a){return this.H.then(function(b){return b.Qe(a)}).then(null,_.sJ)};_.g.So=function(a){if(1!==_.DK(this.context.Nc))return Promise.reject(Error("Ng"));for(var b=_.m(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!c.Ac())return Promise.reject(Error("Og"));if(!c.Dk()&&!c.getItem())return Promise.reject(Error("Pg"))}this.context.Nf.So(a);xTc(this.context.Nf);return Promise.resolve()};_.g.kBa=function(){return this.context.ZQ().fK()};
_.g.cz=function(a){var b=this;return this.context.cz(a).then(function(c){return c?(b.context.Mj().cz(a),b.context.Ks.lL()):_.Zh(!a)})};_.g.kY=function(a){nXc(this.context).kY(a);this.cz(!!a)};_.g.jF=function(){fN(this.context).addCallback(function(a){a&&a.boa()});this.context.Qga.jF()};_.g.hY=function(a){a.sMa(this.context)};_.g.cmb=function(a,b,c){for(var d={},e=0;e<c.length;e++)d[b[e]]=c[e][1];xTc(this.context.Nf);a.callback(d)};
_.g.sync=function(){var a=this;return _.ai([this.context.R$.promise,this.context.jfa.promise]).then(function(){return a.context.Ks.lL()}).then()};_.g.Gu=function(){fN(this.context).addCallback(function(a){a&&a.dispose()});return bN.prototype.Gu.call(this)};_.g.lba=function(){return this.kb.promise};
var CZc=function(){var a='<div class="'+_.E("la-r")+'">';a=a+'Something went wrong. Please reload.</div><button class="'+(_.E("la-Y-A")+" "+_.E("kc-A")+'" data-target="reload">');return(0,_.F)(a+"Reload</button>")};
_.Fn({id:_.jm,callback:function(a){var b=_.eBc(a),c=ZCc(a),d=_.B(a.get(_.id),_.cc,10);_.iwc(d,b);_.Jj(d,28,c);b=XCc(a,d);a.registerService(_.km,b.s9());_.zi(b,"VbxEwf",function(){var e={};_.Mc(_.Yt.getService(a),new _.xq(new _.wq(CZc,{}),"d",(e.reload=function(){_.n.window.location.reload()},e),4))});return b}});

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("RsR2Mc");

_.DZc=function(a,b){return _.I(a,17,b)};_.EZc=function(a,b){return _.w(a,2,b)};_.FZc=function(a,b){return _.w(a,1,b)};_.GZc=function(a,b){return _.I(a,2,b)};_.HZc=function(a,b){return _.Lj(a,1,b)};_.IZc=function(a,b){return _.Jj(a,1,b)};_.JZc=function(a,b){return _.Lj(a,2,b)};_.KZc=function(a,b){return _.I(a,3,b)};

_.u();

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