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 Jnb;_.Ec=function(a){_.ti.call(this,_.Nc);this.error=a};_.K(_.Ec,_.ti);_.xA=function(a){_.J.call(this,a,-1,Jnb)};_.K(_.xA,_.J);_.xA.prototype.O=function(){return _.fe(this,1)};_.yA=function(a,b){return _.Ij(a,1,b)};_.xA.prototype.nn=function(){return _.fe(this,2)};_.zA=function(a,b){return _.Ij(a,2,b)};_.xA.prototype.te=function(){return _.B(this,_.Cf,3)};_.AA=function(a,b){return _.I(a,3,b)};_.Knb=function(a,b){return _.w(a,5,b)};Jnb=[1,2,6,11];

_.u();

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


_.u();

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

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

_.u();

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

_.sA=function(a){if(Array.isArray(a))return a.map(_.sA).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 TJb;_.SJb=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")};TJb=function(a){var b=_.paa(_.XEa,function(c){return a==c});if(void 0===b)throw Error("qb`"+a);return b};_.UJb=function(a,b){void 0!==a.name?(this.name=a.name,this.code=_.XEa[a.name]):(this.code=a=a.code,this.name=TJb(a));_.ea.call(this,_.SJb("%s %s",this.name,b))};_.Yf(_.UJb,_.ea);var VJb=function(a,b){_.ti.call(this,a.type,b)};
_.Yf(VJb,_.ti);_.WJb=function(){_.Di.call(this);this.H=new FileReader;this.H.onloadstart=(0,_.M)(this.l0,this);this.H.onprogress=(0,_.M)(this.l0,this);this.H.onload=(0,_.M)(this.l0,this);this.H.onabort=(0,_.M)(this.l0,this);this.H.onerror=(0,_.M)(this.l0,this);this.H.onloadend=(0,_.M)(this.l0,this)};_.Yf(_.WJb,_.Di);_.g=_.WJb.prototype;_.g.abort=function(){try{this.H.abort()}catch(a){throw new _.UJb(a,"aborting read");}};_.g.ek=function(){return this.H.result};
_.g.getError=function(){return this.H.error&&new _.UJb(this.H.error,"reading file")};_.g.l0=function(a){this.dispatchEvent(new VJb(a,this))};_.g.Ya=function(){_.WJb.wb.Ya.call(this);delete this.H};

_.u();

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

var bLb,eLb;bLb=[4,5,6,7];_.nC=function(a){_.J.call(this,a)};_.K(_.nC,_.J);_.nC.prototype.Bb=function(){return _.y(this,1)};_.nC.prototype.Dc=function(a){return _.w(this,1,a)};_.nC.prototype.m$=function(){return _.y(this,2)};_.nC.prototype.Wb="JmcaR";_.cLb=function(a){_.J.call(this,a)};_.K(_.cLb,_.J);_.cLb.prototype.O=function(){return _.P(this,1)};_.cLb.prototype.Wb="dvhrqe";_.dLb=function(a){_.J.call(this,a)};_.K(_.dLb,_.J);_.dLb.prototype.Oo=function(){return _.y(this,2)};
_.dLb.prototype.E1=function(){return _.y(this,3)};eLb=[5];_.fLb=function(a){_.J.call(this,a)};_.K(_.fLb,_.J);_.fLb.prototype.O=function(){return _.P(this,4)};_.fLb.prototype.setActive=function(a){return _.w(this,4,a)};_.gLb=function(a){_.J.call(this,a,-1,eLb)};_.K(_.gLb,_.J);_.g=_.gLb.prototype;_.g.GZ=function(){return _.y(this,1)};_.g.ET=function(){return _.y(this,3)};_.g.ZJ=function(){return _.Oj(this,_.dLb,5)};_.g.uk=function(){return _.y(this,6)};_.g.Gq=function(){return _.y(this,7)};
_.g.LM=function(){return _.y(this,9)};_.g.Vs=function(){return _.y(this,10)};_.g.KJ=function(){return _.B(this,_.fLb,12)};_.g.fl=function(){return _.y(this,13)};_.g.kx=function(){return _.y(this,16)};_.g.wzb=function(){return _.Cj(this,16)};_.g.qv=function(){return _.y(this,17)};_.g.Wb="dzR11e";_.hLb=function(a){_.J.call(this,a,-1,bLb)};_.K(_.hLb,_.J);_.hLb.prototype.wl=function(){return _.B(this,_.gLb,1)};_.hLb.prototype.XM=function(){return _.B(this,_.nC,8)};
_.hLb.prototype.O=function(){return _.B(this,_.cLb,9)};_.oC=function(a){_.J.call(this,a,-1,iLb)};_.K(_.oC,_.J);_.oC.prototype.getUser=function(){return _.B(this,_.Rk,1)};_.oC.prototype.getMetadata=function(){return _.B(this,_.hLb,3)};_.oC.prototype.zo=function(){return _.Cj(this,3)};var iLb=[2];

_.u();

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


_.u();

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

_.pC={BL:"lb",Lga:"mb",hU:"nb",gU:"ob"};_.jLb=new Map([[_.pC.BL,1],[_.pC.Lga,2],[_.pC.hU,2],[_.pC.gU,3]]);

_.u();

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

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

_.u();

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


_.u();

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

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

_.nD=function(a){_.J.call(this,a)};_.K(_.nD,_.J);_.nD.prototype.ha=function(){return _.Gj(this,1)};_.nD.prototype.V=function(){return _.Gj(this,2)};_.nD.prototype.O=function(){return _.Gj(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");

_.bub=function(a){_.J.call(this,a)};_.K(_.bub,_.J);_.bub.prototype.O=function(){return _.y(this,1)};_.bub.prototype.Bb=function(){return _.y(this,2)};_.bub.prototype.Dc=function(a){return _.w(this,2,a)};_.bub.prototype.V=function(){return _.y(this,3)};_.dub=function(a){_.J.call(this,a,-1,cub)};_.K(_.dub,_.J);_.dub.prototype.O=function(){return _.fe(this,1)};var cub=[1];
_.fub=function(a){_.J.call(this,a,-1,eub)};_.K(_.fub,_.J);_.fub.prototype.O=function(){return _.Oj(this,_.bub,1)};var eub=[1];
_.hub=function(a){_.J.call(this,a,-1,gub)};_.K(_.hub,_.J);_.hub.prototype.O=function(){return _.Oj(this,_.fub,1)};var gub=[1];
_.iub=function(a){_.J.call(this,a)};_.K(_.iub,_.J);_.iub.prototype.V=function(){return _.B(this,_.hub,1)};_.iub.prototype.O=function(){return _.B(this,_.dub,2)};
_.pB=function(a){_.J.call(this,a,-1,jub)};_.K(_.pB,_.J);_.g=_.pB.prototype;_.g.Bb=function(){return _.y(this,1)};_.g.Dc=function(a){return _.w(this,1,a)};_.g.wd=function(){return _.Oj(this,_.hl,2)};_.g.Uw=function(a){return _.Kj(this,2,a)};_.g.nh=function(a,b){return _.Xj(this,2,a,_.hl,b)};_.g.dk=function(){return _.y(this,3)};_.g.ul=function(){return _.Q(this,5,!0)};_.g.S5=function(){return _.B(this,_.iub,7)};_.g.gsa=function(){return _.P(this,8)};_.g.dg=function(){return _.y(this,17)};
_.g.mP=function(a){return _.w(this,17,a)};_.g.Ze=function(){return _.y(this,12)};_.g.Ki=function(a){return _.w(this,12,a)};_.g.Zn=function(){return _.y(this,15)};_.g.eka=function(){return _.fe(this,18)};var jub=[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");

_.VD=function(a){_.J.call(this,a)};_.K(_.VD,_.J);_.VD.prototype.getKey=function(){return _.B(this,_.Xb,1)};_.VD.prototype.gt=function(){return _.Cj(this,1)};_.VD.prototype.te=function(){return _.B(this,_.Cf,2)};
_.WD=function(a){_.J.call(this,a)};_.K(_.WD,_.J);_.WD.prototype.te=function(){return _.B(this,_.Cf,2)};

_.u();

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

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

_.u();

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

/*

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

_.AG=function(a){_.J.call(this,a,-1,y8b)};_.K(_.AG,_.J);_.AG.prototype.getId=function(){return _.y(this,1)};_.AG.prototype.Ob=function(a){return _.w(this,1,a)};_.AG.prototype.ks=function(){return _.y(this,2)};_.AG.prototype.fK=function(){return _.Cj(this,2)};var y8b=[5,6,9,10,12,13,15,16];
var z8b;_.BG=function(a){_.J.call(this,a,-1,z8b)};_.K(_.BG,_.J);_.BG.prototype.Om=function(){return _.y(this,1)};_.A8b=function(a,b){return _.w(a,1,b)};z8b=[2,4];

_.u();

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


_.u();

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

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

_.u();

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

_.DG=function(a){_.J.call(this,a)};_.K(_.DG,_.J);_.g=_.DG.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,_.Cf,3)};_.g.Pp=function(){return _.y(this,4)};

_.u();

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

var H8b;_.EG=function(a){_.J.call(this,a,-1,H8b)};_.K(_.EG,_.J);_.EG.prototype.O=function(){return _.fe(this,1)};_.EG.prototype.nn=function(){return _.fe(this,2)};_.I8b=function(a,b){return _.Ij(a,2,b)};_.EG.prototype.te=function(){return _.B(this,_.Cf,3)};_.J8b=function(a,b){return _.I(a,3,b)};H8b=[1,2];

_.u();

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

_.FG=function(a){_.J.call(this,a)};_.K(_.FG,_.J);_.g=_.FG.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.ht=function(){return _.Cj(this,5)};_.HG=function(a){_.J.call(this,a,-1,K8b)};_.K(_.HG,_.J);_.HG.prototype.nn=function(){return _.fe(this,1)};
_.L8b=function(a,b){return _.Ij(a,1,b)};_.HG.prototype.te=function(){return _.B(this,_.Cf,2)};var K8b=[1,3];

_.u();

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

_.IG=function(a,b){return _.w(a,4,b)};_.M8b=function(a,b){_.w(a,11,b)};_.N8b=function(a,b){return _.w(a,25,b)};

_.u();

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


_.u();

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

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

_.u();

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

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

_.u();

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

_.vqc=function(a){for(var b in a)delete a[b]};_.tI=function(a,b){if(a.H)return a=a.H.responseText,b&&0==a.indexOf(b)&&(a=a.substring(b.length)),(0,_.kla)(a)};_.uI=function(a){return _.Q(a,5,!1)};_.wqc=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)};_.xqc=function(a,b){a=_.Si(a);b=_.Si(b);return a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]};
_.yqc=function(a){var b=_.sla(a);if("undefined"==typeof b)throw Error("X");var c=new _.qj(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 zqc,Aqc;zqc=[2];_.vI=function(a){_.J.call(this,a,-1,zqc)};_.K(_.vI,_.J);_.vI.prototype.Bb=function(){return _.y(this,1)};_.vI.prototype.Dc=function(a){return _.w(this,1,a)};_.vI.prototype.fVa=function(){return _.Oj(this,_.qEa,2)};_.vI.prototype.dk=function(){return _.y(this,3)};_.wI=function(a){_.J.call(this,a,-1,Aqc)};_.K(_.wI,_.J);_.wI.prototype.O=function(){return _.fe(this,1)};_.wI.prototype.te=function(){return _.B(this,_.Cf,2)};_.Bqc=function(a,b){return _.I(a,2,b)};
_.wI.prototype.Ei=function(){return _.ak(this,3,20)};_.wI.prototype.vi=function(a){return _.w(this,3,a)};_.Cqc=function(a,b){return _.w(a,4,b)};Aqc=[1];

_.u();

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

_.Dqc={drive:1,appDataFolder:2,photos:3,androidBackup:4};_.Eqc=_.Za(_.Dqc);

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Gqc=function(a,b){return _.Fqc()?(new _.n.Intl.Collator([a||"sv"],b||{})).compare:function(c,d){return c.localeCompare(d)}};_.Fqc=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
*/
_.Hqc=function(a){_.O.call(this);this.O=a;this.H={};this.O.lO((0,_.M)(this.V,this))};_.Yf(_.Hqc,_.O);_.Jqc=function(a,b){if(-1!=b.indexOf(":"))throw Error("Oe`"+b);if(b in a.H)throw Error("Pe`"+b);var c=new Iqc(a,b);return a.H[b]=c};_.Hqc.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)}};_.Hqc.prototype.Ya=function(){_.La(this.H,function(a){_.aa(a)});_.aa(this.O);delete this.H;delete this.O};
var Iqc=function(a,b){_.O.call(this);this.Qg=a;this.H=b};_.Yf(Iqc,_.O);_.g=Iqc.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,_.M)(this.oTa,this,b),c)};_.g.lO=function(a){this.O=(0,_.M)(this.oTa,this,a)};_.g.send=function(a,b){if(this.isDisposed())throw Error("Qe");this.Qg.O.send(this.H+":"+a,b)};_.g.oTa=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
*/
_.Kqc=function(a,b){for(var c=[],d=0;d<b;d++)c[d]=a;return c};_.Lqc=function(){this.blockSize=-1};

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.xI=function(){this.blockSize=-1;this.blockSize=64;this.H=Array(4);this.W=Array(this.blockSize);this.V=this.O=0;this.reset()};_.Yf(_.xI,_.Lqc);_.xI.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 Mqc=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};
_.xI.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;)Mqc(this,a,f),f+=this.blockSize;if("string"===typeof a)for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.blockSize){Mqc(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.blockSize){Mqc(this,d);e=0;break}}this.O=e;this.V+=b};
_.xI.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 Nqc,yI,Oqc,AI,Qqc,Pqc;Nqc=function(a){null!==a&&"removeAttribute"in a&&a.removeAttribute(_.gga);try{delete a[_.gga]}catch(b){}};
yI=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(_.Ba(f)){f[_.gga]||c.push(f);var l=_.Ca(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++)Nqc(c[a]);return b.join("")};_.zI=function(a,b,c){if("number"===typeof a)var d={name:Pqc(a)};else d=a,a=Qqc(a.name);this.code=a;this.O=d;b="Error "+b+": "+this.getName();c&&(b+=", "+c);_.ea.call(this,b)};_.Yf(_.zI,_.ea);_.zI.prototype.getName=function(){return this.O.name||""};
AI={Pib:1,Xhb:2,NOT_FOUND_ERR:3,g8a:4,l8a:5,Zhb:6,Kib:7,ABORT_ERR:8,nib:9,D6b:10,TIMEOUT_ERR:11,kib:12,INVALID_ACCESS_ERR:13,INVALID_STATE_ERR:14};_.Rqc=(_.n.mI||_.n.qL||AI).Pib;_.Sqc=(_.n.mI||_.n.qL||AI).Xhb;_.Tqc=(_.n.mI||_.n.qL||AI).NOT_FOUND_ERR;_.Uqc=(_.n.mI||_.n.qL||AI).g8a;_.Vqc=(_.n.mI||_.n.qL||AI).l8a;_.Wqc=(_.n.mI||_.n.qL||AI).Zhb;_.Xqc=(_.n.mI||_.n.qL||AI).Kib;_.Yqc=(_.n.mI||_.n.qL||AI).ABORT_ERR;_.Zqc=(_.n.mI||_.n.qL||AI).nib;_.$qc=(_.n.mI||_.n.qL||AI).TIMEOUT_ERR;
_.arc=(_.n.mI||_.n.qL||AI).kib;_.brc=(_.n.DOMException||AI).INVALID_ACCESS_ERR;_.crc=(_.n.DOMException||AI).INVALID_STATE_ERR;
Qqc=function(a){switch(a){case "UnknownError":return _.Rqc;case "NotFoundError":return _.Tqc;case "ConstraintError":return _.Uqc;case "DataError":return _.Vqc;case "TransactionInactiveError":return _.Xqc;case "AbortError":return _.Yqc;case "ReadOnlyError":return _.Zqc;case "TimeoutError":return _.$qc;case "QuotaExceededError":return _.arc;case "InvalidAccessError":return _.brc;case "InvalidStateError":return _.crc;default:return _.Rqc}};
Pqc=function(a){switch(a){case _.Rqc:return"UnknownError";case _.Tqc:return"NotFoundError";case _.Uqc:return"ConstraintError";case _.Vqc:return"DataError";case _.Xqc:return"TransactionInactiveError";case _.Yqc:return"AbortError";case _.Zqc:return"ReadOnlyError";case _.$qc:return"TimeoutError";case _.arc:return"QuotaExceededError";case _.brc:return"InvalidAccessError";case _.crc:return"InvalidStateError";default:return"UnknownError"}};
_.BI=function(a,b){return"error"in a?new _.zI(a.error,b):new _.zI({name:"UnknownError"},b)};_.CI=function(a,b){if("name"in a)return b=b+": "+a.message,new _.zI(a,b);if("code"in a){var c=Pqc(a.code);b=b+": "+a.message;return new _.zI({name:c},b)}return new _.zI({name:"UnknownError"},b)};
_.drc=function(a){this.H=a};_.erc=_.n.IDBKeyRange||_.n.webkitIDBKeyRange;_.drc.prototype.range=function(){return this.H};
var frc=function(a){this.H=a};frc.prototype.getName=function(){return this.H.name};var grc=function(a,b,c,d){var e=new _.di;try{var f=a.H[b](d)}catch(h){return c+=" with key "+yI(d),e.Jd(_.CI(h,c)),e}f.onsuccess=function(h){e.callback(h.target.result)};f.onerror=function(h){c+=" with key "+yI(d);e.Jd(_.BI(h.target,c))};return e};frc.prototype.get=function(a){return grc(this,"get","getting from index "+this.getName(),a)};
frc.prototype.getKey=function(a){return grc(this,"getKey","getting key from index "+this.getName(),a)};frc.prototype.getAll=function(a,b){return _.krc(this,"getAll","getting all from index "+this.getName(),a,b)};
_.krc=function(a,b,c,d,e){var f;void 0===d?f=void 0:f=d instanceof _.drc?d.range():(new _.drc(_.erc.only(d))).range();var h=new _.di;try{var k=a.H[b](f,e)}catch(l){return c+=" for range "+(f?yI(f):"<all>"),h.Jd(_.CI(l,c)),h}k.onsuccess=function(){h.callback(k.result)};k.onerror=function(l){c+=" for range "+(f?yI(f):"<all>");h.Jd(_.BI(l.target,c))};return h};
var lrc=function(a){this.H=a};lrc.prototype.getName=function(){return this.H.name};var mrc=function(a,b,c,d,e){var f=new _.di;try{var h=e?a.H[b](d,e):a.H[b](d)}catch(k){return c+=yI(d),e&&(c+=", with key "+yI(e)),f.Jd(_.CI(k,c)),f}h.onsuccess=function(k){f.callback(k.target.result)};h.onerror=function(k){c+=yI(d);e&&(c+=", with key "+yI(e));f.Jd(_.BI(k.target,c))};return f};_.g=lrc.prototype;_.g.put=function(a,b){return mrc(this,"put","putting into "+this.getName()+" with value",a,b)};
_.g.add=function(a,b){return mrc(this,"add","adding into "+this.getName()+" with value ",a,b)};_.g.remove=function(a){var b=new _.di;try{var c=this.H["delete"](a instanceof _.drc?a.range():a)}catch(e){return c="removing from "+this.getName()+" with key "+yI(a),b.Jd(_.CI(e,c)),b}c.onsuccess=function(){b.callback()};var d=this;c.onerror=function(e){var f="removing from "+d.getName()+" with key "+yI(a);b.Jd(_.BI(e.target,f))};return b};
_.g.get=function(a){var b=new _.di;try{var c=this.H.get(a)}catch(e){return c="getting from "+this.getName()+" with key "+yI(a),b.Jd(_.CI(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 "+yI(a);b.Jd(_.BI(e.target,f))};return b};_.g.getAll=function(a,b){return nrc(this,"getting all from index "+this.getName(),a,b)};
var nrc=function(a,b,c,d){var e;void 0===c?e=void 0:e=c instanceof _.drc?c.range():(new _.drc(_.erc.only(c))).range();var f=new _.di;try{var h=a.H.getAll(e,d)}catch(k){return b+=" for range "+(e?yI(e):"<all>"),f.Jd(_.CI(k,b)),f}h.onsuccess=function(){f.callback(h.result)};h.onerror=function(k){b+=" for range "+(e?yI(e):"<all>");f.Jd(_.BI(k.target,b))};return f};
lrc.prototype.clear=function(){var a="clearing store "+this.getName(),b=new _.di;try{var c=this.H.clear()}catch(d){return b.Jd(_.CI(d,a)),b}c.onsuccess=function(){b.callback()};c.onerror=function(d){b.Jd(_.BI(d.target,a))};return b};lrc.prototype.getIndex=function(a){try{return new frc(this.H.index(a))}catch(b){throw _.CI(b,"getting index "+a);}};
lrc.prototype.count=function(a){var b=new _.di;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(_.BI(e.target,d.getName()))}}catch(e){b.Jd(_.CI(e,this.getName()))}return b};
var orc=function(a,b){_.Di.call(this);this.H=a;this.O=b;this.Cb=new _.Ye(this);this.Cb.listen(this.H,"complete",(0,_.M)(this.dispatchEvent,this,"complete"));this.Cb.listen(this.H,"abort",(0,_.M)(this.dispatchEvent,this,"abort"));this.Cb.listen(this.H,"error",this.s$a)};_.Yf(orc,_.Di);_.g=orc.prototype;_.g.s$a=function(a){a.target instanceof _.zI?this.dispatchEvent({type:"error",target:a.target}):this.dispatchEvent({type:"error",target:_.BI(a.target,"in transaction")})};_.g.Og=function(){return this.H.mode};
_.g.objectStore=function(a){try{return new lrc(this.H.objectStore(a))}catch(b){throw _.CI(b,"getting object store "+a);}};_.g.commit=function(a){if(this.H.commit||!a)try{this.H.commit()}catch(b){throw _.CI(b,"cannot commit the transaction");}};
_.g.wait=function(){var a=new _.di;_.xi(this,"complete",(0,_.M)(a.callback,a));var b=_.xi(this,"abort",function(){_.Bi(c);a.Jd(new _.zI(_.Yqc,"waiting for transaction to complete"))});var c=_.xi(this,"error",function(e){_.Bi(b);a.Jd(e.target)});var d=this.O;return a.addCallback(function(){return d})};_.g.abort=function(){this.H.abort()};_.g.Ya=function(){orc.wb.Ya.call(this);this.Cb.dispose()};
var prc=function(a){_.Di.call(this);this.H=a;this.Cb=new _.Ye(this);this.Cb.listen(this.H,"abort",(0,_.M)(this.dispatchEvent,this,"abort"));this.Cb.listen(this.H,"error",this.t$a);this.Cb.listen(this.H,"versionchange",this.Wob);this.Cb.listen(this.H,"close",(0,_.M)(this.dispatchEvent,this,"close"))};_.Yf(prc,_.Di);_.g=prc.prototype;_.g.ssa=!0;_.g.t$a=function(a){a=(a=a.target)&&a.error;this.dispatchEvent({type:"error",errorCode:a&&a.severity})};
_.g.Wob=function(a){this.dispatchEvent(new qrc(a.oldVersion,a.newVersion))};_.g.close=function(){this.ssa&&(this.H.close(),this.ssa=!1)};_.g.jh=function(){return this.ssa};_.g.getName=function(){return this.H.name};_.g.ij=function(){return Number(this.H.version)};_.rrc=function(a,b,c){try{return new lrc(a.H.createObjectStore(b,c))}catch(d){throw _.CI(d,"creating object store "+b);}};
_.src=function(a,b,c){try{var d=c?a.H.transaction(b,c):a.H.transaction(b);return new orc(d,a)}catch(e){throw _.CI(e,"creating transaction");}};prc.prototype.Ya=function(){prc.wb.Ya.call(this);this.Cb.dispose()};var qrc=function(a,b){_.ti.call(this,"versionchange");this.oldVersion=a;this.newVersion=b};_.Yf(qrc,_.ti);
_.trc=function(){void 0==Oqc&&(Oqc=_.n.indexedDB||_.n.mozIndexedDB||_.n.webkitIndexedDB||_.n.moz_indexedDB);return Oqc};
_.urc=function(a,b,c,d){var e=new _.di;b=b?_.trc().open(a,b):_.trc().open(a);b.onsuccess=function(f){f=new prc(f.target.result);e.callback(f)};b.onerror=function(f){e.Jd(_.BI(f.target,"opening database "+a))};b.onupgradeneeded=function(f){if(c){var h=new prc(f.target.result);c(new qrc(f.oldVersion,f.newVersion),h,new orc(f.target.transaction,h))}};b.onblocked=function(f){d&&d(new qrc(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
*/
_.DI=function(a,b,c,d){this.ha=a;this.W=b;this.H=this.V=a;this.ka=c||0;this.ma=d||2};_.DI.prototype.O=0;_.DI.prototype.reset=function(){this.H=this.V=this.ha;this.O=0};_.DI.prototype.Za=function(){return this.V};_.EI=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");

_.vrc=function(a,b,c){_.ij(a.url,function(d){d=d.target;d.yv()?b(d.Kl()):c(d.Bb())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)};_.wrc=function(a,b,c,d){return _.D(a,1).split("/").pop()==d?(d=_.y(a,2),Array.isArray(d)?new b(d):c(_.nb(a.Za()))):null};_.yrc=function(a){_.J.call(this,a,-1,xrc)};_.K(_.yrc,_.J);var xrc=[2];
_.zrc=function(a){_.J.call(this,a)};_.K(_.zrc,_.J);var Arc=function(){var a=new _.zrc,b=document.documentElement.getAttribute("lang");return _.w(a,5,b)};_.zrc.prototype.Xi=function(){return _.y(this,7)};
_.Brc=function(a){_.J.call(this,a)};_.K(_.Brc,_.J);
var Crc;_.FI=function(a){_.J.call(this,a,31,Crc)};_.K(_.FI,_.J);_.GI=function(a,b){return _.w(a,8,b)};Crc=[3,20,27];
var Erc=function(a){_.J.call(this,a,17,Drc)};_.K(Erc,_.J);var Frc=function(a){var b=Date.now().toString();return _.w(a,4,b)},Grc=function(a,b){return _.Kj(a,3,b)},Hrc=function(a,b){return _.w(a,14,b)},Drc=[3,5];
var Jrc=function(a){_.J.call(this,a,6,Irc)};_.K(Jrc,_.J);var Irc=[5];
var Krc=function(a){_.J.call(this,a)};_.K(Krc,_.J);
var Lrc=new _.Ck(175237375,Krc);
_.HI=function(a,b,c,d,e,f,h,k,l,p,q){_.Di.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;_.Di.call(this);this.Tc=a;this.oc=b||_.Tf;this.ka=new Erc;this.Bd=d;this.Ab=q;this.le=_.Db(_.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&&(_.Aj.Pn&&_.Fb(65)||_.Aj.Lu&&_.Fb(45)||_.Aj.ay&&
_.Fb(12)||_.ah()&&0<=_.rg(_.Aia(),12))&&!!_.zf()&&!!_.zf().navigator&&!!_.zf().navigator.sendBeacon;a=_.w(new _.Brc,1,1);f||(f=Arc(),_.I(a,11,f));_.I(this.ka,1,a);_.w(this.ka,2,this.Tc);this.ma=new _.DI(1E4,3E5,.1);this.H=new _.Ei(this.ma.Za());this.Ma(this.H);_.Oe(this.H,"tick",_.pga(Mrc(this,p)),!1,this);this.Qa=new _.Ei(6E5);this.Ma(this.Qa);_.Oe(this.Qa,"tick",_.pga(Mrc(this,p)),!1,this);this.Ta||this.Qa.start();this.zc||(_.Oe(_.zf(),"beforeunload",this.ta,!1,this),_.Oe(_.zf(),"unload",this.ta,
!1,this),_.Oe(document,"visibilitychange",function(){"hidden"===document.visibilityState&&r.ta()}),_.Oe(document,"pagehide",this.ta,!1,this))};_.K(_.HI,_.Di);var Mrc=function(a,b){return b?function(){b().then(a.flush.bind(a))}:a.flush};_.HI.prototype.Ya=function(){this.ta();_.Di.prototype.Ya.call(this)};var Nrc=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};
_.HI.prototype.W=function(a){a instanceof _.FI?this.log(a):(a=_.GI(new _.FI,a.Lc()),this.log(a))};_.Orc=function(a,b){b?(a.V||(a.V=new _.yrc),b=b.Lc(),_.w(a.V,4,b)):a.V&&_.pb(a.V,4)};_.Prc=function(a){a.Mb=a.Pd};_.Qrc=function(a,b){a.ma=new _.DI(1>b?1:b,3E5,.1);a.H.setInterval(a.ma.Za())};
_.HI.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)}_.Cj(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 Rrc(a));this.Ta||this.H.enabled||this.H.start()};
_.HI.prototype.flush=function(a,b){var c=this;if(0===this.O.length)a&&a();else if(this.kb)Src(this);else{var d=Date.now();if(this.Qc>d&&this.rb<d)b&&b("throttled");else{var e=Hrc(Grc(Frc(this.ka.clone()),this.O),this.va);d={};var f=this.oc();f&&(d.Authorization=f);var h=Nrc(this);this.Ha&&(d["X-Goog-AuthUser"]=this.Ha,h=_.dj(h,"authuser",this.Ha));this.$a&&(d["X-Goog-PageId"]=this.$a,h=_.dj(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.uu(k.length)&&(l=this.Fa.v8b(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 Jrc(C)}catch(G){}A&&(z=Number(_.Nma(A,1,"-1")),0<z&&(c.rb=Date.now(),c.Qc=c.rb+z),A=_.tb(A,Lrc))&&(A=_.ak(A,1,-1),-1!=A&&(c.Rb||_.Qrc(c,A)))}a&&a()},r=
function(z){var A=_.Oj(e,_.FI,3);_.EI(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()}}}};_.HI.prototype.ta=function(){this.ha||(this.Mb&&Src(this),this.Gb&&Trc(this),this.flush())};
var Src=function(a){Urc(a,32,10,function(b,c){b=_.dj(b,"format","json");b=_.zf().navigator.sendBeacon(b,c.Lc());a.kb&&!b&&(a.kb=!1);return b})},Trc=function(a){Urc(a,6,5,function(b,c){b=_.bj(b,"format","base64json","p",_.Bj(c.Lc(),3));_.Hg(new Image,b);return!0})},Urc=function(a,b,c,d){if(0!==a.O.length){var e=_.Rla(Nrc(a),"format");e=_.bj(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=Grc(Frc(a.ka.clone()),h);0===f&&Hrc(k,a.va);if(!d(e,k))break;a.O=
a.O.slice(h.length)}a.H.enabled&&a.H.stop();a.va=0}},Rrc=function(){_.ti.call(this,"event-logged",void 0)};_.K(Rrc,_.ti);

_.u();

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

var Vrc=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 N=1518500249}else L=A^C^G,N=1859775393;else 60>z?(L=A&C|G&(A|C),N=2400959708):(L=A^C^G,N=3395469782);L=((r<<5|r>>>27)&4294967295)+
L+H+N+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}}},Wrc=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 Yrc=function(a,b,c){var d=String(_.n.location.href);return d&&a&&b?[b,Xrc(Wrc(d),a,c||null)].join(" "):null},Xrc=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],_.Ia(d,function(k){e.push(k)}),Zrc(e.join(" "));var f=[],h=[];_.Ia(c,function(k){h.push(k.key);f.push(k.value)});c=Math.floor((new Date).getTime()/1E3);e=_.na(f)?[c,b,a]:[f.join(":"),c,b,a];_.Ia(d,function(k){e.push(k)});a=Zrc(e.join(" "));a=[c,a];_.na(h)||a.push(h.join(""));return a.join("_")},Zrc=function(a){var b=
Vrc();b.update(a);return b.digestString().toLowerCase()};
var $rc={};
var asc,csc;asc=function(a){return!!$rc.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};_.bsc=function(a){a=void 0===a?!1:a;var b=_.n.__SAPISID||_.n.__APISID||_.n.__3PSAPISID||_.n.__OVERRIDE_SID;asc(a)&&(b=b||_.n.__1PSAPISID);if(b)return!0;var c=new _.aQa(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID");asc(a)&&(b=b||c.get("__Secure-1PAPISID"));return!!b};csc=function(a,b,c,d){(a=_.n[a])||(a=(new _.aQa(document)).get(b));return a?Yrc(a,c,d):null};
_.dsc=function(a,b){b=void 0===b?!1:b;var c=Wrc(String(_.n.location.href)),d=[];if(_.bsc(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 _.aQa(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?Yrc(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&asc(b)&&((b=csc("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=csc("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",
a))&&d.push(a))}return 0==d.length?null:d.join(" ")};

_.u();

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

_.esc=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=_.vrc;this.H=""};
_.esc.prototype.build=function(){var a=new _.HI(this.ka,this.Ka?this.Ka:_.dsc,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,_.Brc,1),d=_.B(c,_.zrc,11);d||(d=new _.zrc);_.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&&_.Orc(a,this.Ba);this.Qa&&(b=this.Qa,a.V||(a.V=new _.yrc),_.Ij(a.V,2,b));this.Ha&&(b=this.Ha,
a.Rb=!0,_.Qrc(a,b));return a};

_.u();

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

_.fsc=function(a,b,c){a.O[b.getId()]=c;a.H&&c.O(a.H)};_.gsc=function(a){var b;this.O=(b=void 0===b?!1:b)?null:a;this.H=b?a:null};_.gsc.prototype.EA=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=_.GI(new _.FI,a.Lc());b(a);return new _.Xh(function(d){c(d,function(){d()})}.bind(this))};
_.hsc=function(a){var b;this.O=(b=void 0===b?!1:b)?null:a;this.H=b?a:null;this.O&&_.Prc(this.O)};_.hsc.prototype.EA=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=_.GI(new _.FI,a.Lc());b(a);c()};

_.u();

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

var isc=function(a){_.J.call(this,a)};_.K(isc,_.J);isc.prototype.getEmail=function(){return _.D(this,3,"")};isc.prototype.np=function(){return _.Cj(this,3)};_.II=function(a){return _.B(a,isc,36,1)};

_.u();

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

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

_.u();

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


_.u();

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

_.LI=function(a,b){a.H=b;a.ka=0};_.MI=function(a,b){return _.w(a,b,_.lb([]))};_.jsc=function(a){if(_.zma)return _.n.atob(a);var b="";_.Bma(a,function(c){b+=String.fromCharCode(c)});return b};_.NI=function(a,b,c,d,e,f,h){_.HI.call(this,a,_.dsc,b,_.vrc,c,d,e,void 0,f,h)};_.K(_.NI,_.HI);

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var ksc,nsc;ksc=[3,42];_.lsc=function(a){_.J.call(this,a,-1,ksc)};_.K(_.lsc,_.J);_.lsc.prototype.getMimeType=function(){return _.y(this,27)};_.msc=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};nsc=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 osc=function(a){_.ti.call(this,"visibilitychange");this.hidden=a};_.K(osc,_.ti);
_.psc=function(a){_.Di.call(this);this.Zc=a||_.oc();if(this.Mz=this.Irb())this.H=_.Oe(this.Zc.Vb(),this.Mz,(0,_.M)(this.u$a,this))};_.Yf(_.psc,_.Di);_.g=_.psc.prototype;_.g.Irb=_.kda(function(){var a=this.uu(),b="hidden"!=this.Oza();if(a){var c;b?c=((_.RFa()||"")+"visibilitychange").toLowerCase():c="visibilitychange";a=c}else a=null;return a});_.g.Oza=_.kda(function(){return nsc("hidden",this.Zc.Vb())});_.g.ptb=_.kda(function(){return nsc("visibilityState",this.Zc.Vb())});_.g.uu=function(){return!!this.Oza()};
_.g.KB=function(){return!!this.Zc.Vb()[this.Oza()]};_.g.u$a=function(){var a=this.uu()?this.Zc.Vb()[this.ptb()]:null;a=new osc(this.KB(),a);this.dispatchEvent(a)};_.g.Ya=function(){_.Bi(this.H);_.psc.wb.Ya.call(this)};

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.OI=function(a,b){a.V.remove(b);return a};_.PI=function(){return"goog_"+_.sia++};_.qsc=function(a,b,c,d,e,f){var h=new _.kj(null,void 0);a&&_.lj(h,a);b&&_.hma(h,b);c&&_.mj(h,c);d&&_.nj(h,d);e&&h.Li(e);f&&_.oj(h,f);return h};_.QI=function(a){return new _.Xh(function(b){var c=a.length,d=[];if(c)for(var e=function(k,l,p){c--;d[k]=l?{Z8:!0,value:p}:{Z8:!1,reason:p};0==c&&b(d)},f=0,h;f<a.length;f++)h=a[f],_.Nja(h,_.Db(e,f,!0),_.Db(e,f,!1));else b(d)})};
_.RI=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 _.Iq(c,e,d-c,a-e)}return null};_.SI=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};_.SI.prototype.clone=function(){return new _.SI(this.start,this.end)};_.TI=function(a){return a.end-a.start};_.UI=function(a,b,c){_.O.call(this);this.Kn=null!=c?a.bind(c):a;this.ha=b;this.W=null;this.O=!1;this.V=0;this.H=null};
_.K(_.UI,_.O);_.g=_.UI.prototype;_.g.oe=function(a){this.W=arguments;this.H||this.V?this.O=!0:rsc(this)};_.g.stop=function(){this.H&&(_.Gi(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,rsc(this))};_.g.Ya=function(){_.O.prototype.Ya.call(this);this.stop()};var rsc=function(a){a.H=_.Fi(function(){a.H=null;a.O&&!a.V&&(a.O=!1,rsc(a))},a.ha);var b=a.W;a.W=null;a.Kn.apply(null,b)};

_.u();

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

var ssc=function(a){_.J.call(this,a)},xsc;_.K(ssc,_.J);var tsc=function(a){_.J.call(this,a)};_.K(tsc,_.J);_.VI=function(a){_.J.call(this,a)};_.K(_.VI,_.J);_.VI.prototype.t4=function(a){_.w(this,3,a)};_.VI.prototype.Pl=function(a){return _.I(this,5,a)};_.VI.prototype.getMimeType=function(){return _.y(this,7)};var usc=[2],vsc=function(a){_.J.call(this,a,-1,usc)};_.K(vsc,_.J);var wsc=function(a){_.J.call(this,a)};_.K(wsc,_.J);xsc=function(a){this.H=a};_.ysc=function(a){this.Cd=a};
_.ysc.prototype.getId=function(){return this.Cd};var zsc=function(a){_.J.call(this,a)};_.K(zsc,_.J);zsc.prototype.ij=function(){return _.y(this,1)};var Asc=function(a){_.J.call(this,a)};_.K(Asc,_.J);
var Csc=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;Bsc(this,b);break}}},Bsc=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})};
Csc.prototype.EA=function(a){if(this.ha&&this.O){var b=_.B(a,_.Tb,2)||new _.Tb,c=_.B(a,_.$o,5)||new _.$o,d=_.B(a,_.VI,3)||new _.VI;a=_.Oj(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 Dsc=function(){_.To.call(this)};_.K(Dsc,_.To);Dsc.prototype.xv=function(){return 1==_.y(_.B(this.H,ssc,7),1)};var Esc=new _.Oo("high_frequency_builder");
var Fsc=function(a,b,c){a=new _.Ei(a);c.Ma(a);var d=new _.Ye(c);c.Ma(d);d.listen(a,"tick",b);a.start()};
var Gsc=function(){_.To.call(this)};_.K(Gsc,_.To);var Hsc=function(a,b,c){var d=1E3*Date.now();if(0==b){b=new _.Fo;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 _.Fo,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},Isc=new _.Oo("system_builder");
var Jsc=function(a,b){_.O.call(this);this.O=a;this.H=new _.psc(b);this.Ma(this.H);this.Cb=new _.Ye(this);this.Ma(this.Cb);this.H.uu()&&this.Cb.listen(this.H,"visibilitychange",this.V)};_.K(Jsc,_.O);Jsc.prototype.V=function(){if(this.O.pP()){var a=this.H.KB()?102001:102E3;a=this.O.MF(a,0);this.O.Xp(a)}};
var Ksc=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(Ksc,_.O);_.g=Ksc.prototype;_.g.Xp=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 xsc(a)};_.g.MF=function(a,b){a=Hsc(Lsc(this.H,a),b,this.H.ha++);1==b&&this.H.ka.add(a);return a};_.g.GL=function(){return this.H.O};
_.g.iw=function(a){var b=this.H,c=_.Uo(a,Isc),d=b.ha++,e=_.B(_.B(c.H,_.Fo,8),_.yya,2),f=1E3*Date.now();_.w(e,2,f);_.w(c.H,13,d);b.ka.remove(_.y(a.H,12))};_.g.IZ=function(){var a=this.O;if(!a.ha||a.H.V){var b=Msc(a.H,691).build();b=Nsc(a.H,[b]);a.ka.EA(b)}a.W();this.H.ma=!1;this.V&&(_.aa(this.V),this.V=null)};_.g.JZ=function(){var a=this.H,b=Msc(a,716);Osc(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 Jsc(this))};_.g.gja=function(){this.O.W();return _.QI(Array.from(this.O.V)).then()};
_.g.pP=function(){var a=this.H;return a.va&&a.ma&&!0};
var Psc=function(a,b,c,d,e){_.O.call(this);this.H=a;this.ta=b;this.ka=c;this.O=new _.UI(this.W,3E3,this);this.V=new Set;this.ha=d;this.ma=e||6E4};_.K(Psc,_.O);Psc.prototype.initialize=function(){Fsc(this.ma,this.O.oe,this.O);Fsc(36E5,this.va,this)};Psc.prototype.W=function(){var a=this;if(0!=this.H.H.$b()&&(!this.ha||this.H.V)){var b=Qsc(this.H),c=this.ta.EA(b);c&&(_.ci(c,function(){return void a.V.delete(c)}),this.V.add(c))}};
Psc.prototype.va=function(){var a=this.H,b=Msc(a,1153).build();a.H.add(b);this.O.oe()};
var Rsc=function(a){_.O.call(this);this.H=a;this.Ma(this.H)};_.K(Rsc,_.O);_.g=Rsc.prototype;_.g.Xp=function(a){a=this.H.Xp(a);this.gja();return a};_.g.MF=function(a,b){return this.H.MF(a,b)};_.g.GL=function(){return this.H.GL()};_.g.iw=function(a){return this.H.iw(a)};_.g.IZ=function(){return this.H.IZ()};_.g.JZ=function(){return this.H.JZ()};_.g.gja=function(){return this.H.gja()};_.g.pP=function(){return this.H.pP()};
var Ssc=function(){};Ssc.prototype.FQ=function(){return new Dsc};
var Tsc=function(){this.H=[]};Tsc.prototype.add=function(a){this.H.push(a)};Tsc.prototype.$b=function(){return this.H.length};
var Usc=function(){this.H={}};Usc.prototype.add=function(a){var b=_.y(a.H,12);this.H[b]=a};Usc.prototype.remove=function(a){delete this.H[a]};
var Vsc=function(a,b){this.O=a;this.Ba=b;this.ha=1;this.ta=this.W=null;this.ka=new Usc;this.H=new Tsc;this.ma=this.va=this.V=!1},Lsc=function(a,b){a=_.Uo((new _.To).initialize(new _.Zya,a.Ba),Isc);_.w(a.H,10,b);return a},Qsc=function(a){var b=a.H,c=b.H;b.H=[];return Nsc(a,c)},Nsc=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],_.Mo,5);if(k&&_.B(k,_.lsc,1)){k=_.B(k,_.lsc,1);_.Cj(k,
12)&&void 0===e&&(e=_.P(k,12));k=_.B(k,tsc,20);if(void 0!==k&&void 0===f){f=new Asc;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 _.VI),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);_.Kj(c,1,b);return c},Msc=function(a,b){var c=Hsc(Lsc(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 wsc;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 vsc,b=_.w(e,1,b),d&&_.Kj(b,2,d),d=_.Vo(c),_.I(d,3,b));Osc(a,c);return c},Osc=function(a,b){a.W=_.y(b.H,12);a.ta=_.y(_.B(_.B(b.H,_.Fo,8),_.xya,1),1)};
var Wsc=function(){};Wsc.prototype.FQ=function(){return new Gsc};
var Xsc=function(){this.H=this.O=null};Xsc.prototype.build=function(){null==this.H&&(this.H=new _.Cza);_.Xo(this.H,Isc,new Wsc);_.Xo(this.H,Esc,new Ssc);var a=this.H;var b=this.O;if(!_.Cj(_.Ysc(b),1)){var c=_.Ysc(b),d=new _.$za;_.I(c,1,d)}b=_.B(_.Ysc(b),_.$za,1);a.H=b;b=_.Qa(a.O);for(c=0;c<b.length;c++)b[c].O(a.H);return new Vsc(this.O,this.H)};
var Zsc=function(){this.W=new _.Tb;this.O=null;this.ha=new zsc;_.w(this.ha,1,6);this.H=this.V=null};Zsc.prototype.setSessionId=function(a){this.W.setSessionId(a);return this};_.$sc=function(a,b){_.w(a.W,2,b);return a};_.atc=function(a,b){if(null==a.V){a.V=new _.mAa;var c=_.Ysc(a);_.I(c,2,a.V)}_.w(a.V,1,b)};_.Ysc=function(a){null==a.O&&(a.O=new _.$o);return a.O};_.btc=function(a){null==a.H&&(a.H=new _.VI);return a.H};
_.ctc=function(){this.H=this.ha=null;this.W=new Zsc;this.V=null;this.ka=this.ma=!1;this.O=null};_.dtc=function(a,b){a.ha=b;return a};_.etc=function(a,b){a.H=b;return a};_.ftc=function(a,b){a.V=b;return a};_.ctc.prototype.setSessionId=function(a){this.W.setSessionId(a);return this};_.gtc=function(a,b){_.w(a.W.W,6,b);return a};
_.ctc.prototype.build=function(){var a=new Xsc;a.O=this.W;null!=this.V&&(a.H=this.V);a=a.build();if(this.ka){var b=new Csc;this.H=this.ha=b}b=new Psc(a,this.ha,this.H,this.ma,this.O);a=new Ksc(a,b,!1);this.ka&&(a=new Rsc(a));return a};

_.u();

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

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

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.ntc=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():_.Wf();this.date=new Date(a)};_.Yf(_.ntc,_.Rt);_.g=_.ntc.prototype;_.g.clone=function(){var a=new _.ntc(this.date);a.vG=this.vG;a.hV=this.hV;return a};_.g.add=function(a){(a.W||a.V)&&_.Qt.prototype.add.call(this,new _.Pt(a.W,a.V));this.date=new Date(this.date.getTime()+1E3*(a.seconds+60*(a.O+60*(a.H+24*a.ew))))};_.g.getTimezoneOffset=function(){return 0};_.g.getFullYear=_.Rt.prototype.getUTCFullYear;
_.g.getMonth=_.Rt.prototype.getUTCMonth;_.g.getDate=_.Rt.prototype.getUTCDate;_.g.getHours=_.Rt.prototype.getUTCHours;_.g.getMinutes=_.Rt.prototype.getUTCMinutes;_.g.getSeconds=_.Rt.prototype.k9a;_.g.getMilliseconds=_.Rt.prototype.j9a;_.g.getDay=_.Rt.prototype.getUTCDay;_.g.setFullYear=_.Rt.prototype.setUTCFullYear;_.g.setMonth=_.Rt.prototype.setUTCMonth;_.g.setDate=_.Rt.prototype.setUTCDate;_.g.setHours=_.Rt.prototype.KLa;_.g.setMinutes=_.Rt.prototype.LLa;_.g.setSeconds=_.Rt.prototype.MLa;
_.g.setMilliseconds=_.Rt.prototype.l9a;
var otc,qtc;otc={};_.ptc=(otc[1]="0",otc[2]="1",otc[3]="2",otc);qtc={};_.rtc=(qtc[1]="asc",qtc[2]="desc",qtc);
_.stc=new _.Oo("drive_dataservice_builder");
_.ttc=_.eh&&0>_.rg(_.hh,"533");
_.utc=new _.ysc("drive_dataservice_invariants");
_.vtc=new Map([[[1],1],[[6],7],[[2],2]]);_.wtc=new Map([[[1],3],[[2],4],[[3],5],[[4],6],[[5],7],[[6],8],[[10],12],[[7],9],[[8],10],[[9],11]]);
_.xtc=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 _.XI(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}]]);
_.ytc=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)}]]);_.ztc=new Map([[[1],1],[[2],2],[[3],3],[[4],4],[[5],5]]);
_.Atc=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]]);_.Btc=new Map([[[2],3],[[1],2],[[0],1]]);_.Ctc=new Map([[[0],1],[[1],2],[[3],3],[[5],4],[[6],5]]);
_.Dtc=new Map([[[_.Sqc],1],[[_.Tqc],2],[[_.Uqc],3],[[_.Vqc],4],[[_.Wqc],5],[[_.Xqc],6],[[_.Yqc],7],[[_.Zqc],8],[[_.$qc],10],[[_.arc],11],[[_.brc],12],[[_.crc],13]]);_.Etc=new Map([[[0],1],[[1],2],[[2],3],[[3],4],[[4],5],[[5],6],[[6],7]]);

_.u();

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

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

_.u();

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


_.u();

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

var Itc;_.eJ=function(a){if(a instanceof _.Cc)return a;if(_.WI(a)){if(a=_.jIb(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);_.cJ(a,2);_.dJ(a,6);return a};_.Gtc=function(a){var b=a.Ak();a=a.KF();return 15===b||32===b||33===b||401===a};_.Htc=function(){return _.n.WorkerGlobalScope&&self instanceof _.n.WorkerGlobalScope};_.fJ=function(a){return _.ak(a,1,0)};
_.cJ=function(a,b){return _.w(a,1,b)};_.dJ=function(a,b){return _.w(a,2,b)};Itc=[8,9,10,13,14,27,28,29,31,32,33,34,38];_.gJ=function(a){_.J.call(this,a,-1,Itc)};_.K(_.gJ,_.J);_.g=_.gJ.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.Kv=function(a){return _.w(this,4,a)};
_.g.Xh=function(){return _.P(this,5)};_.g.Nn=function(a){return _.w(this,5,a)};_.g.getMimeType=function(){return _.y(this,6)};_.g.sE=function(a,b){_.Mj(this,8,a,b)};_.g.Zi=function(){return _.y(this,12)};_.g.te=function(){return _.B(this,_.Cf,17)};_.g.ij=function(){return _.y(this,20)};_.g.yc=function(){return _.y(this,21)};_.hJ=function(a,b){return _.w(a,16,b)};
_.iJ=function(a){_.J.call(this,a,-1,Jtc)};_.K(_.iJ,_.J);_.iJ.prototype.MQ=function(){return _.ak(this,2,100)};_.iJ.prototype.DO=function(a){return _.w(this,2,a)};_.iJ.prototype.te=function(){return _.B(this,_.Cf,6)};_.iJ.prototype.yc=function(){return _.y(this,8)};var Jtc=[5];
_.Ktc=new Map([[1,"connected"],[2,"unauthenticated/online"],[3,"offline"]]);
var Ltc;Ltc={};_.Mtc=(Ltc[0]="/drive/v2internal",Ltc[1]="/drive/v2internal.corp",Ltc[2]="/drive/v2internal.scary",Ltc[4]="/drive/v2internal.scary",Ltc[5]="/drive/v2beta",Ltc[6]="/drive/v2.1beta",Ltc);
_.Ntc=new Set([0,1,2,3]);
_.Otc=_.w(new _.gJ,15,!0);_.Ptc=_.hJ(new _.gJ,!0);_.Qtc=_.hJ(new _.gJ,!1);
_.Rtc=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");

_.Stc=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
*/
_.Ttc=function(a){a=_.eb(a);return 0===a.length?_.Nha:new _.vg(a,_.Lha)};_.Utc=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)};_.Yf(_.Utc,_.Lqc);_.Utc.prototype.reset=function(){this.H.reset();this.H.update(this.O)};
_.Utc.prototype.update=function(a,b){this.H.update(a,b)};_.Utc.prototype.digest=function(){var a=this.H.digest();this.H.reset();this.H.update(this.V);this.H.update(a);return this.H.digest()};_.Vtc=function(a,b){a.reset();a.update(b);return a.digest()};
_.Wtc=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()};_.Yf(_.Wtc,_.Lqc);_.Wtc.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 Xtc=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};
_.Wtc.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;)Xtc(this,a,d),d+=this.blockSize;if("string"===typeof a)for(;d<b;){if(e[f]=a.charCodeAt(d),++f,++d,f==this.blockSize){Xtc(this,e);f=0;break}}else for(;d<b;)if(e[f]=a[d],++f,++d,f==this.blockSize){Xtc(this,e);f=0;break}}this.O=f;this.V+=b}};
_.Wtc.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;Xtc(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");

_.jJ=function(a,b){return _.w(a,82,b)};_.kJ=function(a){return _.w(a,3,!0)};_.Ytc=function(a,b){return _.w(a,7,b)};
_.Ztc=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
*/
_.lJ={n_:"Versions",P6:"Metadata",B5:"Data",gU:"Offline"};_.$tc=new Map([[_.lJ.n_,"versionKey"],[_.lJ.P6,"k"]]);_.auc=new Set([1004]);

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.buc=function(a,b,c){c&&(a=_.Pg(a));a.length>b&&(a=a.substring(0,b-3)+"...");c&&(a=_.Og(a));return a};_.cuc=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};
_.duc=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");

_.euc=function(a){_.J.call(this,a)};_.K(_.euc,_.J);_.g=_.euc.prototype;_.g.getKey=function(){return _.y(this,1)};_.g.gt=function(){return _.Cj(this,1)};_.g.Za=function(){return _.y(this,2)};_.g.Jb=function(a){return _.w(this,2,a)};_.g.Ui=function(){return _.pb(this,2)};_.g.Pg=function(){return _.Cj(this,2)};
_.mJ=function(a){_.J.call(this,a,-1,fuc)};_.K(_.mJ,_.J);_.mJ.prototype.Wz=function(){return _.y(this,1)};_.mJ.prototype.getUrl=function(){return _.y(this,3)};var fuc=[2,4,6];

_.u();

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

var juc,kuc,muc;_.guc=function(a){var b={};_.La(a,function(c,d){b[d.toLowerCase()]=c});return b};_.huc=function(a){return(a=a&&_.guc(a))&&a["x-guploader-uploadid"]};_.iuc=function(a){return(a=a&&_.guc(a))&&a["x-google-trace"]};juc=[6];_.nJ=function(a){_.J.call(this,a,-1,juc)};_.K(_.nJ,_.J);_.oJ=function(a,b){return _.w(a,14,b)};
_.luc=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=kuc(e)||new _.Cc;_.w(e,8,!0);k&&(k=_.oj(new _.kj(k),void 0).toString(),_.w(e,19,k));e.KF()||_.w(e,15,a||f);e.getMessage()||_.mq(e,["HTTP status code: "+a,"HTTP status text: "+b,"XHR error code: "+f,"XHR error text: "+h].join(", "));_.y(e,4)||_.nq(e,d);e.Ak()||(5===f?_.oJ(e,7):0!==a||d?403===a?_.oJ(e,22):503===a||429===a?_.oJ(e,24):(_.pb(e,14),_.w(e,10,1),_.w(e,8,!0)):l||_.oJ(e,2));e.Ica(_.huc(c));
e.zca(_.iuc(c));return e};kuc=function(a){if(!_.Ba(a))return null;var b=new _.Cc,c=a.error;if(!c)return _.nq(b,JSON.stringify(a)),null;_.w(b,15,c.code);_.mq(b,c.message);a=c.errors&&c.errors[0];if(!a)return b;c=a.reason;var d=muc[c];d?_.w(b,10,d):c&&!d&&_.w(b,10,2);(a=a.debugInfo)&&_.nq(b,a);return b};
muc={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 nuc,ouc,suc,wuc,xuc,yuc,Quc,mK,Ruc,Suc,Zuc,uuc,Gvc,tuc,hwc,jwc,lwc,nwc,Gwc,Hwc,Lwc,Mwc,Owc,Pwc,Rwc,Uwc,KK,MK,Ywc,$wc,cxc,dxc,exc,fxc,gxc,hxc,kxc,mxc,nxc,Fxc,Jxc,Lxc,Mxc,Nxc,Sxc,Vxc,$uc,cyc,dyc,Zxc,eyc,$xc,gyc,hyc,nyc,myc,lyc,jyc,kyc,Juc,Kuc,Tuc,oyc,Uuc,Vuc,Wuc,Xuc,Yuc,pyc,ryc;_.pJ=function(a,b,c){var d=new _.Cc,e=_.nka(_.pJ);_.w(d,20,e);_.dJ(d,a);_.cJ(d,b?b:2);c&&_.oJ(d,c);return d};
_.qJ=function(a){var b;a instanceof _.Cc?b=new _.Dc(null,a):_.WI(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(_.qJ));return b};_.rJ=function(a){throw _.QB(a);};nuc=function(a){return 7===a.Ak()||24===a.Jp()&&(a=a.KF(),503===a||429===a)?!0:!1};ouc=function(a,b){return b?b+"("+a+")":a};
_.sJ=function(a,b,c){var d={},e=[];b&&e.push("kind");a.tAb&&e.push("searchResultSource");a.fields.forEach(function(p){if(!_.puc.includes(p)){var q=_.peb.get(p);if(q){var r=_.seb[p];a.EE&&r&&(q=r);a.Bq&&(a.EE?(p=_.reb[p])&&(q=p):(p=_.qeb[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={u5:f.u5},k=h.next()){var l=_.m(k.value);k=l.next().value;l=l.next().value;
f.u5=[];l.forEach(function(p){return function(q){p.u5.push(q)}}(f));"owners"==k&&b&&f.u5.push("kind");e.push(ouc(f.u5.join(","),k))}return ouc(e.join(","),c)};_.quc=function(a){var b=new _.Wo;b.append(_.sJ(a,!0));return b.toString()};_.ruc=function(a,b){return a.filter(function(c){return b.includes(c)})};suc=function(a){a=a.filter(function(b){return!_.peb.has(b)});if(a.length)throw Error("Tc`"+a.join(", "));};
_.vuc=function(a){if(a){var b=a.getMimeType();b&&_.IG(a,b.toLowerCase());tuc(a,_.Oj(a,uuc,58).map(function(c){var d=c.getMimeType();d&&_.w(c,1,d.toLowerCase());return c}))}};wuc=function(a,b){b&&(_.rj(a,"openDrive",!!_.Q(b,2,!1)),_.rj(a,"reason",_.y(b,1)||0),_.rj(a,"syncType",_.y(b,3)||0),_.rj(a,"errorRecovery",!!_.Q(b,4,!1)))};xuc=function(a){if(_.Ta(a))return"\r\n";var b="";_.La(a,function(c,d){b+=d+": "+c+"\r\n"});return b};
yuc=function(a){a=_.mq(_.oJ(_.cJ(new _.Cc,2),39),"Multiple resource key definitions found for itemId "+a);throw _.QB(a);};
Quc=function(a){if(a instanceof _.tJ)return"request access";if(a instanceof _.uJ)return"admin migrate to TD";if(a instanceof _.vJ)return"authorize app";if(a instanceof _.wJ)return"copy item";if(a instanceof _.xJ)return"change category links";if(a instanceof _.yJ)return"create item";if(a instanceof _.zJ)return"create ws";if("undefined"!=typeof _.AJ&&a instanceof _.AJ)return"delete app";if("undefined"!=typeof _.BJ&&a instanceof _.BJ)return"delete backup";if(a instanceof _.CJ)return"delete item";if("undefined"!=
typeof _.DJ&&a instanceof _.DJ)return"delete permission";if(a instanceof _.EJ)return"delete revision";if(a instanceof _.FJ)return"delete TD";if(a instanceof _.VD)return"delete pref";if(a instanceof _.GJ)return"delete ws";if(a instanceof _.HJ)return"download item";if(a instanceof _.IJ||a instanceof _.JJ)return"empty trash";if(a instanceof _.KJ)return"find by ID";if(a instanceof _.xA)return"find by IDs";if(a instanceof _.zuc)return"item export start";if("undefined"!=typeof _.LJ&&a instanceof _.LJ)return"get app";
if("undefined"!=typeof _.MJ&&a instanceof _.MJ)return"insert app";if("undefined"!=typeof _.NJ&&a instanceof _.NJ)return"insert permission";if(a instanceof _.YI)return a=a.ud(),_.OJ(a)?"quick access item query":_.PJ(a)?"people predict item query":_.QJ(a)?"drive priority query":"item query";if("undefined"!=typeof _.RJ&&a instanceof _.RJ)return"list android backup items request";if(a instanceof _.SJ){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 _.Auc&&a instanceof _.Auc?"list backups":a instanceof _.iJ?"list changes":a instanceof _.TJ?"list permissions":"undefined"!=typeof _.UJ&&a instanceof _.UJ?"list revisions":a instanceof _.VJ?"migrate to shared drive":a instanceof _.WJ?"partial download item":a instanceof _.XJ?"people api":a instanceof _.CG?"get published category":"undefined"!=typeof _.YJ&&a instanceof _.YJ?"get remaining changes":
a instanceof _.ZJ?"remove item":"undefined"!=typeof _.$J&&a instanceof _.$J?"reparent item":a instanceof _.aK?"restore item":a instanceof _.DG?"list suggested workspace items":a instanceof _.iA?"list suggested workspaces":"undefined"!=typeof _.dK&&a instanceof _.dK?"update app":a instanceof _.eK?"update category metadata":a instanceof _.gJ?"update item":a instanceof _.fK?"update revision":a instanceof _.gK?"update TD":a instanceof _.WD?"update pref":a instanceof _.hK?"update ws":a instanceof _.JI?
"get account":a instanceof _.HG?"get workspace":a instanceof _.Buc?"list activity":a instanceof _.Cuc?"list category metadata":a instanceof _.Duc?"create TD":"undefined"!=typeof _.Euc&&a instanceof _.Euc?"item export cancel":"undefined"!=typeof _.Fuc&&a instanceof _.Fuc?"item export status":"undefined"!=typeof _.Guc&&a instanceof _.Guc?"generate cse token":"undefined"!=typeof _.Huc&&a instanceof _.Huc?"get largest change ID":a instanceof _.TD?"list prefs":a instanceof _.iK?"multipart upload":a instanceof
_.Iuc?"list published categories":a instanceof Juc?"init resumable upload":a instanceof Kuc?"resumable upload chunk":a instanceof _.Luc?"resumable upload":a instanceof _.EG?"get TD":"undefined"!=typeof _.Muc&&a instanceof _.Muc?"move TD preflight":a instanceof _.jK?"list TDs":"undefined"!=typeof _.Nuc&&a instanceof _.Nuc?"get TD stats":a instanceof _.Ouc?"test connection":"undefined"!=typeof _.Puc&&a instanceof _.Puc?"list workspaces":"unknown"};
mK=function(a,b,c){null!=c&&(Array.isArray(c)?0<c.length&&a.push(b+": "+c.join(", ")):a.push(b+": "+c))};Ruc=function(a){if(a instanceof _.yJ||a instanceof _.iK||a instanceof _.Luc||a instanceof Juc||a instanceof Kuc)return(new _.nK).Dc(8);throw Error("ff");};Suc=function(a){if(a instanceof _.gJ){var b=_.Jj(_.pb(a.clone(),1),17);b=_.Zj(b,_.Otc)}else b=!1;b||(a instanceof _.gJ?(a=_.Jj(_.pb(a.clone(),1),17),b=_.Zj(a,_.Ptc)||_.Zj(a,_.Qtc)):b=!1);return b?!1:!0};
_.oK=function(a){return Tuc.includes(a.constructor)?Suc(a):!1};Zuc=function(a,b){if(Uuc.includes(a.constructor))return!0;if(b){if(_.Q(b,54,!1)&&Vuc.includes(a.constructor))return!0;var c=_.pK(b);if(c&&!_.Q(c,7,!1)&&Wuc.includes(a.constructor)&&!_.qK(a)||_.Q(b,56,!1)&&_.qK(a)||_.Q(b,57,!1)&&Xuc.includes(a.constructor)||!(!_.Q(b,53,!1)||Vuc.includes(a.constructor)||Wuc.includes(a.constructor)||_.qK(a)||Xuc.includes(a.constructor)||Yuc.includes(a.constructor)))return!0}return!1};
_.rK=function(a,b,c,d,e){if(_.Q(a,89,!1)){if(c&&c.length&&d){c=b.concat($uc(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)&&yuc(h):(a.set(h,_.y(d,2)),b.push(d))}f=b}else f=b;f.length&&(f=_.sA(f),f.length&&(e["X-Goog-Drive-Resource-Keys"]=f))}};_.avc=function(a){var b=new _.Rk;return _.w(b,1,a)};_.bvc=function(a,b){return _.w(a,7,b)};_.cvc=function(a,b){return _.w(a,8,b)};
_.dvc=function(a,b){return _.w(a,11,b)};_.evc=function(a,b){return _.w(a,1,b)};_.fvc=function(a,b){return _.w(a,4,b)};_.gvc=function(a,b){return _.w(a,5,b)};_.hvc=function(a,b){return _.w(a,6,b)};_.ivc=function(a,b){return _.w(a,7,b)};_.jvc=function(a,b){return _.w(a,8,b)};_.kvc=function(a,b){return _.w(a,9,b)};_.lvc=function(a,b){return _.w(a,10,b)};_.mvc=function(a,b){return _.w(a,11,b)};_.nvc=function(a,b){return _.w(a,12,b)};_.ovc=function(a,b){return _.w(a,16,b)};
_.pvc=function(a,b){return _.w(a,17,b)};_.qvc=function(a,b){return _.w(a,20,b)};_.rvc=function(a,b){return _.w(a,21,b)};_.svc=function(a,b){return _.w(a,31,b)};_.tvc=function(a,b){return _.w(a,32,b)};_.uvc=function(a,b){return _.w(a,33,b)};_.vvc=function(a,b){return _.w(a,42,b)};_.wvc=function(a,b){return _.w(a,43,b)};_.xvc=function(a,b){return _.w(a,46,b)};_.yvc=function(a,b){return _.w(a,47,b)};_.zvc=function(a,b){return _.w(a,48,b)};_.sK=function(a){_.J.call(this,a)};_.K(_.sK,_.J);
_.Avc=function(a){_.J.call(this,a)};_.K(_.Avc,_.J);_.Bvc=function(a,b){return _.w(a,1,b)};_.Cvc=function(a,b){return _.w(a,2,b)};uuc=function(a){_.J.call(this,a)};_.K(uuc,_.J);uuc.prototype.getMimeType=function(){return _.y(this,1)};uuc.prototype.getUrl=function(){return _.y(this,2)};_.tK=function(a){_.J.call(this,a)};_.K(_.tK,_.J);_.tK.prototype.Ee=function(){return _.y(this,2)};_.tK.prototype.zh=function(a){return _.w(this,2,a)};_.tK.prototype.yh=function(a){return _.w(this,3,a)};
_.Dvc=function(a,b){return _.w(a,1,b)};_.Evc=function(a,b){return _.Kj(a,2,b)};_.Fvc=function(a,b){return _.Kj(a,3,b)};Gvc=[2];_.uK=function(a){_.J.call(this,a,-1,Gvc)};_.K(_.uK,_.J);_.uK.prototype.Cf=function(){return _.y(this,1)};_.uK.prototype.Yl=function(a){return _.w(this,1,a)};_.uK.prototype.Wua=function(a,b){return _.Mj(this,2,a,b)};_.vK=function(a){_.J.call(this,a)};_.K(_.vK,_.J);_.vK.prototype.Ee=function(){return _.y(this,1)};_.vK.prototype.zh=function(a){return _.w(this,1,a)};
_.vK.prototype.yh=function(a){return _.w(this,2,a)};_.wK=function(a,b){return _.Ij(a,2,b)};_.Hvc=function(a,b){_.w(a,8,b)};_.Ivc=function(a,b){return _.Kj(a,15,b)};_.Jvc=function(a,b){return _.I(a,17,b)};_.Kvc=function(a,b){return _.w(a,19,b)};_.Lvc=function(a,b){_.w(a,26,b)};_.Mvc=function(a,b){_.w(a,31,b)};_.Nvc=function(a,b){_.w(a,34,b)};_.Ovc=function(a,b){return _.w(a,44,b)};_.Pvc=function(a,b){_.I(a,47,b)};_.Qvc=function(a,b){return _.w(a,52,b)};tuc=function(a,b){_.Kj(a,58,b)};
_.Rvc=function(a,b){return _.w(a,72,b)};_.xK=function(a,b){return _.I(a,84,b)};_.Svc=function(a,b){_.I(a,85,b)};_.Tvc=function(a,b){_.I(a,91,b)};_.Uvc=function(a,b){return _.w(a,92,b)};_.Vvc=function(a,b){return _.w(a,93,b)};_.Wvc=function(a,b){_.I(a,95,b)};_.Xvc=function(a,b){return _.w(a,136,b)};_.Yvc=function(a){_.J.call(this,a)};_.K(_.Yvc,_.J);_.yK=function(a){return _.Q(a,2,!1)};_.Zvc=function(a){_.J.call(this,a)};_.K(_.Zvc,_.J);var $vc=[3],awc=function(a){_.J.call(this,a,-1,$vc)};_.K(awc,_.J);
awc.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}_.jb(this)&&_.kb(a);return a};var bwc=[3],cwc=function(a){_.J.call(this,a,-1,bwc)};_.K(cwc,_.J);cwc.prototype.Fi=function(){return _.fe(this,3)};var dwc=[3],ewc=function(a){_.J.call(this,a,-1,dwc)};_.K(ewc,_.J);ewc.prototype.Fi=function(){return _.fe(this,3)};_.zK=function(a){_.J.call(this,a)};_.K(_.zK,_.J);_.zK.prototype.Za=function(){return _.y(this,1)};
_.zK.prototype.Jb=function(a){return _.w(this,1,a)};_.zK.prototype.Ui=function(){return _.pb(this,1)};_.zK.prototype.Pg=function(){return _.Cj(this,1)};_.AK=function(a){return _.Fj(a,45,1)};_.OJ=function(a){return _.Q(a,47,!1)};_.PJ=function(a){return _.Q(a,49,!1)};_.QJ=function(a){return _.Q(a,52,!1)};_.BK=function(a){return _.D(a,2,"")};_.pK=function(a){return _.B(a,_.Zvc,4)};_.fwc=function(a,b){return _.Ij(a,27,b)};_.CK=function(a){return _.Fj(a,39,0)};_.DK=function(a){return _.Q(a,40,!1)};
_.gwc=function(a){return _.Qt.prototype.OO.call(a,!0)+"T"+_.Tg(a.getHours(),2)+":"+_.Tg(a.getMinutes(),2)+":"+_.Tg(a.getSeconds(),2)+a.j$()};hwc=function(a,b){return _.krc(a,"getAllKeys","getting all keys index "+a.getName(),b,void 0)};_.iwc=function(a,b){try{a.H.deleteObjectStore(b)}catch(c){throw _.CI(c,"deleting object store "+b);}};jwc=function(){var a=new _.ctc;a.O=12E4;a.ma=!0;return a};_.kwc=function(a){_.J.call(this,a)};_.K(_.kwc,_.J);lwc=[3,4,10,18,19,28];
_.yJ=function(a){_.J.call(this,a,-1,lwc)};_.K(_.yJ,_.J);_.g=_.yJ.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.sE=function(a,b){_.Mj(this,3,a,b)};_.g.te=function(){return _.B(this,_.Cf,7)};_.g.hj=function(){return _.y(this,9)};_.g.yc=function(){return _.y(this,14)};_.g.Qz=function(){return _.B(this,_.kwc,15)};_.g.I1=function(){return _.y(this,21)};_.g.Ac=function(){return _.y(this,23)};
_.g.Bj=function(){return _.y(this,33)};_.EK=function(a,b){return _.w(a,1,b)};_.FK=function(a,b){return _.Ij(a,3,b)};_.mwc=function(a,b){return _.w(a,12,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)};_.CJ.prototype.te=function(){return _.B(this,_.Cf,3)};_.FJ=function(a){_.J.call(this,a)};_.K(_.FJ,_.J);_.FJ.prototype.getId=function(){return _.y(this,1)};
_.FJ.prototype.Ob=function(a){return _.w(this,1,a)};_.FJ.prototype.te=function(){return _.B(this,_.Cf,2)};nwc=[7,8];_.gK=function(a){_.J.call(this,a,-1,nwc)};_.K(_.gK,_.J);_.g=_.gK.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,_.Cf,4)};_.jK=function(a){_.J.call(this,a)};_.K(_.jK,_.J);
_.jK.prototype.getOptions=function(){return _.B(this,_.htc,1)};_.jK.prototype.Zn=function(){return _.y(this,2)};_.jK.prototype.ud=function(){return _.B(this,_.wI,3)};var owc=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}},pwc=null,qwc=function(){this.O=0;this.H=[]};_.g=qwc.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=rwc(this,a);return this.H[a]};_.g.set=function(a,b){a=rwc(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.Dq=function(a){for(var b=this.$b(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};
var rwc=function(a,b){if(b>=a.H.length)throw Error("ha");return 40>a.H.length?b:(a.O+Number(b))%40},swc=function(a){_.J.call(this,a)};_.K(swc,_.J);_.twc=function(a){_.J.call(this,a)};_.K(_.twc,_.J);_.twc.prototype.Ze=function(){return _.y(this,1)};_.twc.prototype.Ki=function(a){return _.w(this,1,a)};_.twc.prototype.Bb=function(){return _.y(this,4)};_.twc.prototype.Dc=function(a){return _.w(this,4,a)};var uwc=function(a){_.J.call(this,a)};_.K(uwc,_.J);uwc.prototype.Yn=function(){return _.y(this,5)};
var vwc=function(a,b){_.w(a,6,b)},wwc=function(a){_.J.call(this,a)};_.K(wwc,_.J);_.g=wwc.prototype;_.g.hhb=function(a){_.w(this,1,a)};_.g.vOb=function(a){_.w(this,2,a)};_.g.By=function(){return _.P(this,3)};_.g.ihb=function(a){_.w(this,3,a)};_.g.aOb=function(a){_.w(this,4,a)};var xwc=function(a){_.J.call(this,a)};_.K(xwc,_.J);xwc.prototype.By=function(){return _.P(this,2)};var ywc=function(a,b){return _.w(a,2,b)},zwc=function(a,b){_.w(a,3,b)};xwc.prototype.zB=function(){return _.y(this,6)};
var Awc=function(a,b){return _.w(a,8,b)},Bwc=function(a){_.J.call(this,a)};_.K(Bwc,_.J);var Cwc=function(a){_.J.call(this,a)};_.K(Cwc,_.J);var Dwc=function(a,b){_.w(a,4,b)},Ewc=function(a){_.J.call(this,a)};_.K(Ewc,_.J);Ewc.prototype.ud=function(){return _.B(this,_.twc,1)};Ewc.prototype.getState=function(){return _.B(this,uwc,2)};Ewc.prototype.Ld=function(a){return _.I(this,2,a)};Ewc.prototype.ht=function(){return _.Cj(this,2)};var Fwc=function(a){_.J.call(this,a)};_.K(Fwc,_.J);
Fwc.prototype.Lj=function(){return _.y(this,1)};Fwc.prototype.getEnvironment=function(){return _.y(this,2)};Fwc.prototype.setEnvironment=function(a){return _.w(this,2,a)};_.puc=[42,1005,20,50,18,1003,1002];Gwc=[73,71];_.GK=function(a){_.J.call(this,a)};_.K(_.GK,_.J);_.GK.prototype.getId=function(){return _.y(this,1)};_.GK.prototype.Ob=function(a){return _.w(this,1,a)};_.GK.prototype.getMimeType=function(){return _.y(this,2)};Hwc=[22];_.nK=function(a){_.J.call(this,a,-1,Hwc)};_.K(_.nK,_.J);_.g=_.nK.prototype;
_.g.Bb=function(){return _.y(this,1)};_.g.Dc=function(a){return _.w(this,1,a)};_.g.getItem=function(){return _.B(this,_.hl,2)};_.g.setItem=function(a){return _.I(this,2,a)};_.g.dk=function(){return _.y(this,3)};_.g.Ac=function(){return _.y(this,5)};_.Iwc=function(a,b){return _.w(a,5,b)};_.g=_.nK.prototype;_.g.XJ=function(){return _.y(this,7)};_.g.Ica=function(a){return _.w(this,7,a)};_.g.kfa=function(a){_.w(this,9,a)};_.g.jMa=function(a){_.w(this,10,a)};_.g.QM=function(){return _.y(this,16)};
_.g.zca=function(a){return _.w(this,16,a)};var Jwc=function(a){var b=new _.di;a.listen("loadend",_.Db(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},Kwc=function(a){_.ti.call(this,a);this.connectionState=_.jLb.get(a)};_.K(Kwc,_.ti);_.tJ=function(a){_.J.call(this,a)};_.K(_.tJ,_.J);_.tJ.prototype.Ac=function(){return _.y(this,1)};_.uJ=function(a){_.J.call(this,a)};_.K(_.uJ,_.J);_.uJ.prototype.getId=function(){return _.y(this,1)};
_.uJ.prototype.Ob=function(a){return _.w(this,1,a)};_.uJ.prototype.Fk=function(){return _.y(this,2)};_.uJ.prototype.O=function(a){_.w(this,4,a)};_.vJ=function(a){_.J.call(this,a)};_.K(_.vJ,_.J);_.vJ.prototype.Nh=function(){return _.y(this,1)};_.vJ.prototype.Ac=function(){return _.y(this,2)};_.vJ.prototype.te=function(){return _.B(this,_.Cf,4)};Lwc=[3,7];_.wJ=function(a){_.J.call(this,a,-1,Lwc)};_.K(_.wJ,_.J);_.g=_.wJ.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.sE=function(a,b){_.Mj(this,3,a,b)};_.g.te=function(){return _.B(this,_.Cf,5)};_.zJ=function(a){_.J.call(this,a)};_.K(_.zJ,_.J);_.zJ.prototype.getTitle=function(){return _.y(this,1)};_.zJ.prototype.setTitle=function(a){return _.w(this,1,a)};_.zJ.prototype.te=function(){return _.B(this,_.Cf,2)};_.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,_.Cf,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,_.Cf,3)};_.IJ=function(a){_.J.call(this,a)};_.K(_.IJ,_.J);_.IJ.prototype.te=function(){return _.B(this,_.Cf,1)};_.ZJ=function(a){_.J.call(this,a)};_.K(_.ZJ,_.J);_.g=_.ZJ.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,_.Cf,3)};_.aK=function(a){_.J.call(this,a)};_.K(_.aK,_.J);_.g=_.aK.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,_.Cf,3)};
_.fK=function(a){_.J.call(this,a)};_.K(_.fK,_.J);_.fK.prototype.Ac=function(){return _.y(this,1)};_.fK.prototype.te=function(){return _.B(this,_.Cf,4)};_.hK=function(a){_.J.call(this,a)};_.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.getState=function(){return _.y(this,3)};_.g.Ld=function(a){return _.w(this,3,a)};
_.g.ht=function(){return _.Cj(this,3)};_.g.te=function(){return _.B(this,_.Cf,5)};Mwc=[2,3];_.xJ=function(a){_.J.call(this,a,-1,Mwc)};_.K(_.xJ,_.J);_.xJ.prototype.yc=function(){return _.y(this,1)};_.xJ.prototype.te=function(){return _.B(this,_.Cf,4)};_.Nwc={1:"default",2:"teamDrive",3:"default,allTeamDrives"};Owc=[3,4];_.SJ=function(a){_.J.call(this,a,-1,Owc)};_.K(_.SJ,_.J);_.SJ.prototype.getType=function(){return _.y(this,1)};_.SJ.prototype.te=function(){return _.B(this,_.Cf,2)};
_.VJ=function(a){_.J.call(this,a)};_.K(_.VJ,_.J);_.VJ.prototype.O=function(a){_.w(this,4,a)};Pwc=[1];_.XJ=function(a){_.J.call(this,a,-1,Pwc)};_.K(_.XJ,_.J);_.XJ.prototype.nn=function(){return _.fe(this,1)};_.Qwc=function(a){_.J.call(this,a)};_.K(_.Qwc,_.J);_.g=_.Qwc.prototype;_.g.getKey=function(){return _.y(this,1)};_.g.gt=function(){return _.Cj(this,1)};_.g.Za=function(){return _.y(this,2)};_.g.Jb=function(a){return _.w(this,2,a)};_.g.Ui=function(){return _.pb(this,2)};
_.g.Pg=function(){return _.Cj(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)};Rwc=[1];_.Swc=function(a){_.J.call(this,a,-1,Rwc)};_.K(_.Swc,_.J);_.Twc=function(){var a=void 0===a?1E3:a;this.O=new _.sl;this.H=new _.sl;this.startTime=Date.now();this.V=!1;this.W=Math.ceil(a/2);this.ha=Math.floor(a/2)};_.Vwc=function(a){var b=a.O.sh();a.V&&b.push(Uwc("...","...","...","..."));_.xa(b,a.H.sh());return b};
_.Wwc=function(a){var b=[];a=_.Vwc(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")};_.Twc.prototype.info=function(a,b){_.HK(this,a,b,"info")};_.Twc.prototype.config=function(a,b){_.HK(this,a,b,"config")};_.Twc.prototype.log=function(a,b,c){if(!pwc){pwc={};for(var d=0,e;e=_.ska[d];d++)pwc[e.value]=e,pwc[e.name]=e}_.HK(this,a,b,c)};
_.HK=function(a,b,c,d){a.H.$b()>=a.ha&&(a.V=!0,_.tl(a.H));var e=Date.now()-a.startTime;b=Uwc(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)};Uwc=function(a,b,c,d){var e={};return e.logName=a,e.message=b,e.level=c,e.totalTime=d,e};_.IK=function(a){a.supportsTeamDrives=!0};_.Xwc=function(a){this.O=new Set;this.H=[].concat(_.Ad(_.fe(a,27)));this.initialize(a)};
_.Xwc.prototype.initialize=function(a){var b=_.ruc(this.H,_.fe(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);_.uI(_.II(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));_.Da(this.H);this.H.sort();suc(this.H)};_.JK=function(a){return[].concat(_.Ad(a.H))};KK=function(a){return"'"+a.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"};
_.LK=function(a,b,c){0!==b.length&&(a.nI.length&&a.append(" "+(c||"and")+" "),a.append(b))};MK=function(a,b,c,d){if(c){var e=[];(void 0===d?0:d)&&e.push("not");e.push(KK(c));e.push("in");e.push(b);_.LK(a,e.join(" "))}};_.NK=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());_.LK(a,e.join(" "),d)}};Ywc=function(a,b,c){if(b.length){var d=[];d.push(c?"not (":"(");d.push(b.join(" or "));d.push(")");_.LK(a,d.join(""))}};
_.Zwc=function(a){var b=new _.ntc;b.setTime(a);return b};$wc=function(a,b){b=_.fe(b,33)[0];if(null!=b){var c=[];c.push("teamDriveId");c.push("=");c.push(KK(b));_.LK(a,c.join(" "))}};_.axc=function(a){a=_.Oj(a,_.zK,25);if(null==a||0==a.length)return"";for(var b=[],c=0;c<a.length;c++)b.push(a[c].Za());return b.join(",")};_.bxc=function(a){a=a.BB();return null==a||0==a.length?"":a.map(function(b){b=b.ZQ();if(0==b)throw Error("Ve");return _.Eqc[b]}).join(",")};
cxc=function(a,b){if(a.length){var c=new _.Wo;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(KK(d.Za()));_.LK(c,e.join(" "),"or")}return c.toString()}return""};dxc=function(a,b,c){if(a.length){var d=[];b&&d.push("not");d.push(c?"shortcutDetails.targetMimeType":"mimeType");d.push("in");a=a.map(function(e){return KK(e.Za())});d.push(a.join(", "));return d.join(" ")}return""};
exc=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""}};fxc=function(a){switch(a){case 1:return"<=";case 2:return"<";case 3:return"=";case 4:return">";case 5:return">=";default:return""}};gxc=function(a,b,c){if(null!=_.y(c,2)){var d=fxc(_.y(c,1));c=KK(_.gwc(_.Zwc(_.y(c,2)||0)));_.LK(a,[b,d,c].join(" "))}};
hxc=function(a){switch(a){case 1:return"anyoneCanFind";case 2:return"anyoneWithLink";case 3:return"domainCanFind";case 4:return"domainWithLink";case 5:return"limited"}return""};
_.ixc=function(a){for(var b=new _.Wo,c=_.Oj(a,_.Il,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(KK(f));_.LK(b,l.join(" "))}}for(var p=_.Oj(a,_.Hl,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(KK(v));_.LK(b,z.join(" "))}}var A=_.Ml(a);if(A&&0!=A.length){for(var C=[],G=[],H=[],L=[],N=[],S=[],U=0;U<A.length;U++){var ha=
A[U];ha.Za()&&(1===_.Fj(ha,3,0)?_.P(ha,4)?G.push(ha):C.push(ha):_.P(ha,4)?_.Q(ha,2,!1)?S.push(ha):N.push(ha):_.Q(ha,2,!1)?L.push(ha):H.push(ha))}var Y=cxc(C,!1),oa=cxc(G,!0),qa=dxc(H,!1,!1),Aa=dxc(L,!0,!1),Ka=dxc(N,!1,!0),ib=dxc(S,!0,!0),Xa=new _.Wo;if(qa||Ka||Y||oa)_.LK(Xa,qa,"or"),_.LK(Xa,Ka,"or"),_.LK(Xa,Y,"or"),_.LK(Xa,oa,"or");Xa.nI.length&&_.LK(b,"("+Xa.toString()+")","and");var Hb=new _.Wo;if(Aa||ib)_.LK(Hb,Aa,"and"),_.LK(Hb,ib,"and");Hb.nI.length&&_.LK(b,"("+Hb.toString()+")","and")}for(var $b=
_.Oj(a,_.Fl,7),Bc=0;Bc<$b.length;Bc++)gxc(b,"modifiedDate",$b[Bc]);for(var td=_.Oj(a,_.Fl,8),Xd=0;Xd<td.length;Xd++)gxc(b,"lastViewedByMeDate",td[Xd]);_.NK(b,"trashed",a.Xh());_.NK(b,"explicitlyTrashed",_.P(a,17));_.NK(b,"starred",_.P(a,10));_.NK(b,"hidden",_.P(a,11));for(var Jd=_.Nl(a),qf=0;qf<Jd.length;qf++){var ud=Jd[qf];MK(b,"parents",ud.Za(),_.Q(ud,2,!1))}for(var Cb=_.Oj(a,_.pf,13),ne=0;ne<Cb.length;ne++){var Xg=Cb[ne];MK(b,"owners",Xg.Za(),_.Q(Xg,2,!1))}for(var se=_.Oj(a,_.pf,14),li=0;li<se.length;li++){var Wi=
se[li];MK(b,"writers",Wi.Za(),_.Q(Wi,2,!1))}for(var vf=_.Oj(a,_.pf,15),Ek=0;Ek<vf.length;Ek++){var Vh=vf[Ek];MK(b,"readers",Vh.Za(),_.Q(Vh,2,!1))}_.P(a,16)&&_.LK(b,"sharedWithMe");_.NK(b,"unparented",_.P(a,34));for(var Vf=_.Oj(a,_.Al,35)||[],Yd=_.m(Vf),Yg=Yd.next();!Yg.done;Yg=Yd.next())MK(b,"ancestors",Yg.value.Za(),!1);for(var Nh=_.Oj(a,_.Al,38)||[],yi=_.m(Nh),$k=yi.next();!$k.done;$k=yi.next())MK(b,"descendants",$k.value.Za(),!1);for(var Wn=_.Oj(a,_.Gl,37)||[],Am=_.m(Wn),Dh=Am.next();!Dh.done;Dh=
Am.next())MK(b,"folderFeatures",Dh.value.Za(),!1);for(var al=_.fe(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(KK(Pj));_.LK(b,sj.join(" "))}for(var kk=_.fe(a,40),Wh=0;Wh<kk.length;Wh++){var Qj=[];0==Wh&&Qj.push("(");Qj.push(KK(kk[Wh]));Qj.push("in");Qj.push("templateData.categories");Wh==kk.length-1&&Qj.push(")");_.LK(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(KK(_.ptc[Rj]||""));_.LK(b,tj.join(" "))}var lk=_.y(a,42);if(null!=lk){var bi=[];bi.push("visibility");bi.push("=");bi.push(KK(hxc(lk)));_.LK(b,bi.join(" "))}for(var Bm=_.Oj(a,_.zl,44),Sj=0;Sj<Bm.length;++Sj){var mk=Bm[Sj];MK(b,"actionItems",exc(mk),_.Q(mk,3,!1))}if(_.Cj(a,50)){var Cl=[];Cl.push("pairedDocType");var Tj=_.Q(a,50,!1)?"!=":"=";Cl.push(Tj);Cl.push(KK("NONE"));_.LK(b,Cl.join(" "))}MK(b,"workspaceIds",a.Pp(),!1);for(var wn=_.Oj(a,_.Bl,57),bl=0;bl<wn.length;bl++){var cl=
[];0==bl&&cl.push("(");cl.push(KK(wn[bl].Za()));cl.push("in");cl.push("approvals");bl==wn.length-1&&cl.push(")");_.LK(b,cl.join(" "),0==bl?"and":"or")}if(_.Cj(a,58)){var Af=a.Jq(),Uj=Af.Za(),em=_.Q(Af,2,!1);if(Uj){var Dl=[];em&&Dl.push("not");Dl.push("creator");Dl.push("=");Dl.push(KK(Uj));_.LK(b,Dl.join(" "))}}var fm=_.B(a,_.Ioa,59);if(fm)for(var qc=_.m(_.Oj(fm,_.Foa,1)),Vj=qc.next();!Vj.done;Vj=qc.next()){var Oh=Vj.value;MK(b,"categoryMetadata",Oh.Om());for(var nk=_.m(Oh.Bk()),Ph=nk.next();!Ph.done;Ph=
nk.next()){var mi=Ph.value,eg=_.y(mi,1),Fk=_.rb(mi,_.El);if(10==Fk){_.dk(mi,_.woa,10,_.El);var Hp=_.P(mi,15);(void 0===Hp?0:Hp)?_.LK(b,eg+" is null"):_.LK(b,"not ("+eg+" is null)")}else{var Qh=new _.Wo,Eh=void 0;switch(Fk){case 3:Eh=_.dk(mi,awc,3,_.El);for(var xn=_.m(Eh.Fi()),uj=xn.next();!uj.done;uj=xn.next())_.NK(Qh,eg,uj.value,"or");break;case 14:for(var yn=Eh=_.dk(mi,_.poa,14,_.El),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,KK(Po.getYear()+"-"+Po.getMonth()+"-"+Po.getDay())];_.LK(Qh,rr.join(" "),"or")}break;case 8:for(var Nm=Eh=_.dk(mi,_.voa,8,_.El),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");_.LK(Qh,[eg,Kq,Up].join(" "),"or")}break;case 9:for(var Nr=Eh=_.dk(mi,cwc,9,_.El),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");_.LK(Qh,[qB,rB,eg].join(" "),"or")}break;case 6:for(var Py=Eh=_.dk(mi,_.Aoa,6,_.El),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");_.LK(Qh,[eg,ND,KK(sB)].join(" "),"or")}break;case 7:for(var px=Eh=_.dk(mi,_.yoa,7,_.El),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");_.LK(Qh,[KK(sx),$s,eg].join(" "),
"or")}break;case 4:for(var at=Eh=_.dk(mi,_.Coa,4,_.El),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");_.LK(Qh,[eg,OD,KK(tB)].join(" "),"or")}break;case 5:for(var Ry=Eh=_.dk(mi,ewc,5,_.El),Li=new Map([[1,"in"]]),Sy=_.m(Ry.Fi()),Nq=Sy.next();!Nq.done;Nq=Sy.next()){var Vp=Nq.value,GG=Li.get(_.y(Ry,2));if(!GG)throw Error("We");_.LK(Qh,[KK(Vp),GG,eg].join(" "),"or")}break;case 12:for(var V7=
Eh=_.dk(mi,_.toa,12,_.El),bK=new Map([[1,"="]]),Kg=_.m(V7.Fi()),eT=Kg.next();!eT.done;eT=Kg.next()){var tx=eT.value,mm=bK.get(_.y(V7,2));if(!mm)throw Error("We");_.LK(Qh,[eg,mm,KK(tx)].join(" "),"or")}break;case 11:for(var uB=Eh=_.dk(mi,_.roa,11,_.El),fT=new Map([[1,"in"]]),tO=_.m(uB.Fi()),mo=tO.next();!mo.done;mo=tO.next()){var f_=mo.value,uO=fT.get(_.y(uB,2));if(!uO)throw Error("We");_.LK(Qh,[KK(f_),uO,eg].join(" "),"or")}}_.P(mi,15)?_.LK(b,"not ("+Qh+")"):_.LK(b,1<Eh.Fi().length?"("+Qh+")":""+
Qh)}}}null!=_.P(a,60)&&_.NK(b,"linkShareMetadata.securityUpdateEligible",_.P(a,60));var mu=_.P(a,65);if(null!=mu){var PD=[];PD.push("clientEncryptionDetails.encryptionState");PD.push("=");PD.push(KK(mu?"encrypted":"unencrypted"));_.LK(b,PD.join(" "))}var Ty=_.Oj(a,_.pf,68);if(Ty.length){for(var gT=[],W7=[],g_=_.m(Ty),Uy=g_.next();!Uy.done;Uy=g_.next()){var ux=Uy.value,cK="sharedFrom = "+KK(ux.Za());_.Q(ux,2,!1)?W7.push(cK):gT.push(cK)}Ywc(b,gT,!1);Ywc(b,W7,!0)}var X7=_.Oj(a,_.pf,67);if(X7.length){for(var hT=
[],vO=[],h_=_.m(X7),vB=h_.next();!vB.done;vB=h_.next()){var i_=vB.value,j_="sharedTo = "+KK(i_.Za());_.Q(i_,2,!1)?vO.push(j_):hT.push(j_)}Ywc(b,hT,!1);Ywc(b,vO,!0)}null!=_.P(a,69)&&_.NK(b,"linkShareMetadata.securityUpdateEnabled",_.P(a,69));null!=_.P(a,72)&&_.NK(b,"canAcceptOwnership",_.P(a,72));if(_.P(a,73)){var k_=(new _.sf).Jb("application/vnd.google-apps.shortcut");_.NK(b,"impactedByMultiparentingMigration",!0);_.LK(b,dxc([k_],!1,!1))}1==_.AK(a)&&$wc(b,a);return b.toString()};
_.jxc=function(a){var b=new _.Wo(_.ixc(a));_.Q(a,74,!1)?_.LK(b,"isQuickAccessForSharedFilesRequest"):_.OJ(a)?_.LK(b,"isQuickAccessRequest"):_.PJ(a)?_.LK(b,"isPeoplePredictRequest"):_.QJ(a)&&_.LK(b,"isDrivePriorityRequest");var c=a.wc();if(c){var d=[];d.push("sortBy");d.push(_.ktc[c.getType()]);d.push(_.rtc[c.nf()]);_.P(c,3)&&d.push("foldersFirst");_.LK(b,d.join(" "))}_.NK(b,"domainSearch",_.P(a,18));_.NK(b,"offline",_.P(a,19));_.Oj(a,_.zK,25).length&&(c=[],c.push("sources"),c.push("contains"),c.push(_.axc(a)),
_.LK(b,c.join(" ")));a.BB().length&&(c=[],c.push("spaces"),c.push("contains"),c.push(_.bxc(a)),_.LK(b,c.join(" ")));if(c=_.AK(a))d=[],d.push("corpora"),d.push("="),d.push(KK(_.Nwc[c])),_.LK(b,d.join(" "));_.Q(a,66,!0)||_.NK(b,"includeItemsFromAllDrives",_.Q(a,66,!0));1!=_.AK(a)&&$wc(b,a);_.Q(a,48,!1)&&_.LK(b,"cachedOnly");return b.toString()};
_.qK=function(a){if(a instanceof _.YI)a=a.ud();else if(!a)return!1;return a instanceof _.iA||a instanceof _.DG||"undefined"!=typeof _.OK&&a instanceof _.OK||a instanceof _.nf&&(_.OJ(a)||_.PJ(a)||_.QJ(a))};kxc=function(){_.To.call(this);this.V=this.O=null;this.ka=!1;this.ha=null};_.K(kxc,_.To);_.lxc=function(a){!a.ka&&a.V&&(a.V(),a.ka=!0)};mxc=function(a,b){a.V||(a.V=b)};kxc.prototype.Aj=function(){_.lxc(this);(0,this.ha)()};nxc=function(a,b){a.ha||(a.ha=b)};
_.PK=function(a){if(!a.O){a.O=new Ewc;var b=_.Vo(a);_.I(b,56,a.O)}return a.O};kxc.prototype.getState=function(){var a=_.PK(this).getState();a||(a=new uwc,_.PK(this).Ld(a));return a};var oxc=function(a,b){var c=new swc;_.w(c,1,b);a=_.Vo(a);_.I(a,12,c)};kxc.prototype.ma=function(){var a=_.B(_.PK(this),wwc,4);if(!a){a=new wwc;var b=_.PK(this);_.I(b,4,a)}return a};
var pxc=function(a){var b=_.B(_.PK(a),xwc,8);b||(b=new xwc,a=_.PK(a),_.I(a,8,b));return b},qxc=function(a){var b=_.B(_.PK(a),Cwc,19);b||(b=new Cwc,a=_.PK(a),_.I(a,19,b));return b},rxc=function(a){_.ti.call(this,"Bb");this.H=a};_.K(rxc,_.ti);rxc.prototype.Se=function(){return this.H};_.sxc=function(a,b){a=void 0===a?1:a;b=void 0===b?!1:b;_.Di.call(this);this.H=!1;this.connectionState=b?1:a;this.O=b?!0:1===a;this.V=b};_.K(_.sxc,_.Di);_.g=_.sxc.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?_.pC.hU:_.pC.Lga;else 1===a?(b=_.pC.BL,this.O=!0):3===a&&(b=_.pC.gU);if(b)return b=new Kwc(b),this.connectionState=a,this.H=!1,this.dispatchEvent(b),!0}return!1};
var txc=function(a,b){this.userId=a;this.H=b;this.db=null},vxc=function(a,b){a.H.info("drive.ds.sync.logging.ImpressionPersister","Persisting offline impressions.");return uxc(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")};txc.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 wxc=function(a){return new _.Xh(function(b){var c=new Map;uxc(a,function(d){return hwc(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={Pqa:f.Pqa},k=h.next()){var l=_.m(k.value);k=l.next().value;l=l.next().value;f.Pqa=k;l.then(function(p){return function(q){q&&c.set(p.Pqa,new _.oAa(q.rAb))}}(f))}return _.QI([].concat(_.Ad(e.values()))).then(function(){return b(c)})})})})},xxc=function(a,b){return uxc(a,
function(c){return c.remove(b)},"readwrite")},uxc=function(a,b,c){c=void 0===c?"readonly":c;return yxc(a).then(function(d){try{var e=_.src(d,["OfflineImpressions"],c).objectStore("OfflineImpressions");return b(e)}catch(f){return a.handleError(f?_.qJ(f):void 0)}},function(d){return a.handleError(d)})},yxc=function(a){return a.db?_.Yh(a.db):_.urc("GoogleDriveDsImpressions",2,function(b,c){c.H.objectStoreNames.contains("OfflineImpressions")&&_.iwc(c,"OfflineImpressions");b=_.rrc(c,"OfflineImpressions",
{autoIncrement:!0});try{b.H.createIndex("userId","userId",void 0)}catch(d){throw _.CI(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 _.Zh(_.qJ(b))})};txc.prototype.handleError=function(a){a||(a=Error("af"));_.HK(this.H,"drive.ds.sync.logging.ImpressionPersister",a.message,"severe");return _.Yh()};
_.zxc=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;_.Di.call(this);this.V=b;this.O=null;this.H=b?!1:a};_.K(_.zxc,_.Di);_.zxc.prototype.Se=function(){return this.H};_.zxc.prototype.Pl=function(a){var b=this.H!==a;!this.V&&b&&(this.H=a,this.dispatchEvent(new rxc(a)))};_.zxc.prototype.az=function(a){this.O=a};
var Bxc=function(a,b,c,d,e,f){_.Di.call(this);var h=this;this.V=a;this.H=b;this.connectionState=c;this.O=d;this.Ib=new _.Ye(this);this.Ib.listen(b,"Bb",function(k){k.Se()||Axc(h)});this.Ib.listen(c,[_.pC.BL,_.pC.hU],function(){return void Axc(h)});this.W=e;f.then(function(){return Axc(h)})};_.K(Bxc,_.Di);Bxc.prototype.EA=function(a){return(this.H.Se()||this.connectionState.Se())&&this.H.O?vxc(this.O,a):this.V.EA(a)};
var Axc=function(a){return a.H.O?wxc(a.O).then(function(b){b.forEach(function(c,d){a.V.EA(c).then(function(){return Cxc(a,d)},function(){a.log("Unable to send offline impression batch "+d+".")})})}):Promise.resolve()},Cxc=function(a,b){a.log("Sent offline impression batch "+b+".");a.dispatchEvent("Cb");return xxc(a.O,b).then(function(){a.log("Removed offline impression batch "+b+".")},function(){a.log("Unable to remove offline impression batch "+b+".")})};
Bxc.prototype.log=function(a){this.W.info("drive.ds.sync.logging.ClearcutOfflineTransport",a)};var Dxc=function(){};Dxc.prototype.FQ=function(){return new kxc};var Exc=function(){this.H=new Fwc};Exc.prototype.O=function(a){_.I(a,13,this.H)};Exc.prototype.setEnvironment=function(a){this.H.setEnvironment(a);return this};
var Gxc=function(a,b,c,d){this.ha=b;this.connectionState=c;this.jw=d;this.O=this.H=this.V=null;this.client=_.QK(_.Atc,_.CK(a));this.ka=_.y(a,94);this.ma=_.QK(_.Etc,_.Fj(a.ig(),8,0));this.Lwa=_.QK(_.Btc,_.Fj(a.ig(),9,2));this.ta=_.Q(a,10,!1);this.ru=_.uI(_.II(a));this.gCa=_.DK(a);this.W=Fxc(a);this.buildLabel=a.Xi()};Gxc.prototype.Lj=function(){return this.client};
Fxc=function(a){var b=[].concat(_.Ad(_.xtc.keys())),c=[].concat(_.Ad(_.ytc.keys())),d=_.pK(a);return b.filter(function(e){return _.xtc.get(e)(a)}).concat(c.filter(function(e){return d&&_.ytc.get(e)(d)}))};_.QK=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};Gxc.prototype.Yn=function(a){return null==a?0:a?2:1};var Hxc=function(a){if(a.O)return a.O.H("aU7Ts")};
Gxc.prototype.Bb=function(a){return a instanceof _.pB||"undefined"!=typeof _.RK&&a instanceof _.RK||"undefined"!=typeof _.SK&&a instanceof _.SK||"undefined"!=typeof _.TK&&a instanceof _.TK?a.Bb():"undefined"!=typeof _.UK&&a instanceof _.UK||"undefined"!=typeof _.VK&&a instanceof _.VK||"undefined"!=typeof _.WK&&a instanceof _.WK||"undefined"!=typeof _.XK&&a instanceof _.XK||"undefined"!=typeof _.YK&&a instanceof _.YK?a.response?a.response.Bb():null:null};Gxc.prototype.Xi=function(){return this.buildLabel};
var Ixc=function(a){return a.ha.Se()||a.connectionState.Se()?2:1};Gxc.prototype.getEnvironment=function(){return this.jw};Jxc=function(a,b){this.H=a;var c=new _.Nya;_.Oya(c,b.W);a=this.H.GL();var d=_.btc(a);_.I(d,10,c);(c=b.Xi())&&_.atc(a,c);this.H.JZ();this.O=b};
_.Kxc=function(a,b,c){var d=_.Uo(a.H.MF(b,c),_.stc);oxc(d,Ixc(a.O));b=Hxc(a.O);"boolean"===typeof b&&vwc(d.getState(),b);1===c&&mxc(d,function(){return void a.H.iw(d)});nxc(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.Xp(d)});
return d};Lxc=function(a){var b=new _.Cza,c=new Exc,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.Lwa);_.w(c.H,5,a.ta);_.w(c.H,6,a.ru);_.w(c.H,7,a.gCa);a=c.setEnvironment(a.getEnvironment());_.fsc(b,_.utc,a);_.Xo(b,_.stc,new Dxc);return b};
Mxc=function(a,b,c,d,e,f,h,k){k=void 0===k?!1:k;var l=new _.NI(906,b,void 0,_.Htc());l.ha=!1;var p=new _.gsc(l);b=new Date;l=_.gtc(_.ftc(_.etc(jwc(),new _.hsc(l)),Lxc(c)),109).setSessionId(b.getTime()+"_"+_.Vg());if(k){a=new Bxc(p,d,e,new txc(a,f),f,h);_.dtc(l,a);d=l.build();_.$sc(d.GL(),1E3*b.getTime());var q=new Jxc(d,c);(new _.Ye).listen(a,"Cb",function(){_.Kxc(q,106008,0).Aj()});return q}_.dtc(l,p);a=l.build();_.$sc(a.GL(),1E3*b.getTime());return new Jxc(a,c)};
Nxc=function(a,b){this.V=a;this.W=b};Nxc.prototype.O=function(a,b){this.V&&_.Oxc(this)&&(a=_.Kxc(this.V,a,0),b&&_.wqc(a,b),a.Aj())};_.ZK=function(a,b){if(a.V&&_.Oxc(a)){a=_.Kxc(a.V,106018,0);var c=_.B(_.PK(a),Bwc,15);if(!c){c=new Bwc;var d=_.PK(a);_.I(d,15,c)}c=_.w(c,1,1);_.w(c,2,b);a.Aj()}};Nxc.prototype.H=function(a,b){return this.V&&_.Oxc(this)?(a=_.Kxc(this.V,a,1),b&&_.wqc(a,b),a):null};_.Oxc=function(a){return!(!a.V||!a.V.H.pP())};
_.Pxc=function(a,b,c,d,e,f){var h=_.P(a,59),k=_.fJ(_.II(a)).toString(),l=_.BK(_.II(a));f=new Gxc(a,b,c,f);a=h?Mxc(l,k,f,b,c,d,e,_.Q(a,17,!1)):null;return new Nxc(a,f)};_.KJ=function(a){_.J.call(this,a)};_.K(_.KJ,_.J);_.Qxc=function(a){_.J.call(this,a)};_.K(_.Qxc,_.J);_.Qxc.prototype.getId=function(){return _.y(this,1)};_.Qxc.prototype.Ob=function(a){return _.w(this,1,a)};_.Qxc.prototype.te=function(){return _.B(this,_.Cf,2)};_.TJ=function(a){_.J.call(this,a)};_.K(_.TJ,_.J);
_.TJ.prototype.Zn=function(){return _.y(this,2)};_.TJ.prototype.ud=function(){return _.B(this,_.Qxc,3)};_.JJ=function(a){_.J.call(this,a)};_.K(_.JJ,_.J);_.JJ.prototype.ud=function(){return _.B(this,_.IJ,1)};_.JJ.prototype.Nca=function(a){return _.w(this,2,a)};_.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)};_.Rxc=function(a,b){return _.w(a,2,b)};_.WJ=function(a){_.J.call(this,a)};_.K(_.WJ,_.J);
_.WJ.prototype.ud=function(){return _.B(this,_.HJ,1)};Sxc=[2];_.eK=function(a){_.J.call(this,a,-1,Sxc)};_.K(_.eK,_.J);_.eK.prototype.Ac=function(){return _.y(this,1)};_.eK.prototype.AV=function(){return _.Oj(this,_.BG,2)};_.eK.prototype.te=function(){return _.B(this,_.Cf,3)};_.Txc=function(a){_.J.call(this,a)};_.K(_.Txc,_.J);_.Txc.prototype.Ck=function(){return _.y(this,1)};_.Uxc=function(a){var b=new _.Txc;return _.w(b,1,a)};Vxc=[1];_.zuc=function(a){_.J.call(this,a,-1,Vxc)};_.K(_.zuc,_.J);
_.Wxc=function(a,b){this.O=b;this.H=new Map;this.ola(_.Oj(a,_.Jl,91))};_.Wxc.prototype.ola=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=_.Xxc(this,b);if(d){d!==c&&yuc(b);break}this.H.set(b,c)}};$uc=function(a,b){return[].concat(_.Ad(new Set(b))).map(function(c){var d=(new _.Jl).Ob(c);a.H.has(c)?_.Kl(d,a.H.get(c)):a.O&&(c=a.O.H(c))&&_.Kl(d,_.pl(c));return d}).filter(function(c){return _.Cj(c,2)})};
_.Xxc=function(a,b){return a.H.has(b)?String(a.H.get(b)):a.O&&(a=a.O.H(b))&&_.Cj(a,140)?_.pl(a):null};_.Cuc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};_.Iuc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};_.Ouc=function(){this.H=_.Df(new _.Cf,312)};_.Yxc=function(a,b){_.DI.call(this,a?a:500,b?b:6E5)};_.K(_.Yxc,_.DI);_.$K=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};
_.$K.prototype.getState=function(){return this.state};_.$K.prototype.lM=function(a){var b=this;if(this.W)return this.W;var c=_.ai();this.W=c.promise.then(function(){return _.Uxc(1)},function(d){d=_.QB(d).Tg;var e=0;2===d.Jp()?e=3:_.Gtc(d)&&(e=2);return _.Uxc(e)});a&&this.W.then(function(d){3===d.Ck()&&_.ZK(b.eg,186469046)});this.H&&(a=_.y(qxc(this.H),4)||0,Dwc(qxc(this.H),a+1));setTimeout(function(){b.W=null},5E3);Zxc(this,c);return this.W};_.byc=function(a,b){$xc(a,3)&&_.ayc(a,b)};
_.$K.prototype.reset=function(){this.O=null;cyc(this)};cyc=function(a){a.timeout&&(clearTimeout(a.timeout),a.timeout=null)};_.ayc=function(a,b){if(!a.O&&!a.V){a.H=a.eg.H(106025);if(a.H){var c=qxc(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 _.Yxc(5E3,6E4);dyc(a)}};dyc=function(a){cyc(a);Zxc(a);a.O&&(a.timeout=setTimeout(function(){return void dyc(a)},a.O.Za()),_.EI(a.O))};
Zxc=function(a,b){_.ci((a.ha?a.ha():_.Yh()).then(null,function(){return null}),function(){if(a.H){var c=_.y(qxc(a.H),3)||0,d=qxc(a.H);_.w(d,3,c+1)}eyc(a,b)})};eyc=function(a,b){a.log("Checking connection state.");var c=a.ma.then(function(d){return d.Qe(new _.Ouc)}).then(null,function(d){d=_.QB(d);_.Gtc(d.Tg)&&$xc(a,2);return _.Zh(d)});b?b.resolve(c):c.then(null,function(){return null})};_.$K.prototype.log=function(a){this.ka.info("drive.ds.sync.connection.StateManager",a)};
$xc=function(a,b){return!a.V&&a.state.update(b)?(a.log("Connection status: "+_.Ktc.get(b)),!0):!1};_.fyc=function(){this.H={}};gyc=function(a,b,c){if(a.H[b])throw Error("bf");a.H[b]=c};_.fyc.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)}};hyc=function(a,b){for(var c=0;c<b.length;c++)delete a.H[b[c]]};
_.iyc=function(a,b){this.H=a;this.V=b;this.O=_.Mtc[_.Fj(a.ig(),8,0)];this.W=_.Mtc[_.Fj(a.ig(),51,5)];this.nonce=_.Vg()};
_.iyc.prototype.lc=function(a,b){if(b.BN)jyc(this,a,b),kyc(this,a,b);else if(11===a.$m){if(b.hKb){var c=b.AD||_.D(this.H.ig(),37,"");_.rj(a.uri,"key",c)}jyc(this,a,b);lyc(this,a,b)}else switch(a.uri=myc(this,a.$m,a.uri),a.$m){case 1:lyc(this,a,b);jyc(this,a,b);break;case 0:b.ru||_.uI(_.II(this.H))||_.Q(this.H,83,!1)&&_.rj(a.uri,"dsNonce",this.nonce);lyc(this,a,b);kyc(this,a,b);jyc(this,a,b);break;case 2:case 3:case 4:case 5:lyc(this,a,b);kyc(this,a,b);jyc(this,a,b);break;case 8:case 9:case 10:case 13:case 12:case 7:lyc(this,
a,b);kyc(this,a,b);break;default:throw Error("cf`"+a.$m);}};nyc=function(a,b){var c=myc(a,b,new _.kj);if(!c.H)throw Error("ef");return _.nj(_.mj(_.lj(new _.kj,c.O),c.H),c.W).Li(_.Ntc.has(b)?"/batch"+a.O:"/batch")};
myc=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 _.kj(a);
_.Td(c,"/")&&(c=c.slice(1));return new _.kj(a+"/"+c)};lyc=function(a,b,c){a=_.II(a.H);c.ru||_.uI(a)||(c=[{key:"u",value:_.BK(a)}],b.headers.authorization=_.dsc(c)||"",c=_.fJ(a),0<=c&&(b.headers["x-goog-authuser"]=String(c)))};
jyc=function(a,b,c){var d=_.II(a.H),e=a.H.ig(),f=c.q6a||!!_.y(e,13);c=c.r6a||_.Q(e,14,!1);var h=11===b.$m;f&&((f=_.y(e,13))&&_.Td(f,"email:")?_.rj(b.uri,"trace",f):f&&"trace:true"===f?_.rj(b.uri,"$trace","true"):f?_.rj(b.uri,"trace","token:"+f):_.rj(b.uri,"trace","email:"+d.getEmail().replace(/(@|\+).*$/,"")),h||_.rj(b.uri,"trace.deb","genoa:3:all,driveService:3:all"+(2===_.Fj(e,9,2)?"":",cospel:3:all,DriveService:3:all")));c&&!h&&a.V&&a.V.O(b.headers,b.method,b.uri.toString())};
kyc=function(a,b,c){c.ru||_.uI(_.II(a.H))?_.rj(b.uri,"key",_.D(a.H.ig(),36,"")):(a=c.AD||_.D(a.H.ig(),37,""),_.rj(b.uri,"key",a))};_.Buc=function(a,b,c){this.request=a;this.pageSize=b;this.pageToken=c};_.Duc=function(a){this.request=a;this.requestId=_.Vg()};_.Luc=function(a,b,c,d){this.request=a;this.file=b;this.fQ=void 0===c?null:c;this.metadata=d};Juc=function(a,b){this.request=a;this.metadata=b};
Kuc=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};_.iK=function(a,b,c,d){this.request=a;this.file=b;this.fQ=void 0===c?null:c;this.metadata=d};Tuc=[_.tJ,_.vJ,_.uJ,_.xJ,_.wJ,_.yJ,_.zJ,_.CJ,_.EJ,_.FJ,_.GJ,_.IJ,_.JJ,_.VJ,_.ZJ,_.aK,_.eK,_.gJ,_.fK,_.gK,_.hK,_.Duc,_.iK];oyc=[_.iJ];Uuc=[_.CG,_.Iuc];Vuc=[_.TJ,_.JI,_.TD,_.jK];Wuc=[_.YI,_.KJ,_.xA,_.iJ,_.Cuc];Xuc=[_.jK,_.EG];Yuc=[_.HJ,_.zuc,_.SJ,_.WJ,_.XJ,_.Buc,_.iK,Kuc,Juc];
pyc=function(a){return a instanceof _.YI||a instanceof _.jK||"undefined"!=typeof _.aL&&a instanceof _.aL||a instanceof _.gK||a instanceof _.FJ||a instanceof _.yJ||a instanceof _.CJ||a instanceof _.gJ&&_.oK(a)};_.qyc=function(a,b){this.H=b;this.Z3={};this.jj=new qwc;b=_.sJ({fields:_.fe(a,28),Bq:_.uI(_.II(a))});this.Jb("SecondaryFields",b);this.Jb("SdkBackfillEnabled",!!_.Q(a,45,!1)+" (Include corpus cache: "+!!_.Q(a,46,!1)+")")};_.qyc.prototype.Jb=function(a,b){this.Z3[a]=ryc(a,b)};
var syc=function(a,b){var c=a.Z3[b];c||(c=ryc(b,0,2),a.Z3[b]=c);c.Jb(String(Number(c.Za())+1))};_.qyc.prototype.Qz=function(a){var b=_.Qa(this.Z3);this.H&&b.push(ryc("CacheSize",this.H.Ed()));b.push(ryc("InitialViewDataLoaded",a));a=new _.Swc;_.Kj(a,1,b);return _.ii(a)};ryc=function(a,b,c){var d=new _.Qwc;_.w(d,1,a);_.w(d,4,c||1);d.Jb(String(b));d.Yl(_.Rtc.get(a));return d};
_.tyc=function(a,b,c){var d=new _.itc;_.w(d,2,"Pending...");b instanceof _.YI?_.Wj(d,3,_.ZI,b):b instanceof _.jK?_.Wj(d,4,_.ZI,b):"undefined"!=typeof _.aL&&b instanceof _.aL?_.Wj(d,5,_.ZI,b):b instanceof _.gK?_.Wj(d,6,_.ZI,b):b instanceof _.FJ?_.Wj(d,7,_.ZI,b):b instanceof _.yJ?_.Wj(d,8,_.ZI,b):b instanceof _.CJ?_.Wj(d,9,_.ZI,b):b instanceof _.gJ&&_.Wj(d,10,_.ZI,b);var e=Quc(b),f=[];if(b instanceof _.uJ)mK(f,"ID",b.getId()),mK(f,"Parent ID",b.Fk());else if(b instanceof _.FJ)mK(f,"TD ID",b.getId());
else if(b instanceof _.YI)b=_.jxc(b.ud()),mK(f,"Query",b);else if(b instanceof _.jK)mK(f,"Query","All");else if(b instanceof _.gK)mK(f,"TD ID",b.getId()),mK(f,"Title",b.getTitle()),mK(f,"Theme Image ID",_.y(b,3));else if(b instanceof _.yJ)mK(f,"MimeType",b.getMimeType()),mK(f,"Title",b.getTitle()),mK(f,"Parents",_.fe(b,3)),mK(f,"Convert",_.P(b,8)),mK(f,"Request ID",b.hj()),mK(f,"Parent Request IDs",_.fe(b,10)),mK(f,"Revision Item ID",_.y(b,12)),mK(f,"Pinned",_.P(b,8));else if(b instanceof _.zJ)mK(f,
"Title",b.getTitle());else if(b instanceof _.CJ)mK(f,"ID",b.getId());else if(b instanceof _.GJ)mK(f,"WS ID",b.getId());else if(b instanceof _.VJ)mK(f,"Source ID",_.y(b,1)),mK(f,"Destination Parent ID",_.y(b,2)),mK(f,"validation token",_.y(b,4));else if(b instanceof _.gJ){if(mK(f,"ID",b.getId()),mK(f,"Title",b.getTitle()),mK(f,"Description",b.Cf()),mK(f,"Starred",_.P(b,4)),mK(f,"Trashed",b.Xh()),mK(f,"MimeType",b.getMimeType()),mK(f,"Parents",_.fe(b,8)),mK(f,"Parents to add",_.fe(b,9)),mK(f,"Parents to remove",
_.fe(b,10)),mK(f,"Restricted",_.P(b,11)),mK(f,"Folder Color",b.Zi()),mK(f,"Update Last Viewed",_.P(b,15)),mK(f,"Subscribed",_.P(b,16)),mK(f,"Available Offline",_.P(b,18)),mK(f,"Wksp to add",_.fe(b,31)),mK(f,"Wksp to remove",_.fe(b,32)),b=_.B(b,_.Zk,25))mK(f,"Read Only",_.P(b,1)),mK(f,"Reason",_.y(b,2))}else b instanceof _.hK?(mK(f,"WS ID",b.getId()),mK(f,"Title",b.getTitle()),mK(f,"State",b.getState())):b instanceof _.Duc&&mK(f,"Title",b.request.getTitle());_.w(d,1,"Request: "+e+(c?" ("+c+")":"")+
"\n"+f.join("\n"));a.jj.add(d);return d};_.uyc=function(a,b){for(var c=new _.Wo,d=0;d<b.length&&20>d;d++){var e=b[d];c.append(e.getId()+":"+_.buc(e.getTitle()||"",20)+"\n")}20<b.length&&c.append(b.length-20+" more item(s)");_.w(a,2,c.toString()||"Done.")};_.qyc.prototype.YQ=function(){return this.jj.sh()};_.bL=function(a){_.J.call(this,a)};_.K(_.bL,_.J);_.bL.prototype.jd=function(){return _.B(this,_.pB,1)};_.vyc=function(a,b){return _.I(a,1,b)};_.bL.prototype.Zn=function(){return _.y(this,3)};
_.wyc=function(a,b,c){_.ti.call(this,"Hb");this.requestId=a;this.progress=b;this.totalBytes=c};_.K(_.wyc,_.ti);
_.xyc=function(a,b){this.O=a;this.V=b;this.H=null};
var cL=function(a){_.Di.call(this);this.name=a};_.K(cL,_.Di);_.g=cL.prototype;_.g.P3=function(){};_.g.IEa=function(){};_.g.B0a=function(){};_.g.iMa=function(){};_.g.A0a=function(){};_.g.NF=function(){this.dispatchEvent(new _.ti("Ib"))};_.g.toString=function(){return this.name+": "+this.max(Infinity)};
var yyc=function(a,b){cL.call(this,"Online");var c=this;this.O=a;this.H=b;this.Sc=new _.Ye(this);this.Ma(this.Sc);this.Sc.listen(this.O,"Bb",function(d){d.Se()||c.NF()});this.Sc.listen(this.H,"pb",this.NF)};_.K(yyc,cL);yyc.prototype.max=function(){var a=this.O.Se(),b=this.H.JB();return!a&&b?Infinity:0};yyc.prototype.P3=function(){this.NF()};
var zyc=function(a){cL.call(this,"Online");var b=this;this.connectionState=a;this.Sc=new _.Ye(this);this.Ma(this.Sc);this.Sc.listen(this.connectionState,[_.pC.BL,_.pC.Lga,_.pC.hU],function(){return b.NF()})};_.K(zyc,cL);zyc.prototype.max=function(){return this.connectionState.isConnected()?Infinity:0};zyc.prototype.P3=function(){this.NF()};
_.Ayc=function(a,b){this.H=a;this.O=b};_.Byc=function(a){return a.H instanceof _.$K?new zyc(a.H.getState()):new yyc(a.O,a.H)};_.Ayc.prototype.Mj=function(){return this.H instanceof _.$K?this.H.getState():this.O};
var Dyc;_.Cyc=function(a,b,c){this.AK=c;this.O=!0;this.V=0;this.H=new _.DI(a,b,.5)};Dyc=function(a){return a.H.O+a.V};
_.dL=function(a,b){cL.call(this,"Backoff");this.H=a;this.O=b};_.K(_.dL,cL);_.dL.prototype.max=function(){return this.H.O?Infinity:0};_.dL.prototype.iMa=function(){var a=this.H;a.V=0;a.H.reset()};_.dL.prototype.A0a=function(a){var b=this;Eyc(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.NF()},a),_.EI(this.H.H))};
var Eyc=function(a){var b;return(a=null===(b=_.fa(a.FD))||void 0===b?void 0:b.response)?nuc(_.jIb(a)):!1};_.dL.prototype.log=function(a){this.O.info("drive.ds.network.queue.BackoffState",a)};
_.Fyc=function(a,b){cL.call(this,"Batch");this.O=a;this.V=b;this.H=null};_.K(_.Fyc,cL);_.Fyc.prototype.max=function(a){return a>=this.O?this.O:null!=this.H?this.V<=Date.now()-this.H?this.O:0:0};_.Fyc.prototype.P3=function(a){a>=this.O?this.NF():null==this.H&&Gyc(this)};_.Fyc.prototype.IEa=function(a,b){0<b?Gyc(this):this.H=null};var Gyc=function(a){a.H=Date.now()-1;_.n.setTimeout(a.NF.bind(a),a.V)};
_.eL=function(){this.jj=[]};_.g=_.eL.prototype;_.g.add=function(a,b){b?this.jj.unshift(a):this.jj.push(a);return!0};_.g.tsa=function(a){return _.za(this.jj,0,a)};_.g.Ed=function(){return this.jj.length};_.g.cancel=function(a){return _.ua(this.jj,function(b){return b.Dv.config.requestId===a?(b.je.resolve(Ruc(b.Dv.Kw)),!0):!1})};_.g.eK=function(){return _.og(this.jj,function(a){return _.oK(a.Dv.Kw)})};
var Hyc=function(){cL.call(this,"Immediate")};_.K(Hyc,cL);Hyc.prototype.max=function(){return Infinity};Hyc.prototype.P3=function(){this.NF()};
var Iyc=function(){cL.call(this,"One Request")};_.K(Iyc,cL);Iyc.prototype.max=function(){return 1};
_.fL=function(a){cL.call(this,"Parallel");this.limit=a;this.H=0};_.K(_.fL,cL);_.fL.prototype.max=function(){return Math.max(0,this.limit-this.H)};_.fL.prototype.P3=function(){this.H<this.limit&&this.NF()};_.fL.prototype.IEa=function(a){this.H+=a.length};_.fL.prototype.B0a=function(a){this.H-=a.length;this.H<this.limit&&this.NF()};
var Jyc=function(){_.Di.apply(this,arguments)};_.K(Jyc,_.Di);var Lyc=function(a,b){a.dispatchEvent(new Kyc(b))};Jyc.prototype.O=function(){};var Kyc=function(a){_.ti.call(this,"Jb");this.request=a};_.K(Kyc,_.ti);
_.gL=function(a,b,c,d,e,f){_.Di.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 _.Ye(this);this.Ma(this.Sc);for(a=0;a<this.H.length;a++)this.Sc.listen(this.H[a],"Ib",this.A_a);for(a=0;a<this.O.length;a++)this.Sc.listen(this.O[a],"Jb",function(k){Myc(h,!0,k.request)});this.ka=_.Ft("drive.ds.network.queue.Queue [%s]",f)};_.K(_.gL,_.Di);_.gL.prototype.add=function(a){return Myc(this,!1,{Dv:a,je:_.ai(),FD:[]})};
_.gL.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};_.gL.prototype.eK=function(){return this.V.eK()?!0:this.buckets.some(function(a){return a.eK()})};
var Myc=function(a,b,c){if(!a.buckets.some(function(f){return f.add(c,b)}))return a=_.mq(new _.Cc,"No queue bucket accepted request."),_.Zh(_.QB(a));for(var d=Nyc(a),e=0;e<a.H.length;e++)a.H[e].P3(d);return c.je.promise};_.g=_.gL.prototype;
_.g.A_a=function(){var a=Nyc(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].tsa(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=Nyc(this);for(var f=0;f<this.H.length;f++)this.H[f].IEa(a,e);_.ci(_.QI(d).then(this.qvb.bind(this,a)),function(){b.W.delete(c)});_.n.setTimeout(this.A_a.bind(this),0)};
_.g.svb=function(a,b){var c=a.Dv.config;this.log(Quc(a.Dv.Kw)+" request completed successfully. xd4: "+!(!c||!c.BN));this.H.forEach(function(d){return d.iMa()});this.O.forEach(function(d){return d.O(a)});a.je.resolve(b)};
_.g.rvb=function(a,b){b=_.QB(b);this.log(Quc(a.Dv.Kw)+(" request failed with error: "+b.ha+"."));a.FD.push({response:b,bRb:Date.now()});for(var c=0;c<this.H.length;c++)this.H[c].A0a(a);a.Dv.config.EEa||!this.O.some(function(d){return d.intercept(a)})?a.je.reject(b):this.log(Quc(a.Dv.Kw)+" encountered an error, but was intercepted to be retried.")};_.g.qvb=function(a){Nyc(this);for(var b=0;b<this.H.length;b++)this.H[b].B0a(a)};
var Nyc=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};_.gL.prototype.log=function(a){this.ha.info(this.ka,a)};
_.Oyc=function(a,b,c,d){Jyc.call(this);this.V=b;this.ka=c;this.W=d;this.H=new Map;this.ha=_.ak(a,21,1E3);this.ta=_.ak(a,1,1);this.ma=function(){return new _.Cyc(_.ak(a,63,1E3),_.ak(a,64,3E5),_.ak(a,65,10))}};_.K(_.Oyc,Jyc);
_.Oyc.prototype.intercept=function(a){var b=a.FD.length,c=0<b&&_.fa(a.FD).response||null;if(c){c=_.eJ(c);if(2===c.Jp())return Pyc(this,a);if(_.Gtc(c))return 2>=b?(Lyc(this,a),a=!0):a=!1,a;var d=c.Ak();if(3===d||31===d||13===d||9===d)return Qyc(this,a,b);if(nuc(c))return b=Dyc(this.V),c=this.V,Dyc(c)<c.AK?(this.log("Backoff number "+b+" for a User Rate Limit error."),Lyc(this,a),a=!0):(this.log("Done retrying User Rate Limit errors after "+(b+" backoffs.")),a=!1),a}return!1};
var Pyc=function(a,b){var c=Ryc(a,b),d=Dyc(c);if(Dyc(c)<c.AK)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 Lyc(a,b)},d),_.EI(c.H)):(_.n.setTimeout(function(){return Lyc(a,b)}),c.V++),!0;a.H.delete(b);return!1},Ryc=function(a,b){a.H.has(b)||a.H.set(b,a.ma());return a.H.get(b)},Qyc=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 Lyc(a,
b)},a.ha*Math.pow(2,c)),!0;a.log("Done retrying retriable requests after "+d+" retries.");return!1};_.Oyc.prototype.O=function(a){this.H.delete(a)};_.Oyc.prototype.log=function(a){this.W.info("drive.ds.network.queue.RetryInterceptor",a)};
var Syc=function(a){try{if("undefined"!==typeof FileReaderSync&&_.Htc()){var b=new FileReaderSync;return Promise.resolve(b.readAsDataURL(a))}var c=new _.WJb,d=Jwc(c);c.H.readAsDataURL(a);return d.then()}catch(e){return Promise.reject(new _.UJb(_.qJ(e),"reading data"))}},Tyc=function(a){return Syc(a.size?a.slice(0,1):a).then(function(){return null},function(b){return b.name})};
var Uyc=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=_.ai();this.finished=!1;this.Ba=this.Au=0;this.ka=null;this.ma=!1;this.V=null;a=f.request.Qz();a=_.Htc()&&a?_.y(a,1):null;this.fileSize="number"===typeof a?a:f.file.size;this.requestId=h.requestId;this.gO="progress_"+this.requestId;h.gO=this.gO;this.ma=!!f.metadata};
Uyc.prototype.log=function(a){this.Ka.info("drive.ds.sync.request.ResumableUpload",a)};Uyc.prototype.start=function(){var a=this,b=new Juc(this.request.request,this.request.metadata),c=Vyc(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;Wyc(a)},function(d){return void a.je.reject(d)});return _.ci(this.je.promise.then(function(d){Xyc(a,d);return d},function(d){d=_.QB(d);Xyc(a,d.Tg);return _.Zh(d)}),function(){hyc(a.H,[a.gO])})};
var Vyc=function(a){var b=_.Ya(a.config);gyc(a.H,a.gO,owc(function(){return void a.H.notify([a.requestId],0)}));return b};Uyc.prototype.cancel=function(){return this.finished?!1:(this.finished=!0,this.je.resolve(Ruc(this.request)),!0)};
var Wyc=function(a){a.finished||(a.log("Uploading chunk "+a.Ba+" for "+a.ha+"."),Yyc(a,4))},Yyc=function(a,b){Zyc(a).then(function(c){if(c){var d=$yc(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.XJ()&&(a.va=f.XJ());f.QM()&&(a.Fa=f.QM());a.progress<a.fileSize?Wyc(a):a.je.resolve(f)},function(f){if(d.EEa)a.cancel();else{var h=_.eJ(f);h.ABa()||h.fla()||a.ma?azc(a,b,h,!1):Tyc(c.blob).then(function(k){k=k?_.YEa.get(k)||
25:38;_.oJ(h,k);k=38===h.Jp();var l=38!==h.Jp()&&25!==h.Jp();azc(a,b,h,k,l)},function(){})}})}else{var e=_.QB(_.oJ(_.mq(new _.Cc,"Could not read more of the file. Read "+a.progress+"/"+a.fileSize+" bytes."),5));a.je.reject(e)}})},azc=function(a,b,c,d,e){e=void 0===e?!1:e;var f=4-b;c.kfa(f);!e&&0<b?(a.Au++,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+"."));Yyc(a,b)},a.Qa*Math.pow(1.5,f))):a.je.reject(_.QB(c))},Zyc=function(a,b){return a.ma&&a.V?_.Yh(a.V):bzc(a,b).then(function(c){if(!c)return null;if(a.ma&&0<a.fileSize&&0===c.size)return Zyc(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 Kuc(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})},bzc=function(a,b){a.O=b?b:Math.min(a.fileSize-a.progress,a.W);b=a.progress;return a.request.fQ?a.request.fQ(b,a.O):_.Yh(_.duc(a.request.file,b,b+a.O))},$yc=function(a,b){var c=_.Ya(a.config);c.lRa=!0;var d=a.progress/a.fileSize,e=b/a.fileSize;hyc(a.H,[a.gO]);gyc(a.H,a.gO,function(f){a.H.notify([a.requestId],Math.min(d+e*f,1))});return c},Xyc=function(a,b){b.jMa(3);b.kfa(a.Au);b.XJ()||b.Ica(a.va);b.QM()||b.zca(a.Fa)};
_.czc=function(a,b,c,d,e){this.ha=a;this.V=b;this.H=c;this.W=d;this.O=e};_.czc.prototype.create=function(a,b){return new Uyc(this.ha,this.V,this.H,this.W,this.O,a,b)};
_.dzc=function(a){this.O=a;this.H={}};_.dzc.prototype.execute=function(a){for(var b=[],c=0;c<a.length;c++)if(a[c].Dv.Kw instanceof _.Luc)b.push(ezc(this,a[c].Dv));else{var d=_.mq(new _.Cc,"ResumableUploadExecutor only supports ResumableUploadRequests.");b.push(Promise.reject(_.QB(d)))}return b};_.dzc.prototype.cancel=function(a){return!!this.H[a]&&this.H[a].cancel()};_.dzc.prototype.eK=function(){return!_.Ta(this.H)};
var ezc=function(a,b){var c=a.O.create(b.Kw,b.config),d=c.start(),e=b.config.requestId;a.H[e]=c;return _.ci(d,function(){delete a.H[e]})};
_.fzc=function(a,b){return new _.gL(b,a,[new Hyc],[new _.eL],[],"immediate")};_.gzc=function(a,b,c,d,e){return new _.gL(e,a,[_.Byc(d),new _.dL(c,e),new Iyc],[new _.eL],[new _.Oyc(b,c,d.Mj(),e)],"connected")};_.hzc=function(a,b,c,d,e,f,h){h=void 0===h?_.ak(b,10,50):h;return new _.gL(e,a,[_.Byc(d),new _.Fyc(h,_.ak(b,12,10)),new _.fL(3*h),new _.dL(c,e)],[new _.eL],[new _.Oyc(b,c,d.Mj(),e)],f)};_.izc=function(a,b,c){b=_.ak(b,46,1);return new _.gL(c,a,[new _.fL(b)],[new _.eL],[],"resumable_upload")};
_.jzc=function(a,b,c,d,e,f,h,k){this.cI=a;this.ma=b;this.V=c;this.H=d;this.W=e;this.ha=f;this.ka=h;this.O=k};_.jzc.prototype.Qe=function(a,b){return kzc(this,a,b).then(null,function(c){c=_.QB(c);var d=c.Tg;Suc(a)||_.oq(d);return _.Zh(c)})};
var kzc=function(a,b,c){c=void 0===c?{}:c;var d=a.cI.validate(b);if(d)return _.Zh(_.QB(d));var e=a.ma.translate(b);e instanceof _.Cc?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 _.Yh(d).then(function(){if(e instanceof _.Cc)return _.Zh(_.QB(e));if(Array.isArray(e)){var f=e.map(function(h){return lzc(a,b,h,c)});return _.QI(f)}return lzc(a,b,e,c)},function(f){return _.Zh(_.QB(f))})},
lzc=function(a,b,c,d){var e=mzc(a,c);if(!e)return b=_.oJ(_.mq(new _.Cc,"Failed to choose a queue for server request."),18),_.Zh(_.QB(b));if(e===a.H[7]||e===a.H[8])d.BN=!0;d=e.add({Kw:c,config:d});(_.oK(b)||_.oK(c))&&_.ci(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};_.jzc.prototype.cancel=function(a){return _.Oa(this.H,function(b){return b.cancel(a)})};
var mzc=function(a,b){var c,d=!1;b instanceof _.KJ?d=!(null===(c=_.B(b,_.xA,2))||void 0===c||!_.P(c,7)):b instanceof _.xA?d=!!_.P(b,7):b instanceof _.YI&&(d=(d=b.ud())&&!!_.P(d,46));return(b instanceof _.Ouc||b instanceof _.mJ&&_.P(b,9))&&a.H[1]?a.H[1]:b instanceof _.Luc&&a.H[5]?a.H[5]:d&&Zuc(b,a.O)&&a.H[7]?a.H[7]:Zuc(b,a.O)&&a.H[8]?a.H[8]:d&&(b instanceof _.KJ||b instanceof _.xA)&&a.H[6]?a.H[6]:(d||oyc.includes(b.constructor))&&a.H[3]?a.H[3]:Tuc.includes(b.constructor)&&a.H[4]?a.H[4]:a.H[2]||a.H[1]};
var nzc=function(a){this.H=a};nzc.prototype.build=function(a,b){var c="====="+_.Vg()+"=====",d=a[0].$m,e=b.every(function(l){return l.BN});if(e){var f=d;var h={"content-type":"text/plain; charset=UTF-8"};d="POST";var k=nyc(this.H,a[0].$m);_.rj(k,"$ct",'multipart/mixed; boundary="'+c+'"')}else f=ozc[d],h=pzc[d]||{},h["content-type"]=_.Ft('multipart/mixed; boundary="%s"',c),d=qzc[d],k=new _.kj("");a=rzc(this,a,b,c,e);return{$m:f,body:a,headers:h,method:d,uri:k}};
var rzc=function(a,b,c,d,e){for(var f=xuc(szc[b[0].$m]||{}),h="",k=0;k<b.length;k++){e&&lyc(a.H,b[k],c[k]);var l=b[k],p=a.H,q=l,r=c[k];q.uri=myc(p,q.$m,q.uri);switch(q.$m){case 0:case 5:kyc(p,q,r);jyc(p,q,r);break;case 2:lyc(p,q,r);kyc(p,q,r);var v=q,z=_.y(p.H.ig(),57);v.headers.host=_.yj(z).H;v.headers.origin=_.n.location.origin?_.n.location.origin:_.n.location.protocol+"//"+_.n.location.host;jyc(p,q,r);break;case 12:case 10:case 13:break;case 8:case 7:throw Error("df`"+q.$m);default:throw Error("cf`"+
q.$m);}p=l;q=p.uri.clone();_.lj(q,"");_.mj(q,"");_.nj(q,null);l=f+"\r\n"+(p.method+" "+q+" HTTP/1.1\r\n")+xuc(l.headers)+"\r\n"+(l.body?l.body+"\r\n":"");h+="--"+d+"\r\n";h+=l}return h+("--"+d+"--\r\n")},tzc={},ozc=(tzc[0]=1,tzc[2]=3,tzc),uzc={},qzc=(uzc[0]="POST",uzc[2]="PUT",uzc[12]="POST",uzc),vzc={},wzc={},pzc=(wzc[2]=(vzc["x-goog-upload-protocol"]="batch",vzc),wzc),xzc={},yzc={},zzc={},Azc={},szc=(Azc[0]=(xzc["content-type"]="application/http",xzc["content-transfer-encoding"]="binary",xzc),Azc[12]=
(yzc["content-type"]="application/http",yzc["content-transfer-encoding"]="binary",yzc),Azc[2]=(zzc["content-type"]="application/http",zzc),Azc);
var Bzc=/^HTTP\/1\.1 (\d+) ([\w ]+)/,Czc=/^multipart\/mixed; boundary="?([^"]+)"?$/;
var Dzc=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};Dzc.prototype.add=function(a,b){var c="DEFAULT";b.BN&&(c=nyc(this.V,a.$m).toString());this.jj.has(c)||this.jj.set(c,[]);c=this.jj.get(c);if(1<=c.length&&!b.BN&&!ozc[a.$m])return a=_.mq(new _.Cc,"Unsupported batch API: "+a.$m),_.Zh(_.QB(a));var d=_.ai();c.push({request:a,config:b,je:d});return d.promise};
Dzc.prototype.send=function(){for(var a={},b=_.m(this.jj.entries()),c=b.next();!c.done;a={Yqa:a.Yqa},c=b.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;try{Ezc(this,d)}catch(f){var e=_.qJ(f);e=_.nq(_.mq(new _.Cc,"Error executing XHR: "+e.message),e.stack);a.Yqa=_.QB(e);d.forEach(function(h){return function(k){k.je.reject(h.Yqa)}}(a));this.jj.delete(c)}}};
var Ezc=function(a,b){if(1===b.length){var c=b[0];if(!c.config.dCa&&!c.config.BN){var d=!1;if(ozc[c.request.$m]){var e={$m:c.request.$m,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){Fzc(a,c);return}}}Gzc(a,b)},Fzc=function(a,b){var c=b.je;a.W.$g(b.request,b.config).then(function(d){c.resolve(d);Hzc(a,b)},function(d){a.handleError(b,d);c.reject(d)})},Gzc=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),{dCa:!0,BN:d.every(function(e){return e.BN})}).then(function(e){e.headers=_.guc(e.headers);var f=Czc.exec(e.headers["content-type"]);var h=f&&f[1]?"--"+f[1]:null;if(!h)throw new _.Dc("Could not extract batch boundary.",_.oJ(_.nq(new _.Cc,JSON.stringify(e)),14));f=h+"\r\n";h=e.text.split(h+"--");if(2===h.length&&_.Td(_.nia(h[0]),f)&&_.xe(h[1]))h=_.nia(h[0]).substring(f.length);else throw new _.Dc("Could not parse batch response; did not begin and end with boundary.",
_.oJ(_.nq(new _.Cc,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 _.Dc("Individual batch response contained too few parts.",_.oJ(_.nq(new _.Cc,C),17));else{var L=H[1].split("\r\n");if(z=Bzc.exec(L[0])){p=_.$g(z[1]);z=z[2];L.shift();A=_.Ya(A);for(var N=Object,S=N.assign,U={},ha=0;ha<L.length;ha++){var Y=_.wia(L[ha],":",1);Y&&2===Y.length&&
(U[(0,_.qg)(Y[0])]=(0,_.qg)(Y[1]))}L=_.guc(U);S.call(N,A,L);try{v=_.xe(_.Ug(H[2]))?void 0:JSON.parse(H[2])}catch(oa){}v=(p=_.luc(p,z,A,C,v,void 0,void 0,G&&G.toString()))?_.QB(p):{headers:A,text:C,json:v||void 0}}else v=new _.Dc("Could not extract HTTP status code and text.",_.oJ(_.nq(new _.Cc,C),16))}r.call(q,v)}return k}).then(null,function(e){e=_.QB(e);return _.Kqc(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 _.Cc||l instanceof _.Dc?(l=_.QB(l),
f||(f=a.handleError(b[h],l)),k.reject(l)):k.resolve(l)}f||Hzc(a,b[0])})},Hzc=function(a,b){var c=b.request.$m;b=!b.config.ru&&_.ma(Izc,c);if(a.H){if(a=a.H,c=b?1:2,!a.state.isConnected()||b)c=$xc(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()};
Dzc.prototype.handleError=function(a,b){a=_.jIb(b);if(2===a.Jp()){if(this.H)return _.byc(this.H),!0}else if(_.Gtc(a)){if(this.H){a=this.H;if(b=!a.V)b=a.state,b=!b.V&&b.isConnected()?b.H=!0:!1;b&&_.ayc(a);return!0}if(this.O)return this.O.ta(),!0}return!1};var Izc=[0,2,4,7,8];
var Jzc=function(){_.hj.apply(this,arguments)};_.K(Jzc,_.hj);Jzc.prototype.getAllResponseHeaders=function(){return _.nia(_.hj.prototype.getAllResponseHeaders.call(this))};
var Kzc=function(a,b){this.W=a;this.V=b;this.O={};this.H={}};
Kzc.prototype.$g=function(a,b){var c=this;try{this.W.lc(a,b);var d=new Jzc;d.vC=!0;var e=b.requestId||"",f=_.ai();d.listen("complete",function(){var h=b.dCa,k=4===a.$m;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=_.tI(d)}catch(p){}h=_.luc(d.Bb(),_.bma(d),l.headers,l.text,l.json,d.O,_.fma(d),String(d.ta),k);d.dispose();h?f.reject(_.QB(h)):f.resolve(l)});e&&b.gO&&!b.BN&&(this.O[e]=d,this.H[e]=b,d.Gb=!0,d.listen("uploadprogress",
function(h){h.lengthComputable&&c.V.notify([b.gO],b.lRa?h.loaded/h.total:h.loaded/h.total/2)}),b.lRa||d.listen("downloadprogress",function(h){h.lengthComputable&&c.V.notify([b.gO],h.loaded/h.total/2+.5)}));d.send(a.uri,a.method,a.body,a.headers);return f.promise}catch(h){return _.Zh(_.QB(h))}};Kzc.prototype.cancel=function(a){var b=this.O[a];a=this.H[a];return b&&b.isActive()?(a.EEa=!0,b.abort(),!0):!1};
_.Lzc=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 nzc(this.O);this.W=new Kzc(this.O,this.va)};_.g=_.Lzc.prototype;
_.g.execute=function(a){for(var b=[],c=[],d=0;d<a.length;d++){var e=a[d].Dv;this.V.push(e);b.push(this.Ba.yE(e,a[d].FD));c.push(pyc(e.Kw)?_.tyc(this.ma,e.Kw):void 0)}if(this.H&&this.H.V){var f=Promise.reject(_.QB(_.luc(0,"",{},"",void 0,-99)));return a.map(function(){return f})}var h=new Dzc(this.O,this.W,this.ka,this.H||void 0,this.ha||void 0);d=[];e={};for(var k=0;k<a.length;e={Eqa:e.Eqa},k++){e.Eqa=a[k].Dv.config;var l=b[k].then(function(p){return function(q){return h.add(q,p.Eqa)}}(e));d.push(l)}Promise.allSettled(b).then(function(){h.send()});
b=[];for(e=0;e<a.length;e++)k=a[e].Dv,l=d[e].then(this.knb.bind(this,k.Kw,c[e],a[e].FD)).then(null,function(p){return Promise.reject(_.QB(p))}),l.then(this.kMa.bind(this,k),this.kMa.bind(this,k)),b.push(l);return b};_.g.knb=function(a,b,c,d){a=this.ta.yE(a,d,c);b&&(c=a.wd?a.wd():[],_.uyc(b,c));return a};_.g.cancel=function(a){return this.W.cancel(a)};_.g.eK=function(){return this.V.some(function(a){return _.oK(a.Kw)})};_.g.kMa=function(a){_.ta(this.V,a)};
_.Mzc=function(){};_.Mzc.prototype.execute=function(){return null};
var Nzc=function(){};
var Ozc=function(a,b){this.H=a;this.O=b};
_.Pzc=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 Qzc=function(a){return"drive#fileList"===a.kind};
var Rzc;Rzc=function(a){this.H=a};_.hL=function(a,b){if(!_.Ba(b))throw new _.Dc("Expected an object, but got a "+_.fga(b)+".",_.pJ(11,void 0,8));var c=b.kind;if(!c)throw new _.Dc("Expected 'kind' parameter in response: "+JSON.stringify(b),_.pJ(11,void 0,21));if(!a.includes(c))throw new _.Dc("Expected "+a.join(" or ")+" but got a "+c+".",_.pJ(11,void 0,9));};_.iL=function(a){return null!=a?(new Date(a)).getTime():void 0};
_.Szc=function(a){var b=null!=a.canDelete?a.canDelete:a.canDeleteTeamDrive;var c=_.evc(new _.Xk,a.canAddChildren);c=_.w(c,18,a.canChangeTeamDriveBackground);c=_.w(c,2,a.canComment);c=_.w(c,3,a.canCopy);b=_.nvc(_.ivc(_.ovc(_.pvc(_.qvc(_.mvc(_.lvc(_.hvc(_.gvc(_.fvc(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=_.rvc(_.kvc(_.jvc(b,a.canShare),
a.canTrash),a.canUntrash);b=_.w(b,27,a.canModifyContentRestriction);b=_.w(b,26,a.canShareOutsideDomain);b=_.uvc(_.tvc(_.svc(_.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=_.wvc(_.vvc(b,a.canShareChildFiles),a.canShareChildFolders);b=_.w(b,44,a.canRead);b=_.zvc(_.yvc(_.xvc(_.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)};_.jL=function(a,b){_.hL(["drive#user"],b);var c=_.cvc(_.dvc(_.avc(1).Ob(b.permissionId),b.id).hd(b.displayName),b.emailAddress);b.picture&&c.Mn(b.picture.url);_.XI(a.H)&&_.cvc(c,b.emailAddressFromAccount||b.emailAddress);_.bvc(c,a.Uf(b.id));_.w(c,9,b.domain);return c};Rzc.prototype.Uf=function(a){if(a)return _.BK(_.II(this.H))==a};
var Tzc,Yzc,fAc,lAc,aAc,$zc,cAc,eAc,gAc,Vzc,iAc,hAc,jAc,kAc,nAc,oAc,mAc,dAc;Tzc=function(a,b){this.H=a;this.O=b};
_.Wzc=function(a,b,c){var d=new _.bL,e=new _.pB,f=e.Uw;_.hL(["drive#fileList","drive#file"],b);var h=[];if("drive#file"===b.kind)(a=_.Uzc(a,b))&&h.push(a);else if(Qzc(b))for(var k=b.items||[],l=0;l<k.length;l++){var p=_.Uzc(a,k[l]);h.push(p)}e=f.call(e,h);if(Qzc(b)){_.w(e,8,b.incompleteSearch);_.hL(["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 _.bub).Dc(Vzc.get(k.status)),
l=_.w(l,1,k.original),k=_.w(l,3,k.correction),h.push(k);a=new _.fub;h=_.Kj(a,1,h);f.push(h)}q=new _.hub;_.Kj(q,1,f)}if((f=b.suggestedNlpQueries)&&0<f.length){var r=new _.dub;_.Ij(r,1,f)}q||r?(f=new _.iub,q&&_.I(f,1,q),r&&_.I(f,2,r),r=f):r=null;_.I(e,7,r);_.hL(["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);_.Ij(e,18,r)}d=_.vyc(d,e);c=_.iuc(c);c=_.w(d,2,c);Qzc(b)&&b.nextPageToken&&_.w(c,
3,b.nextPageToken);return c};
Yzc=function(a,b,c,d,e){_.hL(["drive#adminFile","drive#file","drive#revision"],b);var f=_.Iwc(new _.nK,c);"drive#adminFile"===b.kind?(_.hL(["drive#adminFile"],b),c=(new _.hl).Ob(b.id),b.parentId&&_.wK(c,[b.parentId]),_.Rvc(c,b.teamDriveId),f.setItem(c),_.Iwc(f,c.getId())):"drive#file"===b.kind?(b=_.Uzc(a,b),f.setItem(b),c||_.Iwc(f,b.getId())):"drive#revision"===b.kind&&(b=_.Xzc(a,b),_.I(f,4,b));f.Ica(_.huc(d));f.zca(_.iuc(d));(d=(d=d&&_.guc(d))&&d["x-server-object-version"])&&e&&(e=(new _.GK).Ob(d),
_.I(f,4,e));f.Dc(1);return f};_.Zzc=function(a,b){return _.Iwc(new _.nK,a).Dc(1).Ica(_.huc(b)).zca(_.iuc(b))};
_.bAc=function(a,b){_.hL(["drive#permission"],b);var c=_.bvc(_.dvc(_.avc($zc.get(b.type)).Ob(b.id),b.userId),a.H.Uf(b.userId));c=_.w(c,4,b.withLink);c=_.cvc(c.hd(b.name).Mn(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);_.XI(a.O)&&c.hd(b.nameIfNotUser);b.role&&(a=aAc.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};
_.Uzc=function(a,b){_.hL(["drive#file"],b);var c=b.title,d=(new _.hl).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=_.Ovc(_.Kvc(_.IG(_.wK(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);_.Lvc(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.Kv(d.starred),_.w(c,6,d.hidden),c.Nn(d.trashed),_.Hvc(c,d.restricted),_.w(c,9,d.viewed));_.w(c,10,_.iL(b.createdDate));_.w(c,69,_.iL(b.serverCreatedDate));_.M8b(c,_.iL(b.modifiedDate));_.w(c,12,_.iL(b.modifiedByMeDate));_.w(c,13,_.iL(b.lastViewedByMeDate));_.w(c,23,_.iL(b.sharedWithMeDate));_.w(c,62,_.iL(b.wac));_.w(c,70,_.iL(b.recency));b.recencyReason&&(d=cAc.get(b.recencyReason)||0,_.w(c,71,d));d=[];if(b&&b.owners)for(e=b.owners,f=0;f<e.length;f++)(h=
_.jL(a.H,e[f]))&&d.push(h);_.Ivc(c,d);b.lastModifyingUser&&(d=_.jL(a.H,b.lastModifyingUser),_.Jvc(c,d));b.userPermission&&(d=aAc.get(b.userPermission.role),_.N8b(c,d));b.imageMediaMetadata&&(e=b.imageMediaMetadata,d=(new _.tK).zh(e.width).yh(e.height),d=_.w(d,4,e.rotation),e.date&&(e=e.date,f=new _.ntc,f.setMilliseconds(0),dAc.parse(e,f),_.w(d,1,f.getTime())),_.I(c,27,d));null!=b.folderColor&&_.Nvc(c,Number(b.folderColor));_.Mvc(c,b.subscribed);_.w(c,45,b.fileExtension);_.Ij(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=_.jL(a.H,b.sharingUser),_.Pvc(c,d));b.sources?_.Ij(c,56,b.sources):b.gplusMedia&&_.Ij(c,56,["GOOGLE_PHOTOS"]);if(b.spaces){d=b.spaces;e=[];for(f=0;f<d.length;f++)h=d[f],_.Dqc[h]&&(h=_.kf(new _.jf,_.Dqc[h]),e.push(h));c.IA(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=eAc.get(k.type),h=_.w(h,2,k),e.push(h))}_.Kj(c,83,e)}b.capabilities&&_.xK(c,_.Szc(b.capabilities));b.permissionsSummary&&_.Svc(c,fAc(a,b.permissionsSummary));b.headRevisionId&&_.w(c,78,b.headRevisionId);b.templateData&&
(d=b.templateData,e=(new _.uK).Yl(d.description),f=gAc.get(d.galleryState),e=_.w(e,3,f),d=_.Ij(e,2,d.category),_.I(c,86,d));_.Rvc(c,b.teamDriveId);_.w(c,76,b.hasAugmentedPermissions);_.w(c,137,b.ancestorHasAugmentedPermissions);b.creator&&(d=_.jL(a.H,b.creator),_.Tvc(c,d));_.Uvc(c,b.primaryDomainName);_.Vvc(c,b.organizationDisplayName);_.w(c,94,b.passivelySubscribed);b.trashingUser&&_.Wvc(c,_.jL(a.H,b.trashingUser));c.Nca(_.iL(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=hAc.get(d),_.w(c,101,d);b.videoMediaMetadata&&(d=b.videoMediaMetadata,e=(new _.vK).zh(d.width).yh(d.height),d.durationMillis&&_.w(e,3,Number(d.durationMillis)),_.I(c,103,e));_.Ij(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=_.Cvc(_.Bvc(new _.Zk,f.readOnly),f.reason),d.push(f);_.Kj(c,125,d)}if(d=b.publishingInfo)_.w(c,118,d.published),
_.w(c,119,d.publishedUrl);_.Ij(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(iAc.get(f.status)),d.push(f);_.Kj(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=jAc.get(d.targetLookupStatus)||0,_.w(e,4,f)),d.targetFile&&(d=_.Uzc(a,d.targetFile),_.I(e,5,d)),_.I(c,132,e));b.clientEncryptionDetails&&(d=b.clientEncryptionDetails,e=new _.sK,f=kAc.get(d.encryptionState),e=_.w(e,1,f),d.decryptionMetadata&&(d=lAc(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);_.Ij(c,135,b.authorizedAppIds);_.Xvc(c,b.customerId);_.w(c,144,b.abuseIsAppealable);b.abuseNoticeReason&&(b=mAc.get(b.abuseNoticeReason)||0,_.w(c,145,b));_.vuc(c);_.XI(a.O)&&_.Qvc(c,5);return c};
_.Xzc=function(a,b){_.hL(["drive#revision"],b);var c=(new _.GK).Ob(b.id);c=_.w(c,2,b.mimeType);c=_.w(c,3,_.iL(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=_.jL(a.H,b.lastModifyingUser),_.I(c,9,a));b.decryptionMetadata&&(b=lAc(b.decryptionMetadata),_.I(c,10,b));return c};
fAc=function(a,b){return _.Fvc(_.Evc(_.Dvc(new _.Wna,b.entryCount),(b.visibility||[]).map(function(c){var d=_.avc($zc.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=aAc.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 _.bAc(a,c)}))};
lAc=function(a){var b=a.wrappedKey;var c=new _.Avc;b=b?_.jsc(b):void 0;c=_.w(c,1,b);c=_.w(c,2,Number(a.kaclsId));c=_.w(c,5,a.kaclsName);b=nAc.get(a.aes256GcmChunkSize);c=_.w(c,3,b);b=oAc.get(a.keyFormat);c=_.w(c,6,b);return _.w(c,4,a.jwt)};aAc=new Map([["fileOrganizer",7],["organizer",5],["owner",1],["reader",2],["writer",3]]);$zc=new Map([["anyone",4],["audience",5],["domain",3],["group",2],["user",1]]);cAc=new Map([["createdByMe",1],["modifiedByMe",2],["modified",3],["viewedByMe",4]]);
eAc=new Map([["MENTION",0],["SUGGESTION",1],["ASSIGNMENT",2]]);gAc=new Map([["UNAVAILABLE",1],["AVAILABLE",2],["PENDING",3]]);Vzc=new Map([["CORRECT",1],["INCORRECT",2],["SUSPICIOUS",3]]);iAc=new Map([["IN_PROGRESS",1],["APPROVED",2],["CANCELLED",3]]);hAc=new Map([["docs",1],["sheets",2],["slides",3]]);jAc=new Map([["ok",1],["notFound",2],["permissionDenied",3]]);kAc=new Map([["unencrypted",1],["encrypted",2]]);nAc=new Map([["unset",0],["default",1],["small",2],["size16kb",3]]);
oAc=new Map([["unsetKeyFormat",0],["tinkKeyset",1],["tinkAesGcmKey",2]]);mAc=new Map([["unknownReason",0],["accessibleOnlyToOwner",1],["accessibleOnlyToOwningCustomer",2],["suspiciousOther",3],["suspiciousPhishing",4],["suspiciousMalware",5]]);dAc=new _.wWa("yyyy:MM:dd HH:mm:ss");
var pAc=function(a,b,c){this.O=a;this.H=b;this.V=c};
var sAc;_.qAc=function(a){this.V=new Rzc(a);this.lF=new Tzc(this.V,a)};_.qAc.prototype.yE=function(a,b,c){c=void 0===c?[]:c;try{return rAc(this,a,b,c)}catch(d){_.rJ(d)}};
var rAc=function(a,b,c,d){var e=a.ha(b,c);if(e)return e;if(b instanceof _.yJ)return _.kL(a,b,c);if(b instanceof _.HJ)return sAc(0,c,d);if(b instanceof _.xA||b instanceof _.KJ){if(!c.json)throw _.lL();return _.Wzc(a.lF,c.json,c.headers)}if(b instanceof _.iK)return _.kL(a,b,c);if("undefined"!=typeof _.Guc&&b instanceof _.Guc){if(!c.json)throw _.lL();a=c.json;return new _.Pzc(a.fileId,a.jwt,Number(a.currentKaclsId),a.currentKaclsName,a.customerId)}if("undefined"!=typeof _.tAc&&b instanceof _.tAc){if(!c.json)throw _.lL();
return _.Xzc(a.lF,c.json)}if(b instanceof _.WJ)return sAc(b.ud(),c,d);if(b instanceof Kuc){if(b.V){if(!c.json)throw _.lL();a=Yzc(a.lF,c.json,null,c.headers,!!b.revisionId)}else a=_.Zzc(null,c.headers);return a}if(b instanceof Juc){a=_.guc(c.headers);b=a.location;if(!b)throw a=_.oJ(new _.Cc,10),new _.Dc("No upload session URI included.",a);return new pAc(b,_.huc(a),_.iuc(a))}if(b instanceof _.Ouc)return new Nzc;throw new _.Dc("FromXhrConverter: Unsupported request type.",new _.Cc);};
_.qAc.prototype.ha=function(){return null};sAc=function(a,b,c){return"base64"===b.headers["x-goog-safety-encoding"]?new Ozc(_.Naa(b.text),c.length):new Ozc(new Uint8Array(_.uma(b.text)),c.length)};_.kL=function(a,b,c){if(!c.json){if(b instanceof _.gJ)return _.Zzc(_.uAc(b));throw _.lL();}var d=!1;b instanceof _.iK&&(d=!!_.y(b.request,12));return Yzc(a.lF,c.json,_.uAc(b),c.headers,d)};_.lL=function(){var a=_.oJ(new _.Cc,11);return new _.Dc("FromXhrConverter: JSON required, but none found",a)};
_.uAc=function(a){return a.getId?a.getId():a.Ac?a.Ac():null};
var yAc,zAc,BAc,vAc,CAc,wAc;
yAc=function(a,b){var c={};_.xe(_.Ug(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.k$(),e=b.O(),f={encryptionState:"encrypted"},h={};f.decryptionMetadata=(h.wrappedKey=_.Bj(b.V()),h.kaclsId=b.ha(),h.aes256GcmChunkSize=vAc[d?d.O():0],h.keyFormat=wAc[e?e.O():0],h);c.clientEncryptionDetails=f}_.xAc(c,_.fe(a,3));(b=a.Ac())&&(c.id=b);_.y(a,16)&&(c.embeddingParent=_.y(a,16));a.I1()&&
(c.shortcutDetails={},c.shortcutDetails.targetId=a.I1());"number"===typeof _.y(a,26)&&(c.modifiedDate=_.gwc(_.Zwc(_.y(a,26)||0)));return c};_.xAc=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)}}};zAc={};_.AAc=(zAc[1]="active",zAc[2]="archived",zAc);BAc={};vAc=(BAc[0]="unset",BAc[1]="default",BAc[2]="small",BAc[3]="size16kb",BAc);CAc={};wAc=(CAc[0]="unsetKeyFormat",CAc[1]="tinkKeyset",CAc[2]="tinkAesGcmKey",CAc);
var FAc=function(a,b,c){return(a.fQ?a.fQ(0,a.file.size):Promise.resolve(a.file)).then(function(d){return Syc(d)}).then(function(d){return DAc(a,b,d,c)},EAc)},DAc=function(a,b,c,d){var e=!!_.y(a.request,12),f="files";e&&(f+="/"+_.y(a.request,12));f=new _.kj(f);_.rj(f,"uploadType","multipart");_.rj(f,"supportsTeamDrives",!0);_.rj(f,"pinned",!!_.Q(a.request,13,!1));null!=_.P(a.request,8)&&_.rj(f,"convert",_.P(a.request,8));_.rj(f,"fields",_.quc({fields:_.JK(b).filter(function(q){return 194!=q}),Bq:!1}));
wuc(f,a.request.te());var h=yAc(a.request,a.metadata),k=_.Vg();b={};b=(b["content-type"]=_.Ft('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());_.rK(d,_.Oj(a.request,_.Jl,28),[],null,b);a="--"+k;a=a+"\r\n"+xuc(l)+"\r\n"+h+"\r\n"+a+"\r\n"+xuc(p)+"\r\n"+c+"\r\n"+
a+"--";return{$m:2,headers:b,method:e?"PUT":"POST",uri:f,body:a}},EAc=function(a){if(a instanceof _.UJb){var b=new _.Cc;_.mq(b,"fs.Error: "+a.message);a=(a=a.name)?_.YEa.get(a)||25:38;_.oJ(b,a);b=_.QB(b)}else b=_.qJ(a);return Promise.reject(b)};
_.mL=function(a,b,c,d){this.H=a;this.Mg=b;this.O=c;this.eg=d;this.ka=_.pK(a)||new _.Zvc};_.mL.prototype.yE=function(a,b){try{return a.Kw instanceof _.iK?FAc(a.Kw,this.Mg,this.H):Promise.resolve(this.V(a.Kw,a.config,b))}catch(c){return c instanceof _.Dc?a=c.Tg:(a=new _.Cc,_.mq(a,"Error converting XHR: "+c.message),_.nq(a,c.stack),_.oJ(a,4)),Promise.reject(a)}};
_.mL.prototype.V=function(a,b,c){var d=0,e,f={},h="GET",k={},l=!1,p=!1;if(a instanceof _.yJ){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=_.quc({fields:this.Ng(c),Bq:_.uI(_.II(this.H)),EE:_.XI(this.H)});e=yAc(a);f["content-type"]="application/json";var r=a.te();p=!0;_.IK(k);_.GAc(this.H,k);_.rK(this.H,_.Oj(a,_.Jl,28),_.fe(a,3).concat([_.y(a,16),a.I1(),a.Ac()]),this.O,f)}else if(a instanceof _.HJ||a instanceof
_.WJ)a instanceof _.WJ?(l=a.ud(),_.Cj(a,2)&&(q="bytes="+_.y(a,2)+"-",_.Cj(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",_.rK(this.H,[_.Kl((new _.Jl).Ob(l.getId()),_.y(l,3))],[l.getId()],this.O,f),p=l=!0;else if(a instanceof _.KJ||a instanceof _.xA){if(a instanceof _.KJ)q=_.y(a,1),a=_.B(a,_.xA,2);else if(a instanceof _.xA)q=0,_.ZK(this.eg,190196159);else throw Error("bg");p=a.nn()[q];q="files/"+
p;r=_.va(this.Ng(c),this.Ng(c,a.O()));_.Da(r);k.fields=_.quc({fields:r,Bq:_.uI(_.II(this.H)),EE:_.XI(this.H)});_.IK(k);_.HAc(this.H,k);_.IAc(this.H,k);this.W(p,k);r=a.te();p=!0;_.P(a,7)&&(b.dCa=!0);_.rK(this.H,_.Oj(a,_.Jl,11),a.nn(),this.O,f)}else if("undefined"!=typeof _.Guc&&a instanceof _.Guc)q="files/generateCseToken",a.id&&(k.fileId=a.id),k.role=a.role,r=a.H;else if("undefined"!=typeof _.tAc&&a instanceof _.tAc)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 Kuc){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?_.Ft("bytes %d-%d/%d",v,b,b+1):_.Ft("bytes %d-%d/*",v,b)}v=a.blob;p=!0}else a instanceof Juc?(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=_.quc({fields:this.Ng(c).filter(function(z){return 194!=
z}),Bq:_.uI(_.II(this.H)),EE:_.XI(this.H)}),_.IK(k),e=yAc(a.request,a.metadata),f["content-type"]="application/json",null!=a.request.getMimeType()&&(f["x-upload-content-type"]=a.request.getMimeType()),_.rK(this.H,[],_.fe(a.request,3),this.O,f),r=a.request.te(),p=!0):a instanceof _.Ouc?(q="about",k.fields="kind",r=a.H,p=!0):_.JAc(a);p&&_.KAc(c,k);0!=d||l||r&&_.y(r,1)||_.ZK(this.eg,74438989);return _.LAc(this,d,q,k,f,h,r,e,v)};
_.LAc=function(a,b,c,d,e,f,h,k,l){c=new _.kj(c);[10,12,13].includes(b)||wuc(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,_.vj(c,a,h);return{$m:b,headers:e,method:f,uri:c,body:k?JSON.stringify(k):l}};_.HAc=function(a,b){_.Q(a.ig(),23,!1)&&(b.includePermissionsForView="published")};_.mL.prototype.W=function(){};
_.IAc=function(a,b){_.Q(a,14,!1)&&(b.useLegacyDomainPermissionBehavior=!1)};_.GAc=function(a,b){_.Q(a,3,!1)&&(b.enforceSingleParent=!0)};_.KAc=function(a,b){a&&a.length?(b.retryCount=a.length,b.msSinceLastAttempt=Date.now()-_.fa(a).bRb):b.retryCount=0};_.mL.prototype.Ng=function(a,b){b||(b=_.JK(this.Mg));0<a.length&&(b=b.slice(0),_.jaa(b,function(c){return Gwc.includes(c)}));return b};_.JAc=function(a){var b=_.oJ(new _.Cc,4);throw new _.Dc("ToXhrConverter: Unsupported request type: "+Quc(a),b);};
_.nL=function(a,b,c,d,e,f){_.Di.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;_.Qe(this,function(){h.dG()})};_.K(_.nL,_.Di);_.nL.prototype.kQ=function(){return _.PI()};
_.nL.prototype.upload=function(a,b,c,d){syc(this.V,"UploadTotalCount");var e=a.hj();if(e&&this.jj[e])throw new _.Dc("Upload requested with a duplicate request ID.");var f=_.fe(a,10);if(f&&f.length){if(1!==f.length)throw new _.Dc("Multi-parented uploads are not supported.");var h=this.jj[f[0]];if(!h)throw new _.Dc("The parent upload request must precede this request.");}!_.y(a,26)&&b&&b.lastModified&&_.w(a,26,b.lastModified);e||(e=this.kQ(),_.w(a,9,e));a=a.clone();f=MAc(this,e);this.jj[e]={request:a,
file:b,wf:f,DM:!1,Au:0,success:!1,xE:!1,children:[],metadata:c,pla:void 0,fQ:d};h?NAc(this,e,h):this.ka(e);return f.an()};
var MAc=function(a,b){var c=new _.di;c.mg(_.Db(a.Fa,b),_.Db(a.Ha,b),a);return c},NAc=function(a,b,c,d){var e=a.jj[b];c.children.push(b);_.Da(c.children);c.wf.then(function(f){if(1===f.Bb()&&(f=f.Ac(),_.fe(e.request,3).push(f),_.MI(e.request,10),!c.xE||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(_.WI(f)?f:Error(f))})};
_.nL.prototype.Fa=function(a,b){syc(this.V,"UploadSuccessCount");a=this.jj[a];a.success=1===b.Bb();(b=a.pla)&&!a.xE&&(ywc(Awc(pxc(b),a.Au),!0),b.Aj())};_.nL.prototype.Ha=function(a,b){var c=_.B(this.O,_.nJ,58);c&&_.Q(c,1,!1)&&(this.ha[a]=b);syc(this.V,"UploadFailureCount");c=this.jj[a];(a=c.pla)&&!c.xE&&(ywc(Awc(pxc(a),c.Au),!1),b=(c=b&&b.Tg)&&c.Ak(),c=c&&c.Jp(),b?zwc(pxc(a),OAc.get(b)||13):c&&zwc(pxc(a),PAc.get(c)||0),a.Aj())};
_.nL.prototype.ka=function(a){var b=this.jj[a];if(!b.DM){b.DM=!0;a=this.jj[a];var c=a.request,d=_.B(this.O,_.nJ,58);d&&_.Q(d,4,!1)&&(d=c.getTitle().match(QAc))&&(!d[1]||a.Au<Number(d[1].substr(1)))&&(c=c.clone(),_.ra(_.fe(c,3),"$#@! Invalid parent ID."));a=c;c=(c=b.request.Qz())?_.y(c,1)||0:0;var e=b.file&&b.file.size||c;c=this.O.ig();d=_.ak(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.pla=f;f=pxc(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=_.ak(c,32,1073741824);_.w(e,7,c)}}switch(d){case 2:b.file&&RAc(this,new _.Luc(a,b.file,b.fQ,b.metadata),b.wf,a.hj());break;case 1:b.file&&(c=b.wf,d=b.file,e=b.metadata,b=b.fQ,f=_.B(this.O,_.Yvc,2),RAc(this,new _.iK(a,d,b,f&&_.yK(f)?e:void 0),c,a.hj()));break;case 3:RAc(this,a,b.wf,a.hj());break;default:throw new _.Dc("Upload type ${uploadType} not supported.");}}};
var RAc=function(a,b,c,d){gyc(a.Ba,d,a.ma.bind(a,d));_.ci(a.W.then(function(e){return e.Qe(b,{requestId:d})}).then(null,function(e){return SAc(a,b,e)}),function(){hyc(a.Ba,[d])}).then(c.callback,c.Jd,c)},SAc=function(a,b,c){var d=_.QB(c),e=b instanceof _.iK&&b.request.Ac()||"";c=d.Tg;if(e&&8===c.Ak()){a.log("Create failed with 409 Conflict, re-querying: "+e);var f=_.zA(new _.xA,[e]);return _.ji(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),_.Iwc((new _.nK).setItem(h),e).Dc(1);a.log("No matching item found for: "+e);return _.Zh(d)}))}return _.ki(d)};_.g=_.nL.prototype;
_.g.cancel=function(a){var b=this,c=this.jj[a];if(c&&(!c.xE||0!==c.children.length))if(c.xE=!0,c.wf.kg())this.log('[Cancel] Response for "'+c.request.getTitle()+'" already received. Cannot cancel.'+(c.children.length?" Attempting to cancel children.":"")),_.Ia(c.children,this.cancel,this);else{var d=c.pla;d&&(zwc(ywc(Awc(pxc(d),c.Au),!1),2),d.Aj());var e=_.ai();c.DM?this.W.then(function(f){return void e.resolve(f.cancel(a))}):(c.DM=!0,c.wf.callback(Ruc(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.dG=function(){var a=this;_.La(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=(_.fe(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 _.Dc("Unable to retry request due to failed parent upload.");break}}f=k}while(f);_.ia(h,function(p){var q=b.jj[p];q.Au++;if(!e[p])if(!q.wf.kg()||q.success)e[p]=new _.Dc("Unable to retry request.");else{var r=(_.fe(q.request,10)||[])[0];e[r]instanceof _.Dc?
e[p]=e[r]:(q.wf=MAc(b,p),q.DM=!1,q.xE=!1,(r=r?b.jj[r]:null)?NAc(b,p,r,!0):d.push(p),e[p]=q.wf.an())}})}else e[f]=new _.Dc("Retry request with unknown ID.")});a=a.map(function(f){f=e[f];return f instanceof _.di?f:_.ki(f)});_.Ia(d,this.ka,this);return a};_.g.log=function(){this.isDisposed()};_.g.ud=function(a){return this.jj[a]};var QAc=/^uploadTestFailMe(\.[1-9])?$/,PAc=new Map([[2,12],[5,1],[27,3],[29,4],[30,5],[31,6],[35,7],[36,8],[37,9],[38,10],[25,11]]),OAc=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");

_.TAc=function(a,b){return _.w(a,1,b)};_.UAc=function(a,b){return _.I(a,1,b)};_.VAc=function(a,b){return _.w(a,2,b)};_.WAc=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 XAc,YAc;XAc=[1];_.oL=function(a){_.J.call(this,a,-1,XAc)};_.K(_.oL,_.J);_.oL.prototype.O=function(){return _.fe(this,1)};_.pL=function(a){_.J.call(this,a,-1,YAc)};_.K(_.pL,_.J);_.pL.prototype.Bb=function(){return _.y(this,1)};_.pL.prototype.Dc=function(a){return _.w(this,1,a)};_.pL.prototype.Pi=function(){return _.Oj(this,_.hl,2)};_.ZAc=function(a,b){return _.Kj(a,2,b)};_.pL.prototype.Aq=function(a,b){return _.Xj(this,2,a,_.hl,b)};_.pL.prototype.dg=function(){return _.y(this,4)};
_.$Ac=function(a,b){return _.w(a,4,b)};YAc=[2];

_.u();

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

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

_.u();

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

var aBc;_.bBc=function(a){return _.Ie(a).Ng(_.Q(a.get(_.gp),19,!1)?aBc:_.Ge)};aBc=[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 cBc,dBc,eBc,fBc,gBc,iBc,jBc,kBc,lBc,mBc,oBc,pBc,qBc,rBc,sBc,uL,xBc,yBc,vL,wL,zBc,ABc,CBc,DBc,EBc,FBc,GBc,IBc,JBc,KBc,LBc,MBc,NBc,OBc,QBc,SBc,ZBc,aCc,dCc,eCc,hCc,kCc,AL,lCc,mCc,nCc,oCc,pCc,qCc,rCc,sCc,tCc,wCc,vCc,zCc,BCc,DCc,FCc,JCc,LCc,MCc,NCc,OCc,PCc,QCc,UCc,WCc,XCc,YCc,sL,ZCc,$Cc,uBc,tBc,vBc,wBc,wEc,EL,GL,CEc,NEc,QEc,REc,SEc,VEc,WEc,uCc,yFc,zFc,AFc,BFc,DFc,EFc,FFc,GFc,HL,HFc,IL,IFc,JFc,KFc,LFc,MFc,NFc,JL,OFc,PFc,QFc,RFc,SFc,TFc,KL,XFc,YFc,ZFc,$Fc,hBc,aGc,bGc,cGc,fGc,kHc,lHc,nHc,oHc,qHc,rHc,
sHc,tHc,wHc,yHc,IHc,RIc,VBc,SIc,TIc,UIc,XIc,dJc,eJc,sNc,tNc,BNc,LNc,UNc,bOc,hOc,oOc,qOc,vOc,BOc;cBc=function(a){a={Title:a.getTitle(),Type:a.getMimeType(),Parents:_.fe(a,3),Convert:_.P(a,8),ID:a.hj()};var b=[];_.La(a,function(c,d){c&&b.push(d+": "+c)});return b.join("; ")};
dBc=function(a){var b=[];b.push(cBc(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.Au&&b.push("# of retries by client: "+a.Au);var d="";a.DM?a.wf.kg()?a.wf.mg(function(){d="Completed successfully."},function(e){d=e instanceof _.ei?"Canceled.":"Completed with failure. See attachment."}):d="In progress.":d="Not yet executed.";b.push("State: "+
d);return b.join("\n")};
eBc=function(a,b,c,d,e,f){var h=_.Ft("Drive Upload Report: %d/%d failed",_.Pa(f),_.Pa(e));a=a.ig();d.push("Batch query interval: "+_.ak(a,12,10)+"ms");d.push("Max resumable upload chunk size: "+_.ak(a,32,1073741824)/1024/1024+" MiB");d.push("Max batch upload file size: "+_.ak(a,33,1048576)/1024/1024+" MiB");d.push("Max files in an upload batch: "+_.ak(a,35,10)+" files");d.push("Max files in a non-upload batch: "+_.ak(a,10,50)+" files");d=d.join("\n");var k=[],l=[];_.La(e,function(p){l.push(dBc(p))});k.push({name:"AllUploadRequests.txt",
content:l.join("\n---------\n")});k.push({name:"DataserviceLogs.txt",content:_.Wwc(b)});_.La(f,function(p,q){var r=k.push;q=e[q].request;q=_.Ft('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,SP:k,od:152391,W8:c,f0:361003}};fBc=function(a){return Array.prototype.concat.apply([],arguments)};gBc=function(a,b,c){c=_.Fa(a,b,c);return 0>c?(_.za(a,-(c+1),0,b),!0):!1};
iBc=function(a,b){var c=new _.oL,d=new Set;if(6===a){a=_.m(b);for(b=a.next();!b.done;b=a.next())(b=b.value)?(b=_.V7a.get(b.sv()))&&d.add(b):d.add(1);0===d.size&&d.add(0)}hBc(c,[].concat(_.Ad(d)));return c};
jBc=function(a){var b=[],c={};a=_.m(a);for(var d=a.next();!d.done;c={Hea:c.Hea},d=a.next())if(d=d.value){c.Hea=new Map;[].concat(_.Ad(_.jl(d)),[d.zm(),d.St(),d.Jq()]).forEach(function(p){return function(q){q&&p.Hea.set(sL(q),q)}}(c));for(var e=[],f=_.m(c.Hea.values()),h=f.next();!h.done;h=f.next())if(h=h.value){var k=h.getName(),l=h.getEmail();e.push(sL(h)+"-"+((k?k.length:k)+"-")+((l?l.length:l)+"-")+_.Tk(h))}b.push(d.getId()+","+d.sv()+","+(e.length?e.join(","):"-"))}return b.length?"People: "+
b.join("|"):""};kBc=function(a){var b=new _.Wo;b.append("kind,largestChangeId,nextPageToken,");b.append("items(deleted,fileId,id,kind,");b.append(_.sJ(a,!0,"file"));a.b7&&(b.append(",teamDriveId,teamDrive("),b.append(a.b7),b.append(")"));b.append(")");return b.toString()};lBc=function(a){var b=new _.Wo;b.append("kind,nextPageToken,items(");b.append(_.sJ(a,!0));b.append("),incompleteSearch");a.b7&&(b.append(","),b.append(a.b7));return b.toString()};
mBc=function(a,b){for(var c=0;c<b.length;c++){var d=a,e=b[c],f=d.getCapabilities(),h=_.B(d,_.sK,138),k=_.B(d,_.Zk,111),l=_.B(d,_.tK,27),p=_.ol(d),q=d.Gf(),r=d.jg(),v=_.B(d,_.vK,103);switch(e){case 227:_.pb(d,144);break;case 228:_.pb(d,145);break;case 74:_.Lj(d,83);break;case 188:_.pb(d,137);break;case 149:_.MI(d,128);break;case 148:_.Lj(d,127);break;case 138:_.pb(d,126);break;case 184:_.MI(d,135);break;case 76:f&&_.pb(f,1);break;case 223:f&&_.pb(f,54);break;case 208:f&&_.pb(f,48);break;case 185:f&&
_.pb(f,40);break;case 224:f&&_.pb(f,55);break;case 213:f&&_.pb(f,50);break;case 156:f&&_.pb(f,39);break;case 61:f&&_.pb(f,2);break;case 216:f&&_.pb(f,52);break;case 217:f&&_.pb(f,53);break;case 77:f&&_.pb(f,4);break;case 134:f&&_.pb(f,34);break;case 147:f&&_.pb(f,38);break;case 81:f&&_.pb(f,10);break;case 82:f&&_.pb(f,11);break;case 114:f&&_.pb(f,27);break;case 133:f&&_.pb(f,33);break;case 202:f&&_.pb(f,47);break;case 132:f&&_.pb(f,32);break;case 101:f&&_.pb(f,20);break;case 201:f&&_.pb(f,46);break;
case 131:f&&_.pb(f,31);break;case 200:f&&_.pb(f,45);break;case 130:f&&_.pb(f,30);break;case 93:f&&_.pb(f,17);break;case 191:f&&_.pb(f,44);break;case 146:f&&_.pb(f,37);break;case 90:f&&_.pb(f,16);break;case 78:f&&_.pb(f,7);break;case 186:f&&_.pb(f,41);break;case 222:f&&_.pb(f,51);break;case 85:f&&_.pb(f,12);break;case 137:f&&_.pb(f,36);break;case 209:f&&_.pb(f,49);break;case 79:f&&_.pb(f,8);break;case 189:f&&_.pb(f,42);break;case 190:f&&_.pb(f,43);break;case 80:f&&_.pb(f,9);break;case 135:f&&_.pb(f,
35);break;case 102:f&&_.pb(f,21);break;case 69:_.pb(d,74);break;case 194:h&&_.Jj(h,2);break;case 193:h&&_.pb(h,1);break;case 1004:_.pb(d,108);break;case 136:_.Lj(d,125);break;case 115:k&&_.pb(k,1);break;case 116:k&&_.pb(k,2);break;case 34:_.pb(d,30);f&&_.pb(f,3);break;case 9:_.pb(d,10);break;case 91:_.Jj(d,91);break;case 43:_.pb(d,42);_.pb(d,43);break;case 187:_.pb(d,136);break;case 26:_.pb(d,24);break;case 108:_.MI(d,104);break;case 41:_.pb(d,40);f&&_.pb(f,5);break;case 42:_.pb(d,41);break;case 1005:_.Lj(d,
117);break;case 59:f&&_.pb(f,6);break;case 28:_.pb(d,26);break;case 44:_.pb(d,45);break;case 13:_.pb(d,14);break;case 48:_.pb(d,36);break;case 38:_.pb(d,34);break;case 49:_.MI(d,50);break;case 51:_.pb(d,53);break;case 104:_.pb(d,102);break;case 39:_.pb(d,35);break;case 87:_.pb(d,76);break;case 100:_.pb(d,98);break;case 72:_.pb(d,78);break;case 5:_.pb(d,6);break;case 20:_.pb(d,21);break;case 21:break;case 29:l&&_.pb(l,1);break;case 31:l&&_.pb(l,3);break;case 92:l&&_.pb(l,4);break;case 30:l&&_.pb(l,
2);break;case 16:_.Jj(d,17);break;case 12:_.pb(d,13);break;case 211:p&&_.pb(p,2);break;case 212:p&&_.pb(p,3);break;case 220:p&&_.pb(p,5);break;case 157:r&&_.Lj(r,8);break;case 3:_.pb(d,4);break;case 11:_.pb(d,12);break;case 10:_.pb(d,11);break;case 50:_.pb(d,49);_.pb(d,51);_.Jj(d,81);break;case 18:_.pb(d,19);break;case 95:_.pb(d,93);break;case 58:_.pb(d,63);break;case 14:_.Lj(d,15);break;case 103:_.pb(d,101);break;case 1:_.MI(d,2);break;case 96:_.pb(d,94);break;case 1003:_.Lj(d,107);break;case 75:_.Jj(d,
85);break;case 94:_.pb(d,92);break;case 45:_.pb(d,46);break;case 124:_.pb(d,118);break;case 125:_.pb(d,119);break;case 1002:_.Jj(d,100);break;case 32:_.pb(d,28);break;case 67:_.pb(d,70);break;case 68:_.pb(d,71);break;case 73:_.pb(d,79);break;case 71:_.pb(d,77);break;case 221:r&&_.pb(r,9);break;case 210:_.pb(d,140);break;case 7:_.pb(d,8);break;case 122:_.Jj(d,109);break;case 66:_.pb(d,69);break;case 33:_.pb(d,29);break;case 24:_.pb(d,22);break;case 25:_.pb(d,23);break;case 46:_.Jj(d,47);break;case 192:q&&
_.pb(q,6);break;case 159:q&&_.Jj(q,5);break;case 154:q&&_.pb(q,1);break;case 158:q&&_.pb(q,4);break;case 155:q&&_.pb(q,3);break;case 52:_.MI(d,56);break;case 56:_.pb(d,61);break;case 55:_.Lj(d,60);break;case 4:_.pb(d,5);break;case 35:_.pb(d,31);break;case 57:_.pb(d,62);break;case 83:_.pb(d,72);break;case 84:_.Jj(d,86);break;case 19:_.pb(d,20);_.pb(d,44);_.pb(d,90);break;case 2:_.pb(d,3);break;case 6:_.pb(d,7);break;case 98:_.pb(d,96);break;case 97:_.Jj(d,95);break;case 27:_.pb(d,25);break;case 70:_.pb(d,
75);break;case 107:v&&_.pb(v,3);break;case 106:v&&_.pb(v,2);break;case 105:v&&_.pb(v,1);break;case 8:_.pb(d,9);break;case 126:_.MI(d,120);break;default:throw Error("Qc`"+e);}}};oBc=function(a,b){if(0!=a.length){var c=new Set([].concat(_.Ad(a),_.Ad(nBc)));a=[].concat(_.Ad(_.peb.keys())).filter(function(e){return!c.has(e)});for(var d=0;d<b.length;d++)mBc(b[d],a)}};
pBc=function(a,b){var c=a.getCapabilities()||new _.Xk,d=_.B(a,_.sK,138),e=_.B(a,_.Zk,111),f=_.B(a,_.tK,27),h=_.ol(a),k=a.Gf(),l=a.jg(),p=_.B(a,_.vK,103);switch(b){case 227:return null!=_.P(a,144);case 228:return null!=_.y(a,145);case 74:return 0<a.eu().length;case 188:return null!=_.P(a,137);case 149:return 0<_.fe(a,128).length;case 148:return 0<a.dza().length;case 138:return null!=a.f9();case 184:return 0<_.fe(a,135).length;case 76:return null!=_.Yk(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!=_.Ee(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,_.Avc,2);case 193:return null!=d&&null!=_.y(d,1);case 1004:return null!=_.P(a,108);case 136:return 0<a.V0().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.WC();
case 91:return null!=a.Jq();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<_.fe(a,104).length;case 41:return null!=_.P(c,5);case 42:return null!=_.y(a,41);case 1005:return 0<_.nl(a).length;case 59:return null!=_.P(c,6);case 28:return null!=a.HI();case 44:return null!=_.y(a,45);case 13:return null!=a.WL();case 48:return null!=_.P(a,36);case 38:return null!=a.Zi();case 49:return 0<_.fe(a,50).length;case 51:return null!=_.P(a,
53);case 104:return null!=_.P(a,102);case 39:return null!=a.Uja();case 87:return null!=_.kl(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.zm();case 12:return null!=a.qz();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||!_.Oj(l,_.fl,8));case 3:return null!=a.getMimeType();case 11:return null!=a.uB();case 10:return null!=a.zq();case 50:return null!=_.P(a,49)||null!=_.P(a,51)||null!=a.Sm();case 18:return null!=a.Lp();case 14:return 0<_.jl(a).length;case 95:return null!=a.hm();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<_.ml(a).length;case 75:return null!=
a.Zv();case 94:return null!=a.cN();case 45:return null!=a.Cw();case 124:return null!=_.P(a,118);case 125:return null!=_.y(a,119);case 1002:return null!=_.ll(a);case 32:return null!=a.Su();case 67:return null!=a.UJ();case 68:return null!=_.y(a,71);case 73:return null!=_.y(a,79);case 71:return null!=a.z1();case 221:return null!=l&&null!=_.P(l,9);case 210:return null!=_.pl(a);case 7:return null!=a.O6();case 122:return null!=_.tL(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.Ay();case 46:return null!=a.St();case 192:return null!=k&&null!=_.P(k,6);case 159:return null!=k&&null!=_.ke(k);case 154:return null!=k&&null!=_.y(k,1);case 158:return null!=k&&null!=_.me(k);case 155:return null!=k&&null!=_.y(k,3);case 52:return 0<_.fe(a,56).length;case 55:return 0<a.BB().length;case 56:return null!=_.y(a,61);case 4:return null!=a.eB();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,
_.uK,86);case 2:return null!=a.getTitle();case 19:return null!=a.Yx()||null!=_.P(a,44)||null!=_.y(a,90);case 6:return null!=a.Xh();case 98:return null!=a.$v();case 97:return null!=a.jD();case 27:return null!=a.Yo();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<_.fe(a,120).length;default:throw Error("Rc`"+b);}};
qBc=function(a,b){return b.every(function(c){return pBc(a,c)})};rBc=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)})};sBc=function(a,b){var c=new Set(b.concat(_.puc));return a.filter(function(d){return!c.has(d)})};
uL=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(pBc(b,l))if(_.teb.has(l)){if(f){var p=a.getCapabilities()||new _.Xk;_.xK(a,p);switch(l){case 76:_.evc(p,_.Yk(f));break;case 223:var q=_.P(f,54);_.w(p,54,q);break;case 208:_.zvc(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:_.fvc(p,_.P(f,4));break;case 134:var L=_.P(f,34);_.w(p,34,L);break;case 147:var N=_.P(f,38);_.w(p,38,N);break;case 81:_.lvc(p,_.P(f,10));break;case 82:_.mvc(p,_.P(f,11));break;case 114:var S=_.P(f,27);_.w(p,27,S);break;case 133:_.uvc(p,_.P(f,33));break;case 202:_.yvc(p,_.P(f,47));_.tvc(p,_.P(f,32));break;case 132:_.tvc(p,_.P(f,32));break;case 101:_.qvc(p,_.P(f,20));break;case 201:_.xvc(p,
_.P(f,46));break;case 131:_.svc(p,_.P(f,31));break;case 200:var U=_.P(f,45);_.w(p,45,U);break;case 130:var ha=_.P(f,30);_.w(p,30,ha);break;case 93:_.pvc(p,_.P(f,17));break;case 191:var Y=_.P(f,44);_.w(p,44,Y);break;case 146:var oa=_.P(f,37);_.w(p,37,oa);break;case 90:_.ovc(p,_.Ee(f));break;case 78:_.ivc(p,_.P(f,7));break;case 186:var qa=_.P(f,41);_.w(p,41,qa);break;case 222:var Aa=_.P(f,51);_.w(p,51,Aa);break;case 85:_.nvc(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:_.jvc(p,_.P(f,8));break;case 189:_.vvc(p,_.P(f,42));break;case 190:_.wvc(p,_.P(f,43));break;case 80:_.kvc(p,_.P(f,9));break;case 135:var Xa=_.P(f,35);_.w(p,35,Xa);break;case 102:_.rvc(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);_.gvc(p,_.P(f,5));break;case 59:_.hvc(p,_.P(f,6))}}}else if(_.ueb.has(l)){var td=_.B(b,_.sK,138);if(td){var Xd=_.B(a,_.sK,138)||new _.sK;_.I(a,138,Xd);
switch(l){case 194:var Jd=_.B(td,_.Avc,2);_.I(Xd,2,Jd);break;case 193:var qf=_.y(td,1);_.w(Xd,1,qf)}}}else if(_.veb.has(l)){var ud=_.B(b,_.Zk,111);if(ud){var Cb=_.B(a,_.Zk,111)||new _.Zk;_.I(a,111,Cb);switch(l){case 115:_.Bvc(Cb,_.P(ud,1));break;case 116:_.Cvc(Cb,_.y(ud,2))}}}else if(_.web.has(l)){var ne=_.B(b,_.tK,27);if(ne){var Xg=_.B(a,_.tK,27)||new _.tK;_.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(_.xeb.has(l)){var Wi=_.ol(b);if(Wi){var vf=_.ol(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(_.yeb.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=_.ke(Yd);_.I(Yg,5,yi);break;case 154:var $k=_.y(Yd,1);_.w(Yg,1,$k);break;case 158:var Wn=_.me(Yd);
_.w(Yg,4,Wn);break;case 155:var Am=_.y(Yd,3);_.w(Yg,3,Am)}}}else if(_.zeb.has(l)){var Dh=b.jg();switch(l){case 157:if(Dh){var al=a.jg()||new _.Zna;tBc(a,al);uBc(al,_.Oj(Dh,_.fl,8))}break;case 221:if(Dh){var jk=a.jg()||new _.Zna;tBc(a,jk);var Zg=_.P(Dh,9);_.w(jk,9,Zg)}}}else if(_.Aeb.has(l)){var Pj=_.B(b,_.vK,103);if(Pj){var sj=_.B(a,_.vK,103)||new _.vK;_.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.eu();_.Kj(a,83,Rj);break;case 188:var tj=_.P(b,137);_.w(a,137,tj);break;case 149:var lk=_.fe(b,128);_.Ij(a,128,lk);break;case 148:var bi=b.dza();_.Kj(a,127,bi);break;case 138:var Bm=b.f9();_.w(a,126,Bm);break;case 184:var Sj=_.fe(b,135);_.Ij(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.V0();_.Kj(a,125,Tj);break;case 9:var wn=
b.WC();_.w(a,10,wn);break;case 91:_.Tvc(a,b.Jq());break;case 43:var bl=_.y(b,42);_.w(a,42,bl);var cl=_.y(b,43);_.w(a,43,cl);break;case 187:_.Xvc(a,b.Bj());break;case 26:a.Yl(b.Cf());break;case 108:var Af=_.fe(b,104);_.Ij(a,104,Af);break;case 42:var Uj=_.y(b,41);_.w(a,41,Uj);break;case 1005:var em=_.nl(b);_.Kj(a,117,em);break;case 28:_.Lvc(a,b.HI());break;case 44:var Dl=_.y(b,45);_.w(a,45,Dl);break;case 13:var fm=b.WL();_.w(a,14,fm);break;case 48:var qc=_.P(b,36);_.w(a,36,qc);break;case 38:_.Nvc(a,
b.Zi());break;case 49:var Vj=_.fe(b,50);_.Ij(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.Uja();_.w(a,35,Ph);break;case 87:var mi=_.kl(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:_.Jvc(a,b.zm());break;case 12:var Eh=b.qz();_.w(a,13,Eh);
break;case 3:_.IG(a,b.getMimeType());break;case 11:var xn=b.uB();_.w(a,12,xn);break;case 10:_.M8b(a,b.zq());break;case 50:var uj=_.P(b,49);_.w(a,49,uj);var yn=_.P(b,51);_.w(a,51,yn);var gm=b.Sm();_.I(a,81,gm);break;case 95:_.Vvc(a,b.hm());break;case 18:_.Kvc(a,b.Lp());break;case 58:var Gk=_.P(b,63);_.w(a,63,Gk);break;case 14:_.Ivc(a,_.jl(b));break;case 1:_.wK(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:vBc(a,_.ml(b));break;case 75:_.Svc(a,
b.Zv());break;case 94:_.Uvc(a,b.cN());break;case 45:var Ip=b.Cw();_.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=_.ll(b).clone();(null===(d=_.ll(a))||void 0===d?0:_.P(d,3))&&_.w(lm,3,!0);(null===(e=_.ll(a))||void 0===e?0:_.P(e,4))&&_.w(lm,4,!0);_.I(a,100,lm);break;case 32:var tk=b.Su();_.w(a,28,tk);break;case 67:var dp=b.UJ();_.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.z1();_.w(a,77,Nr);break;case 210:var ku=_.pl(b);_.w(a,140,ku);break;case 7:_.Hvc(a,b.O6());break;case 122:wBc(a,_.tL(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.Ay();_.w(a,23,rB);break;case 46:_.Pvc(a,b.St());break;case 52:var Py=_.fe(b,56);_.Ij(a,56,Py);break;case 56:var lu=_.y(b,61);_.w(a,61,lu);break;case 55:a.IA(b.BB());break;case 4:a.Kv(b.eB());break;case 35:_.Mvc(a,
_.P(b,31));break;case 57:var Lq=_.y(b,62);_.w(a,62,Lq);break;case 83:_.Rvc(a,b.yc());break;case 84:var Mq=_.B(b,_.uK,86);_.I(a,86,Mq);break;case 98:a.Nca(b.$v());break;case 97:_.Wvc(a,b.jD());break;case 19:var sB=b.Yx();_.w(a,20,sB);_.Ovc(a,_.P(b,44));var ND=_.y(b,90);_.w(a,90,ND);break;case 2:a.setTitle(b.getTitle());break;case 6:a.Nn(b.Xh());break;case 27:_.N8b(a,b.Yo());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=_.fe(b,120);_.Ij(a,120,
qx);break;default:throw Error("Sc`"+l);}}};xBc=function(a,b){var c=_.Gz[a];return b.filter(function(d){return!c||!c.has(d)})};yBc=function(a,b,c){a=xBc(c,a);return rBc(b,a,_.puc)};vL=function(a){return a?"application/vnd.google-apps.shortcut"===a.getMimeType():!1};wL=function(a,b){b=void 0===b?!1:b;if(!a)return!1;var c=a.getMimeType();return b&&vL(a)?(a=a.Gf(),!!a&&"application/vnd.google-apps.folder"===_.y(a,3)):"application/vnd.google-apps.folder"===c};
zBc=function(a){var b=a&&a.getId()||null;a&&vL(a)&&(a=(a=a.Gf())&&_.y(a,1))&&(b=a);return b};ABc=function(a){return!!_.P(a,31)&&!_.P(a,94)};CBc=function(a){return BBc.some(function(b){return pBc(a,b)})};DBc=function(a){return a.filter(function(b){return b}).some(function(b){return[4,5,2].includes(b.sv())})};EBc=function(a){return DBc(a.filter(function(b){return b}).map(function(b){return b.getItem()}))};
FBc=function(a,b){var c={};a=_.Ma(a,function(d){return!!d});b=_.Ma(b,function(d){return!!d});_.La(a,function(d,e){var f=b[e];f?_.Zj(d,f)||(d=_.rEa(4).setItem(f),c[e]=d):(d=_.rEa(2).setItem(d),c[e]=d)});_.La(b,function(d,e){a[e]||(d=_.rEa(1).setItem(d),c[e]=d)});return c};GBc=function(a,b){return _.Pa(a)!==_.Pa(b)||!_.Ta(FBc(a,b))};_.HBc=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};
IBc=function(a,b){var c=_.guc(b||{}),d=new Map;a.forEach(function(e){d.set(e,c[e]||null)});return d};JBc=function(a,b){return 0<=b?!a||a<=b:!0};KBc=function(a,b){var c=a.Sm();c||(c=new _.Tna,b&&_.I(a,81,c));return c};LBc=function(a){if(wL(a))_.rL(KBc(a,!0),!0);else if(wL(a,!0)){var b=a.Gf();if(b=b&&_.ke(b))_.rL(KBc(b,!0),!0),_.rL(KBc(a,!0),!0)}};MBc=function(a){return!!a.Sm()&&!wL(a)};
NBc=function(a){var b=[];_.Ia(a,function(c){if(3!=c.sv()){var d=c;if(null!=_.P(d,49)||null!=_.P(d,51)||null!=d.Sm())c=c.clone(),_.pb(c,49),_.pb(c,51),_.Jj(c,81);b.push(c)}});return b};OBc=function(a,b){if(b){var c=[];_.P(b,3)&&c.push("folder");var d=_.Fqc()&&4===b.getType()?"title_natural":_.ktc[b.getType()];b=_.mtc[b.nf()];d&&(b&&(d+=" "+b),c.push(d));c.length&&(a.orderBy=c.join(","))}};
QBc=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 _.RK?a[b]=c.Lc(function(d){return d?d.Lc():null}):c&&c instanceof PBc&&(a[b]=c.Lc())}};SBc=function(a){var b=a.slice(0),c=new Set(b);RBc.forEach(function(d){c.has(d)||b.push(d)});b.sort();return b};
ZBc=function(a,b,c){var d=_.B(a,TBc,66);if(d){var e=_.y(d,1),f=_.DK(a);a=_.fJ(_.II(a));e=new _.kj(e);var h=new _.kj(window.location);var k=h.O+"://"+h.H;null!=h.W&&(k+=":"+h.W);h=_.Bj(k,3);_.rj(e,"co",h);h=e.Ke();!f&&0<a&&(h+="u/"+a+"/");e.Li(h+"_/dataservice/cacheproxy");f=_.y(d,5)||"";if(_.xqc(window.location.href,e.toString())&&f)return e=SBc(c),c=_.y(d,6),b="#"+b+"_",d=new _.xI,d.update(e.join(",")),b+=_.msc(d.digest()),c&&(b+="&jobset="+c),b=_.Oy(f+"?"+b),_.n.SharedWorker?(c=new SharedWorker(_.Jba(b),
void 0),b=new UBc(c.port),c.port.start()):b=new UBc(new Worker(_.Jba(b),void 0)),new VBc(new WBc(b,!0),1,f,e);c=e.toString();b="cpiframe_"+_.PI();c=_.vh("IFRAME",{name:b,id:b,src:c});c.style.cssText=_.Mha(_.Ttc(_.dg("display: none;")));document.body.appendChild(c);c=_.qsc(e.O,void 0,e.H,e.W).toString();return new VBc(new WBc(XBc(window.frames[b],c),!0),0,e.toString())}b=new YBc;return new VBc(new WBc(b.O,!1),2,"inline",c,new WBc(b.H,!1))};
aCc=function(a){var b=new $Bc;if(a instanceof _.tJ)_.Wj(b,16,xL,a);else if(a instanceof _.uJ)_.Wj(b,1,xL,a);else if(a instanceof _.vJ)_.Wj(b,2,xL,a);else if(a instanceof _.yL)_.Wj(b,17,xL,a);else if(a instanceof _.yJ)_.Wj(b,3,xL,a);else if(a instanceof _.aL)_.Wj(b,4,xL,a);else if(a instanceof _.wJ)_.Wj(b,5,xL,a);else if(a instanceof _.CJ)_.Wj(b,6,xL,a);else if(a instanceof _.EJ)_.Wj(b,7,xL,a);else if(a instanceof _.FJ)_.Wj(b,8,xL,a);else if(a instanceof _.IJ)_.Wj(b,9,xL,a);else if(a instanceof _.VJ)_.Wj(b,
18,xL,a);else if(a instanceof _.ZJ)_.Wj(b,10,xL,a);else if(a instanceof _.$J)_.Wj(b,11,xL,a);else if(a instanceof _.aK)_.Wj(b,12,xL,a);else if(a instanceof _.gJ)_.Wj(b,13,xL,a);else if(a instanceof _.fK)_.Wj(b,14,xL,a);else if(a instanceof _.gK)_.Wj(b,15,xL,a);else throw new _.Dc("Unsupported request type");return b};
dCc=function(a){a=a.map(function(c){var d=new bCc;if(c instanceof _.tJ)_.Wj(d,6,zL,c);else if(c instanceof _.yL)_.Wj(d,7,zL,c);else if(c instanceof _.CJ)_.Wj(d,1,zL,c);else if(c instanceof _.ZJ)_.Wj(d,2,zL,c);else if(c instanceof _.$J)_.Wj(d,3,zL,c);else if(c instanceof _.gJ)_.Wj(d,4,zL,c);else if(c instanceof _.gK)_.Wj(d,5,zL,c);else throw new _.Dc("Unsupported request type");return d});var b=new cCc;_.Kj(b,1,a);return b};
eCc=function(a){return _.Oj(a,bCc,1).map(function(b){return _.dk(b,_.tJ,6,zL)||_.dk(b,_.CJ,1,zL)||_.dk(b,_.ZJ,2,zL)||_.dk(b,_.$J,3,zL)||_.dk(b,_.gJ,4,zL)||_.dk(b,_.gK,5,zL)||_.dk(b,_.yL,7,zL)})};hCc=function(a){var b=new fCc;if(a instanceof _.VD)_.Wj(b,1,gCc,a);else if(a instanceof _.WD)_.Wj(b,2,gCc,a);else throw new _.Dc("Unsupported request type");return b};
kCc=function(a){var b=new iCc;if(a instanceof _.zJ)_.Wj(b,1,jCc,a);else if(a instanceof _.GJ)_.Wj(b,2,jCc,a);else if(a instanceof _.hK)_.Wj(b,3,jCc,a);else throw new _.Dc("Unsupported request type");return b};AL=function(a,b,c){return b?new c(JSON.parse(a)):a};lCc=function(a){a={t:a.title,d:a.description,c:a.od,fi:a.W8,dti:a.f0,a:a.SP?a.SP.map(function(b){return JSON.stringify({n:b.name,c:b.content,ct:b.contentType,ec:b.E8})}):void 0};return JSON.stringify(a)};
mCc=function(a){a=JSON.parse(a);return{title:a.t,description:a.d,od:a.c,W8:a.fi,f0:a.dti,SP:a.a?a.a.map(function(b){b=JSON.parse(b);return{name:b.n,content:b.c,contentType:b.ct,E8:b.ec}}):void 0}};nCc=function(a,b,c){a=a?1:2;a=_.od(_.nd(new _.md,12),a);var d=(new _.nf).Nn(!0);d=_.w(d,17,!0);a=_.of(d,a);c&&_.Ol(a,c);c=new _.htc;b&&_.TAc(c,b);return _.UAc(_.WAc(new _.YI,a),c)};oCc=function(a){return a.map(function(b){return b.getItem()})};
pCc=function(a){var b={};a.forEach(function(c){b[c.getId()]=c.getItem()});return b};qCc=function(a,b){var c=new _.kj(_.D(b,16,"")+"/open"),d=a.getId();vL(a)&&(d=zBc(a));_.rj(c,"id",d);_.rj(c,"authuser",_.fJ(_.II(b)));_.Q(b,89,!1)&&_.Cj(a,140)&&_.rj(c,"resourcekey",_.pl(a));return c.toString()};rCc=function(a){return String.fromCharCode(10>a?48+a:87+a)};sCc=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]=rCc(d>>4);b[2*c+3]=rCc(d&15)}return b.join("")};
tCc=function(a){_.Xf("drive.DebugUtil.printFindById",function(c){a.IM(c).then(function(d){window.console.log(JSON.stringify(d))})});_.Xf("drive.DebugUtil.getLogs",function(){return _.Wwc(a.Rf())});_.Xf("drive.DebugUtil.printLogs",function(){window.console.log(_.Wwc(a.Rf()))});_.Xf("drive.DebugUtil.printRequestHistory",function(){a.YQ().then(function(c){c.forEach(function(d){window.console.log(_.y(d,1));window.console.log(_.y(d,2))})})});_.Xf("drive.DebugUtil.getState",function(){return a.getState()});
var b=a.La();b&&_.Q(b,1,!1)&&(_.Xf("drive.DebugUtil.getContext",function(){return a.getContext()}),_.Xf("drive.DebugUtil.setOffline",function(c){return void a.Pl(c)}))};wCc=function(a,b){b.info("drive.ds.sync.api.Dump","Requesting dump stats.");b=new _.Cf;_.Df(b,305);_.Ef(b,!0);_.w(b,3,2);var c=new _.TD;_.I(c,1,b);uCc(c,[7]);a=a.then(function(d){return d.Qe(c)}).then(vCc);return _.ji(a)};
vCc=function(a){a=_.Oj(a,_.op,3);var b=new xCc;a.forEach(function(c){var d=c.getKey();"corpusSize"===(d&&_.y(d,2))&&(c=_.$g(c.Za()),_.w(b,3,c))});return"number"===typeof _.y(b,3)?b:null};zCc=function(a,b){var c=yCc(a.wm,b.Ac());if(c){var d=c.getItem(),e=d.Zv();if(e){var f=e.bR(),h=_.ua(f,function(k){return k.getId()===_.y(b,2)});_.Evc(e,f);h||(f=_.Oj(e,_.Rk,3),_.ua(f,function(k){return k.getId()===_.y(b,2)}),_.Fvc(e,f));_.Dvc(e,(_.y(e,1)||1)-1);a.zl([d],c.V)}}};
BCc=function(a,b,c){if(b=yCc(a.wm,b.Ac())){var d=b.getItem(),e=d.Zv();if(e){if(1===c.getType()||2===c.getType()){var f=_.Oj(e,_.Rk,3);f.push(c);_.Ga(f,ACc);_.Fvc(e,f)}else f=e.bR(),f.push(c),_.Ga(f,ACc),_.Evc(e,f);_.Dvc(e,(_.y(e,1)||0)+1);a.zl([d],b.V)}}};DCc=function(a){return a.map(function(b){var c=new _.dLb;var d=b.serviceName?CCc.get(b.serviceName):void 0;c=_.w(c,3,d);return _.w(c,2,Number(b.bytesUsed))})};
FCc=function(a){return(a.quotaBytesByService||[]).reduce(function(b,c){return c.serviceName&&ECc.has(c.serviceName)?b+Number(c.bytesUsed):b},0)};
JCc=function(a){var b=a.json.exportJob,c=GCc[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=_.lf(b.archives||[],function(l){f=f+Number(l.sizeOfContents)||0;h=h+Number(l.compressedSize)||0;return l.storagePath});b=_.lf(b.failedItemInfos||[],function(l){var p=_.IG((new _.hl).Ob(l.docId).setTitle(l.title),l.mediaType);p=(new _.HCc).setItem(p);p=_.w(p,3,l.relativePath);return _.w(p,4,l.cause)});return new ICc(c,d,k,f,h,e,a,b)};
LCc=function(a){var b={},c=a.getKey(),d=c&&_.y(c,2);b.key=d;b.value=a.Za();(a=c&&_.pp(c))&&(b.namespace=KCc[a]);return b};MCc=function(a){for(var b=[],c=0;c<a.length;c++)b.push(KCc[a[c]]);return b};NCc=function(a){return"kind,defaultAppIds,items("+a+")"};OCc=function(a,b){return _.Q(b,93,!1)?a+",adminSecureLinkSetting":a};PCc=function(a,b){var c;return(null===(c=_.pK(b))||void 0===c?0:_.Q(c,16,!1))?a+",individualQuotaBytesTotal,individualQuotaBytesUsedAggregate":a};
QCc=function(){var a=!(!_.n.IDBObjectStore||!_.n.IDBObjectStore.prototype.getAll);return!!(_.n.indexedDB||_.n.mozIndexedDB||_.n.webkitIndexedDB||_.n.moz_indexedDB)&&a};
UCc=function(a,b){var c,d,e;b=b.clone();if((null===(c=_.pK(b))||void 0===c?0:_.Q(c,18,!1))||(null===(d=_.pK(b))||void 0===d?0:_.Q(d,17,!1)))null===(e=_.pK(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=_.pK(f),l=!!k&&_.Q(k,10,!1);if(_.uI(_.II(f))||!h&&!l)_.w(f,61,!1),_.Jj(f,66),k&&_.w(k,10,!1),f=!1;else{if(h){_.n.SharedWorker||(h=!1);var p=_.B(f,TBc,66);p&&_.y(p,1)||(h=!1);_.DK(f)&&!_.Q(f,52,!1)&&(h=!1)}h?k&&_.w(k,10,!1):(_.w(f,61,!1),_.Jj(f,66));
f=h||l}if(f)return f=_.Q(b,61,!1)?3:5,a=new BL(a,b,f),new RCc(a);f=_.uI(_.II(b))?2:1;a=new CL(a,b,f,void 0,void 0,void 0);return _.uI(_.II(b))?new SCc(a):new TCc(a)};WCc=function(a){return _.Ie(a).Ng(_.Q(a.get(_.gp),19,!1)?VCc:_.HVa)};XCc=function(a,b){a.push(b>>>0&255);a.push(b>>>8&255);a.push(b>>>16&255);a.push(b>>>24&255)};YCc=function(a,b){return _.Kj(a,1,b)};sL=function(a){return _.y(a,11)};ZCc=[1];$Cc=function(a){_.J.call(this,a,-1,ZCc)};_.K($Cc,_.J);
$Cc.prototype.aha=function(a){_.Xj(this,1,a,_.Rk,void 0)};var aDc=function(a){var b=new $Cc;return _.Kj(b,1,a)},bDc=function(a,b){return _.I(a,1,b)},cDc=function(a,b){_.Kj(a,2,b)},dDc=function(a,b){_.I(a,6,b)},eDc=function(a,b){_.I(a,7,b)},fDc=function(a,b){return _.Wj(a,3,_.Vk,b)},gDc=function(a){_.J.call(this,a)};_.K(gDc,_.J);var hDc=function(a){_.J.call(this,a)};_.K(hDc,_.J);var iDc=function(a){_.J.call(this,a)};_.K(iDc,_.J);var 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,b){_.Kj(a,1,b)},vDc=function(a,b){return _.w(a,2,b)},wDc=function(a,b){return _.I(a,3,b)},xDc=function(a,b){return _.w(a,4,b)},yDc=function(a){_.J.call(this,a)};_.K(yDc,_.J);var zDc=function(a,b){_.Kj(a,1,b)},ADc=function(a,b){return _.I(a,2,b)},BDc=function(a){_.J.call(this,a)};_.K(BDc,_.J);
var CDc=function(a,b){_.Kj(a,1,b)},DDc=function(a,b){return _.I(a,4,b)},EDc=function(a,b){_.I(a,5,b)},FDc=function(a,b){_.Kj(a,2,b)},GDc=function(a,b){_.w(a,3,b)},HDc=function(a,b){_.Kj(a,4,b)},IDc=function(a,b){return _.I(a,5,b)},JDc=function(a){_.J.call(this,a)};_.K(JDc,_.J);var KDc=function(a,b){_.Kj(a,1,b)},LDc=function(a,b){return _.I(a,2,b)},MDc=function(a){_.J.call(this,a)};_.K(MDc,_.J);
var NDc=function(a,b){_.Kj(a,2,b)},ODc=function(a){var b=new _.Kna;return _.Kj(b,3,a)},PDc=[1,2],QDc=function(a){_.J.call(this,a)};_.K(QDc,_.J);QDc.prototype.Cg=function(a){return _.Wj(this,1,PDc,a)};var RDc=[1],SDc=function(a){_.J.call(this,a,-1,RDc)};_.K(SDc,_.J);SDc.prototype.Pp=function(){return _.y(this,2)};var TDc=function(a,b){_.Kj(a,1,b)},UDc=function(a,b){return _.w(a,2,b)},VDc=function(a,b){return _.I(a,3,b)},WDc=function(a){_.J.call(this,a)};_.K(WDc,_.J);
var XDc=[2],YDc=function(a){_.J.call(this,a,-1,XDc)};_.K(YDc,_.J);var ZDc=function(a,b){_.Kj(a,2,b)},$Dc=function(a,b){return _.I(a,3,b)},aEc=[1],bEc=function(a){_.J.call(this,a)};_.K(bEc,_.J);bEc.prototype.Cg=function(a){return _.Wj(this,1,aEc,a)};var cEc=function(a,b){_.Kj(a,1,b)},dEc=function(a,b){return _.Kj(a,2,b)},eEc=function(a){_.J.call(this,a)};_.K(eEc,_.J);var fEc=function(a,b){_.Kj(a,1,b)},gEc=function(a,b){return _.I(a,2,b)},hEc=function(a){_.J.call(this,a)};_.K(hEc,_.J);
var iEc=[1,2,3,4],jEc=[1],kEc=[1,2],lEc=[1],mEc=[1],nEc=[1,2],oEc=[1],pEc=function(a,b){return _.I(a,1,b)},qEc=function(a,b){return _.w(a,2,b)},rEc=function(a,b){return _.w(a,3,b)},sEc=function(a,b){return _.w(a,4,b)},tEc=function(a,b){return _.w(a,5,b)},uEc=function(a,b){return _.w(a,6,b)},vEc=function(a){_.J.call(this,a)};_.K(vEc,_.J);uBc=function(a,b){_.Kj(a,8,b)};tBc=function(a,b){return _.I(a,73,b)};vBc=function(a,b){_.Kj(a,107,b)};_.tL=function(a){return _.B(a,vEc,109)};
wBc=function(a,b){_.I(a,109,b)};wEc=function(a){_.J.call(this,a)};_.K(wEc,_.J);var xEc=function(a){_.J.call(this,a)};_.K(xEc,_.J);var yEc=function(a){var b=new _.vk;_.Ak(b,1,_.y(a,1));_.Ak(b,2,_.y(a,2));return _.xk(b)},zEc=function(a){_.J.call(this,a)};_.K(zEc,_.J);var TBc=function(a){_.J.call(this,a)};_.K(TBc,_.J);var AEc=[11],BEc=function(a){_.J.call(this,a,-1,AEc)};_.K(BEc,_.J);var DL=function(a){_.J.call(this,a)};_.K(DL,_.J);DL.prototype.getKey=function(){return _.y(this,2)};
DL.prototype.gt=function(){return _.Cj(this,2)};EL=function(a){return _.D(a,4,"en")};_.FL=function(a){return _.B(a,BEc,34,1)};GL=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};CEc=function(a,b){return _.w(a,5,b)};_.DEc=function(a,b){return _.w(a,2,b)};_.EEc=function(a,b){return _.w(a,3,b)};_.FEc=function(a,b){return _.w(a,1,b)};_.GEc=function(a,b){return _.w(a,2,b)};_.HEc=function(a,b){return _.Kj(a,5,b)};
_.IEc=function(a,b){return _.w(a,6,b)};_.JEc=function(a,b){return _.w(a,7,b)};_.KEc=function(a,b){return _.w(a,8,b)};_.LEc=function(a,b){return _.w(a,10,b)};_.MEc=function(a,b){return _.w(a,15,b)};NEc=[2];_.OEc=function(a){_.J.call(this,a,-1,NEc)};_.K(_.OEc,_.J);_.OEc.prototype.Sh=function(){return _.y(this,1)};_.PEc=function(a,b){return _.I(a,1,b)};QEc=function(a,b){return _.w(a,2,b)};REc=function(a,b){return _.w(a,3,b)};SEc=function(a,b){_.Kj(a,4,b)};_.TEc=function(a,b){_.I(a,8,b)};
_.UEc=function(a,b){_.I(a,9,b)};VEc=function(a,b){_.w(a,10,b)};WEc=function(a){_.J.call(this,a)};_.K(WEc,_.J);WEc.prototype.Za=function(){return _.Gj(this,1)};WEc.prototype.Jb=function(a){return _.qb(this,1,a,0)};uCc=function(a,b){_.Ij(a,3,b)};_.XEc=function(a){_.J.call(this,a)};_.K(_.XEc,_.J);_.XEc.prototype.getId=function(){return _.y(this,1)};_.XEc.prototype.Ob=function(a){return _.w(this,1,a)};_.XEc.prototype.Ee=function(){return _.y(this,4)};_.XEc.prototype.zh=function(a){return _.w(this,4,a)};
_.aL=function(a){_.J.call(this,a)};_.K(_.aL,_.J);_.aL.prototype.getTitle=function(){return _.y(this,1)};_.aL.prototype.setTitle=function(a){return _.w(this,1,a)};_.aL.prototype.te=function(){return _.B(this,_.Cf,2)};
var YEc=function(a,b){return _.Ij(a,9,b)},ZEc=function(a,b){return _.Ij(a,10,b)},$Ec=function(a,b){return _.w(a,36,b)},aFc=function(a,b){return _.Kj(a,38,b)},bFc=function(a,b){return _.w(a,2,b)},cFc=function(a,b){return _.I(a,3,b)},dFc=function(){var a=new _.aJ;return _.w(a,5,!0)},eFc=function(a){_.J.call(this,a)};_.K(eFc,_.J);var fFc=function(a){_.J.call(this,a)};_.K(fFc,_.J);var gFc=function(a){_.J.call(this,a)};_.K(gFc,_.J);var 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);jFc.prototype.By=function(){return _.P(this,1)};jFc.prototype.Yn=function(){return _.y(this,5)};jFc.prototype.Rm=function(){return _.y(this,6)};jFc.prototype.At=function(a){return _.w(this,6,a)};var kFc=function(a,b){return _.w(a,1,b)},lFc=function(a,b){return _.w(a,3,b)},mFc=function(a,b){return _.w(a,4,b)},nFc=function(a,b){_.w(a,7,b)},oFc=function(a){_.J.call(this,a)};_.K(oFc,_.J);
oFc.prototype.By=function(){return _.P(this,2)};var pFc=function(a,b){_.w(a,1,b)},qFc=function(a){_.J.call(this,a)};_.K(qFc,_.J);qFc.prototype.Rm=function(){return _.y(this,3)};qFc.prototype.At=function(a){return _.w(this,3,a)};qFc.prototype.Yn=function(){return _.y(this,4)};var rFc=function(a){_.J.call(this,a)};_.K(rFc,_.J);var sFc=function(a){_.J.call(this,a)};_.K(sFc,_.J);
var tFc=function(a,b){return _.w(a,1,b)},uFc=function(a,b){return _.w(a,2,b)},vFc=function(a,b){_.w(a,3,b)},wFc=[1,3,5],xFc=function(a){_.J.call(this,a,-1,wFc)};_.K(xFc,_.J);xFc.prototype.OE=function(){return _.fe(this,1)};xFc.prototype.By=function(){return _.P(this,2)};xFc.prototype.Yn=function(){return _.y(this,7)};yFc=function(a,b){_.w(a,2,b)};zFc=function(a,b){_.Mj(a,5,b,void 0)};AFc=function(a,b){_.w(a,6,b)};BFc=function(a,b){_.w(a,7,b)};_.CFc=function(a,b){_.I(a,2,b)};
DFc=function(a,b,c){_.HK(a,b,c,"warning")};EFc=function(a){return[].concat(_.Ad(a.O))};FFc=function(a){return a.H.concat([].concat(_.Ad(a.O)))};GFc=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(_.Ad(c))};HL=function(a){var b=_.PK(a).ud();b||(b=new _.twc,a=_.PK(a),_.I(a,1,b));return b};HFc=function(a){var b=_.B(_.PK(a),xFc,3);b||(b=new xFc,a=_.PK(a),_.I(a,3,b));return b};
IL=function(a){var b=_.B(_.PK(a),jFc,16);b||(b=new jFc,a=_.PK(a),_.I(a,16,b));return b};IFc=function(a){var b=_.B(_.PK(a),gFc,7);b||(b=new gFc,a=_.PK(a),_.I(a,7,b));return b};JFc=function(a){var b=_.B(_.PK(a),iFc,12);b||(b=new iFc,a=_.PK(a),_.I(a,12,b));return b};KFc=function(a){var b=_.B(_.PK(a),oFc,17);b||(b=new oFc,a=_.PK(a),_.I(a,17,b));return b};LFc=function(a){var b=_.B(_.PK(a),sFc,21);b||(b=new sFc,a=_.PK(a),_.I(a,21,b));return b};
MFc=function(a){if(a instanceof _.wI)return 2;if(a instanceof _.EG)return 10;if(a instanceof _.nf)return _.OJ(a)?3:_.PJ(a)?7:_.QJ(a)?8:1;if(a instanceof _.xA)return 9;if(a instanceof _.QG)return 11;if(a instanceof _.XJ)return 15;if(a instanceof _.JI)return 6;if(a instanceof _.SJ){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 _.TD)return 4;if(a instanceof _.kA)return 12;if(a instanceof _.HG)return 13}return 0};
NFc=function(a){var b=null;a instanceof _.pB||"undefined"!=typeof _.RK&&a instanceof _.RK||"undefined"!=typeof _.SK&&a instanceof _.SK?b=a.Ze()||0:"undefined"!=typeof _.UK&&a instanceof _.UK||"undefined"!=typeof _.VK&&a instanceof _.VK||"undefined"!=typeof _.WK&&a instanceof _.WK||"undefined"!=typeof _.XK&&a instanceof _.XK||"undefined"!=typeof _.YK&&a instanceof _.YK?b=a.Je:"undefined"!=typeof _.TK&&a instanceof _.TK&&(b=a.Ze());return b||0};
JL=function(a,b,c){return a.V&&_.Oxc(a)?(a=_.Kxc(a.V,b,0),c&&_.wqc(a,c),a):null};OFc=function(a){a.V&&_.Oxc(a)&&(a=a.V,a.H.pP()&&a.H.IZ())};PFc=function(a){var b=new _.KJ;return _.w(b,1,a)};QFc=function(a,b){return _.I(a,2,b)};RFc=function(a,b){return _.I(a,1,b)};SFc=function(a,b){a.ha=b};TFc=[2];KL=function(a){_.J.call(this,a,-1,TFc)};_.K(KL,_.J);KL.prototype.Bb=function(){return _.y(this,1)};KL.prototype.Dc=function(a){return _.w(this,1,a)};KL.prototype.aha=function(a){_.Xj(this,2,a,_.Rk,void 0)};
KL.prototype.dk=function(){return _.y(this,3)};var UFc=function(a,b){return _.Kj(a,2,b)},VFc=[2],WFc=function(a){_.J.call(this,a,-1,VFc)};_.K(WFc,_.J);WFc.prototype.Bb=function(){return _.y(this,1)};WFc.prototype.Dc=function(a){return _.w(this,1,a)};WFc.prototype.dk=function(){return _.y(this,3)};XFc=function(a){return a.H?a.H.promise:a.O()?(a.H=new _.Gn,a.H.promise):null};
YFc=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.Dv.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.Dv.config.timestamp)&&c.push(e);_.xa(b,c)}return b};ZFc=function(a,b){_.hL(["drive#permissionList"],b);return UFc(new KL,(b.items||[]).map(function(c){return _.bAc(a,c)}))};
$Fc=function(a,b){return uEc(tEc(sEc(_.Fvc(_.Dvc(new _.Wna,b.entryCount),(b.selectPermissions||[]).map(function(c){return _.bAc(a,c)})),b.memberCount),b.userEntryCount),b.groupEntryCount)};hBc=function(a,b){return _.Ij(a,1,b)};aGc=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};
bGc=function(a,b){if(!(a instanceof b.constructor))throw Error("aa");var c=a.er(!1);b=b.er(!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)};cGc=[2,6];_.SK=function(a){_.J.call(this,a,-1,cGc)};_.K(_.SK,_.J);_.g=_.SK.prototype;_.g.Bb=function(){return _.y(this,1)};_.g.Dc=function(a){return _.w(this,1,a)};_.g.wd=function(){return _.Oj(this,_.hl,2)};
_.g.Uw=function(a){return _.Kj(this,2,a)};_.g.nh=function(a,b){return _.Xj(this,2,a,_.hl,b)};_.g.dk=function(){return _.y(this,3)};_.g.ul=function(){return _.Q(this,4,!0)};var dGc=function(a,b){return _.Kj(a,6,b)};_.SK.prototype.dg=function(){return _.y(this,10)};_.SK.prototype.mP=function(a){return _.w(this,10,a)};_.SK.prototype.Ze=function(){return _.y(this,9)};_.SK.prototype.Ki=function(a){return _.w(this,9,a)};
var eGc={SUCCESS:1,N6b:2,OYb:3,tUb:4,$6b:5,s1b:6,h1b:7,fVb:8,L5b:9,$5b:10,M6b:11,HWb:12,lWb:13,OZb:14,gYb:15,pWb:16,oWb:17,uWb:18,rWb:19,sWb:20,q6b:21,W6b:22,L1b:23,R0b:24,YUb:25,PERMISSION_DENIED:26,g0b:27,kVb:28,jVb:29,INTERRUPTED:30,k2b:31,E2b:32,WWb:33,bXb:34,S5b:35,iXb:36,hYb:37,aXb:38,g1b:39,OVb:40,f2b:41,G2b:42,J5b:43,AVb:44,NVb:45,eYb:46,b0b:47,e1b:48,C1b:49,g2b:50,C5b:51,mWb:52,K5b:53,I5b:54,GVb:55,DVb:56,tXb:57,z0b:58,h2b:59,A_b:60,W3b:61,K4b:62,q5b:63,c_b:64,T0b:65,c7b:66,kXb:67,iYb:68,
L6b:69,h_b:70,iVb:71,vVb:72,S4b:73,r5b:74,n5b:75,l5b:76,G4b:190,k5b:191,T4b:192,Z4b:126,V4b:128,W4b:129,X4b:130,Y4b:131,$4b:132,a5b:133,e4b:127,b4b:134,c4b:135,g4b:136,h4b:137,i4b:138,d4b:194,f4b:195,j4b:196,a4b:197,J4b:189,V3b:139,X3b:140,k4b:141,l4b:142,x4b:143,A4b:144,B4b:145,C4b:146,D4b:147,E4b:148,F4b:149,I4b:150,O4b:151,Q4b:152,R4b:153,U4b:154,b5b:155,d5b:156,e5b:157,f5b:158,g5b:159,h5b:160,i5b:161,m5b:162,p5b:163,s5b:164,Y3b:165,Z3b:166,$3b:167,T3b:168,U3b:169,o4b:170,m4b:171,n4b:172,p4b:173,
q4b:174,r4b:175,s4b:176,t4b:177,u4b:178,v4b:179,w4b:180,y4b:181,z4b:182,H4b:106,P4b:183,c5b:184,j5b:185,L4b:186,M4b:187,N4b:188,o5b:244,e2b:77,Q6b:78,V6b:79,n0b:80,TZb:81,VZb:82,sXb:83,dYb:84,h0b:85,j6b:86,$Wb:87,j_b:88,i_b:89,v5b:90,t5b:91,u5b:92,R6b:93,bWb:94,aWb:95,YVb:96,$Vb:97,ZVb:98,b7b:99,E3b:100,xWb:101,qWb:102,vWb:103,tWb:104,wWb:105,jYb:107,X5b:108,y3b:109,F6b:110,mYb:111,lYb:112,F_b:113,G_b:114,K2b:115,HVb:116,N_b:117,CXb:118,S6b:119,m1b:120,n1b:121,PZb:193,nWb:122,QWb:123,SZb:124,M0b:125,
k_b:198,p2b:199,$Zb:200,XTb:201,f_b:202,d_b:203,lVb:204,A7b:205,V_b:206,VVb:207,j1b:208,F2b:209,A3b:210,xUb:211,D_b:212,K_b:213,N5b:214,M5b:215,b_b:216,NZb:217,a_b:218,mXb:219,a6b:220,nXb:221,B_b:222,U5b:223,l7b:224,X0b:225,T5b:226,SWb:227,T_b:228,rXb:229,QVb:230,h6b:231,O0b:232,FILE_TOO_LARGE:233,g_b:234,lXb:235,aYb:236,B2b:237,U0b:238,ITb:239,RVb:240,a1b:241,L3b:242,YWb:243,VTb:245,WZb:246,E1b:247,UZb:248,m0b:249,S0b:250,fYb:251,VYb:252,E_b:253,EVb:254,kYb:255,a7b:256,HYb:257,w0b:258,R2b:259,o2b:260,
r_b:261,CWb:262,ZWb:263,XUb:264,f0b:265,Z6b:266,MTb:267,NUb:268,MUb:269,f1b:270,GTb:271,HTb:272,$Ub:273,UVb:274,PUb:275,OUb:276,U_b:277,nYb:278},LL=function(a,b){_.ti.call(this,"Aa");this.error=a;this.H=b};_.K(LL,_.ti);fGc={T6b:0,x0b:1,N1b:2,A1b:3,m_b:4,uUb:5,y0b:6,B1b:7,uZb:8,WUb:9,y1b:10};
_.ML=function(a,b,c,d,e,f){_.Di.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=hBc(new _.oL,[1]);this.limit=e.Ei();this.Je=0;_.Qe(this,function(){h.O=!1;h.H=[]});_.d8a++};_.K(_.ML,_.Di);_.g=_.ML.prototype;_.g.ti=function(){return String(_.Ca(this))};_.g.isActive=function(){return this.O};
_.g.activate=function(){this.O=!0;_.na(this.items)&&6===this.Bb()&&this.Vj()||gGc(this)};_.g.ud=function(){return this.request};_.g.Ei=function(){return this.limit};_.g.Bb=function(){return this.status};_.g.iq=function(){return this.ka};_.g.Vj=function(){return this.ha};_.g.yr=function(){var a=_.c8a().sy(this.H,this.items),b=(new _.vI).Dc(this.Bb());a=_.Kj(b,2,a);this.H=this.items;return a};
_.g.Er=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 hGc=function(a,b){return a.Bb()!==b.Bb()||GL(_.c8a(),a.items,b.wd())},iGc=function(a,b){a.items=b.wd();a.status=b.Bb();_.XI(a.Ba)&&(a.ka=iBc(a.status,a.items));a.ha=b.ul();a.Je=b.Ze()};
_.ML.prototype.DB=function(a){this.dispatchEvent(new _.Ec(new _.Dc("Error occurred running a query after "+a.H+" retries.",a.error)))};_.ML.prototype.gW=function(){this.dispatchEvent(new _.ti(_.WEa))};_.ML.prototype.zu=function(a,b){var c=this;b+="\n\n\nQuery:\n"+NL(this.V,this.ud());return _.ji(this.va.then(function(d){return d.eMb(a,b,c.ud(),c.Ei(),c.items)}))};
var gGc=function(a){if(a.isActive()){var b=a.iq().O();a.log("Livelist "+a.ti()+" returning "+a.items.length+". Status: "+(_.Za(eGc)[a.Bb()]+". ")+(6===a.Bb()?"MissingTypes: "+b.join(",")+". ":"")+("Datasource: "+_.Za(fGc)[a.Je]+". Query: ")+(NL(a.V,a.request)+" ")+jBc(a.items));jGc(a,a.items,a.request);a.dispatchEvent(new _.ti(_.Oc,a))}},jGc=function(a,b,c){if(_.OJ(c))c="quick access";else if(_.PJ(c))c="people predict";else if(_.QJ(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))};_.ML.prototype.refresh=function(){};_.ML.prototype.log=function(a){this.Fa.info(this.W,a)};_.ML.prototype.Ya=function(){_.e8a++;_.Di.prototype.Ya.call(this)};var kGc=function(){this.map={};this.status=6;this.Je=null};_.g=kGc.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.gq=function(){return this.map};
var lGc=function(a,b){a.map=b};kGc.prototype.Lc=function(a){var b=[];_.La(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 mGc=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},nGc=function(){kGc.apply(this,arguments)};_.K(nGc,kGc);_.RK=function(){kGc.apply(this,arguments)};_.K(_.RK,kGc);
var nBc=[1004,1005,1002,1003],BBc=[1002,1003,1005],OL=function(a,b,c,d,e,f){_.Di.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=hBc(new _.oL,[1]);this.log("Creating find by ids live map: "+this.request.nn().join(", "));_.Qe(this,function(){h.O=!1;h.H=[]});_.glb++};_.K(OL,_.Di);_.g=OL.prototype;_.g.ti=function(){return String(_.Ca(this))};
_.g.activate=function(){this.O=!0;_.Ta(this.items)&&6===this.status||oGc(this)};_.g.ud=function(){return this.request};_.g.getData=function(){this.H=this.items;var a=new _.RK;_.XI(this.V)?a.Dc(DBc(Object.values(this.items))?6:this.status):a.Dc(this.status);a.map=this.items;return a};_.g.yr=function(){var a=FBc(this.H,this.items),b=new nGc;b.Dc(this.status);b.map=a;this.H=this.items;return b};_.g.Bb=function(){return this.status};_.g.iq=function(){return this.W};
_.g.ZS=function(a){pGc(a);var b=this.request;this.request=a;this.ta(this.ti(),b,a)};_.g.update=function(a){var b=this;0<=_.la(this.ud().nn(),"root")?this.ma.addCallback(function(c){var d=a.gq()[c];d&&(_.Ua(a.map,c),a.map.root=d);qGc(b,a)}):qGc(this,a)};var qGc=function(a,b){if(a.status!==b.Bb()||GBc(a.items,b.gq()))a.status=b.Bb(),a.items=b.gq(),_.XI(a.V)&&(a.W=iBc(a.status,Object.values(a.items))),oGc(a)};
OL.prototype.DB=function(a){this.dispatchEvent(new _.Ec(new _.Dc("Error occurred running a find-by-IDs query after "+a.H+" retries.",a.error)))};OL.prototype.gW=function(){this.dispatchEvent(new _.ti(_.WEa))};var oGc=function(a){a.O&&(a.log("Livelist "+a.ti()+" returning "+(Object.values(a.items).length+". Status: ")+(_.Za(eGc)[a.Bb()]+". Query: ")+(NL(a.ka,a.request)+" ")+jBc(Object.values(a.items))),a.dispatchEvent(new _.ti(_.Oc,a)))};
OL.prototype.log=function(a){this.ha.info("drive.ds.sync.IdViewCacheLiveMap",a)};OL.prototype.Ya=function(){_.hlb++;_.Di.prototype.Ya.call(this)};var rGc=[1,2],sGc=function(a){_.J.call(this,a,-1,rGc)};_.K(sGc,_.J);_.tGc=function(a){_.J.call(this,a)};_.K(_.tGc,_.J);_.tGc.prototype.Bb=function(){return _.y(this,1)};_.tGc.prototype.Dc=function(a){return _.w(this,1,a)};_.tGc.prototype.qn=function(){return _.B(this,_.FG,2)};var uGc=function(a){_.ti.call(this,a)};_.K(uGc,_.ti);
var vGc=function(a){_.J.call(this,a)};_.K(vGc,_.J);vGc.prototype.O=function(){return _.B(this,_.nD,1)};vGc.prototype.V=function(){return _.B(this,_.nD,2)};vGc.prototype.ha=function(){return _.B(this,_.nD,3)};var wGc=function(a){_.J.call(this,a)};_.K(wGc,_.J);wGc.prototype.O=function(){return _.P(this,1)};wGc.prototype.V=function(){return _.P(this,3)};wGc.prototype.ha=function(){return _.P(this,4)};var xGc=function(a){_.J.call(this,a)};_.K(xGc,_.J);xGc.prototype.O=function(){return _.P(this,1)};
xGc.prototype.V=function(){return _.P(this,2)};var PL=[13,19,12,11,10,15,14,9,8,18,17,16],yGc=function(a){_.J.call(this,a)};_.K(yGc,_.J);yGc.prototype.O=function(){return _.y(this,4)};var zGc=function(a){_.J.call(this,a)};_.K(zGc,_.J);zGc.prototype.V=function(){return _.y(this,1)};zGc.prototype.O=function(){return _.y(this,2)};var AGc=function(a){_.J.call(this,a)};_.K(AGc,_.J);AGc.prototype.V=function(){return _.y(this,1)};AGc.prototype.O=function(){return _.y(this,2)};
var BGc=function(a){_.J.call(this,a)};_.K(BGc,_.J);var CGc=[1],DGc=function(a){_.J.call(this,a)};_.K(DGc,_.J);DGc.prototype.O=function(){return _.P(this,1)};DGc.prototype.V=function(){return _.P(this,2)};var EGc=function(a){_.J.call(this,a)};_.K(EGc,_.J);_.g=EGc.prototype;_.g.$9a=function(){return _.P(this,1)};_.g.a$a=function(){return _.P(this,2)};_.g.X9a=function(){return _.B(this,vGc,3)};_.g.b$a=function(){return _.Cj(this,3)};_.g.Z9a=function(){return _.B(this,vGc,4)};
_.g.d$a=function(){return _.Cj(this,4)};_.g.Y9a=function(){return _.y(this,5)};_.g.c$a=function(){return _.Cj(this,5)};var FGc=function(a){_.J.call(this,a)};_.K(FGc,_.J);_.g=FGc.prototype;_.g.getLabel=function(){return _.y(this,1)};_.g.Sp=function(){return _.Cj(this,1)};_.g.Za=function(){return _.y(this,2)};_.g.Jb=function(a){return _.w(this,2,a)};_.g.Ui=function(){return _.pb(this,2)};_.g.Pg=function(){return _.Cj(this,2)};_.g.Cf=function(){return _.y(this,5)};
_.g.Yl=function(a){return _.w(this,5,a)};_.g.W9a=function(){return _.Cj(this,5)};_.g.getCapabilities=function(){return _.B(this,DGc,3)};_.g.V9a=function(){return _.B(this,EGc,4)};var GGc=function(a){_.J.call(this,a,-1,CGc)};_.K(GGc,_.J);GGc.prototype.O=function(){return _.Oj(this,FGc,1)};var HGc=function(a,b){_.Kj(a,1,b)},IGc=function(a){_.J.call(this,a)};_.K(IGc,_.J);IGc.prototype.O=function(){return _.y(this,1)};IGc.prototype.iW=function(){return _.Cj(this,1)};
IGc.prototype.getOptions=function(){return _.B(this,GGc,2)};var JGc=function(a){_.J.call(this,a)};_.K(JGc,_.J);JGc.prototype.iW=function(){return _.Cj(this,1)};JGc.prototype.getOptions=function(){return _.B(this,AGc,2)};var KGc=function(a){_.J.call(this,a)};_.K(KGc,_.J);var LGc=function(a){_.J.call(this,a)};_.K(LGc,_.J);LGc.prototype.iW=function(){return _.Cj(this,1)};LGc.prototype.getOptions=function(){return _.B(this,KGc,2)};var QL=[3,4,5,6,7,8,9,10,11,12],MGc=function(a){_.J.call(this,a)};
_.K(MGc,_.J);_.g=MGc.prototype;_.g.rMa=function(a){return _.Wj(this,3,QL,a)};_.g.G4a=function(a){return _.Wj(this,4,QL,a)};_.g.V3a=function(a){return _.Wj(this,5,QL,a)};_.g.U3a=function(a){return _.Wj(this,6,QL,a)};_.g.I3a=function(a){return _.Wj(this,7,QL,a)};_.g.t4a=function(a){return _.Wj(this,8,QL,a)};_.g.s4a=function(a){return _.Wj(this,9,QL,a)};_.g.L4a=function(a){return _.Wj(this,10,QL,a)};_.g.sMa=function(a){return _.Wj(this,11,QL,a)};_.g.qMa=function(a){return _.Wj(this,12,QL,a)};
var NGc=function(a){_.J.call(this,a)};_.K(NGc,_.J);var OGc=function(a){_.J.call(this,a)};_.K(OGc,_.J);OGc.prototype.O=function(){return _.y(this,1)};OGc.prototype.iW=function(){return _.Cj(this,1)};OGc.prototype.getOptions=function(){return _.B(this,NGc,2)};var PGc=function(a){_.J.call(this,a)};_.K(PGc,_.J);_.g=PGc.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Ob=function(a){return _.w(this,1,a)};_.g.P9a=function(){return _.y(this,2)};_.g.we=function(){return _.y(this,4)};
_.g.O9a=function(){return _.B(this,wGc,5)};_.g.getCapabilities=function(){return _.B(this,xGc,6)};_.g.U9a=function(){return _.y(this,7)};_.g.I3a=function(a){return _.Wj(this,13,PL,a)};_.g.N9a=function(){return _.dk(this,yGc,19,PL)};_.g.qMa=function(a){return _.Wj(this,19,PL,a)};_.g.U3a=function(a){return _.Wj(this,12,PL,a)};_.g.V3a=function(a){return _.Wj(this,11,PL,a)};_.g.zsb=function(){return _.dk(this,zGc,10,PL)};_.g.Q9a=function(){return _.dk(this,IGc,15,PL)};
_.g.s4a=function(a){return _.Wj(this,15,PL,a)};_.g.R9a=function(){return _.dk(this,GGc,14,PL)};_.g.t4a=function(a){return _.Wj(this,14,PL,a)};_.g.G4a=function(a){return _.Wj(this,9,PL,a)};_.g.S9a=function(){return _.dk(this,AGc,8,PL)};_.g.rMa=function(a){return _.Wj(this,8,PL,a)};_.g.T9a=function(){return _.dk(this,OGc,18,PL)};_.g.sMa=function(a){return _.Wj(this,18,PL,a)};_.g.L4a=function(a){return _.Wj(this,17,PL,a)};var QGc=[5],RGc=function(a){_.J.call(this,a)};_.K(RGc,_.J);
RGc.prototype.ha=function(){return _.P(this,1)};RGc.prototype.O=function(){return _.P(this,2)};RGc.prototype.ka=function(){return _.P(this,3)};RGc.prototype.V=function(){return _.P(this,4)};var RL=function(a){_.J.call(this,a,-1,QGc)};_.K(RL,_.J);RL.prototype.getName=function(){return _.y(this,1)};RL.prototype.hd=function(a){return _.w(this,1,a)};RL.prototype.Om=function(){return _.y(this,2)};var SGc=function(a,b){return _.w(a,2,b)};RL.prototype.V=function(){return _.y(this,14)};
var TGc=function(a,b){return _.w(a,14,b)};_.g=RL.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.e$a=function(){return _.y(this,15)};_.g.Bk=function(){return _.Oj(this,PGc,5)};
var UGc=function(a,b){return _.Kj(a,5,b)},VGc=function(a,b){_.I(a,6,b)},WGc=function(a,b){_.I(a,7,b)},XGc=function(a,b){_.I(a,8,b)},YGc=function(a,b){return _.w(a,9,b)},ZGc=function(a,b){return _.w(a,10,b)},$Gc=function(a,b){return _.w(a,11,b)};RL.prototype.O=function(){return _.B(this,wGc,12)};var aHc=function(a,b){_.I(a,12,b)};RL.prototype.getCapabilities=function(){return _.B(this,RGc,13)};var bHc=function(a,b){_.I(a,13,b)};RL.prototype.getCustomer=function(){return _.y(this,16)};
var cHc=function(a,b){return _.w(a,16,b)},dHc=[5,7,9],eHc=function(a){_.J.call(this,a,-1,dHc)};_.K(eHc,_.J);_.g=eHc.prototype;_.g.getUser=function(){return _.B(this,_.Rk,1)};_.g.YA=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.Noa=function(a){return _.Ij(this,5,a)};_.g.addTextValues=function(a,b){return _.Mj(this,5,a,b)};_.g.setSelectionValue=function(a){return _.w(this,6,a)};
_.g.Joa=function(a){return _.Ij(this,7,a)};_.g.addSelectionValues=function(a,b){return _.Mj(this,7,a,b)};_.g.setIntegerValue=function(a){return _.w(this,8,a)};_.g.Aoa=function(a){return _.Ij(this,9,a)};_.g.addIntegerValues=function(a,b){return _.Mj(this,9,a,b)};var fHc=[7,10,12,16,13,3],SL=function(a){_.J.call(this,a,-1,fHc)};_.K(SL,_.J);var TL=function(a){return _.y(a,4)};_.g=SL.prototype;_.g.YA=function(a){_.w(this,4,a)};_.g.setBooleanValue=function(a){return _.w(this,5,a)};
_.g.i$a=function(){return _.y(this,6)};_.g.setTextValue=function(a){return _.w(this,6,a)};_.g.Noa=function(a){return _.Ij(this,7,a)};_.g.addTextValues=function(a,b){return _.Mj(this,7,a,b)};_.g.g$a=function(){return _.y(this,8)};_.g.setLongTextValue=function(a){return _.w(this,8,a)};_.g.h$a=function(){return _.y(this,9)};_.g.setSelectionValue=function(a){return _.w(this,9,a)};_.g.cMa=function(){return _.fe(this,10)};_.g.Joa=function(a){return _.Ij(this,10,a)};
_.g.addSelectionValues=function(a,b){return _.Mj(this,10,a,b)};_.g.f$a=function(){return _.y(this,11)};_.g.setIntegerValue=function(a){return _.w(this,11,a)};_.g.Aoa=function(a){return _.Ij(this,12,a)};_.g.addIntegerValues=function(a,b){return _.Mj(this,12,a,b)};_.g.j$a=function(){return _.B(this,_.Rk,15)};_.g.setUserValue=function(a){return _.I(this,15,a)};_.g.DWa=function(){return _.Oj(this,_.Rk,16)};var gHc=function(a,b){_.Kj(a,16,b)};
SL.prototype.addUserValues=function(a,b){return _.Xj(this,16,a,_.Rk,b)};SL.prototype.O=function(){return _.y(this,17)};SL.prototype.setDateStringValue=function(a){return _.w(this,17,a)};SL.prototype.V=function(){return _.Cj(this,17)};var hHc=function(a,b){_.Kj(a,13,b)};SL.prototype.getId=function(){return _.y(this,14)};SL.prototype.Ob=function(a){return _.w(this,14,a)};SL.prototype.getName=function(){return _.y(this,1)};SL.prototype.hd=function(a){return _.w(this,1,a)};
var iHc=[2],VL=function(a){_.J.call(this,a,-1,iHc)};_.K(VL,_.J);VL.prototype.getName=function(){return _.y(this,1)};VL.prototype.hd=function(a){return _.w(this,1,a)};VL.prototype.O=function(){return _.Oj(this,SL,2)};var jHc=function(a,b){_.Kj(a,2,b)};VL.prototype.Ac=function(){return _.y(this,3)};kHc=function(a,b){return _.w(a,3,b)};_.yL=function(a){_.J.call(this,a)};_.K(_.yL,_.J);_.yL.prototype.getId=function(){return _.y(this,1)};_.yL.prototype.Ob=function(a){return _.w(this,1,a)};
_.yL.prototype.te=function(){return _.B(this,_.Cf,3)};lHc=[3];_.WL=function(a){_.J.call(this,a,-1,lHc)};_.K(_.WL,_.J);_.WL.prototype.getType=function(){return _.y(this,1)};_.WL.prototype.Ac=function(){return _.y(this,2)};_.mHc=function(a){_.J.call(this,a)};_.K(_.mHc,_.J);_.mHc.prototype.getFeature=function(){return _.y(this,1)};nHc=[1];_.OK=function(a){_.J.call(this,a,-1,nHc)};_.K(_.OK,_.J);oHc=[2,3,8];_.$J=function(a){_.J.call(this,a,-1,oHc)};_.K(_.$J,_.J);
_.$J.prototype.getId=function(){return _.y(this,1)};_.$J.prototype.Ob=function(a){return _.w(this,1,a)};_.$J.prototype.te=function(){return _.B(this,_.Cf,4)};_.$J.prototype.yc=function(){return _.y(this,5)};var pHc=function(a){_.J.call(this,a)};_.K(pHc,_.J);qHc=[1,2,4];rHc={0:"UNSPECIFIED_FEEDBACK",1:"IMPLICIT_REJECT",2:"NOT_HELPFUL_RIGHT_NOW"};sHc=function(a,b){return new _.drc(_.erc.bound(a,b,void 0,void 0))};
tHc=function(){var a=new _.di,b=_.trc().deleteDatabase("GoogleDriveDs");b.onsuccess=function(){a.callback()};b.onerror=function(c){a.Jd(_.BI(c.target,"deleting database GoogleDriveDs"))};b.onblocked=function(){};return a};_.uHc=function(a){_.J.call(this,a)};_.K(_.uHc,_.J);_.uHc.prototype.Ip=function(){return _.y(this,1)};_.uHc.prototype.Ed=function(){return _.y(this,2)};_.uHc.prototype.setSize=function(a){return _.w(this,2,a)};_.uHc.prototype.getUrl=function(){return _.y(this,3)};
_.vHc=function(a){_.J.call(this,a)};_.K(_.vHc,_.J);_.vHc.prototype.getType=function(){return _.y(this,1)};wHc=[2,3];_.xHc=function(a){_.J.call(this,a,-1,wHc)};_.K(_.xHc,_.J);yHc=[4,5,6,17,18,24];_.XL=function(a){_.J.call(this,a,-1,yHc)};_.K(_.XL,_.J);_.XL.prototype.getId=function(){return _.y(this,1)};_.XL.prototype.Ob=function(a){return _.w(this,1,a)};_.XL.prototype.getName=function(){return _.y(this,2)};_.XL.prototype.hd=function(a){return _.w(this,2,a)};
var zHc=function(a,b){return _.Ij(a,4,b)},AHc=function(a,b){return _.Ij(a,5,b)};_.XL.prototype.HQ=function(){return _.y(this,8)};_.XL.prototype.getType=function(){return _.y(this,23)};var BHc=[3],YL=function(a){_.J.call(this,a,-1,BHc)};_.K(YL,_.J);YL.prototype.jq=function(){return _.y(this,1)};var CHc=function(a,b){return _.w(a,1,b)};YL.prototype.getTitle=function(){return _.y(this,2)};YL.prototype.setTitle=function(a){return _.w(this,2,a)};YL.prototype.wd=function(){return _.Oj(this,_.hl,3)};
var DHc=function(a,b){return _.Kj(a,3,b)};YL.prototype.nh=function(a,b){return _.Xj(this,3,a,_.hl,b)};YL.prototype.V=function(){return _.y(this,4)};var EHc=function(a,b){return _.w(a,4,b)};YL.prototype.O=function(){return _.B(this,_.Uk,5)};var FHc=function(a,b){return _.I(a,5,b)},xCc=function(a){_.J.call(this,a)};_.K(xCc,_.J);var GHc=[2],ZL=function(a){_.J.call(this,a,-1,GHc)};_.K(ZL,_.J);ZL.prototype.Bb=function(){return _.y(this,1)};ZL.prototype.Dc=function(a){return _.w(this,1,a)};
ZL.prototype.xl=function(){return _.Oj(this,YL,2)};var HHc=function(a,b){return _.Kj(a,2,b)};ZL.prototype.dg=function(){return _.y(this,4)};IHc=function(a,b){return _.w(a,4,b)};_.TK=function(a){_.J.call(this,a)};_.K(_.TK,_.J);_.g=_.TK.prototype;_.g.Bb=function(){return _.y(this,1)};_.g.Dc=function(a){return _.w(this,1,a)};_.g.FT=function(){return _.Hj(this,2,void 0,_.FG)};_.g.dk=function(){return _.y(this,3)};_.g.Ze=function(){return _.y(this,5)};_.g.Ki=function(a){return _.w(this,5,a)};
var JHc=[1],zL=[1,2,3,4,5,6,7],bCc=function(a){_.J.call(this,a)};_.K(bCc,_.J);var cCc=function(a){_.J.call(this,a,-1,JHc)};_.K(cCc,_.J);var $L=function(a){_.J.call(this,a)};_.K($L,_.J);$L.prototype.getQuery=function(){return _.B(this,_.nf,1,1)};var KHc=function(a,b){return _.I(a,1,b)};$L.prototype.Zn=function(){return _.y(this,4)};var LHc=function(a,b){return _.I(a,5,b)},MHc=[1,2,5,7,9,10,12,14],aM=function(a){_.J.call(this,a,-1,MHc)};_.K(aM,_.J);aM.prototype.wd=function(){return _.Oj(this,_.hl,1)};
var NHc=function(a,b){return _.Kj(a,1,b)};aM.prototype.nh=function(a,b){return _.Xj(this,1,a,_.hl,b)};aM.prototype.aha=function(a){_.Xj(this,2,a,_.Rk,void 0)};var OHc=function(a,b){return _.w(a,3,b)};aM.prototype.ao=function(){return _.y(this,4)};aM.prototype.Du=function(a){return _.w(this,4,a)};var PHc=function(a,b){return _.Kj(a,5,b)};aM.prototype.sv=function(){return _.P(this,6)};var QHc=function(a,b){return _.w(a,6,b)};aM.prototype.xf=function(){return _.B(this,_.oC,8)};
var RHc=function(a,b){return _.Ij(a,12,b)};aM.prototype.Yn=function(){return _.Fj(this,13,0)};var SHc=function(a,b){return _.w(a,13,b)},THc={aVb:0,ZUb:1,M_b:2,V5b:3,Y5b:4,r1b:5},xL=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18],$Bc=function(a){_.J.call(this,a)};_.K($Bc,_.J);var gCc=[1,2],fCc=function(a){_.J.call(this,a)};_.K(fCc,_.J);var jCc=[1,2,3],iCc=function(a){_.J.call(this,a)};_.K(iCc,_.J);
var UHc=function(a,b){return 1<a?2===b:a===b},VHc=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");},bM=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=bM.prototype;_.g.clone=function(){return new bM(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.dz=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&&_.Zj(this.item,a.getItem())};
var WHc=function(a,b){a.H=b;return a},cM=function(a){return a instanceof _.hl?null!=a.getId()&&a.getId()==a.yc():null!=a.Ac()&&a.Ac()==a.yc()},XHc=function(a,b,c){c=void 0===c?[]:c;var d=a.clone(),e=b.jg();null!=e&&tBc(a,e.clone());if((e=b.getCapabilities())&&null!=_.P(e,13)){var f=a.getCapabilities()||new _.Xk,h=_.P(e,13);_.w(f,13,h);_.xK(a,f)}e&&null!=_.P(e,18)&&(f=a.getCapabilities()||new _.Xk,e=_.P(e,18),_.w(f,18,e),_.xK(a,f));uL(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()&&uL(a,d,c)},YHc=function(a,b,c){c=void 0===c?[]:c;if(!b||!cM(a)&&!cM(b))return a;if(2==a.sv()){c=_.y(a,82);var d=b.clone();XHc(d,a);_.Qvc(d,b.sv());_.jJ(d,c);return d}a=a.clone();XHc(a,b,c);return a},ZHc=function(a){return(a=a?a.jg():null)&&_.P(a,7)||!1},$Hc=function(a,b){this.V=a;this.items={};this.fields=new Set;this.H={};this.O=new Set;this.W=new Set(b)},aIc=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]={}})},cIc=function(a,b,c){b.every(function(d){return cM(d)})?bIc(b,c,a.H,a.O):b.every(function(d){return!cM(d)})&&bIc(b,c,a.items,a.fields)},bIc=function(a,b,c,d){b=_.ruc(b,[].concat(_.Ad(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?_.ke(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&&uL(d,k,[h]);e&&(k=c[h][e.getId()])&&uL(e,k,[h])}}};
$Hc.prototype.update=function(a,b,c){b&&cM(b)?dIc(a,b,this.H,this.O,c):dIc(a,b,this.items,this.fields,c)};$Hc.prototype.sJ=function(a){var b=this;_.La(this.items,function(c,d){_.Ua(b.items[d],a)});_.La(this.H,function(c,d){_.Ua(b.H[d],a)})};
var dIc=function(a,b,c,d,e){_.La(c,function(f,h){h=Number(h);if(e.includes(h)&&(f[a]&&!b?_.Ua(f,a):b&&qBc(b,[h])&&(f[a]=eIc(b,h)),b)){var k=b.Gf();(k=k?_.ke(k):null)&&qBc(k,[h])&&(f[k.getId()]=eIc(k,h))}});b&&mBc(b,[].concat(_.Ad(d)))},eIc=function(a,b){var c=new _.hl;c.Ob(a.getId());uL(c,a,[b]);return c};$Hc.prototype.clear=function(){var a=this;_.La(this.items,function(b,c){a.items[c]={}});_.La(this.H,function(b,c){a.H[c]={}})};
$Hc.prototype.log=function(a){this.V.info("drive.ds.sync.cache.FieldsCache",a)};var fIc=function(a,b,c){var d=this;this.ot=b;this.zv=c;this.Hd=new Map;this.rootId="";a.addCallback(function(e){d.rootId=e})};_.g=fIc.prototype;_.g.qy=function(){return this.Hd};_.g.fk=function(a){var b=new Map;a=_.m(a.nn());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(gIc(a)){for(var d=_.m(this.Hd.values()),e=d.next();!e.done;e=d.next())e=e.value,dM(this.ot,a,e.getItem())&&(void 0===b||UHc(e.V,b))&&c.push(e);this.zv.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--,hIc(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 hIc=function(a,b){return 1<b.$b()||UHc(b.V,2)||b.getItem().HI()||MBc(b.getItem())?!1:"root"!==b.getId()&&b.getId()!==a.rootId};fIc.prototype.sJ=function(){for(var a=_.m(this.Hd.values()),b=a.next();!b.done;b=a.next())b=b.value,hIc(this,b)&&(this.Hd.delete(b.getId()),b.count--)};
var iIc=function(a,b,c,d){this.Mg=a;this.W=b;this.O=c;this.V=d},yCc=function(a,b){return(b=a.O.get(b))?(b=b.clone(),cIc(a.V,[b.getItem()],FFc(a.Mg)),b):null};iIc.prototype.H=function(a){return(a=yCc(this,a))?a.getItem():null};var jIc=function(a,b){var c={};b.forEach(function(d){var e=yCc(a,d);e&&(c[d]=e)});return c},kIc=function(a,b){return _.Na(jIc(a,b),function(c){return c.getItem()})},lIc=function(a,b){b=eM(a.W,b);return a.O.query(b).map(function(c){return c.clone()})};
iIc.prototype.query=function(a){return lIc(this,a).map(function(b){return b.getItem()})};iIc.prototype.Ed=function(){return this.O.qy().size};
var mIc=function(a){var b=new Set;a=_.m(a.O.qy().values());for(var c=a.next();!c.done;c=a.next()){c=c.value.getItem();for(var d=_.m(_.jl(c)),e=d.next();!e.done;e=d.next())e=e.value,b.add(e.getId()||sL(e));(d=c.zm())&&b.add(d.getId()||sL(d));(d=c.St())&&b.add(d.getId()||sL(d));(d=c.Jq())&&b.add(d.getId()||sL(d));(c=c.jD())&&b.add(c.getId()||sL(c))}return b.size},nIc=function(a){return[].concat(_.Ad(new Set(a.map(function(b){return _.jtc.get(b)}).filter(function(b){return b})))).join(",")},fM=function(a,
b,c){b=void 0===b?[]:b;c=void 0===c?!1:c;b=[].concat(_.Ad(b));b=nIc(b);var d=_.XI(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+")"},oIc=function(a,b){b=void 0===b?[]:b;return"kind,nextPageToken,items("+fM(a,b,!1)+")"},pIc=function(a){var b=new _.Wo;_.NK(b,"hidden",_.P(a,4));a=_.P(a,6);null!=a&&_.NK(b,"canRemoveSecureLinkUpdateForAllFiles",a);return b.toString()},qIc=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}},rIc=function(a){var b=_.Fqc(),c={};b&&(c.numeric=b);this.H=_.Gqc(a,c)};rIc.prototype.compare=function(a,b,c){b=sIc(b);c=sIc(c);a=a.wc();var d=qIc(a);if(a&&d){d=tIc(this,a);var e=4===a.getType()?this.H:_.Ea;return uIc(a,d,e,b,c)}return _.Ea(b.getId(),c.getId())};
rIc.prototype.sort=function(a,b,c){a=a.wc();var d=qIc(a);a&&d&&(d=tIc(this,a),d=vIc(b,d),_.Ga(b,wIc(this,a,d)));c&&0<c&&_.za(b,c,b.length-c)};
var sIc=function(a){return a instanceof _.hl?a:a.getItem()},tIc=function(a,b){b=qIc(b);return _.M(a.O,a,b,_.Ea)},vIc=function(a,b){var c={};a.forEach(function(d){d=sIc(d);var e=d.getId();c[e]=b(d)});return c},wIc=function(a,b,c){return function(d,e){var f=4===b.getType()?a.H:_.Ea;d=sIc(d);e=sIc(e);return uIc(b,function(h){return c[h.getId()]},f,d,e)}},uIc=function(a,b,c,d,e){var f=1===a.nf()?1:-1;if(_.P(a,3)){a=wL(d,!0);var h=wL(e,!0);a=a===h?0:a?-1:1}else a=0;return a||f*(c(b(d),b(e))||_.Ea(d.getId(),
e.getId()))};rIc.prototype.O=function(a,b,c){for(var d=xIc(a[0],c),e=1;e<a.length;e++){var f=xIc(a[e],c);d=1===b(f,d)?f:d}return d};
var xIc=function(a,b){switch(a){case 21:return b.getId()||"";case 3:return b.getMimeType()||"";case 4:return b.eB()||!1;case 12:return b.qz()||0;case 11:return b.uB()||0;case 10:return b.zq()||0;case 2:return(b.getTitle()||"").toLowerCase();case 25:return b.Ay()||0;case 57:return _.y(b,62)||0;case 32:return b.Su()||0;case 9:return b.WC()||0;case 67:return b.UJ()||0;case 98:return b.$v()||0;default:return""}},yIc=function(a,b){this.fields=a;this.rootId="";this.fields.sort();this.H=b;this.Bq=_.uI(_.II(b));
a=_.pK(b);this.V=!(!a||!_.Q(a,1,!1));this.O=!(!a||!_.Q(a,8,!1))};yIc.prototype.Du=function(a){this.rootId=a||""};
var eM=function(a,b,c){b=b.clone();"root"===b.getId()&&b.Ob(a.rootId);_.Nl(b).filter(function(d){return"root"===d.Za()}).forEach(function(d){return d.Jb(a.rootId)});_.uf(b,_.Ml(b).map(function(d){d.Jb(d.Za().toLowerCase());return d}));c&&_.Ll(b,a.fields);b.O().sort();return b},NL=function(a,b,c){if(b instanceof _.nf){b=eM(a,b);var d=_.jxc(b)}else if(b instanceof _.xA)d=b.nn().sort().join(","),_.Q(b,5,!1)&&(d+="|cachedOnly");else{if(b instanceof _.wI)return d=pIc(b),d+"|tdList";if(b instanceof _.EG)return d=
b.nn().sort().join(","),b.O().length&&(d+="|"+nIc(b.O())),d+"|tdMap";throw Error("Xe");}return 3===c?d:d+"|"+zIc(a,b.O(),2===c)},zIc=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(_.Ad(e)).filter(function(h){return f.has(h)}).forEach(function(h){e.delete(h);f.delete(h)});f.size&&(d=d+" - "+_.sJ({fields:[].concat(_.Ad(f)),Bq:a.Bq}));e.size&&(d=d+" + "+_.sJ({fields:[].concat(_.Ad(e)),Bq:a.Bq}));
return d};yIc.prototype.equals=function(a,b,c){var d;c&&(d=3);return NL(this,a,d)===NL(this,b,d)};
var pGc=function(a){if(!a.nn().every(function(b){return!_.xe(b)}))throw new _.Dc("Invalid ids for FindByIdsRequest");},BIc=function(a,b,c){if(_.PJ(b))throw new _.Dc("Did not expect a PeoplePredict request. Use peoplePredictQuery() for PeoplePredict requests. ");AIc(a,b,c)},AIc=function(a,b,c){var d;a.O||(d=_.pJ(3));if(b.getId())throw new _.Dc("Use findByIds() for find by id queries.",d?d:_.pJ(3));if(!b.Ei()||0>=b.Ei())throw new _.Dc("A positive limit is required on an ItemQueryRequest.",d?d:_.pJ(3));
_.fe(b,33);a.V&&c||(d=a.fields.slice(),c&&(d=d.concat(c)),CIc(a,d,b.O()));if(c=(c=b.wc())&&qIc(c))d=b.O().length?b.O():a.fields,CIc(a,d,c);if(_.OJ(b)){if(a.Bq)throw new _.Dc("User must be authenticated for a Quick Access request.");if(!DIc(a)&&20<b.Ei())throw new _.Dc("Limit must be in the range [1, 20].");c=2===_.AK(b);d=_.fe(b,33).length;if(c&&1!==d||d&&!c)throw new _.Dc("A Team Drive Quick Access request must specify the Team Drive corpora and a single Team Drive id.");c=_.Lj(_.pb(_.Jj(_.pb(_.pb(_.pb(_.MI(_.pb(_.Jj(_.MI(b.clone(),
1),30),32),33),45),47),74),75),48),6);d=new _.nf;if(!_.Zj(c,d))throw new _.Dc("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: "+bGc(d,c));}else if(_.Q(b,74,!1))throw new _.Dc("If is_quick_access_for_shared_files_request is set to true, is_quick_access_request must also be true.");if(_.QJ(b)){if(a.Bq)throw new _.Dc("User must be authenticated for a DrivePriority request.");if(2===
_.AK(b))throw new _.Dc("Team Drive corpora is not valid for a Drive Priority request.");a=_.pb(_.pb(_.pb(_.Jj(_.MI(b.clone(),1),30),32),45),52);b=new _.nf;if(!_.Zj(a,b))throw new _.Dc("Some fields specified are not valid for a Drive Priority request. Valid: field, request_descriptor, limit, corpora and is_drive_priority_request. Extra: "+bGc(b,a));}},EIc=function(a,b,c){if(!_.PJ(b))throw new _.Dc("Expected a PeoplePredict request.");AIc(a,b,c);if(a.Bq)throw new _.Dc("User must be authenticated for a People Predict request.");
if(2===_.AK(b))throw new _.Dc("Team Drive corpora is not valid for a People Predict request.");a=_.pb(_.pb(_.pb(_.Jj(_.MI(b.clone(),1),30),32),45),49);b=new _.nf;if(!_.Zj(a,b))throw new _.Dc("Some fields specified are not valid for a People Predict request. Valid: field, request_descriptor, limit, corpora and is_people_predict_request. Extra: "+bGc(b,a));},CIc=function(a,b,c){var d;a.O||(d=_.pJ(3));if(!rBc(b,c,_.puc)){var e=_.sJ({fields:c,Bq:a.Bq}),f=_.sJ({fields:b,Bq:a.Bq});a=_.sJ({fields:sBc(c,
b),Bq:a.Bq});throw new _.Dc("Requested field was not previously specified. Needed "+e+", but had "+(f+". Missing: "+a+"."),d?d:_.pJ(3));}},DIc=function(a){return 200<=_.CK(a.H)&&300>_.CK(a.H)},FIc=function(a){var b=new Set;a=_.m(_.Ml(a));for(var c=a.next();!c.done;c=a.next())switch(_.HOa(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(_.Ad(b))},GIc=function(a){switch(_.CK(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"}},HIc=function(a){_.O.call(this);this.H=a};_.Yf(HIc,_.O);_.g=HIc.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.lO=function(a){this.H.addCallback(function(b){b.lO(a)})};_.g.send=function(a,b){this.H.addCallback(function(c){c.send(a,b)})};_.g.Ya=function(){this.cancel();HIc.wb.Ya.call(this)};
var UBc=function(a){_.bz.call(this);this.H=a;this.V=_.Oe(this.H,"message",this.tob,!1,this)};_.Yf(UBc,_.bz);_.g=UBc.prototype;_.g.eg=null;_.g.send=function(a,b){var c=[];b=this.yya(c,b);a={serviceName:a,payload:b,"--goog.messaging.PortChannel":!0};_.ttc&&(a=(0,_.Ii)(a));this.H.postMessage(a,c)};
_.g.tob=function(a){a=a.Ae;var b=a.data;if(_.ttc)try{b=JSON.parse(b)}catch(e){return}if(_.Ba(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.YBa(a.ports||[],b),d.OEa),null!=b&&d.callback(b))}};
_.g.yya=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,_.M)(this.yya,this,a)):b&&b.constructor==Object?_.Na(b,function(c,d){c=this.yya(a,c);return"_port"==d?{type:"escaped",val:c}:c},this):b};
_.g.YBa=function(a,b){return Array.isArray(b)?b.map((0,_.M)(this.YBa,this,a)):b&&b.constructor==Object?b._port&&"real"==b._port.type?a[b._port.index]:_.Na(b,function(c,d){return this.YBa(a,"_port"==d?c.val:c)},this):b};_.g.Ya=function(){_.Bi(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;UBc.wb.Ya.call(this)};
var XBc=function(a,b){if("*"==b)return new HIc(_.ki(Error("Ye")));var c=new _.Ei(50),d=_.Db(_.aa,c),e=new _.di(d);_.fi(e,d);c.start();_.Oe(c,"tick",function(){var f=new MessageChannel,h=function(){f.port1.removeEventListener("message",h,!0);c.isDisposed()||e.callback(new UBc(f.port1))};f.port1.start();f.port1.addEventListener("message",h,!0);a.postMessage({"--goog.messaging.PortChannel":!0},b,[f.port2])});return new HIc(e)},IIc=function(a){_.O.call(this);this.H=new _.Hqc(a);this.V={};this.O=_.Jqc(this.H,
"private");this.W=_.Jqc(this.H,"public");this.O.registerService("mics",(0,_.M)(this.Llb,this),!0)};_.Yf(IIc,_.O);_.g=IIc.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,_.M)(this.Klb,this,b),!0)};
_.g.Klb=function(a,b){a=a(b.data);var c=b.signature;_.Yh(a).then((0,_.M)(function(d){var e={};e.data=d;e.signature=c;this.O&&this.O.send("mics",e)},this))};var JIc=function(a,b){_.O.call(this);this.W=b;this.started=!1;this.V=new _.Hqc(a);this.Ma(this.V);this.H=new IIc(_.Jqc(this.V,"direct"));this.Ma(this.H)};_.K(JIc,_.O);JIc.prototype.registerService=function(a,b){this.H.registerService(a,b)};JIc.prototype.send=function(a,b,c){this.H.send(a,b||{},function(d){return(c||_.Tf)(d)})};
var WBc=function(a,b){JIc.call(this,a,b);this.O=new IIc(_.Jqc(this.V,"passthrough"));this.Ma(this.O)};_.K(WBc,JIc);var gM=function(a,b,c){a.O.registerService(b,function(d){return c(d)})},hM=function(a,b,c,d){a.O.send(b,c||{},d||_.Tf)};WBc.prototype.start=function(){this.started||(this.started=!0)};var RBc=[],KIc=function(){_.bz.call(this);this.H=null};_.K(KIc,_.bz);KIc.prototype.send=function(a,b){_.$8a(this.H,a,b)};
var YBc=function(){this.O=new KIc;this.H=new KIc;var a=this.O;a.H||(a.H=this.H);a=this.H;a.H||(a.H=this.O)},LIc=function(a,b,c,d){this.clientId=a;this.method=b;this.args=c;this.requestId=d;this.H=void 0},MIc=function(a,b){b=void 0===b?!1:b;void 0===a.H&&(a.H=b)&&QBc(a.args);return{c:a.clientId,m:a.method,a:a.args,req:a.requestId,s:a.H}},NIc=function(a){var b=new LIc(a.c,a.m,a.a,a.req);b.H=a.s;return b},OIc=function(a,b,c){this.data=b?void 0:a;this.error=b;this.O=c;this.H=void 0},PIc=function(a,b){b=
void 0===b?!1:b;void 0===a.H&&a.data&&(a.H=b)&&QBc(a.data);return{d:a.data,err:a.error&&b?a.error.Lc():a.error,uid:a.O,s:b}},QIc=function(a){var b=a.s,c=a.err;c=void 0===c?void 0:b?new _.Cc(JSON.parse(a.err)):c;a=new OIc(c?void 0:a.d,c,a.uid);c||(a.H=b);return a},PBc=function(a,b){this.H=a;this.FD=b};PBc.prototype.get=function(){for(var a={},b=0;b<this.H.length;b++)a[this.H[b]]=this.FD[b];return a};
PBc.prototype.Lc=function(){for(var a={},b={},c=0;c<this.FD.length;c++){var d=this.FD[c],e=this.H[c];d instanceof Error?b[e]=_.eJ(d).Lc():a[e]=d.Lc()}return{r:a,e:b}};RIc=function(a,b){if(b){var c=[],d=[];_.La(a.r,function(e,f){c.push(f);d.push(new _.nK(JSON.parse(e)))});_.La(a.e,function(e,f){c.push(f);e=new _.Cc(JSON.parse(e));d.push(_.qJ(e))});return new PBc(c,d)}return a};VBc=function(a,b,c,d,e){this.channel=a;this.H=b;this.endpoint=c;this.V=d;this.O=e};
_.UK=function(a,b,c){this.response=a;this.Je=void 0===b?0:b;this.M_=void 0===c?null:c};_.VK=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};SIc=function(a){_.VK.call(this,a,void 0,void 0,void 0);this.F3a=new _.Gn};_.K(SIc,_.VK);TIc=function(a,b){this.response=a;this.pageToken=void 0===b?"":b};_.XK=function(a,b,c){this.response=a;this.Je=void 0===b?0:b;this.M_=void 0===c?null:c};
_.WK=function(a,b,c){this.response=a;this.Je=void 0===b?0:b;this.M_=void 0===c?null:c};_.YK=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};UIc={FTb:0,aUb:1,YZb:3,m7b:5,hib:6,0:"ACCOUNT",1:"APPS",3:"ITEMS",5:"USER_PREFS",6:"PEOPLE"};_.AJ=function(a){_.J.call(this,a)};_.K(_.AJ,_.J);_.AJ.prototype.Nh=function(){return _.y(this,1)};_.AJ.prototype.te=function(){return _.B(this,_.Cf,3)};_.DJ=function(a){_.J.call(this,a)};_.K(_.DJ,_.J);
_.DJ.prototype.Ac=function(){return _.y(this,1)};_.DJ.prototype.te=function(){return _.B(this,_.Cf,3)};_.LJ=function(a){_.J.call(this,a)};_.K(_.LJ,_.J);_.LJ.prototype.Nh=function(){return _.y(this,1)};_.LJ.prototype.te=function(){return _.B(this,_.Cf,2)};_.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,_.Cf,2)};_.NJ=function(a){_.J.call(this,a)};_.K(_.NJ,_.J);_.g=_.NJ.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 _.pb(this,4)};_.g.Pg=function(){return _.Cj(this,4)};_.g.te=function(){return _.B(this,_.Cf,7)};_.UJ=function(a){_.J.call(this,a)};_.K(_.UJ,_.J);_.UJ.prototype.Ac=function(){return _.y(this,1)};_.UJ.prototype.te=function(){return _.B(this,_.Cf,2)};
_.UJ.prototype.Ei=function(){return _.ak(this,3,1E3)};_.UJ.prototype.vi=function(a){return _.w(this,3,a)};_.YJ=function(a){_.J.call(this,a)};_.K(_.YJ,_.J);_.YJ.prototype.te=function(){return _.B(this,_.Cf,1)};var VIc=function(){var a=new _.YJ,b=_.Df(new _.Cf,301);return _.I(a,1,b)};_.YJ.prototype.yc=function(){return _.y(this,3)};_.Nuc=function(a){_.J.call(this,a)};_.K(_.Nuc,_.J);_.Nuc.prototype.yc=function(){return _.y(this,1)};_.dK=function(a){_.J.call(this,a)};_.K(_.dK,_.J);
_.dK.prototype.Nh=function(){return _.y(this,1)};_.dK.prototype.te=function(){return _.B(this,_.Cf,4)};var WIc=function(a){_.J.call(this,a)};_.K(WIc,_.J);XIc=function(a,b){return _.w(a,1,b)};_.BJ=function(a){_.J.call(this,a)};_.K(_.BJ,_.J);_.BJ.prototype.getId=function(){return _.y(this,1)};_.BJ.prototype.Ob=function(a){return _.w(this,1,a)};_.RJ=function(a){_.J.call(this,a)};_.K(_.RJ,_.J);_.RJ.prototype.getId=function(){return _.y(this,1)};_.RJ.prototype.Ob=function(a){return _.w(this,1,a)};
_.Auc=function(a){_.J.call(this,a)};_.K(_.Auc,_.J);var YIc=function(a,b,c){_.Di.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(YIc,_.Di);YIc.prototype.JB=function(){return this.O};YIc.prototype.dQ=function(){var a=this;if(this.W)return this.W;var b=_.ai();this.W=b.promise;_.n.setTimeout(function(){a.W=null},5E3);ZIc(this,b);return b.promise};
YIc.prototype.ta=function(){!0===this.O&&(this.log("Became unauthenticated."),this.O=!1,this.V=!0,$Ic(this))};YIc.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 uGc("pb")))};
var aJc=function(a,b){a.ha=b},$Ic=function(a){a.H||(a.H=new _.Yxc(5E3),a.timeout=_.n.setTimeout(function(){return bJc(a)},a.H.Za()))},bJc=function(a){ZIc(a);a.H&&(_.EI(a.H),a.timeout=_.n.setTimeout(function(){return bJc(a)},a.H.Za()))},ZIc=function(a,b){var c=_.Yh();a.ha&&(c=a.ha());c.then(function(){return cJc(a,b)})},cJc=function(a,b){a.log("Checking authentication state.");var c=a.Ba.then(function(d){return d.Qe(new _.Ouc)});b?c.then(function(){b.resolve(XIc(new WIc,1))},function(d){var e=_.QB(d).Tg;
d=0;_.Gtc(e)?(a.log("Checked authentication state: unauthenticated."),d=2):(a.log("Checked authentication state: error occurred."),_.oq(e),_.w(e,21,"Checked authentication state: error occurred."),a.ka(e));e=new WIc;XIc(e,d);b.resolve(e)}):c.then(null,function(d){d=_.QB(d);_.Gtc(d.Tg)&&a.V&&(a.dispatchEvent(new uGc("qb")),a.V=!1)})};YIc.prototype.log=function(a){this.ma.info("drive.ds.sync.auth.StateManager",a)};_.Puc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};
_.Euc=function(a){this.H=a;this.type=1};_.Fuc=function(a){this.H=a;this.type=0};_.Muc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};dJc=function(a){return _.dk(a,_.YI,3,_.ZI)||_.dk(a,_.jK,4,_.ZI)||_.dk(a,_.aL,5,_.ZI)||_.dk(a,_.gK,6,_.ZI)||_.dk(a,_.FJ,7,_.ZI)||_.dk(a,_.yJ,8,_.ZI)||_.dk(a,_.CJ,9,_.ZI)||_.dk(a,_.gJ,10,_.ZI)};eJc=function(a){_.J.call(this,a)};_.K(eJc,_.J);_.g=eJc.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Ob=function(a){return _.w(this,1,a)};
_.g.Wz=function(){return _.y(this,3)};_.g.Ke=function(){return _.y(this,4)};_.g.Li=function(a){return _.w(this,4,a)};var fJc=function(a){this.eg=a;this.H=new Map;this.O=this.eg.W};
fJc.prototype.create=function(a,b){if(0!=MFc(b)){var c=this.eg.H(106001);if(c){var d=MFc(b),e=HL(c);_.w(e,2,d);d=HL(c);e=null;if(b instanceof _.QG||b instanceof _.xA||b instanceof _.nf||b instanceof _.SJ||b instanceof _.TD||b instanceof _.EG||b instanceof _.wI||b instanceof _.JI||b instanceof _.HG||b instanceof _.kA)e=b.te();e=e&&_.Q(e,2,!1);_.w(d,7,"boolean"==typeof e?e:void 0);d=HL(c);b=b instanceof _.nf?0<_.Nl(b).length:void 0;_.w(d,8,b);this.H.set(a,c)}}};
var gJc=function(a,b,c){if(a=a.H.get(b))a=HL(a),_.w(a,5,c)},hJc=function(a,b,c){(a=a.H.get(b))&&_.P(HL(a),8)&&(a=HL(a),_.w(a,9,c))},iJc=function(a,b,c,d,e){var f=a.H.get(b);f&&(HL(f).Dc(c),HL(f).Ki(d),null!=e&&(c=HL(f),_.w(c,6,e)),f.Aj(),a.H.delete(b))},jJc=function(a,b,c){var d=a.H.get(b);if(d){var e=a.O.Bb(c);c=NFc(c);if(1==e||2==c)e=_.QK(_.wtc,c),d=HL(d),d=3==e||8==e?!_.P(d,5):0!=e?_.Stc.has(e):null,iJc(a,b,1,e,d)}},kJc=function(a,b,c){var d=a.O.Bb(c);d=_.QK(_.vtc,d||22);var e=NFc(c);e=_.QK(_.wtc,
e);iJc(a,b,d,e,"undefined"!=typeof _.UK&&c instanceof _.UK||"undefined"!=typeof _.WK&&c instanceof _.WK||"undefined"!=typeof _.XK&&c instanceof _.XK?c.M_:null)},iM=function(a,b,c){c=void 0===c?3:c;var d=a.H.get(b);d&&(HL(d).Dc(c),d.Aj(),a.H.delete(b))},lJc=[2,4],jM=function(a){_.J.call(this,a,-1,lJc)};_.K(jM,_.J);jM.prototype.Bb=function(){return _.y(this,1)};jM.prototype.Dc=function(a){return _.w(this,1,a)};jM.prototype.dk=function(){return _.y(this,3)};
var mJc=[2],kM=function(a){_.J.call(this,a,-1,mJc)};_.K(kM,_.J);kM.prototype.Bb=function(){return _.y(this,1)};kM.prototype.Dc=function(a){return _.w(this,1,a)};kM.prototype.O=function(){return _.Oj(this,VL,2)};var nJc=function(a,b){return _.Kj(a,2,b)};kM.prototype.dk=function(){return _.y(this,3)};var oJc=[4,9],pJc=function(a){_.J.call(this,a,-1,oJc)};_.K(pJc,_.J);_.g=pJc.prototype;_.g.Bb=function(){return _.y(this,1)};_.g.Dc=function(a){return _.w(this,1,a)};_.g.UVa=function(){return _.y(this,2)};
_.g.fMa=function(){return _.y(this,3)};_.g.lsb=function(){return _.Oj(this,_.aJ,4)};var qJc={U6b:0,w1b:1,z1b:2,x1b:4,e_b:5,qXb:6,l_b:7,M1b:8},rJc=function(a){_.J.call(this,a)};_.K(rJc,_.J);rJc.prototype.getUrl=function(){return _.y(this,1)};var lM=function(a){_.J.call(this,a)};_.K(lM,_.J);var sJc=function(a,b){return _.w(a,1,b)};lM.prototype.getName=function(){return _.y(this,2)};lM.prototype.hd=function(a){return _.w(this,2,a)};lM.prototype.getEmail=function(){return _.y(this,3)};
var tJc=function(a,b){return _.w(a,3,b)};lM.prototype.np=function(){return _.Cj(this,3)};var uJc=[1],vJc=function(a){_.J.call(this,a,-1,uJc)};_.K(vJc,_.J);var wJc=function(a,b){return _.Kj(a,1,b)},xJc=[2],mM=function(a){_.J.call(this,a,-1,xJc)};_.K(mM,_.J);mM.prototype.Bb=function(){return _.y(this,1)};mM.prototype.Dc=function(a){return _.w(this,1,a)};mM.prototype.xl=function(){return _.Oj(this,_.FG,2)};var yJc=function(a,b){return _.Kj(a,2,b)};mM.prototype.dk=function(){return _.y(this,3)};
var zJc=function(a){_.J.call(this,a)};_.K(zJc,_.J);_.g=zJc.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,_.Cc,3)};_.g.Ie=function(a){return _.I(this,3,a)};_.g.co=function(){return _.Cj(this,3)};var AJc=[1],BJc=function(a){_.J.call(this,a,-1,AJc)};_.K(BJc,_.J);var CJc=function(a,b){return _.Ij(a,1,b)},DJc=function(a,b){this.O=a|0;this.H=b|0};
DJc.prototype.equals=function(a){return this===a?!0:a instanceof DJc?this.O===a.O&&this.H===a.H:!1};DJc.prototype.Ec=function(){return 31*this.O+17*this.H|0};
var EJc=function(a,b){return new DJc(a,b)},FJc=function(a,b){b=~b;a?a=~a+1:b+=1;return EJc(a,b)},GJc=function(a){var b="-"===a[0];a=a.slice(b?3:2);return(b?FJc:EJc)(parseInt(a.slice(-8),16),parseInt(a.slice(-16,-8)||"",16))},HJc=function(){this.H=this.W=this.O=this.V=null},IJc=function(a){this.W=a;this.O=new Map;this.V=new Set;this.enabled=!0;this.error=null;this.started=!1},nM=function(a,b,c){if(a.started)throw Error("gf");c={Go: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)}},oM=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.Go.delete(b);if(0===e.Go.size)try{e.callback()}catch(f){throw a.enabled=!1,a.error=f?_.qJ(f):null,f;}}}};IJc.prototype.H=function(a){return this.V.has(a)};
IJc.prototype.start=function(){this.started=!0};IJc.prototype.log=function(a){this.W.info("drive.ds.MilestoneManager",a)};var JJc=function(a,b,c){this.id=a;this.O=b;this.H=c},KJc=function(a,b){return new JJc((a?a:b).getId(),a,b)},pM=function(a){return new JJc(a.getId(),null,a)},LJc=function(a,b){this.ot=a;this.zv=b;this.VE=!0;this.V7=!1;this.Je=0},qM=function(a,b){(a.VE=b)||a.sJ()};_.g=LJc.prototype;
_.g.Ika=function(a,b){if(5===this.vE(a))throw Error("kf");for(var c=[],d=_.m(this.qy()),e=d.next();!e.done;e=d.next())e=e.value,dM(this.ot,a,e.getItem())&&c.push(e);this.zv.sort(a,c,b);return c};_.g.Ed=function(){return this.qy().length};_.g.fk=function(a,b){a=this.Ika(a,b);a=oCc(a);b=new _.pB;b.Uw(a);b.Dc(this.ZG()?6:1);return b};_.g.update=function(a){var b=this.ts(a.O),c=this.ts(a.H);if(!b&&!c)return!1;b&&this.jJ(a.O);c&&this.oR(a.H);return!0};
_.g.vE=function(a){return this.VE&&this.V7?gIc(a)?1:5:5};_.g.ZW=function(){this.V7=!0};_.g.ts=function(a){return!!a&&this.VE};_.g.Ki=function(a){this.Je=a};_.g.Ze=function(){return this.Je};var rM=function(a,b,c,d,e,f){f=void 0===f?"":f;LJc.call(this,a,b);var h=this;this.ha=c;this.nextPageToken=f;this.Hd=[];this.O={};this.request=eM(c,d,!0);this.W=NL(c,d);this.H=!e;MJc(this,e);this.V=function(k,l){return h.zv.compare(h.request,k,l)}};_.K(rM,LJc);_.g=rM.prototype;_.g.ud=function(){return this.request};
_.g.MM=function(){return this.W};_.g.oR=function(a){var b=this.O[a.getId()];b&&this.jJ(b);gBc(this.Hd,a,this.V);this.O[a.getId()]=a;a.count++;this.Hd.length>this.request.Ei()&&(this.jJ(_.fa(this.Hd)),this.H=!1)};_.g.jJ=function(a){var b=this.Hd,c=_.Fa(b,a,this.V);0<=c&&_.sa(b,c);_.Ua(this.O,a.getId());a.count--};_.g.sJ=function(){this.Hd.forEach(function(a){a.count--});this.Hd=[];this.O={}};_.g.qy=function(){return this.Hd};
_.g.vE=function(a){var b;if(b=this.ha.equals(this.request,a,!0))a=a.O(),b=this.request.O(),b=rBc(b,a,_.puc);return b?this.H?1:6:5};_.g.Ika=function(a,b){if(5===this.vE(a))throw Error("kf");b=b?Math.min(b,this.Hd.length):this.Hd.length;return _.ya(this.Hd,0,b)};_.g.ts=function(a){if(!LJc.prototype.ts.call(this,a)||!dM(this.ot,this.request,a.getItem()))return!1;if(this.H||_.Q(this.request,48,!1))return!0;var b=_.fa(this.Hd);return!!b&&0>=this.V(a,b)};_.g.ZG=function(){return this.H?!1:!0};
_.g.getType=function(){return"CacheHintCorpusCache"};_.g.zl=function(a,b){var c=this,d=_.fa(this.Hd);!this.H&&d&&_.ka(a,function(e){return e.getId()===d.getId()})&&(b?(this.jJ(d),MJc(this,_.fa(a))):this.H=!0);_.Ia(a,function(e){c.update(pM(e))})};var MJc=function(a,b){b&&dM(a.ot,a.request,b.getItem())&&a.oR(b)};rM.prototype.xy=function(){return this.nextPageToken};var sM=function(a,b){LJc.call(this,a,b);this.Hd=new Map};_.K(sM,LJc);sM.prototype.oR=function(a){this.Hd.set(a.getId(),a);a.count++};
sM.prototype.jJ=function(a){this.Hd.delete(a.getId());a.count--};sM.prototype.sJ=function(){for(var a=_.m(this.Hd.values()),b=a.next();!b.done;b=a.next())b.value.count--;this.Hd=new Map};sM.prototype.qy=function(){return Array.from(this.Hd.values())};var NJc=function(a,b){sM.call(this,a,b);this.ZW()};_.K(NJc,sM);_.g=NJc.prototype;
_.g.vE=function(a){var b=this,c=sM.prototype.vE.call(this,a);if(5===c)return c;if(0<_.fe(a,33).length)return 5;a=_.Nl(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.ts=function(a){return sM.prototype.ts.call(this,a)&&!(null===a||void 0===a?0:a.getItem().yc())};_.g.Ika=function(a,b){for(var c=[],d=_.m(this.qy()),e=d.next();!e.done;e=d.next())e=e.value,dM(this.ot,a,e.getItem())&&c.push(e);this.zv.sort(a,c,b);return c};_.g.ud=function(){return new _.nf};
_.g.MM=function(){return null};_.g.getType=function(){return"MyDriveCorpusCache"};_.g.ZG=function(){return!1};var OJc=function(a){return[].concat(_.Ad(a.Hd.values())).filter(function(b){return b.H}).map(function(b){return b.getId()})},tM=function(a,b,c,d){sM.call(this,a,b);var e=this;this.H=d;nM(c,["aU7Ts","BNEDtc"],function(){return e.ZW()})};_.K(tM,sM);
tM.prototype.vE=function(a){var b=this,c=sM.prototype.vE.call(this,a);if(5==c)return c;if(0<_.fe(a,33).length)return 5;a=_.Nl(a);return 0<a.length&&!a.every(function(d){d=b.Hd.get(d.Za());return null!=d&&!d.getItem().yc()&&ABc(d.getItem())&&!_.P(d.getItem(),108)})?5:1};tM.prototype.ts=function(a){return sM.prototype.ts.call(this,a)&&PJc(this,a.getItem())};var PJc=function(a,b){if(_.P(b,31)||!a.V7)return!0;var c=a.H();return b.wk().some(function(d){var e=a.Hd.get(d);return d==c||null!=e&&ABc(e.getItem())})};
_.g=tM.prototype;_.g.ZW=function(){sM.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;PJc(this,c.getItem())||(c.count--,this.Hd.delete(b))}};_.g.ud=function(){return new _.nf};_.g.MM=function(){return null};_.g.getType=function(){return"SubscribedCorpusCache"};_.g.ZG=function(){return!1};
var QJc=/^[\x00-\x7F]*$/,uM=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=""};uM.prototype.Du=function(a){this.rootId=a||""};
var gIc=function(a){return RJc(a)&&0==_.fe(a,40).length&&void 0==_.y(a,41)},RJc=function(a){var b=!0;_.Oj(a,_.pf,13).forEach(function(d){"me"!=d.Za()&&(b=!1)});var c=a.wc();c=!c||5!=c.getType();return 0==_.Oj(a,_.Hl,5).length&&0==_.Oj(a,_.pf,14).length&&0==_.Oj(a,_.pf,15).length&&!_.Cj(a,58)&&!_.P(a,18)&&!_.P(a,34)&&0==_.Oj(a,_.Al,35).length&&0==_.Oj(a,_.Al,38).length&&c&&b&&0==_.fe(a,39).length&&!_.y(a,42)&&0==_.Oj(a,_.zl,44).length&&!_.OJ(a)&&!_.PJ(a)&&!_.QJ(a)&&0==_.Oj(a,_.Bl,57).length&&SJc(a)&&
!_.B(a,_.Ioa,59)&&null==_.P(a,60)&&0==_.Oj(a,_.pf,68).length&&0==_.Oj(a,_.pf,67).length&&null==_.P(a,69)&&!_.P(a,73)},SJc=function(a){return _.Oj(a,_.Il,4).every(function(b){b=b.Za();return!b||!b.includes("*")&&QJc.test(b)})};uM.prototype.O8=function(a,b){var c=this;return b.filter(function(d){return dM(c,a,d)})};var dM=function(a,b,c){return!!c&&TJc(a,c)&&a.H.every(function(d){return d.call(a,b,c)})},TJc=function(a,b){return b.getId()!=a.rootId&&!cM(b)};
uM.prototype.W=function(a,b){var c=!0,d=_.Oj(a,_.Il,4);if(!SJc(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,_.Ad(k.split(RegExp("\\b"))));for(k=0;k<e.length&&c;k++)l=e[k],p=!0,0!=(0,_.qg)(l).length&&(0==l.replace(/\./g,
"").length&&(p=!1),l=!!h.match(p?new RegExp("(^|[^\\w])"+_.Rg(l)+"($|[^\\w])|(^|[ ])"+_.Rg(l)):new RegExp(_.Rg(l))),c=c&&(f?!l:l))}}}return c};
uM.prototype.O=function(a,b){var c=_.Ml(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();_.qK(a)&&(q=q.toLowerCase(),l=l.toLowerCase());k=0===_.Fj(k,3,0)?q===l:l.includes(q);p?(e++,h=h||k):(d++,f=f||k)}return d&&!f||e&&h?!1:!0};
uM.prototype.V=function(a,b){var c=!0;a=_.Oj(a,_.Fl,7);a=_.m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=b.zq();c=c&&UJc(e,d)}return c};uM.prototype.ha=function(a,b){var c=!0;a=_.Oj(a,_.Fl,8);a=_.m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=b.qz();c=c&&UJc(e,d)}return c};var UJc=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=uM.prototype;_.g.wEb=function(a,b){var c=a.Xh();a=(a=_.AK(a))&&(2==a||3==a);return null==c||c==!!b.Xh()&&(!c||1==b.Yo()||!!a)};_.g.sEb=function(a,b){return null==_.P(a,10)||_.P(a,10)==!!b.eB()};_.g.iEb=function(a,b){return null==_.P(a,11)||_.P(a,11)==!!_.P(b,6)};_.g.lEb=function(a,b){a=_.Nl(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=_.Oj(a,_.pf,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.Yo();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.Ay():!0)};_.g.gEb=function(a,b){var c=_.P(a,17);a=(a=_.AK(a))&&(2==a||3==a);return null==c||c==!!b.HI()&&(!c||1==b.Yo()||!!a)};_.g.jEb=function(a,b){b=KBc(b);return null==_.P(a,19)||_.P(a,19)==!!_.dl(b)};
_.g.qEb=function(a,b){var c=_.ab(_.fe(b,56));a=_.Oj(a,_.zK,25);return 0==a.length?!0:a.every(function(d){return c[d.Za()]})};_.g.rEb=function(a,b){if(0==a.BB().length)return!0;var c=_.ab(b.BB().map(function(d){return d.ZQ()}));a=_.ab(a.BB().map(function(d){return d.ZQ()}));return _.Oa(a,function(d,e){return c[e]})};_.g.tEb=function(a,b){a=_.fe(a,33);return!a.length||a.includes(b.yc()||"")};_.g.hEb=function(a,b){var c=_.ab(_.fe(b,50));a=_.Oj(a,_.Gl,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,_.uK,86),null!=b&&_.y(a,41)==_.y(b,3)):!0};_.g.uEb=function(a,b){if(_.fe(a,40).length){if(b=_.B(b,_.uK,86)){var c=_.ab(_.fe(b,2));return _.fe(a,40).some(function(d){return c[d]})}return!1}return!0};_.g.dEb=function(a,b){var c=_.AK(a);return 1==c?(b=_.P(b,31),!!_.Nl(a).length||!!_.Oj(a,_.Al,35).length||1==_.P(a,18)||_.OJ(a)||_.PJ(a)||_.QJ(a)||!!a.Pp()||null==b||b):2==c?!!b.yc():!0};
_.g.nEb=function(a,b){return _.OJ(a)?!_.Cj(b,100)||b.Xh()?!1:_.Q(a,74,!1)?!!_.P(_.ll(b),4):!!_.P(_.ll(b),3):!0};_.g.mEb=function(a,b){return _.PJ(a)?!!_.ml(b).length&&!b.Xh():!0};_.g.eEb=function(a,b){return _.QJ(a)?!!_.nl(b).length&&!b.Xh():!0};_.g.oEb=function(a,b){return _.Cj(a,50)?_.Q(a,50,!1)?_.Cj(b,101)&&0!==_.y(b,101):!_.Cj(b,101):!0};_.g.xEb=function(a,b){a=a.Pp();return!a||_.fe(b,120).includes(a)};
_.g.fEb=function(a,b){b=_.B(b,_.sK,138);if(null==_.P(a,65)||null==b)return!0;b=2==_.y(b,1);return _.P(a,65)==b};var vM=function(a,b,c,d){d=void 0===d?5E3:d;sM.call(this,a,b);this.teamDriveId=c;this.limit=d};_.K(vM,sM);_.g=vM.prototype;
_.g.vE=function(a){var b=this,c=sM.prototype.vE.call(this,a);if(5==c)return c;c=_.Nl(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=_.fe(a,33);return 0!=a.length&&a.includes(this.teamDriveId)?1:5};_.g.ts=function(a){return sM.prototype.ts.call(this,a)&&!!a&&a.getItem().yc()==this.teamDriveId&&!cM(a.getItem())};_.g.ZG=function(){return!1};_.g.ud=function(){var a=new _.nf;_.Ql(a,[this.teamDriveId]);_.Rl(a,2);return a};
_.g.MM=function(){return null};_.g.yc=function(){return this.teamDriveId};_.g.getType=function(){return"TeamDriveCorpusCache: "+this.teamDriveId};var VJc=function(a,b){this.W=a;this.ka=b;this.ha=[];this.O=this.H=null;this.V=[];a=new _.nf;_.w(a,48,!0);b=new _.md;_.nd(b,11);_.od(b,2);_.of(a,b);this.ma=eM(this.W,a,!0)};
VJc.prototype.add=function(a){a instanceof tM?this.H=a:a instanceof NJc?this.O=a:a instanceof rM?(this.log("Adding new cache hint for "+NL(this.W,a.ud(),2)),this.ha.push(a)):a instanceof vM&&this.V.push(a)};
VJc.prototype.remove=function(a){var b=this;if(a instanceof tM)this.H&&(qM(this.H,!1),this.H=null);else if(a instanceof NJc)this.O&&(qM(this.O,!1),this.O=null);else if(a instanceof rM){var c=_.ja(this.ha,function(d){return b.W.equals(d.ud(),a.ud())});0<=c&&(qM(this.ha[c],!1),_.sa(this.ha,c))}else a instanceof vM&&(c=_.ja(this.V,function(d){return b.W.equals(d.ud(),a.ud())}),0<=c&&(qM(this.V[c],!1),_.sa(this.V,c)))};
var WJc=function(a){var b=[];a.H&&b.push(a.H);a.O&&b.push(a.O);_.xa(b,_.wa(a.ha));_.xa(b,_.wa(a.V));return b},XJc=function(a,b){b=void 0===b?!1:b;return a.ha.filter(function(c){return a.H&&b?(c=c.ud().clone(),_.pb(c,32),_.Lj(c,26),!_.Zj(a.ma,c)):!0})};VJc.prototype.XV=function(){return _.wa(this.V)};var YJc=function(a,b){return _.og(a.V,function(c){return c.yc()===b})},ZJc=function(a,b){return XJc(a).find(function(c){return a.W.equals(c.ud(),eM(a.W,b,!0))})};
VJc.prototype.log=function(a,b){this.ka.log("drive.ds.sync.cache.CorpusCacheList",a,void 0===b?"info":b)};var $Jc=function(a,b){_.ti.call(this,"Db");this.ids=a;this.error=b};_.K($Jc,_.ti);$Jc.prototype.getError=function(){return this.error};$Jc.prototype.H=function(){return this.ids};var aKc=function(a){_.ti.call(this,"Eb");this.people=a};_.K(aKc,_.ti);aKc.prototype.getPeople=function(){return this.people};var bKc=function(a){_.ti.call(this,"Fb");this.people=a};_.K(bKc,_.ti);
bKc.prototype.getPeople=function(){return this.people};var dKc=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);cKc(this)};dKc.prototype.Ze=function(){return this.Je};
var eKc=function(a){return 0===a.Je?1:2===a.Je||(1===a.Je||4===a.Je)&&(a.person.np()||a.O)?3:2},fKc=function(a,b,c){if(_.y(b,1)!==_.y(a.person.clone(),1))return!1;6===c&&(a.O=!0);var d=eKc(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=tJc(b.clone(),a.getEmail(b)),e=!_.Zj(a.person,b),a.person=b,a.Je=c,cKc(a),e||d!==eKc(a);if(4===c)return a.Je=c,cKc(a),d!==eKc(a);c=b;return!a.person.getEmail()&&c.getEmail()?(tJc(a.person,a.getEmail(b)),!0):!1};
dKc.prototype.getEmail=function(a){var b=this.person.getEmail();a=a.getEmail();return!a&&b&&0!==b.length?b:a};var cKc=function(a){1===a.Je?(a.W=Date.now(),a.V=null):4===a.Je&&(a.V=Date.now())},hKc=function(a,b,c,d){_.Di.call(this);var e=this;this.O=a;this.V=b;this.W=c;this.ha=d;this.H=[];this.ka=new _.UI(function(){return gKc(e)},100,this)};_.K(hKc,_.Di);hKc.prototype.$g=function(a){a&&_.XI(this.O)&&(this.H.includes(a)||this.H.push(a),this.ka.oe())};
var gKc=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)}})};hKc.prototype.sendRequest=function(a){var b=this;return this.W.then(function(c){var d=c.Qe;var e=new _.XJ;e=_.Ij(e,1,a);return d.call(c,e)}).then(function(c){c=_.Oj(c,lM,1);b.dispatchEvent(new aKc(c))},function(c){c=_.QB(c);b.dispatchEvent(new $Jc(a,c))})};
hKc.prototype.log=function(a){this.V.info("drive.ds.sync.query.PeopleQueryRunner",a)};
var kKc=function(a,b,c,d,e){_.Di.call(this);var f=this;this.H=new Map;this.O=new Set;this.V=new Map;this.Sc=new _.Ye(this);this.Ma(this.Sc);this.ka=b;this.ha=d;this.ta=_.ak(_.B(a,zEc,85)||new zEc,1,864E5);this.W=new hKc(a,b,c,e);this.ma=new _.kE(function(){var h,k=null===(h=f.ha)||void 0===h?void 0:JL(h,106015);if(k){h=_.B(_.PK(k),hFc,11);if(!h){h=new hFc;var l=_.PK(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();iKc(f,
h,1);f.ma.oe()});this.Sc.listen(this.W,"Db",function(h){jKc(f,h)})};_.K(kKc,_.Di);kKc.prototype.get=function(a){var b=this.H.get(a);return b?(lKc(this,b)&&mKc(this,a),b):null};var mKc=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 _.Gn;a.V.set(b,c);return c.promise};kKc.prototype.Sb=function(a){var b=this;return nKc(this,a)?Promise.resolve(this.H.get(a)):mKc(this,a).then(function(){return b.H.get(a)})};
kKc.prototype.vc=function(){return 0===this.H.size};kKc.prototype.clear=function(){this.log("Clearing the PeopleCache.");this.H.clear();this.O.clear()};
var oKc=function(a){return[].concat(_.Ad(a.H.values())).filter(function(b){return 3===eKc(b)&&4!==b.Ze()}).map(function(b){return b.person.clone()})},pKc=function(a,b){return(a=a.H.get(b))?[].concat(_.Ad(a.H)):[]},qKc=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(_.Ad(e.H)).length&&(a.H.delete(d),a.O.delete(d)))}},iKc=function(a,b,c){if(![1,2].includes(c))throw Error("lf");0!==b.length&&(a.log("Importing "+b.length+" from "+
(Object.keys(qJc)[c]+".")),rKc(a,b,c))},tKc=function(a,b,c,d){0!==b.length&&sKc(a,b,c,void 0===d?0:d)},nKc=function(a,b){b=a.H.get(b);return!(!b||3!==eKc(b)||lKc(a,b))},sKc=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)fKc(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&&mKc(k,_.y(f,1));l=new dKc(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},lKc=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}};kKc.prototype.log=function(a,b){this.ka.log("drive.ds.sync.cache.PeopleCache",a,void 0===b?"info":b)};
var jKc=function(a,b){b=b.H().map(function(c){var d=a.H.get(c);return d?d.person.clone():sJc(new lM,c)});rKc(a,b,4)},rKc=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))}sKc(a,b,void 0,c)&&a.dispatchEvent(new bKc(b))},uKc=function(a,b,c,d,e,f){_.Di.call(this);var h=this;this.Sc=new _.Ye(this);this.Ma(this.Sc);this.H=new kKc(a,b,c,e,f);this.O=_.pK(a)||new _.Zvc;this.Sc.listen(this.H,"Fb",function(k){return h.dispatchEvent(k)})};
_.K(uKc,_.Di);uKc.prototype.UO=function(a){var b=this;if(a.H){var c=a.H.getItem(),d=vKc(this,[c]).map(function(e){return wKc(b,e)});tKc(this.H,d,a.H.getId(),this.Ze(_.y(c,82)))}a.O&&qKc(this.H,a.id,xKc(this,a))};uKc.prototype.Ze=function(a){return _.Ztc.get(a)||0};
var xKc=function(a,b){var c=yKc(a,b.O),d=yKc(a,b.H);return c.filter(function(e){return!d.includes(e)})},yKc=function(a,b){return b?zKc(a,[b.getItem()]):[]},BKc=function(a,b){b=b.getUser();tKc(a.H,[wKc(a,b)],"ACCOUNT");AKc(a,b)},DKc=function(a,b){var c=_.Oj(b,_.GK,2).map(function(d){var e=_.B(d,_.Rk,9,1);return a.H.Sb(sL(e)).then(function(){return void CKc(a,[e])})});return Promise.all(c).then(function(){return b})},EKc=function(a,b){CKc(a,vKc(a,b))},CKc=function(a,b){b=_.m(b);for(var c=b.next();!c.done;c=
b.next())c=c.value,sL(c)&&AKc(a,c)},FKc=function(a,b,c){for(var d=new Set,e=_.m(b),f=e.next();!f.done;f=e.next())f=f.value,sL(f)&&(d.add(sL(f)),tKc(a.H,[wKc(a,f)],c));return Promise.all([].concat(_.Ad(d)).map(function(h){return a.H.Sb(h)})).then(function(){return CKc(a,b)})},HKc=function(a,b){return zKc(a,[b]).some(function(c){return!GKc(a,c)})},GKc=function(a,b){return nKc(a.H,b)},zKc=function(a,b){var c=new Set;a=vKc(a,b);a=_.m(a);for(b=a.next();!b.done;b=a.next())(b=sL(b.value))&&c.add(b);return[].concat(_.Ad(c))},
vKc=function(a,b){return b.map(function(c){var d=c.Zv();d=d?[].concat(_.Ad(d.bR()),_.Ad(_.Oj(d,_.Rk,3))):[];var e=c.Gf();e=(e=e&&_.ke(e))?vKc(a,[e]):[];return[].concat(_.Ad(_.jl(c)),[c.zm(),c.St(),c.Jq(),c.jD()],_.Ad(d),_.Ad(e))}).flat().filter(function(c){return c&&!!sL(c)})};uKc.prototype.Gd=function(a){return pKc(this.H,a).filter(function(b){return"ACCOUNT"!==b})};
var IKc=function(a){return wJc(new vJc,oKc(a.H))},JKc=function(a,b){return b.map(function(c){c=c.clone();var d=vKc(a,[c]);d=_.m(d);for(var e=d.next();!e.done;e=d.next())e=e.value,_.pb(e,3),_.pb(e,8),_.pb(e,5);return c})},LKc=function(a,b){return b.some(function(c){return KKc(a,c)})},KKc=function(a,b){return vKc(a,[b]).some(function(c){return _.Cj(c,3)||c.np()||_.Cj(c,5)})},AKc=function(a,b){var c=a.H.get(sL(b));if(c){a=c.person.clone();var d=_.cvc(b.hd(a.getName()),a.getEmail());c=eKc(c);_.w(d,16,
c);(a=_.B(a,rJc,4))&&b.Mn(a.getUrl())}},wKc=function(a,b){var c=sL(b);c=tJc(sJc(new lM,c).hd(b.getName()),b.getEmail());var d=new rJc;var e=_.y(b,5);d=_.w(d,1,e);c=_.I(c,4,d);_.Q(a.O,9,!1)&&(_.pb(b,3),_.pb(b,8),_.pb(b,5));return c},MKc=function(){this.suggestionSessionId=this.W=null;this.V=[];this.incompleteSearch=!1;this.O=[];this.H=!0};MKc.prototype.dg=function(){return this.suggestionSessionId};MKc.prototype.$za=function(){return this.O};MKc.prototype.vc=function(){return this.H};
var NKc=function(a){if(!a)return null;a=a.split("/");return 2>a.length?null:a[1]},OKc=function(a,b){a=NKc(a);b=NKc(b);return!(!a||!b||a!==b)},PKc=function(a){return a.Ac()+"_"+NKc(a.getName())},QKc=function(a,b){var c=_.fe(a,1).map(function(d,e){return b[Number(e)].value.F3a.promise});return Promise.allSettled(c).then(function(d){return _.fe(a,1).map(function(e,f){e=e.toString();var h=new zJc;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})})},wM=function(a,
b){_.O.call(this);this.O=a;this.request=b;this.Ly=new Set;this.status=6;this.V=new Map;this.Je=0};_.K(wM,_.O);_.g=wM.prototype;_.g.ji=function(a){var b=this;this.Ly.add(a);return this.resize().then(function(){return b.iO(a)})};_.g.kk=function(a){this.Ly.delete(a);0===this.Ly.size&&this.dispose()};_.g.Ze=function(){return this.Je};_.g.Ki=function(a){this.Je=a};
_.g.oD=function(a,b,c){var d=this;c=void 0===c?1:c;var e=!1;a.forEach(function(f){e=d.Ku(f,c)||e});b||(e=1!==this.status||e,this.status=1);return e?this.IX():_.Yh([])};_.g.IX=function(){for(var a=[],b=_.m(this.Ly.values()),c=b.next();!c.done;c=b.next())a.push(this.iO(c.value));return _.$h(a)};
_.g.HX=function(a){this.status=3;for(var b=[],c={},d=_.m(this.Ly.values()),e=d.next();!e.done;c={Iqa:c.Iqa},e=d.next())c.Iqa=e.value,b.push(this.O.then(function(f){return function(h){return void h.HX(f.Iqa,a)}}(c)));return _.$h(b)};_.g.vA=function(){for(var a=this,b=[],c={},d=_.m(this.Ly.values()),e=d.next();!e.done;c={Jqa:c.Jqa},e=d.next())c.Jqa=e.value,b.push(this.O.then(function(f){return function(h){return void h.vA(f.Jqa)}}(c)));return _.$h(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.Ly.forEach(function(d){d=b.tka(d);c=Math.max(c,d.Ei?d.Ei()||0:0)});a.jfa(c)})};var RKc=function(a,b){return b?a.V.get(a.Yja(b))||null:null};_.g=wM.prototype;_.g.SH=function(a,b){var c=RKc(this,a);b=VHc(c,b);this.V.set(this.Yja(a),b)};_.g.Yja=function(a){return a};_.g.gMa=function(){return[]};_.g.iO=function(a){var b=this;return this.O.then(function(c){return void c.iO(a,b.fk())})};_.g.removeItem=function(){};
var xM=function(a,b){_.Di.call(this);this.request=a;this.pageToken="";this.H=this.O=!1;this.data=[];this.limit=0;this.W=b};_.K(xM,_.Di);var SKc=function(a){return!a.O||""!==a.pageToken};xM.prototype.$g=function(a){this.limit=void 0===a?1E5:a;return!this.H&&this.data.length<=this.limit&&SKc(this)?TKc(this):_.Yh()};
var TKc=function(a){a.O=!0;a.H=!0;var b=a.bia(a.request,a.limit-a.data.length,a.pageToken);return a.W(b).then(function(c){return UKc(a,c)},function(c){return a.handleError(c)})},UKc=function(a,b){a.H=!1;a.pageToken=a.nka(b);b=a.Bja(b);b.forEach(function(c){return a.data.push(c)});a.V5(b);return a.data.length<a.limit&&SKc(a)?_.$h([_.Yh(b),TKc(a)]).then(function(c){return c[0].concat(c[1])}):_.Yh(b)};
xM.prototype.handleError=function(a){this.H=!1;a=_.eJ(a);var b=new LL(a);this.hMa(b);this.dispatchEvent(b);return _.Zh(a)};xM.prototype.V5=function(){};xM.prototype.hMa=function(){};var VKc=function(a,b,c){xM.call(this,c,function(d){return a.then(function(e){return e.Qe(d)}).Dg(function(e){return void _.rJ(e)})});this.V=b};_.K(VKc,xM);_.g=VKc.prototype;_.g.bia=function(a,b,c){a=a.clone();a.vi(b);return new _.Cuc(a,c)};_.g.nka=function(a){return a.pageToken||""};_.g.Bja=function(a){return a.response.O()};
_.g.V5=function(a){this.V.oD(a,!1,1)};_.g.hMa=function(a){this.V.DB(this.request,a)};var WKc=function(a,b,c,d){wM.call(this,a,d.clone());this.ha=b;this.W=c;this.data=[];this.H=null};_.K(WKc,wM);_.g=WKc.prototype;_.g.refresh=function(){this.vA();this.H=new VKc(this.ha,this.W,this.request);return this.H.$g(this.request.Ei()||100)};_.g.Ip=function(a){return this.data.find(function(b){return OKc(b.getName(),a)})};
_.g.jfa=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=nJc((new kM).Dc(this.status),this.data.filter(function(c){return a.W.$Ca(c)}).map(function(c){return c.clone()}));return new _.VK(b,void 0,void 0,this.Ze())};_.g.oD=function(a,b,c){var d=this;a=a.filter(function(e){return e.Ac()===d.request.Ac()});return wM.prototype.oD.call(this,a,b,c)};
_.g.Ku=function(a,b){b=void 0===b?1:b;if(!JBc(RKc(this,a.getName()),b))return!1;var c=-1===b?0:this.data.length,d=this.data.findIndex(function(e){return OKc(e.getName(),a.getName())});-1<d&&(this.data.splice(d,1),c=d);this.data.splice(c,0,a);this.SH(a.getName(),b);return!0};_.g.removeItem=function(a){_.ua(this.data,function(b){return OKc(b.getName(),a)})&&(this.V.delete(this.Yja(a)),this.IX())};_.g.Yja=function(a){return NKc(a)};_.g.SH=function(a,b){this.Ip(a)&&wM.prototype.SH.call(this,a,b)};
_.g.gMa=function(a){var b=this;return a instanceof _.eK&&a.Ac()===this.request.Ac()?a.AV().map(function(c){return b.Ip(c.Om())}).filter(function(c){return!!c}).map(function(c){return c.clone()}):[]};var yM=function(){this.H=new Map};yM.prototype.ji=function(a,b){var c=this.getKey(b),d=this.H.get(c),e=!d;d||(d=this.dia(b),this.H.set(c,d));d.ji(a);return e};var XKc=function(a,b,c){var d=a.getKey(c),e=a.H.get(d),f=!e;e||(e=a.Uwa(c),a.H.set(d,e));e.ji(b);return f};
yM.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 YKc=function(a,b,c){var d=a.H.get(a.getKey(c));d&&(d.kk(b),d.isDisposed()&&a.H.delete(a.getKey(c)))},ZKc=function(a,b){return a.H.get(b)};yM.prototype.oD=function(a,b,c){var d=this;c=void 0===c?1:c;var e=a.filter(function(f){return d.$Ca(f)});this.H.forEach(function(f){f.oD(e,b,c)})};yM.prototype.removeItem=function(a,b){b=b?this.H.get(b):null;(b?[b]:this.H).forEach(function(c){c.removeItem(a)})};
var $Kc=function(a,b){a=Array.from(a.H.values()).map(function(c){return c.gMa(b)});return[].concat.apply([],_.Ad(a))};yM.prototype.SH=function(a,b){this.H.forEach(function(c){c.SH(a,b)})};yM.prototype.$Ca=function(){return!0};yM.prototype.DB=function(a,b){(a=this.H.get(this.getKey(a)))&&a.HX(b)};yM.prototype.w2=function(a,b,c,d){var e=this.getKey(b),f=this.H.get(e);f||(f=this.dia(b),f.Ki(c),this.H.set(e,f),this.oD(a,d))};var aLc=function(){this.V=new Set;this.O=0;this.H=[]},bLc=function(a,b){a.V.add(b)};
aLc.prototype.W=function(a){this.V.delete(a)};var cLc=function(a,b){var c;if(c=b instanceof _.hl)c=b.$v(),c=!!(b.Xh()&&c&&c<=Math.max.apply(Math,_.Ad([a.O].concat(_.Ad(a.H)))));if(c)return!0;b=b instanceof _.hl?b.getId():b;return a.V.has(b)},dLc=function(a,b){return _.ua(a.H,function(c){return c===b})&&b>a.O?(a.O=b,!0):!1};aLc.prototype.O8=function(a){var b=this;return a.filter(function(c){return!cLc(b,c)})};var eLc=function(a,b){this.H=new Map;this.V=a;this.W=b;this.O=new aLc};_.K(eLc,yM);
var fLc=function(a,b){bLc(a.O,PKc(b));(a=ZKc(a,b.Ac()))&&a.IX()};_.g=eLc.prototype;_.g.getKey=function(a){return a.Ac()};_.g.dia=function(a){return new WKc(this.V,this.W,this,a)};_.g.Uwa=function(a){return new WKc(this.V,this.W,this,a)};_.g.Ro=function(a){a=_.m(a);for(var b=a.next();!b.done;b=a.next())(b=b.value.getItem())&&(b=ZKc(this,b.getId()))&&b.refresh()};_.g.$Ca=function(a){return!cLc(this.O,PKc(a))};
var gLc=function(a){var b=new _.FG;b.Ob(a);return b},hLc=function(){_.Di.call(this);this.H=Date.now()};_.K(hLc,_.Di);hLc.prototype.hF=function(){this.H=Date.now();this.dispatchEvent("Gb")};
var iLc=function(a,b){this.O=a;this.H=b},jLc=function(a,b){b=_.K9b(b);var c=new VKc(a.O,a.H,b);new Promise(function(d,e){return c.$g(100).then(d,e)})},kLc=function(){this.Hd={}},zM=function(a,b){lLc(a,"subscribed");b&&lLc(a,b);return a.Hd[b||"subscribed"].je.promise},lLc=function(a,b){a.Hd[b]||(a.Hd[b]={count:0,wR:[],K1a:[],je:_.ai()});a.Hd[b].count++},nLc=function(a,b){b&&!mLc(a,b)||mLc(a,"subscribed")},mLc=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].wR,
aLb:a.Hd[b].K1a}),_.Ua(a.Hd,b));return!0};kLc.prototype.Ro=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].K1a.push(e);c.Hd[d]&&c.Hd[d].wR.push(e)})};var oLc=function(a,b,c){xM.call(this,a,c);this.V=b};_.K(oLc,xM);oLc.prototype.bia=function(a,b){return a.clone().vi(b)};oLc.prototype.nka=function(){return""};oLc.prototype.Bja=function(a){return[a]};oLc.prototype.V5=function(a){this.V(a)};
var pLc=function(a,b,c,d){wM.call(this,a,d.clone());this.ha=b;this.H=this.KS=null;this.W=c};_.K(pLc,wM);pLc.prototype.refresh=function(){var a=this;this.vA();this.H=new oLc(this.request,this.W,function(b){return a.ha.then(function(c){return c.Qe(b)})});return this.H.$g(this.request.Ei()||0)};pLc.prototype.jfa=function(a){1===this.status||this.H&&a===this.request.Ei()||(this.request.vi(a),this.H?this.H.$g(a):this.refresh())};
pLc.prototype.fk=function(){if(this.KS)return this.KS;var a=new ZL;a.Dc(this.status);return a};pLc.prototype.Ku=function(a){this.KS=a;return!0};var qLc=function(a,b,c){this.H=new Map;this.O=a;this.W=b;this.V=c};_.K(qLc,yM);_.g=qLc.prototype;_.g.log=function(a){this.V.info("drive.ds.sync.cache.SuggestedWorkspaceCacheManager",a)};_.g.getKey=function(a){return a.toString()};_.g.dia=function(a){var b=this;return new pLc(this.O,this.W,function(c){b.oD(c,!1)},a)};_.g.Uwa=function(){throw Error("mf");};
_.g.w2=function(a,b,c,d){var e=a[0].xl();this.log("Initialized "+e.length+" suggested workspaces: "+e.map(function(f){return f.jq()}).join(", "));yM.prototype.w2.call(this,a,b,c,d)};var rLc=function(a,b,c,d){_.Di.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(rLc,_.Di);
rLc.prototype.$g=function(){var a=this;if(this.je)return this.je.promise;this.je=_.ai();for(var b={},c=_.m(this.W(this.request)),d=c.next();!d.done;b={Zqa:b.Zqa,oea:b.oea},d=c.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;b.oea=d;b.Zqa=e;this.ma++;this.Ba.then(function(f){return function(h){return h.Qe(f.Zqa)}}(b)).then(function(f){return function(h){var k=f.oea;a.V(h);sLc(a,k)}}(b),function(f){return function(h){return void a.handleError(f.oea,h)}}(b))}return this.je.promise};
var sLc=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")};rLc.prototype.handleError=function(a,b){b=_.QB(b);var c=b.Tg;5===c.Ws()||4===c.Ak()?(this.va.info("drive.ds.sync.query.SimpleFindByIdsRunner","Deleting "+a+" due to: "+b.message),this.ka(a),sLc(this,a)):(a=new LL(c,_.ak(this.ta.ig(),1,1)),this.dispatchEvent(a),this.je.reject(b))};var tLc=function(a,b,c,d,e){rLc.call(this,a.clone(),c,d,e);this.H=b};_.K(tLc,rLc);
tLc.prototype.W=function(a){var b=new Map;a.nn().forEach(function(c){var d=_.L8b(a.clone(),[c]);b.set(c,d)});return b};tLc.prototype.V=function(a){var b=[];a.FT().forEach(function(c){b.push(c)});this.H(b,!0)};tLc.prototype.ha=function(){this.H([],!1)};tLc.prototype.ka=function(a){this.H([gLc(a)],!0)};var uLc=function(a,b,c,d,e,f){wM.call(this,a,f.clone());this.ma=b;this.W=c;this.ka=d;this.ha=e;this.ol={};this.H=null};_.K(uLc,wM);
uLc.prototype.refresh=function(){this.H=new tLc(this.request,this.ha,this.ma,this.W,this.ka);return this.H.$g()};uLc.prototype.jfa=function(){this.H||this.refresh()};uLc.prototype.fk=function(){var a=new _.TK;a.Dc(this.status);_.La(this.ol,function(b,c){a.FT().set(c,b||new _.FG)});a.Ki(this.Ze());return a};uLc.prototype.Ku=function(a){var b=a.getId();if(_.Zj(a,gLc(a.getId()))){if(this.ol[b])return delete this.ol[b],!0}else if(0<=this.request.nn().indexOf(b))return this.ol[b]=a,!0;return!1};
var vLc=function(a,b){a=a.getState();return null==a||b.getState()==a},wLc=function(a,b,c){xM.call(this,a,c);this.V=b};_.K(wLc,xM);wLc.prototype.bia=function(a,b,c){a=a.clone();a.vi(b);return new _.Puc(a,c)};wLc.prototype.nka=function(a){return a.pageToken||""};wLc.prototype.Bja=function(a){return a.response.xl()};wLc.prototype.V5=function(a){this.V(a)};var xLc=function(a){this.H=_.Gqc(a,{numeric:!0})};
xLc.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=_.Ea(b.getId(),c.getId())*(a?1:-1);return f};xLc.prototype.V=function(a,b,c){var d=_.y(b,4),e=_.y(c,4),f;d!==e?f=_.Ea(d,e)*(a?1:-1):f=_.Ea(b.getId(),c.getId())*(a?1:-1);return f};var yLc=function(a,b,c,d,e){wM.call(this,a,e.clone());this.ha=b;this.ol=[];this.H=null;this.W=d;a=new xLc(c);b=(c=this.request.Dw())?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(yLc,wM);yLc.prototype.refresh=function(){var a=this;this.vA();this.H=new wLc(this.request,this.W,function(b){return a.ha.then(function(c){return c.Qe(b)})});return this.H.$g(this.request.Ei()||0)};yLc.prototype.jfa=function(a){1===this.status||this.H&&a===this.request.Ei()||(this.request.vi(a),this.H?this.H.$g(a):this.refresh())};yLc.prototype.fk=function(){var a=new mM;a.Dc(this.status);yJc(a,this.ol.map(function(b){return b.clone()}));return new _.YK(a,void 0,1!==this.status&&SKc(this.H),this.Ze())};
yLc.prototype.Ku=function(a){var b=_.ua(this.ol,function(c){return c.getId()===a.getId()});return a&&vLc(this.request,a)&&!_.Zj(a,gLc(a.getId()))?gBc(this.ol,a,this.ka):b};var zLc=function(a,b,c,d){this.H=new Map;this.V=a;this.ha=b;this.W=c;this.O=d};_.K(zLc,yM);_.g=zLc.prototype;_.g.log=function(a){this.W.info("drive.ds.sync.cache.WorkspaceCacheManager",a)};_.g.getKey=function(a){return a.toString()};
_.g.dia=function(a){var b=this;return new yLc(this.V,this.ha,EL(_.II(this.O)),function(c){return void b.oD(c,!1)},a)};_.g.Uwa=function(a){var b=this;return new uLc(this.V,this.ha,this.O,this.W,function(c,d){return b.oD(c,d)},a)};_.g.w2=function(a,b,c,d){this.log("Initialized "+a.length+" items for workspaces: "+a.map(function(e){return e.getId()}).join(", "));yM.prototype.w2.call(this,a,b,c,d)};
var ALc=function(a,b){b=void 0===b?!1:b;var c=a.getMimeType();vL(a)&&(c=(c=a.Gf())?_.y(c,3):"");wL(a)&&(a.Zi()&&(c+="+"+String(a.Zi())),a.Jj()&&(c+="+shared"));return _.XTa(c,b?"32":"16")},BLc=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("&")},CLc=function(a,b){var c=_.P(a,44),d=a.Gf();if(d){if(1!==_.me(d))return null;c=(c=_.ke(d))?_.P(c,44):!0}if(!c)return null;c={};d=a.getId();vL(a)&&(d=zBc(a));
d=[_.D(b,65,"https://lh3.google.com"),"u",_.fJ(_.II(b)),"d",d].join("/");d+="={size}";_.Q(b,89,!1)&&_.Cj(a,140)&&(c.resourcekey=_.pl(a));return d=BLc(d,c)},DLc=function(a){this.H=a},FLc=function(a,b,c){if(c.includes(20)&&c.includes(3)){var d=ALc(b,_.Q(a.H,75,!1));_.w(b,21,d)}c.includes(18)&&_.Kvc(b,qCc(b,a.H));c.includes(19)&&(d=CLc(b,a.H),_.w(b,20,d));ELc(a,b,c);if(vL(b)){if(d=(d=b.Gf())&&_.ke(d)){if(c.includes(20)&&c.includes(3)){var e=ALc(d,_.Q(a.H,75,!1));_.w(d,21,e)}c.includes(18)&&_.Kvc(d,qCc(d,
a.H));c.includes(19)&&(e=CLc(d,a.H),_.w(d,20,e));ELc(a,d,c)}_.Ovc(b,!!b.Yx())}},ELc=function(a,b,c){var d=c.includes(41);c=c.includes(42);if(d||c){var e=b.getMimeType();e&&(e=!wL(b)&&!vL(b)&&!_.Sd(e)&&(!b.O6()||2!==b.Yo()),d&&_.w(b,40,e),e&&c&&(a=a.H,d=b.getId(),vL(b)&&(d=zBc(b)),c=new _.kj(_.D(a,16,"")+"/uc"),_.rj(c,"id",d),_.rj(c,"authuser",_.fJ(_.II(a))),_.rj(c,"export","download"),_.Q(a,89,!1)&&_.Cj(b,140)&&_.rj(c,"resourcekey",_.pl(b)),_.w(b,41,c.toString())))}},GLc=function(a,b){this.mia="";
this.startTime=b||new Date;this.H=a;this.L$=sCc(a)};GLc.prototype.clone=function(){return new GLc(this.H,this.startTime)};var HLc=function(){this.H=null;this.zY=[]},ILc=function(a){return _.lf(a.zY,function(b){return _.Ya(b)})};HLc.prototype.gN=function(){return this.H};
HLc.prototype.O=function(a,b,c){if(this.H){var d=this.H;if(!a["X-Google-DapperTraceInfo"]){var e=new HJc;e.V=GJc(d.L$);var f=_.Vg().substring(0,8);d=sCc(f);f=(new eJc).Ob(f);f=_.w(f,2,d);b=_.w(f,3,b).Li(c);this.zY.push(b);e.O=GJc(d);e.H=EJc(808464432,808464432);e.W=41;b=String.fromCharCode;c=b.apply;d=new _.vk;if(e.V){f=e.V.O>>>0;var h=e.V.H>>>0;_.wk(d,1,1);var k=d.O;XCc(k,f);XCc(k,h)}e.O&&(f=e.O.O>>>0,h=e.O.H>>>0,_.wk(d,2,1),k=d.O,XCc(k,f),XCc(k,h));f=e.W;null!=f&&(_.wk(d,3,5),XCc(d.O,f));e.H&&(f=
e.H.O>>>0,e=e.H.H>>>0,_.wk(d,4,1),h=d.O,XCc(h,f),XCc(h,e));e=_.xk(d);a["X-Google-DapperTraceInfo"]=_.n.btoa(c.call(b,null,e))}}};var JLc=function(){this.Eb=[];this.O=this.H=0};JLc.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 KLc=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},LLc=function(a){this.key=a;this.H=new _.Wtc;this.O=new _.Utc(new _.Wtc,_.uma(a))};LLc.prototype.encrypt=function(a){for(var b=[],c=0;16>c;c++)b[c]=Math.floor(256*Math.random());b=aGc(b);c=MLc(this,a);return b.concat(c,NLc(this,b,a,!0))};
var OLc=function(a,b){var c=NLc(a,b.substring(0,16),b.substring(36),!1);b=b.substring(16,36);a=MLc(a,c);if(b!==a)throw Error("nf");return c},MLc=function(a,b){a=_.Vtc(a.O,_.cuc(b));return aGc(a)},NLc=function(a,b,c,d){a.H.reset();a.H.update(b);a.H.update(a.key);b=new JLc;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=_.cuc(c.substring(8192*
e,8192*(e+1))),KLc(b,a),d+=aGc(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;KLc(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=PLc(d,e++),128>f?b[a++]=String.fromCharCode(f):191<f&&224>f?(h=PLc(d,e++),b[a++]=String.fromCharCode((f&31)<<6|h&63)):
239<f&&365>f?(h=PLc(d,e++),k=PLc(d,e++),l=PLc(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=PLc(d,e++),k=PLc(d,e++),b[a++]=String.fromCharCode((f&15)<<12|(h&63)<<6|k&63));b.length=a;d=b.join("")}else d="";return d},PLc=function(a,b){return a[Math.floor(b/8192)][b%8192]},QLc=function(a,b,c){this.data=a;this.BZa=b;this.H=c;this.isEncrypted=!1};QLc.prototype.getData=function(){return this.data};
QLc.prototype.Rm=function(){return this.BZa};var RLc=function(a,b,c,d){this.O=a;this.H=_.ai();this.vp=!1;this.V=_.D(b,7,"");this.W=_.ak(_.FL(b),6,2E7);this.EE=_.XI(b);this.ha=_.ak(_.FL(b),12,0);this.ka=c;this.eg=d||null};RLc.prototype.initialize=function(){var a=this;this.vp||(this.vp=!0,this.O.initialize().then(function(){a.H.resolve()},function(b){a.H.reject(b)}));return _.ji(this.H.promise)};
RLc.prototype.rB=function(a){if(a instanceof _.oC)return 0;if(a instanceof jM)return 1;if(a instanceof sGc)return 5;if(a instanceof aM)return 3;if(a instanceof vJc)return 6;throw new _.Dc("Unsupported dataShard in getDataType");};var SLc=function(a){if(0==a)return _.oC;if(1==a)return jM;if(5==a)return sGc;if(3==a)return aM;if(6==a)return vJc;throw new _.Dc("Unsupported dataType:"+a+" in getDataTypeCtor");};RLc.prototype.Yn=function(a){if(a instanceof aM)return a.Yn()};
RLc.prototype.Rm=function(a){if(a instanceof aM)return a.wd().length};RLc.prototype.sv=function(a){if(a instanceof aM)return a=a.sv(),null!=a?a:void 0};
var XLc=function(a,b,c,d){if(0==c.length)return _.Yh();for(var e=a.rB(c[0]),f=_.m(c),h=f.next();!h.done;h=f.next())a.rB(h.value);var k=a.Yn(c[0]),l=0;3==e&&TLc(a,c);var p=!!b;return ULc(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.Rm())&&(z+=A);return z},0);var v=VLc(a,b,q.map(function(z){return z.getData()})).then(function(z){if(z.length!=q.length)return _.Zh(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&&(nFc(mFc(lFc(IL(r),_.QK(_.Ctc,e)),_.QK(_.ztc,k)),!0),v.then(function(){var z=l;kFc(IL(r),!0).At(z);r.Aj()},function(){var z=l;kFc(IL(r),!1).At(z);r.Aj()}));return v}return q}).then(function(q){return a.H.promise.then(function(){return WLc(a.O,q,e,k,p,d)})})},ULc=function(a,b){return new _.Xh(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 QLc(p,a.Rm(l),a.sv(l)))}});if(e){var h=
Error("qf"),k=new _.Cc;_.cJ(k,2);_.oJ(k,23);_.w(k,21,h.message);_.oq(k);a.ka(k);d(h)}c(f)})},TLc=function(a,b){a.Yn(b[0]);for(var c=_.m(b),d=c.next();!d.done;d=c.next())a.Yn(d.value);a.EE||YLc(b);if(a.ha)for(a=a.ha,c=b.length-1;0<=c;c--)if(b[c].Yn()){d=[];for(var e=b[c].wd();e.length>a;){var f=_.za(e,a-1,a);f=NHc(new aM,f);d.push(f)}NHc(b[c],e);d.length&&_.Db(_.za,b,c+1,0).apply(null,d)}},AM=function(a,b,c,d,e,f){var h=_.ai(),k;_.ci(a.H.promise.then(function(){return ZLc(a.O,c,d,e)}).then(function(l){var p=
l.map(function(r){return r.data}),q=new _.di;if(l[0]&&l[0].z0){if(k=a.eg?a.eg.H(106022,f):null)nFc(mFc(lFc(IL(k),_.QK(_.Ctc,c)),_.QK(_.ztc,d)),!0),q.an().then(function(r){var v=k;r=void 0!=r;kFc(IL(v),r);_.lxc(v)});$Lc(a,q,b,p)}else q.callback(p);return _.Yh(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 (SLc(c))(JSON.parse(r)),q+=a.Rm(r),p.push(r);3==c&&(a.EE||aMc(p),bMc(p));k&&IL(k).At(q)}h.resolve(p)}),function(){k&&k.Aj()}).Dg(h.reject,
h);return h.promise},YLc=function(a){if(a.length){for(var b=0;b<a.length;b++)if(_.Oj(a[b],_.Rk,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,_.Ivc(f,cMc(_.jl(f),b,c)),_.Jvc(f,cMc([f.zm()],b,c)[0]),_.Pvc(f,cMc([f.St()],b,c)[0]),_.Tvc(f,cMc([f.Jq()],b,c)[0]),_.Wvc(f,cMc([f.jD()],b,c)[0]),f=f.Zv())_.Evc(f,cMc(f.bR(),b,c)),_.Fvc(f,cMc(_.Oj(f,_.Rk,3),b,c))}var h=[];b.forEach(function(k){h.push(k)});
_.Kj(a[0],2,h)}},cMc=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)?_.Zj(f,b.get(e))?d.push(c.get(e)):d.push(f):(b.set(e,f.clone()),f=new _.Rk,f.Ob(e),c.set(e,f),d.push(f))):d.push(f)}return d},aMc=function(a){var b=new Map,c=new Map;a[0]&&_.Oj(a[0],_.Rk,2)&&_.Oj(a[0],_.Rk,2).forEach(function(h){b.set(h.getId(),h);h=(new _.Rk).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,_.Ivc(f,dMc(_.jl(f),b,c)),_.Jvc(f,dMc([f.zm()],b,c)[0]),_.Pvc(f,dMc([f.St()],b,c)[0]),_.Tvc(f,dMc([f.Jq()],b,c)[0]),_.Wvc(f,dMc([f.jD()],b,c)[0]),f=f.Zv())_.Evc(f,dMc(f.bR(),b,c)),_.Fvc(f,dMc(_.Oj(f,_.Rk,3),b,c));_.Lj(d,2)}}},dMc=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();_.Zj(c.get(f),e)?d.push(b.get(f).clone()):d.push(e)}else d.push(e);
return d},bMc=function(a){for(var b={},c=1;c<a.length;b={Xda:b.Xda},c++)if(!a[c].Yn()){for(var d=0,e=c;e<a.length&&!a[e].Yn();e++)d++;e=a[c-1];d=_.za(a,c,d);b.Xda=e.wd();d.forEach(function(f){return function(h){_.xa(f.Xda,h.wd())}}(b));NHc(e,b.Xda)}},VLc=function(a,b,c){if(!_.Htc()&&a.V){var d=new Worker(_.Jba(_.Oy(a.V)),void 0),e=new _.di;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=CJc(new BJc,c);d.postMessage({command:"encrypt",data:{request:c.Lc(),key:b}});return e}try{a=[];var f=new LLc(b);for(b=0;b<c.length;b++)a.push(f.encrypt(c[b]));var h=_.ii(a)}catch(k){h=_.ki(k)}return h},$Lc=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(!_.Htc()&&a.V){var f=new Worker(_.Jba(_.Oy(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 LLc(c);for(c=0;c<d.length;c++)a.push(OLc(h,d[c]));b.callback(a)}catch(k){b.callback(void 0)}},eMc=/^[\w]+$/,fMc=function(a,b,c){return[a.ks(),a.clientId,b?"#":BM(a)].join(":")+":"+(c||"")},gMc=function(a,b,c){this.global=void 0===c?!1:c;a.match(eMc);this.key=a;this.value=b};gMc.prototype.getKey=function(){return this.key};gMc.prototype.Za=function(){return this.value};
var hMc=function(a,b){return{k:fMc(b,a.global,a.key),v:a.value}},iMc=function(a,b){a=fMc(a,b);return sHc(a+"A",a+"z")},jMc=function(a,b){this.H=a;this.O=b},kMc=function(a){return a?new jMc(a.versionKey,a.versionChangeTimestamp):null},lMc=function(a,b){return a+":"+b},mMc=function(a,b,c,d,e){this.data=a;this.index=b;this.size=c;this.timestamp=d;this.z0=void 0===e?null:e},nMc=function(a){return{data:a.data,index:a.index,size:a.size,timestamp:a.timestamp,e:a.z0}},oMc=function(a,b,c,d){a=BM(a)+"_"+b;
3===b&&(a+="_"+d);return a+=_.Ft(":%02d",c)},pMc=function(a,b,c,d){c=oMc(a,b,void 0===c?0:c,d);a=BM(a)+"_"+b;3===b&&(a+="_"+d);return sHc(c,a+":a")},qMc=function(a){var b=BM(a)+"_";a=BM(a)+"_A";return sHc(b,a)},rMc=function(a){return a?new mMc(a.data,a.index,a.size,a.timestamp,a.e):null},sMc=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=_.wa(e);_.Ga(this.fields);_.Da(this.fields);this.H=f};
sMc.prototype.ks=function(){return this.userId};sMc.prototype.Ng=function(){return _.wa(this.fields)};
var BM=function(a){if(!a.O){var b=new _.xI;b.update([a.userId,a.clientId,a.W,a.V].join(":"));b.update(a.fields);a.O=_.msc(b.digest())}return a.O},tMc=function(a){return{versionKey:BM(a),versionInfo:{u:a.userId,c:a.clientId,pv:a.W,phk:a.V,f:a.fields},lastAccessedTimestamp:a.H}},uMc=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 sMc(c.u,c.c,c.pv,c.phk,c.f,a.lastAccessedTimestamp);b?a.O=d:BM(a)!==d&&(a=null);return a},CM=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 _.Ye(this);this.Ma(this.Ib)};_.K(CM,_.O);CM.prototype.initialize=function(){return vMc(this)};
var vMc=function(a,b){a.V||(a.V=_.ai(),a.Qa.then(function(){b?(a.va=!1,wMc(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)"),_.urc("GoogleDriveDs",2,a.Fa.bind(a),a.ta.bind(a)).mg(a.Ka.bind(a),a.ta.bind(a)),_.Hi(2E4).then(a.Ha.bind(a)))},function(c){a.V.reject(new _.Dc("Database version error",void 0,_.WI(c)?c:void 0))}));return a.V.promise},wMc=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"))};CM.prototype.Fa=function(a,b){this.log("Upgrading GoogleDriveDs to version "+a.newVersion);this.Ba=!0;_.Ia(b.H.objectStoreNames,function(c){return _.iwc(b,c)});_.La(_.lJ,function(c){var d=_.$tc.get(c);_.rrc(b,c,d?{keyPath:d}:void 0)})};
CM.prototype.ta=function(a){var b;a&&a instanceof _.zI&&"InvalidStateError"==a.getName()&&_.Aj.Lu?b=Error("rf"):_.WI(a)&&(b=a);this.ha("Unable to open database GoogleDriveDs (version 2)");this.V.reject(b);xMc(this,!1)};CM.prototype.Ka=function(a){this.ka?a.dispose():(wMc(this,a),this.Ma(this.H),this.readOnly||yMc(this).then(null,function(){}),this.log("Initialized database GoogleDriveDs"),this.V.resolve(),xMc(this,!0))};
var xMc=function(a,b){if(a.ma){var c=a.ma,d=_.B(_.PK(c),eFc,5);d||(d=new eFc,c=_.PK(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}};CM.prototype.Ha=function(){this.H||this.Tf()||(this.ha("Opening database GoogleDriveDs timed out."),this.ta(Error("sf")))};CM.prototype.ha=function(a){this.log(a);this.ka||(this.ka=!0,this.O="Database disabled: "+a,this.H&&this.va&&this.H.close())};CM.prototype.Tf=function(){return this.ka};
var zMc=function(a){return a.ka?a.O:null};CM.prototype.ij=function(){return this.version};
var DM=function(a,b,c){c=void 0===c?"readonly":c;if(a.readOnly&&"readonly"!=c)return null;a=a.H;try{return _.src(a,[b],c)}catch(d){return null}},yMc=function(a){var b=_.lJ.n_,c=DM(a,b,"readwrite");if(!c)return _.Zh(Error("tf"));c.objectStore(b).put(tMc(a.ij()));return _.Yh(c.wait()).then(function(){})},AMc=function(a){if(!a.H)return _.Zh(Error("uf"));if(a.Tf())return _.Zh(Error(a.O));var b=_.lJ.n_,c=DM(a,b,"readwrite");if(!c)return _.Zh(Error("vf"));b=c.objectStore(b);return _.Yh(b.remove(BM(a.ij())))},
BMc=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=rMc(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},ZLc=function(a,b,c,d){if(!a.H||3==b&&void 0==c)return _.Zh(Error("Cf"));if(a.Tf())return _.Zh(Error(a.O));var e=pMc(a.ij(),b,0,c),f=_.lJ.B5,h=DM(a,f);if(!h)return _.Zh(Error("Df"));e=h.objectStore(f).getAll(e);var k=_.ai();e.mg(function(l){l=BMc(l,k,d);a.readOnly||null==l||CMc(a,b,c,l).then(null,function(){})},k.reject);return k.promise},WLc=function(a,b,c,d,e,f){if(a.H){if(a.Tf())return _.Zh(Error(a.O));if(100<b.length||
3==c&&void 0==d)return _.Zh(Error("Ef"))}else return _.Zh(Error("Ff"));var h=Date.now(),k=b.length,l=b.map(function(v,z){return{key:oMc(a.ij(),c,z,d),data:new mMc(v.getData(),z,k,h,e),metadata:v}}),p=_.lJ.B5;b=DM(a,p,"readwrite");if(!b)return _.Zh(Error("Gf"));p=b.objectStore(p);var q={};l=_.m(l);for(var r=l.next();!r.done;q={pea:q.pea},r=l.next())r=r.value,q.pea=DMc(a,c,d,r.metadata,f),p.put(nMc(r.data),r.key).then(function(v){return function(){var z=v.pea;z&&(kFc(IL(z),!0),z.Aj())}}(q),function(v){return function(z){var A=
v.pea,C=z instanceof _.zI?z.code:_.Rqc;A&&a.W&&(z=kFc(IL(A),!1),C=_.QK(_.Dtc,C),_.w(z,2,C),A.Aj())}}(q));return _.Yh(b.wait()).then(function(){})},DMc=function(a,b,c,d,e){if(a.W){var f=a.W.W;if(a=a.W.H(106019,e))b=mFc(lFc(IL(a),_.QK(_.Ctc,b)),_.QK(_.ztc,c)),f=f.Yn(d.H),f=_.w(b,5,f),nFc(f,d.isEncrypted),void 0!=d.Rm()&&IL(a).At(d.Rm());return a}return null},CMc=function(a,b,c,d){d=void 0===d?0:d;if(a.H){if(a.Tf())return _.Zh(Error(a.O));if(3==b&&void 0==c)return _.Zh(Error("Hf"))}else return _.Zh(Error("If"));
b=pMc(a.ij(),b,d,c);c=_.lJ.B5;a=DM(a,c,"readwrite");if(!a)return _.Zh(Error("Jf"));a.objectStore(c).remove(b);return _.Yh(a.wait()).then(function(){})},EMc=function(a){if(!a.H)return _.Zh(Error("Kf"));if(a.Tf())return _.Zh(Error(a.O));var b=qMc(a.ij()),c=_.lJ.B5;a=DM(a,c,"readwrite");if(!a)return _.Zh(Error("Lf"));a.objectStore(c).remove(b);return _.Yh(a.wait()).then(function(){})};
CM.prototype.getMetadata=function(a){if(this.H){if(this.Tf())return _.Zh(Error(this.O));if(a&&0==a.length)return _.Zh(Error("Mf"))}else return _.Zh(Error("Nf"));var b=this.ij(),c=_.lJ.P6,d=DM(this,c);if(!d)return _.Zh(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(_.Yh(c.get(fMc(b,e.global,e.key))));c=_.$h(d)}else c=_.$h([c.getAll(iMc(b,!1)).then(),c.getAll(iMc(b,!0)).then()]).then(function(f){var h=_.m(f);f=h.next().value;h=h.next().value;
return fBc(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]===BM(b))){h=k[0]!==b.ks()||k[1]!==String(b.clientId)?void 0:new gMc(k[3],h.v,l);break a}}h=void 0}return h})})};
var FMc=function(a,b){if(a.H){if(a.Tf())return _.Zh(Error(a.O));if(0==b.length)return _.Zh(Error("Pf"))}else return _.Zh(Error("Qf"));var c=_.lJ.P6,d=DM(a,c,"readwrite");if(!d)return _.Zh(Error("Rf"));c=d.objectStore(c);d=[];b=_.m(b);for(var e=b.next();!e.done;e=b.next())d.push(c.put(hMc(e.value,a.ij())).then());return _.$h(d).then(function(){})},GMc=function(a,b){b=void 0===b?!1:b;if(a.H){if(a.Tf())return _.Zh(Error(a.O))}else return _.Zh(Error("Tf"));var c=a.ij(),d=_.lJ.P6;a=DM(a,d,"readwrite");
if(!a)return _.Zh(Error("Uf"));d=a.objectStore(d);a=[];a.push(d.remove(iMc(c,!1)).then());b&&a.push(d.remove(iMc(c,!0)).then());return _.$h(a).then(function(){})},HMc=function(a){if(!a.H)return _.Zh(Error("Vf"));if(a.Tf())return _.Zh(Error(a.O));var b=lMc(a.ij().ks(),a.ij().clientId),c=_.lJ.gU;a=DM(a,c);if(!a)return _.Zh(Error("Wf"));c=a.objectStore(c);return _.Yh(c.get(b)).then(function(d){return kMc(d)})},IMc=function(a,b){b=void 0===b?!1:b;if(!a.H)return _.Zh(Error("Xf"));if(a.Tf())return _.Zh(Error(a.O));
var c=a.ij(),d=lMc(c.ks(),c.clientId);b=new jMc(BM(c),b?Date.now():void 0);c=_.lJ.gU;a=DM(a,c,"readwrite");if(!a)return _.Zh(Error("Yf"));a.objectStore(c).put({versionKey:b.H,versionChangeTimestamp:b.O},d);return _.Yh(a.wait())};CM.prototype.Pl=function(a){var b=this;return this.H?this.Tf()?_.Zh(Error(this.O)):HMc(this).then(function(c){var d=BM(b.ij());if(c)if(a){if(!c.O&&d==c.H&&d!=BM(a))return IMc(b,!0);if(c.O&&d==BM(a))return IMc(b)}else{if(d!=c.H)return IMc(b)}else if(!a)return IMc(b)}):_.Zh(Error("Zf"))};
var JMc=function(a){if(!a.H)return _.Zh(Error("$f"));if(a.Tf())return _.Zh(Error(a.O));var b=a.ij(),c=lMc(b.ks(),b.clientId);return HMc(a).then(function(d){if(d){d=_.lJ.gU;var e=DM(a,d,"readwrite");if(e)return e.objectStore(d).remove(c).then()}})};
CM.prototype.clear=function(a){var b=this;a=void 0===a?!1:a;return this.H?this.Tf()?_.Zh(Error(this.O)):HMc(this).then(function(c){var d=c&&c.H==BM(b.ij());return d&&!a?!1:(c&&d?JMc(b):_.Yh()).then(function(){return _.$h([GMc(b,a),EMc(b),AMc(b)]).then(function(){return!0},function(){return!1})},function(){return!1})}):_.Zh(Error("ag"))};CM.prototype.close=function(){this.ha("Closing database")};CM.prototype.log=function(a){this.eg.info("drive.ds.sync.storage.VersionedDb",a)};
var KMc=function(a){if(1>=a.ij())return!1;var b=a.H.objectStoreNames;return _.Qa(_.lJ).every(function(c){return b&&b.contains(c)})},LMc=function(){var a=_.ai();_.urc("GoogleDriveDs").mg(function(b){b?KMc(b)?a.resolve(b):(b.close(),_.Yh(tHc()).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},MMc=function(a,b,c){var d=_.ai();a?_.src(a,[_.lJ.n_],"readonly").objectStore(_.lJ.n_).getAll().mg(function(e){e=
_.Qa(e).map(function(f){return uMc(f)}).filter(function(f){return null!=f});d.resolve(e.filter(function(f){return(!b||f.ks()==b)&&(!c||f.clientId==c)}))},d.reject):d.resolve([]);return d.promise},NMc=function(a,b,c){var d=_.ai();LMc().then(function(e){if(e){var f=_.lJ.gU;_.src(e,[f],"readonly").objectStore(f).get(a+":"+b).then(function(h){return kMc(h)}).then(function(h){if(h){var k=0;"number"==typeof c&&"number"==typeof h.O&&(k=c+h.O-Date.now());var l=_.lJ.n_,p=_.src(e,[l],"readonly");p.objectStore(l).get(h.H).then(function(q){(q=
uMc(q))?(q.ka=!0,0>k?q.ha=!0:0<k&&(q.ma=k),d.resolve(q)):d.resolve(null)});_.fi(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},OMc=function(a,b,c){var d=_.ai(),e=new CM(_.Yh(a),b);vMc(e,c).then(function(){return d.resolve(e)},d.reject);return d.promise},PMc=function(a,b,c,d,e){e=void 0===e?!1:e;var f=[];a.forEach(function(h){var k=OMc(h,b,c);f.push(k.then(function(l){return l.clear(e)}).then(function(l){return l?
h:void 0}))});_.$h(f).then(function(h){var k=[];h.forEach(function(l){l&&(k.push(l),b.info("drive.ds.sync.storage.VersionedDb","Cleared version: "+BM(l)))});d.resolve(k)})},QMc=function(a,b,c){var d=Date.now()-12096E5,e=_.ai();LMc().then(function(f){f?(_.ci(e.promise,function(){f.close()}),MMc(f,a,b).then(function(h){return h.filter(function(k){return k.H<d})},function(){return[]}).then(function(h){PMc(h,c,f,e)})):e.resolve([])});return e.promise},RMc=function(a,b,c){var d=_.ai();LMc().then(function(e){e?
(_.ci(d.promise,function(){e.close()}),MMc(e,a,b).then(function(f){PMc(f,c,e,d,!0)})):d.resolve([])});return d.promise},SMc=function(a,b,c,d){if(a.length){var e=_.lJ.B5,f=a.shift(),h=oMc(f,3,0,1);try{_.src(c,[e],"readonly").objectStore(e).get(h).then(function(k){(k=rMc(k))&&(!k.z0||k.z0&&d.has(f.V))?b.resolve(f):SMc(a,b,c,d)},function(){return b.resolve(null)})}catch(k){b.resolve(null)}}else b.resolve(null)},TMc=function(a,b,c,d,e,f,h){var k=_.ai();LMc().then(function(l){l?(_.ci(k.promise,function(){l.close()}),
MMc(l,a,b).then(function(p){return p.filter(function(q){return(!h||h!=BM(q))&&q.W==c&&q.H>=e&&yBc(d.filter(function(r){return!_.auc.has(r)}),q.Ng(),b)})},function(){return[]}).then(function(p){p.length?(p.sort(function(q,r){return r.H-q.H}),SMc(p,k,l,new Set(f))):k.resolve(null)})):k.resolve(null)});return k.promise},UMc={key:"rid",global:!0},VMc={key:"ooi",global:!0},WMc={key:"rtds",global:!1},XMc={key:"dct",global:!1},YMc={key:"pc",global:!1},ZMc=function(a){this.H=new _.Xh(function(b){a?a.initialize().then(function(){return b(a)},
function(){return b(null)}):b(null)})};ZMc.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(){})})};ZMc.prototype.set=function(a,b){return this.H.then(function(c){return c&&!c.Tf()?FMc(c,[new gMc(a.key,b,a.global)]).then(function(){return!0},function(){return!1}):!1})};ZMc.prototype.ao=function(){return this.get(UMc).then(function(a){return a?a:null})};
ZMc.prototype.Du=function(a){return this.set(UMc,a)};var $Mc=function(a){return a.get(VMc).then(function(b){return"boolean"===typeof b?b:null})};ZMc.prototype.az=function(a){return this.set(VMc,a)};var aNc=function(a){return a.get(YMc).then(function(b){return"boolean"===typeof b?b:null})},bNc=function(a){return a.get(WMc).then(function(b){return Array.isArray(b)?b:null})},cNc=function(a){return a.get(XMc).then(function(b){return"number"===typeof b?b:null})},dNc=function(){this.jj=[]};_.K(dNc,_.eL);
dNc.prototype.add=function(a,b){var c=a.Dv.Kw;return c instanceof _.iK&&_.y(c.request,12)?_.eL.prototype.add.call(this,a,b):!1};dNc.prototype.tsa=function(a){return this.jj.splice(0,Math.min(a,1))};var eNc=function(a,b){this.jj=[];this.H=b};_.K(eNc,_.eL);eNc.prototype.add=function(a,b){return a.Dv.Kw instanceof _.iK?!1:_.eL.prototype.add.call(this,a,b)};
eNc.prototype.tsa=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.Dv.Kw;k instanceof _.AJ||k instanceof _.MJ||k instanceof _.dK?k="app|"+k.Nh():k instanceof _.vJ||k instanceof _.wJ||k instanceof _.CJ||k instanceof _.gJ?k="item|"+(k instanceof _.vJ?k.Ac():k.getId()):k instanceof _.DJ||k instanceof _.NJ?k="item|"+k.Ac():k instanceof _.EJ||k instanceof _.fK?k="item|"+k.Ac():k instanceof _.WD||k instanceof _.VD?(k=k instanceof _.WD?_.B(k,_.op,1).getKey():
k.getKey(),k="pref|"+_.y(k,2)+"|"+_.pp(k)):k=k instanceof _.FJ?"td|"+k.getId():null;var l=h.Dv.Kw;if(l instanceof _.yJ)l=!!_.P(l,8);else if(l instanceof _.wJ){l=this.H.H(l.getId());var p;if(p=!!l)p=!!(l&&l.getMimeType()&&_.Beb.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++)_.sa(this.jj,c[a]);return b};
var fNc=function(a,b,c,d,e,f,h,k,l){a=a.ig();h=new _.czc(k,h,d,_.ak(a,32,1073741824),_.ak(a,21,1E3));h=new _.dzc(h);k=new _.Cyc(_.ak(a,59,2E3),_.ak(a,60,2E4),_.ak(a,61,6));c=new _.Ayc(l?l:c,l?void 0:e);e={};e[1]=_.fzc(b,d);e[2]=_.gzc(b,a,k,c,d);e[3]=_.hzc(b,a,k,c,d,"batch");l=_.ak(a,10,50);f=new _.gL(d,b,[_.Byc(c),new _.Fyc(l,_.ak(a,11,100)),new _.fL(l),new _.dL(k,d)],[new eNc(a,f),new dNc,new _.eL],[new _.Oyc(a,k,c.Mj(),d)],"mutation");return e[4]=f,e[5]=_.izc(h,a,d),e[6]=_.hzc(b,a,k,c,d,"find_by_ids_batch"),
e[7]=_.hzc(b,a,k,c,d,"xd4_batch"),e[8]=_.hzc(b,a,k,c,d,"xd4_batch_one",1),e},gNc=function(a){return a.nextPageToken?a.nextPageToken:a.continuationToken?a.continuationToken:""},hNc=function(a){var b={};return b.parentId=a.Fk(),b},iNc=function(a){var b={};_.xAc(b,[_.y(a,2)||""]);return b},jNc=function(a){var b={};_.xe(_.Ug(a.getTitle()))||(b.title=a.getTitle());_.xAc(b,_.fe(a,3));_.P(a,8)&&(b.description="",a={},b.labels=(a.starred=!1,a));return b},kNc=function(a){var b={};null!=a.getTitle()&&(b.title=
a.getTitle());null!=_.y(a,3)&&(b.workspaceToken=_.y(a,3));return b},lNc=function(a){var b={};b.sourceIds=_.fe(a.request,1);b.destinationFolderId=_.y(a.request,2);a.pageToken&&(b.continuationToken=a.pageToken);return b},mNc=function(a){var b={},c={};_.xe(_.Ug(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());_.xe(_.Ug(a.getMimeType()))||(b.mimeType=a.getMimeType());"number"===typeof _.y(a,7)&&(b.modifiedDate=
_.gwc(_.Zwc(_.y(a,7)||0)));null!=_.P(a,11)&&(c.restricted=_.P(a,11));_.Pa(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,_.Zk,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)}_.xAc(b,_.fe(a,8));return b},nNc=function(a){var b={};null!=_.P(a,3)&&(b.pinned=_.P(a,3));
return b},oNc=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,_.Sg)("0",6-c.length)+c);c=_.B(a,_.XEc,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},pNc=function(a){var b={};null!=a.getTitle()&&(b.title=a.getTitle());
null!=a.getState()&&(a=_.AAc[a.getState()])&&(b.state=a);return b},qNc=function(a){_.J.call(this,a)};_.K(qNc,_.J);qNc.prototype.Cf=function(){return _.D(this,1)};qNc.prototype.Yl=function(a){return _.gk(this,1,a)};qNc.prototype.getUrl=function(){return _.D(this,2)};_.rNc=function(a){_.J.call(this,a)};_.K(_.rNc,_.J);_.rNc.prototype.getType=function(){return _.Fj(this,1,0)};_.rNc.prototype.getContext=function(){return _.B(this,qNc,2)};sNc=[1];tNc=[2,4];_.uNc=function(a){_.J.call(this,a,-1,tNc)};
_.K(_.uNc,_.J);_.uNc.prototype.getLabel=function(){return _.D(this,1)};_.uNc.prototype.getTitle=function(){return _.D(this,3)};_.uNc.prototype.setTitle=function(a){return _.gk(this,3,a)};_.vNc=function(a){_.J.call(this,a,-1,sNc)};_.K(_.vNc,_.J);_.wNc=[2,3,4];_.xNc=function(a){_.J.call(this,a)};_.K(_.xNc,_.J);_.xNc.prototype.we=function(){return _.D(this,3)};_.xNc.prototype.Mn=function(a){return _.gk(this,4,a)};_.yNc=function(a){_.J.call(this,a)};_.K(_.yNc,_.J);_.zNc=function(a){_.J.call(this,a)};
_.K(_.zNc,_.J);var ANc=function(a){_.J.call(this,a)};_.K(ANc,_.J);BNc=[3,5];_.EM=[8,9,10,11,12,13,14];_.CNc=function(a){_.J.call(this,a)};_.K(_.CNc,_.J);_.DNc=function(a){_.J.call(this,a,-1,BNc)};_.K(_.DNc,_.J);_.DNc.prototype.Bb=function(){return _.Fj(this,6,0)};_.DNc.prototype.Dc=function(a){return _.hk(this,6,a)};var ENc=function(a){_.J.call(this,a)};_.K(ENc,_.J);var FNc=function(a){_.J.call(this,a)};_.K(FNc,_.J);var GNc=function(a){_.J.call(this,a)};_.K(GNc,_.J);
var HNc=[1],INc=function(a){_.J.call(this,a,-1,HNc)};_.K(INc,_.J);var JNc=function(a){_.J.call(this,a)};_.K(JNc,_.J);var KNc=function(a){_.J.call(this,a)};_.K(KNc,_.J);LNc=[7];_.MNc=[1,2,3];_.NNc=function(a){_.J.call(this,a)};_.K(_.NNc,_.J);_.ONc=function(a){_.J.call(this,a)};_.K(_.ONc,_.J);_.PNc=function(a){_.J.call(this,a)};_.K(_.PNc,_.J);_.QNc=function(a){_.J.call(this,a,-1,LNc)};_.K(_.QNc,_.J);_.RNc=function(a){_.J.call(this,a)};_.K(_.RNc,_.J);
_.RNc.prototype.getName=function(){return _.D(this,1)};_.RNc.prototype.hd=function(a){return _.gk(this,1,a)};var SNc=function(a){_.J.call(this,a)};_.K(SNc,_.J);SNc.prototype.getName=function(){return _.D(this,1)};SNc.prototype.hd=function(a){return _.gk(this,1,a)};SNc.prototype.getTitle=function(){return _.D(this,2)};SNc.prototype.setTitle=function(a){return _.gk(this,2,a)};_.TNc=[1,4];UNc=function(a){_.J.call(this,a)};_.K(UNc,_.J);UNc.prototype.getUser=function(){return _.dk(this,_.zNc,1,_.TNc)};
var VNc=[8,9,10],WNc=function(a){_.J.call(this,a)};_.K(WNc,_.J);WNc.prototype.getType=function(){return _.Fj(this,6,0)};var XNc=function(a){_.J.call(this,a)};_.K(XNc,_.J);_.YNc=function(a){_.J.call(this,a)};_.K(_.YNc,_.J);_.g=_.YNc.prototype;_.g.getName=function(){return _.D(this,1)};_.g.hd=function(a){return _.gk(this,1,a)};_.g.getTitle=function(){return _.D(this,2)};_.g.setTitle=function(a){return _.gk(this,2,a)};_.g.Jja=function(){return _.dk(this,WNc,9,VNc)};
_.g.mVa=function(){return _.dk(this,XNc,10,VNc)};_.g.ij=function(){return _.ak(this,5)};_.g.getMimeType=function(){return _.D(this,6)};_.g.bD=function(){return _.B(this,UNc,7)};var ZNc=function(a){_.J.call(this,a)};_.K(ZNc,_.J);var $Nc=[8,9,10],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 _.gk(this,1,a)};_.g.getTitle=function(){return _.D(this,2)};_.g.setTitle=function(a){return _.gk(this,2,a)};
_.g.Jja=function(){return _.dk(this,WNc,9,$Nc)};_.g.mVa=function(){return _.dk(this,XNc,10,$Nc)};bOc=[1,3];_.FM=function(a){_.J.call(this,a)};_.K(_.FM,_.J);_.FM.prototype.Eh=function(){return _.dk(this,aOc,1,bOc)};_.cOc=[1,2,3];_.dOc=function(a){_.J.call(this,a)};_.K(_.dOc,_.J);_.eOc=function(a){_.J.call(this,a)};_.K(_.eOc,_.J);var fOc=function(a){_.J.call(this,a)};_.K(fOc,_.J);var gOc=function(a){_.J.call(this,a)};_.K(gOc,_.J);hOc=[2,3];_.iOc=function(a){_.J.call(this,a,-1,hOc)};_.K(_.iOc,_.J);
_.iOc.prototype.getType=function(){return _.Fj(this,1,0)};_.jOc=function(a){_.J.call(this,a)};_.K(_.jOc,_.J);_.jOc.prototype.getType=function(){return _.Fj(this,1,0)};var kOc=function(a){_.J.call(this,a)};_.K(kOc,_.J);kOc.prototype.getType=function(){return _.Fj(this,1,0)};var lOc=function(a){_.J.call(this,a)};_.K(lOc,_.J);_.mOc=function(a){_.J.call(this,a)};_.K(_.mOc,_.J);_.mOc.prototype.O=function(){return _.Q(this,1)};var nOc=function(a){_.J.call(this,a)};_.K(nOc,_.J);oOc=[1,2,4];
_.pOc=function(a){_.J.call(this,a)};_.K(_.pOc,_.J);qOc=[1,2];_.rOc=function(a){_.J.call(this,a)};_.K(_.rOc,_.J);_.rOc.prototype.getParent=function(){return _.B(this,_.FM,1)};_.rOc.prototype.tg=function(a){return _.I(this,1,a)};_.sOc=function(a){_.J.call(this,a,-1,qOc)};_.K(_.sOc,_.J);_.tOc=function(a){_.J.call(this,a,-1,oOc)};_.K(_.tOc,_.J);_.GM=function(a){_.J.call(this,a)};_.K(_.GM,_.J);_.GM.prototype.getEmail=function(){return _.D(this,1)};_.GM.prototype.getTitle=function(){return _.D(this,2)};
_.GM.prototype.setTitle=function(a){return _.gk(this,2,a)};_.HM=[2,3,4,5];_.IM=function(a){_.J.call(this,a)};_.K(_.IM,_.J);_.IM.prototype.zf=function(){return _.Fj(this,1,0)};_.IM.prototype.getUser=function(){return _.dk(this,_.zNc,2,_.HM)};var uOc=function(a){_.J.call(this,a)};_.K(uOc,_.J);vOc=[1,2,3,4];_.wOc=function(a){_.J.call(this,a,-1,vOc)};_.K(_.wOc,_.J);_.xOc=function(a){_.J.call(this,a)};_.K(_.xOc,_.J);_.yOc=function(a){_.J.call(this,a)};_.K(_.yOc,_.J);_.zOc=function(a){_.J.call(this,a)};
_.K(_.zOc,_.J);_.AOc=function(a){_.J.call(this,a)};_.K(_.AOc,_.J);_.AOc.prototype.getType=function(){return _.Fj(this,1,0)};BOc=[1];_.COc=function(a){_.J.call(this,a)};_.K(_.COc,_.J);_.COc.prototype.getFeature=function(){return _.Fj(this,1,0)};_.DOc=function(a){_.J.call(this,a,-1,BOc)};_.K(_.DOc,_.J);var EOc=function(a){_.J.call(this,a)};_.K(EOc,_.J);var FOc=function(a){_.J.call(this,a)};_.K(FOc,_.J);var GOc=function(a){_.J.call(this,a)};_.K(GOc,_.J);
GOc.prototype.getType=function(){return _.Fj(this,1,0)};_.JM=[1,2,3,4,5,6,7,8,9,10,11,12,13,18,15,16,19,20,21];_.KM=function(a){_.J.call(this,a)};_.K(_.KM,_.J);_.KM.prototype.aA=function(){return _.dk(this,GOc,10,_.JM)};_.HOc=function(a){_.J.call(this,a)};_.K(_.HOc,_.J);var IOc=function(a){_.J.call(this,a)};_.K(IOc,_.J);_.JOc=function(a){_.J.call(this,a)};_.K(_.JOc,_.J);_.KOc=function(a){_.J.call(this,a)};_.K(_.KOc,_.J);_.KOc.prototype.getType=function(){return _.Fj(this,1,0)};_.LM=[1,2,3,4,5];
_.LOc=function(a){_.J.call(this,a)};_.K(_.LOc,_.J);_.LOc.prototype.getUser=function(){return _.dk(this,_.zNc,1,_.LM)};var MOc=function(a){_.J.call(this,a)};_.K(MOc,_.J);MOc.prototype.getType=function(){return _.Fj(this,2,0)};MOc.prototype.Nh=function(){return _.D(this,1)};_.NOc=function(a){_.J.call(this,a)};_.K(_.NOc,_.J);_.g=_.NOc.prototype;_.g.getName=function(){return _.D(this,1)};_.g.hd=function(a){return _.gk(this,1,a)};_.g.getTitle=function(){return _.D(this,2)};
_.g.setTitle=function(a){return _.gk(this,2,a)};_.g.Na=function(){return _.B(this,_.YNc,3)};_.OOc=function(a){_.J.call(this,a)};_.K(_.OOc,_.J);_.OOc.prototype.getParent=function(){return _.B(this,_.YNc,4)};_.OOc.prototype.tg=function(a){return _.I(this,4,a)};_.MM=[1,5,3];_.POc=function(a){_.J.call(this,a)};_.K(_.POc,_.J);_.POc.prototype.Eh=function(){return _.dk(this,_.YNc,1,_.MM)};_.QOc=function(a){_.J.call(this,a)};_.K(_.QOc,_.J);_.QOc.prototype.O=function(){return _.y(this,1)};
var ROc=function(a){_.J.call(this,a)};_.K(ROc,_.J);ROc.prototype.O=function(){return _.P(this,1)};ROc.prototype.V=function(){return _.y(this,2)};_.NM=function(a){_.J.call(this,a)};_.K(_.NM,_.J);_.g=_.NM.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.vsa=function(){return _.y(this,3)};_.g.mz=function(){return _.y(this,4)};
_.g.p$=function(){return _.B(this,ROc,6)};_.g.Erb=function(){return _.B(this,_.QOc,7)};_.g.rVa=function(){return _.y(this,8)};_.g.usa=function(){return _.P(this,9)};_.OM=function(a){_.J.call(this,a)};_.K(_.OM,_.J);_.g=_.OM.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.v$a=function(){return _.y(this,6)};_.SOc=function(a,b){return _.w(a,6,b)};_.OM.prototype.Cf=function(){return _.y(this,8)};_.OM.prototype.Yl=function(a){return _.w(this,8,a)};_.OM.prototype.O=function(){return _.P(this,9)};var TOc=function(a){_.J.call(this,a)};_.K(TOc,_.J);TOc.prototype.Bb=function(){return _.y(this,1)};TOc.prototype.Dc=function(a){return _.w(this,1,a)};
var UOc=function(a,b){return _.I(a,2,b)},VCc=[90,59,75],VOc=function(a){_.J.call(this,a)};_.K(VOc,_.J);VOc.prototype.getType=function(){return _.y(this,1)};var WOc=function(a){var b=new VOc;return _.w(b,1,a)},XOc=function(a,b){return _.I(a,2,b)};VOc.prototype.yy=function(){return _.y(this,3)};VOc.prototype.bz=function(a){return _.w(this,3,a)};VOc.prototype.Qi=function(){return _.y(this,4)};VOc.prototype.setPosition=function(a){return _.w(this,4,a)};
var ZOc=function(a){_.J.call(this,a,-1,YOc)};_.K(ZOc,_.J);ZOc.prototype.Bb=function(){return _.y(this,1)};ZOc.prototype.Dc=function(a){return _.w(this,1,a)};var YOc=[2];
var $Oc=function(a){_.J.call(this,a)};_.K($Oc,_.J);
var aPc=function(a){_.J.call(this,a)};_.K(aPc,_.J);aPc.prototype.getType=function(){return _.y(this,1)};var bPc=function(a){var b=new aPc;return _.w(b,1,a)},cPc=function(a,b){return _.I(a,2,b)};aPc.prototype.yy=function(){return _.y(this,3)};aPc.prototype.bz=function(a){return _.w(this,3,a)};aPc.prototype.Qi=function(){return _.y(this,4)};aPc.prototype.setPosition=function(a){return _.w(this,4,a)};
var PM=function(a){_.J.call(this,a)};_.K(PM,_.J);PM.prototype.getType=function(){return _.y(this,1)};var dPc=function(a){var b=new PM;return _.w(b,1,a)};PM.prototype.qn=function(){return _.B(this,YL,2)};var ePc=function(a,b){return _.I(a,2,b)};PM.prototype.yy=function(){return _.y(this,3)};PM.prototype.bz=function(a){return _.w(this,3,a)};PM.prototype.Qi=function(){return _.y(this,4)};PM.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 fPc=function(a){var b=new QM;return _.w(b,1,a)};QM.prototype.qn=function(){return _.B(this,_.FG,2)};var gPc=function(a,b){return _.I(a,2,b)};QM.prototype.yy=function(){return _.y(this,3)};QM.prototype.bz=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 hPc=function(a){_.J.call(this,a)};_.K(hPc,_.J);hPc.prototype.Bb=function(){return _.y(this,1)};hPc.prototype.Dc=function(a){return _.w(this,1,a)};hPc.prototype.wr=function(){return _.B(this,_.XL,2)};
var jPc=function(a){_.J.call(this,a,-1,iPc)};_.K(jPc,_.J);jPc.prototype.Bb=function(){return _.y(this,1)};jPc.prototype.Dc=function(a){return _.w(this,1,a)};jPc.prototype.dk=function(){return _.y(this,3)};var iPc=[2];
var kPc=function(a){_.J.call(this,a)};_.K(kPc,_.J);kPc.prototype.jd=function(){return _.B(this,KL,1)};kPc.prototype.Zn=function(){return _.y(this,2)};
var lPc=function(a){_.J.call(this,a)};_.K(lPc,_.J);_.g=lPc.prototype;_.g.Bb=function(){return _.y(this,1)};_.g.Dc=function(a){return _.w(this,1,a)};_.g.wr=function(){return _.B(this,_.XL,2)};_.g.dk=function(){return _.y(this,3)};_.g.Nh=function(){return _.y(this,4)};
var RM=function(a){_.J.call(this,a)};_.K(RM,_.J);RM.prototype.Bb=function(){return _.y(this,1)};RM.prototype.Dc=function(a){return _.w(this,1,a)};RM.prototype.dk=function(){return _.y(this,3)};
var mPc=function(a){_.J.call(this,a)};_.K(mPc,_.J);_.g=mPc.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.lMa=function(){return _.B(this,_.op,3)};_.g.getKey=function(){return _.B(this,_.Xb,4)};_.g.gt=function(){return _.Cj(this,4)};
var nPc=function(a){_.J.call(this,a)};_.K(nPc,_.J);nPc.prototype.getKey=function(){return _.y(this,1)};nPc.prototype.gt=function(){return _.Cj(this,1)};var pPc=function(a){_.J.call(this,a,-1,oPc)};_.K(pPc,_.J);var qPc=[2,4,6,10],rPc=[3,5,7,8,9],oPc=[1];
var sPc=function(a){_.J.call(this,a)};_.K(sPc,_.J);
var SM=function(a){_.J.call(this,a,-1,tPc)};_.K(SM,_.J);SM.prototype.Bb=function(){return _.y(this,1)};SM.prototype.Dc=function(a){return _.w(this,1,a)};SM.prototype.O=function(){return _.Oj(this,RL,2)};var uPc=function(a,b){return _.Kj(a,2,b)};SM.prototype.dk=function(){return _.y(this,3)};var tPc=[2];
var vPc=function(a){_.J.call(this,a)};_.K(vPc,_.J);vPc.prototype.Bb=function(){return _.y(this,1)};vPc.prototype.Dc=function(a){return _.w(this,1,a)};vPc.prototype.O=function(){return _.B(this,RL,2)};vPc.prototype.dk=function(){return _.y(this,3)};
var wPc=function(a){_.J.call(this,a)};_.K(wPc,_.J);wPc.prototype.xy=function(){return _.y(this,2)};
var yPc=function(a){_.J.call(this,a,-1,xPc)};_.K(yPc,_.J);yPc.prototype.Bb=function(){return _.y(this,1)};yPc.prototype.Dc=function(a){return _.w(this,1,a)};yPc.prototype.Pi=function(){return _.Oj(this,_.qEa,2)};yPc.prototype.Aq=function(a,b){return _.Xj(this,2,a,_.qEa,b)};var xPc=[2];
var APc=function(a){_.J.call(this,a,-1,zPc)};_.K(APc,_.J);APc.prototype.Bb=function(){return _.y(this,1)};APc.prototype.Dc=function(a){return _.w(this,1,a)};APc.prototype.xl=function(){return _.Oj(this,PM,2)};var zPc=[2];
_.CPc=function(a){_.J.call(this,a,-1,BPc)};_.K(_.CPc,_.J);var BPc=[1];
var TM=function(a){_.J.call(this,a,-1,DPc)},GPc,HPc;_.K(TM,_.J);TM.prototype.Zn=function(){return _.y(this,1)};var EPc=function(a,b){return _.w(a,1,b)},FPc=function(a,b){return _.w(a,2,b)};TM.prototype.Bb=function(){return _.y(this,3)};TM.prototype.Dc=function(a){return _.w(this,3,a)};GPc=function(a,b){return _.w(a,4,b)};HPc=function(a,b){return _.Kj(a,5,b)};_.IPc=function(a){_.J.call(this,a)};_.K(_.IPc,_.J);_.IPc.prototype.$b=function(){return _.y(this,2)};_.KPc=function(a){_.J.call(this,a,-1,JPc)};
_.K(_.KPc,_.J);var LPc=function(a,b){return _.w(a,1,b)},MPc=function(a,b){return _.w(a,2,b)},NPc=function(a,b){return _.Kj(a,3,b)},DPc=[5],JPc=[3];
_.UM=function(a){_.J.call(this,a,-1,OPc)};_.K(_.UM,_.J);_.UM.prototype.AV=function(){return _.Oj(this,_.BG,2)};_.UM.prototype.te=function(){return _.B(this,_.Cf,3)};var OPc=[1,2];
_.VM=function(a){_.J.call(this,a)};_.K(_.VM,_.J);_.VM.prototype.Bb=function(){return _.y(this,1)};_.VM.prototype.Dc=function(a){return _.w(this,1,a)};_.VM.prototype.xf=function(){return _.B(this,_.oC,2)};_.PPc=function(a,b){return _.I(a,2,b)};_.VM.prototype.dk=function(){return _.y(this,3)};
var QPc=function(a){_.J.call(this,a)};_.K(QPc,_.J);QPc.prototype.Bb=function(){return _.y(this,1)};QPc.prototype.Dc=function(a){return _.w(this,1,a)};
var SPc=function(a){_.J.call(this,a,-1,RPc)};_.K(SPc,_.J);SPc.prototype.Bb=function(){return _.y(this,1)};SPc.prototype.Dc=function(a){return _.w(this,1,a)};SPc.prototype.xl=function(){return _.Oj(this,QM,2)};var RPc=[2];
_.WM=function(a){_.J.call(this,a)};_.K(_.WM,_.J);_.WM.prototype.pY=function(a){_.I(this,1,a)};_.WM.prototype.ov=function(){return _.B(this,_.Iy,2)};_.WM.prototype.AO=function(a){_.I(this,2,a)};
_.TPc=function(a){_.J.call(this,a)};_.K(_.TPc,_.J);_.TPc.prototype.Sh=function(){return _.B(this,MOc,2)};_.TPc.prototype.O=function(a){_.Wj(this,5,_.UPc,a)};_.UPc=[5,6];
var VPc;_.WPc=function(a){_.J.call(this,a,-1,VPc)};_.K(_.WPc,_.J);_.WPc.prototype.O=function(a){_.Wj(this,6,_.XM,a)};VPc=[3,4,5];_.XM=[6,7];
var XPc=function(a){_.J.call(this,a)};_.K(XPc,_.J);XPc.prototype.getType=function(){return _.y(this,1)};var YPc=function(a){var b=new XPc;return _.w(b,1,a)};XPc.prototype.yy=function(){return _.y(this,3)};XPc.prototype.bz=function(a){return _.w(this,3,a)};XPc.prototype.Qi=function(){return _.y(this,4)};XPc.prototype.setPosition=function(a){return _.w(this,4,a)};
var $Pc=function(a){_.J.call(this,a,-1,ZPc)};_.K($Pc,_.J);$Pc.prototype.Bb=function(){return _.y(this,1)};$Pc.prototype.Dc=function(a){return _.w(this,1,a)};$Pc.prototype.dk=function(){return _.y(this,3)};var ZPc=[2];
_.aQc=function(a){_.J.call(this,a)};_.K(_.aQc,_.J);_.aQc.prototype.getId=function(){return _.y(this,1)};_.aQc.prototype.Ob=function(a){return _.w(this,1,a)};_.aQc.prototype.te=function(){return _.B(this,_.Cf,4)};
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];
_.YM=function(a){_.J.call(this,a)};_.K(_.YM,_.J);_.YM.prototype.getType=function(){return _.y(this,1)};var dQc=function(a){var b=new _.YM;return _.w(b,1,a)},eQc=function(a,b){return _.I(a,2,b)};_.YM.prototype.yy=function(){return _.y(this,3)};_.YM.prototype.bz=function(a){return _.w(this,3,a)};_.YM.prototype.Qi=function(){return _.y(this,4)};_.YM.prototype.setPosition=function(a){return _.w(this,4,a)};
_.HCc=function(a){_.J.call(this,a)};_.K(_.HCc,_.J);_.g=_.HCc.prototype;_.g.getItem=function(){return _.B(this,_.hl,1)};_.g.setItem=function(a){return _.I(this,1,a)};_.g.getError=function(){return _.B(this,_.Cc,2)};_.g.Ie=function(a){return _.I(this,2,a)};_.g.co=function(){return _.Cj(this,2)};_.g.Ws=function(){return _.y(this,4)};
var gQc=function(a){_.J.call(this,a,-1,fQc)};_.K(gQc,_.J);var fQc=[2,4];
var iQc=function(a){_.J.call(this,a,-1,hQc)};_.K(iQc,_.J);var hQc=[1];
var kQc=function(a){_.J.call(this,a,-1,jQc)};_.K(kQc,_.J);kQc.prototype.Bb=function(){return _.y(this,1)};kQc.prototype.Dc=function(a){return _.w(this,1,a)};kQc.prototype.dk=function(){return _.y(this,3)};var jQc=[2];
var mQc=function(a){_.J.call(this,a,-1,lQc)};_.K(mQc,_.J);mQc.prototype.Bb=function(){return _.y(this,1)};mQc.prototype.Dc=function(a){return _.w(this,1,a)};mQc.prototype.dk=function(){return _.y(this,3)};var lQc=[2];
var nQc=function(a){_.J.call(this,a)};_.K(nQc,_.J);
var pQc=function(a){_.J.call(this,a,-1,oQc)};_.K(pQc,_.J);pQc.prototype.O=function(){return _.y(this,2)};var qQc=function(a,b){_.w(a,2,b)},oQc=[1];
var sQc=function(a){_.J.call(this,a,-1,rQc)};_.K(sQc,_.J);sQc.prototype.xy=function(){return _.D(this,2)};var rQc=[1];
var tQc=function(a){_.ti.call(this,"Kb");this.dataType=a};_.K(tQc,_.ti);
var uQc=function(a,b){_.ti.call(this,"Lb");this.cPa=a;this.Uta=b};_.K(uQc,_.ti);
var vQc=function(){};_.g=vQc.prototype;_.g.uM=function(a,b){return XOc(WOc(1),a).setPosition(b)};_.g.tM=function(a,b){return XOc(WOc(2).setPosition(b),a)};_.g.zE=function(a,b,c){return XOc(WOc(3).bz(b).setPosition(c),a)};_.g.lQ=function(a,b){return XOc(WOc(4),a).setPosition(b)};_.g.SM=function(a){return _.B(a,VL,2)};
var wQc=function(){_.Ky.call(this,new vQc,function(a){return a&&a.getName()})};_.K(wQc,_.Ky);
var ZM=function(a,b,c){c=void 0===c?50:c;_.Di.call(this);var d=this;this.W=a;this.connectionState=b;this.limit=c;this.active=!1;this.status=6;this.va=hBc(new _.oL,[1]);this.ha=this.H=!1;this.Sc=new _.Ye(this);this.Ma(this.Sc);_.Qe(this,function(){d.active=!1;d.Sc.removeAll()})};_.K(ZM,_.Di);_.g=ZM.prototype;_.g.ti=function(){return String(_.Ca(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.Wt()}),this.Sc.listen(this.connectionState,[].concat(_.Ad(Object.values(_.pC))),function(){return void a.Wt()}),this.W.Se()?this.Sc.$c(this.W,"Bb",function(b){b.Se()||(a.KG(),a.dispatchEvent(new _.ti(_.tq)))}):this.connectionState.Se()?this.Sc.$c(this.connectionState,[_.pC.BL,_.pC.hU],function(){a.KG();a.dispatchEvent(new _.ti(_.tq))}):(this.KG(),this.dispatchEvent(new _.ti(_.tq))))};
_.g.KG=function(){};_.g.Er=function(a){var b=this;if(this.Vj()){var c=this.limit;this.limit+=a||50;this.$b()>c&&this.Wt();this.W.Se()?this.Sc.$c(this.W,"Bb",function(d){d.Se()||b.RO()}):this.RO()}};_.g.HL=function(){this.Se()&&!this.H?this.status=2:this.status=this.H?1:6};_.g.Bb=function(){return this.status};_.g.iq=function(){return this.va};_.g.handleError=function(a){this.dispatchEvent(new _.Ec(a))};_.g.gW=function(){this.dispatchEvent(new _.ti(_.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.RO=function(){};
var xQc=function(a,b,c,d,e){ZM.call(this,a,b,e.Ei()||void 0);this.ka=c;this.request=e;this.V=[];this.data=[];this.changed=!1;this.O=new wQc;this.ma=d};_.K(xQc,ZM);_.g=xQc.prototype;_.g.KG=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.ti(_.Oc,this))};_.g.getData=function(){return nJc(new kM,this.data).Dc(this.status)};_.g.yr=function(){var a=this.O.sy(this.V,this.data);this.V=this.data;var b=(new ZOc).Dc(this.status);return _.Kj(b,2,a)};
_.g.RO=function(){this.ma(this.ti(),this.limit)};_.g.Wt=function(){if(this.active){var a=this.status;this.HL();if(this.changed||a!==this.status)this.changed=!1,yQc(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()||GL(this.O,this.data,b.O()))this.H=!0,this.status=b.Bb(),this.data=b.O(),this.ha=a.H,yQc(this)};
var yQc=function(a){a.log("Livelist "+a.ti()+" returning "+a.data.length+" for "+(a.request.Ac()+". Status: ")+(_.Za(eGc)[a.Bb()]+"."));a.dispatchEvent(new _.ti(_.Oc,a))};xQc.prototype.DB=function(a){this.dispatchEvent(new _.Ec(new _.Dc("Error occurred running a category metadata query after "+a.H+" retries.",a.error)))};xQc.prototype.log=function(a){this.ka.info("drive.ds.sync.CategoryMetadataLiveList",a)};
var zQc=function(a,b,c,d,e,f,h){_.ML.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(zQc,_.ML);zQc.prototype.getData=function(){this.H=this.items;var a=CEc((new _.pB).Dc(this.Bb()).Uw(this.items),this.Vj());a=_.I(a,7,this.ta).mP(this.suggestionSessionId).Ki(this.Je);return _.Ij(a,18,this.ma)};
zQc.prototype.update=function(a){if(hGc(this,a)&&(iGc(this,a),this.ta=a.S5(),this.suggestionSessionId=a.dg(),this.ma=a.eka(),gGc(this),this.suggestionSessionId&&DIc(this.V)&&(a=this.eg.H(106027)))){var b=_.B(_.PK(a),rFc,20);if(!b){b=new rFc;var c=_.PK(a);_.I(c,20,b)}_.w(b,1,this.suggestionSessionId);a.Aj()}};
var AQc=function(a,b){var c={};a=_.Ma(a,function(d){return!!d});b=_.Ma(b,function(d){return!!d});_.La(a,function(d,e){var f=b[e];f?_.Zj(d,f)||(d=gPc(fPc(4),f),c[e]=d):(d=gPc(fPc(2),d),c[e]=d)});_.La(b,function(d,e){a[e]||(d=gPc(fPc(1),d),c[e]=d)});return c},BQc=function(a,b){return _.Pa(a)!==_.Pa(b)||!_.Ta(AQc(a,b))};
var CQc=function(a,b){_.Di.call(this);this.request=b;this.active=!1;this.status=6;this.H={};this.data={}};_.K(CQc,_.Di);_.g=CQc.prototype;_.g.activate=function(){this.active||(this.active=!0,_.Ta(this.data)&&6===this.status||this.dispatchEvent(new _.ti(_.Oc,this)))};_.g.Bb=function(){return this.status};_.g.iq=function(){return new _.oL};_.g.getData=function(){this.H=this.data;var a=(new _.TK).Dc(this.status);_.La(this.data,function(b,c){a.FT().set(c,b||new _.FG)});return a};
_.g.yr=function(){var a=AQc(this.H,this.data);this.H=this.data;var b=(new QPc).Dc(this.status);_.La(a,function(c,d){_.Hj(b,2,void 0,QM).set(d,c)});return b};_.g.ZS=function(){throw Error("cg");};_.g.ti=function(){return String(_.Ca(this))};_.g.ud=function(){return this.request};_.g.update=function(a){var b={};a.FT().forEach(function(c,d){c||(c=gLc(d));b[d]=c});if(this.status!==a.Bb()||BQc(this.H,b))this.status=a.Bb(),this.data=b,this.active&&this.dispatchEvent(new _.ti(_.Oc,this))};
_.g.DB=function(a){this.dispatchEvent(new _.Ec(new _.Dc("Error occurred running a Workspace find by id after "+a.H+" retries.",a.error)))};_.g.gW=function(){this.dispatchEvent(new _.ti(_.WEa))};
var DQc=function(a,b,c,d,e,f){_.ML.call(this,a,b,c,d,e,f);this.ma=[];this.W="drive.ds.sync.PeoplePredictLiveList"};_.K(DQc,_.ML);DQc.prototype.getData=function(){this.H=this.items;var a=(new _.SK).Dc(this.Bb()).Uw(this.items);var b=this.Vj();a=_.w(a,4,b);return dGc(a,this.ma).mP(this.suggestionSessionId).Ki(this.Je)};DQc.prototype.update=function(a){hGc(this,a)&&(iGc(this,a),this.ma=_.Oj(a,_.Rk,6),this.suggestionSessionId=a.dg(),gGc(this))};
var EQc=function(){};_.g=EQc.prototype;_.g.uM=function(a,b){return ePc(dPc(1),a).setPosition(b)};_.g.tM=function(a,b){return ePc(dPc(2).setPosition(b),a)};_.g.zE=function(a,b,c){return ePc(dPc(3).bz(b).setPosition(c),a)};_.g.lQ=function(a,b){return ePc(dPc(4),a).setPosition(b)};_.g.SM=function(a){return a.qn()};
var FQc=function(){_.Ky.call(this,new EQc,function(a){return a&&a.jq()})};_.K(FQc,_.Ky);
var GQc=function(a,b,c){ZM.call(this,a.Mj(),a.Ck(),b.Ei()||10);this.request=b;this.O=[];this.data=[];this.changed=!1;this.V=new FQc;this.suggestionSessionId=null;this.ka=c};_.K(GQc,ZM);_.g=GQc.prototype;_.g.KG=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.ti(_.Oc,this))};_.g.getData=function(){this.O=this.data;return IHc(HHc((new ZL).Dc(this.status),this.data.slice(0)),this.suggestionSessionId)};
_.g.yr=function(){var a=this.V.sy(this.O,this.data);this.O=this.data;var b=(new APc).Dc(this.status);return _.Kj(b,2,a)};_.g.RO=function(){};_.g.Wt=function(){var a=this.status;this.HL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ti(_.Oc,this))};_.g.$b=function(){return this.data.length};_.g.ud=function(){return this.request};
_.g.update=function(a){if(this.status!==a.Bb()||GL(this.V,this.data,a.xl())){this.changed=this.H=!0;this.data=a.xl();if(a=a.dg())this.suggestionSessionId=a;this.Wt()}};_.g.refresh=function(){this.ka()};_.g.DB=function(a){this.dispatchEvent(new _.Ec(new _.Dc("Error occurred running a Suggested Workspace query after "+(a.H+" retries."),a.error)))};
var HQc=function(a,b,c){_.Di.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=hBc(new _.oL,[1]);this.O=!0;this.limit=a.Ei();_.Qe(this,function(){d.H=!1;d.V=[]})};_.K(HQc,_.Di);_.g=HQc.prototype;_.g.ti=function(){return String(_.Ca(this))};_.g.activate=function(){this.H=!0;_.na(this.items)&&6===this.status&&this.O||this.dispatchEvent(new _.ti(_.Oc,this))};_.g.ud=function(){return this.request};_.g.Bb=function(){return this.status};
_.g.iq=function(){return this.W};_.g.Vj=function(){return this.O};_.g.getData=function(){this.V=this.items;return CEc((new _.pB).Dc(this.status).Uw(this.items),this.O)};_.g.yr=function(){var a=_.c8a().sy(this.V,this.items),b=(new _.vI).Dc(this.status);a=_.Kj(b,2,a);this.V=this.items;return a};_.g.Er=function(a){this.H&&(this.limit+=a||20,this.ka.DF(this.ti(),this.limit))};
_.g.update=function(a){if(this.status!==a.Bb()||GL(_.c8a(),this.items,a.wd()))this.items=a.wd(),this.status=a.Bb(),_.XI(this.ha)&&(this.W=iBc(this.status,this.items)),this.O=a.ul(),this.H&&this.dispatchEvent(new _.ti(_.Oc,this))};_.g.DB=function(a){this.dispatchEvent(new _.Ec(new _.Dc("Error occurred running a Team Drive query after "+a.H+" retries.",a.error)))};_.g.gW=function(){this.dispatchEvent(new _.ti(_.WEa))};_.g.zu=function(){throw Error("dg");};_.g.refresh=function(){};
var IQc=function(a,b,c){_.Di.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=hBc(new _.oL,[1]);this.context.Rf().info("drive.ds.sync.TeamDriveLiveMap","Creating TD find by ids live map: "+this.request.nn().join(", "));_.Qe(this,function(){d.V=!1;d.O=[]})};_.K(IQc,_.Di);_.g=IQc.prototype;_.g.ti=function(){return String(_.Ca(this))};
_.g.activate=function(){this.V=!0;(0<Object.values(this.H).length||6!==this.status)&&this.dispatchEvent(new _.ti(_.Oc,this))};_.g.ud=function(){return this.request};_.g.getData=function(){this.O=this.H;var a=new _.RK;a.Dc(this.status);a.map=this.H;return a};_.g.yr=function(){var a=FBc(this.O,this.H),b=new nGc;b.Dc(this.status);b.map=a;this.O=this.H;return b};_.g.Bb=function(){return this.status};_.g.iq=function(){return this.W};
_.g.ZS=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()||GBc(this.H,a.gq()))this.status=a.Bb(),this.H=a.gq(),_.XI(this.context.Nc)&&(this.W=iBc(this.status,Object.values(this.H))),this.V&&this.dispatchEvent(new _.ti(_.Oc,this))};_.g.DB=function(a){this.dispatchEvent(new _.Ec(new _.Dc("Error occurred running a team drive find-by-IDs query after "+a.H+" retries.",a.error)))};_.g.gW=function(){this.dispatchEvent(new _.ti(_.WEa))};
var JQc=function(){};_.g=JQc.prototype;_.g.uM=function(a,b){return gPc(fPc(1),a).setPosition(b)};_.g.tM=function(a,b){return gPc(fPc(2).setPosition(b),a)};_.g.zE=function(a,b,c){return gPc(fPc(3).bz(b).setPosition(c),a)};_.g.lQ=function(a,b){return gPc(fPc(4),a).setPosition(b)};_.g.SM=function(a){return a.qn()};
var KQc=function(){_.Ky.call(this,new JQc,function(a){return a&&a.getId()})};_.K(KQc,_.Ky);
var LQc=function(a,b,c){ZM.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 KQc};_.K(LQc,ZM);_.g=LQc.prototype;_.g.KG=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.ti(_.Oc,this))};_.g.getData=function(){this.O=this.data;return yJc((new mM).Dc(this.status),this.data.slice(0))};_.g.yr=function(){var a=this.V.sy(this.O,this.data);this.O=this.data;var b=(new SPc).Dc(this.status);return _.Kj(b,2,a)};
_.g.RO=function(){this.ka.DF(this.ti(),this.limit)};_.g.Wt=function(){var a=this.status;this.HL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ti(_.Oc,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()||GL(this.V,this.data,b.xl()))this.H=!0,this.status=b.Bb(),this.data=b.xl(),this.ha=a.H,this.dispatchEvent(new _.ti(_.Oc,this))};
_.g.DB=function(a){this.dispatchEvent(new _.Ec(new _.Dc("Error occurred running a Workspace query after "+a.H+" retries.",a.error)))};
var MQc=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.pfa;this.ta=this.context.W5};_.g=MQc.prototype;_.g.Vwa=function(a){var b=this,c=new zQc(this.context.xm,this.context.YP,this.context.Rf(),this.context.Nc,function(d,e){b.DF(d,e)},a,this.context.tk());this.ji(c);_.Qe(c,function(){b.kk(c)});return c};
_.g.Ywa=function(a){var b=this,c=new DQc(this.context.xm,this.context.YP,this.context.Rf(),function(d,e){b.DF(d,e)},a,this.context.Nc);this.ji(c);_.Qe(c,function(){b.kk(c)});return c};_.g.Swa=function(a){var b=this,c=new OL(this.context.Nc,this.context.xm,this.context.Rf(),this.context.KZ,this.SY.bind(this),a);this.ji(c);_.Qe(c,function(){b.kk(c)});return c};_.g.axa=function(a){var b=this,c=new HQc(a,this,this.context.Nc);this.ji(c);_.Qe(c,function(){b.kk(c)});return c};
_.g.bxa=function(a){var b=this,c=new IQc(this.context,this,a);this.ji(c);_.Qe(c,function(){b.kk(c)});return c};_.g.exa=function(a){var b=this,c=new LQc(this.context,a,this);this.ji(c);_.Qe(c,function(){b.kk(c)});return c};_.g.Zwa=function(a){var b=this,c=new GQc(this.context,a,function(){if(a instanceof _.iA){var d=NQc(b.context);ZKc(d,d.getKey(a)).refresh()}});this.ji(c);_.Qe(c,function(){b.kk(c)});return c};
_.g.fxa=function(a){var b=this,c=new CQc(this.context,a);this.ji(c);_.Qe(c,function(){b.kk(c)});return c};_.g.Owa=function(a){var b=this,c=new xQc(this.context.Mj(),this.context.Ck(),this.context.Rf(),function(d,e){b.DF(d,e)},a);this.ji(c);_.Qe(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 _.kA)a=this.O.ji(b,a.ud());else if(a.ud()instanceof _.HG)a=XKc(this.O,b,a.ud());else if(a.ud()instanceof _.iA)a=NQc(this.context).ji(b,a.ud());else if(a.ud()instanceof _.QG)a=this.ta.ji(b,a.ud());else{var c=a.ud(),d=NL(this.context.xm,c,2);this.log("Registering LiveList "+a.ti()+" "+d);a=this.W.ji(b,c)}"boolean"===typeof a&&gJc(this.ha,b,a)};
_.g.kk=function(a){if(a.ud()instanceof _.kA)this.O.kk(a.ti(),a.ud());else if(a.ud()instanceof _.HG)YKc(this.O,a.ti(),a.ud());else if(a.ud()instanceof _.iA)NQc(this.context).kk(a.ti(),a.ud());else if(a.ud()instanceof _.QG)this.ta.kk(a.ti(),a.ud());else{var b=a.ud(),c=NL(this.context.xm,b,2);this.log("Unregistering LiveList "+a.ti()+" "+c);this.W.kk(a.ti(),b)}iM(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.DF=function(a,b){var c=OQc(this,a).ud();c.vi(b);c instanceof _.kA?this.O.ji(a,c):c instanceof _.HG?XKc(this.O,a,c):c instanceof _.QG?this.ta.ji(a,c):this.W.ji(a,c)};_.g.iO=function(a,b){var c=this.H[a]&&this.H[a].ud();c&&(c instanceof _.nf?oBc(c.O(),b.wd().filter(function(d){return!cM(d)})):c instanceof _.xA&&oBc(c.O(),Object.values(b.gq()).filter(function(d){return d&&!cM(d)})));this.ka[a]=b;this.V||(this.V=_.Fi(this.T8,50,this))};
_.g.HX=function(a,b){this.ma[a]=b;this.V||(this.V=_.Fi(this.T8,50,this))};_.g.vA=function(a){(a=this.H[a])&&a.gW()};_.g.T8=function(){_.Gi(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&&(jJc(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])iM(this.ha,a,3),d.DB(c)};
_.g.tka=function(a){return OQc(this,a).ud()};var OQc=function(a,b){if(!a.H[b])throw Error("eg`"+b);return a.H[b]};MQc.prototype.log=function(a,b){this.context.Rf().log("drive.ds.sync.cache.LocalLiveRequestManager",a,void 0===b?"info":b)};
var PQc=function(){},QQc=function(a){this.H=a},ICc=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.sA=f;this.H=h;this.W=k};
var $M=function(a,b){_.Di.call(this);this.O=a;this.request=b;this.je=_.ai();this.complete=!1;this.H=""};_.K($M,_.Di);$M.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};$M.prototype.W=function(a){this.H=a.H;this.dispatchEvent(new uQc(0,this.H));RQc(this)};
var RQc=function(a){_.n.setTimeout(function(){a.O.then(function(b){return b.Qe(new _.Fuc(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 gQc;c=_.Ij(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.sA);c=_.w(c,8,b.H);b=_.Kj(c,4,b.W);a.je.resolve(b)}else b=_.dJ(_.nq(_.mq(new _.Cc,"Export failed for request "+a.H+": "+b.status),JSON.stringify(b)),8),a.handleError(b);a.dispose()}else a.dispatchEvent(new uQc(b.O,
a.H)),RQc(a)}).Dg(function(b){a.handleError(b)})},5E3)};$M.prototype.cancel=function(){var a=this;this.O.then(function(b){return b.Qe(new _.Euc(a.H))}).then(this.V.bind(this)).Dg(this.handleError.bind(this))};$M.prototype.V=function(){if(!this.complete){var a=new gQc;a=_.w(a,3,this.H);a=_.w(a,1,!0);this.je.resolve(a);this.complete=!0;this.dispose()}};$M.prototype.handleError=function(a){this.complete=!0;this.je.reject(_.qJ(a));this.dispose()};
var SQc=function(){_.ti.call(this,"VbxEwf")};_.K(SQc,_.ti);
var TQc=function(a,b){this.context=a;this.H=null;this.qc=b||null};_.g=TQc.prototype;_.g.La=function(){return _.B(this.context.Nc,_.nJ,58)};_.g.getContext=function(){return this.context};_.g.Qz=function(){return this.context.ZA.Qz(this.H)};_.g.Rf=function(){return this.context.Rf()};_.g.IM=function(a){return _.ii(this.context.Nf.wm.H(a))};_.g.YQ=function(){return _.ii(this.context.ZA.YQ())};
_.g.O4=function(a,b,c){var d=new _.di;if(_.dk(a,_.YI,3,_.ZI)||_.dk(a,_.jK,4,_.ZI)||_.dk(a,_.aL,5,_.ZI)||_.dk(a,_.gK,6,_.ZI)||_.dk(a,_.FJ,7,_.ZI)||_.dk(a,_.yJ,8,_.ZI)||_.dk(a,_.CJ,9,_.ZI)||_.dk(a,_.gJ,10,_.ZI)){var e=dJc(a);this.context.Tm().then(function(f){return f.Qe(e,{q6a:b,r6a:c})}).then(this.w$a.bind(this,d),d.Jd,d);return d}throw Error("fg");};
_.g.w$a=function(a,b){var c=[],d="";if(b instanceof _.bL){c=b.jd().wd();var e=_.y(b,2);d=b.Zn()}else if(b instanceof _.nK)b.getItem()&&c.push(b.getItem()),e=b.QM();else throw Error("gg");a.callback({items:c,mia:e,pageToken:d})};_.g.Fpa=function(){var a=this.context.Nc,b=a.ig();a="email:"+_.II(a).getEmail().replace(/@.*$/,"");_.w(b,13,a)};_.g.Mha=function(){this.context.Js.eS();var a=this.context.Nc;RMc(_.BK(_.II(a)),_.CK(a),this.context.Rf()).Dg(function(){})};
_.g.e9=function(){return _.Mtc[_.Fj(this.context.Nc.ig(),8,0)]};_.g.gda=function(){this.context.OF.H=new GLc(_.Vg().substring(0,8))};_.g.JS=function(){var a=this.context.OF.gN(),b=null;a&&(b=ILc(this.context.OF),b={traceId:a,spanRecs:b});a=this.context.OF;a.H=null;a.zY=[];return _.ii(b)};_.g.gN=function(){return _.ii(this.context.OF.gN())};
_.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.wm.Ed();c=this.context.Nf.Jt;var d=c.H;d&&(b.cs_sutd=d.V7,b.cs_ss=d.Ed());b.cs_ch=XJc(c).length;b.cs_td=c.XV().length;(c=this.context.X5)&&(b.t_cps=c.tWa().getStats().join(","));b.t_id=UQc(this.context);
var e=[];VQc(this.context.XQ()).forEach(function(f,h){e.push(h+":"+f.join(";"))});b.t_ct=e.join(",");b.n_a=this.context.nz?this.context.Ck().isConnected():this.context.vI.JB();b.n_o=this.context.nz?this.context.Ck().Se():this.context.Mj().Se();b.n_csm=!!this.context.nz;a&&(b.csw_cc=_.Pa(a.channels),b.csw_ac=a.O,b.csw_mcc=a.H);return _.ii(JSON.stringify(b))};_.g.cpa=function(){this.qc&&(this.qc.dispatchEvent(new SQc),this.qc.Fu())};
_.g.Pl=function(a){var b=this.context.nz;b&&a!==b.V&&(b.V=a,b.reset(),a?b.state.update(3):_.ayc(b))};
var YQc=function(a,b){this.context=a;this.Mg=b;this.H=_.ruc(_.JK(this.Mg),WQc);this.O=_.ruc(_.JK(this.Mg),XQc)};
YQc.prototype.zl=function(a){var b=this,c=this.context.OP.xf().xf(),d=(c=c?c.getUser():null)?c.getId():null,e={};a.forEach(function(h){_.vuc(h);var k=h.getId(),l=b.context.ao();_.Qvc(h,3);_.jJ(h,5);var p=KBc(h,!0);h.getCapabilities()||_.xK(h,new _.Xk);_.P(p,2)&&((p=h.wk())&&p.length?_.w(h,46,p[0]):(_.wK(h,[l]),_.w(h,46,l)),l=h.zq(),_.w(h,12,l),l=new _.Rk,l.Ob(d),_.w(l,6,1),_.bvc(l,!0),_.Jvc(h,l),_.Ivc(h,[l]),_.N8b(h,1));e[k]=h});a=Object.keys(e);c=this.context.Nf;var f=jIc(c.wm,a);_.La(f,function(h,
k){uL(h.getItem(),e[k],b.H);(b.context.Mj().Se()||b.context.Ck().Se()||3===h.getItem().sv())&&uL(h.getItem(),e[k],b.O);_.Ua(e,k)});_.La(e,function(h){_.dl(h.Sm())&&(f[h.getId()]=new bM(h))});ZQc(c,Object.values(f))};
var $Qc=function(a,b){var c=[];b.forEach(function(d){c.push(d.getItem())});a.zl(c)},aRc=function(a){a=a.context.Nf;var b=new _.nf;b.Pl(!0);b=lIc(a.wm,b);for(var c=[],d=[],e=0;e<b.length;e++){var f=b[e].getItem();if(3===f.sv()){var h=new _.aJ;_.bJ(h,f.getId());_.kJ(h);d.push(h)}else h=new _.Tna,_.rL(h,!1),_.w(h,2,!1),_.I(f,81,h),c.push(b[e])}ZQc(a,c);a.Ro(d)},WQc=[50],XQc=[12,11,10,67,68];
var bRc=function(a){this.context=a;this.H=null;this.V=!1;this.O=new YQc(a,a.Mg)};_.g=bRc.prototype;_.g.kY=function(a){this.H=a;this.V=!1;if(a){if(this.H){a=this.y$a.bind(this);var b=this.x$a.bind(this);this.log("Querying all offline items.");this.H.pV().mg(a,b);this.V||(this.H.w_((0,_.M)(this.Nwb,this)),this.V=!0)}}else aRc(this.O)};_.g.y$a=function(a){this.log("Processing all offline item(s): "+a.length);this.O.zl(a);oM(this.context.Sj,"GZTDpc")};_.g.x$a=function(){this.log("Error fetching offline items.")};
_.g.Nwb=function(a){this.log("Handling offline change(s): "+a.length);$Qc(this.O,a)};_.g.log=function(a){this.context.Rf().info("drive.ds.sync.offline.LocalDataService",a)};
var aN=function(a){_.Di.call(this);this.context=a;this.Ba="drive.ds.sync.BaseItemService";this.Sc=new _.Ye(this);this.ma=null;this.Ta=this.va=!1;var b=new bRc(a);this.context.ha=b;this.Fa=new TQc(a,this);tCc(this.Fa);(b=_.B(a.Nc,_.nJ,58))&&_.Q(b,1,!1);this.Ma(this.Sc);this.O=this.context.Sj;this.W=a.mfa;this.V=new MQc(a,this.W);a=this.context;b=this.V;a.W=b;a.O.resolve(b);this.YRa()};_.K(aN,_.Di);_.g=aN.prototype;_.g.YRa=function(){};
_.g.initialize=function(){var a=this;if(!this.ma){this.ma=_.ai();var b=this.context.tk().H(106E3);this.ma.promise.then(function(){b&&b.Aj()},function(){_.ZK(a.context.tk(),181008852)});var c=_.DK(this.context.Nc)?"(coldstart) ":"";this.context.Rf().info(this.Ba,"Initializing "+c+" with client build: "+this.context.Nc.Xi());this.Sc.listen(this.context,_.Nc,this.rub);this.Sc.listen(this.context.vI,["pb","qb"],function(d){return void a.dispatchEvent(d)});this.Sc.listen(this.context.Ck(),[].concat(_.Ad(Object.values(_.pC))),
function(d){return void a.dispatchEvent(d)});this.$a();this.O.start();oM(this.O,"NSockf")}return this.ma.promise};_.g.VWa=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 bN("teamDriveQuery");};_.g.oda=function(){throw bN("teamDriveFindByIds");};
_.g.xpa=function(){throw bN("teamDriveMovePreflight");};_.g.QFa=function(){throw bN("peoplePredictQuery");};_.g.query=function(a){BIc(this.context.xm,a,EFc(this.context.Mg));this.hF();var b=a.clone();b=this.V.Vwa(b);this.Ta||(a=a.te(),a&&121===_.y(a,1)||(this.Ta=!0,this.Sc.listen(b,_.Oc,this.mMa)));return b};_.g.mMa=function(a){a=a.currentTarget;if(1===a.Bb()){var b=this.O.H("W6J7De");this.Fa.H=b;this.Sc.Yc(a,_.Oc,this.mMa)}};_.g.Fq=function(a){this.hF();pGc(a);return this.V.Swa(a.clone())};
_.g.Uua=function(){throw bN("activityQuery");};_.g.Fva=function(){throw bN("backupsQuery");};_.g.AGa=function(){throw bN("refreshBackups");};_.g.qV=function(){throw bN("getAndroidBackupItems");};_.g.j8=function(){throw bN("deleteBackup");};_.g.TFa=function(){throw bN("permissionQuery");};_.g.X$=function(){throw bN("insertPermission");};_.g.k8=function(){throw bN("deletePermission");};_.g.ld=function(){throw bN("mutate");};_.g.LN=function(){throw bN("mutateWorkspace");};
_.g.Dz=function(){throw bN("bulkMutate");};_.g.Rwa=function(){throw bN("createFileUploader");};_.g.lSa=function(a){return new $M(this.context.Tm(),a)};_.g.xr=function(a){if(3===a.getType())return _.ji(this.context.Tm().then(function(b){return b.Qe(a)}).then(null,_.rJ));throw bN("getApps with type "+a.getType());};_.g.wr=function(){throw bN("getApp");};_.g.Z$=function(){throw bN("installApp");};_.g.i8=function(){throw bN("deleteApp");};_.g.WS=function(){throw bN("updateApp");};
_.g.lN=function(){throw bN("getUserAccount");};_.g.IG=function(){throw bN("getUserPrefs");};_.g.VR=function(){throw bN("mutateUserPref");};_.g.lu=function(){throw bN("getRevisions");};_.g.DBa=function(){return!1};_.g.Pl=function(a){this.context.nz?a?_.byc(this.context.nz,!0):this.context.Ck().Se()&&this.context.nz.lM(!0).then(null,function(){}):this.context.Mj().Pl(a)};_.g.az=function(){throw bN("setOfflineOptIn");};_.g.kY=function(){throw bN("setLocalItemService");};_.g.hF=function(){};
_.g.XR=function(){this.context.XR();this.context.tk().O(106006)};_.g.v9=function(){return this.Fa};_.g.hY=function(){};_.g.JB=function(){return this.context.vI.JB()};_.g.dQ=function(){return _.Q(this.context.Nc.ig(),52,!1)?_.Yh(XIc(new WIc,0)):this.context.vI.dQ()};_.g.isConnected=function(){return 1===this.context.Ck().get()};_.g.E7=function(){var a=this.context.nz;return a?a.lM():_.Yh(_.Uxc(0))};_.g.sync=function(){throw bN("sync");};_.g.Fu=function(){return this.context.Fu()};
_.g.oba=function(){throw bN("offlineDataLoaded");};_.g.Dna=function(a){return this.context.Tm().then(function(b){return b.Qe(a)}).then(function(b){return b})};_.g.fwa=function(){throw bN("categoryMetadataQuery");};_.g.z7=function(){throw bN("changeCategoryLinks");};_.g.TO=function(){throw bN("updateCategoryMetadata");};_.g.kGa=function(){throw bN("publishedCategoriesQuery");};_.g.lGa=function(){throw bN("publishedCategoryQuery");};_.g.QKa=function(){throw bN("workspaceFindByIdsRequest");};
_.g.tqa=function(){throw bN("workspaceQueryRequest");};_.g.iJa=function(){throw bN("suggestedWorkspaceItemQueryRequest");};_.g.jJa=function(){throw bN("suggestedWorkspaceQueryRequest");};_.g.u_=function(){throw bN("addCacheHint");};_.g.$_=function(){throw bN("createUserFeedback");};_.g.Ro=function(){throw bN("handleChanges");};var bN=function(a){return new _.Dc(a+" is unsupported",_.pJ(3))};
var SCc=function(a){aN.call(this,a);this.Ba="drive.ds.sync.AnonymousItemService";a.Du("")};_.K(SCc,aN);SCc.prototype.$a=function(){nM(this.O,["NSockf"],this.VWa.bind(this))};
var cRc=new Set([1,2,4,5,6]),dRc=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};dRc.prototype.xf=function(){var a=new _.VM;a.Dc(this.status);this.H&&_.PPc(a,eRc(this));return a};
var fRc=function(a,b,c,d){d=void 0===d?!1:d;var e=cRc.has(c);if(1===a.status&&!e)return!1;a.Je=c;var f=a.status;c=!a.H;if(_.XI(a.O)){var h=(h=b&&b.getUser())&&sL(h);h=!(!h||!GKc(a.ka,h));a.status=h&&e||d?1:6}f=!_.Zj(a.H,b)||(_.XI(a.O)?a.status!==f:6===a.status&&e);a.H=b.clone();_.XI(a.O)||(a.status=e||d?1:6);c&&(oM(a.ha,"toquGd"),a.W.info("drive.ds.sync.account.InMemoryAccountCache","Account loaded from "+(e?"server":"cache")));f&&a.V.update(0);return f};dRc.prototype.Ze=function(){return this.Je};
var eRc=function(a){return a.H?a.H.clone():null};
var gRc=function(a){_.Di.call(this);this.ha=a;this.Je=0};_.K(gRc,_.Di);var hRc=function(a){a=a.clone();var b=function(c){return c.toLowerCase()};zHc(a,_.fe(a,4).map(b));AHc(a,_.fe(a,5).map(b));return a};_.g=gRc.prototype;_.g.xr=function(){};_.g.put=function(){};_.g.remove=function(){};_.g.ZP=function(){};_.g.OG=function(){return 0!==this.Je};_.g.Ze=function(){return this.Je};
var iRc=new Set([1,2,4,5,6]),jRc=function(a,b,c){gRc.call(this,b);this.W=a;this.V=c;this.H={};this.O=[];this.status=6;this.vp=!1};_.K(jRc,gRc);jRc.prototype.xr=function(){var a=new jM;if(!_.Ta(this.H)){_.Ij(a,4,this.O);var b=[];_.La(this.H,function(c){b.push(c.clone())});_.Kj(a,2,b)}a.Dc(this.status);return a};jRc.prototype.put=function(a){this.H[a.getId()]=hRc(a);this.V.update(1);this.dispatchEvent(new _.ti("Mb",this))};jRc.prototype.remove=function(a){_.Ua(this.H,a)&&this.V.update(1)};
jRc.prototype.ZP=function(a,b,c){c=void 0===c?!1:c;var d=!iRc.has(b);1===this.status&&d||(this.Je=b,kRc(this,a,!d||c),d||this.V.update(1),this.vp||(this.vp=!0,this.W.info("drive.ds.sync.appsettings.InMemoryAppSettingsCache","Apps initialized."),oM(this.ha,"nVUlO")))};
var kRc=function(a,b,c){var d=!1,e=c?1:6;d=e!==a.status;a.status=e;e=_.fe(b,4);if(!d)if(e.length!==a.O.length)d=!0;else{var f=e.concat(a.O);_.Da(f);d=f.length!==a.O.length}a.O=e;var h=_.Ya(a.H);_.vqc(a.H);b=_.Oj(b,_.XL,2);d||(d=b.length!==_.Pa(h));b.forEach(function(k){var l=hRc(k);a.H[k.getId()]=l;d||(k=h[k.getId()],d=!k||!_.Zj(l,k))});a.W.info("drive.ds.sync.appsettings.InMemoryAppSettingsCache",(c?"Fresh":"Stale")+" apps loaded: "+b.length);d&&a.dispatchEvent(new _.ti("Mb",a))};
var cN=function(a){_.O.call(this);this.context=a;this.Ly=new Set;this.Ep=6;this.uCa=!0;this.Je=0;this.Sc=new _.Ye(this);this.Ma(this.Sc)};_.K(cN,_.O);_.g=cN.prototype;_.g.ji=function(a){this.kRa(a);this.Ly.add(a);this.resize(!0);this.iO(a)};_.g.kRa=function(){};_.g.kk=function(a){this.Ly.delete(a);0!=this.Ly.size||this.eZa()?this.resize(!1):this.dispose()};_.g.Ze=function(){return this.Je};_.g.Ki=function(a){this.Je=a};_.g.bC=function(a){this.uCa=!1;this.Ep=a};_.g.EJ=function(){return this.Ep};
_.g.refresh=function(){};_.g.fk=function(){};
var mRc=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)}}lRc(a.context.Nf,d,b);d.forEach(function(k){FLc(a.context.tMa,k,b);if(k.yc()){var l=k.getCapabilities();cM(k)?l&&(_.nvc(l,_.P(l,13)),_.kvc(l,!1),_.rvc(l,!1)):wL(k)?(l&&_.w(l,3,!1),_.w(k,30,!1)):l&&(_.vvc(l,!1),_.wvc(l,!1))}k.getCapabilities()||_.xK(k,
new _.Xk)})};cN.prototype.resize=function(){};cN.prototype.ud=function(){};cN.prototype.zl=function(a,b){var c=this,d=!1;a.forEach(function(e){e=pM(e);d=c.Ku(e,!0)||d});b||(1!=this.EJ()&&(d=!0),this.bC(1));d&&this.IX()};var nRc=function(a,b){var c=!1;b.forEach(function(d){c=a.Ku(d)||c});c&&a.IX();return c};_.g=cN.prototype;_.g.update=function(a){return nRc(this,[a])};_.g.Ku=function(){};_.g.IX=function(){var a=this;this.jRa();this.Ly.forEach(function(b){a.iO(b)})};_.g.jRa=function(){};
_.g.iO=function(a){var b=oRc(this.context).tka(a);this.rYa(b)||(b=this.fk(b),oRc(this.context).iO(a,b))};_.g.HX=function(a){var b=this;this.bC(3);this.Ly.forEach(function(c){oRc(b.context).HX(c,a)})};_.g.vA=function(){var a=this;this.Ly.forEach(function(b){oRc(a.context).vA(b)});this.Ki(0==this.Ze()?1:6)};_.g.eZa=function(){return!1};_.g.rYa=function(){return!1};
var pRc=function(a){_.ti.call(this,"xa");this.id=a};_.K(pRc,_.ti);
var qRc=function(a,b,c,d){d=void 0===d?!1:d;_.Di.call(this);this.request=a;this.context=b;this.GKa=d;this.je=null;this.items={};this.W=[];this.V=[];this.H=null;this.originalRequest=c||a;this.O=new Set};_.K(qRc,_.Di);
qRc.prototype.$g=function(){var a=this;if(this.je)return this.je.promise;this.je=_.ai();for(var b={},c=_.m(this.request.nn().entries()),d=c.next();!d.done;b={$qa:b.$qa,gea:b.gea,Kqa:b.Kqa},d=c.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;b.Kqa=e;b.$qa=QFc(PFc(d),this.request);b.gea=void 0;this.GKa&&(b.gea={GKa:!0});this.context.Tm().then(function(f){return function(h){return h.Qe(f.$qa,f.gea)}}(b)).then(function(f){return void rRc(a,f)},function(f){return function(h){var k=f.Kqa;h=
_.QB(h);5===h.Tg.Ws()||4===h.Tg.Ak()?(a.context.Rf().info("drive.ds.sync.query.ViewCacheFindByIdsRunner","Deleting "+k+" due to: "+h.message),a.V.push(k),sRc(a)):a.handleError(h)}}(b))}return this.je.promise};var rRc=function(a,b){b.jd().wd().forEach(function(c){_.jJ(c,1);a.W.push(c)});sRc(a)},sRc=function(a){a.H||(a.H=_.n.setTimeout(a.ha.bind(a),10))};
qRc.prototype.ha=function(){_.n.clearTimeout(this.H);this.H=null;tRc(this);uRc(this);this.O.size===this.request.nn().length?(this.context.Nf.zl([],1,this.originalRequest,!1),this.dispatchEvent("za"),this.je.resolve(this.items)):this.dispatchEvent("wa")};
var tRc=function(a){var b=a.W;a.W=[];b=a.context.ofa.O8(b);if(_.uI(_.II(a.context.Nc))){var c=a.context.Nf.wm;_.Ia(b,function(d){var e=c.H(d.getId());e&&_.wK(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)},uRc=function(a){var b=a.V;a.V=[];b.forEach(function(c){var d=_.kJ(_.bJ(new _.aJ,c));a.context.Nf.Ro([d]);a.O.add(c);a.items[c]=null;a.dispatchEvent(new pRc(c))})};
qRc.prototype.handleError=function(a){var b=new LL(a.Tg,_.ak(this.context.Nc.ig(),1,1));this.context.Nf.DB(this.request,b);this.dispatchEvent(b);this.je.reject(a)};
var vRc=function(a,b,c,d){cN.call(this,a);this.Mg=b;this.request=c;this.Hd={};this.H=null;this.O=_.pK(a.Nc)||new _.Zvc;d&&this.zl(d,!0)};_.K(vRc,cN);
vRc.prototype.refresh=function(){var a=this;if(this.H)return this.H.promise;this.Ep=6;if(_.Q(this.request,5,!1))return this.bC(1),_.Yh();var b=this.uCa?!rBc(_.JK(this.Mg),this.request.O()):!1,c=[],d=this.context.ao();this.request.nn().forEach(function(h){if("root"!==h&&h!==d){var k=a.Hd[h],l=k&&k.getItem();if(k=!k||l&&1!==l.sv()||b)l=l&&l.Sm(),k=!(l&&_.P(l,2));k&&c.push(h)}});if(0===c.length)return this.zl([],!1),_.Yh();this.H=_.ai();this.H.promise.then(function(){a.H=null},function(){a.H=null});
var e=this.request.clone();_.zA(e,c);var f=new qRc(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"),wRc(a,f,a.H))}),this.Ep=0<Object.values(this.Hd).length?1:2):(this.context.Ck().Se()&&(this.Ep=0<Object.values(this.Hd).length?1:2),wRc(this,f,this.H));return this.H.promise};var wRc=function(a,b,c){a.Sc.listen(b,"xa",function(d){a.Hd[d.id]=null});a.vA();b.$g().then(function(){c.resolve()},c.reject)};_.g=vRc.prototype;
_.g.Jha=function(a){var b=this;if(this.context.xm.equals(a,this.request,!0)){if(rBc(_.JK(this.Mg),a.O()))return!0;if(rBc(this.request.O(),a.O(),_.JK(this.Mg))){if(this.uCa)return!0;if(_.Q(this.O,5,!1))return this.request.nn().every(function(c){return(c=b.Hd[c])&&_.P(c.getItem(),31)})}}return!1};
_.g.fk=function(a){var b=new _.RK;_.XI(this.context.Nc)?b.Dc(EBc(Object.values(this.Hd))?6:this.Ep):b.Dc(this.Ep);b.Ki(this.Ze());lGc(b,_.Na(this.Hd,function(c){return c?c.getItem():null}));mRc(this,a.O(),b.gq());return b};_.g.resize=function(){};_.g.ud=function(){return this.request};_.g.Ed=function(){return Object.values(this.Hd).length};_.g.Ku=function(a){var b=this.ts(a.O),c=this.ts(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.ts=function(a){return!!a&&_.ma(this.request.nn(),a.getId())};
var xRc=function(a,b){_.ti.call(this,a);this.changes=b};_.K(xRc,_.ti);
var yRc=function(a){var b=new MKc;if(a.dg()){var c=a.dg();b.H=!1;b.suggestionSessionId=c}a instanceof _.SK&&_.Oj(a,_.Rk,6).length?(a=_.Oj(a,_.Rk,6),b.H=!1,b.V=a):a instanceof _.pB&&(a.S5()||a.gsa()||a.eka().length)&&(c=a.S5(),b.H=!1,b.W=c,c=a.gsa()||!1,b.H=!1,b.incompleteSearch=c,a=a.eka(),b.H=!1,b.O=a);return b};
var dN=function(a,b,c,d,e){e=void 0===e?"":e;_.Di.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.hGa(b);this.ha=new MKc};_.K(dN,_.Di);var zRc=function(a){return!a.va||""!==a.nextPageToken},BRc=function(a,b){a.W=b;return a.V.length<a.W&&!a.O&&zRc(a)?ARc(a):_.ii()};dN.prototype.$b=function(){return this.V.length};dN.prototype.H=function(){return this.V.slice()};
var ARc=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 _.di;d.addCallback(function(f){return void CRc(a,c,f)});var e=_.VAc(_.WAc(new _.YI,a.Fa),c);b=_.TAc(new _.htc,b);a.Ha&&_.w(b,10,!0);_.UAc(e,b);a.va=!0;a.O=!0;a.context.Tm().then(function(f){return f.Qe(e)}).then(a.ta.bind(a,d),a.handleError.bind(a,d,b));return d};
dN.prototype.ta=function(a,b){this.O=!1;if(b instanceof _.SK)var c=b;else c=b.jd(),this.nextPageToken=b.Zn()||"";this.ha=yRc(c);this.ha.vc()||this.dispatchEvent("ya");a.callback(c.wd())};
dN.prototype.handleError=function(a,b,c){c=_.QB(c);this.O=!1;if(5===c.Tg.Ws())a.callback([]);else{if(10===c.Tg.Ws()&&(_.TAc(b,Math.ceil(_.ak(b,1,1E3)/2-2E-15)),1<_.ak(b,1,1E3))){var d=_.UAc(_.VAc(_.WAc(new _.YI,this.Fa),this.nextPageToken),b);this.O=!0;this.context.Tm().then(function(e){return e.Qe(d)}).then(this.ta.bind(this,a),this.handleError.bind(this,a,b));return}b=new LL(c.Tg,_.ak(this.context.Nc.ig(),1,1));this.nMa(b);this.dispatchEvent(b);a.Jd(c)}};
var CRc=function(a,b,c){for(var d=new Set,e=_.m(c),f=e.next();!f.done;f=e.next()){f=f.value;if(d.has(f.getId())){f="Encountered duplicate item in server query response. itemId: "+(f.getId()+", query: ")+(_.jxc(a.request)+" paginationToken: ")+b;b=_.oq(_.mq(_.dJ(_.cJ(new _.Cc,2),9),f));a.context.dispatchEvent(new _.Ec(new _.Dc(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())_.jJ(b.value,
a.ma?2:1);c=[];b=_.m(a.J1a(f));for(f=b.next();!f.done;f=b.next())f=f.value,a.V.push(f.getId()),f=_.bJ(new _.aJ,f.getId()).setItem(f),c.push(f);c.length&&a.dispatchEvent(new xRc("wa",c));if(a.V.length<a.W&&a.nextPageToken)return ARc(a);a.dispatchEvent("za")};_.g=dN.prototype;_.g.J1a=function(a){return a};_.g.nMa=function(){};_.g.ud=function(){return this.request};_.g.hGa=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 DRc=function(a,b,c,d){dN.call(this,a,b,void 0,c,d)};_.K(DRc,dN);DRc.prototype.J1a=function(a){a=this.context.ofa.O8(a);this.context.Nf.zl(a,1,this.request,zRc(this));return a};DRc.prototype.nMa=function(a){this.context.Nf.DB(this.request,a)};DRc.prototype.hGa=function(a){var b=a=dN.prototype.hGa.call(this,a),c=_.Nl(b);0===_.fe(b,33).length&&1===c.length&&(c=this.context.Nf.wm.H(c[0].Za()))&&(c=c.yc())&&(_.Ql(b,[c]),_.Rl(b,2));ERc(this,a);return a};
var ERc=function(a,b){if(_.Nl(b).some(function(d){return(d=a.context.Nf.wm.H(d.Za()))&&_.P(d,108)})){var c=b.te();c||(c=new _.Cf,_.Ol(b,c));_.Df(c,937)}};
var FRc=function(a,b,c,d){this.context=a;this.Mg=b;this.W=d;this.Fna=0;this.H=c},JRc=function(a,b){if(b){a.log("Processing potential rejoin for TD: "+b);var c=_.Rl(_.Ll(_.Ql(new _.nf,[b]),_.JK(a.Mg)),1),d=_.Df(new _.Cf,306);_.Ol(c,d);GRc(a);c=new DRc(a.context,c);BRc(c,5E3).addCallback(a.V.bind(a,c));HRc(a);IRc(a,b)}},HRc=function(a){var b=_.Qa(a.H);b=b.filter(function(d){return d instanceof vRc});var c=new Set;b.forEach(function(d){d.ud().nn().forEach(function(e){a.W.get(e)||c.add(e)})});b=_.Df(new _.Cf,
310);a.log("Re-querying missing find-by-ids :"+c.size);a.kO([].concat(_.Ad(c)),b)},IRc=function(a,b){var c=[];(a.context.Nf.qGa.jQ[b||"subscribed"]||[]).forEach(function(d){_.La(a.H,function(e){_.Zj(e.ud(),d)&&c.push(e)})});_.Da(c);0<c.length&&(GRc(a),c.forEach(function(d){d=NL(a.context.xm,d.ud(),3);a.log("Refreshing "+b+" cache: "+d)}),_.ci(_.$h(c.map(function(d){return d.refresh().Dg(_.Tf)})),a.O.bind(a)))};
FRc.prototype.kO=function(a,b,c,d,e){c=void 0===c?!1:c;a=a.filter(function(f){return!_.xe(f)});if(0===a.length)return _.Yh({});a=_.w(_.yA(_.zA(new _.xA,a),d||_.JK(this.Mg)),7,!0);_.AA(a,b);e&&e.length&&_.Kj(a,11,e);GRc(this);b=new qRc(a,this.context,void 0,c);return _.ci(b.$g(),this.V.bind(this,b))};FRc.prototype.V=function(a){a.dispose();this.O()};var GRc=function(a){a.Fna++;a.context.Js.setActive(!1)};FRc.prototype.O=function(){this.Fna--;0===this.Fna&&this.context.Js.setActive(!0)};
FRc.prototype.log=function(a){this.context.Rf().info("drive.ds.sync.cache.CacheRefresher",a)};
var KRc=function(a,b,c){_.O.call(this);this.context=a;this.H=b;this.request=c;this.O=this.je=null;a=new _.Cf;_.Ef(a,!1);_.Df(a,305);_.Ol(this.request,a);this.Sc=new _.Ye(this);this.Ma(this.Sc)};_.K(KRc,_.O);
KRc.prototype.$g=function(){if(!this.je){this.je=_.ai();if(_.Q(this.request,48,!1))return this.H.Ki(9),this.je.resolve(this.H),this.je.promise;this.O=new dN(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));BRc(this.O,this.request.Ei())}return this.je.promise};KRc.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(pM(new bM(b)))};
KRc.prototype.V=function(){this.H instanceof rM?this.H.H=!zRc(this.O):zRc(this.O)&&qM(this.H,!1);this.H.Ki(5);this.je.resolve(this.H)};
var MRc=function(a,b){_.ti.call(this,LRc);this.cache=a;this.changes=b};_.K(MRc,_.ti);var LRc="Nb";
var NRc=function(a,b){return new _.Xh(function(c,d){b.then(function(e){for(var f=new Map,h=_.m(a.qy()),k=h.next();!k.done;k=h.next()){k=k.value;var l=k.getId();LBc(k.getItem());f.set(l,WHc(new bM(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 JJc(l.getId(),l,null)):(k=k.getItem(),LBc(k),a.update(KJc(l,WHc(new bM(k),null===l||void 0===l?void 0:l.H))));a.ZW();c(e.aLb)},d)})};
var ORc=function(a,b){_.O.call(this);this.context=a;this.Mg=b};_.K(ORc,_.O);
ORc.prototype.$g=function(a){this.log("Running initial view populator (IVDP).");try{var b=new aM(JSON.parse(a))}catch(l){this.handleError("Error parsing initial view dump.",_.qJ(l));return}a=_.II(this.context.Nc);if(!_.uI(a)){var c=b.xf();if(c){var d=c.getUser();d&&d.getId()===_.D(a,6,"")&&fRc(this.context.OP,c,4)}(a=b.ao())&&this.context.Du(a,6)}var e=_.y(b,3)||void 0;e&&PRc(this.context,e,!0);if((a=_.Oj(b,_.op,9))&&a.length){c=(c=this.context.Nc.ig())&&_.fe(c,30)||[];var f=new Set(c);a.forEach(function(l){(l=
(l=l.getKey())&&_.pp(l))&&f.add(l)});this.context.dE.ZP(a,4,[].concat(_.Ad(f.values())))}a=b.wd();a.forEach(function(l){_.vuc(l);_.jJ(l,6)});if(c=_.Oj(b,$L,5)[0])if(b=this.context.xm,yBc(_.JK(this.Mg),c.getQuery().O(),_.CK(this.context.Nc)))if((d=c.getQuery().wc())&&4===d.getType()&&!_.Fqc())this.handleError("Invalid initial view data, natural sort unsupported");else{if(0<a.length){d=eM(b,c.getQuery());b=_.y(c,2)||void 0;d.vi(b);b=a.map(function(l){return new bM(l,void 0,1,e)});var h=_.B(c,_.hl,3);
if(h&&_.y(c,2)){var k=b[b.length-1];_.jJ(h,6);if(!_.Zj(h,k.getItem())){this.handleError("Invalid last item in initial view data.");return}}c=(h=_.pK(this.context.Nc))&&_.Q(h,2,!1)&&c.Zn()||"";k=new rM(this.context.ot,this.context.zv,this.context.xm,d,k,c);k.Ki(4);d=c=0;b=_.m(b);for(h=b.next();!h.done;h=b.next())k.update(pM(h.value))?c++:d++;QRc(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.MM());
k=new _.YI;_.WAc(k,b);k=_.tyc(this.context.ZA,k,"IVDP");_.uyc(k,a);oM(this.context.Sj,"W6J7De")}}else this.handleError("Invalid initial view data, fields: "+zIc(b,c.getQuery().O()));else this.handleError("No initial query found")};ORc.prototype.handleError=function(a,b){var c=b?void 0:_.oq(_.dJ(_.cJ(new _.Cc,2),6));b=new _.Dc(a,c,b);this.context.nJ(b.Tg);this.log("Initial view dump population failed. Message: "+a);oM(this.context.Sj,"DEJoH")};
ORc.prototype.log=function(a){this.context.Rf().info("drive.ds.sync.cache.InitialViewPopulator",a)};
var RRc=function(a){_.Di.call(this);this.context=a;this.W="drive.ds.sync.cache.CorpusCachePopulator";this.V=0;this.O=new tM(a.ot,a.zv,a.Sj,function(){return a.ao()});this.H=this.context.Nc;this.ta=new NJc(a.ot,a.zv)};_.K(RRc,_.Di);
var SRc=function(a,b){var c=_.ak(a.H,31,2E4);b="number"===typeof _.y(b,3)?_.y(b,3):c+1;b>c?(qM(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.ZA.Jb("CachedCorpusType",c)};RRc.prototype.log=function(a,b){this.context.Rf().log(this.W,a,b||"info")};var TRc=function(a,b){0===a.V&&(a.V=b)};
var URc=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 VRc=function(a,b){_.Di.call(this);this.context=a;this.request=b;this.V=[];this.nextPageToken="";this.H=this.O=!1};_.K(VRc,_.Di);VRc.prototype.$g=function(){return this.H||this.O&&""===this.nextPageToken?_.ii():WRc(this)};VRc.prototype.$b=function(){return this.V.length};
var WRc=function(a){a.O=!0;a.H=!0;var b=bFc(cFc(new _.jK,a.request),a.nextPageToken),c=_.tyc(a.context.ZA,b);return _.ji(a.context.Tm().then(function(d){return d.Qe(b)}).then(function(d){var e=d.jd().wd();a.nextPageToken=d.Zn()||"";XRc(a,c,e)},function(d){return void a.handleError(d)}))},XRc=function(a,b,c){_.uyc(b,c);for(b=0;b<c.length;b++)_.jJ(c[b],1);a.context.Nf.zl(c,1,a.request,!a.O||""!==a.nextPageToken);var d=[];_.Ia(c,function(e){this.V.push(e.getId());e=_.bJ(new _.aJ,e.getId()).setItem(e);
d.push(e)},a);d.length&&a.dispatchEvent(new xRc("wa",d));a.nextPageToken?WRc(a):(a.H=!1,a.dispatchEvent("za"))};VRc.prototype.handleError=function(a){this.H=!1;a=new LL(_.eJ(a),_.ak(this.context.Nc.ig(),1,1));this.dispatchEvent(a)};VRc.prototype.ud=function(){return this.request};
var YRc=function(a){this.H=_.Gqc(a,{numeric:!0})};YRc.prototype.sort=function(a){_.Ga(a,this.compare.bind(this))};YRc.prototype.compare=function(a,b){a=a.getItem();b=b.getItem();var c=this.H(a.getTitle(),b.getTitle());return 0===c?_.Ea(a.getId(),b.getId()):c};
var ZRc=function(a,b,c,d){d=void 0===d?!1:d;cN.call(this,a);this.Mg=b;this.Hd=[];this.je=null;this.request=c.clone();this.Gv=new VRc(a,this.request);this.PPb=new YRc(EL(_.II(a.Nc)));this.FCa=null!=_.P(this.request,6);_.Qe(this,this.tmb,this);d&&(this.je=_.ai(),this.je.resolve())};_.K(ZRc,cN);_.g=ZRc.prototype;_.g.refresh=function(){3===this.Ep&&(this.Ep=6,this.je=null);return this.nca()};_.g.isInitialized=function(){return!!this.je};
_.g.nca=function(){var a=this;if(this.isInitialized())return this.je.promise;this.je=_.ai();this.context.Mj().Se()?this.Sc.listen(this.context.Mj(),"Bb",function(b){b.Se()||(a.Sc.Yc(a.context.Mj(),"Bb"),a.vA(),a.Gv.$g().mg(a.je.resolve,a.je.reject,a.je))}):this.context.Ck().Se()?this.Sc.$c(this.context.Ck(),[_.pC.BL,_.pC.hU],function(){a.vA();a.Gv.$g().mg(a.je.resolve,a.je.reject,a.je)}):(this.vA(),this.Gv.$g().mg(this.je.resolve,this.je.reject,this.je));return this.je.promise};_.g.resize=function(){};
_.g.ud=function(){return this.request};_.g.qy=function(){return this.Hd};_.g.Jha=function(a){return this.context.xm.equals(a,this.request)};_.g.fk=function(a){a=a.Ei();this.PPb.sort(this.Hd);var b=oCc(_.ya(this.Hd,0,Math.min(a,this.Hd.length)));mRc(this,FFc(this.Mg),b);var c=new _.pB;c.Uw(b);c.Dc(this.xwa(a));c.Ki(this.Ze());CEc(c,a<this.Hd.length||!(this.context.Mj().Se()||this.context.Ck().Se())&&1!==this.Ep);return c};
_.g.xwa=function(a){return 1===this.Ep||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()&&cN.prototype.zl.call(this,a,b)};_.g.Ku=function(a,b){b=void 0===b?!1:b;if(!this.isInitialized())return!1;var c=a.id,d=_.ka(this.Hd,function(h){return h.getId()===c}),e=!!d;b=this.ts(a.H,b);var f=a.O;d&&(f=d,e=!0);if(e||b)e?b?this.oKa(f,a.H):this.jJ(f):this.oR(a.H);else return!1;return!0};_.g.oR=function(a){this.Hd.push(a);a.count++};
_.g.jJ=function(a){_.ta(this.Hd,a);a.count--};_.g.Hya=function(a){return _.la(this.Hd,a)};_.g.oKa=function(a,b){this.Hd[this.Hya(a)]=b;b.count++;a.count--};_.g.ts=function(a,b){b=void 0===b?!1:b;if(!a)return!1;if(this.FCa&&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=cM(a.getItem())&&URc(this.request,a.getItem());return b&&a}return cM(a.getItem())&&URc(this.request,a.getItem())};_.g.tmb=function(){this.Hd.forEach(function(a){a.count--})};
_.g.eZa=function(){return!0};_.g.getType=function(){return"TeamDriveViewCache"};_.g.Ed=function(){return this.Hd.length};_.g.ZW=function(){this.Ep=1};
var $Rc=function(a){this.H=a},aSc=function(a,b,c,d,e){if(0===e||null===b){var f=new wPc;_.w(f,2,b);_.w(f,1,d);return _.Yh(f)}var h=VIc();_.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.xy())&&void 0!==l?l:null;k=d+_.y(k,1);return aSc(a,p,c,k,e-1)})};
var bSc=function(a,b){RRc.call(this,a);this.Mg=b;this.ha=void 0;this.ka=null;this.ma=!1;this.BD=void 0;this.W="drive.ds.sync.cache.LocalDumpPopulator"};_.K(bSc,RRc);bSc.prototype.handleError=function(){this.log("Local dump population failed.");oM(this.context.Sj,"mrK8ic")};
bSc.prototype.$g=function(){var a=this;if(this.ka)return this.ka;if(this.context.qQ){var b=new _.di;this.ka=b;this.initialize().then(function(){var c=_.Oj(_.FL(a.H),DL,11);c=c[0]&&c[0].getKey()||"";return cSc(a,a.context.qQ,c,4)}).then(null,function(c){if(_.Q(a.H,8,!0))return dSc(a,c);throw c;}).then(function(){_.XI(a.H)||a.context.Nf.wq.H.clear();oM(a.context.Sj,"zaOY7");b.callback()},function(c){TRc(a,8);a.handleError();b.Jd(c)});return b}this.handleError();return _.ki(Error("hg"))};
bSc.prototype.initialize=function(){var a=this;return _.Yh(this.context.qQ.initialize()).then(function(){if(!_.DK(a.H)){var b=_.ak(_.FL(a.H),7,432E6);b&&(a.ha=Date.now()-b);return new _.Xh(function(c,d){aNc(a.context.uD).then(function(e){e?c():d(Error("ig"))})})}})};
var cSc=function(a,b,c,d){return _.Zf(a,function f(){var h=this,k;return _.Pf(f,function(l){return 1==l.H?(k=h.ha,eSc(h,b,c,k),fSc(h,b,c,k),gSc(h,b,c,k),_.Jf(l,hSc(h,b,c,k),2)):_.Jf(l,Promise.all([iSc(h,b,c,d,k),jSc(h,b,c,d,k),kSc(h,b,c,d,k),lSc(h,b,c,d,k)]),0)})})},eSc=function(a,b,c,d){var e=function(){return a.log("Failed to load account from storage.")};AM(b,c,0,void 0,d,a.BD).then(function(f){f[0]?fRc(a.context.OP,f[0],a.Ze(),_.DK(a.H)):e()},function(){return e()})},fSc=function(a,b,c,d){var e=
function(){return a.log("Failed to load apps from storage.")};AM(b,c,1,void 0,d,a.BD).then(function(f){f[0]?a.context.LZ.ZP(f[0],a.Ze(),_.DK(a.H)):e()},function(){return e()})},gSc=function(a,b,c,d){var e=function(){return a.log("Failed to load user prefs from storage.")};AM(b,c,5,void 0,d,a.BD).then(function(f){if(f[0]){f=f[0];var h=_.Oj(f,_.op,1);h.length&&a.context.dE.ZP(h,a.Ze(),_.fe(f,2),_.DK(a.H))}else e()},function(){return e()})},iSc=function(a,b,c,d,e){var f=new _.Gn;AM(b,c,3,1,e,a.BD).then(function(h){return mSc(a,
h[0])}).then(function(h){if(h){b!==a.context.qQ||yBc(_.fe(h,12),_.JK(a.Mg),_.CK(a.H))||(a.log("Disabling dump updater due to inconsistent fields.","warning"),a.context.Js.eS());var k=_.y(h,3);if(!k||0>k)throw Error("lg");a.context.Du(h.ao(),d);k=_.y(h,3);"number"===typeof k&&PRc(a.context,Number(k));_.DK(a.H)&&(a.log("Coldstart: Firing INITIAL_CHANGES_PROCESSED."),a.context.ODa());a.zl(h,d);f.resolve()}else f.reject("Failed to load cache hints from storage.")},f.reject,f);return f.promise},jSc=function(a,
b,c,d,e){return nSc(a,2,b,c,d,e).then(null,function(){var f;return(null===(f=_.pK(a.H))||void 0===f?0:_.Q(f,17,!1))?nSc(a,5,b,c,d,e):Promise.reject(Error("jg"))})},nSc=function(a,b,c,d,e,f){var h=new _.Gn;AM(c,d,3,b,f,a.BD).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},kSc=function(a,b,c,d,e){var f=new _.Gn;AM(b,c,3,4,e,a.BD).then(function(h){h.forEach(function(k){a.zl(k,d)});f.resolve()},function(h){return f.reject(h)});
return f.promise},lSc=function(a,b,c,d,e){var f=new _.Gn;AM(b,c,3,3,e,a.BD).then(function(h){h.length?h.forEach(function(k){a.zl(k,d)}):oM(a.context.Sj,"rVezo");f.resolve()},function(h){return f.reject(h)});return f.promise},hSc=function(a,b,c,d){var e=new _.Gn;AM(b,c,6,void 0,d,a.BD).then(function(f){f=_.m(f);for(var h=f.next();!h.done;h=f.next())h=h.value,_.Oj(h,lM,1).length&&(a.log("Importing "+_.Oj(h,lM,1).length+" people into the PeopleCache."),h=_.Oj(h,lM,1),iKc(a.context.Nf.wq.H,h,2));e.resolve()},
function(f){return e.reject(f)});return e.promise},mSc=function(a,b){var c=_.y(b,3);if(c&&!_.DK(a.H)){var d=new $Rc(a.context.Tm()),e=_.ak(_.FL(a.H),13,5);return aSc(d,c,null,0,e).then(function(f){return _.Cj(f,2)?(a.log("Encrypted dump too stale."),a.context.tk().O(106007),TRc(a,9),null):b},function(){return b})}return _.Yh(b)},dSc=function(a,b){var c=BM(a.context.IL.ij()),d=_.Oj(_.FL(a.H),DL,11).filter(function(e){return e.gt()});return TMc(_.BK(_.II(a.H)),_.CK(a.H),_.ak(_.FL(a.H),10,0)||0,_.JK(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 CM(_.Yh(e),a.context.Rf(),null,!0),k=new RLc(h,a.H,function(l){a.context.nJ(l)});k.initialize();a.ma=!0;return cSc(a,k,f?f.getKey():null,8).then(function(){return h.getMetadata([YMc])}).then(function(l){l[0]?(l=l[0].Za(),l=a.context.uD.set(YMc,l)):l=Promise.resolve();return l}).then(function(){h.close()})}return _.Zh(new _.Dc("No compatible dumps to forklift were found.",null,
b))})},sSc=function(a,b,c){var d;switch(b.Yn()){case 1:return oSc(a,b,c);case 2:return pSc(a,b,a.O);case 5:return(null===(d=_.pK(a.H))||void 0===d?0:_.Q(d,17,!1))?pSc(a,b,a.ta):null;case 3:return qSc(a,b);case 4:return rSc(a,b);default:return null}},oSc=function(a,b,c){var d=[];_.Oj(b,$L,5).forEach(function(e){var f=void 0,h=_.B(e,_.hl,3);h&&(_.vuc(h),_.P(a.H,67)&&mBc(h,BBc),_.jJ(h,c),f=new bM(h));var k=e.getQuery();if(!_.Q(k,48,!1)||_.Oj(a.H,_.nf,44).some(function(l){if(!_.Q(l,48,!1))return!1;l=
eM(a.context.xm,l,!0);return _.Zj(l,k)}))e=new rM(a.context.ot,a.context.zv,a.context.xm,k,f),e.Ki(a.Ze()),d.push({cache:e,changes:zM(a.context.Ez,null)})});return d},pSc=function(a,b,c){b=_.B(b,xCc,11);if(!b)throw Error("mg");SRc(a,b);return c.VE?(c.Ki(a.Ze()),[{cache:c,changes:zM(a.context.Ez,null)}]):[]},rSc=function(a,b){return _.Oj(b,$L,5).map(function(c){c=new ZRc(a.context,a.Mg,_.B(c,_.wI,5),!0);c.Ki(a.Ze());return{cache:c,changes:zM(a.context.Ez,null)}})},qSc=function(a,b){var c=_.fe(_.Oj(b,
$L,5)[0].getQuery(),33)[0],d=_.y(b,3)||void 0;b=zM(a.context.Ez,c);eN(a.context).addCallback(function(f){f.cva(c,d)});var e=new vM(a.context.ot,a.context.zv,c);e.Ki(a.Ze());return[{cache:e,changes:b}]};
bSc.prototype.zl=function(a,b){var c=this,d=sSc(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;_.vuc(h);_.P(this.H,67)&&mBc(h,BBc);_.jJ(h,b);_.XI(this.H)||this.context.Nf.wq.H.vc()||EKc(this.context.Nf.wq,[h]);f=new bM(h);_.fe(a,14).includes(h.getId())&&WHc(f,!0);for(h=0;h<d.length;h++)d[h].cache.update(pM(f))}d.forEach(function(k){var l=k.cache;c.dispatchEvent(new MRc(l,k.changes));c.log("Imported "+l.Ed()+" items into the "+l.getType());var p=null;
l instanceof vM&&(p=l.yc());c.context.U$.promise.then(function(){nLc(c.context.Ez,p)})});1===a.Yn()&&oM(this.context.Sj,"ZA9qG")}else this.log("Ignoring corpus cache for "+a.Yn()+".")};bSc.prototype.Ze=function(){return this.ma?7:3};
var tSc=function(a){_.O.call(this);this.context=a};_.K(tSc,_.O);tSc.prototype.$g=function(a){try{uSc(this,new nPc(JSON.parse(a)))}catch(b){this.handleError("Error parsing prefetched request.",b)}};
var uSc=function(a,b){a.log("Running prefetched request populator for "+b.getKey()+".");switch(b.getKey()){case 1:case 3:vSc(a,b);break;case 4:wSc(a,b);break;case 6:xSc(a,b);break;case 2:ySc(a,b);break;case 7:zSc(a,b);break;case 5:_.Oj(_.dk(b,pPc,7,rPc),nPc,1).forEach(function(c){uSc(a,c)});break;default:a.handleError("Unsupported prefetched request.")}},vSc=function(a,b){var c=_.dk(b,_.nf,2,qPc);b=JSON.parse(_.ck(b,3,rPc)||"{}");var d=new _.YI;_.WAc(d,c);b=a.context.XQ().xsa.yE(d,{headers:{},text:"",
json:b}).jd();ASc(a,c,b)},xSc=function(a,b){ASc(a,_.dk(b,_.nf,2,qPc),_.dk(b,_.pB,9,rPc))},ASc=function(a,b,c){for(var d=c.wd(),e=_.m(d),f=e.next();!f.done;f=e.next())_.jJ(f.value,7);c=yRc(c);a=a.context.Nf;b=eM(a.context.xm,b);e=fN(a,b);a.log("Initializing cache with "+d.length+" items for key '"+e+"'");f=a.O[e];f||(f=new gN(a.context,b),f.Ki(2),BSc(a,e,f));c.vc()||f.wsa(c);a.zl(d,1,b)},ySc=function(a,b){b=_.dk(b,_.gA,5,rPc);var c=a.context.Nc.ig();c=c&&_.fe(c,30)||[];var d=new Set(c);_.Oj(b,_.op,
3).forEach(function(e){(e=(e=e.getKey())&&_.pp(e))&&d.add(e)});a.context.dE.ZP(_.Oj(b,_.op,3),2,[].concat(_.Ad(d.values())))},wSc=function(a,b){a.context.pfa.w2(_.dk(b,mM,8,rPc).xl(),_.dk(b,_.kA,6,qPc),2,!1)},zSc=function(a,b){var c=_.dk(b,_.iA,10,qPc);b=JSON.parse(_.ck(b,3,rPc)||"{}");b=a.context.XQ().xsa.yE(c,{headers:{},text:"",json:b});NQc(a.context).w2([b],c,2,!1)};
tSc.prototype.handleError=function(a,b){var c=b?void 0:_.oq(_.dJ(_.cJ(new _.Cc,2),6));this.context.dispatchEvent(new _.Ec(new _.Dc(a,c,b)));this.log("Prefetched request population failed.")};tSc.prototype.log=function(a){this.context.Rf().info("drive.ds.sync.cache.PrefetchedRequestPopulator",a)};
var hN=function(a){RRc.call(this,a);this.ha=[];this.ka=[];this.W="drive.ds.sync.cache.SdkCachePopulator";this.va=Math.ceil(1.1*_.ak(a.Nc,31,2E4))};_.K(hN,RRc);hN.prototype.$g=function(){if(!_.Q(this.H,45,!1))return TRc(this,5),this.handleError(),_.ki(Error("ng"));this.log("Drive SDK cache population initiated.");return this.context.DVa().addCallback(this.Fa,this).addCallback(this.Ba,this).Sg(this.handleError,this)};
hN.prototype.Fa=function(){var a=this;oM(this.context.Sj,"L6uQWd");eN(this.context).addCallback(function(b){b.Dda()});if(_.Q(this.H,46,!1))return wCc(this.context.Tm(),this.context.Rf()).addCallback(function(b){if(!b)throw TRc(a,4),Error("og");SRc(a,b)});this.log("Subscribed corpus cache population disabled.");qM(this.O,!1);return _.ii()};
hN.prototype.Ba=function(){this.context.ODa();var a=new _.di;if(this.O.VE){this.log("Starting subscribed corpus cache population.");var b=this.O.ud();b.vi(this.va);this.O.Ki(5);CSc(this,this.O,b)}b=_.Oj(this.H,_.nf,44);b=_.m(b);for(var c=b.next();!c.done;c=b.next())c=new rM(this.context.ot,this.context.zv,this.context.xm,c.value),c.Ki(5),CSc(this,c,c.ud()),c=NL(this.context.xm,c.ud()),this.log("Starting "+c+" cache hint corpus cache population.");_.$h(this.ka).then(a.callback,this.ma.bind(this,a),
a);return a};var CSc=function(a,b,c){var d=zM(a.context.Ez,null);b=new KRc(a.context,b,c);a.ha.push(b);b=_.ci(b.$g().then(function(e){!e.VE&&e instanceof tM&&(a.log("Subscribed corpus cache disabled, too many backfill items."),a.context.ZA.Jb("CachedCorpusType","errorUncachedCorpus"));a.dispatchEvent(new MRc(e,d))}),function(){a.context.U$.promise.then(function(){nLc(a.context.Ez,null)})});a.ka.push(b)};
hN.prototype.ma=function(a,b){for(var c=_.m(this.ha),d=c.next();!d.done;d=c.next())d.value.dispose();TRc(this,7);c=b;b instanceof LL?c=_.qJ(b.error):_.WI(b)||(c=Error("pg`"+b));a.Jd(c)};hN.prototype.handleError=function(){this.log("Drive SDK cache population failed.");oM(this.context.Sj,"Gv4zef")};hN.prototype.Ze=function(){return 5};
var DSc=function(a,b){_.O.call(this);this.context=a;this.V=b;this.Sc=new _.Ye(this);this.impression=null;this.W=[];this.Ma(this.Sc);this.H=new bSc(this.context,this.context.Mg);this.Ma(this.H);this.O=new hN(this.context);this.Ma(this.O)};_.K(DSc,_.O);
DSc.prototype.$g=function(){var a=this;this.log("Corpus cache population initiated.");this.impression=this.context.tk().H(106002);_.n._DRIVE_dsp&&ESc(this);_.n._DRIVE_dspc=function(c){ESc(a,c)};zM(this.context.Ez,null);_.Q(this.context.Nc,24,!1)&&!_.DK(this.context.Nc)&&(_.n._DRIVE_ivd||null===_.n._DRIVE_ivd?FSc(this):_.n._DRIVE_ivdc=function(){FSc(a)});var b=this.context.qQ;if(b)return this.Sc.listen(this.H,LRc,this.ha),this.Sc.listen(this.O,LRc,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.BD=a.impression);return a.H.$g().mg(function(){return GSc(a,a.H.Ze())},function(){HSc(a,a.H.Ze(),a.H.V);return _.DK(a.context.Nc)?a.handleError(Error("qg")):a.O.$g().then(function(){return GSc(a,a.O.Ze())},function(c){HSc(a,a.O.Ze(),a.O.V);return a.handleError(c)})})},function(c){a.handleError(_.WI(c)?c:void 0,!0)})});this.handleError(void 0,!0)};
var ESc=function(a,b){var c=new tSc(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()};DSc.prototype.ha=function(a){var b=a.cache;this.log("Cache populated: "+b.getType());this.W.push(ISc(this,b,a.changes))};
var GSc=function(a,b){nLc(a.context.Ez,null);oM(a.context.Sj,"L6uQWd");eN(a.context).addCallback(function(c){c.Dda()});return Promise.all(a.W).then(function(){JSc(a,b)})},JSc=function(a,b){if(!a.isDisposed()){_.DK(a.context.Nc)||KSc(a.V,_.Oj(a.context.Nc,_.nf,44));a.log("Corpus cache population complete.");var c=a.context.Sj;c.H("mrK8ic")?c.H("Gv4zef")||a.context.Js.PDa():aNc(a.context.uD).then(function(d){d&&a.context.Js.PDa()},function(){});oM(c,"rVezo");oM(c,"BNEDtc");a.impression&&(b=_.QK(_.wtc,
b),zFc(HFc(a.impression),b),yFc(HFc(a.impression),!0),AFc(HFc(a.impression),mIc(a.V.wm)),BFc(HFc(a.impression),a.context.Nf.Yn()),a.impression.Aj());a.dispose()}},HSc=function(a,b,c){a.impression&&(b=_.QK(_.wtc,b),zFc(HFc(a.impression),b),a=HFc(a.impression),_.Mj(a,3,c,void 0))};
DSc.prototype.handleError=function(a,b){b=void 0===b?!1:b;nLc(this.context.Ez,null);var c=this.context.Sj;oM(c,"L6uQWd");eN(this.context).addCallback(function(d){d.Dda()});oM(c,"mrK8ic");oM(c,"Gv4zef");oM(c,"rVezo");oM(c,"BNEDtc");this.context.ZA.Jb("CachedCorpusType","partialCorpus");c=!!this.H.context.qQ||_.Q(this.O.H,45,!1);a&&!b&&c?(c=void 0,b="Corpus population failed: ",_.WI(a)?(c=a,b+=c.message):b+=String(a),this.log(b),a=new _.Dc(b,void 0,c),c=a.Tg,_.cJ(c,_.DK(this.context.Nc)?3:1),_.dJ(c,
6),_.mq(c,b),_.oq(c),this.context.dispatchEvent(new _.Ec(a))):this.log("Corpus population skipped");this.impression&&(yFc(HFc(this.impression),!1),this.impression.Aj());this.dispose()};var ISc=function(a,b,c){return NRc(b,c).then(function(d){d.some(function(e){return b instanceof vM&&e.Dk()&&e.Ac()===b.yc()})||QRc(a.V,b,d)},function(){return a.handleError(Error("rg"))})},FSc=function(a){if(_.n._DRIVE_ivd){var b=new ORc(a.context,a.context.Mg);a.Ma(b);b.$g(_.n._DRIVE_ivd)}else oM(a.context.Sj,"DEJoH")};
DSc.prototype.log=function(a){this.context.Rf().info("drive.ds.sync.cache.CorpusCachePopulatorManager",a)};
var LSc=function(){sM.apply(this,arguments)};_.K(LSc,sM);_.g=LSc.prototype;_.g.ts=function(a){var b;if(b=sM.prototype.ts.call(this,a))a=a&&a.getItem()&&a.getItem().Sm(),b=!(!a||!_.P(a,3));return b};_.g.ud=function(){};_.g.MM=function(){return null};_.g.getType=function(){};_.g.ZG=function(){};
var MSc=function(a,b){this.context=a;this.H=b;this.jQ={}},OSc=function(a,b){if(!_.OJ(b)){var c=_.fe(b,33);if(1===c.length)NSc(a,c[0],b);else{c=_.Nl(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.uI;var e=_.Df(new _.Cf,310);c.kO([d],e).then(function(f){if((f=f[d])&&f.yc()){var h=f.getCapabilities();h&&_.Ee(h)&&(f=f.yc(),NSc(a,f,b))}else NSc(a,null,b)});return}if(c.getItem().yc()&&_.Ee(c.getItem().getCapabilities())){c=c.getItem().yc();NSc(a,c,b);return}}NSc(a,
null,b)}}},NSc=function(a,b,c){if(b){var d=a.H.get(b);if(d&&!cM(d.getItem()))return}d=b||"subscribed";a.jQ[d]||(a.jQ[d]=[]);a.jQ[d].push(c);b&&(eN(a.context).addCallback(function(e){e.cva(b)}),PSc(a.context.tJa,b))},QSc=function(a,b){if(!_.OJ(b)){var c={},d;for(d in a.jQ){c.rT=d;for(var e=0;e<a.jQ[c.rT].length;e++)if(_.Zj(b,a.jQ[c.rT][e])){_.sa(a.jQ[c.rT],e);"subscribed"!==c.rT&&eN(a.context).addCallback(function(f){return function(h){h.VGa(f.rT,!1)}}(c));return}c={rT:c.rT}}}};
var RSc=function(){this.H=new Map;this.O=[];this.V=[]};
RSc.prototype.update=function(a){var b=this,c=a.id,d=a.O;a=a.H;var e=(d||a).getItem();vL(e)&&(a?(e=a.getItem().Gf())&&_.y(e,1)&&(1===_.me(e)||3===_.me(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&&!_.Zj(a.getItem(),d.getItem()))&&this.H.get(c).forEach(function(f){b.V.push(f)})};
var SSc=function(a){return a.V.filter(function(b){return!a.O.includes(b)})},TSc=function(a){a.O=[];a.V=[]};
var USc=function(a,b){rLc.call(this,a.clone(),b.Tm(),b.Nc,b.Rf());this.context=b};_.K(USc,rLc);USc.prototype.W=function(a){var b=new Map;a.nn().forEach(function(c){var d=_.I8b(a.clone(),[c]);b.set(c,d)});return b};USc.prototype.V=function(a){a=a.wd()[0];this.context.Nf.zl([a],1,void 0,!0,this.request.O())};USc.prototype.ha=function(a){this.context.Nf.zl([],1,a,!1,this.request.O())};USc.prototype.ka=function(a){a=_.kJ(_.bJ(new _.aJ,a));this.context.Nf.Ro([a])};
var VSc=function(a,b,c,d){cN.call(this,a);this.Mg=b;this.request=c;this.Hd={};d&&this.zl(d,!0)};_.K(VSc,cN);_.g=VSc.prototype;
_.g.refresh=function(){var a=this;this.Ep=6;var b=fM(this.context.Nc)!==fM(this.context.Nc,this.request.O()),c=[];this.request.nn().forEach(function(h){var k=a.Hd[h];k&&k.getItem().jg()&&!b||c.push(h)});if(0===c.length)return this.zl([],!1),_.Yh();var d=this.request.clone();_.I8b(d,c);var e=new USc(d,this.context),f=_.ai();this.context.Mj().Se()?(this.Sc.listen(this.context.Mj(),"Bb",function(h){h.Se()||(a.Sc.Yc(a.context.Mj(),"Bb"),a.vA(),e.$g().then(f.resolve,f.reject,f))}),this.Ep=0<_.Pa(this.Hd)?
1:2):(this.context.Ck().Se()&&(this.Ep=0<_.Pa(this.Hd)?1:2),this.vA(),e.$g().then(f.resolve,f.reject,f));return f.promise};_.g.Jha=function(a){return this.context.xm.equals(a,this.request)&&rBc(_.JK(this.Mg),a.O())};_.g.fk=function(a){var b=new _.RK;b.Dc(this.Ep);b.Ki(this.Ze());lGc(b,_.Na(this.Hd,function(c){return c?c.getItem():null}));mRc(this,a.O(),b.gq());return b};_.g.resize=function(){};_.g.ud=function(){return this.request};_.g.Ed=function(){return _.Pa(this.Hd)};
_.g.Ku=function(a){var b=this.ts(a.O),c=this.ts(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.ts=function(a){return!!a&&this.request.nn().includes(a.getId())};
var gN=function(a,b,c,d,e){cN.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=NL(this.context.xm,b);this.Gv=new DRc(this.context,this.request,!1,e);b=this.request.wc()&&qIc(this.request.wc());var h=this.context.zv;this.H=b?function(k,l){return h.compare(f.request,k,l)}:null;this.FCa=!b||!gIc(this.request)||_.uI(_.II(a.Nc));
this.Ha=RJc(this.request);c&&this.zl(c,!d);this.va=_.ak(a.Nc.ig(),16,36E5);_.qK(this.request)&&this.Sc.listen(this.context.Vga,"Gb",this.Ka);_.Qe(this,function(){_.aa(f.Gv);f.clear()})};_.K(gN,cN);gN.prototype.refresh=function(){this.log(this.MM()+" | Refresh called, currently "+this.Ed()+" items cached");return WSc(this,!1)};
var WSc=function(a,b){a.Ep=6;if(_.Q(a.request,48,!1))return a.Ep=1,_.Yh();if(_.qK(a.request)){var c=XSc,d=a.context.Vga.H;d=Math.max(Date.now()-d,a.va);c(a,Math.min(d,2592E5))}return YSc(a,b)};gN.prototype.initialize=function(){return this.count>=this.request.Ei()||1===this.Ep?_.Yh():this.refresh()};gN.prototype.clear=function(){ZSc(this)};
var ZSc=function(a){a.Hd.forEach(function(b){b.count--});a.count=0;a.Hd=[];a.O.clear()},XSc=function(a,b){_.n.clearTimeout(a.Ba);a.Ba=_.n.setTimeout(function(){return WSc(a,!0)},b)};gN.prototype.Ka=function(){Date.now()-this.ta>this.va&&XSc(this,0)};
var YSc=function(a,b){a.Gv&&(a.Sc.Yc(a.Gv,"ya",a.wsa),a.Sc.Yc(a.Gv,"za",a.oMa),a.Gv.dispose());var c=a.request.te();c&&_.Ef(c,!1);a.Gv=new DRc(a.context,a.request,b);a.V=0;a.Sc.listen(a.Gv,"ya",function(){return a.wsa(a.Gv.ha)});a.Sc.listen(a.Gv,"za",a.oMa);return a.nca()};
gN.prototype.nca=function(){var a=this,b=_.ai();this.context.Mj().Se()?this.Sc.listen(this.context.Mj(),"Bb",function(c){c.Se()||(a.Sc.Yc(a.context.Mj(),"Bb"),$Sc(a,b))}):this.context.Ck().Se()?this.Sc.$c(this.context.Ck(),[_.pC.BL,_.pC.hU],function(){$Sc(a,b)}):$Sc(this,b);return b.promise};var $Sc=function(a,b){a.vA();var c=a.request.Ei()+a.V;_.cka(BRc(a.Gv,c).mg(b.resolve,b.reject,b),function(){return a.ta=Date.now()})};_.g=gN.prototype;
_.g.resize=function(a){this.log(this.MM()+" | Resize called");var b=0;for(var c=_.m(new Set([].concat(_.Ad(this.Ly)))),d=c.next();!d.done;d=c.next())d=d.value,d=oRc(this.context).tka(d),b=Math.max(b,d.Ei());_.qK(this.request)?(this.request.vi(b),2!==this.Ze()&&!this.Gv.O&&(b>this.count||a)?this.refresh():this.sJ()):this.request.Ei()!==b&&(this.request.vi(b),b>this.count?this.nca():this.sJ())};_.g.ud=function(){return this.request};_.g.MM=function(){return this.Fa};_.g.Ed=function(){return this.Hd.length};
_.g.Jha=function(a){return this.context.xm.equals(a,this.request)};
_.g.fk=function(a){var b=a.Ei(),c,d=!1;if(_.PJ(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=_.ml(k.getItem()).filter(function(l){return h.includes(_.B(l,_.Rk,1).getId())});k=k.clone();vBc(k.getItem(),d);e[c]=k}e=e.filter(function(l){return _.ml(l.getItem()).length})}d=EBc(e);c=new _.SK;_.w(c,4,!1);dGc(c,f)}else e=this.Hd.slice(0,b),c=new _.pB,CEc(c,b<this.Hd.length||!(this.context.Mj().Se()||
this.context.Ck().Se())&&1!==this.Ep),_.I(c,7,this.ka),_.w(c,8,this.incompleteSearch),_.Ij(c,18,this.ha),d=EBc(e);e=oCc(e);mRc(this,a.O(),e);c.Uw(e);c.Dc(d?6:this.xwa(b));c.Ki(this.Ze());c.mP(this.suggestionSessionId);return c};_.g.xwa=function(a){return 1===this.Ep||a<=this.count?1:this.context.Mj().Se()||this.context.Ck().Se()?0<this.Hd.length?1:2:6};_.g.wsa=function(a){this.ka=a.W;this.incompleteSearch=a.incompleteSearch;this.ha=a.$za();this.W=a.V;this.suggestionSessionId=a.dg()};
_.g.oMa=function(){var a=this.request.Ei()-this.count;0<a&&zRc(this.Gv)&&(this.V+=a,this.nca())};_.g.zl=function(a,b){_.qK(this.request)&&ZSc(this);var c=!1;a=_.m(a);for(var d=a.next();!d.done;d=a.next())d=pM(d.value),c=this.Ku(d,!0)||c;b||(1!==this.Ep&&(c=!0),this.Ep=1);if(a=this.H){a:{a=this.Hd;d=this.H||_.Ea;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.io("ViewCache unsorted after import"),this.context.zv.sort(this.request,this.Hd));c&&(this.IX(),aTc(this,b))};
var aTc=function(a,b){_.Nl(a.request).length&&a.Hd.length&&a.context.KZ.then(function(c){var d=JL(a.context.tk(),106024,a.ma);if(d){var e=_.Nl(a.request)[0].Za(),f=_.B(_.PK(d),qFc,18);if(!f){f=new qFc;var h=_.PK(d);_.I(h,18,f)}f=_.w(f,1,!b);c=_.w(f,2,c===e).At(a.Hd.length);e=a.context.Nf.Yn();_.w(c,4,e);a.ma=d;d.Aj()}})};_.g=gN.prototype;
_.g.Ku=function(a,b){var c=this.O.get(a.id),d=!!c,e=this.ts(a.H,b),f=a.O;c&&(d?a.O&&a.O!==c&&this.io("Updating different wrapper from the existing one"):this.io("Updating existing item but old wrapper did not match"),f=c,d=!0);if(d||e)if(d)e?this.oKa(f,a.H):(this.jJ(f),_.qK(this.request)&&XSc(this,0));else{if(_.qK(this.request)&&!b)return!1;this.oR(a.H)}else return!1;return!0};_.g.oR=function(a){this.H?gBc(this.Hd,a,this.H):this.Hd.push(a);a.count++;bTc(a)&&this.count++;this.O.set(a.getId(),a)};
_.g.jJ=function(a){if(this.H){var b=this.Hd,c=_.Fa(b,a,this.H);0<=c&&_.sa(b,c)}else _.ta(this.Hd,a);a.count--;bTc(a)&&this.count--;this.O.delete(a.getId())};_.g.Hya=function(a){return this.H?_.Fa(this.Hd,a,this.H):_.la(this.Hd,a)};_.g.oKa=function(a,b){this.H&&0!==this.H(a,b)?(this.jJ(a),this.oR(b)):(this.Hd[this.Hya(a)]=b,b.count++,bTc(b)&&this.count++,a.count--,bTc(a)&&this.count--,this.O.delete(a.getId()),this.O.set(b.getId(),b))};
_.g.ts=function(a,b){if(!a)return!1;if(this.FCa&&!_.qK(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=dM(this.context.ot,this.request,a.getItem());return b&&a}}if(!dM(this.context.ot,this.request,a.getItem()))return!1;var d=1.2*this.request.Ei();if(1===this.Ep||!this.H||UHc(a.V,2)||this.count<d||b||MBc(a.getItem()))return!0;b=0===this.Hd.length?null:this.Hd[this.Hd.length-1];return!!b&&0>=this.H(a,b)};
_.g.sJ=function(){this.log(this.MM()+" | Evict called");if(1!==this.Ep&&!this.context.Mj().Se()&&!this.context.Ck().Se()){var a=1.2*this.request.Ei();if(!(a>=this.count||this.Gv&&a>=this.Gv.$b())){a=this.count-this.request.Ei();for(var b=this.Hd.length-1;0<=b&&0<a;b--){var c=this.Hd[b];UHc(c.V,2)||MBc(c.getItem())||(c.count--,bTc(c)&&this.count--,this.O.delete(c.getId()),_.sa(this.Hd,b),a--)}YSc(this,!1)}}};
_.g.io=function(a){var b=new _.Cc;_.cJ(b,2);_.dJ(b,6);_.oq(b);this.context.dispatchEvent(new _.Ec(new _.Dc(a,b)))};var bTc=function(a){return!UHc(a.V,2)&&3!==a.getItem().sv()};gN.prototype.log=function(a,b){this.context.Rf().log("drive.ds.sync.cache.ViewCache",a,void 0===b?"info":b)};gN.prototype.kRa=function(a){var b=this,c=_.Nl(this.request);c.length&&(c=c.some(function(d){return(d=b.context.Nf.wm.H(d.Za()))&&_.P(d,108)}),hJc(this.context.mfa,a,c))};gN.prototype.jRa=function(){this.sJ()};
gN.prototype.rYa=function(a){return 1!==this.Ep&&a.Ei()>this.count&&this.Gv.O};
var iN=function(a,b){var c;_.O.call(this);var d=this;this.O={};this.W=new RSc;this.Sc=new _.Ye(this);this.Ma(this.Sc);this.context=a;this.Mg=b;this.Jt=new VJc(a.xm,a.Rf());this.context.tk().W.H=this.Jt;if(null===(c=_.pK(this.context.Nc))||void 0===c?0:_.Q(c,15,!1))b=new NJc(a.ot,a.zv),this.Jt.add(b),a.nfa.promise.then(function(){var e,f,h,k;null===(f=null===(e=d.Jt)||void 0===e?void 0:e.O)||void 0===f?void 0:qM(f,!(null===(k=null===(h=d.Jt)||void 0===h?void 0:h.H)||void 0===k?0:k.VE))});this.H=new fIc(a.KZ,
a.ot,a.zv);_.P(a.Nc,60)&&(this.va=new LSc(a.ot,a.zv));this.V=new $Hc(a.Rf(),_.JK(this.Mg));cTc(this,_.fe(this.context.Nc,28));this.wm=new iIc(this.Mg,this.context.xm,this.H,this.V);this.context.tk().W.V=this.wm;this.uI=new FRc(this.context,this.Mg,this.O,this.H);this.qGa=new MSc(this.context,this.H);this.ka=new DSc(this.context,this);_.Qe(this.ka,function(){d.ka=null});this.ta=_.ruc(_.JK(this.Mg),dTc);nM(this.context.Sj,["NSockf"],function(){return d.initialize()});nM(this.context.Sj,["NSockf","jroI5d"],
function(){var e=d.context.Nc;if(_.B(e,_.hl,12))e=_.B(e,_.hl,12);else{var f=_.bvc(_.dvc(new _.Rk,_.BK(_.II(e))),!0);f=_.w(f,6,1);var h=_.D(_.II(e),6,"");h&&f.Ob(h);f=_.N8b(_.Ivc(_.Jvc(_.IG((new _.hl).Ob(d.context.ao()).setTitle(_.D(e,38,"My Drive")),"application/vnd.google-apps.folder").Nn(!1),f),[f]),1);f=_.w(f,29,!0);f=_.w(f,63,!0);e=_.evc(new _.Xk,_.Q(e,6,!0));e=_.w(e,2,!1);e=_.xK(f,_.rvc(_.kvc(_.jvc(_.nvc(_.ovc(_.mvc(_.lvc(_.ivc(_.hvc(_.gvc(_.fvc(_.w(e,3,!1),!1),!1),!0),!0),!1),!1),!1),!1),!1),
!1),!1))}d.zl([e],1);oM(d.context.Sj,"hVFf7")});this.ha=_.ai();nM(this.context.Sj,["BNEDtc"],function(){d.ha.resolve()});this.wq=new uKc(this.context.Nc,this.context.Rf(),a.Tm(),a.mfa,this.context.tk(),this.context.wX.promise);_.XI(this.context.Nc)&&this.Sc.listen(this.wq,"Fb",this.ma);this.pMa=new _.Wxc(this.context.Nc,this.wm)};_.K(iN,_.O);
iN.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.wq.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.wq.H.get(d),e=!(!d||1!==d.Ze()&&4!==d.Ze()||3===eKc(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(),eTc(this,h),b.push(KJc(d,new bM(h,
void 0,1)))):this.log("b/154479164 Unexpected missing wrapper for "+h+".","warning");fTc(this,b,[]);this.context.Js.update(6);a.size&&this.uI.kO([].concat(_.Ad(a)),_.Df(new _.Cf,311))};iN.prototype.initialize=function(){this.ka.$g()};
iN.prototype.ji=function(a,b){if(b instanceof _.nf)b=eM(this.context.xm,b),gTc(this,b.O()),OSc(this.qGa,b),b=hTc(this,b),b.cache.ji(a);else if(b instanceof _.xA)b=iTc(this,b),gTc(this,b.O()),b=jTc(this,b),b.cache.ji(a);else if(b instanceof _.wI){var c=fN(this,b),d=this.O[c];d?(3==d.EJ()?(this.log(c+" | TeamDriveQueryRequest backed by refreshing existing cache"),d.refresh()):this.log(c+" | TeamDriveQueryRequest backed by existing view cache"),b={cache:d,xv:!1}):(this.log(c+" | ItemQueryRequest backed by new cache"),
d=new ZRc(this.context,this.Mg,b),d.refresh().Dg(_.Tf),BSc(this,c,d),b={cache:d,xv:!0});b.cache.ji(a)}else if(b instanceof _.EG)c=b.O(),d=this.V,aIc(d,d.H,d.O,c),b=jTc(this,b),b.cache.ji(a);else throw Error("sg");return b.xv};iN.prototype.kk=function(a,b){if(b instanceof _.nf)b=eM(this.context.xm,b),QSc(this.qGa,b);else if(b instanceof _.xA)b=iTc(this,b);else if(!(b instanceof _.wI||b instanceof _.EG))throw Error("sg");b=fN(this,b);var c=this.O[b];c&&(c.kk(a),c.isDisposed()&&delete this.O[b])};
var fN=function(a,b){return NL(a.context.xm,b,2)},hTc=function(a,b){var c,d,e=fN(a,b),f=a.O[e];if(f)return 3==f.EJ()?(a.log(e+" | ItemQueryRequest backed by refreshing existing cache"),f.refresh()):a.log(e+" | ItemQueryRequest backed by existing view cache"),{cache:f,xv:!1};var h=[],k=5;f=!1;for(var l=WJc(a.Jt),p=0;p<l.length;p++){var q=l[p];k=q.vE(b);if(5!=k){l=1==k?void 0:b.Ei();if((null===(c=_.pK(a.context.Nc))||void 0===c?0:_.Q(c,18,!1))&&q instanceof NJc){f=!0;k=5;a.log("Partial Caching dark launch: Skipped returning from the MyDrive cache for "+
(e+"."));break}h=q.Ika(b,l);var r=q.Ze();var v=q instanceof rM?q.xy():"";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)),_.Da(h,void 0,function(A){return A.getId()}),k=(k=a.Jt.H)&&k.V7&&5!=k.vE(b)?k.vE(b):6,a.log("Offline: Populate with "+h.length+" initial items(s)");var z=new gN(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=_.pK(a.context.Nc))||void 0===d?0:_.Q(d,18,!1))&&f&&r.then(function(){return eN(a.context)}).then(function(A){return A.tWa().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(S){return S.getId()}),H=(null===(C=null===(A=a.Jt)||void 0===A?void 0:A.O)||void 0===C?void 0:C.fk(b,b.Ei()).wd().map(function(S){return S.getId()}))||[],L=_.Ha(G.sort(),
H.sort()),N=JL(a.context.tk(),106030);N&&(vFc(uFc(tFc(LFc(N),G.length),H.length),L),N.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=_.eJ(A);_.oq(A);a.context.dispatchEvent(new _.Ec(new _.Dc("Error during view cache init",
A)))});BSc(a,e,z);return{cache:z,xv:!0}},jTc=function(a,b){var c=fN(a,b),d=!1,e=a.O[c];if(e&&e.Jha(b))a.log("FindByIdsRequest backed by existing query cache: "+c);else{var f=a.H.getAll(b.nn()),h;b instanceof _.xA?h=new vRc(a.context,a.Mg,b,f):h=new VSc(a.context,a.Mg,b,f);f.length&&h.Ki(8);h.refresh().Dg(_.Tf);b=h;d=!0;BSc(a,c,b);e?(kTc(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,
xv:d}};iN.prototype.XV=function(){return Object.values(this.O).filter(function(a){return a.ud()instanceof _.wI})};
iN.prototype.a2a=function(a){for(var b=_.Df(new _.Cf,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=zIc(this.context.xm,c,!0),this.log("Refreshing "+a+" for secondary fields: "+d+"."),this.uI.kO([a],b,!1,c))};
var lRc=function(a,b,c){c&&c.length&&cIc(a.V,b,c);_.XI(a.context.Nc)&&EKc(a.wq,b)},QRc=function(a,b,c){var d,e,f;if(b instanceof ZRc){var h=fN(a,b.ud());if(a.O[h]){a.log(h+" | Cache already exists, ignoring persisted data");return}}b instanceof LJc&&a.Jt.remove(b);h=new Map;var k=a.H.qy(),l=new Map(k);k=[];for(var p=_.m(b.qy()),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().sv();(null===(d=_.pK(a.context.Nc))||void 0===d?0:_.Q(d,15,!1))&&!0===q.H&&WHc(v,
q.H);3==z||4==z?h.set(q.getId(),q.getItem()):v!=q&&k.push(new JJc(q.getId(),q,v));l.delete(r)}else{r=pM(q);if(null===(e=_.pK(a.context.Nc))||void 0===e?0:_.Q(e,15,!1))null===(f=a.Jt.O)||void 0===f?void 0:f.update(r);a.H.update(r);a.W.update(r);_.XI(a.context.Nc)&&a.wq.UO(r)}_.XI(a.context.Nc)&&eTc(a,q.getItem())}l=_.m(l.values());for(q=l.next();!q.done;q=l.next())k.push(pM(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 ZRc?(k=fN(a,b.ud()),BSc(a,k,b)):a.Jt.add(b);k=[];h=_.m(h.values());for(l=h.next();!l.done;l=h.next())l=l.value,p=new _.aJ,_.bJ(p,l.getId()),p.setItem(l),k.push(p);a.Ro(k);a.log("Merged cache: "+b.getType());b instanceof vM&&c.forEach(function(A){lTc(a.context.ysa,A)});a.context.Js.update(3)},kTc=function(a,b){(new Set([].concat(_.Ad(a.Ly)))).forEach(function(c){b.ji(c);a.kk(c)})};
iN.prototype.zl=function(a,b,c,d,e){var f=this,h;this.log("Importing "+a.length+" items");e||(e=c?[].concat(_.Ad(c.O().filter(function(C){return!_.JK(f.Mg).includes(C)}))):[]);c&&c instanceof _.nf&&_.qK(c)&&mTc(this,a,c);for(var k=[],l=[],p=0;p<a.length;p++){var q=a[p],r=new bM(q,void 0,b),v=this.H.get(q.getId()),z=v?v.getItem():null,A=nTc(this,v,r);if(null!=A)r.dz(A),oTc(this,z,q),LBc(q),q=YHc(q,z,e),r.setItem(q);else if(null!=v)r=v,q=z;else continue;_.XI(this.context.Nc)&&eTc(this,q);!v||pTc(this,
z,q,e)?(l.push(KJc(v,r)),k.push(r)):k.push(v)}a=null;if(c){if(c instanceof _.nf){if(null===(h=_.pK(this.context.Nc))||void 0===h?0:_.Q(h,15,!1))a=_.Nl(c),1==a.length&&(a=a[0].Za(),(a=this.H.get(a))&&!a.H&&WHc(a,!d));(a=ZJc(this.Jt,c))&&a.zl(k,!!d)}c=fN(this,c);(a=this.O[c])&&a.zl(k,!!d)}0<l.length&&(_.XI(this.context.Nc)&&l.forEach(function(C){return f.wq.UO(C)}),fTc(this,l,e,a?[a]:[]),qTc(this,k));oRc(this.context).T8()};
var eTc=function(a,b){HKc(a.wq,b)||5!=b.sv()||_.Qvc(b,1)},pTc=function(a,b,c,d){(b=b?_.pb(b.clone(),82):null)&&lRc(a,[b],d);c=_.pb(c.clone(),82);lRc(a,[c],[]);return!_.Zj(b,c)},mTc=function(a,b,c){rTc(a,b,c);b.forEach(function(d,e){var f=a.wm.H(d.getId());f&&(uL(f,d,[1002]),uL(f,d,[1003]),uL(f,d,[1005]),b[e]=f);_.OJ(c)&&0<_.fe(c,33).length&&_.Rvc(d,_.fe(c,33)[0])})},rTc=function(a,b,c){var d;_.OJ(c)?d="quick access":_.PJ(c)?d="people predict":_.QJ(c)&&(d="drive priority");c=b.map(function(e){return e.getId()}).join(", ");
a.log("Got "+b.length+" ItemSuggest items for "+d+": "+c)},ZQc=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(oCc(d),b)};iN.prototype.ola=function(a){this.pMa.ola(a)};
iN.prototype.Ro=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 bM(f,void 0,void 0,_.y(e,1)||void 0);var p=nTc(this,h,l);if(null==p)continue;l.dz(p);oTc(this,k,f);_.Q(e,5,!1)&&mBc(f,BBc);LBc(f);f=YHc(f,k);l.setItem(f);_.XI(this.context.Nc)&&eTc(this,f)}if(k&&!f||f&&pTc(this,k,f,[]))this.context.tJa.Cy(e),c.push(KJc(h,l))}_.XI(this.context.Nc)&&c.forEach(function(q){return b.wq.UO(q)});fTc(this,
c,[])};var oTc=function(a,b,c){b&&!c.Sm()&&uL(c,b,a.ta);var d=b?b.Gf():null,e=c.Gf();e=e?_.ke(e):null;d&&e&&oTc(a,_.ke(d),e);b&&!_.ll(c)&&uL(c,b,[1002]);b&&!_.ml(c).length&&uL(c,b,[1003]);b&&!_.nl(c).length&&uL(c,b,[1005]);b&&null==c.z1()&&uL(c,b,[71]);b&&null==_.y(c,79)&&uL(c,b,[73]);b&&_.P(b,31)&&!_.P(c,31)&&(mBc(c,BBc),a.log("Cleared Item Suggest data for "+b.getId()+"."))};
iN.prototype.DB=function(a,b){if(a instanceof _.nf||a instanceof _.xA||a instanceof _.wI)a=fN(this,a),(a=this.O[a])&&a.HX(b);else throw Error("sg");};var nTc=function(a,b,c){var d=c.getItem();if(cLc(a.context.ofa,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.sv()&&!cM(a)&&!cM(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.zq()>d.zq())return null}return VHc(b&&b.V,c.V)};
iN.prototype.SH=function(a,b){(a=this.H.get(a))&&a.dz(VHc(a.V,b))};
var fTc=function(a,b,c,d){d=void 0===d?[]:d;var e;if(null===(e=_.pK(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&&WHc(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())_.ta(c,h.value);d=_.m(c);for(h=d.next();!h.done;h=d.next())nRc(h.value,b);h=WJc(a.Jt);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 vM&&f.Ed()>=1.2*f.limit&&sTc(a.context.tJa,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.sJ(h.id),a.W.update(h);0<d&&a.context.Js.$ma(d);tTc(a)},tTc=function(a){var b=a.W.O.slice(0),c=SSc(a.W);TSc(a.W);if(b.length){a.log("Refreshing shortcuts with unknown targets: "+b.join(", "));var d=new _.Cf;_.Df(d,308);a.uI.kO(b,d,!0)}if(c.length){a.log("Updating locally stale shortcuts: "+
c.join(", "));b=jIc(a.wm,c);var e=[];Object.values(b).forEach(function(f){var h=f.getItem().Gf(),k=_.y(h,1);if(k=a.wm.H(k))_.I(h,5,k),_.w(h,4,1),e.push(f)});ZQc(a,e)}},uTc=function(a){oRc(a.context).T8();a.H.sJ()},iTc=function(a,b){_.Ga(b.O());var c=_.la(b.nn(),"root");if(0>c)return b;b=b.clone();b.nn()[c]=a.context.ao();return b},cTc=function(a,b){var c;null!==(c=_.pK(a.context.Nc))&&void 0!==c&&_.Q(c,1,!1)||(b=GFc(a.Mg,b),a=a.V,aIc(a,a.items,a.fields,b))},gTc=function(a,b){var c;if(null===(c=_.pK(a.context.Nc))||
void 0===c?0:_.Q(c,1,!1))b=GFc(a.Mg,b),a=a.V,aIc(a,a.items,a.fields,b)},qTc=function(a,b){a.ha.promise.then(function(){var c=b.filter(function(e){return 4==e.getItem().sv()});if(c.length){c=c.map(function(e){return e.getId()});a.log("Refreshing "+c.length+" partial items. "+c);var d=_.Df(new _.Cf,311);a.uI.kO(c,d)}})},KSc=function(a,b){a.ha.promise.then(function(){for(var c={},d=_.m(b),e=d.next();!e.done;c={f5:c.f5,Dqa:c.Dqa},e=d.next()){e=e.value;if(ZJc(a.Jt,e))break;c.f5=new rM(a.context.ot,a.context.zv,
a.context.xm,e);e=new KRc(a.context,c.f5,e);c.Dqa=zM(a.context.Ez,null);_.ci(e.$g().then(function(f){return function(){NRc(f.f5,f.Dqa).then(function(h){QRc(a,f.f5,h)})}}(c)),function(){nLc(a.context.Ez,null)})}})};iN.prototype.Yn=function(){var a=this.Jt.H;return a&&a.VE?1:2};iN.prototype.log=function(a,b){this.context.Rf().log("drive.ds.sync.cache.CacheManager",a,void 0===b?"info":b)};var BSc=function(a,b,c){a.O[b]=c;a.log(b+" | Set cache with "+c.Ed()+" items")},dTc=[50];
var wTc=function(a){_.O.call(this);var b=this;this.context=a;this.H=[];this.V=new _.sl;this.O=new Map;this.ka=-1;this.ha=0;var c=_.ai();this.va=c.promise;bNc(this.context.uD).then(function(d){b.H=d||[];c.resolve();vTc(b)},function(){return c.resolve()});nM(this.context.Sj,["rVezo"],(0,_.M)(this.W,this))};_.K(wTc,_.O);
var PSc=function(a,b){_.Q(a.context.Nc,46,!1)&&a.va.then(function(){if(a.H[0]!==b){_.ta(a.H,b);for(ZHc(a.context.Nf.wm.H(b))?a.log(b,"Hidden TD, not tracking in recency list"):_.za(a.H,0,0,b);a.H.length>2*_.ak(a.context.Nc,47,5);)a.H.pop();a.context.uD.set(WMc,a.H)}a.context.Nf.Jt.XV().length+a.O.size<_.ak(a.context.Nc,47,5)&&(vTc(a),a.W())})},xTc=function(a,b){_.ta(a.H,b)&&a.context.uD.set(WMc,a.H)};
wTc.prototype.Cy=function(a){lTc(this.context.ysa,a);if(cM(a)){var b=a.yc();a.Dk()?sTc(this,b,!0):(a=a.getItem(),ZHc(a)&&xTc(this,b))}};var sTc=function(a,b,c){xTc(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.Jt;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.Js.update(3);break}}eN(a.context).addCallback(function(k){k.VGa(b,c)});a.W()};
wTc.prototype.W=function(){if(this.context.Sj.H("rVezo")){var a=this.context.Nf.Jt;yTc(this);for(var b={};this.V.$b()&&!(this.ha>=_.ak(this.context.Nc,47,5));){var c=_.tl(this.V);this.ha++;YJc(a,c)||this.O.has(c)||(this.O.set(c,null),b.Gea=new _.Nuc,_.w(b.Gea,1,c),this.context.Tm().then(function(d){return function(e){return e.Qe(d.Gea)}}(b)).then(this.ta.bind(this,c),this.ma.bind(this,c)));b={Gea:b.Gea}}}};
var vTc=function(a){a.H&&a.H.length&&(a.ha=0,a.V.clear(),a.H.forEach(function(b){a.V.enqueue(b)}))},yTc=function(a){_.n.clearTimeout(a.ka);a.ka=_.n.setTimeout(function(){vTc(a);a.W()},36E5)};wTc.prototype.ta=function(a,b){var c=_.y(b,1);c&&c>_.ak(this.context.Nc,48,1E3)?(this.log(a,"Too large to backfill: "+_.y(b,1)),zTc(this,a,!1)):ATc(this,a)};
wTc.prototype.ma=function(a,b){(b=_.eJ(b).Ak())&&4===b?(this.log(a,"Non-existent or inaccessible, removing from cache"),a=_.kJ(_.Ytc(_.bJ(new _.aJ,a),a)),this.context.Nf.Ro([a])):ATc(this,a)};
var ATc=function(a,b){var c=new vM(a.context.ot,a.context.zv,b),d=c.ud().clone();d.vi(_.ak(a.context.Nc,48,1E3));d=new KRc(a.context,c,d);a.O.set(b,d);a.log(b,"Backfill started");var e=zM(a.context.Ez,b);eN(a.context).addCallback(function(f){f.cva(b)});_.ci(d.$g().then(function(){BTc(a,b,c,e)},function(){a.log(b,"Backfill failed");a.ha--;zTc(a,b,!0)}),function(){nLc(a.context.Ez,b)})},BTc=function(a,b,c,d){c.VE?(c.ZW(),NRc(c,d).then(function(e){a.log(b,"Backfill complete, size: "+c.Ed());QRc(a.context.Nf,
c,e);zTc(a,b,!1)},function(){a.log(b,"Backfill changes failed");zTc(a,b,!0)})):(a.log(b,"Backfill exceeded size limit"),zTc(a,b,!0))},zTc=function(a,b,c){var d=a.O.get(b);d&&d.dispose();a.O.delete(b);c&&eN(a.context).addCallback(function(e){e.VGa(b,!1)});a.W();0<a.O.size||a.context.Nf.Jt.XV().map(function(e){return e.yc()}).filter(function(e){return!a.H.includes(e)}).forEach(function(e){sTc(a,e,!0)})};
wTc.prototype.log=function(a,b){this.context.Rf().info("drive.ds.sync.cache.TeamDriveCacheManager",a+" | "+b)};
var CTc=function(){_.O.apply(this,arguments)};_.K(CTc,_.O);
var FTc=function(a,b){b=DTc(b);var c=a.getItem(),d=ETc(c.getCapabilities());b.M3.forEach(function(e){_.N8b(e.getItem(),c.Yo());_.xK(e.getItem(),d.clone())});return b},ITc=function(a,b,c){var d=GTc(c);c=c.find(function(e){return e.getId()===b.getId()});c={qK:c?c:new bM(b),children:[]};HTc(a,d,c);return c},GTc=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},HTc=
function(a,b,c){var d=c.qK.getItem();(b[d.getId()]||[]).forEach(function(e){c.children.push(HTc(a,b,{qK:e,parent:c,children:[]}))});return c},KTc=function(a,b){b=b.children.filter(function(l){return!_.kl(l.qK.getItem())});for(var c=new Map,d=[];b.length;){var e=b.pop(),f=e.qK.getItem();if(!c.has(f.getId())){_.N8b(f,a.Yo());JTc(a,f,e.parent?e.parent.qK.getItem():void 0);for(var h=_.m(e.children),k=h.next();!k.done;k=h.next())k=k.value,_.kl(k.qK.getItem())||b.push(k);c.set(f.getId(),!0);d.push(e.qK)}}return d},
LTc=function(a){a=a.children.filter(function(h){return!_.kl(h.qK.getItem())});for(var b=new Map,c=[];a.length;){var d=a.pop(),e=d.qK.getItem();if(!b.has(e.getId())){c.push(_.kJ(_.bJ(new _.aJ,e.getId())));d=_.m(d.children);for(var f=d.next();!f.done;f=d.next())f=f.value,_.kl(f.qK.getItem())||a.push(f);b.set(e.getId(),!0)}}return c},DTc=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();_.kl(e)||_.P(e,137)?c.push(e):b.push(d)}return{nQ:c,M3:b}},ETc=
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);_.xvc(a,b);_.w(a,30,c);_.svc(a,b);_.yvc(a,c);_.tvc(a,c);_.uvc(a,b);_.fvc(a,b);_.kvc(a,c);_.qvc(a,b);_.pvc(a,_.P(a,7));_.jvc(a,_.P(a,10)||_.P(a,11));_.rvc(a,_.Yk(a));_.pb(a,18);_.pb(a,13);_.pb(a,10);_.vvc(a,_.P(a,42));_.wvc(a,_.P(a,43));_.zvc(a,_.P(a,48));return a},JTc=function(a,b,c){var d=a.getCapabilities(),e=b.getCapabilities(),f=_.P(d,30);_.w(e,30,f);_.svc(e,_.P(d,31));_.yvc(e,_.P(d,
47));_.tvc(e,_.P(d,32));_.uvc(e,_.P(d,33));_.fvc(e,_.P(d,4));_.kvc(e,_.P(d,9));_.rvc(e,_.P(d,21));_.qvc(e,_.P(d,20));_.pvc(e,_.P(d,17));_.evc(e,_.Yk(d));_.ivc(e,_.P(d,7));_.lvc(e,_.P(d,10));_.mvc(e,_.P(d,11));f=_.P(d,45);_.w(e,45,f);_.xvc(e,_.P(d,46));_.zvc(e,_.P(d,48));a=_.kl(a);_.w(b,137,a);c&&(c=c.getCapabilities(),wL(b)?(_.jvc(e,_.P(c,43)),_.wvc(e,_.P(c,43)),_.vvc(e,_.P(c,42))):_.jvc(e,_.P(c,42)))};
var MTc=function(a){this.context=a;this.V=new CTc;this.O=_.Df(new _.Cf,306);this.H=a.Nf},lTc=function(a,b){if(cM(b))b.Dk()?NTc(a,b):OTc(a,b);else if(_.Q(a.context.Nc,86,!1)){var c=b.Ac(),d=a.H.wm.H(c);var e=d&&d.yc();var f=b.getItem()&&b.getItem().yc();if(!d||!e||!wL(b.getItem()||d)||f&&f!==e)e=!1;else if(e=!!_.kl(d),!b.Dk()){var h=b.getItem();f=_.kl(d)!==_.kl(h);h=h.Yo()!==d.Yo();e=f||e&&h}if(e)if(b.Dk()){if(b=PTc(a,d.yc()),d=a.V,e=(new _.hl).Ob(c),b=(b=ITc(d,e,b))?LTc(b):[],a.context.Nf.Ro(b),a.log(c,
"SD shared folder delete | Removed "+b.length+" item(s)"),a=JL(a.context.tk(),106009))c=IFc(a),_.w(c,2,b.length),a.Aj()}else if(c=b.getItem(),d=PTc(a,c.yc()),e=a.V,c=b.getItem(),c=(d=ITc(e,c,d))?KTc(c,d):[],ZQc(a.context.Nf,c),a.log(b.Ac(),"SD shared folder update | Updated "+c.length+" item(s)"),a=JL(a.context.tk(),106010))b=IFc(a),_.w(b,1,c.length),a.Aj()}},NTc=function(a,b){var c=b.Ac();b=PTc(a,c);b=DTc(b);var d=_.lf(b.M3,function(e){return _.kJ(_.bJ(new _.aJ,e.getId()))});a.context.Nf.Ro(d);a.H.uI.kO(b.nQ.map(function(e){return e.getId()}),
a.O,void 0,void 0,b.nQ.map(function(e){return _.Kl((new _.Jl).Ob(e.getId()),_.pl(e))}));a.log(c,"SD delete | Remove "+d.length+" item(s), "+(b.nQ.length+" divergent items"));if(a=JL(a.context.tk(),106016))c=JFc(a),_.w(c,1,b.nQ.length),_.w(c,2,b.M3.length),a.Aj()},OTc=function(a,b){var c=b.Ac(),d=PTc(a,c),e=a.H.wm.H(c);b=FTc(b,d);ZQc(a.context.Nf,b.M3);a.H.uI.kO(b.nQ.map(function(h){return h.getId()}),a.O,void 0,void 0,b.nQ.map(function(h){return _.Kl((new _.Jl).Ob(h.getId()),_.pl(h))}));a.log(c,"SD update | Update "+
b.M3.length+" item(s), "+(b.nQ.length+" divergent items"));if(d=JL(a.context.tk(),106017)){var f=JFc(d);_.w(f,1,b.nQ.length);_.w(f,2,b.M3.length);d.Aj()}e||JRc(a.H.uI,c)},PTc=function(a,b){var c=new _.nf;_.Ql(c,[b]);_.Rl(c,2);return lIc(a.H.wm,c)};MTc.prototype.log=function(a,b){this.context.Rf().info("drive.ds.sync.change.TdChangeProcessor",a+": "+b)};
var QTc=function(a,b,c){this.H=a;this.V=b;this.nJ=c};
QTc.prototype.Yw=function(a,b){var c=this;if(a.AV().length){var d=ZKc(this.H,a.Ac());if(d){var e=d?$Kc(this.H,a):[];for(var f={},h=_.m(a.AV()),k=h.next();!k.done;f={uL:f.uL},k=h.next())if(k=k.value,f.uL=RTc(e,k.Om(),a.Ac()),_.P(k,3))fLc(this.H,f.uL),_.ci(b,function(r){return function(){c.H.O.W(PKc(r.uL))}}(f));else{for(var l=_.m(_.Oj(k,_.AG,2)),p=l.next();!p.done;p=l.next())STc(this,f.uL,p.value);k=_.m(_.fe(k,4));for(l=k.next();!l.done;l=k.next())TTc(f.uL,l.value);this.H.oD([f.uL],!1,-1);b.then(function(r){return function(){return void c.H.SH(r.uL.getName(),
-2)}}(f),function(r){return function(){c.H.SH(r.uL.getName(),-2)}}(f))}e=this.jd(d.fk().response)}}e=e?e:this.jd();var q=e.F3a;b.then(function(r){q.resolve(r)},function(r){q.reject(_.QB(r));c.handleError(a.Ac(),r)});return e};QTc.prototype.jd=function(a){a=void 0===a?new kM:a;return new SIc(a.Dc(1))};var RTc=function(a,b,c){var d=a.find(function(e){return OKc(e.getName(),b)});d||(d=kHc((new VL).hd(b),c),a.push(d));return d};
QTc.prototype.handleError=function(a,b){jLc(this.V,a);a=_.eJ(b);_.w(a,21,"Server error updating metadata after optimistic application.");this.nJ(a)};
var STc=function(a,b,c){var d=b.O().find(function(e){return e.getId()===c.getId()});d||(d=new SL,d.Ob(c.getId()),jHc(b,b.O().concat([d])),UTc(d,c));if(1===TL(d))d.setBooleanValue(_.P(c,3));else if(12===TL(d))d.setDateStringValue(_.y(c,17));else if(2===TL(d))d.setTextValue(_.y(c,4));else if(3===TL(d))_.fe(c,6).length?d.Noa(_.fe(c,6)):_.fe(c,5).length&&(a=_.fe(d,7).concat(_.fe(c,5)),d.Noa(a));else if(4===TL(d))d.setLongTextValue(_.y(c,7));else if(5===TL(d))d.setSelectionValue(_.y(c,8));else if(6===
TL(d))_.fe(c,10).length?d.Joa(_.fe(c,10)):_.fe(c,9).length&&(a=d.cMa().concat(_.fe(c,9)),d.Joa(a));else if(7===TL(d))d.setIntegerValue(_.y(c,11));else if(8===TL(d))_.fe(c,13).length?d.Aoa(_.fe(c,13)):_.fe(c,12).length&&(a=_.fe(d,12).concat(_.fe(c,12)),d.Aoa(a));else if(10===TL(d))d.setUserValue(a.O(_.y(c,14)));else if(11===TL(d))_.fe(c,16).length?gHc(d,_.fe(c,16).map(a.O)):_.fe(c,15).length&&gHc(d,d.DWa().concat(_.fe(c,15).map(a.O)));else throw d="Optimistic Applier: Unsupported value type "+(TL(d)+
"."),new _.Dc(d,new _.Cc);},TTc=function(a,b){if(a=a.O().find(function(c){return c.getId()===b}))if(1===TL(a))_.pb(a,5);else if(12===TL(a))_.pb(a,17);else if(2===TL(a))_.pb(a,6);else if(3===TL(a))_.MI(a,7);else if(4===TL(a))_.pb(a,8);else if(5===TL(a))_.pb(a,9);else if(6===TL(a))_.MI(a,10);else if(7===TL(a))_.pb(a,11);else if(8===TL(a))_.MI(a,12);else if(10===TL(a))_.Jj(a,15);else if(11===TL(a))_.Lj(a,16);else throw a="Optimistic Applier: Unsupported value type "+(TL(a)+"."),new _.Dc(a,new _.Cc);
},UTc=function(a,b){_.Cj(b,3)?a.YA(1):_.Cj(b,17)?a.YA(12):_.Cj(b,4)?a.YA(2):_.fe(b,6).length||_.fe(b,5).length?a.YA(3):_.Cj(b,7)?a.YA(4):_.Cj(b,8)?a.YA(5):_.fe(b,10).length||_.fe(b,9).length?a.YA(6):_.Cj(b,11)?a.YA(7):_.fe(b,13).length||_.fe(b,12).length?a.YA(8):_.Cj(b,14)?a.YA(10):(_.fe(b,16).length||_.fe(b,15).length)&&a.YA(11)};QTc.prototype.O=function(a){return _.cvc(_.avc(1),a)};
var VTc=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};VTc.prototype.apply=function(a,b){var c=this;if(!_.oK(a))return b;var d=null;a instanceof _.CJ?d=WTc(this,a,b):a instanceof _.JJ?d=XTc(this,a,b):a instanceof _.gJ?d=this.Yw(a,b):a instanceof _.xJ?d=YTc(this,a,b):a instanceof _.eK&&(d=this.va.Yw(a,b));d&&(this.W++,this.ha.setActive(!1),_.ci(b,function(){c.W--;0==c.W&&c.ha.setActive(!0)}));return d?_.Yh(d):b};
var WTc=function(a,b,c){bLc(a.O,b.getId());var d=a.H.wm.H(b.getId());_.ci(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=_.eJ(e);_.w(e,21,"Server error deleting item after optimistic application.");a.V(e)});return(new _.nK).Dc(1)},XTc=function(a,b,c){var d=_.y(b,2);d&&a.O.H.push(d);c.then(function(){d&&dLc(a.O,d)&&_.ci(ZTc(a,d,new _.Yxc(1E4,3E5),Date.now()+72E5,5),function(){return void a.ma("VMiG2e")})},function(){d&&_.ta(a.O.H,
d)});c.then(null,function(e){e=_.eJ(e);_.w(e,21,"Server error emptying trash after optimistic application.");a.V(e)});return(new _.nK).Dc(1)},ZTc=function(a,b,c,d,e){if(Date.now()>d||0>=e)return _.Yh();var f=_.ai(),h=c.Za();_.EI(c);setTimeout(function(){a.ka.then(function(k){var l=_.Df(new _.Cf,1425);l=nCc(!0,1,l);return k.Qe(l).then(function(p){if(p=p.jd())if(p=p.wd()[0],!p||(p.$v()||0)>b){f.resolve();return}_.ci(ZTc(a,b,c,d,e),function(){return void f.resolve()})},function(){return _.ci(ZTc(a,b,
c,d,e-1),function(){return void f.resolve()})})})},h);return f.promise},YTc=function(a,b,c){var d=b.yc(),e=a.H.wm.H(d);if(!e)return null;e=e.clone();lRc(a.H,[e],[157]);var f=e.jg();$Tc(f,_.Oj(b,_.fl,2));aUc(f,_.Oj(b,_.fl,3));a.H.zl([e],-1,void 0,void 0,[157]);_.ci(c,function(){a.H.SH(d,-2)}).then(function(h){a.H.zl([_.B(h,_.hl,2)],1,void 0,void 0,[157])},null);c.then(null,function(h){h=_.eJ(h);_.w(h,21,"Server error updating item after optimistic application.");a.V(h)});return UOc(new TOc,e).Dc(1)},
$Tc=function(a,b){var c={};b=_.m(b);for(var d=b.next();!d.done;c={wea:c.wea},d=b.next())c.wea=d.value,_.Oj(a,_.fl,8).some(function(e){return function(f){return f.Om()==e.wea.Om()}}(c))||_.Xj(a,8,c.wea,_.fl,void 0)},aUc=function(a,b){var c=b.map(function(d){return d.Om()});b=_.Oj(a,_.fl,8).filter(function(d){return!c.includes(d.Om())});uBc(a,b)};
VTc.prototype.Yw=function(a,b){var c=this,d=this.H.wm.H(a.getId());if(!d||d.yc()&&0==a.Xh()||null!=_.P(a,40))return null;var e=_.fe(a,10),f=_.fe(a,9);if(0<e.length&&0<f.length&&(e=Object.values(kIc(this.H.wm,e.concat(f))).map(function(k){return k.yc()||"root"}),_.Da(e),1<e.length))return null;var h=d.clone();bUc(this,a,h);this.H.zl([h],-1,void 0,void 0,EFc(this.Mg));b.then(function(){return c.H.SH(a.getId(),-2)},function(){c.H.SH(a.getId(),-2);c.ta(a.getId(),d)});b.then(null,function(k){k=_.eJ(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 _.Iwc((new _.nK).setItem(h),h.getId()).Dc(1)};
var bUc=function(a,b,c){null!=b.Cf()&&c.Yl(b.Cf());null!=b.Zi()&&_.Nvc(c,b.Zi());null!=b.getMimeType()&&_.IG(c,b.getMimeType());null!=_.y(b,7)&&_.M8b(c,_.y(b,7));null!=_.P(b,11)&&_.Hvc(c,_.P(b,11));null!=_.P(b,4)&&c.Kv(_.P(b,4));null!=_.P(b,16)&&_.Mvc(c,_.P(b,16));null!=b.getTitle()&&c.setTitle(b.getTitle());null!=b.Xh()&&(c.Nn(b.Xh()),_.Lvc(c,b.Xh()));null!=_.P(b,18)&&_.rL(KBc(c,!0),_.P(b,18));_.fe(b,8).length&&_.wK(c,_.fe(b,8));if(_.fe(b,9).length){var d=new Set(c.wk());_.fe(b,9).forEach(function(p){return d.add(p)});
_.wK(c,[].concat(_.Ad(d)))}if(_.fe(b,10).length){var e=new Set(c.wk());_.fe(b,10).forEach(function(p){return e.delete(p)});_.wK(c,[].concat(_.Ad(e)));var f=c.Cw();f&&_.fe(b,10).includes(f)&&_.pb(c,46)}if(!c.Cw()){var h=a.Ba();f=c.wk().find(function(p){var q=a.H.wm.H(p);return q&&!!q.Cw()||p==h});_.w(c,46,f||void 0)}c.wk().length&&(f=a.H.wm.H(c.wk()[0]))&&_.Rvc(c,f.yc());if(f=_.B(b,_.Zk,25)){var k=_.B(c,_.Zk,111)||new _.Zk;null!=_.P(f,1)&&_.Bvc(k,_.P(f,1));null!=_.y(f,2)&&_.Cvc(k,_.y(f,2));_.I(c,111,
k)}var l=_.fe(c,120);_.fe(b,31).forEach(function(p){l.includes(p)||l.push(p)});_.fe(b,32).forEach(function(p){_.ta(l,p)});_.Ij(c,120,l)};VTc.prototype.ta=function(a,b){var c=this,d=_.zA(new _.xA,[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 cUc=function(a){this.H=a};_.K(cUc,_.Mzc);cUc.prototype.execute=function(a,b,c){var d=_.Mzc.prototype.execute.call(this,a,b,c);if(d)return d;if(c.GKa||b instanceof _.YI&&_.qK(b.ud()))if(c=XFc(this.H))return c;return b instanceof _.JJ?(c=_.Df(new _.Cf,1424),a.Qe(nCc(!1,1,c)).then(function(e){(e=e.jd())&&(e=e.wd()[0])&&_.Cj(e,96)&&b.Nca(e.$v())},function(){})):null};
var ACc=function(a,b){return[dUc,eUc,fUc,gUc].reduce(function(c,d){var e;0!==c?e=c:e=_.Ea(d(a),d(b));return e},0)},dUc=function(a){return hUc[a.zf()]},eUc=function(a){return iUc[a.getType()]},fUc=function(a){return a.getName()||""},gUc=function(a){return a.getId()||""},jN={},hUc=(jN[5]=0,jN[7]=1,jN[1]=2,jN[3]=3,jN[4]=4,jN[2]=5,jN[6]=6,jN),jUc={},iUc=(jUc[1]=0,jUc[2]=1,jUc[3]=2,jUc[4]=3,jUc);
var kUc=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};
kUc.prototype.apply=function(a,b){var c=this;if(!(b instanceof _.nK&&8===b.Bb()))if(a instanceof _.wJ||a instanceof _.yJ||a instanceof _.Duc||a instanceof _.VJ||a instanceof _.gJ||a instanceof _.gK||a instanceof _.Luc||a instanceof _.iK||a instanceof _.yL){var d=_.jJ(b.getItem().clone(),9);this.H.zl([d],1);FLc(this.ta,b.getItem(),_.JK(this.Mg))}else if(a instanceof _.CJ)b=_.kJ(_.bJ(new _.aJ,a.getId())),this.H.Ro([b]);else if(a instanceof _.FJ)b=_.kJ(_.Ytc(_.bJ(new _.aJ,a.getId()),a.getId())),this.H.Ro([b]),
lTc(this.ma,b);else if(a instanceof _.JJ)b=nCc(!0).ud(),b=this.H.wm.query(b).map(function(e){return _.kJ(_.bJ(new _.aJ,e.getId()))}),this.H.Ro(b);else if(a instanceof _.AJ)this.O.remove(a.Nh());else if(a instanceof _.MJ||a instanceof _.dK)this.O.put(b.wr());else if(a instanceof _.DJ)zCc(this.H,a);else if(a instanceof _.VD)this.W.remove(a.getKey());else if(a instanceof _.NJ)BCc(this.H,a,_.B(b,_.Rk,2));else if(a instanceof _.WD)this.W.put(b.lMa());else if(a instanceof _.zJ||a instanceof _.hK)this.ha.oD([b.qn()],
!1);else if(a instanceof _.GJ)this.ha.oD([gLc(a.getId())],!1);else if(a instanceof _.Cuc)this.V.oD(b.response.O(),!1,1);else if(a instanceof _.eK)a.AV().filter(function(e){return _.P(e,3)}).forEach(function(e){return c.V.removeItem(e.Om()||"",a.Ac())}),jLc(this.ka,a.Ac()),this.H.a2a(a.Ac());else if(a instanceof _.OK)for(b=_.m(_.Oj(a,_.mHc,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,_.WL,2),d.getType()){case 1:case 2:if(d=this.H.wm.H(d.Ac()))d=
_.bJ(dFc(),d.getId()).setItem(d.clone()),this.H.Ro([d])}}};
var lUc=function(a){this.H=a};
lUc.prototype.translate=function(a){if(a instanceof _.ZJ){var b=this.H.H(a.getId());if(!b)return new _.Cc;var c=(new _.gJ).Ob(a.getId());if(b.yc()){var d=b.getCapabilities();_.Ee(d)||_.P(d,9)?c.Nn(!0):_.hJ(c,!1)}else d=a.getParent(),1===b.Yo()?c.Nn(!0):d?(b=this.H.H(d),!b||_.P(b.getCapabilities(),7)?ZEc(c,[d]):_.hJ(c,!1)):_.hJ(c,!1);return c}if(a instanceof _.$J)return aFc($Ec(ZEc(YEc((new _.gJ).Ob(a.getId()),_.fe(a,2)),_.fe(a,3)),_.P(a,6)),_.Oj(a,_.Jl,8));if(a instanceof _.aK){b=this.H.H(a.getId());
if(!b)return new _.Cc;c=(new _.gJ).Ob(a.getId());b.yc()?(d=b.getCapabilities(),_.Ee(d)||_.P(d,9)?c.Nn(!1):_.hJ(c,!0)):(d=a.getParent(),1===b.Yo()?c.Nn(!1):d?(b=this.H.H(d),!b||_.Yk(b.getCapabilities())?YEc(c,[d]):_.hJ(c,!0)):_.hJ(c,!0));return c}if(a instanceof _.aL)return new _.Duc(a);if(a instanceof _.UM)return _.fe(a,1).map(function(f){var h=new _.eK;f=_.w(h,1,f);h=a.AV();f=_.Kj(f,2,h);h=a.te();return _.I(f,3,h)});if(a instanceof _.IJ){c=nCc(!1,1).ud();var e=0;this.H.query(c).forEach(function(f){(f=
f.$v())&&(e=Math.max(e,f))});return RFc(new _.JJ,a).Nca(e)}return a};
var mUc=function(){};mUc.prototype.validate=function(a){var b=null;a instanceof _.RJ?(a=a.getId()||"",_.xe(a)&&(b="Tried to request backup with no id.")):a instanceof _.BJ&&(a=a.getId()||"",_.xe(a)&&(b="Tried to delete backup with no id."));return b?_.eJ(b):null};
var nUc=function(a,b){this.H=a;this.O=b},rUc=function(a,b){_.hL(["drive#about"],b);var c=new _.VM,d=new _.oC;if(b.user){var e=_.jL(a.H,b.user);_.I(d,1,e)}a=oUc(a,b);a=REc(QEc(_.PEc(new _.hLb,a),b.rootFolderId),b.domainSharingPolicy);b.gsuiteSubscriptionInfo&&(e=b.gsuiteSubscriptionInfo,_.TEc(a,_.EEc(_.DEc((new _.nC).Dc(pUc.get(e.status)),Number(e.trialMillisRemaining)),_.iL(e.trialEndTime))));b.teamDashboardCapabilities&&(e=b.teamDashboardCapabilities,_.UEc(a,_.GEc(_.FEc(new _.cLb,e.canAdministerTeam),
e.canManageInvites)));b.importFormats&&SEc(a,b.importFormats.map(function(f){var h=new _.OEc;h=_.w(h,1,f.source);return _.Ij(h,2,f.targets)}));b.adminSecureLinkSetting&&VEc(a,qUc.get(b.adminSecureLinkSetting));_.I(d,3,a);_.PPc(c,d);b=b.largestChangeId;null!=b&&_.w(c,4,Number(b));return c},oUc=function(a,b){var c;var d=new _.gLb;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=_.KEc(_.JEc(_.IEc(_.HEc(d,
DCc(b.quotaBytesByService||[])),b.quotaType?sUc.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)-FCc(b);d=_.w(d,9,e);d=_.LEc(d,Number(b.quotaBytesUsedAggregate));d=_.w(d,11,Number(b.quotaBytesUsedInTrash));d=_.w(d,13,_.HBc(Number(b.quotaBytesUsedAggregate),Number(b.quotaBytesTotal)));d=_.MEc(d,tUc.get(b.quotaStatus)||0);if(b.graceQuotaInfo&&b.graceQuotaInfo.endDate){e=
new _.fLb;var f=_.U7a(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=_.pK(a.O))||void 0===c?0:_.Q(c,16,!1)){var h;(a=d.KJ())&&(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,_.HBc(Number(b.individualQuotaBytesUsedAggregate),Number(b.individualQuotaBytesTotal)));b=
_.w(h,9,Number(b.individualQuotaBytesUsedAggregate))}else b=d;return b},tUc=new Map([["softLimitExceeded",2],["hardLimitExceeded",3],["underLimit",1]]),ECc=new Set(["POOLED_STORAGE","FAMILY"]),pUc=new Map([["isInTrial",1],["hasPaidContract",2],["noSubscription",3],["trialExpired",4]]),CCc=new Map([["DRIVE",1],["FAMILY",4],["GMAIL",2],["PHOTOS",3],["POOLED_STORAGE",5]]),sUc=new Map([["LIMITED",1],["UNLIMITED",2],["POOLED",3]]),qUc=new Map([["unknown",0],["requireLessSecureLinks",1],["removeLessSecureLinks",
2],["userCanChoose",3]]);
var uUc={TYPE_UNSPECIFIED:0,MOBILE:1,SYNC_CLIENT:2,APP:3},vUc={TYPE_UNSPECIFIED:0,MY_DRIVE_ROOT:1,SHARED_DRIVE_ROOT:2,STANDARD_FOLDER:3},wUc={TYPE_UNSPECIFIED:0,USER_DELETION:1,TRASH_AUTO_PURGE:2,MULTIPARENTING_MIGRATION:4},xUc={TYPE_UNSPECIFIED:0,TRASH:1,PERMANENT_DELETE:2},yUc={TYPE_UNSPECIFIED:0,UNTRASH:1,REVIVE:2},zUc={ROLE_UNSPECIFIED:0,OWNER:1,ORGANIZER:2,FILE_ORGANIZER:3,EDITOR:4,COMMENTER:5,VIEWER:6,PUBLISHED_VIEWER:7},AUc={SUBTYPE_UNSPECIFIED:0,ADDED:1,DELETED:2,REPLY_ADDED:3,REPLY_DELETED:4,
RESOLVED:5,REOPENED:6},BUc={SUBTYPE_UNSPECIFIED:0,ADDED:1,DELETED:2,REPLY_ADDED:3,REPLY_DELETED:4,RESOLVED:5,REOPENED:6,REASSIGNED:7},CUc={SUBTYPE_UNSPECIFIED:0,ADDED:1,DELETED:2,REPLY_ADDED:3,REPLY_DELETED:4,ACCEPTED:7,REJECTED:8,ACCEPT_DELETED:9,REJECT_DELETED:10},DUc={TYPE_UNSPECIFIED:0,FLAGGED:1,CLEARED:2},EUc={TYPE_UNSPECIFIED:0,LOADED_FOR_VIEW:1,VIEWED_MORE_CONTENT:2,OPEN_WITH_APP_INITIATED:3},FUc={DOMAIN_VISIBILITY_UNKNOWN:0,DOMAIN_VISIBILITY_CONSUMER:1,DOMAIN_VISIBILITY_SAME_DOMAIN:2,DOMAIN_VISIBILITY_ALL_DOMAINS:3,
DOMAIN_VISIBILITY_RESTRICTED:4},GUc={NAMED_PARTY_UNKNOWN:0,NAMED_PARTY_UNNAMED:1,NAMED_PARTY_NAMED:2},HUc={TYPE_UNSPECIFIED:0,DOWNLOADED:1,DOWNLOAD_INITIATED:2,PRINT_INITIATED:3},IUc={UNSPECIFIED_REFERENCE_TYPE:0,LINK:1,DISCUSS:2},JUc={FEATURE_UNSPECIFIED:0,SHARING_OUTSIDE_DOMAIN:1,DIRECT_SHARING:2,ITEM_DUPLICATION:3,DRIVE_FILE_STREAM:4},KUc={RESTRICTION_UNSPECIFIED:0,UNRESTRICTED:1,FULLY_RESTRICTED:2},LUc={STATUS_UNSPECIFIED:0,IN_PROGRESS:1,COMPLETED:2,CANCELLED:3},MUc={DECISION_UNSPECIFIED:0,APPROVED:1,
DECLINED:2},NUc={TYPE_UNSPECIFIED:0,LABEL_ADDED:1,LABEL_REMOVED:2,LABEL_FIELD_VALUE_CHANGED:3},OUc={PUBLISH_MODE_UNSPECIFIED:0,NONE:1,FIXED:2,AUTO:3},PUc={REASON_UNSPECIFIED:0,ORPHAN_REPARENTED:1},WUc=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 "primaryActionDetail":d=QUc(e);_.I(c,2,d);break;case "actors":d=RUc(e);_.Kj(c,3,d);break;case "actions":d=SUc(e);_.Kj(c,
4,d);break;case "targets":d=TUc(e);_.Kj(c,5,d);break;case "timestamp":c.O(UUc(e));break;case "timeRange":d=VUc(e),_.Wj(c,7,_.XM,d)}}return c})},SUc=function(a){return a.map(function(b){var c=new _.TPc;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=QUc(e);_.I(c,1,d);break;case "source":d=new MOc;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":_.hk(d,2,uUc[h]);break;case "appId":_.gk(d,1,h)}}_.I(c,2,d);break;case "actor":d=XUc(e);_.I(c,3,d);break;case "target":d=YUc(e);_.I(c,4,d);break;case "timestamp":c.O(UUc(e));break;case "timeRange":d=VUc(e),_.Wj(c,6,_.UPc,d)}}return c})},TUc=function(a){return a.map(function(b){return YUc(b)})},$Uc=function(a){return a.map(function(b){return ZUc(b)})},aVc=function(a){return a.map(function(b){var c=new _.rOc;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(ZUc(e));break;case "shortcut":d=ZUc(e),_.I(c,2,d)}}return c})},YUc=function(a){var b=new _.POc;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=bVc(d);_.Wj(b,1,_.MM,c);break;case "drive":c=new _.NOc;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=bVc(f),_.I(c,3,e)}}_.Wj(b,5,_.MM,c);break;case "fileComment":c=new _.OOc;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":_.gk(c,1,f);break;case "legacyDiscussionId":_.gk(c,2,f);break;case "linkToDiscussion":_.gk(c,3,f);break;case "parent":c.tg(bVc(f))}_.Wj(b,3,_.MM,c)}}return b},ZUc=function(a){var b=new _.FM;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 aOc;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 ZNc;_.Wj(e,8,$Nc,f);break;case "driveFolder":e=cVc(f);_.Wj(c,9,$Nc,e);break;case "driveShortcut":e=dVc(f),_.Wj(c,10,$Nc,e)}}_.Wj(b,1,bOc,c);break;case "drive":c=eVc(d),_.Wj(b,3,bOc,c)}}return b},
bVc=function(a){var b=new _.YNc;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":_.gk(b,6,d);break;case "version":_.fk(b,5,d);break;case "owner":c=new UNc;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=fVc(f);_.I(c,3,e);break;case "user":e=kN(f);_.Wj(c,
1,_.TNc,e);break;case "drive":e=eVc(f),_.Wj(c,4,_.TNc,e)}}_.I(b,7,c);break;case "driveFile":c=new ZNc;_.Wj(b,8,VNc,c);break;case "driveFolder":c=cVc(d);_.Wj(b,9,VNc,c);break;case "driveShortcut":c=dVc(d),_.Wj(b,10,VNc,c)}}return b},eVc=function(a){var b=new SNc;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},cVc=function(a){var b=new WNc;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":_.hk(b,6,vUc[d])}}return b},dVc=function(a){var b=new XNc;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":_.gk(b,1,d);break;case "targetMimeType":_.gk(b,2,d)}}return b},RUc=function(a){return a.map(function(b){return XUc(b)})},XUc=function(a){var b=new _.LOc;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=kN(d);_.Wj(b,1,_.LM,c);break;case "anonymous":c=new IOc;_.Wj(b,2,_.LM,c);break;case "impersonation":c=new _.JOc;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=kN(f),_.I(c,1,e)}}_.Wj(b,3,_.LM,c);break;case "system":c=new _.KOc;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":_.hk(c,1,wUc[f])}_.Wj(b,4,_.LM,c);break;case "administrator":c=new _.HOc,_.Wj(b,5,_.LM,c)}}return b},gVc=function(a){return a.map(function(b){return kN(b)})},kN=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 "knownUser":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 "personName":_.gk(c,1,f);break;case "isCurrentUser":_.ek(c,2,f);break;case "displayName":_.gk(c,3,f);break;case "photoUrl":c.Mn(f)}}_.Wj(b,2,_.wNc,c);break;case "unknownUser":c=new ANc;_.Wj(b,4,_.wNc,c);break;case "deletedUser":c=new _.yNc,_.Wj(b,3,_.wNc,c)}}return b},UUc=function(a){var b=(new Date(a)).getTime();a=Math.floor(b/1E3);b=b%1E3*1E6;return _.T7a((new _.Iy).setSeconds(a),b)},VUc=function(a){var b=new _.WM;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(UUc(d));break;case "endTime":b.AO(UUc(d))}}return b},fVc=function(a){var b=new _.RNc;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":_.gk(b,3,d);break;case "audienceDisplayName":_.gk(b,4,d)}}return b},QUc=function(a){for(var b=new _.KM,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 _.eOc,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 fOc;_.Wj(z,1,_.cOc,A);break;case "upload":var C=k,G=new gOc;_.Wj(C,2,_.cOc,G);break;case "copy":for(var H=v,L=new _.dOc,N=_.m(Object.entries(H)),S=N.next();!S.done;S=N.next()){var U=_.m(S.value),ha=U.next().value,Y=U.next().value;switch(ha){case "originalObject":var oa=
ZUc(Y);_.I(L,1,oa)}}_.Wj(k,3,_.cOc,L)}}_.Wj(b,1,_.JM,k);break;case "edit":var qa=new lOc;_.Wj(b,2,_.JM,qa);break;case "move":for(var Aa=new _.tOc,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=$Uc($b);_.Kj(Aa,1,Bc);break;case "removedParents":var td=$Uc($b);_.Kj(Aa,2,td);break;case "fromOwnershipTransfer":_.ek(Aa,3,$b);break;case "reparents":var Xd=$b.map(hVc);_.Kj(Aa,4,Xd);break;case "multiparentingMigration":for(var Jd=
$b,qf=new _.sOc,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=$Uc(se);_.Kj(qf,2,li);break;case "migratedParents":var Wi=aVc(se);_.Kj(qf,1,Wi)}}_.I(Aa,5,qf)}}_.Wj(b,3,_.JM,Aa);break;case "rename":for(var vf=new _.zOc,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":_.gk(vf,1,Yg);break;case "newTitle":_.gk(vf,
2,Yg)}}_.Wj(b,4,_.JM,vf);break;case "delete":for(var Nh=new _.jOc,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":_.hk(Nh,1,xUc[Dh])}}_.Wj(b,5,_.JM,Nh);break;case "restore":for(var al=new _.AOc,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":_.hk(al,1,yUc[kk])}}_.Wj(b,6,_.JM,al);break;case "permissionChange":for(var Wh=
new _.wOc,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=iVc(bi);_.Kj(Wh,1,Bm);break;case "removedPermissions":var Sj=iVc(bi);_.Kj(Wh,2,Sj);break;case "resharedPermissions":var mk=iVc(bi);_.Kj(Wh,3,mk);break;case "otherActivePermissions":var Cl=iVc(bi);_.Kj(Wh,4,Cl)}}_.Wj(b,7,_.JM,Wh);break;case "comment":for(var Tj=new _.QNc,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 _.NNc,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":_.hk(Dl,1,AUc[nk])}}_.Wj(Tj,1,_.MNc,Dl);break;case "assignment":for(var Ph=Uj,mi=new _.ONc,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":_.hk(mi,1,BUc[Eh]);
break;case "assignedUser":var xn=kN(Eh);_.I(mi,7,xn)}}_.Wj(Tj,2,_.MNc,mi);break;case "suggestion":for(var uj=Uj,yn=new _.PNc,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":_.hk(yn,1,CUc[Ip])}}_.Wj(Tj,3,_.MNc,yn);break;case "mentionedUsers":var rr=gVc(Uj);_.Kj(Tj,7,rr)}}_.Wj(b,8,_.JM,Tj);break;case "dlpChange":for(var Nm=new _.iOc,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":_.hk(Nm,1,DUc[Kq])}}_.Wj(b,9,_.JM,Nm);break;case "view":for(var Nr=new GOc,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":_.hk(Nr,1,EUc[rB]);break;case "viewHistoryVisibility":for(var Py=rB,lu=new FOc,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":_.hk(lu,
1,FUc[px]);break;case "namedPartyState":_.hk(lu,2,GUc[px])}}_.I(Nr,2,lu)}}_.Wj(b,10,_.JM,Nr);break;case "download":for(var Qy=new kOc,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":_.hk(Qy,1,HUc[at])}}_.Wj(b,11,_.JM,Qy);break;case "reference":for(var il=new _.rNc,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":_.hk(il,
1,IUc[Ry]);break;case "context":for(var Li=Ry,Sy=new qNc,Nq=_.m(Object.entries(Li)),Vp=Nq.next();!Vp.done;Vp=Nq.next()){var GG=_.m(Vp.value),V7=GG.next().value,bK=GG.next().value;switch(V7){case "description":Sy.Yl(bK);break;case "url":_.gk(Sy,2,bK)}}_.I(il,2,Sy)}}_.Wj(b,12,_.JM,il);break;case "settingsChange":for(var Kg=new _.DOc,eT=_.m(Object.entries(h)),tx=eT.next();!tx.done;tx=eT.next()){var mm=_.m(tx.value),uB=mm.next().value,fT=mm.next().value;switch(uB){case "restrictionChanges":var tO=jVc(fT);
_.Kj(Kg,1,tO)}}_.Wj(b,13,_.JM,Kg);break;case "approvalChange":for(var mo=new _.DNc,f_=_.m(Object.entries(h)),uO=f_.next();!uO.done;uO=f_.next()){var mu=_.m(uO.value),PD=mu.next().value,Ty=mu.next().value;switch(PD){case "approvalName":_.gk(mo,2,Ty);break;case "approvalEventNames":_.Ij(mo,3,Ty);break;case "initiator":var gT=kN(Ty);_.I(mo,4,gT);break;case "reviewers":var W7=gVc(Ty);_.Kj(mo,5,W7);break;case "status":mo.Dc(LUc[Ty]);break;case "dueTime":var g_=UUc(Ty);_.I(mo,7,g_);break;case "approvalRequested":var Uy=
mo,ux=new ENc;_.Wj(Uy,8,_.EM,ux);break;case "approvalCancelled":var cK=mo,X7=new FNc;_.Wj(cK,9,_.EM,X7);break;case "reviewerResponded":for(var hT=Ty,vO=new _.CNc,h_=_.m(Object.entries(hT)),vB=h_.next();!vB.done;vB=h_.next()){var i_=_.m(vB.value),j_=i_.next().value,k_=i_.next().value;switch(j_){case "reviewerDecision":_.hk(vO,1,MUc[k_])}}_.Wj(mo,10,_.EM,vO);break;case "commentAdded":var zB=mo,$y=new GNc;_.Wj(zB,11,_.EM,$y);break;case "reviewersChanged":for(var FO=Ty,OG=new INc,FT=_.m(Object.entries(FO)),
kK=FT.next();!kK.done;kK=FT.next()){var B8=_.m(kK.value),Uza=B8.next().value,C8=B8.next().value;switch(Uza){case "reviewerChanges":var D8=kVc(C8);_.Kj(OG,1,D8)}}_.Wj(mo,12,_.EM,OG);break;case "dueTimeChanged":for(var hrc=Ty,UAb=new KNc,Vza=_.m(Object.entries(hrc)),Wza=Vza.next();!Wza.done;Wza=Vza.next()){var VAb=_.m(Wza.value),WAb=VAb.next().value,m_a=VAb.next().value;switch(WAb){case "oldDueTime":var UD=UUc(m_a);_.I(UAb,1,UD)}}_.Wj(mo,13,_.EM,UAb)}}_.Wj(b,18,_.JM,mo);break;case "lock":var XAb=new nOc;
_.Wj(b,15,_.JM,XAb);break;case "unlock":var YAb=new EOc;_.Wj(b,16,_.JM,YAb);break;case "appliedLabelChange":for(var n_a=new _.vNc,o_a=_.m(Object.entries(h)),Xza=o_a.next();!Xza.done;Xza=o_a.next()){var p_a=_.m(Xza.value),q_a=p_a.next().value,ZAb=p_a.next().value;switch(q_a){case "changes":var $Ab=lVc(ZAb);_.Kj(n_a,1,$Ab)}}_.Wj(b,19,_.JM,n_a);break;case "publishChange":for(var Yza=new _.yOc,aBb=_.m(Object.entries(h)),D_=aBb.next();!D_.done;D_=aBb.next()){var Oia=_.m(D_.value),GT=Oia.next().value,bBb=
Oia.next().value;switch(GT){case "oldPublishState":var irc=mVc(bBb);_.I(Yza,1,irc);break;case "newPublishState":var jrc=mVc(bBb);_.I(Yza,2,jrc)}}_.Wj(b,20,_.JM,Yza);break;case "linkShareMetadataChange":for(var r_a=new _.mOc,lK=_.m(Object.entries(h)),s_a=lK.next();!s_a.done;s_a=lK.next()){var Zza=_.m(s_a.value),cBb=Zza.next().value,t_a=Zza.next().value;switch(cBb){case "securityUpdateEnabled":_.ek(r_a,1,t_a)}}_.Wj(b,21,_.JM,r_a)}}return b},hVc=function(a){var b=new _.pOc;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":_.hk(b,1,PUc[d])}}return b},iVc=function(a){return a.map(function(b){var c=new _.IM;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":_.hk(c,1,zUc[e]);break;case "user":d=kN(e);_.Wj(c,2,_.HM,d);break;case "group":d=new _.GM;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":_.gk(d,1,h);break;case "title":d.setTitle(h)}}_.Wj(c,3,_.HM,d);break;case "domain":d=fVc(e);_.Wj(c,4,_.HM,d);break;case "anyone":d=new uOc;_.Wj(c,5,_.HM,d);break;case "allowDiscovery":_.ek(c,6,e)}}return c})},jVc=function(a){return a.map(function(b){var c=new _.COc;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":_.hk(c,1,JUc[e]);break;case "newRestriction":_.hk(c,
2,KUc[e])}}return c})},kVc=function(a){return a.map(function(b){var c=new JNc;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=kN(e);_.I(c,3,d);break;case "addedReviewer":d=kN(e),_.I(c,4,d)}}return c})},lVc=function(a){return a.map(function(b){var c=new _.uNc;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":_.gk(c,
1,e);break;case "types":d=nVc(e),_.Ij(c,2,d)}}return c})},nVc=function(a){return a.map(function(b){return NUc[b]})},mVc=function(a){var b=new _.xOc;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":_.hk(b,1,OUc[d]);break;case "signinRequired":_.ek(b,2,d);break;case "publishedTime":c=UUc(d),_.I(b,3,c)}}return b};
var pVc=function(a){return(a.items||[]).map(function(b){return oVc(b)})},qVc=function(a,b){var c=new lPc;b=_.w(c,4,b);a&&"drive#app"==a.kind&&(a=oVc(a),_.I(b,2,a));return b},oVc=function(a){_.hL(["drive#app"],a);var b=(new _.XL).Ob(a.id);b=_.w(b,3,a.useByDefault).hd(a.name);b=_.w(b,7,a.openUrlTemplate);b=AHc(zHc(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=_.Ij(b,17,a.primaryFileExtensions);b=_.Ij(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=rVc.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 _.uHc;l=_.w(l,3,k.iconUrl).setSize(k.size);k.category&&(k=sVc.get(k.category),_.w(l,1,k));h.call(f,l)}_.Kj(b,6,d);c=a.chromeExtensionIds||[];d=[];for(e=0;e<c.length;e++)d.push(c[e]);_.Ij(b,24,d);c=a.rankingInfo||{};a=new _.xHc;d=c.absoluteScore;null!=d&&
_.w(a,1,Number(d));d=tVc(c.mimeTypeScores||[]);_.Kj(a,2,d);c=tVc(c.fileExtensionScores||[]);_.Kj(a,3,c);_.I(b,29,a);return b},tVc=function(a){return a.map(function(b){var c=b.type;b=b.score;var d=new _.vHc;c=_.w(d,1,c);return _.w(c,2,Number(b))})},rVc=new Map([["WEB_ONLY",1],["WEB_AND_CHROME_EXTENSION",2],["CHROME_EXTENSION_ONLY",3]]),sVc=new Map([["application",1],["document",2],["documentShared",3]]);
var vVc=function(a){var b=new mQc;if(!a.backups)return b;a=a.backups.map(function(c){var d=(new _.NM).Ob(c.id).setTitle(c.title);d=_.w(d,3,_.iL(c.updateTime));var e=uVc.get(c.backupSource);d=_.w(d,4,e);d=_.w(d,5,c.iconUri);d=_.w(d,8,_.iL(c.expiryTime));d=_.w(d,9,"boolean"===typeof c.hasGoogleoneBackup?c.hasGoogleoneBackup:!1);if(1===d.mz())e=new ROc,e=_.w(e,1,c.whatsappOngoingBackupEnabled),c=_.w(e,2,c.whatsappPhoneNumber),_.I(d,6,c);else if(2===d.mz()){e=Number(c.deviceAndroidId);var f=new _.QOc;
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});_.Kj(b,2,a);return b},xVc=function(a){var b=new iQc;if(!a.backupItems)return b;a=a.backupItems.map(function(c){var d=(new _.OM).Ob(c.id);var e=wVc.get(c.type);d=_.w(d,1,e).setTitle(c.title);d=_.w(d,4,c.iconUri);d=_.SOc(d.setSize(c.size?Number(c.size):void 0),_.iL(c.updateTime));d=_.w(d,7,c.hasCustomBehavior).Yl(c.description);return _.w(d,9,c.ongoingSyncEnabled)});
_.Kj(b,1,a);return b},uVc=new Map([["BACKUP_SOURCE_UNSPECIFIED",0],["BACKUP_SOURCE_WHATSAPP",1],["BACKUP_SOURCE_ANDROID",2]]),wVc=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 yVc=function(a,b){this.H=a;this.O=b};
var zVc=new Map([["READ",2],["WRITE",3],["COMMENT",4]]),AVc=function(a,b,c){var d=c.itemId;c=c.driveItem;d=(new _.hl).Ob(d);c&&(_.IG(d.setTitle(c.title),c.mimeType),c.userCapabilities&&_.xK(d,_.Szc(c.userCapabilities)));_.JK(b).includes(19)&&_.Ovc(d,!0);FLc(a,d,_.JK(b));_.Qvc(d,4);return d},DVc=function(a,b,c){for(var d=[],e=[],f={},h=_.m(c.item||[]),k=h.next();!k.done;f={Cea:f.Cea},k=h.next()){var l=k.value;if(l.person){f.Cea=l.itemId;k=BVc(l.person).Ob(f.Cea);var p={};l=_.m(l.childItem||[]);for(var q=
l.next();!q.done;p={Nqa:p.Nqa},q=l.next()){var r=q.value;e.some(function(v){return function(z){return z.getId()===v.Cea}}(f))||e.push(k);p.Nqa=r.itemId;q=d.find(function(v){return function(z){return z.getId()===v.Nqa}}(p));void 0===q&&(q=AVc(a,b,r),d.push(q));r=rEc(qEc(pEc(new _.Una,k.clone()),CVc(r)),r.url);_.Xj(q,107,r,_.Una,void 0)}}}return dGc((new _.SK).Uw(d),e).mP(c.suggestionSessionId)},BVc=function(a){return _.cvc((new _.Rk).Ob(a.id).hd(a.displayName),a.emailAddress).Mn(a.photoUrl)},OVc=function(a){var b=
a.action;return b?b.map(function(c){var d=new _.vna,e=EVc(c);e&&_.Wj(d,2,_.Vk,e);(e=FVc(c))&&fDc(d,e);(e=GVc(c))&&_.Wj(d,4,_.Vk,e);(e=HVc(c))&&_.Wj(d,5,_.Vk,e);(e=IVc(c))&&_.Wj(d,6,_.Vk,e);(e=JVc(c))&&_.Wj(d,7,_.Vk,e);(e=KVc(c))&&_.Wj(d,8,_.Vk,e);(e=LVc(c))&&_.Wj(d,9,_.Vk,e);(e=MVc(c))&&_.Wj(d,10,_.Vk,e);(c=NVc(c))&&_.Wj(d,11,_.Vk,c);return d}):(a=lN(a),a=ODc([a]),[fDc(new _.vna,a)])},QVc=function(a){return(a.justification||[]).map(function(b){return PVc(b)})},lN=function(a){return(a=a.justification)?
PVc(a):null},PVc=function(a){var b=bDc(new _.Uk,RVc(a.displayText)),c=a.primaryPerson,d=a.allPeople;c?(c=BVc(c),_.Wj(b,3,_.una,c),cDc(b,[c])):d?(c=(d.person||[]).map(function(e){return BVc(e)}),d=aDc(c),_.Wj(b,4,_.una,d),cDc(b,c)):(c=(a.person||[]).map(function(e){return BVc(e)}),c.length&&(d=aDc(c),_.Wj(b,4,_.una,d),cDc(b,c)));_.w(b,5,_.iL(a.eventTime));dDc(b,RVc(a.justificationDescription));eDc(b,RVc(a.unstructuredJustificationDescription));return b},RVc=function(a){if(!a)return null;a=a.textSegment||
[];return YCc(new _.Ok,a.map(function(b){var c=(new _.Pk).lh(b.text),d=b.link;if(d){var e=new _.Qk;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)}))},EVc=function(a){a=a.documentDocosAction;if(!a)return null;var b=DDc(new _.Dna,lN(a));CDc(b,(a.subAction||[]).map(function(c){var d=new _.Ena;c.reply?(c=new _.xna,_.Wj(d,1,_.Wk,c)):c.resolve?(c=new nDc,_.Wj(d,2,_.Wk,c)):c.reassign?(c=new lDc,_.Wj(d,3,_.Wk,c)):c.acceptSuggestion?(c=new gDc,_.Wj(d,4,_.Wk,c)):c.rejectSuggestion?
(c=new mDc,_.Wj(d,5,_.Wk,c)):c.openThread&&(c=new _.wna,_.Wj(d,6,_.Wk,c));return d}));_.w(b,2,a.discussionId);_.w(b,3,a.postId);EDc(b,RVc(a.anchorText));return b},GVc=function(a){a=a.documentShareAction;if(!a)return null;var b=IDc(new _.Gna,lN(a));HDc(b,(a.subAction||[]).map(function(c){var d=new JDc;c.suggestedShare?(c=new rDc,_.Wj(d,1,kEc,c)):c.responseToRequest&&(c=new oDc,_.Wj(d,2,kEc,c));return d}));FDc(b,(a.sharee||[]).map(function(c){return BVc(c)}));GDc(b,zVc.get(a.shareeRole));return b},
FVc=function(a){a=a.documentViewAction;if(!a)return null;var b=ODc(QVc(a));NDc(b,(a.subAction||[]).map(function(c){var d=new QDc;c.open?d.Cg(new iDc):c.reviewEdits&&(c=new pDc,_.Wj(d,2,PDc,c));return d}));return b},HVc=function(a){a=a.emailViewAction;if(!a)return null;var b=$Dc(new YDc,lN(a));ZDc(b,(a.subAction||[]).map(function(c){var d=new bEc;c.open&&d.Cg(new jDc);return d}));return b},IVc=function(a){a=a.calendarEventAction;if(!a)return null;var b=xDc(wDc(vDc(new _.zna,a.eventId),lN(a)),a.guestCount);
uDc(b,(a.subAction||[]).map(function(c){var d=new yDc;if(c.viewCalendarEvent){var e=new sDc;_.Wj(d,1,iEc,e)}c.shareWithAttendees&&(e=new qDc,_.Wj(d,2,iEc,e));c.present&&(e=new kDc,_.Wj(d,3,iEc,e));c.openDocument&&(c=new iDc,_.Wj(d,4,iEc,c));return d}));return b},JVc=function(a){a=a.documentWorkspaceAction;if(!a)return null;var b=VDc(UDc(new SDc,a.workspaceId),lN(a));TDc(b,(a.subAction||[]).map(function(c){var d=new WDc;c.addToWorkspace&&(c=new hDc,_.Wj(d,1,mEc,c));return d}));return b},KVc=function(a){a=
a.documentTopicAction;if(!a)return null;var b=LDc(new _.Ina,lN(a));KDc(b,(a.subAction||[]).map(function(c){var d=new MDc;c.openDocument&&(c=new iDc,_.Wj(d,1,lEc,c));return d}));return b},LVc=function(a){a=a.popularDocumentAction;if(!a)return null;var b=gEc(new _.Ona,lN(a));fEc(b,(a.subAction||[]).map(function(c){var d=new hEc;c.openDocument&&(c=new iDc,_.Wj(d,1,oEc,c));return d}));return b},MVc=function(a){a=a.collaboratorActivityAction;if(!a)return null;var b=ADc(new _.Bna,lN(a));zDc(b,(a.subAction||
[]).map(function(c){var d=new BDc;c.openDocument&&(c=new iDc,_.Wj(d,1,jEc,c));return d}));return b},NVc=function(a){a=a.formResponseAction;if(!a)return null;var b=dEc(new _.Mna,QVc(a));cEc(b,(a.subAction||[]).map(function(c){var d=new eEc;c.openDocument?(c=new iDc,_.Wj(d,1,nEc,c)):c.viewResponses&&(c=new tDc,_.Wj(d,2,nEc,c));return d}));return b},CVc=function(a){a=((a.justification||{}).displayText||{}).textSegment||[];return 0<a.length?(a[0]||{}).text||"":""};
var SVc=function(a,b){this.H=a;this.O=b},UVc=function(a,b,c){_.hL(["drive#categoryMetadataList"],c);var d=new kM,e=Object.values(c.categoryMetadata||{});nJc(d,e.map(function(f){return TVc(a,f,b.Ac())}));d.Dc(1);return new _.VK(d,gNc(c))},WVc=function(a,b){var c=new SM;uPc(c,(b.categories||[]).map(function(d){return VVc(a,d)}));c.Dc(1);return new TIc(c,gNc(b))},TVc=function(a,b,c){_.hL(["drive#categoryMetadata"],b);c=kHc((new VL).hd(b.categoryName),c);b=Object.values(b.attributeValues||[]);jHc(c,b.map(function(d){return XVc(a,
d)}).filter(function(d){return null!==d}));return c},VVc=function(a,b){var c,d=cHc(UGc($Gc(ZGc(YGc(TGc(SGc((new RL).hd(b.name),b.categoryName),b.latestName).setTitle(b.title).Yl(b.description),_.iL(b.createTime)),_.iL(b.updateTime)),_.iL(b.publishTime)),(null!==(c=b.attributes)&&void 0!==c?c:[]).map(function(e){a:{var f=e.type;var h=(new PGc).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=YVc(e.attributeDisplayHints);_.I(h,5,k)}if(e.capabilities){k=
e.capabilities;var l=new xGc;l=_.w(l,1,k.canSearch);k=_.w(l,2,k.canWrite);_.I(h,6,k)}if(f&&(_.w(h,7,ZVc[f]),e=e[$Vc(f)+"Options"],!aWc(a,h,f,e))){f=null;break a}f=h}return f}).filter(function(e){return null!==e})),b.customer);b.createdBy&&VGc(d,bWc(b.createdBy));b.ySb&&WGc(d,bWc(b.ySb));b.publishedBy&&XGc(d,bWc(b.publishedBy));b.displayHints&&aHc(d,YVc(b.displayHints));b.capabilities&&bHc(d,cWc(b.capabilities));b.learnMoreUri&&_.w(d,15,b.learnMoreUri);return d},XVc=function(a,b){_.hL(["drive#categoryAttributeValue"],
b);var c=(new SL).Ob(b.id);if(b.userScoped)b=Object.values(b.userScoped),hHc(c,b.map(function(d){_.hL(["drive#userScopedAttributeValue"],d);var e=new eHc,f=_.jL(a.H,d.scopedUser);e=_.I(e,1,f);return a.Jb(e,d)?e:null}).filter(function(d){return null!==d})),c.YA(9);else if(!a.Jb(c,b))return null;return c},YVc=function(a){var b=new wGc;b=_.w(b,1,a.disabled);b=_.w(b,2,a.hidden);b=_.w(b,3,a.activatedInAllDrives);return _.w(b,4,!!a.required)},cWc=function(a){var b=new RGc;b=_.w(b,1,a.canSearch);b=_.w(b,
2,a.canApply);b=_.w(b,4,a.canRemove);return _.w(b,3,a.canManageSharedDriveActivation)},aWc=function(a,b,c,d){return dWc(a,function(){eWc(a)[c](b,d)},c,b)},fWc=function(a){a=void 0===a?{}:a;var b=new AGc;b=_.w(b,1,a.minSize);return _.w(b,2,a.maxSize)},hWc=function(a){var b=new GGc;HGc(b,(a.choices||[]).map(function(c){var d=new FGc;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 DGc;f=_.w(f,1,e.canSearch);e=_.w(f,2,e.canSelect);_.I(d,
3,e)}c.displayHints&&(c=c.displayHints,e=new EGc,e=_.w(e,1,c.disabled),e=_.w(e,2,c.hidden),c.badgePriority&&_.w(e,5,c.badgePriority),c.badgeColors&&(f=gWc(c.badgeColors),_.I(e,3,f)),c.darkBadgeColors&&(c=gWc(c.darkBadgeColors),_.I(e,4,c)),_.I(d,4,e));return d}));return b},gWc=function(a){var b=new vGc;var c=iWc(a.backgroundColor);b=_.I(b,1,c);c=iWc(a.foregroundColor);b=_.I(b,2,c);a=iWc(a.soloColor);return _.I(b,3,a)},iWc=function(a){var b=new _.nD;b=_.qb(b,1,a.red,0);b=_.qb(b,2,a.green,0);b=_.qb(b,
3,a.blue,0);a.alpha&&(a=(new WEc).Jb(a.alpha),_.I(b,4,a));return b},jWc=function(a){var b=new KGc;b=_.w(b,1,a.showThousandsSeparator);b=_.w(b,2,Number(a.minValue));return _.w(b,3,Number(a.maxValue))},kWc=function(a){var b=(new _.noa).setYear(a.year).setMonth(a.month);return _.w(b,3,a.day)};SVc.prototype.Jb=function(a,b){var c=this,d=b.valueType.replace(/([A-Z])/g,"_$1").toLowerCase().toUpperCase();a.YA(ZVc[d]);return dWc(this,function(){lWc(c)[d](a,b[b.valueType])},b.valueType)};
var dWc=function(a,b,c,d){try{b()}catch(e){if(e instanceof TypeError&&!(d instanceof MGc))return DFc(a.O,"drive.ds.response.MetadataParser","Response Parser: Error parsing type "+c+"."),!1;throw e;}return!0},bWc=function(a){return _.avc(1).Ob(a.personName.split("/")[1])},$Vc=function(a){return a.toLowerCase().replace(/_([a-z])/g,function(b,c){return c.toUpperCase()})},eWc=function(a){return{BOOLEAN:function(b,c){var d=b.I3a;var e=new BGc;e=_.w(e,1,c.trueLabel);c=_.w(e,2,c.falseLabel);return d.call(b,
c)},TEXT:function(b,c){return b.rMa(fWc(c))},TEXT_LIST:function(b,c){var d=b.G4a;var e=new JGc;e=_.w(e,1,c.maxEntries);c=fWc(c.options);c=_.I(e,2,c);return d.call(b,c)},LONG_TEXT:function(b,c){var d=new zGc;d=_.w(d,1,c.minSize);c=_.w(d,2,c.maxSize);return _.Wj(b,10,PL,c)},SELECTION:function(b,c){return b.t4a(hWc(c))},SELECTION_LIST:function(b,c){var d=b.s4a;var e=new IGc;e=_.w(e,1,c.maxEntries);c=hWc(c.options);c=_.I(e,2,c);return d.call(b,c)},INTEGER:function(b,c){return b.V3a(jWc(c))},INTEGER_LIST:function(b,
c){var d=b.U3a;var e=new LGc;e=_.w(e,1,c.maxEntries);c=jWc(c.options);c=_.I(e,2,c);return d.call(b,c)},USER:function(b){return b.L4a(new NGc)},USER_LIST:function(b,c){var d=b.sMa,e=new OGc;c=_.w(e,1,c.maxEntries);e=new NGc;c=_.I(c,2,e);return d.call(b,c)},DATE:function(b,c){var d=b.qMa;var e=new yGc;e=_.w(e,4,c.dateFormat);var f=kWc(c.minValue);e=_.I(e,2,f);c=kWc(c.maxValue);c=_.I(e,3,c);return d.call(b,c)},USER_SCOPED:function(b,c){var d=new MGc;d=_.w(d,1,c.canReadCollaboratorValues);var e=c.subtype;
_.w(d,2,ZVc[e]);var f=$Vc(e)+"Options";aWc(a,d,e,c[f]);return _.Wj(b,16,PL,d)}}},lWc=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.Noa(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.Joa(c)},INTEGER:function(b,c){return b.setIntegerValue(parseInt(c,10))},INTEGER_LIST:function(b,c){return b.Aoa(c.map(function(d){return parseInt(d,
10)}))},USER:function(b,c){return b.setUserValue(_.jL(a.H,c))},USER_LIST:function(b,c){gHc(b,c.map(function(d){return _.jL(a.H,d)}))},DATE_STRING:function(b,c){return b.setDateStringValue(c)}}},ZVc={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 nWc=function(a){a=a.personResponse||[];return wJc(new vJc,a.map(function(b){var c=b.person;b=sJc(new lM,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=tJc(d.call(b,e),mWc(c));c=void 0===c?{}:c;c=c.photo?c.photo[0]:null;h=new rJc;c=_.w(h,1,c&&!c.isDefault?c.url:null);return _.I(f,4,c)}))},mWc=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 oWc=function(a){this.H=a},qWc=function(a,b){_.hL(["drive#teamDriveList","drive#driveList"],b);return(b.items||[]).map(function(c){return pWc(a,c)})},pWc=function(a,b){_.hL(["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)&&uBc(c,d.map(function(e){_.hL(["drive#driveCategoryReference"],e);var f=new _.fl;return _.w(f,1,e.category)}));c=_.Xvc(_.Vvc(_.Uvc(_.Qvc(_.Rvc(tBc(_.IG((new _.hl).Ob(b.id).setTitle(b.name),"application/vnd.google-apps.folder"),c),b.id),2),b.primaryDomainName),b.organizationDisplayName),b.customerId);b.capabilities&&(d=_.ovc(_.Szc(b.capabilities),!0),_.xK(c,d));b.permissionsSummary&&_.Svc(c,$Fc(a.H,b.permissionsSummary));b.restrictions&&wBc(c,rWc(b.restrictions));return c},
rWc=function(a){var b=new vEc;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 sWc={DRIVE_FE:2,DRIVE_BE:4,EXPLORER:1,GENERAL:3,PSYNCHO:5,SLACK:6,DRIVE_BE_EX:7,DRIVE_SHARING:9,TEAMKIT:10},KCc=_.Za(sWc);
var tWc=function(a){_.hL(["drive#setting"],a);var b=new _.Xb;b=_.w(b,2,a.key);b=_.w(b,1,a.namespace?sWc[a.namespace]:void 0);return _.uBa(new _.op,b).Jb(a.value)};
var vWc=function(a){_.hL(["drive#workspaceList"],a);var b=a.items||[];b=yJc(new mM,b.map(function(c){return uWc(c)}));return new _.YK(b,gNc(a))},uWc=function(a){_.hL(["drive#workspace"],a);var b=(new _.FG).Ob(a.id).setTitle(a.title);b=_.w(b,3,_.iL(a.createdDate));return _.w(b,4,_.iL(a.modifiedDate)).Ld(a.state?wWc[a.state]:void 0)},xWc=function(a,b,c){var d=c.item||[];return _.$Ac(_.ZAc(new _.pL,d.map(function(e){return AVc(a,b,e)})),c.suggestionSessionId)},zWc=function(a,b,c){var d=c.item||[];return IHc(HHc(new ZL,
d.map(function(e){return yWc(a,b,e)})),c.suggestionSessionId)},yWc=function(a,b,c){var d=c.driveWorkspace,e=c.childItem||[];return FHc(DHc(EHc(CHc(new YL,c.predictionId).setTitle(d&&d.title),d&&d.workspaceToken),e.map(function(f){return AVc(a,b,f)})),lN(c))},AWc=function(a){var b=new _.tGc;a.kind&&(a=uWc(a),_.I(b,2,a));b.Dc(1);return b},wWc={active:1,archived:2};
var GCc={QUEUED:1,COUNTING:3,BUILDING:2,SUCCEEDED:4,FAILED:5};
var BWc=function(a,b,c,d){_.qAc.call(this,b);this.Mg=a;this.ka=c;this.O=d;this.W=null;this.ma=new nUc(this.V,b);this.H=new oWc(this.lF);this.ta=new yVc(this.lF,this.H)};_.K(BWc,_.qAc);var CWc=function(a){a.W||(a.W=new SVc(a.V,a.ka));return a.W};
BWc.prototype.ha=function(a,b){if(a instanceof _.tJ)var c=_.Zzc(_.uAc(a));else{if(a instanceof _.uJ)var d=_.kL(this,a,b);else{if(a instanceof _.Cuc)var e=DWc(this,a.request,b);else{if(a instanceof _.vJ)var f=_.kL(this,a,b);else{if(a instanceof _.xJ){if(!b.json)throw _.lL();var h=UOc((new TOc).Dc(1),pWc(this.H,b.json))}else{if(a instanceof _.wJ)var k=_.kL(this,a,b);else{if(a instanceof _.OK)var l=new pHc;else{if(a instanceof _.zJ)var p=EWc(a,b);else{if(a instanceof _.AJ)var q=qVc(void 0,a.Nh());else{if(a instanceof
_.BJ)var r=new nQc;else{if(a instanceof _.CJ)var v=_.Zzc(_.uAc(a));else{if(a instanceof _.DJ)var z=new RM;else{if(a instanceof _.EJ)var A=_.Zzc(_.uAc(a));else{if(a instanceof _.FJ)var C=_.Zzc(_.uAc(a));else{if(a instanceof _.VD){var G=new mPc,H=a.getKey();var L=_.I(G,4,H)}else{if(a instanceof _.GJ)var N=EWc(a,b);else{if(a instanceof _.JJ)var S=_.Zzc(_.uAc(a));else{if(a instanceof _.zuc){if(!b.json)throw _.lL();var U=new QQc(b.json.exportJob.id)}else{if(a instanceof _.LJ){if(!b.json)throw _.lL();var ha=
b.json,Y=new hPc,oa=oVc(ha);var qa=_.I(Y,2,oa).Dc(1)}else{if(a instanceof _.MJ)var Aa=FWc(a,b);else{if(a instanceof _.NJ){if(!b.json)throw _.lL();var Ka=(new RM).Dc(1),ib=_.bAc(this.lF,b.json);var Xa=_.I(Ka,2,ib)}else{if(a instanceof _.YI)a:{if(!b.json)throw _.lL();if(a instanceof _.YI){var Hb=a.ud();if(Hb&&_.OJ(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,CVc(ud));_.Q(Hb,74,
!1)?_.w(ne,4,!0):_.w(ne,3,!0);var Xg=AVc($b,Bc,ud);var se=_.I(Xg,100,ne);Xd.push(se)}}var li=(new _.pB).Uw(Xd).mP(td.suggestionSessionId);var Wi=_.vyc(new _.bL,li);break a}if(Hb&&_.PJ(Hb)){Wi=DVc(this.O,this.Mg,b.json);break a}if(Hb&&_.QJ(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=AVc(vf,Ek,Nh),$k=OVc(Nh);var Wn=_.Kj(yi,117,$k);Vf.push(Wn)}}var Am=(new _.pB).Uw(Vf).mP(Vh.suggestionSessionId);Wi=
_.vyc(new _.bL,Am);break a}}Wi=_.Wzc(this.lF,b.json,b.headers)}else{if(a instanceof _.RJ){if(!b.json)throw _.lL();var Dh=xVc(b.json)}else{if(a instanceof _.SJ){if(!b.json)throw _.lL();var al=b.json;_.hL(["drive#appList"],al);var jk=new jM,Zg=pVc(al);var Pj=_.Kj(jk,2,Zg);var sj=_.Ij(Pj,4,al.defaultAppIds).Dc(1)}else{if(a instanceof _.Auc){if(!b.json)throw _.lL();var kk=vVc(b.json)}else{if(a instanceof _.iJ)var Wh=GWc(this,b);else{if(a instanceof _.TJ){if(!b.json)throw _.lL();var Qj=new kPc,Rj=ZFc(this.lF,
b.json);var tj=_.I(Qj,1,Rj);var lk=_.w(tj,2,gNc(b.json))}else{if(a instanceof _.UJ){if(!b.json)throw _.lL();var bi=this.lF,Bm=b.json,Sj=new WFc;_.hL(["drive#revisionList"],Bm);for(var mk=[],Cl=Bm.items||[],Tj=0;Tj<Cl.length;Tj++){var wn=_.Xzc(bi,Cl[Tj]);mk.push(wn)}var bl=_.Kj(Sj,2,mk)}else{if(a instanceof _.VJ)var cl=_.kL(this,a,b);else{if(a instanceof _.mJ)var Af=HWc(a,b);else{if(a instanceof _.XJ){if(!b.json)throw _.lL();var Uj=nWc(b.json)}else{if(a instanceof _.Iuc){if(!b.json)throw _.lL();var em=
WVc(CWc(this),b.json)}else{if(a instanceof _.CG){if(!b.json)throw _.lL();var Dl=CWc(this),fm=b.json,qc=new vPc,Vj=VVc(Dl,fm);var Oh=_.I(qc,2,Vj).Dc(1)}else{if(a instanceof _.YJ){if(!b.json)throw _.lL();var nk=b.json;_.hL(["drive#remainingCount"],nk);var Ph=new wPc,mi=nk.nextPageToken;null!=mi&&_.w(Ph,2,Number(mi));_.w(Ph,1,Number(nk.remainingCount));var eg=Ph}else{if(a instanceof _.EG){if(!b.json)throw _.lL();var Fk=(new _.pB).Uw([pWc(this.H,b.json)])}else{if(a instanceof _.jK){if(!b.json)throw _.lL();
var Hp=(new _.pB).Uw(qWc(this.H,b.json)),Qh=_.vyc(new _.bL,Hp);var Eh=_.w(Qh,3,gNc(b.json))}else{if(a instanceof _.dK)var xn=FWc(a,b);else{if(a instanceof _.eK)var uj=DWc(this,a,b);else{if(a instanceof _.gJ)var yn=_.kL(this,a,b);else{if(a instanceof _.fK)var gm=_.kL(this,a,b);else{if(a instanceof _.gK)var Gk=IWc(this,b);else{if(a instanceof _.WD){if(!b.json)throw _.lL();var Cm=tWc(b.json),Po=new mPc;var Ip=_.I(Po,3,Cm);var rr=Cm.getKey();var Nm=_.I(Ip,4,rr)}else{if(a instanceof _.hK)var lm=EWc(a,
b);else{if(a instanceof _.JI){if(!b.json)throw _.lL();var tk=rUc(this.ma,b.json)}else{if(a instanceof _.HG){if(!b.json)throw _.lL();var dp=uWc(b.json),Up=new _.TK;Up.FT().set(dp.getId(),dp);var Kq=Up}else{if(a instanceof _.Buc){if(!b.json)throw _.lL();for(var Nr=b.json,ku=new sQc,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":_.gk(ku,2,Py);break;case "activities":var lu=WUc(Py);_.Kj(ku,1,lu)}}var Lq=
ku}else{if(a instanceof _.Duc)var Mq=IWc(this,b);else{if("undefined"!=typeof _.Huc&&a instanceof _.Huc)var sB=GWc(this,b);else{if(a instanceof _.Euc){if(!b.json)throw _.lL();var ND=new PQc}else{if(a instanceof _.Fuc){if(!b.json)throw _.lL();var px=JCc(b)}else{if(a instanceof _.TD){if(!b.json)throw _.lL();var Qy=b.json,qx=new _.gA;_.hL(["drive#settingList"],Qy);for(var rx=[],sx=Qy.items||[],$s=0;$s<sx.length;$s++){var at=tWc(sx[$s]);at&&rx.push(at)}var il=_.jlb(qx,rx)}else{if(a instanceof _.iA){if(!b.json)throw _.lL();
var Pr=zWc(this.O,this.Mg,b.json).Dc(1)}else{if(a instanceof _.DG){if(!b.json)throw _.lL();var Pl=xWc(this.O,this.Mg,b.json)}else{if(a instanceof _.Nuc){if(!b.json)throw _.lL();var tB=b.json;_.hL(["drive#teamDrive"],tB);var OD=tB.recursiveFolderCount,Ry=tB.recursiveFileCount,Li=new $Oc;var Sy=_.w(Li,1,Ry);var Nq=_.w(Sy,2,OD)}else{if(a instanceof _.Muc)var Vp=JWc(b);else{if(a instanceof _.Puc){if(!b.json)throw _.lL();var GG=vWc(b.json)}else GG=a instanceof _.yL?IWc(this,b):null;Vp=GG}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}Aa=Xa}qa=Aa}U=qa}S=U}N=S}L=N}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 EWc=function(a,b){if(!b.json){if(a instanceof _.GJ)return AWc({});throw _.lL();}return AWc(b.json)},IWc=function(a,b){if(!b.json)throw _.lL();a=pWc(a.H,b.json);return(new _.nK).Dc(1).setItem(a)},DWc=function(a,b,c){if(!c.json)throw _.lL();return UVc(CWc(a),b,c.json)},FWc=function(a,b){if(!b.json)throw _.lL();return qVc(b.json,a.Nh())},GWc=function(a,b){if(!b.json)throw _.lL();a=a.ta;var c=b.json;_.hL(["drive#about","drive#changeList"],c);b=new pJc;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));_.hL(["drive#changeList"],c);d=[];c=c.items||[];for(var e=0;e<c.length;e++){var f=a,h=c[e];_.hL(["drive#change"],h);var k=new _.aJ;k=_.w(k,1,Number(h.id));h.teamDriveId?(_.Ytc(k,h.teamDriveId),_.bJ(k,h.teamDriveId)):_.bJ(k,h.fileId);h.file?k.setItem(_.Uzc(f.H,h.file)):h.teamDrive&&k.setItem(pWc(f.O,h.teamDrive));h.deleted&&!k.getItem()&&_.kJ(k);d.push(k)}_.Kj(b,4,d)}return b},JWc=function(a){var b,c;if(!a.json)throw _.lL();
a=a.json;var d=a.result&&a.result.status;d=d&&KWc[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 NPc(MPc(LPc(new _.KPc,f.sourceId),f.fileCount),null!==(k=null===(h=f.unmovableFileReasons)||void 0===h?void 0:h.map(function(l){var p=new _.IPc;p=_.w(p,1,l.unmovableReason);return _.w(p,2,l.count)}))&&void 0!==k?k:[])})))&&void 0!==c?c:[];return HPc(GPc(FPc(EPc(new TM,gNc(a)),a.processedFileCount).Dc(d),a.result&&a.result.validationToken),
e)},HWc=function(a,b){var c=new pQc;if(_.fe(a,6).length){var d=[];IBc(_.fe(a,6),b.headers).forEach(function(e,f){var h=new _.euc;e=_.w(h,1,f).Jb(e);d.push(e)});_.Kj(c,1,d)}qQc(c,b.json?JSON.stringify(b.json):b.text);return c},KWc={movable:1,deadlineExceeded:2,exceedsSourceLimit:3,exceedsDestinationDepthLimit:4,exceedsDestinationSizeLimit:5,tooManyUnmovableFiles:6,tooHighProportionUnmovableFiles:7};
var MWc=function(a){var b=new _.Wo;if(a=a.getState()){var c=[];c.push("state");c.push("=");c.push(LWc[a]);_.LK(b,c.join(" "))}return b.toString()},NWc={},LWc=(NWc[1]="active",NWc[2]="archived",NWc);
var OWc=function(a,b,c,d){_.mL.call(this,b,c,a.pMa,d);this.ma=a;this.ha=new yIc(_.JK(c),b)};_.K(OWc,_.mL);
OWc.prototype.V=function(a,b,c){var d=this,e,f;try{return _.mL.prototype.V.call(this,a,b,c)}catch(U){}var h=0,k={},l="GET",p={},q=!1,r=!1;if(a instanceof _.uJ){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();_.Cj(a,4)&&(p.preFlightValidationToken=_.y(a,4));var z=hNc(a);k["content-type"]="application/json";q=r=!0;_.rK(this.H,[],[a.getId(),a.Fk()],this.O,k)}else if(a instanceof _.vJ){l="POST";
v="files/"+a.Ac()+"/authorize";p.appId=a.Nh();_.P(a,3)&&(p.propagate=!0);var A=a.te();r=!0;_.IK(p);_.rK(this.H,[],[a.Ac()],this.O,k)}else if(a instanceof _.yL)v="drives/"+a.getId(),l="PUT",z={},z=(z.removeSecureLinkUpdateForAllFiles=_.Q(a,2,!1),z),k["content-type"]="application/json",p.fields=fM(this.H,[],!0),A=a.te(),r=!0;else if(a instanceof _.Duc)l="POST",v="teamdrives/"+a.requestId,p.fields=fM(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 _.zJ)l="POST",v="workspaces",p.fields="kind,id,title,createdDate,modifiedDate,state",z=kNc(a),k["content-type"]="application/json",A=a.te(),r=!0;else if(a instanceof _.wJ)l="POST",v="files/"+a.getId()+"/copy",p.fields=_.quc({fields:this.Ng(c),Bq:_.uI(_.II(this.H)),EE:_.XI(this.H)}),p.convert=_.Q(a,4,!1),z=jNc(a),k["content-type"]="application/json",A=a.te(),a=_.fe(a,3).concat([a.getId()]),_.rK(this.H,[],a,this.O,k),r=!0,_.IK(p),_.GAc(this.H,p);else if(a instanceof _.AJ)l=
"DELETE",v="apps/"+a.Nh(),p.appId=a.Nh(),p.deleteAppData=!!_.P(a,2),A=a.te(),r=!0;else if(a instanceof _.BJ)l="DELETE",v="backups/"+a.getId(),h=9;else if(a instanceof _.CJ)l="DELETE",v="files/"+a.getId(),A=a.te(),r=!0,_.IK(p),_.GAc(this.H,p),_.rK(this.H,[],[a.getId()],this.O,k);else if(a instanceof _.DJ)l="DELETE",v="files/"+a.Ac()+"/permissions/"+_.y(a,2),A=a.te(),r=!0,_.IK(p);else if(a instanceof _.EJ)l="DELETE",v="files/"+a.Ac()+"/revisions/"+_.y(a,2),A=a.te(),r=!0,_.rK(this.H,[],[a.Ac()],this.O,
k);else if(a instanceof _.FJ)l="DELETE",v="teamdrives/"+a.getId(),A=a.te(),r=!0;else if(a instanceof _.VD)l="DELETE",A=a.getKey(),v="settings/"+_.y(A,2),_.pp(A)&&(p.namespace=KCc[_.pp(A)]),A=a.te(),r=!0;else if(a instanceof _.GJ)l="DELETE",v="workspaces/"+a.getId(),A=a.te(),r=!0;else if(a instanceof _.JJ)l="DELETE",v="files/trash",A=a.ud().te(),r=!0,_.GAc(this.H,p);else if(a instanceof _.LJ)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 _.RJ)v="backups/"+a.getId()+"/items",h=9,p.languageCode=EL(_.II(this.H));else if(a instanceof _.MJ)l="POST",v="apps",p.appId=a.Nh(),A=a.te(),r=!0;else if(a instanceof _.NJ)l="POST",v="files/"+a.Ac()+"/permissions",p.fields=_.XI(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,_.IK(p);else if(a instanceof _.zuc)h=8,l="POST",v=
"/v1/exports",k["content-type"]="application/json",z=_.fe(a,1).map(function(U){if(_.Q(d.H,89,!1)){var ha=_.Xxc(d.O,U);if(null!==ha)return{id:U,resource_key:{resource_key:ha}}}return{id:U}}),z={archiveFormat:null,archivePrefix:_.y(a,2),conversions:null,items:z,locale:null};else if(a instanceof _.YI||a instanceof _.OK||a instanceof _.iA||a instanceof _.DG)if(b=a instanceof _.YI?a.ud():a,_.qK(b)){h=10;l="POST";v="/v1/items";k["content-type"]="application/json";z={};var C=9==_.CK(this.H)?"WEB_MOBILE":
"WEB_DESKTOP",G={};G.applicationType=GIc(this.H);G.platformType=C;G.languageCode=EL(_.II(this.H));G.timeZone=(new _.Qt).j$();G.requestType="LIVE_REQUEST";a instanceof _.YI&&(C=a.getOptions())&&_.Q(C,10,!1)&&(G.requestType="BACKGROUND_REQUEST");if(b instanceof _.nf)if(_.OJ(b)){if(DIc(this.ha)){G.scenarioType="ONE_PICK";if(a=null===(f=null===(e=_.B(b,wEc,75))||void 0===e?void 0:_.B(e,xEc,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==_.AK(b)&&(DIc(this.ha)||(G.scenarioType="QUICK_ACCESS_FOR_SHARED_DRIVE"),z.contextFeature={type:"DRIVE_TEAM_DRIVE_ROOT_ID",stringValue:_.fe(b,33)[0]});_.Ml(b).length&&(z.itemType=FIc(b))}else _.PJ(b)?G.scenarioType="DRIVE_PEOPLE_WITH_ACTIONS":_.QJ(b)&&(G.scenarioType="DRIVE_PRIORITY");else b instanceof _.OK?(v="/v1/userfeedback",z.userFeedback=_.Oj(b,_.mHc,1).map(function(U){var ha=_.B(U,_.WL,2),Y={},oa={};oa.feedbackType=
rHc[ha.getType()];Y.item=oa;Y.clientInfo=G;switch(U.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=_.Oj(ha,_.WL,3).map(function(qa){var Aa={};Aa.itemId=qa.Ac();return Aa})}return Y})):b instanceof _.iA?G.scenarioType="DRIVE_WORKSPACES":b instanceof _.DG?(G.scenarioType=
"ITEMS_FOR_DRIVE_WORKSPACE",z.contextFeature=[{type:"GENERIC_TITLE",stringValue:b.getTitle()||""},{type:"DRIVE_WORKSPACE_ID",stringValue:b.Pp()||""},{type:"DRIVE_EMPTY_WORKSPACE",boolValue:_.P(b,5)}]):_.JAc(a);b instanceof _.OK||(z.maxSuggestions=b.Ei(),z.clientInfo=G)}else{A=b.te();r=!0;v="files";p.q=_.ixc(b);C=[];var H;(H=_.pK(this.H))&&_.Q(H,4,!1)?(H=_.va(this.Ng(c),this.Ng(c,b.O())),_.Da(H)):H=_.wa(this.Ng(c));var L=void 0,N=!1;0<_.Oj(b,_.Hl,5).length&&(L=_.y(this.H.ig(),50),N=!0);p.fields=lBc({fields:H,
Bq:_.uI(_.II(this.H)),b7:L||void 0,EE:_.XI(this.H),tAb:N});p.appDataFilter="NO_APP_DATA";0<_.Oj(b,_.zK,25).length&&(p.sources=_.axc(b));0<b.BB().length&&(p.spaces=_.bxc(b));a.Zn()&&(p.pageToken=a.Zn());(a=a.getOptions())&&_.ak(a,1,1E3)&&(p.maxResults=_.ak(a,1,1E3));_.Q(b,36,!1)&&(p.includeUnsubscribed=!0);_.y(b,43)&&(p.rawUserQuery=_.y(b,43));_.IK(p);p.includeItemsFromAllDrives=_.Q(b,66,!0);0<_.fe(b,33).length&&2==_.AK(b)&&(a=_.fe(b,33)[0],p.teamDriveId=a,C.push(a));p.corpora=_.Nwc[_.AK(b)];_.P(b,
18)&&(_.Ua(p,"corpora"),p.corpus="DOMAIN");a=_.Nl(b);H=_.Oj(b,_.Al,35);L=_.Oj(b,_.Al,38);C=C.concat(a.filter(function(U){return!_.Q(U,2,!1)}).map(function(U){return U.Za()})).concat(H.map(function(U){return U.Za()})).concat(L.map(function(U){return U.Za()}));_.rK(this.H,_.Oj(b,_.Jl,63),C,this.O,k);OBc(p,b.wc());_.HAc(this.H,p);_.IAc(this.H,p);_.B(b,_.Bea,64)&&(a=yEc(_.B(b,_.Bea,64)),a=_.mb(a,4),p.searchSessionData=a)}else if(a instanceof _.SJ){v="apps";switch(a.getType()){case 1:p.fields=PWc;break;
case 2:p.fields=QWc;break;case 4:p.fields=RWc;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.ru=!0}p.languageCode=EL(_.II(this.H));0<_.fe(a,3).length&&(p.appFilterExtensions=_.fe(a,3).join(","));0<_.fe(a,4).length&&(p.appFilterMimeTypes=_.fe(a,4).join(","));A=a.te();r=!0}else if(a instanceof
_.Auc)v="backups",h=9,p.languageCode=EL(_.II(this.H));else if(a instanceof _.iJ)v="changes",p.includeDeleted=_.Q(a,3,!0),p.includeSubscribed=_.Q(a,4,!0),p.maxResults=a.MQ(),p.startChangeId=_.y(a,1),p.fields=kBc({fields:this.Ng(c),b7:fM(this.H,_.fe(a,5)),Bq:_.uI(_.II(this.H)),EE:_.XI(this.H)}),p.appDataFilter="NO_APP_DATA",a.yc()||(p.filters="DRIVE_DATASERVICE"),A=_.fe(this.H.ig(),31),A.length&&(p.spaces=_.lf(A,function(U){return _.Eqc[U]}).join(",")),_.IK(p),p.includeCorpusRemovals=!0,p.includeItemsFromAllDrives=
!0,a.yc()&&(p.teamDriveId=a.yc()),A=a.te(),r=!0;else if(a instanceof _.TJ)b=a.ud(),v="files/"+b.getId()+"/permissions",p.fields=_.XI(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.Zn()&&(p.pageToken=a.Zn()),_.y(a,1)&&(p.maxResults=_.y(a,1)),A=b.te(),r=!0,_.IK(p),
_.HAc(this.H,p),_.IAc(this.H,p),_.rK(this.H,[],[b.getId()],this.O,k);else if(a instanceof _.UJ)p.fields=_.XI(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,
_.rK(this.H,[],[a.Ac()],this.O,k);else if(a instanceof _.VJ)l="POST",v="files/"+(_.y(a,1)||"")+"/migrateToDrive",_.P(a,3)&&(p.useDomainAdminAccess=!0),p.fields=_.quc({fields:this.Ng(c),Bq:_.uI(_.II(this.H)),EE:_.XI(this.H)}),p.fileId=_.y(a,1),_.Cj(a,4)&&(p.preFlightValidationToken=_.y(a,4)),z=iNc(a),k["content-type"]="application/json",q=r=!0,_.rK(this.H,[],[_.y(a,1)||"",_.y(a,2)||""],this.O,k);else if(a instanceof _.EG)v="teamdrives/"+a.nn()[0],p.fields=fM(this.H,a.O()),A=a.te(),r=!0;else if(a instanceof
_.Muc)l="POST",v="admin/files/migrateToTeamDrivePreFlight",_.P(a.request,3)&&(p.useDomainAdminAccess=!0),z=lNc(a),k["content-type"]="application/json",r=q=!0,_.rK(this.H,[],_.fe(a.request,1),this.O,k);else if(a instanceof _.jK)A=a.ud(),v="teamdrives",p.fields=oIc(this.H,A.O()),p.q=pIc(A),a.Zn()&&(p.pageToken=a.Zn()),(A=(A=a.getOptions())&&_.ak(A,1,1E3))&&(p.maxResults=A),A=a.ud().te(),r=!0;else if(a instanceof _.Nuc)v="teamdrives/"+a.yc(),p.fields="kind,id,recursiveFileCount,recursiveFolderCount",
r=q=!0;else if(a instanceof _.dK)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 _.gJ)l="PUT",v="files/"+a.getId(),p.fields=_.quc({fields:this.Ng(c),Bq:_.uI(_.II(this.H)),EE:_.XI(this.H)}),p.modifiedDateBehavior="DRIVE_UI",p.updateViewedDate=!!_.P(a,15),p.fileId=a.getId(),_.fe(a,9).length&&(p.addParents=_.fe(a,9).join(",")),_.fe(a,10).length&&(p.removeParents=_.fe(a,10).join(",")),
_.fe(a,31).length&&(p.addWorkspaces=_.fe(a,31).join(",")),_.fe(a,32).length&&(p.removeWorkspaces=_.fe(a,32).join(",")),null!=_.P(a,24)&&(p.confirmed=_.P(a,24)),p.languageCode=EL(_.II(this.H)),z=mNc(a),k["content-type"]="application/json",A=a.te(),r=!0,_.IK(p),this.W(a.getId(),p),_.P(a,36)?p.bypassMultiparentingCheck=!0:_.GAc(this.H,p),b=_.fe(a,9).concat(_.fe(a,10)),b.push(a.getId()),_.rK(this.H,_.Oj(a,_.Jl,38),b,this.O,k);else if(a instanceof _.fK)l="PUT",v="files/"+a.Ac()+"/revisions/"+_.y(a,2),
z=nNc(a),k["content-type"]="application/json",A=a.te(),_.rK(this.H,[],[a.Ac()],this.O,k);else if(a instanceof _.gK)v="teamdrives/"+a.getId(),null!=_.P(a,15)?(l="POST",v+="/"+(_.P(a,15)?"hide":"unhide")):(l="PUT",z=oNc(a),k["content-type"]="application/json"),p.fields=fM(this.H),A=a.te(),r=!0;else if(a instanceof _.hK)l="PUT",v="workspaces/"+a.getId(),p.fields="kind,id,title,createdDate,modifiedDate,state",z=pNc(a),k["content-type"]="application/json",A=a.te(),r=!0;else if(a instanceof _.WD)l="PUT",
z=_.B(a,_.op,1),A=z.getKey(),v="settings/"+_.y(A,2),(A=_.pp(A))&&(p.namespace=KCc[A]),z=LCc(z),k["content-type"]="application/json",A=a.te(),r=!0;else if(a instanceof _.JI)v="about",p.fields=_.XI(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=OCc(p.fields,this.H),p.fields=PCc(p.fields,this.H),A=a.te(),r=!0;else if(a instanceof _.mJ){h=11;l=a.Wz();v=a.getUrl();var S=_.y(a,5)||"";_.Oj(a,_.euc,2).forEach(function(U){k[U.getKey()]=
U.Za()});_.Oj(a,_.euc,4).forEach(function(U){p[U.getKey()]=U.Za()});_.P(a,7)&&(b.hKb=!0);_.P(a,8)&&(b.ru=!0);_.P(a,9)&&(b.EEa=!0)}else a instanceof _.Cuc?(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",_.rK(this.H,[],[b],this.O,k)):a instanceof _.eK?(k["content-type"]="application/json",l="POST",b=a.Ac(),v="files/"+b+"/updateCategoryMetadata",
A=a.te(),z={categoryMetadata:a.AV().map(function(U){var ha=_.Oj(U,_.AG,2).map(function(oa){return{id:oa.getId(),userId:oa.ks(),setBooleanValue:_.P(oa,3),setTextValue:_.y(oa,4),setTextValues:_.fe(oa,6),addTextValues:_.fe(oa,5),setLongTextValue:_.y(oa,7),setSelectionValue:_.y(oa,8),setSelectionValues:_.fe(oa,10),addSelectionValues:_.fe(oa,9),setIntegerValue:_.y(oa,11),setIntegerValues:_.fe(oa,13),addIntegerValues:_.fe(oa,12),setUserValue:_.y(oa,14),setUserValues:_.fe(oa,16),addUserValues:_.fe(oa,15),
setDateStringValue:_.y(oa,17)}}),Y={categoryName:U.Om()};ha.length?Y.categoryAttributeValueDeltas=ha:_.fe(U,4).length?Y.revertAttributeIds=_.fe(U,4):_.P(U,3)&&(Y.removeCategory=_.P(U,3));return Y})},_.rK(this.H,[],[b],this.O,k)):a instanceof _.XJ?(h=13,v=_.uI(_.II(this.H))?"/v2/people/public":"/v2/people",p.person_id=a.nn(),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"],_.uI(_.II(this.H))||(p["core_id_params.enable_private_names"]=!0)):a instanceof _.Iuc?(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=EL(_.II(this.H))):a instanceof _.CG?(h=12,v="/v1/"+a.getName(),k["content-type"]="application/json",p.$outputDefaults=!0,p.languageCode=
EL(_.II(this.H))):a instanceof _.xJ?(k["content-type"]="application/json",l="POST",v="drives/"+a.yc()+"/changeCategoryReferences",A=a.te(),r=!0,p.fields=fM(this.H,[157],!0),z={},b=_.Oj(a,_.fl,2),b.length&&(z.addCategoryReferences=b.map(function(U){return{category:U.Om()}})),a=_.Oj(a,_.fl,3),a.length&&(z.removeCategoryReferences=a.map(function(U){return U.Om()}))):a instanceof _.HG?(v="workspaces/"+a.nn()[0],p.fields="kind,id,title,createdDate,modifiedDate,state",A=a.te(),r=!0):a instanceof _.Buc?
(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=_.pK(this.H))&&_.Q(a,13,!1)&&(z.filter="actor.type_case:(USER IMPERSONATION ADMINISTRATOR SYSTEM) actor.system.type:MULTIPARENTING_MIGRATION")):a instanceof _.Euc?(h=8,l="POST",v="/v1/exports/"+a.H+":cancel"):a instanceof _.Fuc?(h=8,v="/v1/exports/"+
a.H):"undefined"!=typeof _.Huc&&a instanceof _.Huc?(v="changes",p.fields="kind,largestChangeId",_.IK(p),p.includeItemsFromAllDrives=!0,a.teamDriveId&&(p.teamDriveId=a.teamDriveId),A=a.H,r=!0):a instanceof _.TD?(v="settings",A=_.fe(a,3),p.namespace=MCc(A),A=a.te(),r=!0):a instanceof _.Puc?(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=MWc(a.request),(A=a.request.Dw())&&
1==A.getType()&&(p.orderBy="title"),A=a.request.te(),r=!0):a instanceof _.YJ?(v="changes/getRemainingCount",p.pageToken=_.y(a,2),_.Cj(a,3)&&(p.supportsTeamDrives=!0,p.includeItemsFromAllDrives=!0,p.teamDriveId=a.yc()),A=a.te()):a instanceof _.tJ?(k["content-type"]="application/json",l="POST",v="files/"+a.Ac()+"/sendAccessRequest",z={},q=!0):_.JAc(a);r&&_.KAc(c,p);0!=h||q||A&&_.y(A,1)||_.ZK(this.eg,74438989);return _.LAc(this,h,v,p,k,l,A,z,S)};
OWc.prototype.W=function(a,b){a=this.ma.wm.H(a);b.expectedParentIds=a?a.wk().join(","):[]};
var PWc=NCc("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"),QWc=
NCc("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"),
RWc=NCc("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 SWc=function(a,b,c,d,e,f,h,k,l,p,q,r,v,z,A,C,G,H,L,N,S,U,ha){this.moa=_.ai();this.lfa=new _.fyc;var Y=new _.xyc(this.eK.bind(this),function(){return S("w8KrJc")}),oa=new lUc(b.wm),qa=new cUc(Y);c=new VTc(b,f,new QTc(d,e,c),h,this.moa.promise,k,l,c,S);d=new kUc(b,p,q,r,v,d,e,C,k);this.O=new _.iyc(a,z);z=new OWc(b,a,k,U);this.xsa=new BWc(k,a,A,C);this.H=fNc(a,new _.Lzc(this.O,this.lfa,z,this.xsa,G,H,L),H,A,N,b.wm,this.lfa,this.moa.promise,L||void 0);this.moa.resolve(ha?ha:new _.jzc(new mUc,oa,qa,
this.H,Y,c,d,a))};SWc.prototype.eK=function(){return _.Oa(this.H,function(a){return a.eK()})};var VQc=function(a){var b=new Map,c=Date.now();_.La(a.H,function(d,e){d=YFc(d);d.length&&b.set(e,d.map(function(f){return f?c-f:null}))});return b};
var TWc=function(a,b){var c=this;this.context=a;this.Mg=b;this.ka=null;this.wR=0;this.ma=this.active=!1;this.H=this.va=null;this.W={};this.Ha=this.Fa=!1;this.eg=a.tk();this.ha=_.ai();this.O=a.Nc;this.Ka=_.pK(this.O)||new _.Zvc;b=_.FL(this.O);this.Ba=new _.Yxc(_.ak(b,2,37500),_.ak(b,3,6E5));this.ta=a.qQ;_.La(UIc,function(d){c.W[d]=[]});this.V=a.Nf.Jt;nM(a.Sj,["hVFf7","T8oKm","BNEDtc"],function(){c.log("Initializing: loaded from local dump");c.initialize()});nM(a.Sj,["hVFf7","T8oKm","mrK8ic"],function(){c.log("Initializing: loaded from sdk backfill");
c.initialize()});nM(a.Sj,["mrK8ic","BNEDtc"],function(){c.log("Updating: sdk backfill complete");c.kL().Dg(_.Tf)})};_.g=TWc.prototype;_.g.initialize=function(){var a=this;this.Fa||(this.Fa=!0,eN(this.context).addCallback(function(b){a.ta.initialize().mg(function(){a.ka=b;a.setActive(!0)},function(c){c&&DFc(a.context.Rf(),"drive.ds.sync.storage.LiveDumpUpdater","Error initializing dump storage",_.qJ(c));a.log("Error initializing dump storage");a.eS()})}))};
_.g.isInitialized=function(){return!!this.ka||this.ma};_.g.$ma=function(a){this.active&&(this.wR+=a,this.wR>_.ak(_.FL(this.O),1,500)&&this.update(3))};_.g.setActive=function(a){if(this.isInitialized()&&this.active!==a){var b=this.context;a&&(b.XQ().eK()||0<b.Nf.uI.Fna||b.Mj().Se()||b.Ck().Se())||((this.active=a)?(this.ha.resolve(),this.H||this.kL().Dg(_.Tf)):(this.ha=_.ai(),_.n.clearTimeout(this.va)))}};_.g.eS=function(){this.ma=!0};_.g.CWa=function(){return this.H?this.H.promise:_.Yh()};
_.g.kL=function(){var a=this;if(this.H)return this.H.promise;this.H=_.ai();_.ci(this.H.promise,function(){a.H=null});var b=this.eg.H(106021)||void 0;this.ha.promise.then(function(){return $Mc(a.context.uD)}).then(function(c){var d=!c;return a.ma?d:_.$h([UWc(a,3,d,void 0,void 0,b),UWc(a,0,d,void 0,!0,b),UWc(a,1,d,void 0,!0,b),UWc(a,5,d,void 0,!0,b),UWc(a,6,d,void 0,!0,b)]).then(function(){return d},function(e){e=new _.Dc("Failed to update dump",void 0,_.qJ(e));return _.Zh(e)})},function(){return _.Zh(Error("tg"))}).then(function(c){a.H.resolve(c);
b&&(c=KFc(b),_.w(c,2,!0),b.Aj())},function(c){a.H.reject(c);b&&(c=KFc(b),_.w(c,2,!1),b.Aj())});return this.H.promise};_.g.update=function(a,b){var c=this,d=new _.di,e=this.eg.H(106021)||void 0;e&&(pFc(KFc(e),_.QK(_.Ctc,a)),d.then(function(){var f=KFc(e);_.w(f,2,!0);e.Aj()},function(){var f=KFc(e);_.w(f,2,!1);e.Aj()}));this.ha.promise.then(function(){return $Mc(c.context.uD)}).then(function(f){f=!f;c.ma?d.callback():_.gi(UWc(c,a,f,b,void 0,e),d)});return d};
var UWc=function(a,b,c,d,e,f){var h=_.fa(a.W[b]);if(h){if(h.encrypt===c&&1<a.W[b].length)return h.wf.an();var k=new _.di;_.fi(h.wf,function(){_.gi(a.Ku(b,c,d,e,f),k)})}else k=a.Ku(b,c,d,e,f);var l={encrypt:c,wf:k};a.W[b].push(l);_.fi(k,function(){_.ua(a.W[b],function(p){return l===p})});k.Sg(function(p){a.ta.O.Tf()?a.eS():p instanceof _.Dc&&(p=p.O||null,p instanceof _.zI&&"InvalidStateError"==p.getName()&&p.message&&-1<p.message.indexOf("The database connection is closing.")&&a.eS());return null});
return k};
TWc.prototype.Ku=function(a,b,c,d,e){var f=this,h=new _.di;this.ha.promise.then(function(){if(3===a)_.gi(VWc(f,c||!1,b,e),h);else{switch(a){case 0:var k=eRc(f.context.OP);break;case 1:k=f.context.LZ.xr();break;case 5:k=WWc(f.context.dE);break;case 6:k=IKc(f.context.Nf.wq);break;default:h.Jd("Invalid data type to write to storage.");return}if(k){var l=_.Oj(_.FL(f.O),DL,11)[0].getKey();!l&&b?(f.log("Skipping dump update, encrypted and no key"),h.callback()):XLc(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 VWc=function(a,b,c,d){_.n.clearTimeout(a.va);a.va=_.n.setTimeout((0,_.M)(a.Qa,a),a.Ba.Za());if(b&&0===a.wR)return _.ii();a.wR=0;b=_.Oj(_.FL(a.O),DL,11)[0].getKey();if(!b&&c)return a.log("Skipping dump update, encrypted and no key"),_.ii();for(var e=[],f=_.m(XWc(a)),h=f.next();!h.done;h=f.next())h=YWc(a,h.value),h.length&&e.push(XLc(a.ta,c?b:null,h,d));var k=new _.di;Promise.all(e).then(function(){a.Ha&&a.context.uD.set(YMc,!0);k.callback()},function(l){return void k.Jd(l)});return k},XWc=function(a){var b,
c,d,e=Object.values(THc).filter(function(f){return 0<f&&!ZWc.includes(f)});(null===(b=_.pK(a.context.Nc))||void 0===b?0:_.Q(b,17,!1))?(null===(c=a.V.H)||void 0===c?0:c.VE)||null===(d=a.V.O)||void 0===d||!d.VE?e.push(2):e.push(5):e.push(2);return e};TWc.prototype.Qa=function(){_.EI(this.Ba);this.update(3,!0)};
var YWc=function(a,b){switch(b){case 1:return[$Wc(a)];case 2:return b=a.V.H,a=SHc(aXc(a,b),2),b&&QHc(a,b.ZG()),[a];case 5:return b=a.V.O,a=SHc(aXc(a,b),5),b&&(QHc(a,b.ZG()),b=OJc(b),_.Ij(a,14,b)),[a];case 3:return bXc(a);case 4:return cXc(a);default:throw new _.Dc("Unsupported CacheType");}},$Wc=function(a){for(var b={},c=[],d=XJc(a.V,!0),e=!0,f=0;f<d.length;f++){var h=d[f],k=h.qy(),l=dXc(a,oCc(k));k=l.length;var p=0<k?l[k-1]:null;_.Ia(l,function(q){b[q.getId()]=q});if(0<k||h.H)l=KHc(new $L,h.ud()),
h.H||(_.w(l,2,k),_.I(l,3,p),e=!1),c.push(l)}d=_.Qa(b);a.log("Exporting "+d.length+" initial dump items.");return QHc(SHc(PHc(NHc(OHc(RHc((new aM).Du(a.context.ao()),_.JK(a.Mg)),a.ka.TQ(null)),eXc(d)),c),1),!e)},aXc=function(a,b){var c=b?b.qy():[];c=dXc(a,_.Qa(pCc(c)));a.log("Exporting "+c.length+" secondary dump items.");c.length>_.ak(_.FL(a.O),5,2E4)&&(b&&qM(b,!1),c=[]);c=NHc(new aM,eXc(c));var d=new xCc;(a=a.V.H)&&a.VE&&(a=a.qy(),_.w(d,3,a.length));a=_.I(c,11,d);b&&QHc(a,b.ZG());return a},bXc=function(a){var b=
[],c=a.ka;a.V.XV().forEach(function(d){var e=c.TQ(d.yc());if(e){var f=dXc(a,oCc(d.qy()));a.log("Exporting "+f.length+" TD dump items for: "+d.yc());e=QHc(SHc(OHc(NHc(new aM,eXc(f)),e),3),d.ZG());d=KHc(new $L,d.ud());PHc(e,[d]);b.push(e)}});return b},cXc=function(a){var b={},c=[];a.context.Nf.XV().forEach(function(d){1===d.EJ()&&null==_.P(d.ud(),6)&&(oCc(d.qy()).forEach(function(e){b[e.getId()]=e}),d=LHc(KHc(new $L,new _.nf),d.ud()),c.push(d))});return[QHc(SHc(PHc(NHc(new aM,eXc(Object.values(b))),
c),4),!1)]},dXc=function(a,b){b=NBc(b);_.P(a.O,67)&&(b=fXc(b));_.XI(a.O)&&(_.Q(a.Ka,9,!1)?LKc(a.context.Nf.wq,b)&&(_.ZK(a.eg,179490965),a.log("b/179490965 Unexpected people data when writing to disk cache.","warning"),b=JKc(a.context.Nf.wq,b)):b=JKc(a.context.Nf.wq,b));return b.filter(function(c){return 4!==c.sv()})},fXc=function(a){var b=[];a=_.m(a);for(var c=a.next();!c.done;c=a.next())c=c.value,CBc(c)?(c=c.clone(),mBc(c,BBc),b.push(c)):b.push(c);return b},eXc=function(a){return a.map(function(b){return b.clone()})};
TWc.prototype.log=function(a,b){this.context.Rf().log("drive.ds.sync.storage.LiveDumpUpdater",a,void 0===b?"info":b)};TWc.prototype.PDa=function(){this.Ha=!0};var ZWc=[2,5];
var gXc=function(){};_.g=gXc.prototype;_.g.setActive=function(){};_.g.eS=function(){};_.g.update=function(){return _.ii()};_.g.CWa=function(){return _.Yh()};_.g.kL=function(){return _.Yh()};_.g.$ma=function(){};_.g.PDa=function(){};
var BL=function(a,b,c,d){_.Di.call(this);var e=this;this.Aa=a;this.jw=c;this.rootId=null;this.Fa=!0;this.ha=null;this.ma=[];this.va=d||new _.Twc;this.Nc=b.clone();(a=_.pK(this.Nc))&&_.Q(a,1,!1)&&_.MI(this.Nc,28);this.Mg=new _.Xwc(this.Nc);this.xm=new yIc(_.JK(this.Mg),this.Nc);hXc(this);this.wX=new _.Gn;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.KZ=new _.di;this.Ba=new _.zxc(_.DK(this.Nc),_.Q(this.Nc.ig(),
52,!1));this.connectionState=new _.sxc(_.DK(this.Nc)?3:1,!_.Q(this.Nc.ig(),52,!1));this.eg=_.Pxc(this.Nc,this.Ba,this.connectionState,this.va,this.wX.promise,this.jw);this.mfa=new fJc(this.eg);this.YP=new _.di;this.log("Enabled experiments: "+this.tk().W.W);iXc(this)};_.K(BL,_.Di);BL.prototype.getEnvironment=function(){return this.jw};BL.prototype.XR=function(){this.Rf().info("drive.ds.sync.ThinContext","Notified of page stable.");_.n.clearTimeout(this.rb);this.wX.resolve()};
var iXc=function(a){var b=function(){a.Fu().Dg(_.Tf)},c=a.Aa;(c=c&&_.yc(c,_.hm))?_.xi(c,"w",b):_.Htc()||_.xi(_.n,"unload",b)};BL.prototype.Fu=function(){this.eg.O(106005);OFc(this.eg);var a=this.ma.map(function(b){return b()});_.pa(this.ma);return _.QI(a).then()};var jXc=function(a,b){a.ma.push(b)};_.g=BL.prototype;_.g.Rf=function(){return this.va};_.g.Du=function(a,b){"string"===typeof a&&null===this.rootId&&(this.rootId=a,this.KZ.callback(a),a.length&&this.o4a(a,b||null))};_.g.o4a=function(){};
_.g.ao=function(){return this.rootId};_.g.tk=function(){return this.eg};var kXc=function(a){if(!a.ha)throw Error("ug");return a.ha},lXc=function(a,b){a.ha=b};BL.prototype.JB=function(){return this.Fa||this.connectionState.isConnected()};BL.prototype.Mj=function(){return this.Ba};BL.prototype.Ck=function(){return this.connectionState};BL.prototype.DNb=function(a){this.YP.callback(a)};
var hXc=function(a){var b=a.Nc.ig();0===_.fe(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(_.FL(a.Nc),9,!1))if(b=_.Oj(_.FL(a.Nc),DL,11),0<b.length){if(!_.y(b[0],1)||!b[0].getKey()&&!_.DK(a.Nc)&&!_.Q(a.Nc,10,!1))throw Error("wg");}else _.w(_.FL(a.Nc),9,!1),a.log("Disabling IndexedDB support, missing configuration.");
if(!_.Q(_.FL(a.Nc),9,!1)&&(_.DK(a.Nc)||_.Q(a.Nc,10,!1)))throw Error("xg");var c=_.II(a.Nc);b=!(!c||!_.uI(c));c=c&&_.BK(c)||"";if(!b&&!c)throw Error("yg");b&&_.Lj(a.Nc,44);_.Oj(a.Nc,_.nf,44).forEach(function(d){try{BIc(a.xm,d)}catch(e){if(e instanceof _.Dc&&(d=e.Tg)&&3===d.Ws())throw Error("zg");throw e;}})};BL.prototype.nJ=function(a){this.dispatchEvent(new _.Ec(new _.Dc(void 0,a)))};BL.prototype.log=function(a){this.Rf().info("drive.ds.sync.ThinContext",a)};
var mXc=function(a,b){this.H=a;this.Je=b};
var nXc=new Set([5,4,1,6,2]),oXc=new Map([[3,1],[7,1],[2,2],[4,2],[5,3],[1,4],[6,5]]),pXc=function(a,b,c){_.Di.call(this);this.ha=a;this.V=b;this.W=c;this.EF=new Map;this.O=new Map;this.status=6;this.H=null};_.K(pXc,_.Di);
pXc.prototype.ZP=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())&&_.pp(q))&&f.add(q)});[].concat(_.Ad(f.values())).forEach(function(q){return void c.push(q)})}if(c.length){var h=nXc.has(b),k=new Map;c.forEach(function(q){k.set(q,new Map)});a.forEach(function(q){var r=q.getKey(),v=r&&_.pp(r);r=r&&_.y(r,2);v=k.get(v);r&&v&&v.set(r,qXc(q))});var l=0,p=0;[].concat(_.Ad(k.keys())).forEach(function(q){var r=k.get(q),v=e.EF.get(q);v?h&&
(r.forEach(function(z){var A=z.getKey();(A=v.get(A&&_.y(A,2)))&&_.Zj(z,A)||l++}),[].concat(_.Ad(v.values())).forEach(function(z){z=z.getKey();r.has(_.y(z,2))||p++}),e.EF.set(q,r),e.O.set(q,b)):(l+=r.size,e.EF.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,oM(this.V,"px2C2c");oM(this.V,"rkYxSd")}(l||p)&&rXc(this,!h)}};
pXc.prototype.OG=function(){return 0<this.EF.size};var rXc=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 _.ti("WPi0i"))};pXc.prototype.put=function(a){var b=a.getKey(),c=b&&_.pp(b);b=b&&_.y(b,2);if(c&&b&&(c=this.EF.get(c))){var d=c.get(b);a=qXc(a);d&&_.Zj(a,d)||(c.set(b,a),rXc(this))}};pXc.prototype.remove=function(a){var b=a&&_.pp(a);a=a&&_.y(a,2);b&&a&&(b=this.EF.get(b))&&b.delete(a)&&rXc(this)};
var WWc=function(a,b){var c=[];(b||[].concat(_.Ad(a.EF.keys()))).forEach(function(e){(e=a.EF.get(e))&&[].concat(_.Ad(e.values())).forEach(function(f){return void c.push(f.clone())})});b=b?b.filter(function(e){return a.EF.has(e)}):[].concat(_.Ad(a.EF.keys()));var d=new sGc;_.Kj(d,1,c);_.Ij(d,2,b);return d};
pXc.prototype.IG=function(a){var b=this,c=WWc(this,a),d=new _.gA;d.Dc(this.status);_.jlb(d,_.Oj(c,_.op,1));_.I(d,4,c);var e=0;a.forEach(function(f){f=b.O.get(f);oXc.has(f)&&Infinity>oXc.get(f)&&(e=f)});return new mXc(d,e)};var qXc=function(a){a=a.clone();a.Pg()||a.Jb("");return a};
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var sXc=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},uXc=function(a,b){return tXc(a[b])+(tXc(a[b+1])<<8)+(tXc(a[b+2])<<16)+(tXc(a[b+3])<<24)},tXc=function(a){return 127<a?a-256:a};
var CL=function(a,b,c,d,e,f){BL.call(this,a,b,c,d);var h=this;this.Ta=_.ai();this.ot=new uM;this.W=null;this.O=_.ai();this.Ha=new _.di;this.X5=null;this.ofa=new aLc;this.V=null;this.$a=_.ai();this.ta=new _.di;this.OF=new HLc;this.Ez=new kLc;this.Vga=new hLc;this.U$=new _.Gn;this.Ka=!1;this.nfa=new _.Gn;this.H={};this.ka=null;this.Ib=new _.Ye;this.Ma(this.Ib);this.Sj=e?e:new IJc(this.Rf());this.tk().W.O=this.Sj;this.IL=_.Q(_.FL(b),9,!1)&&QCc()?vXc(this,b):null;this.zv=new rIc(EL(_.II(b)));this.uD=
wXc(this,this.IL);this.qQ=xXc(this,this.IL,b);this.Nf=new iN(this,this.Mg);this.Js=yXc(this);(a=(a=_.B(this.Nc,_.hl,12))&&a.getId())&&this.Du(a,6);this.OP=new dRc(this.Nc,this.Nf.wq,this.Sj,this.Rf(),this.Js);this.LZ=new jRc(this.Rf(),this.Sj,this.Js);this.dE=new pXc(this.Rf(),this.Sj,this.Js);this.vI=new YIc(this.Tm(),this.Rf(),function(k){return void h.nJ(k)});this.nz=_.Q(this.Nc.ig(),52,!1)?new _.$K(this.Ck(),this.Tm(),this.Rf(),this.tk()):null;nM(this.Sj,["mrK8ic"],function(){h.$a.promise.then(function(){PRc(h,
h.V)})});this.tMa=new DLc(this.Nc);this.ZA=new _.qyc(this.Nc,this.Nf.wm);this.ysa=new MTc(this);this.W5=new eLc(this.O.promise,this.Tm());this.kb=new iLc(this.Tm(),this.W5);this.pfa=new zLc(this.O.promise,this.Tm(),this.Rf(),this.Nc);this.Qa=new SWc(this.Nc,this.Nf,this.nJ.bind(this),this.W5,this.kb,this.Js,this.ofa,this.Mg,this.ao.bind(this),this.ysa,this.LZ,this.dE,this.pfa,this.OF,this.Rf(),this.tMa,this.ZA,this.vI,this.nz,this.Mj(),this.Vob.bind(this),this.tk(),f);this.Ta.resolve(this.Qa);this.tJa=
new wTc(this);nM(this.Sj,["BNEDtc"],function(){return h.nfa.resolve()});jXc(this,function(){h.Js.eS();return _.Yh()})};_.K(CL,BL);
var vXc=function(a,b){var c=_.BK(_.II(b)),d=_.CK(b),e=function(){},f=_.Oj(_.FL(b),DL,11);f=f[0]&&_.y(f[0],1);var h=new sMc(c,d,_.ak(_.FL(b),10,0)||0,f||"",_.JK(a.Mg));_.DK(b)?c=NMc(c,d).then(function(l){return l?l:h}):_.Q(b,10,!1)&&0<_.ak(_.FL(b),8,432E6)?(b=zXc(a,c),c=NMc(c,d,b).then(function(l){return l&&(e=function(p){return p.Pl(h).Dg(function(){return null})},!l.ha)?l:h})):c=_.Yh(h);var k=new CM(c,a.Rf(),a.tk());k.initialize().then(function(){return e(k)},function(){return null});return k},zXc=
function(a,b){var c=_.ak(_.FL(a.Nc),8,432E6);if(!_.DK(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+=uXc(b,e),h.b+=uXc(b,e+4),h.c+=uXc(b,e+8),sXc(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+=uXc(b,e+4);h.a+=uXc(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+=uXc(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=sXc(h);return d.call(a,b)%c}};CL.prototype.az=function(a){var b=this;return this.IL?this.IL.Tf()?_.Zh(Error("Ag`"+zMc(this.IL))):$Mc(this.uD).then(function(c){var d=b.IL,e=[];e.push(b.Js.CWa());e.push(a?d.Pl():JMc(d));if(a===c)return _.$h(e).then(function(){return!1});!1===a&&(e.push(yMc(d)),(c=b.ao())&&e.push(b.uD.Du(c)));return _.$h(e).then(function(){return b.uD.az(a)},function(){return!1})}):_.Zh(Error("Bg"))};
var xXc=function(a,b,c){var d=null;b&&(d=new RLc(b,c,function(e){a.nJ(e)},a.tk()),d.initialize());return d},wXc=function(a,b){var c=new ZMc(b||void 0);c.ao().then(function(d){d&&a.Du(d,5)});b&&($Mc(c).then(function(d){a.Mj().az(d)}),_.$h([b.initialize(),a.wX.promise]).then(function(){AXc(a,c)},function(){}));return c},AXc=function(a,b){cNc(b).then(function(c){(!c||c<Date.now()-864E5)&&QMc(_.BK(_.II(a.Nc)),_.CK(a.Nc),a.Rf()).then(function(d){d&&(d=Date.now(),b.set(XMc,d))},function(){})})},yXc=function(a){if(!a.qQ)return new gXc;
var b=new TWc(a,a.Mg);a.Ib.listen(a.Mj(),"Bb",function(c){return void b.setActive(!c.Se())});a.Ib.listen(a.Ck(),[].concat(_.Ad(Object.values(_.pC))),function(){return void b.setActive(a.Ck().isConnected())});return b};CL.prototype.hY=function(a){this.X5=a;this.Ha.callback(a)};var eN=function(a){return a.Ha.an()},UQc=function(a){return a.IL?a.IL.Tf():null},BXc=function(a,b){a.Sj.H("NSockf")?oM(a.Sj,b):nM(a.Sj,["NSockf"],function(){oM(a.Sj,b)})};
CL.prototype.o4a=function(a,b){this.log("Setting Root ID: "+a);a&&(this.ot.Du(a),this.xm.Du(a),6!==b&&1!==b||this.uD.Du(a),BXc(this,"jroI5d"))};CL.prototype.DVa=function(){return this.ta.an()};var PRc=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),BXc(a,"T8oKm")))},oRc=function(a){if(!a.W)throw Error("Cg");return a.W};_.g=CL.prototype;_.g.XQ=function(){return this.Qa};_.g.Tm=function(){return this.Ta.promise.then(function(a){return a.moa.promise})};
_.g.ODa=function(){this.Ka||(this.Ka=!0,this.U$.resolve(),oM(this.Sj,"aU7Ts"))};_.g.JB=function(){throw Error("Dg");};_.g.Vob=function(a){this.dispatchEvent(a)};var CXc=function(a,b){cTc(a.Nf,b)},DXc=function(a,b,c){a.H[b]=c},NQc=function(a){a.ka||(a.ka=new qLc(a.O.promise,a.Tm(),a.Rf()));return a.ka};
var mN=function(a,b,c){_.Di.call(this);var d=this;this.Fa=a;this.rb=b;this.va=_.ai();this.Ba=this.channel=this.clientId=null;c.then(function(e){return EXc(d,e)})};_.K(mN,_.Di);var EXc=function(a,b){a.clientId=b.clientId;a.channel=b.channel;a.Ba=b.H;gM(a.channel,a.Fa,function(c){c=QIc(c);a.C$(c.O,!(!c.data||!c.H),c.data,c.error)});a.log("Service initialized: "+a.Fa);a.va.resolve()};mN.prototype.C$=function(){};
mN.prototype.send=function(a,b,c,d){var e=this,f=_.ai();this.va.promise.then(function(){var h=e.channel;hM(h,e.Fa,MIc(new LIc(e.clientId,a,b,d),h.W),function(k){return void FXc(k,a,f,c||function(){})})});return f.promise};var FXc=function(a,b,c,d){a=QIc(a);a.data?c.resolve(d(a.data,a.H)):(a.error?d=a.error:(d=new _.Cc,_.cJ(d,2),_.dJ(d,6),_.w(d,21,"Worker["+b+"]: An invalid response was received")),c.reject(new _.Dc(void 0,d)))};mN.prototype.log=function(a){this.Ba&&this.Ba.info(this.rb,a)};
var GXc=function(a,b,c,d){this.clientId=a;this.channel=b;this.H=c;this.O=d};
var nN=function(a,b){_.O.call(this);this.V=a;this.va=b;this.Ka=this.LU()};_.K(nN,_.O);nN.prototype.registerService=function(a){var b=this;gM(a,this.V,function(c){return b.Fw(c)})};
nN.prototype.Fw=function(a){var b=this;a=NIc(a);var c=a.H,d=this.Ka[a.method],e=null;if(d)try{var f=d(a);if(f instanceof OIc)return PIc(f,c);if(f.then)return f.then(function(h){return PIc(h,c)},function(h){h=_.eJ(h);return PIc(b.jd(void 0,h),c)})}catch(h){e=_.qJ(h)}f=new _.Cc;_.cJ(f,2);_.dJ(f,3);_.mq(f,this.V+":"+a.method+": "+(e?e.message:"unsupported method"));e&&e.stack&&_.w(f,20,e.stack);return PIc(this.jd(void 0,f),c)};
nN.prototype.jd=function(a,b,c){if(a&&!b)return new OIc(a,void 0,c);a=_.eJ(b);return new OIc(void 0,a,c)};nN.prototype.update=function(a,b,c,d){(a=this.va.channels[a]||null)&&hM(a,this.V,PIc(this.jd(c,d,b),a.W))};
var HXc=function(){this.channels={};this.H=this.O=this.V=0},IXc=function(a,b){var c=a.V++;a.channels[c]=b;a.O++;a.H=Math.max(a.H,_.Pa(a.channels));return c},JXc=function(a,b){var c=a.channels[b];return c?(delete a.channels[b],c):null};
var KXc=function(a,b){nN.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.pfa;this.W=NQc(this.context);this.ka=this.context.W5};_.K(KXc,nN);
KXc.prototype.LU=function(){var a=this,b={};return b["4.1"]=function(c){var d=c.clientId+":"+c.requestId;c=AL(c.args[0],!!c.H,_.nf);return a.ji(d,c)},b["4.9"]=function(c){var d=c.clientId+":"+c.requestId;c=AL(c.args[0],!!c.H,_.wI);return a.ji(d,c)},b["4.2"]=function(c){var d=c.clientId+":"+c.requestId;c=AL(c.args[0],!!c.H,_.xA);return a.ji(d,c)},b["4.10"]=function(c){var d=c.clientId+":"+c.requestId;c=AL(c.args[0],!!c.H,_.EG);return a.ji(d,c)},b["4.3"]=function(c){var d=c.clientId+":"+c.requestId;
c=AL(c.args[0],!!c.H,_.nf);return a.kk(d,c)},b["4.11"]=function(c){var d=c.clientId+":"+c.requestId;c=AL(c.args[0],!!c.H,_.wI);return a.kk(d,c)},b["4.4"]=function(c){var d=c.clientId+":"+c.requestId;c=AL(c.args[0],!!c.H,_.xA);return a.kk(d,c)},b["4.12"]=function(c){var d=c.clientId+":"+c.requestId;c=AL(c.args[0],!!c.H,_.EG);return a.kk(d,c)},b["4.5"]=function(c){var d=c.clientId+":"+c.requestId,e=AL(c.args[0],!!c.H,_.xA);c=AL(c.args[1],!!c.H,_.xA);return a.SY(d,e,c)},b["4.6"]=function(c){var d=c.clientId+
":"+c.requestId,e=AL(c.args[0],!!c.H,_.EG);c=AL(c.args[1],!!c.H,_.EG);return a.SY(d,e,c)},b["4.7"]=function(c){return a.DF(c)},b["4.8"]=function(c){return a.DF(c)},b["4.13"]=function(c){var d=c.clientId+":"+c.requestId;c=AL(c.args[0],!!c.H,_.kA);return a.ji(d,c)},b["4.14"]=function(c){var d=c.clientId+":"+c.requestId;c=AL(c.args[0],!!c.H,_.HG);return a.ji(d,c)},b["4.15"]=function(c){var d=c.clientId+":"+c.requestId;c=AL(c.args[0],!!c.H,_.kA);return a.kk(d,c)},b["4.16"]=function(c){var d=c.clientId+
":"+c.requestId;c=AL(c.args[0],!!c.H,_.HG);return a.kk(d,c)},b["4.18"]=function(c){var d=c.clientId+":"+c.requestId;c=AL(c.args[0],!!c.H,_.QG);return a.ji(d,c)},b["4.19"]=function(c){var d=c.clientId+":"+c.requestId;c=AL(c.args[0],!!c.H,_.QG);return a.kk(d,c)},b["4.22"]=function(c){var d=c.clientId+":"+c.requestId;c=AL(c.args[0],!!c.H,_.iA);return a.ji(d,c)},b["4.23"]=function(c){var d=c.clientId+":"+c.requestId;c=AL(c.args[0],!!c.H,_.iA);return a.kk(d,c)},b["4.21"]=function(c){c=a.H[c.clientId+":"+
c.requestId].query;if(c instanceof _.iA){var d=a.W;ZKc(d,d.getKey(c)).refresh()}return a.jd([])},b};KXc.prototype.ji=function(a,b){var c=this,d=new _.Gn;this.H[a]={query:b,RSb:d.promise};b instanceof _.kA?d.resolve(this.O.ji(a,b)):b instanceof _.HG?d.resolve(XKc(this.O,a,b)):b instanceof _.iA?d.resolve(this.W.ji(a,b)):b instanceof _.QG?d.resolve(this.ka.ji(a,b)):d.resolve(this.ha.ji(a,b));return d.promise.then(function(){return c.jd([])})};KXc.prototype.kk=function(a,b){LXc(this,a,b);return this.jd([])};
var LXc=function(a,b,c){delete a.H[b];c instanceof _.kA?a.O.kk(b,c):c instanceof _.HG?YKc(a.O,b,c):c instanceof _.iA?a.W.kk(b,c):c instanceof _.QG?a.ka.kk(b,c):a.ha.kk(b,c)};_.g=KXc.prototype;_.g.SY=function(a,b,c){LXc(this,a,b);return this.ji(a,c)};_.g.DF=function(a){var b=a.clientId+":"+a.requestId,c=this.H[b].query;c.vi(a.args[0]);c instanceof _.kA?this.O.ji(b,c):c instanceof _.HG?XKc(this.O,b,c):c instanceof _.iA?this.W.ji(b,c):c instanceof _.QG?this.ka.ji(b,c):this.ha.ji(b,c);return this.jd([])};
_.g.iO=function(a,b){var c=this,d=this.H[a];if(d){a=a.split(":");var e=_.Wg(a[0]),f=a[1];d.RSb.then(function(h){b instanceof _.YK||b instanceof _.VK?c.update(e,f,[b.response,b.pageToken,b.H,b.Je,h]):(d.query instanceof _.nf?oBc(d.query.O(),b.wd().filter(function(k){return!cM(k)})):d.query instanceof _.xA&&oBc(d.query.O(),Object.values(b.gq()).filter(function(k){return k&&!cM(k)})),c.update(e,f,[b,h]))})}};
_.g.HX=function(a,b){if(this.H[a]){var c=a.split(":");a=_.Wg(c[0]);c=c[1];var d=b.error;d.kfa(b.H);this.update(a,c,void 0,d)}};_.g.vA=function(a){this.H[a]&&(a=a.split(":"),this.update(_.Wg(a[0]),a[1],["cacheRefresh"]))};_.g.T8=function(){};_.g.tka=function(a){if(!this.H[a])throw Error("eg`"+a);return this.H[a].query};var MXc=function(a,b){_.La(a.H,function(c,d){_.Wg(d.split(":")[0])===b&&LXc(a,d,c.query)})};
var NXc=function(a,b,c){mN.call(this,"LRM","drive.ds.sync.cache.LiveRequestManagerProxy",a);this.context=b;this.H=c;this.O={}};_.K(NXc,mN);NXc.prototype.Vwa=function(a){var b=this;a=new zQc(this.context.xm,this.context.YP,this.context.Rf(),this.context.Nc,function(c,d){return b.DF(c,d)},a,this.context.tk());OXc(this,a);return a};NXc.prototype.Ywa=function(a){var b=this;a=new DQc(this.context.xm,this.context.YP,this.context.Rf(),function(c,d){return b.DF(c,d)},a,this.context.Nc);OXc(this,a);return a};
var OXc=function(a,b){a.ji(b);_.Qe(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=NXc.prototype;_.g.Swa=function(a){var b=this,c=new OL(this.context.Nc,this.context.xm,this.context.Rf(),this.context.KZ,this.SY.bind(this),a);this.ji(c);_.Qe(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.axa=function(a){var b=this,c=new HQc(a,this,this.context.Nc);this.ji(c);_.Qe(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.bxa=function(a){var b=this,c=new IQc(this.context,this,a);this.ji(c);_.Qe(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.exa=function(a){var b=this,c=new LQc(this.context,a,this);this.ji(c);_.Qe(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.fxa=function(a){var b=this,c=new CQc(this.context,a);this.ji(c);_.Qe(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.Zwa=function(a){var b=this,c=new GQc(this.context,a,function(){b.send("4.21",[],void 0,c.ti())});this.ji(c);_.Qe(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.Owa=function(a){var b=this,c=new xQc(this.context.Mj(),this.context.Ck(),this.context.Rf(),function(d,e){return b.DF(d,e)},a);this.ji(c);_.Qe(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){iM(this.H,a.ti(),4);delete this.O[a.ti()]};_.g.SY=function(a,b,c){if(b instanceof _.xA&&c instanceof _.xA)this.send("4.5",[b,c],void 0,a);else if(b instanceof _.EG&&c instanceof _.EG)this.send("4.6",[b,c],void 0,a);else throw Error("Eg");};
_.g.DF=function(a,b){if(!this.O[a])throw Error("eg`"+a);var c=this.O[a];if(c.ud()instanceof _.nf)var d="4.7";else if(c.ud()instanceof _.wI)d="4.8";else if(c.ud()instanceof _.QG)d="4.20";else if(c.ud()instanceof _.kA)d="4.17";else throw Error("Fg");c.ud().vi(b);this.send(d,[b],void 0,a)};
_.g.C$=function(a,b,c,d){if(a=this.O[a]){var e,f=0;if(d)b=new LL(d,d.K5()),a.DB(b),iM(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 _.nf||h instanceof _.wI)h instanceof _.nf&&_.PJ(h)?e=AL(d,b,_.SK):e=AL(d,b,_.pB);else if(h instanceof _.xA||h instanceof _.EG)b?(e=new _.RK,mGc(e,function(k){return new _.hl(JSON.parse(k))},d)):e=d;else if(h instanceof _.QG)e=new _.VK(AL(d,b,kM),c[f++],c[f++],c[f++]);else if(h instanceof _.kA)e=new _.YK(AL(d,
b,mM),c[f++],c[f++],c[f++]);else if(h instanceof _.HG)e=AL(d,b,_.TK);else if(h instanceof _.iA)e=AL(d,b,ZL);else throw Error("Gg");}e&&(b=f,c&&"boolean"===typeof c[b]&&gJc(this.H,a.ti(),!!c[b]),jJc(this.H,a.ti(),e),a.update(e))}};
var oN=function(){_.Di.apply(this,arguments);this.commands=new _.sl;this.ha=this.active=this.vp=!1};_.K(oN,_.Di);oN.prototype.initialize=function(){this.vp||(this.vp=!0,this.V(),this.setActive(!0))};oN.prototype.V=function(){};oN.prototype.setActive=function(a){this.active=a;PXc(this)};var PXc=function(a){if(a.active&&!a.ha){var b=_.tl(a.commands);if(b)if(a.va()){do a.ka(b);while(b=_.tl(a.commands))}else a.ha=!0,_.ci(a.Ba(b),function(){a.ha=!1;PXc(a)})}};oN.prototype.ka=function(){};
oN.prototype.Ba=function(){};oN.prototype.va=function(){return!0};oN.prototype.enqueue=function(a){try{var b=new _.di;this.commands.enqueue(new QXc(a,b));PXc(this);return b}catch(c){return _.ki(_.qJ(c))}};var QXc=function(a,b){this.H=a;this.wf=b};QXc.prototype.getCommand=function(){return this.H};QXc.prototype.yG=function(){return this.wf};
var TXc=function(a){oN.call(this);var b=this;this.context=a;this.O=null;this.Sc=new _.Ye(this);this.Ma(this.Sc);this.Sc.listen(this.context,"VMiG2e",function(){return void RXc(b)});this.H=this.context.Nf.wq;_.XI(this.context.Nc)&&this.Sc.listen(this.H,"Fb",this.W);var c=a.Sj;nM(c,["toquGd"],function(){return b.initialize()});var d=["NSockf"];1!==_.Fj(a.Nc.ig(),17,1)&&(d.push("iuEtc"),nM(c,["mrK8ic"],function(){oM(c,"iuEtc")}));nM(c,d,function(){SXc(b)})};_.K(TXc,oN);TXc.prototype.V=function(){UXc(this)};
var SXc=function(a){if(1===a.context.OP.xf().Bb())Promise.resolve();else{var b=_.Df(_.Ef(new _.Cf,!0),301);b=_.KI(new _.JI,b);a.refresh(b).then(null,function(c){c=_.eJ(c);_.w(c,21,"Initial account request failed.");a.context.nJ(c)})}},RXc=function(a){var b=_.Df(new _.Cf,304);b=_.KI(new _.JI,b);a.refresh(b).then(null,function(){})};
TXc.prototype.refresh=function(a,b){var c=this;this.O||(this.O=_.ci(this.context.Tm().then(function(d){return d.Qe(a,b)}).then(function(d){var e=d.xf(),f=e.getUser();if(f&&!1===_.Sk(f))d=_.fJ(_.II(c.context.Nc)),d=Error("Hg`"+d+"`"+sL(f)),_.zb(d),_.ZK(c.context.tk(),73301807),d=Promise.reject(d);else{f=c.context.OP;var h=0===f.Ze()?1:6;_.XI(c.context.Nc)&&BKc(c.H,e);h=fRc(f,e,h);(e=e.getMetadata())&&c.context.Du(_.y(e,2),1);(d=_.y(d,4))&&PRc(c.context,d,!0);h&&c.dispatchEvent(new _.ti("WPi0i"));d=
Promise.resolve(new _.XK(f.xf(),f.Ze(),!1))}return d}).then(function(d){return d},function(d){d=_.eJ(d);_.w(d,5,1);return Promise.reject(new _.Dc("Error fetching account from server.",d))}),function(){c.O=null}));return this.O};
TXc.prototype.ka=function(a){var b=a.getCommand();if(b.H){var c={};b.AD&&(c.AD=b.AD);this.refresh(b.request,c).then(function(e){return a.yG().callback(e)},function(e){return void a.yG().Jd(e)})}else if(b=this.context.OP,c=b.xf(),_.XI(this.context.Nc)){c=c.xf();var d=c.getUser();d=GKc(this.H,sL(d));BKc(this.H,c);fRc(b,c,b.Ze())&&this.dispatchEvent(new _.ti("WPi0i"));a.yG().callback(new _.XK(b.xf(),b.Ze(),d))}else c.Bb(),b=new _.XK(c,b.Ze(),!0),a.yG().callback(b)};
var UXc=function(a){var b=a.context.Nc.ig();_.n.setTimeout(function(){var c=_.Df(new _.Cf,306);c=_.KI(new _.JI,c);a.refresh(c).then(function(){UXc(a)},function(){UXc(a)})},Math.ceil(_.ak(b,7,9E5)*Math.random())+_.ak(b,3,72E5))};TXc.prototype.W=function(a){var b=this.context.OP,c=b.xf().xf();c&&a.getPeople().find(function(d){return _.y(d,1)===sL(c.getUser())})&&(BKc(this.H,c),fRc(b,c,b.Ze())&&this.dispatchEvent(new _.ti("WPi0i")))};var VXc=function(a,b,c){this.request=a;this.H=!!b;this.AD=c||null};
var XXc=function(a){oN.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 _.Ye(this);this.Ma(this.Sc);this.Sc.listen(this.context.LZ,"Mb",_.Db(this.dispatchEvent,new _.ti("Mb",this)));WXc(this)};_.K(XXc,oN);
var WXc=function(a){var b=a.context.Sj;nM(b,["nVUlO"],function(){a.ta=!0;a.setActive(!0)});if(!_.DK(a.context.Nc)){var c=_.Fj(a.context.Nc.ig(),18,1);nM(b,["NSockf"],function(){1===c?YXc(a):a.setActive(!0)});2===c&&nM(b,["mrK8ic"],function(){a.W||YXc(a)})}},YXc=function(a){var b=new _.Cf;_.Ef(b,!0);_.Df(b,301);var c=new _.SJ;_.CFc(c,b);_.w(c,1,1);a.refresh(c).Dg(function(){return null})};
XXc.prototype.refresh=function(a,b){var c=this;_.n.clearTimeout(this.ma);this.ma=0;var d=_.ai();this.O=d.promise;_.ci(this.O,function(){c.O=null;ZXc(c)});var e=this.H;this.H=a.getType()||e;var f=!this.W;this.W=!0;var h=new _.SJ;_.w(h,1,this.H);_.CFc(h,a.te());this.context.Tm().then(function(k){return k.Qe(h,b)}).then(function(k){c.error=null;var l=c.context.LZ;l.ZP(k,l.OG()?6:1);d.resolve()},function(k){c.H=e;k=_.QB(k);var l=k.Tg;_.w(l,5,2);f?(_.cJ(l,1),k.message="Initial app settings refresh failed.",
_.w(k.Tg,21,"Initial app settings refresh failed."),c.context.nJ(l),c.setActive(!0)):(_.cJ(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};XXc.prototype.va=function(){return!1};
XXc.prototype.Ba=function(a){var b=this,c=a.getCommand(),d=c.request,e=c.hja,f=c.AD?{AD:c.AD}:void 0;if(!$Xc(d))return this.context.Tm().then(function(l){return l.Qe(d,f)}).then(function(l){a.yG().callback(new _.UK(l,1,!1))},function(l){a.yG().Jd(_.qJ(l))}),_.Yh();c=_.Yh();var h=!1;this.O?aYc(this,d.getType())?e=this.O:c=e=new _.Xh(function(l,p){b.O.then(function(){b.refresh(d,f).then(function(){return l()},p)})}):!e&&this.ta&&aYc(this,d.getType())&&!this.error?(h=!0,e=_.Yh()):e=this.refresh(d,f);
var k=a.yG();e.then(function(){var l=b.context.LZ;k.callback(new _.UK(l.xr(),l.Ze(),h))},function(l){k.Jd(l)});return c.then()};
var $Xc=function(a){var b=a.getType();return 1===b||2===b||4===b?(b=_.fe(a,4),a=_.fe(a,3),!(b&&b.length)&&!(a&&a.length)):!1},aYc=function(a,b){return a.H===b||4===a.H||2===a.H&&1===b},ZXc=function(a){var b=a.context.Nc.ig(),c=new _.Cf;_.Df(c,306);var d=new _.SJ;_.w(d,1,1);_.CFc(d,c);a.ma=_.n.setTimeout(function(){return void a.refresh(d)},Math.ceil(_.ak(b,7,9E5)*Math.random())+_.ak(b,4,72E5))},bYc=function(a,b,c){this.request=a;this.hja=!!b;this.AD=c||null};
var dYc=function(a){oN.call(this);var b=this;this.context=a;this.error=null;this.Sc=new _.Ye(this);this.Ma(this.Sc);this.Sc.listen(this.context.dE,"WPi0i",function(){return b.dispatchEvent(new _.ti("WPi0i"))});this.H=_.ai();this.O=_.fe(this.context.Nc.ig(),30);cYc(this)};_.K(dYc,oN);
var cYc=function(a){var b=a.context.Sj;nM(b,["rkYxSd"],function(){return a.initialize()});nM(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=_.Fj(a.context.Nc.ig(),19,1);1!==d&&(c.push("OZvrNc"),2===d&&nM(b,["mrK8ic"],function(){oM(b,"OZvrNc")}));!_.Q(a.context.Nc,11,!1)&&_.Q(a.context.Nc,24,!1)&&(c.push("DEJoH"),_.n.setTimeout(function(){0<_.Oj(WWc(a.context.dE),_.op,1).length||(b.H("NSockf")?
oM(b,"DEJoH"):nM(b,["NSockf"],function(){oM(b,"DEJoH")}))},12E3));nM(b,c,function(){if(!b.H("px2C2c")){var e=new _.Cf;_.Ef(e,!0);_.Df(e,301);var f=new _.TD;_.I(f,1,e);uCc(f,eYc(a));a.query(f).Dg(function(){a.initialize()})}})};dYc.prototype.V=function(){var a="User prefs detected: "+_.Oj(WWc(this.context.dE),_.op,1).length;this.context.Rf().info("drive.ds.sync.userprefs.UserPrefsManager",a);fYc(this)};
dYc.prototype.query=function(a,b){var c=this,d=b?{AD:b}:void 0;return this.context.Tm().then(function(e){return e.Qe(a,d)}).then(function(e){c.error=null;var f=c.context.dE;f.ZP(_.Oj(e,_.op,3),f.OG()?6:1,_.fe(a,3))}).then(null,function(e){e=_.QB(e);_.w(e.Tg,5,4);0<c.commands.$b()||c.context.nJ(e.Tg);c.error=e;throw e;})};
dYc.prototype.ka=function(a){var b=this,c=a.getCommand(),d=a.yG(),e=new Set([].concat(_.Ad(this.context.dE.EF.keys()))),f=_.fe(c.request,3);f.find(function(h){return!e.has(h)})&&(c.hja=!0);this.error?d.Jd(this.error):c.hja?(uCc(c.request,eYc(this,f)),_.ci(this.H?this.H.promise:this.query(c.request,c.AD||void 0),function(){b.getData(d,f,!1)})):this.getData(d,f,!0)};var eYc=function(a,b){b=void 0===b?[]:b;a=new Set([].concat(_.Ad(a.O),_.Ad([].concat(_.Ad(a.context.dE.EF.keys()))),_.Ad(b)));return[].concat(_.Ad(a.values()))};
dYc.prototype.getData=function(a,b,c){b=this.context.dE.IG(b);a.callback(new _.WK(b.H,b.Je,c))};var fYc=function(a){var b=a.context.Nc.ig();_.n.setTimeout(function(){var c=new _.TD,d=new _.Cf;_.Df(d,306);_.I(c,1,d);uCc(c,eYc(a));_.ci(a.query(c).Dg(_.Tf),function(){fYc(a)})},Math.ceil(_.ak(b,7,9E5)*Math.random())+_.ak(b,5,72E5))},gYc=function(a,b,c){this.request=a;this.hja=!!b;this.AD=c||null};
var hYc=function(a,b,c,d){nN.call(this,"IS",b);this.context=a;this.Sc=new _.Ye(this);this.Ba=_.ai();this.O=null;this.ha=!1;this.W=null;this.Fa=new TQc(a);tCc(this.Fa);this.Ma(this.Sc);this.ka=new TXc(a);this.Ma(this.ka);this.Sc.listen(this.ka,"WPi0i",function(){return c(new tQc(1))});this.ma=new XXc(a);this.Ma(this.ma);this.Sc.listen(this.ma,"Mb",function(){return c(new tQc(2))});this.ta=new dYc(a);this.Ma(this.ta);this.Sc.listen(this.ta,"WPi0i",function(){return c(new tQc(4))});this.Ha=d;this.H=
this.context.Tm()};_.K(hYc,nN);_.g=hYc.prototype;
_.g.LU=function(){var a={};return a["3.43"]=this.u_.bind(this),a["3.42"]=this.z7.bind(this),a["3.1"]=this.lN.bind(this),a["3.2"]=this.IG.bind(this),a["3.3"]=this.ld.bind(this),a["3.35"]=this.LN.bind(this),a["3.4"]=this.Dz.bind(this),a["3.5"]=this.xr.bind(this),a["3.6"]=this.VR.bind(this),a["3.8"]=this.Pl.bind(this),a["3.36"]=this.az.bind(this),a["3.9"]=this.hF.bind(this),a["3.10"]=this.wr.bind(this),a["3.11"]=this.Z$.bind(this),a["3.12"]=this.i8.bind(this),a["3.13"]=this.WS.bind(this),a["3.14"]=this.X$.bind(this),
a["3.15"]=this.k8.bind(this),a["3.16"]=this.lu.bind(this),a["3.17"]=this.bDb.bind(this),a["3.18"]=this.fDb.bind(this),a["3.19"]=this.dQ.bind(this),a["3.20"]=this.dDb.bind(this),a["3.25"]=this.cDb.bind(this),a["3.22"]=this.j8.bind(this),a["3.28"]=this.sync.bind(this),a["3.30"]=this.Dna.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.TO.bind(this),a["3.37"]=this.gDb.bind(this),a["3.38"]=this.z$a.bind(this),a["3.41"]=this.XR.bind(this),
a["3.44"]=this.$_.bind(this),a["3.45"]=this.Ro.bind(this),a["3.46"]=this.E7.bind(this),a};_.g.lN=function(a){var b=this,c=AL(a.args[0],!!a.H,_.JI);a=new VXc(c,a.args[1],this.context.H[a.clientId]);oM(this.context.Sj,"iuEtc");return this.ka.enqueue(a).then(function(d){return b.jd([d.response,d.Je,d.M_])},function(d){return b.jd(void 0,d)})};
_.g.IG=function(a){var b=this,c=AL(a.args[0],!!a.H,_.TD);a=new gYc(c,a.args[1],this.context.H[a.clientId]);oM(this.context.Sj,"OZvrNc");return this.ta.enqueue(a).then(function(d){return b.jd([d.response,d.Je,d.M_])},function(d){return b.jd(void 0,d)})};
_.g.ld=function(a){var b=this,c=AL(a.args[0],!!a.H,$Bc),d=_.dk(c,_.tJ,16,xL)||_.dk(c,_.uJ,1,xL)||_.dk(c,_.vJ,2,xL)||_.dk(c,_.yJ,3,xL)||_.dk(c,_.aL,4,xL)||_.dk(c,_.wJ,5,xL)||_.dk(c,_.CJ,6,xL)||_.dk(c,_.EJ,7,xL)||_.dk(c,_.FJ,8,xL)||_.dk(c,_.IJ,9,xL)||_.dk(c,_.VJ,18,xL)||_.dk(c,_.ZJ,10,xL)||_.dk(c,_.$J,11,xL)||_.dk(c,_.aK,12,xL)||_.dk(c,_.gJ,13,xL)||_.dk(c,_.fK,14,xL)||_.dk(c,_.gK,15,xL)||_.dk(c,_.yL,17,xL),e=pN(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.LN=function(a){var b=this,c=AL(a.args[0],!!a.H,iCc),d=_.dk(c,_.zJ,1,jCc)||_.dk(c,_.GJ,2,jCc)||_.dk(c,_.hK,3,jCc),e=pN(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.Dz=function(a){var b=this,c=AL(a.args[0],!!a.H,cCc),d=pN(this,a),e=[],f=[];eCc(c).forEach(function(h){h instanceof _.tJ?e.push(String(h.Ac())):e.push(String(h.getId()));f.push(b.H.then(function(k){return k.Qe(h,d)}))});a=_.QI(f).then(function(h){return h.map(function(k){return k.value||k.reason})});_.ci(a,function(){return void uTc(b.context.Nf)});return a.then(function(h){return b.jd([new PBc(e,h)])})};
_.g.xr=function(a){var b=this,c=AL(a.args[0],!!a.H,_.SJ),d=a.args[1];if(3===c.getType())if(!d&&this.W)a=this.W;else{var e=pN(this,a);a=this.H.then(function(f){return f.Qe(c,e)}).then(function(f){return new _.UK(f,1,!1)});this.W||(this.W=a.then(function(f){return new _.UK(f.response,f.Je,!0)}),setTimeout(function(){b.W=null},9E5))}else a=new bYc(c,d,this.context.H[a.clientId]),oM(this.context.Sj,"Qubz4b"),a=this.ma.enqueue(a);return a.then(function(f){return b.jd([f.response,f.Je,f.M_])},function(f){return b.jd(void 0,
f)})};_.g.VR=function(a){var b=this,c=AL(a.args[0],!!a.H,fCc),d=_.dk(c,_.VD,1,gCc)||_.dk(c,_.WD,2,gCc),e=pN(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.nz)a?_.byc(this.context.nz,!0):this.context.Ck().Se()&&this.context.nz.lM(!0).then(null,function(){});else try{this.context.Mj().Pl(a)}catch(b){return this.jd(void 0,b)}return this.jd([])};
_.g.az=function(a){var b=this,c=a.args[0];return this.context.az(c).then(function(d){return d?(b.context.Mj().az(c),b.Ha(c),b.context.Js.kL().Dg(function(){return!c})):_.Yh(!c)}).then(function(d){return b.jd([d])},function(d){return b.jd(void 0,d)})};_.g.sync=function(){var a=this;return _.$h([this.context.U$.promise,this.context.nfa.promise]).then(function(){return a.context.Js.kL()}).then(function(){return a.jd([])},function(b){return a.jd(void 0,b)})};
_.g.hF=function(){try{var a=this.context.X5;a&&a.goa();this.context.Vga.hF();return this.jd([])}catch(b){return this.jd(void 0,b)}};_.g.XR=function(){this.context.XR();return this.jd([])};_.g.wr=function(a){var b=this,c=AL(a.args[0],!!a.H,_.LJ),d=pN(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.Z$=function(a){var b=this,c=AL(a.args[0],!!a.H,_.MJ),d=pN(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.i8=function(a){var b=this,c=AL(a.args[0],!!a.H,_.AJ),d=pN(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.WS=function(a){var b=this,c=AL(a.args[0],!!a.H,_.dK),d=pN(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=AL(a.args[0],!!a.H,_.NJ),d=pN(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return _.XI(b.context.Nc)?FKc(b.context.Nf.wq,[_.B(e,_.Rk,2)],c.Ac()).then(function(){return e}):e}).then(function(e){return b.jd([e])},function(e){return b.jd(void 0,e)})};
_.g.k8=function(a){var b=this,c=AL(a.args[0],!!a.H,_.DJ),d=pN(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.lu=function(a){var b=this,c=AL(a.args[0],!!a.H,_.UJ),d=pN(this,a);return this.H.then(function(e){return e.Qe(c,d).then(function(f){return _.XI(b.context.Nc)?DKc(b.context.Nf.wq,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=AL(a.args[0],!!a.H,_.aQc),d=new _.Buc(c,a.args[1],a.args[2]||void 0),e=pN(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=AL(a.args[0],!!a.H,_.TJ),d=pN(this,a);return this.H.then(function(e){return e.Qe(c,d).then(function(f){return _.XI(b.context.Nc)?FKc(b.context.Nf.wq,_.Oj(f.jd(),_.Rk,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.dQ=function(){var a=this;return(_.Q(this.context.Nc.ig(),52,!1)?_.Yh(XIc(new WIc,0)):this.context.vI.dQ()).then(function(b){return a.jd([b])},function(b){return a.jd(void 0,b)})};
_.g.dDb=function(a){var b=this,c=AL(a.args[0],!!a.H,_.Auc),d=pN(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=AL(a.args[0],!!a.H,_.RJ),d=pN(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.j8=function(a){var b=this,c=AL(a.args[0],!!a.H,_.BJ),d=pN(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.Dna=function(a){var b=this,c=AL(a.args[0],!!a.H,_.mJ),d=pN(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,_.eJ(e)])})};_.g.fxb=function(){return this.jd([!0])};
_.g.hDb=function(a){var b=this,c=AL(a.args[0],!!a.H,_.DG),d=pN(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=AL(a.args[0],!!a.H,_.iA),d=pN(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){a=AL(a.args[0],!!a.H,_.nf);KSc(this.context.Nf,[a]);return this.jd([])};
_.g.z7=function(a){var b=this,c=AL(a.args[0],!!a.H,_.xJ),d=pN(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.TO=function(a){var b=this,c=AL(a.args[0],!!a.H,_.UM),d=pN(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return QKc(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 _.Iuc(AL(a.args[0],!!a.H,_.O8b),a.args[1]),d=pN(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.z$a=function(a){var b=this,c=AL(a.args[0],!!a.H,_.CG),d=pN(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.$_=function(a){var b=this,c=AL(a.args[0],!!a.H,_.OK),d=pN(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.Ro=function(a){var b=a.args.map(function(c){return AL(c,!!a.H,_.aJ)});this.context.Nf.Ro(b);uTc(this.context.Nf);return this.jd([])};_.g.E7=function(){var a=this,b=this.context.nz;return(b?b.lM():_.Yh(_.Uxc(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=_.ai();this.context.Rf().info("drive.ds.sync.cacheproxy.WorkerSyncedItemService","Initializing with client build: "+this.context.Nc.Xi());this.Sc.listen(this.context,_.Nc,function(e){e=e.error;var f=e.Tg;f&&3===f.getType()&&!a.ha?(a.ha=!0,a.O.reject(e)):DFc(a.context.Rf(),"drive.ds.sync.cacheproxy.WorkerSyncedItemService","An error occurred in the Shared Worker")});var b=this.context.Sj,c=["hVFf7"];_.DK(this.context.Nc)&&c.push("BNEDtc");nM(b,
c,function(){a.ha||(a.ha=!0,a.O.resolve())});nM(b,["GZTDpc"],function(){return a.Ba.resolve()});var d=function(){eN(a.context).then(function(e){return void e.start()})};nM(b,["T8oKm","ZA9qG"],function(){return void d()});nM(b,["T8oKm","mrK8ic"],function(){return void d()});b.start();oM(b,"NSockf")}return this.O.promise};_.g.oba=function(){return this.Ba.promise};_.g.Fu=function(){var a=this.context.X5;a&&a.dispose();return this.context.Fu()};
var pN=function(a,b){return(a=a.context.H[b.clientId])?{AD:a}:{}};
var iYc=function(a,b,c){nN.call(this,"DU",b);this.context=a;this.O=c;this.H=new TQc(a)};_.K(iYc,nN);_.g=iYc.prototype;
_.g.LU=function(){var a=this,b={};return b["5.1"]=function(){return a.Mha()},b["5.2"]=function(c){return a.IM(c)},b["5.4"]=function(c){return a.Qz(c)},b["5.5"]=function(){return a.YQ()},b["5.10"]=function(){return a.gN()},b["5.6"]=function(){return a.gda()},b["5.7"]=function(){return a.JS()},b["5.9"]=function(c){return a.Fpa(c)},b["5.8"]=function(c){return a.O4(c)},b["5.11"]=function(){return a.cpa()},b["5.12"]=function(c){return a.getState(c)},b["5.13"]=function(c){return a.Pl(c)},b};
_.g.Mha=function(){var a=this;this.context.Js.eS();var b=this.context.Nc;return RMc(_.BK(_.II(b)),_.CK(b),this.context.Rf()).Dg(function(){}).then(function(){return a.jd([])})};_.g.IM=function(a){a=this.context.Nf.wm.H(a.args[0]);return this.jd([a])};_.g.Qz=function(a){var b=this;return this.context.ZA.Qz(a.args[0]).then(function(c){return b.jd([c])})};_.g.YQ=function(){return this.jd(this.context.ZA.YQ())};
_.g.O4=function(a){var b=this,c=AL(a.args[0],!!a.H,_.itc),d=a.args[1],e=a.args[2];if(_.dk(c,_.YI,3,_.ZI)||_.dk(c,_.jK,4,_.ZI)||_.dk(c,_.aL,5,_.ZI)||_.dk(c,_.gK,6,_.ZI)||_.dk(c,_.FJ,7,_.ZI)||_.dk(c,_.yJ,8,_.ZI)||_.dk(c,_.CJ,9,_.ZI)||_.dk(c,_.gJ,10,_.ZI)){var f=dJc(c);return this.context.Tm().then(function(h){return h.Qe(f,{q6a:d,r6a:e})}).then(function(h){a:{var k=[],l="";if(h instanceof _.bL){k=h.jd().wd();var p=_.y(h,2);l=h.Zn()}else if(h instanceof _.nK)h.getItem()&&k.push(h.getItem()),p=h.QM();
else{h=b.jd(void 0,Error("gg"));break a}h=b.jd([p,l].concat(_.Ad(k)))}return h},function(h){return b.jd(void 0,h)})}return _.Yh(this.jd(void 0,Error("fg")))};_.g.Fpa=function(){var a=this.context.Nc,b=a.ig();a="email:"+_.II(a).getEmail().replace(/@.*$/,"");_.w(b,13,a);return this.jd([])};_.g.gda=function(){this.context.OF.H=new GLc(_.Vg().substring(0,8));return this.jd([])};
_.g.JS=function(){var a=this.context.OF.gN();if(a){var b=ILc(this.context.OF);a=[a.H,a.startTime].concat(_.Ad(b))}else a=[];b=this.context.OF;b.H=null;b.zY=[];return this.jd(a)};_.g.gN=function(){var a=this.context.OF.gN();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.cpa=function(){var a=[this.O.Fu(),_.Hi(3E4)];_.ci(_.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 jYc=function(a,b,c,d,e,f,h){_.nL.call(this,a,b,c,d,f,h);this.H=e;this.eg=null};_.K(jYc,_.nL);jYc.prototype.sM=function(a,b){var c=this;return _.ji(this.H.then(function(d){return d.H2a(eBc(c.O,c.va,a,b,c.jj,c.ha))},null))};jYc.prototype.ma=function(a,b){var c=this.ud(a);if(c){var d=0;if(c.file){var e=c.request&&c.request.Qz();e&&(d=_.y(e,1));0===d&&(d=c.file.size)}this.dispatchEvent(new _.wyc(a,b,d))}};
var kYc=function(a,b,c,d,e,f,h,k){nN.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 _.Ye(this);this.Ma(this.Sc)};_.K(kYc,nN);_.g=kYc.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.dG(c)},b["7.4"]=function(c){return a.retry(c)},b["7.5"]=function(c){return a.sM(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=AL(a.args[0],!!a.H,_.yJ),e=a.args[1];if(!this.H[c]){var f=new jYc(this.ka,this.ha,this.ta,this.Ba,this.W,this.ma,this.eg);this.Sc.listen(f,"Hb",_.Db(this.A$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=_.ai();b.O[q]=r;b.update(l,p,lYc(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.dG=function(a){a=a.clientId+":"+a.requestId;this.H[a]&&this.H[a].dG();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;_.Ia(f,function(p){k[p]=h[l++]});_.La(k,function(p,q){p.mg(function(r){b.update(a.clientId,c,lYc(0,e,[q,r]))},function(r){b.update(a.clientId,c,lYc(1,e,[q,r.Tg]))})});return this.jd([])}return this.jd(void 0,_.eJ("Could not retry upload."))};
_.g.sM=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=eBc(b.O,b.va,c,a,b.jj,b.ha),this.jd([lCc(c)])):this.jd(void 0,_.eJ("FileUploader not found."))};_.g.A$a=function(a,b,c){this.update(a,b,lYc(2,c.requestId,[c.progress,c.totalBytes]))};var lYc=function(a,b,c){return[Number(a),b].concat(_.Ad(c))};
var mYc=function(a,b){nN.call(this,"IE",b);this.O=a;this.H=new Map};_.K(mYc,nN);mYc.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};
mYc.prototype.export=function(a){var b=this,c=a.requestId,d=a.clientId+":"+c,e=AL(a.args[0],!!a.H,_.zuc);e=new $M(this.O,e);var f=_.Oe(e,"Lb",function(h){b.update(a.clientId,c,[h.cPa,h.Uta])});_.Qe(e,function(){_.Bi(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)})};mYc.prototype.cancel=function(a){(a=this.H.get(a.clientId+":"+a.requestId))&&a.cancel();return this.jd([])};
var nYc=function(a,b){nN.call(this,"ODS",b);this.context=a;this.H=!1;this.W=_.ai();this.O=new YQc(a,a.Mg)};_.K(nYc,nN);nYc.prototype.LU=function(){var a=this,b={};return b["6.1"]=function(c){return oYc(a,c)},b["6.2"]=function(c){return pYc(a,c)},b["6.3"]=function(){a.H&&(aRc(a.O),a.H=!1,a.W=_.ai());return a.jd([])},b};
var oYc=function(a,b){if(!a.H){a.H=!0;var c=b.args.map(function(d){return AL(d,!!b.H,_.hl)});a.O.zl(c);oM(a.context.Sj,"GZTDpc");a.W.resolve()}return a.jd([])},pYc=function(a,b){return a.W.promise.then(function(){var c=b.args.map(function(d){return AL(d,!!b.H,_.aJ)});$Qc(a.O,c);return a.jd([])})};
var qYc=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 _.di)})};qYc.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 rYc=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)})};qYc.prototype.Do=function(){return[].concat(_.Ad(this.services.values())).every(function(a){return a.kg()})};
var sYc=function(){},tYc={0:2E3,1:3E3,2:5E3},uYc=function(a,b){this.request=a;this.ha=b;this.O=_.ai();this.continuationToken="";this.V=0;this.xE=this.W=!1;this.H=sYc};uYc.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=sYc;b.V=0;return c},function(c){b.H=sYc;b.V=0;return Promise.reject(c)})};
uYc.prototype.sendRequest=function(){var a=this;if(this.xE)this.O.resolve((new TM).Dc(8));else{var b=new _.Muc(this.request,this.continuationToken);this.ha.then(function(c){return c.Qe(b)}).then(function(c){vYc(a,c)},function(c){a.handleError(c)})}};var vYc=function(a,b){var c;a.continuationToken=null!==(c=b.Zn())&&void 0!==c?c:"";a.H(b);a.continuationToken?setTimeout(function(){a.sendRequest()},wYc(a.V++,a.ka)):a.O.resolve(b)};uYc.prototype.handleError=function(a){a=_.QB(a);this.O.reject(a)};
uYc.prototype.cancel=function(){this.xE=!0};var wYc=function(a,b){return b?b:(a=tYc[a])?a:1E4};
var xYc=function(a,b){nN.call(this,"TM",b);this.O=a;this.H=new Map};_.K(xYc,nN);xYc.prototype.LU=function(){var a=this,b={};return b["10.1"]=function(c){return yYc(a,c)},b["10.2"]=function(c){return a.cancel(c)},b};
var yYc=function(a,b){var c=b.clientId+":"+b.requestId,d=AL(b.args[0],!!b.H,_.CPc);d=new uYc(d,a.O);a.H.set(c,d);return _.ci(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)})};xYc.prototype.cancel=function(a){this.H.get(a.clientId+":"+a.requestId).cancel();return this.jd([])};
var qN=function(a,b,c){_.O.call(this);this.H=a;this.jw=b;this.kb=c;this.fields=null;this.Ha=!1;this.Ka=_.ai();this.W=!1;this.Ba=_.ai();this.O=_.ai();this.ta=null;this.va=this.Ta=!1;this.Ab=_.ai();this.ha=new Set;this.Fa=new Set;this.V=new Map;this.ma=new Set;this.ez=Date.now();this.services=new qYc;this.Ib=new _.Ye(this);this.Ma(this.Ib)};_.K(qN,_.O);qN.prototype.hY=function(a){this.O.promise.then(function(b){b.X5||a.HMa(b)})};
var CYc=function(a,b){var c=IXc(a.H,b),d=a.Rb.bind(a,c);gM(b,"8.1",d);b.registerService("8.1",d);gM(b,"8.4",a.Qa.bind(a,c));b.registerService("8.5",function(f){return zYc(a,c,f)});gM(b,"8.2",a.Gb.bind(a,c));gM(b,"8.3",a.Mb.bind(a,c));rYc(a.services,b);b.start();AYc(a,c,b);a.ka(c,b);var e=[];a.ta||(a.ta=_.$h([a.Ka.promise,a.Ba.promise]).then((0,_.M)(a.initialize,a)));e.push(a.ta);_.$h(e).then(function(){return void BYc(a,c,b)},function(f){a.Ta=!0;hM(b,"2.2",{err:_.eJ(f).Lc()},d)})},DYc=function(a){return Math.floor((Date.now()-
a.ez)/1E3)},EYc=function(a,b,c){var d=function(e){hM(b,"2.8",{au:"pb"===e.type})};a.Ib.listen(c.vI,["pb","qb"],d);_.Qe(b,a.Ib.Yc.bind(a.Ib,c.vI,["pb","qb"],d))},FYc=function(a,b,c){var d=c.Ck(),e=[].concat(_.Ad(Object.values(_.pC))),f=function(h){hM(b,"2.19",{cs:h.connectionState})};a.Ib.listen(d,e,f);_.Qe(b,function(){a.Ib.Yc(d,e,f)})};
qN.prototype.Rb=function(a){var b=JXc(this.H,a);if(b&&((this.services.services.get("LRM")||null).addCallback(function(d){MXc(d,a)}),b.dispose(),this.log(_.Ft("Client %d disconnected (num clients remaining: %d)",a,_.Pa(this.H.channels))),0===_.Pa(this.H.channels))){var c=function(){_.n.setTimeout(function(){self.close()})};this.Ta?c():(this.services.services.get("IS")||null).addCallback(function(d){_.ci(d.Fu(),c)})}};
qN.prototype.Qa=function(a,b){if(this.ha.has(a))return _.Yh();var c=new _.bc(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){DXc(d,a,_.D(c.ig(),37,""));CXc(d,_.fe(c,28));d.Nf.ola(_.Oj(c,_.Jl,91));return d.wX.promise.then(function(){KSc(d.Nf,_.Oj(c,_.nf,44))})},function(){})};
qN.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 ORc(e,e.Mg);e.$g(d);e.dispose();(e=c.H.channels[a]||null)&&hM(e,"2.16")})}};qN.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){GYc(new tSc(h),e);(h=c.H.channels[a]||null)&&hM(h,"2.17",{t:f})})}};
var GYc=function(a,b){b.filter(function(c){return c}).forEach(function(c){return a.$g(c)});a.dispose()};qN.prototype.$a=function(){for(var a=[],b={},c=_.m(_.Qa(this.H.channels)),d=c.next();!d.done;b={aea:b.aea,Eea:b.Eea},d=c.next())b.aea=d.value,b.Eea=_.ai(),hM(b.aea,"2.12",void 0,function(e){return function(){e.aea.dispose();e.Eea.resolve()}}(b)),a.push(b.Eea.promise);return _.$h(a).then()};
qN.prototype.initialize=function(a){var b=this;a=a[0];_.fwc(a,this.fields);var c=_.B(a,_.nJ,58);c=c&&_.Q(c,1,!1)?this.kb:void 0;try{var d=new CL(null,a,this.jw,c,void 0,void 0),e=d.tk().H(106E3);jXc(d,this.$a.bind(this));this.Ib.listen(d.Mj(),"Bb",function(k){k={os:k.Se()};for(var l=_.m(_.Qa(b.H.channels)),p=l.next();!p.done;p=l.next())hM(p.value,"2.6",k)});this.Ib.listen(d,_.Nc,this.rb);this.Ib.listen(d,"w8KrJc",this.Ic);aJc(d.vI,this.ka.bind(this));var f=d.nz;f&&SFc(f,function(){return b.ka()});
this.O.resolve(d);var h=HYc(this,d,new hYc(d,this.H,(0,_.M)(this.oc,this),(0,_.M)(this.zc,this)));e&&h.then(function(){return e&&e.Aj()});return h}catch(k){return _.Zh(k)}};
var HYc=function(a,b,c){a.services.activate(c);a.services.activate(new KXc(b,a.H));a.services.activate(new iYc(b,a.H,c));a.services.activate(new nYc(b,a.H));a.services.activate(new kYc(b.Nc,b.ZA,b.XQ().lfa,b.Tm(),b.YP,b.Rf(),b.tk(),a.H));a.services.activate(new mYc(b.Tm(),a.H));a.services.activate(new xYc(b.Tm(),a.H));return c.initialize()},BYc=function(a,b,c){var d=_.Pa(a.H.channels);a.log(_.Ft("Client %d connected (num clients: %d, added: %d, max concurrent: %d)",b,d,a.H.O,a.H.H));hM(c,"2.2",{id:b,
clients:d,uptimeSec:DYc(a),dsp:!a.V.has(b),ivd:!a.ma.has(b)});a.O.promise.then(function(e){e.KZ.addCallback(function(f){c.isDisposed()||hM(c,"2.5",{id:f})});1<d&&eN(e).addCallback(function(f){return f.kwa()});(a.services.services.get("IS")||null).addCallback(function(f){f.oba().then(function(){c.isDisposed()||hM(c,"2.14")})});EYc(a,c,e);FYc(a,c,e)})};qN.prototype.oc=function(a){a={dt:a.dataType};for(var b=_.m(_.Qa(this.H.channels)),c=b.next();!c.done;c=b.next())hM(c.value,"2.15",a)};
qN.prototype.zc=function(a){var b={oois:a};_.Qa(this.H.channels).forEach(function(c){hM(c,"2.18",b)})};qN.prototype.rb=function(a){a={p:a.error.Tg.Lc()};for(var b=_.m(_.Qa(this.H.channels)),c=b.next();!c.done;c=b.next())hM(c.value,"2.10",a)};qN.prototype.Ic=function(){for(var a=_.m(_.Qa(this.H.channels)),b=a.next();!b.done;b=a.next())hM(b.value,"2.7")};var AYc=function(a,b,c){a.ha.has(b)?_.Yh():new _.Xh(function(d){hM(c,"2.1",void 0,function(e){d(a.Qa(b,e))})})};
qN.prototype.ka=function(a,b){var c=this;if("number"===typeof a){if(!b)return _.Zh(Error("Kg"));if(this.W&&this.Fa.has(a))return _.Yh()}b=b||_.Qa(this.H.channels)[0];if(!b)return _.Zh(Error("Lg"));var d=_.ai();b.send("1.1",void 0,function(e){zYc(c,a,e);d.resolve()});return d.promise};var zYc=function(a,b,c){_.La(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())};
qN.prototype.log=function(a){this.O.promise.then(function(b){return b.Rf().info("drive.ds.sync.cacheproxy.Worker",a)})};
var IYc=function(a,b){mN.call(this,"DU","drive.ds.sync.DebugUtilProxy",a);this.context=b;this.H=null};_.K(IYc,mN);_.g=IYc.prototype;_.g.La=function(){return _.B(this.context.Nc,_.nJ,58)};_.g.getContext=function(){return this.context};_.g.Qz=function(){return _.ji(this.send("5.4",[this.H],function(a,b){return AL(a[0],b,_.Swc)}))};_.g.Rf=function(){return this.context.Rf()};_.g.IM=function(a){return _.ji(this.send("5.2",[a],function(b,c){return b[0]?AL(b[0],c,_.hl):null}))};
_.g.YQ=function(){return _.ji(this.send("5.5",[],function(a,b){return a.map(function(c){return AL(c,b,_.itc)})}))};_.g.O4=function(a,b,c){return _.ji(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 AL(k,e,_.hl)}),mia:f,pageToken:h}}))};_.g.Fpa=function(){this.send("5.9",[])};_.g.Mha=function(){this.send("5.1",[])};_.g.e9=function(){return _.Mtc[_.Fj(this.context.Nc.ig(),8,0)]};_.g.gda=function(){this.send("5.6",[])};
_.g.JS=function(){return _.ji(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 AL(e,b,eJc)});return{traceId:new GLc(c,d),spanRecs:a}}))};_.g.gN=function(){return _.ji(this.send("5.10",[],function(a){return 0===a.length?null:new GLc(a[0],new Date(a[1]))}))};_.g.getState=function(){return _.ji(this.send("5.12",[],function(a){return a[0]}))};_.g.cpa=function(){this.send("5.11",[])};_.g.Pl=function(a){this.send("5.13",[a])};
var JYc=function(a,b){mN.call(this,"IE","drive.ds.sync.itemexport.ItemExportSessionProxy",a);this.request=b;this.promise=null;this.id=String(_.Ca(this))};_.K(JYc,mN);JYc.prototype.start=function(){var a=this;this.promise||(this.promise=this.send("9.1",[this.request],function(b,c){return AL(b[0],c,gQc)},this.id).then(),this.promise.then(function(){return a.dispose()},function(){return a.dispose()}));return this.promise};JYc.prototype.cancel=function(){this.send("9.2",[],void 0,this.id)};
JYc.prototype.C$=function(a,b,c){this.dispatchEvent(new uQc(c[0],c[1]))};
var KYc=function(a){mN.call(this,"ODS","drive.ds.sync.offline.DataServiceProxy",a);this.H=null};_.K(KYc,mN);KYc.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.w_(function(c){b.log("Forwarding offline items changes, count:"+c.length);b.send("6.2",c)})):this.send("6.3",[])};
var LYc=function(a,b){xM.call(this,a,b)};_.K(LYc,xM);LYc.prototype.bia=function(a,b,c){return new _.Iuc(a,c)};LYc.prototype.nka=function(a){return a.pageToken||""};LYc.prototype.Bja=function(a){return a.response.O()};LYc.prototype.V5=function(){};
var MYc=function(a,b,c){ZM.call(this,a.Mj(),a.Ck(),b.Ei()||void 0);this.request=b;this.O=[];this.changed=!1;this.ka=c;this.V=new LYc(this.request,this.ka)};_.K(MYc,ZM);_.g=MYc.prototype;_.g.KG=function(){this.V.$g().then(this.B$a.bind(this),this.handleError.bind(this))};_.g.getData=function(){return uPc(new SM,this.O).Dc(this.status)};_.g.yr=function(){return new sPc};_.g.Vj=function(){return!this.Se()&&(!this.H||SKc(this.V))};_.g.B$a=function(a){this.changed=this.H=!0;this.O=a;this.Wt()};
_.g.Wt=function(){if(this.active){var a=this.status;this.HL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ti(_.Oc,this))}};_.g.$b=function(){return this.O.length};
var NYc=function(a,b,c){ZM.call(this,a.Mj(),a.Ck(),b.Ei()||10);this.request=b;this.O=[];this.data=[];this.changed=!1;this.V=new _.a8a;this.suggestionSessionId=null;this.ka=c};_.K(NYc,ZM);_.g=NYc.prototype;_.g.KG=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.Wt()},this.handleError.bind(this))};_.g.getData=function(){this.O=this.data;return _.$Ac(_.ZAc((new _.pL).Dc(this.status),this.data.slice(0)),this.suggestionSessionId)};
_.g.yr=function(){var a=this.V.sy(this.O,this.data);this.O=this.data;var b=(new yPc).Dc(this.status);return _.Kj(b,2,a)};_.g.RO=function(){};_.g.Wt=function(){var a=this.status;this.HL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ti(_.Oc,this))};_.g.$b=function(){return this.data.length};
var OYc=function(){};_.g=OYc.prototype;_.g.uM=function(a,b){b=YPc(1).setPosition(b);_.I(b,2,a);return b};_.g.tM=function(a,b){b=YPc(2).setPosition(b);_.I(b,2,a);return b};_.g.zE=function(a,b,c){b=YPc(3).bz(b).setPosition(c);_.I(b,2,a);return b};_.g.lQ=function(a,b){b=YPc(4).setPosition(b);_.I(b,2,a);return b};_.g.SM=function(a){return _.B(a,_.WPc,2)};
var QYc=function(){_.Ky.call(this,new OYc,function(a){return PYc(a)})};_.K(QYc,_.Ky);var PYc=function(a){switch(_.rb(a,_.XM)){case 6:return _.Jy(_.dk(a,_.Iy,6,_.XM)).getTime().toString();case 7:var b=_.dk(a,_.WM,7,_.XM);a=_.B(b,_.Iy,1);b=b.ov();return a&&b?(a=_.Jy(a).getTime(),_.Jy(b).getTime()+"--"+a):"";default:return""}},SYc=function(){RYc||(RYc=new QYc);return RYc},RYc;
var TYc=function(a,b,c,d){ZM.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 _.Yxc(_.ak(b.Nc.ig(),6,1E3));this.ta=c};_.K(TYc,ZM);_.g=TYc.prototype;_.g.activate=function(){ZM.prototype.activate.call(this);this.Wt()};_.g.KG=function(){_.P(this.request,3)?this.page():this.poll()};_.g.Er=function(a){if(a=a||50,this.O.length>this.limit)this.changed=!0;ZM.prototype.Er.call(this,a)};
_.g.getData=function(){var a=(new cQc).Dc(this.status);_.Kj(a,2,this.O.slice(0,this.limit));this.ka=_.wa(this.O);return a};_.g.yr=function(){var a=SYc().sy(this.ka,this.O),b=new $Pc;a=_.Kj(b,2,a).Dc(this.status);this.ka=_.wa(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=_.Oj(c,_.WPc,1);b.O=b.O.concat(d);b.token=c.xy()||"";0<d.length&&(b.changed=!0);b.Wt();b.page(a)},function(c){b.dispatchEvent(new _.Ec(c));b.V=!1}):(this.V=!1,a&&a.callback(),UYc(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=SYc();a.H=!0;var d=_.Oj(b,_.WPc,1);GL(c,a.O.slice(0,d.length),d)?(a.O=d,a.token=b.xy()||"",a.changed=!0,a.Wt(),a.page()):(a.V=!1,UYc(a))},function(b){a.dispatchEvent(new _.Ec(b));a.V=!1}))};_.g.Wt=function(){if(this.active){var a=this.status;this.HL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ti(_.Oc,this))}};
_.g.HL=function(){this.Se()&&!this.H?this.status=2:this.status=this.O.length<this.limit&&(!this.H||this.token)?6:1};_.g.RO=function(){this.active&&this.Vj()&&!this.V&&this.page(new _.di)};var UYc=function(a){_.P(a.request,3)||(_.EI(a.ma),_.n.setTimeout((0,_.M)(a.poll,a),a.ma.Za()))};TYc.prototype.$b=function(){return this.O.length};
var VYc=function(){};_.g=VYc.prototype;_.g.uM=function(a,b){return eQc(dQc(1),a).setPosition(b)};_.g.tM=function(a,b){return eQc(dQc(2).setPosition(b),a)};_.g.zE=function(a,b,c){return eQc(dQc(3).bz(b).setPosition(c),a)};_.g.lQ=function(a,b){return eQc(dQc(4),a).setPosition(b)};_.g.SM=function(a){return _.B(a,_.NM,2)};
var WYc=function(){_.Ky.call(this,new VYc,function(a){return a.getId()})};_.K(WYc,_.Ky);var YYc=function(){XYc||(XYc=new WYc);return XYc},XYc;
var ZYc=function(a,b,c){ZM.call(this,b.Mj(),b.Ck());this.request=a;this.V=[];this.backups=[];this.changed=!1;this.O=new _.Yxc(_.ak(b.Nc.ig(),54,1E3));this.ka=c};_.K(ZYc,ZM);_.g=ZYc.prototype;_.g.activate=function(){ZM.prototype.activate.call(this);this.Wt()};_.g.KG=function(){this.poll()};_.g.getData=function(){var a=new mQc;a=_.Kj(a,2,this.backups).Dc(this.status);this.V=_.wa(this.backups);return a};
_.g.yr=function(){var a=YYc().sy(this.V,this.backups),b=new kQc;a=_.Kj(b,2,a).Dc(this.status);this.V=_.wa(this.backups);return a};_.g.Vj=function(){return!this.Se()&&!this.H};_.g.poll=function(){var a=this,b=new _.di;this.ka(this.request).then(function(c){a.H=!0;c=_.Oj(c,_.NM,2);GL(YYc(),a.backups,c)&&(a.changed=!0,a.backups=c,a.O.reset());a.Wt();b.callback();$Yc(a)},function(c){a.dispatchEvent(new _.Ec(c));b.Jd(c);$Yc(a)});return b};
_.g.Wt=function(){if(this.active){var a=this.status;this.HL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ti(_.Oc,this))}};_.g.RO=function(){};var $Yc=function(a){a.active&&(_.n.setTimeout((0,_.M)(a.poll,a),a.O.Za()),_.EI(a.O))};ZYc.prototype.$b=function(){return this.backups.length};
var aZc=function(){};_.g=aZc.prototype;_.g.uM=function(a,b){return cPc(bPc(1),a).setPosition(b)};_.g.tM=function(a,b){return cPc(bPc(2).setPosition(b),a)};_.g.zE=function(a,b,c){return cPc(bPc(3).bz(b).setPosition(c),a)};_.g.lQ=function(a,b){return cPc(bPc(4),a).setPosition(b)};_.g.SM=function(a){return _.B(a,_.Rk,2)};
var bZc=function(){_.Ky.call(this,new aZc,function(a){return a.getId()})};_.K(bZc,_.Ky);_.Uf(bZc);
var rN=function(a,b,c){_.Di.call(this);this.context=a;this.request=b;this.nextPageToken="";this.H=this.O=!1;this.limit=0;this.permissions=[];this.V=c};_.K(rN,_.Di);rN.prototype.vi=function(a){this.limit=a};rN.prototype.$g=function(){return this.H||this.O&&""===this.nextPageToken?Promise.resolve():cZc(this)};rN.prototype.pka=function(){return this.permissions};
var cZc=function(a){a.O=!0;a.H=!0;var b=Math.min(a.limit-a.permissions.length,100);var c=new _.TJ;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))};rN.prototype.W=function(a){this.H=!1;this.nextPageToken=a.Zn()||"";a=_.Oj(a.jd(),_.Rk,2);this.permissions=_.va(this.permissions,a);a.length&&this.dispatchEvent("wa");if(this.nextPageToken&&this.permissions.length<this.limit)return cZc(this);this.dispatchEvent("za")};
rN.prototype.handleError=function(a){this.H=!1;a=new LL(_.eJ(a),_.ak(this.context.Nc.ig(),1,1));this.dispatchEvent(a)};
var dZc=function(a,b,c,d){ZM.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 rN(b,this.request,this.ma);_.Qe(this,function(){e.V&&(_.n.clearTimeout(e.V),e.V=null)})};_.K(dZc,ZM);_.g=dZc.prototype;_.g.activate=function(){ZM.prototype.activate.call(this);this.Wt()};_.g.KG=function(){this.query()};_.g.Er=function(a){ZM.prototype.Er.call(this,a||100)};
_.g.getData=function(){var a=UFc(new KL,this.permissions.slice(0,this.limit)).Dc(this.status);this.ka=_.wa(this.permissions);return a};_.g.yr=function(){var a=bZc.tb().sy(this.ka,this.permissions),b=new jPc;a=_.Kj(b,2,a).Dc(this.status);this.ka=_.wa(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 rN(this.context,this.request,this.ma);this.O.vi(this.limit);return this.O.$g().then(function(){return eZc(a)},function(b){return a.handleError(b)})};_.g.handleError=function(a){ZM.prototype.handleError.call(this,a);fZc(this)};var eZc=function(a){a.H=!0;var b=a.O.pka();GL(bZc.tb(),a.permissions,b)&&(a.changed=!0,a.permissions=b);a.Wt();fZc(a)};
dZc.prototype.Wt=function(){if(this.active){var a=this.status;this.HL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ti(_.Oc,this))}};dZc.prototype.RO=function(){var a=this;this.O.vi(this.limit);this.O.$g().then(function(){return eZc(a)},function(b){return a.handleError(b)})};var fZc=function(a){if(a.active){var b=a.context.Nc.ig();a.V=_.n.setTimeout((0,_.M)(a.query,a),Math.ceil(_.ak(b,7,9E5)*Math.random())+_.ak(b,15,36E5))}};dZc.prototype.$b=function(){return this.permissions.length};
var gZc=function(a){6!==a.status&&_.n.setTimeout(function(){a.dispatchEvent(new _.ti(_.Oc,a))},0)};
var hZc=function(){},iZc=function(a,b){mN.call(this,"TM","drive.ds.sync.TeamDriveMovePreflightRunnerProxy",a);this.request=b;this.O=hZc;this.H=null;this.id=String(_.Ca(this))};_.K(iZc,mN);iZc.prototype.C$=function(a,b,c){a===this.id&&(a=_.m(c).next().value,this.O(AL(a,b,TM)))};iZc.prototype.$g=function(a){a=void 0===a?hZc:a;if(!this.H){this.O=a;var b=_.ai();this.H=b;this.send("10.1",[this.request],function(c,d){return AL(c[0],d,TM)},this.id).then(function(c){return void b.resolve(c)},function(c){return void b.reject(c)})}return this.H.promise};
iZc.prototype.cancel=function(){this.send("10.2",[this.request],void 0,this.id)};
var jZc=function(a,b,c){_.Di.call(this);var d=this;this.instanceId=a;this.H=b;this.V=c;this.Au={};this.O={};_.Qe(this,function(){d.H("7.6",[])})};_.K(jZc,_.Di);_.g=jZc.prototype;_.g.getId=function(){return this.instanceId};_.g.kQ=function(){return _.PI()};
_.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 _.kwc;_.w(d,1,b.size);_.I(a,15,d);this.O[a.hj()]=b}return _.ji(this.H("7.1",[a,c],function(e,f){return AL(e[0],f,_.nK)}))};_.g.cancel=function(a){this.H("7.2",[a])};_.g.dG=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 _.di;c=this.kQ();this.Au[c]=b;b=_.Qa(b);this.H("7.4",[c].concat(_.Ad(a)));return b};_.g.sM=function(a,b){var c=this;return _.ji(this.H("7.5",[a].concat(_.Ad(b)),function(d){return mCc(d[0])}).then(function(d){return c.V.addCallback(function(e){return e.H2a(d)})}))};var kZc=function(a,b,c,d){if(a.Au[b]&&a.Au[b][c]){var e=a.Au[b][c];d instanceof _.nK?e.callback(d):e.Jd(d);delete a.Au[b][c];_.Ta(a.Au[b])&&delete a.Au[b]}};
var lZc=function(a,b){mN.call(this,"FU","drive.ds.sync.upload.FileUploaderProxyManager",a);this.O=b;this.H=new Map};_.K(lZc,mN);var mZc=function(a){var b=_.PI(),c=new jZc(b,function(d,e,f){return a.send(d,e,f,b)},a.O);a.H.set(b,c);_.Qe(c,function(){return void a.H.delete(b)});return c};
lZc.prototype.C$=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,_.duc(c,b,Math.min(c.size,b+e))]);break;case 0:b=AL(e[1],b,_.nK);kZc(a,d,e[0],b);break;case 1:b=new _.Dc(void 0,AL(e[1],b,_.Cc));kZc(a,d,e[0],b);break;case 2:a.dispatchEvent(new _.wyc(d,e[0],e[1]));break;default:throw Error("Mg");}}};
var nZc=function(a,b){if(0===a.length)throw new _.Dc("mutateUserPref requires a namespace.",_.pJ(3));var c=null;b instanceof _.WD?c=(b=(b=_.B(b,_.op,1))&&b.getKey())&&_.pp(b)||null:b instanceof _.VD&&(c=(b=b.getKey())&&_.pp(b)||null);if(!c||!a.find(function(d){return d===c}))throw new _.Dc("mutateUserPref unsupported for namespace: "+c,_.pJ(3));};
var oZc=function(a){this.H=a};
var RCc=function(a){mN.call(this,"IS","drive.ds.sync.ItemServiceProxy",(pZc=_.ai()).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 _.Gn;this.Ka=new _.Gn;this.V=pZc;pZc=void 0;this.context=a;lXc(this.context,new KYc(this.V.promise));GFc(this.context.Mg,_.fe(this.context.Nc,28));this.H=this.context.mfa;this.O=new NXc(this.V.promise,this.context,this.H);this.Ab=new lZc(this.V.promise,this.context.YP);this.Ha=new IYc(this.V.promise,this.context);
this.Sc=new _.Ye(this);this.Ma(this.Sc);this.Sc.listen(this.context.Ck(),[].concat(_.Ad(Object.values(_.pC))),function(c){return void b.dispatchEvent(c)})},pZc;_.K(RCc,mN);
RCc.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.x1a()},function(){_.ZK(a.context.tk(),181008852)});var c=_.DK(this.context.Nc)?"(coldstart) ":"";this.context.Rf().info("drive.ds.sync.ItemServiceProxy","Initializing "+c+"with client build: "+this.context.Nc.Xi());var d=ZBc(this.context.Nc,this.ti(),_.JK(this.context.Mg));qZc(this,d);2===d.H?(c=new qN(new HXc,6,this.context.Rf()),CYc(c,d.O),this.Ka.resolve(c)):
tCc(this.Ha);this.context.Rf().info("drive.ds.sync.ItemServiceProxy","Connecting to worker: "+d.endpoint);d.channel.start();jXc(this.context,function(){return rZc(d.channel)})}return this.ta};
var rZc=function(a){return _.Oja([new _.Xh(function(b){a.isDisposed()||hM(a,"8.1",void 0,function(){a.dispose();b()})}),_.Hi(1E4)])},qZc=function(a,b){var c=b.channel;0===b.H?c.registerService("2.0",function(){return{uid:a.ti(),fds:_.JK(a.context.Mg)}}):c.registerService("1.1",function(){return sZc(a,b)});2===b.H?a.Ka.promise.then(function(){return void tZc(a,b)}):tZc(a,b);gM(c,"2.1",function(){return{dsc:a.context.Nc.Lc()}});gM(c,"2.2",function(d){"number"===typeof d.id?(a.V.resolve(new GXc(d.id,
c,a.context.Rf(),d.clients)),d.dsp&&uZc(c),d.ivd&&vZc(a,c)):(d=new _.Cc(JSON.parse(d.err)),a.va.reject(new _.Dc("Unable to initialize dataservice.",d)))});gM(c,"2.15",function(d){a.dispatchEvent(new tQc(d.dt))});gM(c,"2.5",function(d){a.context.Du(d.id)});gM(c,"2.6",function(d){a.context.Mj().Pl(d.os)});gM(c,"2.18",function(d){a.context.Mj().az(d.oois)});gM(c,"2.7",function(){a.ma=!1});gM(c,"2.8",function(d){a.context.Fa=d.au;a.dispatchEvent(new uGc(d.au?"pb":"qb"))});gM(c,"2.19",function(d){a.context.Ck().update(d.cs)});
gM(c,"2.9",function(d){var e=d.logName,f=d.level;d=_.Ft("[CSW %s] %s",d.totalTime,d.message);switch(f){case "config":a.context.Rf().config(e,d);break;case "fine":_.HK(a.context.Rf(),e,d,"fine");break;case "finer":_.HK(a.context.Rf(),e,d,"finer");break;case "finest":_.HK(a.context.Rf(),e,d,"finest");break;case "info":a.context.Rf().info(e,d);break;case "warning":case "severe":DFc(a.context.Rf(),e,d);break;default:DFc(a.context.Rf(),"drive.ds.sync.ItemServiceProxy","Unknown log level: "+f),DFc(a.context.Rf(),
e,d)}});gM(c,"2.10",function(d){return void a.z$(d)});gM(c,"2.12",function(){a.Qa=!0;sN(a)});gM(c,"2.14",function(){return a.kb.resolve()});gM(c,"2.16",function(){return a.$a=!0});gM(c,"2.17",function(d){a.context.Rf().info("drive.ds.sync.ItemServiceProxy","Prefetched request loaded for: "+d.t.join(","))})},tZc=function(a,b){1!==b.H&&2!==b.H||b.channel.send("8.5",sZc(a,b));hM(b.channel,"8.4",{dsc:a.context.Nc.Lc()});uZc(b.channel);vZc(a,b.channel)},uZc=function(a){_.n._DRIVE_dsp&&hM(a,"8.3",{dsp:wZc(_.n._DRIVE_dsp)});
_.n._DRIVE_dspc=function(b){if(_.n._DRIVE_dsp){var c=[];c[b]=_.n._DRIVE_dsp[b];hM(a,"8.3",{dsp:wZc(c)})}}},vZc=function(a,b){_.Q(a.context.Nc,24,!1)&&(_.n._DRIVE_ivd?hM(b,"8.2",{ivd:_.n._DRIVE_ivd}):void 0===_.n._DRIVE_ivd&&(_.n._DRIVE_ivdc=function(){_.n._DRIVE_ivd&&hM(b,"8.2",{ivd:_.n._DRIVE_ivd})}))},sZc=function(a,b){var c={};if(1===b.H){var d=new _.aQa(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}};RCc.prototype.ti=function(){var a=_.Lj(_.Lj(_.MI(this.context.Nc.clone(),28),44),91),b=new _.xI;b.update(_.BK(_.II(a)));b.update(String(_.fJ(_.II(a))));b.update(a.Lc());return _.msc(b.digest())};var wZc=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=RCc.prototype;_.g.z$=function(a){this.dispatchEvent(new _.Ec(new _.Dc(void 0,new _.Cc(JSON.parse(a.p)))))};
_.g.query=function(a){sN(this);BIc(this.context.xm,a,EFc(this.context.Mg));this.hF();var b=this.O.Vwa(a);this.Ta||(a=a.te(),a&&121===_.y(a,1)||(this.Ta=!0,this.Sc.listen(b,_.Oc,this.uMa)));return b};_.g.uMa=function(a){a=a.currentTarget;1===a.Bb()&&(this.Ha.H=this.$a,this.Sc.Yc(a,_.Oc,this.uMa))};_.g.Fq=function(a){sN(this);pGc(a);this.hF();return this.O.Swa(a)};
_.g.Uua=function(a,b){var c=this;sN(this);if(this.ka&&_.Zj(this.ka.ud(),a))return this.ka;this.ka=new TYc(a.clone(),this.context,function(d,e,f){return c.send("3.17",[d,e,f],function(h,k){return AL(h[0],k,sQc)})},b);_.n.setTimeout(function(){c.ka=null},3E3);return this.ka};
_.g.TFa=function(a,b){var c=this;sN(this);if(this.ha&&_.Zj(this.ha.ud(),a))return gZc(this.ha),this.ha;this.ha=new dZc(a,this.context,function(d){return c.send("3.18",[d],function(e,f){return AL(e[0],f,kPc)})},b);_.n.setTimeout(function(){c.ha=null},3E3);return this.ha};_.g.X$=function(a){sN(this);return _.ji(this.send("3.14",[a],function(b,c){return AL(b[0],c,RM)}))};_.g.k8=function(a){sN(this);return _.ji(this.send("3.15",[a],function(b,c){return AL(b[0],c,RM)}))};
_.g.ld=function(a){sN(this);!this.ma&&_.oK(a)&&(this.ma=!0);a=aCc(a);return _.ji(this.send("3.3",[a],function(b,c){return AL(b[0],c,_.nK)}))};_.g.LN=function(a){sN(this);a=kCc(a);return this.send("3.35",[a],function(b,c){return AL(b[0],c,_.tGc)})};_.g.Dz=function(a){sN(this);for(var b=0;b<a.length;b++)!this.ma&&_.oK(a[b])&&(this.ma=!0);a=dCc(a);return _.ji(this.send("3.4",[a],function(c,d){return RIc(c[0],d).get()}))};_.g.Rwa=function(){sN(this);return mZc(this.Ab)};
_.g.lSa=function(a){sN(this);return new JYc(this.V.promise,a)};_.g.xr=function(a,b){var c=this;sN(this);var d=_.Vg();this.H.create(d,a);return _.ji(this.send("3.5",[a,!!b],function(e,f){f=AL(e[0],f,jM);return new _.UK(f,e[1],e[2])})).addCallback(function(e){kJc(c.H,d,e);return e.response}).Sg(function(e){iM(c.H,d);return e})};_.g.wr=function(a){sN(this);return this.send("3.10",[a],function(b,c){return AL(b[0],c,hPc)})};
_.g.Z$=function(a){sN(this);return _.ji(this.send("3.11",[a],function(b,c){return AL(b[0],c,lPc)}))};_.g.i8=function(a){sN(this);return _.ji(this.send("3.12",[a],function(b,c){return AL(b[0],c,lPc)}))};_.g.WS=function(a){sN(this);return _.ji(this.send("3.13",[a],function(b,c){return AL(b[0],c,lPc)}))};
_.g.lN=function(a,b){var c=this;sN(this);var d=_.Vg();this.H.create(d,a);return _.ji(this.send("3.1",[a,!!b],function(e,f){f=AL(e[0],f,_.VM);return new _.XK(f,e[1],e[2])})).addCallback(function(e){kJc(c.H,d,e);return e.response}).Sg(function(e){iM(c.H,d);return e})};
_.g.IG=function(a,b){var c=this,d=_.fe(this.context.Nc.ig(),30);if(!d||0===d.length)return _.ki(new _.Dc("getUserPrefs requires a namespace.",_.pJ(3)));0===_.fe(a,3).length&&uCc(a,d);sN(this);var e=_.Vg();this.H.create(e,a);return _.ji(this.send("3.2",[a,!!b],function(f,h){h=AL(f[0],h,_.gA);return new _.WK(h,f[1],f[2])})).addCallback(function(f){kJc(c.H,e,f);return f.response}).Sg(function(f){iM(c.H,e);return f})};
_.g.VR=function(a){sN(this);nZc(_.fe(this.context.Nc.ig(),30),a);a=hCc(a);return this.send("3.6",[a],function(b,c){return AL(b[0],c,mPc)})};_.g.lu=function(a){sN(this);return _.ji(this.send("3.16",[a],function(b,c){return AL(b[0],c,WFc)}))};_.g.DBa=function(){return this.ma};_.g.Pl=function(a){sN(this);this.send("3.8",[a])};_.g.az=function(a){sN(this);return _.Yh(this.send("3.36",[a],function(b){return!!b[0]}))};_.g.kY=function(a){sN(this);kXc(this.context).kY(a);this.az(!!a)};
_.g.hF=function(){sN(this);this.send("3.9",[])};_.g.XR=function(){sN(this);this.send("3.41",[]);this.context.XR();var a=JL(this.context.tk(),106006);a&&this.V.promise.then(function(b){var c=_.B(_.PK(a),fFc,6);if(!c){c=new fFc;var d=_.PK(a);_.I(d,6,c)}c=_.w(c,1,b.clientId);_.w(c,2,b.O);a.Aj()},function(){})};_.g.JB=function(){sN(this);return this.context.JB()};_.g.dQ=function(){sN(this);return _.Yh(this.send("3.19",[],function(a,b){return AL(a[0],b,WIc)}))};_.g.isConnected=function(){return this.context.Ck().isConnected()};
_.g.E7=function(){return this.send("3.46",[],function(a,b){return AL(a[0],b,_.Txc)})};_.g.v9=function(){return this.Ha};_.g.sync=function(){sN(this);return _.Yh(this.send("3.28",[]))};_.g.Fu=function(){return this.context.Fu()};_.g.hY=function(a){this.Ka.promise.then(function(b){return void b.hY(a)})};_.g.oda=function(a){sN(this);return this.O.bxa(a)};_.g.GY=function(a){sN(this);return this.O.axa(a)};_.g.QFa=function(a){sN(this);EIc(this.context.xm,a,EFc(this.context.Mg));return this.O.Ywa(a)};
_.g.xpa=function(a){sN(this);return new iZc(this.V.promise,a)};_.g.Fva=function(a){var b=this;sN(this);if(!this.W||this.W.isDisposed())this.W=new ZYc(a,this.context,function(c){return b.send("3.20",[c],function(d,e){return AL(d[0],e,mQc)})});return this.W};_.g.AGa=function(){this.W&&!this.W.isDisposed()?this.W.poll():_.Yh()};_.g.j8=function(a){sN(this);return _.ji(this.send("3.22",[a],function(b,c){return AL(b[0],c,nQc)}))};
_.g.qV=function(a){sN(this);return _.ji(this.send("3.25",[a],function(b,c){return AL(b[0],c,iQc)}))};_.g.oba=function(){return this.kb.promise};_.g.Dna=function(a){var b=_.ai();_.ji(this.send("3.30",[a],function(c,d){c[0]?b.resolve(AL(c[0],d,pQc)):b.reject(new _.Dc(void 0,AL(c[1],d,_.Cc)))})).Sg(function(c){return void b.reject(c)});return b.promise};_.g.fwa=function(a){sN(this);return this.O.Owa(a)};_.g.z7=function(a){sN(this);return this.send("3.42",[a],function(b,c){return AL(b[0],c,TOc)})};
_.g.TO=function(a){sN(this);var b=new _.Gn;this.send("3.39",[a],function(c,d){return c.map(function(e){return AL(e,d,zJc)})}).then(function(c){return void b.resolve(c)},function(c){return void b.reject(c)});return Promise.resolve(new oZc(b.promise))};_.g.kGa=function(a){var b=this;sN(this);return new MYc(this.context,a,function(c){return _.Yh(b.send("3.37",[c.request,c.pageToken],function(d,e){return new TIc(AL(d[0],e,SM),d[1])}))})};
_.g.lGa=function(a){sN(this);return this.send("3.38",[a],function(b,c){return AL(b[0],c,vPc)})};_.g.QKa=function(a){sN(this);return this.O.fxa(a)};_.g.tqa=function(a){sN(this);return this.O.exa(a)};_.g.iJa=function(a){var b=this;sN(this);return new NYc(this.context,a,function(){return _.Yh(b.send("3.40",[a],function(c,d){return AL(c[0],d,_.pL)}))})};_.g.jJa=function(a){sN(this);return this.O.Zwa(a)};_.g.u_=function(a){sN(this);this.send("3.43",[a])};
_.g.$_=function(a){sN(this);return _.Yh(this.send("3.44",[a],function(b,c){return AL(b[0],c,pHc)}))};_.g.Ro=function(a){sN(this);if(1!==_.CK(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.x1a=function(){var a=this;if(3===this.context.getEnvironment()){var b=[_.Hi(1E4,!1),this.send("3.29",[],function(c){return!!c[0]}).then()];_.Oja(b).then(function(c){c?_.Fi(a.x1a.bind(a),6E4):(a.Qa=!0,sN(a))})}};var sN=function(a){a.Qa&&a.dispatchEvent(new SQc)};
var TCc=function(a){aN.call(this,a);this.ha=this.ka=this.ta=null;this.kb=_.ai();this.H=a.Tm()};_.K(TCc,aN);TCc.prototype.YRa=function(){this.Ha=new TXc(this.context);this.Ma(this.Ha);this.Ka=new XXc(this.context);this.Ma(this.Ka);this.Qa=new dYc(this.context);this.Ma(this.Qa)};
TCc.prototype.$a=function(){var a=this,b=["hVFf7"];_.DK(this.context.Nc)&&b.push("BNEDtc");nM(this.O,b,function(){return void a.VWa()});nM(this.O,["T8oKm","ZA9qG"],function(){return void xZc(a)});nM(this.O,["T8oKm","mrK8ic"],function(){return void xZc(a)});this.Sc.listen(this.Ha,"WPi0i",this.zsa.bind(this,1));this.Sc.listen(this.Ka,"Mb",this.zsa.bind(this,2));this.Sc.listen(this.Qa,"WPi0i",this.zsa.bind(this,4));nM(this.O,["GZTDpc"],function(){return a.kb.resolve()})};var xZc=function(a){eN(a.context).addCallback(function(b){b.start()})};
_.g=TCc.prototype;_.g.zsa=function(a){_.ma(qHc,a)&&this.dispatchEvent(new tQc(a))};_.g.GY=function(a){return this.V.axa(a.clone())};_.g.QFa=function(a){EIc(this.context.xm,a,EFc(this.context.Mg));return this.V.Ywa(a.clone())};_.g.oda=function(a){return this.V.bxa(a.clone())};_.g.xpa=function(a){return new uYc(a,this.context.Tm())};
_.g.Uua=function(a,b){var c=this;if(this.ta&&_.Zj(this.ta.ud(),a))return this.ta;this.ta=new TYc(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 _.Buc(a,b,c);return _.ji(this.H.then(function(e){return e.Qe(d)}).Dg(function(e){return _.rJ(e)}))};_.g.Fva=function(a){var b=this;if(!this.ha||this.ha.isDisposed())this.ha=new ZYc(a,this.context,function(c){return yZc(b,c)});return this.ha};var yZc=function(a,b){return _.ji(a.H.then(function(c){return c.Qe(b)}).Dg(function(c){return _.rJ(c)}))};
_.g=TCc.prototype;_.g.AGa=function(){this.ha&&!this.ha.isDisposed()?this.ha.poll().then():_.Yh()};_.g.qV=function(a){return _.ji(this.H.then(function(b){return b.Qe(a)}))};_.g.j8=function(a){return _.ji(this.H.then(function(b){return b.Qe(a)}))};_.g.TFa=function(a,b){var c=this;if(this.ka&&_.Zj(this.ka.ud(),a))return gZc(this.ka),this.ka;this.ka=new dZc(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 _.XI(b.context.Nc)?FKc(b.context.Nf.wq,_.Oj(c.jd(),_.Rk,2),a.ud().getId()).then(function(){return c}):c},_.rJ)};_.g.X$=function(a){var b=this;return _.ji(this.H.then(function(c){return c.Qe(a)}).then(function(c){return _.XI(b.context.Nc)?FKc(b.context.Nf.wq,[_.B(c,_.Rk,2)],a.Ac()).then(function(){return c}):c},_.rJ))};
_.g.k8=function(a){return _.ji(this.H.then(function(b){return b.Qe(a)}).then(null,_.rJ))};_.g.fwa=function(a){return this.V.Owa(a.clone())};_.g.z7=function(a){return this.H.then(function(b){return b.Qe(a)}).then(null,_.rJ)};_.g.TO=function(a){return this.H.then(function(b){return b.Qe(a)}).then(function(b){var c=new _.Gn;QKc(a,b).then(function(d){return c.resolve(d)});return new oZc(c.promise)},function(b){return void _.rJ(b)})};_.g.kGa=function(a){var b=this;return new MYc(this.context,a,function(c){return b.H.then(function(d){return d.Qe(c)}).Dg(function(d){return _.rJ(d)})})};
_.g.lGa=function(a){return this.H.then(function(b){return b.Qe(a)}).then(null,_.rJ)};_.g.ld=function(a){return _.ji(this.H.then(function(b){return b.Qe(a)}).then(null,_.rJ))};_.g.LN=function(a){return this.H.then(function(b){return b.Qe(a)}).then(null,_.rJ)};_.g.Dz=function(a){var b=this,c=[],d=[];a.forEach(function(f){f instanceof _.tJ?c.push(String(f.Ac())):c.push(String(f.getId()));d.push(b.ld(f))});a=new _.vo(d);var e=new _.di;a.addCallback(this.cmb.bind(this,e,c));return e};
_.g.Rwa=function(){return new jYc(this.context.Nc,this.context.ZA,this.context.XQ().lfa,this.context.Tm(),this.context.YP,this.context.Rf(),this.context.tk())};_.g.xr=function(a,b){var c=this,d=_.Vg();this.W.create(d,a);3===a.getType()?a=aN.prototype.xr.call(this,a).addCallback(function(e){return new _.UK(e,1,!1)}):(oM(this.O,"Qubz4b"),a=this.Ka.enqueue(new bYc(a,b)));return a.addCallback(function(e){kJc(c.W,d,e);return e.response}).Sg(function(){iM(c.W,d)})};
_.g.wr=function(a){return _.ji(this.H.then(function(b){return b.Qe(a)}).then(null,_.rJ))};_.g.Z$=function(a){return _.ji(this.H.then(function(b){return b.Qe(a)}).then(null,_.rJ))};_.g.i8=function(a){return _.ji(this.H.then(function(b){return b.Qe(a)}).then(null,_.rJ))};_.g.WS=function(a){return _.ji(this.H.then(function(b){return b.Qe(a)}).then(null,_.rJ))};
_.g.lN=function(a,b){var c=this;oM(this.O,"iuEtc");var d=_.Vg();this.W.create(d,a);return this.Ha.enqueue(new VXc(a,b)).addCallback(function(e){kJc(c.W,d,e);return e.response}).Sg(function(){iM(c.W,d)})};
_.g.IG=function(a,b){var c=this,d=_.fe(this.context.Nc.ig(),30);if(!d||0===d.length)return _.ki(new _.Dc("getUserPrefs requires a namespace.",_.pJ(3)));0===_.fe(a,3).length&&uCc(a,d);var e=_.Vg();this.W.create(e,a);oM(this.O,"OZvrNc");return this.Qa.enqueue(new gYc(a,b)).addCallback(function(f){kJc(c.W,e,f);return f.response}).Sg(function(){iM(c.W,e)})};_.g.VR=function(a){nZc(_.fe(this.context.Nc.ig(),30),a);return _.ji(this.H.then(function(b){return b.Qe(a)}).then(null,_.rJ))};
_.g.lu=function(a){var b=this;return _.ji(this.H.then(function(c){return c.Qe(a)}).then(function(c){return _.XI(b.context.Nc)?DKc(b.context.Nf.wq,c):c},_.rJ))};_.g.QKa=function(a){return this.V.fxa(a.clone())};_.g.tqa=function(a){return this.V.exa(a.clone())};_.g.iJa=function(a){var b=this;return new NYc(this.context,a,function(c){return b.H.then(function(d){return d.Qe(c)}).Dg(function(d){return _.rJ(d)})})};_.g.jJa=function(a){return this.V.Zwa(a.clone())};
_.g.u_=function(a){KSc(this.context.Nf,[a])};_.g.$_=function(a){return this.H.then(function(b){return b.Qe(a)}).then(null,_.rJ)};_.g.Ro=function(a){if(1!==_.CK(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.Ro(a);uTc(this.context.Nf);return Promise.resolve()};_.g.DBa=function(){return this.context.XQ().eK()};
_.g.az=function(a){var b=this;return this.context.az(a).then(function(c){return c?(b.context.Mj().az(a),b.context.Js.kL()):_.Yh(!a)})};_.g.kY=function(a){kXc(this.context).kY(a);this.az(!!a)};_.g.hF=function(){eN(this.context).addCallback(function(a){a&&a.goa()});this.context.Vga.hF()};_.g.hY=function(a){a.HMa(this.context)};_.g.cmb=function(a,b,c){for(var d={},e=0;e<c.length;e++)d[b[e]]=c[e][1];uTc(this.context.Nf);a.callback(d)};
_.g.sync=function(){var a=this;return _.$h([this.context.U$.promise,this.context.nfa.promise]).then(function(){return a.context.Js.kL()}).then()};_.g.Fu=function(){eN(this.context).addCallback(function(a){a&&a.dispose()});return aN.prototype.Fu.call(this)};_.g.oba=function(){return this.kb.promise};
var zZc=function(){var a='<div class="'+_.E("la-r")+'">';a=a+'Ett fel uppstod. Ladda p\u00e5 nytt.</div><button class="'+(_.E("la-Y-A")+" "+_.E("kc-A")+'" data-target="reload">');return(0,_.F)(a+"L\u00e4s in igen</button>")};
_.En({id:_.im,callback:function(a){var b=_.bBc(a),c=WCc(a),d=_.B(a.get(_.hd),_.bc,10);_.fwc(d,b);_.Ij(d,28,c);b=UCc(a,d);a.registerService(_.jm,b.v9());_.xi(b,"VbxEwf",function(){var e={};_.Lc(_.Wt.getService(a),new _.wq(new _.vq(zZc,{}),"d",(e.reload=function(){_.n.window.location.reload()},e),4))});return b}});

_.u();

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

_.AZc=function(a,b){return _.I(a,17,b)};_.BZc=function(a,b){return _.w(a,2,b)};_.CZc=function(a,b){return _.w(a,1,b)};_.DZc=function(a,b){return _.I(a,2,b)};_.EZc=function(a,b){return _.Kj(a,1,b)};_.FZc=function(a,b){return _.Ij(a,1,b)};_.GZc=function(a,b){return _.Kj(a,2,b)};_.HZc=function(a,b){return _.I(a,3,b)};

_.u();

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