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


_.t();

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


_.t();

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


_.t();

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


_.t();

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


_.t();

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


_.t();

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


_.t();

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


_.t();

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


_.t();

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

_.bdc=function(a,b){return _.od(a,b)};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy11q");

_.Emb=function(a,b){a.filters.push(new _.du(1,b));return a};_.Fmb=function(a){a.approvalSummaries||(a.approvalSummaries=_.ISa(a.Wf,a.getItem().FAa));return a.approvalSummaries};_.Gmb=function(a){null===a.contentRestrictions&&(a.contentRestrictions=_.ISa(a.Wf,a.getItem().T1));return a.contentRestrictions};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy11r");


_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy12n");

_.GA=function(a){if(Array.isArray(a))return a.map(_.GA).join("");if(_.kl(a)){if(!a.getId())throw Error("Sd");return a.getId()+"/"+_.kl(a)+","}return""};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy14n");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Svb=function(a,b,c){_.Wq(a,b)&&(_.Td(a,b),_.Xq(a,c))};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy14o");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var Uvb;_.Tvb=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")};Uvb=function(a){var b=_.Caa(_.HFa,function(c){return a==c});if(void 0===b)throw Error("Jb`"+a);return b};_.Vvb=function(a,b){void 0!==a.name?(this.name=a.name,this.code=_.HFa[a.name]):(this.code=a=a.code,this.name=Uvb(a));_.ia.call(this,_.Tvb("%s %s",this.name,b))};_.lg(_.Vvb,_.ia);var Wvb=function(a,b){_.ni.call(this,a.type,b)};
_.lg(Wvb,_.ni);_.Xvb=function(){_.yi.call(this);this.H=new FileReader;this.H.onloadstart=(0,_.K)(this.c1,this);this.H.onprogress=(0,_.K)(this.c1,this);this.H.onload=(0,_.K)(this.c1,this);this.H.onabort=(0,_.K)(this.c1,this);this.H.onerror=(0,_.K)(this.c1,this);this.H.onloadend=(0,_.K)(this.c1,this)};_.lg(_.Xvb,_.yi);_.g=_.Xvb.prototype;_.g.abort=function(){try{this.H.abort()}catch(a){throw new _.Vvb(a,"aborting read");}};_.g.dk=function(){return this.H.result};
_.g.getError=function(){return this.H.error&&new _.Vvb(this.H.error,"reading file")};_.g.c1=function(a){this.dispatchEvent(new Wvb(a,this))};_.g.Ya=function(){_.Xvb.ub.Ya.call(this);delete this.H};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy151");

var kxb,nxb;kxb=[4,5,6,7];_.TB=function(a){_.G.call(this,a)};_.J(_.TB,_.G);_.TB.prototype.Cb=function(){return _.y(this,1)};_.TB.prototype.Dc=function(a){return _.u(this,1,a)};_.TB.prototype.iaa=function(){return _.y(this,2)};_.TB.prototype.Tb="JmcaR";_.lxb=function(a){_.G.call(this,a)};_.J(_.lxb,_.G);_.lxb.prototype.H=function(){return _.N(this,1)};_.lxb.prototype.Tb="dvhrqe";_.mxb=function(a){_.G.call(this,a)};_.J(_.mxb,_.G);_.mxb.prototype.Uo=function(){return _.y(this,2)};
_.mxb.prototype.J2=function(){return _.y(this,3)};nxb=[5];_.oxb=function(a){_.G.call(this,a)};_.J(_.oxb,_.G);_.oxb.prototype.H=function(){return _.N(this,4)};_.oxb.prototype.setActive=function(a){return _.u(this,4,a)};_.pxb=function(a){_.G.call(this,a,-1,nxb)};_.J(_.pxb,_.G);_.g=_.pxb.prototype;_.g.E_=function(){return _.y(this,1)};_.g.yU=function(){return _.y(this,3)};_.g.qK=function(){return _.yb(this,_.mxb,5)};_.g.yk=function(){return _.y(this,6)};_.g.nq=function(){return _.y(this,7)};
_.g.ZJ=function(){return _.y(this,9)};_.g.kt=function(){return _.y(this,10)};_.g.cK=function(){return _.x(this,_.oxb,12)};_.g.Mk=function(){return _.y(this,13)};_.g.Vw=function(){return _.y(this,16)};_.g.nCb=function(){return _.lj(this,16)};_.g.Hv=function(){return _.y(this,17)};_.g.Tb="dzR11e";_.qxb=function(a){_.G.call(this,a,-1,kxb)};_.J(_.qxb,_.G);_.qxb.prototype.ul=function(){return _.x(this,_.pxb,1)};_.qxb.prototype.tN=function(){return _.x(this,_.TB,8)};
_.qxb.prototype.H=function(){return _.x(this,_.lxb,9)};_.UB=function(a){_.G.call(this,a,-1,rxb)};_.J(_.UB,_.G);_.UB.prototype.getUser=function(){return _.x(this,_.vk,1)};_.UB.prototype.getMetadata=function(){return _.x(this,_.qxb,3)};_.UB.prototype.Eo=function(){return _.lj(this,3)};var rxb=[2];

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy152");

_.sxb=function(a,b,c,d,e,f,h){return(0,_.D)(_.un("b",b,!1)({fillColor:d,ab:c,color:"#000000",nb:!0,Ir:e,size:f,Rd:h},a))};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy153");

_.VB={XL:"bb",Jha:"cb",YU:"db",XU:"eb"};_.txb=new Map([[_.VB.XL,1],[_.VB.Jha,2],[_.VB.YU,2],[_.VB.XU,3]]);

_.t();

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


_.t();

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

_.Czb=function(a){a=parseInt(a.H()||"0",10);return 100<=a?"over":90<=a?"near":"under"};_.Ezb=function(a,b,c,d){var e=_.qf.getService(a);a=e.Yf(a,c);_.Dzb(a.H.Aj,b,d);e.Of(a)};_.Dzb=function(a,b,c){var d=new _.Fzb;b.MQ&&_.u(d,2,b.MQ);b.WE&&0<=b.WE&&_.u(d,1,b.WE);b.quotaType&&_.u(d,3,b.quotaType);_.Gzb(a,d);c&&(b=new _.Hzb,_.u(b,1,c),_.Izb(a,b))};_.Jzb=function(a){return isNaN(a)?0:100<=a?6:95<=a?5:90<=a?4:80<=a?3:70<=a?2:1};_.Gzb=function(a,b){b&&(a=a.Rc(),_.F(a,29,b))};
_.Izb=function(a,b){b&&(a=a.Rc(),_.F(a,38,b))};_.Fzb=function(a){_.G.call(this,a)};_.J(_.Fzb,_.G);_.Fzb.prototype.yk=function(){return _.y(this,3)};_.Hzb=function(a){_.G.call(this,a)};_.J(_.Hzb,_.G);_.Hzb.prototype.li=function(){return _.y(this,1)};
var Kzb;_.Lzb=function(a,b,c){var d=_.z(a.get(_.qEa),1,"");a=_.Czb(b);d=new _.Zi(d);a:switch(a){case "over":var e="o";break a;case "near":e="u";break a;default:e="m"}return _.aj(_.dj(_.dj(_.dj(_.dj(d,"i",e),"utm_source","drive"),"utm_medium","web"),"utm_campaign",Kzb(a,c)),-1!==parseInt(String(b.V()),10)?"upgrade":"")};
Kzb=function(a,b){switch(b){case "settings":return"settings";case "upload_dialog":return"upload_dialog_oos";case "widget":switch(a){case "over":return"widget_oos";case "near":return"widget_near_quota";default:return"widget_normal"}default:switch(a){case "near":case "over":return"upsell";default:return"manage"}}};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy17o");

_.SC=function(a){_.G.call(this,a)};_.J(_.SC,_.G);_.SC.prototype.wa=function(){return _.pj(this,1)};_.SC.prototype.V=function(){return _.pj(this,2)};_.SC.prototype.H=function(){return _.pj(this,3)};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy189");


_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy18f");


_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy18e");


_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy18h");


_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy198");

_.oD=function(a){_.G.call(this,a)};_.J(_.oD,_.G);_.oD.prototype.getKey=function(){return _.x(this,_.Kc,1)};_.oD.prototype.wt=function(){return _.lj(this,1)};_.oD.prototype.re=function(){return _.x(this,_.Qf,2)};
_.pD=function(a){_.G.call(this,a)};_.J(_.pD,_.G);_.pD.prototype.re=function(){return _.x(this,_.Qf,2)};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy199");

_.nD=function(a){_.G.call(this,a,-1,FCb)};_.J(_.nD,_.G);_.nD.prototype.re=function(){return _.x(this,_.Qf,1)};var FCb=[3];

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy19f");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.CD=function(a,b,c){_.L.call(this);this.Ym=null!=c?(0,_.K)(a,c):a;this.ka=b;this.og=(0,_.K)(this.fbb,this);this.O=!1;this.V=0;this.W=this.H=null;this.ha=[]};_.lg(_.CD,_.L);_.g=_.CD.prototype;_.g.oe=function(a){this.ha=arguments;this.O=!1;this.H?this.W=_.jg()+this.ka:this.H=_.Ai(this.og,this.ka)};_.g.stop=function(){this.H&&(_.Bi(this.H),this.H=null);this.W=null;this.O=!1;this.ha=[]};_.g.pause=function(){++this.V};
_.g.resume=function(){this.V&&(--this.V,!this.V&&this.O&&(this.O=!1,this.Ym.apply(null,this.ha)))};_.g.Ya=function(){this.stop();_.CD.ub.Ya.call(this)};_.g.fbb=function(){this.H&&(_.Bi(this.H),this.H=null);this.W?(this.H=_.Ai(this.og,this.W-_.jg()),this.W=null):this.V?this.O=!0:(this.O=!1,this.Ym.apply(null,this.ha))};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1c0");


_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1c1");

_.TF=function(a){_.G.call(this,a,-1,lVb)};_.J(_.TF,_.G);_.TF.prototype.getId=function(){return _.y(this,1)};_.TF.prototype.Nb=function(a){return _.u(this,1,a)};_.TF.prototype.Du=function(){return _.y(this,2)};_.TF.prototype.xK=function(){return _.lj(this,2)};var lVb=[5,6,9,10,12,13,15,16];
var mVb;_.UF=function(a){_.G.call(this,a,-1,mVb)};_.J(_.UF,_.G);_.UF.prototype.Fm=function(){return _.y(this,1)};_.nVb=function(a,b){return _.u(a,1,b)};mVb=[2,4];

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1c3");


_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1c4");

_.VF=function(a){_.G.call(this,a)};_.J(_.VF,_.G);_.VF.prototype.getName=function(){return _.y(this,1)};_.VF.prototype.$c=function(a){return _.u(this,1,a)};_.VF.prototype.re=function(){return _.x(this,_.Qf,2)};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1c5");

_.uVb=function(a){_.G.call(this,a)};_.J(_.uVb,_.G);_.uVb.prototype.vi=function(){return _.y(this,3)};_.uVb.prototype.Fi=function(a){return _.u(this,3,a)};_.uVb.prototype.re=function(){return _.x(this,_.Qf,5)};_.uVb.prototype.getCustomer=function(){return _.y(this,6)};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1c7");

var vVb;_.Hc=function(a){_.ni.call(this,_.ad);this.error=a};_.J(_.Hc,_.ni);_.WF=function(a){_.G.call(this,a,-1,vVb)};_.J(_.WF,_.G);_.WF.prototype.H=function(){return _.se(this,1)};_.XF=function(a,b){return _.qj(a,1,b)};_.WF.prototype.V=function(){return _.se(this,2)};_.YF=function(a,b){return _.qj(a,2,b)};_.WF.prototype.re=function(){return _.x(this,_.Qf,3)};_.ZF=function(a,b){return _.F(a,3,b)};_.wVb=function(a,b){return _.u(a,5,b)};vVb=[1,2,6,11];

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1c9");

_.$F=function(a){_.G.call(this,a)};_.J(_.$F,_.G);_.g=_.$F.prototype;_.g.vi=function(){return _.y(this,1)};_.g.Fi=function(a){return _.u(this,1,a)};_.g.getTitle=function(){return _.y(this,2)};_.g.setTitle=function(a){return _.u(this,2,a)};_.g.re=function(){return _.x(this,_.Qf,3)};_.g.Yq=function(){return _.y(this,4)};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1c8");

_.aG=function(a){_.G.call(this,a,-1,xVb)};_.J(_.aG,_.G);_.aG.prototype.H=function(){return _.se(this,1)};_.aG.prototype.V=function(){return _.se(this,2)};_.aG.prototype.re=function(){return _.x(this,_.Qf,3)};var xVb=[1,2];

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1ca");

_.bG=function(a){_.G.call(this,a,-1,yVb)};_.J(_.bG,_.G);_.zVb=function(a,b){return _.qj(a,1,b)};_.bG.prototype.re=function(){return _.x(this,_.Qf,2)};var yVb=[1,3];

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1cc");

_.cG=function(a,b){return _.u(a,4,b)};_.AVb=function(a,b){return _.u(a,25,b)};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1c6");


_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1ck");

_.iG=function(a){_.G.call(this,a)};_.J(_.iG,_.G);_.iG.prototype.qc=function(){return _.y(this,1)};_.tWb=function(a){var b=new _.iG;return _.u(b,1,a)};_.iG.prototype.vi=function(){return _.y(this,2)};_.iG.prototype.Fi=function(a){return _.u(this,2,a)};_.iG.prototype.re=function(){return _.x(this,_.Qf,3)};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1fp");

_.OH=function(a){_.G.call(this,a)};_.J(_.OH,_.G);_.OH.prototype.re=function(){return _.x(this,_.Qf,1)};_.PH=function(a,b){return _.F(a,1,b)};_.OH.prototype.dh=function(){return _.y(this,4)};_.OH.prototype.OJa=function(a){return _.u(this,4,a)};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1fr");


_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1g0");

var cdc;_.QH=function(a){_.G.call(this,a,-1,cdc)};_.J(_.QH,_.G);_.QH.prototype.H=function(){return _.se(this,1)};_.QH.prototype.re=function(){return _.x(this,_.Qf,2)};_.ddc=function(a,b){return _.F(a,2,b)};_.QH.prototype.vi=function(){return _.Dj(this,3,20)};_.QH.prototype.Fi=function(a){return _.u(this,3,a)};_.edc=function(a,b){return _.u(a,4,b)};cdc=[1];

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1gd");

/*

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

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1ge");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.hdc=function(a){_.L.call(this);this.O=a;this.H={};this.O.SO((0,_.K)(this.V,this))};_.lg(_.hdc,_.L);_.jdc=function(a,b){if(-1!=b.indexOf(":"))throw Error("df`"+b);if(b in a.H)throw Error("ef`"+b);var c=new idc(a,b);return a.H[b]=c};_.hdc.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)}};_.hdc.prototype.Ya=function(){_.Ta(this.H,function(a){_.ca(a)});_.ca(this.O);delete this.H;delete this.O};
var idc=function(a,b){_.L.call(this);this.Hg=a;this.H=b};_.lg(idc,_.L);_.g=idc.prototype;_.g.connect=function(a){a&&a()};_.g.isConnected=function(){return!0};_.g.registerService=function(a,b,c){this.Hg.O.registerService(this.H+":"+a,(0,_.K)(this.IVa,this,b),c)};_.g.SO=function(a){this.O=(0,_.K)(this.IVa,this,a)};_.g.send=function(a,b){if(this.isDisposed())throw Error("ff");this.Hg.O.send(this.H+":"+a,b)};_.g.IVa=function(a,b){this.isDisposed()||a.apply({},Array.prototype.slice.call(arguments,1))};
_.g.Ya=function(){this.Hg=this.Hg.H[this.H]=null};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1gf");

/*

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

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1gg");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var ndc,SH,odc,UH,qdc,pdc;ndc=function(a){null!==a&&"removeAttribute"in a&&a.removeAttribute(_.Zga);try{delete a[_.Zga]}catch(b){}};
SH=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(_.Ea(f)){f[_.Zga]||c.push(f);var l=_.Fa(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++)ndc(c[a]);return b.join("")};_.TH=function(a,b,c){if("number"===typeof a)var d={name:pdc(a)};else d=a,a=qdc(a.name);this.code=a;this.O=d;b="Error "+b+": "+this.getName();c&&(b+=", "+c);_.ia.call(this,b)};_.lg(_.TH,_.ia);_.TH.prototype.getName=function(){return this.O.name||""};
UH={ulb:1,Akb:2,NOT_FOUND_ERR:3,I$a:4,N$a:5,Ckb:6,plb:7,ABORT_ERR:8,Skb:9,i$b:10,TIMEOUT_ERR:11,Pkb:12,INVALID_ACCESS_ERR:13,INVALID_STATE_ERR:14};_.rdc=(_.aa.H||_.aa.O||UH).ulb;_.sdc=(_.aa.H||_.aa.O||UH).Akb;_.tdc=(_.aa.H||_.aa.O||UH).NOT_FOUND_ERR;_.udc=(_.aa.H||_.aa.O||UH).I$a;_.vdc=(_.aa.H||_.aa.O||UH).N$a;_.wdc=(_.aa.H||_.aa.O||UH).Ckb;_.xdc=(_.aa.H||_.aa.O||UH).plb;_.ydc=(_.aa.H||_.aa.O||UH).ABORT_ERR;_.zdc=(_.aa.H||_.aa.O||UH).Skb;_.Adc=(_.aa.H||_.aa.O||UH).TIMEOUT_ERR;
_.Bdc=(_.aa.H||_.aa.O||UH).Pkb;_.Cdc=(_.aa.DOMException||UH).INVALID_ACCESS_ERR;_.Ddc=(_.aa.DOMException||UH).INVALID_STATE_ERR;
qdc=function(a){switch(a){case "UnknownError":return _.rdc;case "NotFoundError":return _.tdc;case "ConstraintError":return _.udc;case "DataError":return _.vdc;case "TransactionInactiveError":return _.xdc;case "AbortError":return _.ydc;case "ReadOnlyError":return _.zdc;case "TimeoutError":return _.Adc;case "QuotaExceededError":return _.Bdc;case "InvalidAccessError":return _.Cdc;case "InvalidStateError":return _.Ddc;default:return _.rdc}};
pdc=function(a){switch(a){case _.rdc:return"UnknownError";case _.tdc:return"NotFoundError";case _.udc:return"ConstraintError";case _.vdc:return"DataError";case _.xdc:return"TransactionInactiveError";case _.ydc:return"AbortError";case _.zdc:return"ReadOnlyError";case _.Adc:return"TimeoutError";case _.Bdc:return"QuotaExceededError";case _.Cdc:return"InvalidAccessError";case _.Ddc:return"InvalidStateError";default:return"UnknownError"}};
_.VH=function(a,b){return"error"in a?new _.TH(a.error,b):new _.TH({name:"UnknownError"},b)};_.WH=function(a,b){if("name"in a)return b=b+": "+a.message,new _.TH(a,b);if("code"in a){var c=pdc(a.code);b=b+": "+a.message;return new _.TH({name:c},b)}return new _.TH({name:"UnknownError"},b)};
_.Edc=function(a){this.H=a};_.Fdc=_.aa.IDBKeyRange||_.aa.webkitIDBKeyRange;_.Edc.prototype.range=function(){return this.H};
var Gdc=function(a){this.H=a};Gdc.prototype.getName=function(){return this.H.name};var Hdc=function(a,b,c,d){var e=new _.$h;try{var f=a.H[b](d)}catch(h){return c+=" with key "+SH(d),e.Gd(_.WH(h,c)),e}f.onsuccess=function(h){e.callback(h.target.result)};f.onerror=function(h){c+=" with key "+SH(d);e.Gd(_.VH(h.target,c))};return e};Gdc.prototype.get=function(a){return Hdc(this,"get","getting from index "+this.getName(),a)};
Gdc.prototype.getKey=function(a){return Hdc(this,"getKey","getting key from index "+this.getName(),a)};Gdc.prototype.getAll=function(a,b){return _.Idc(this,"getAll","getting all from index "+this.getName(),a,b)};
_.Idc=function(a,b,c,d,e){var f;void 0===d?f=void 0:f=d instanceof _.Edc?d.range():(new _.Edc(_.Fdc.only(d))).range();var h=new _.$h;try{var k=a.H[b](f,e)}catch(l){return c+=" for range "+(f?SH(f):"<all>"),h.Gd(_.WH(l,c)),h}k.onsuccess=function(){h.callback(k.result)};k.onerror=function(l){c+=" for range "+(f?SH(f):"<all>");h.Gd(_.VH(l.target,c))};return h};
var Jdc=function(a){this.H=a};Jdc.prototype.getName=function(){return this.H.name};var Kdc=function(a,b,c,d,e){var f=new _.$h;try{var h=e?a.H[b](d,e):a.H[b](d)}catch(k){return c+=SH(d),e&&(c+=", with key "+SH(e)),f.Gd(_.WH(k,c)),f}h.onsuccess=function(k){f.callback(k.target.result)};h.onerror=function(k){c+=SH(d);e&&(c+=", with key "+SH(e));f.Gd(_.VH(k.target,c))};return f};_.g=Jdc.prototype;_.g.put=function(a,b){return Kdc(this,"put","putting into "+this.getName()+" with value",a,b)};
_.g.add=function(a,b){return Kdc(this,"add","adding into "+this.getName()+" with value ",a,b)};_.g.remove=function(a){var b=new _.$h;try{var c=this.H["delete"](a instanceof _.Edc?a.range():a)}catch(e){return c="removing from "+this.getName()+" with key "+SH(a),b.Gd(_.WH(e,c)),b}c.onsuccess=function(){b.callback()};var d=this;c.onerror=function(e){var f="removing from "+d.getName()+" with key "+SH(a);b.Gd(_.VH(e.target,f))};return b};
_.g.get=function(a){var b=new _.$h;try{var c=this.H.get(a)}catch(e){return c="getting from "+this.getName()+" with key "+SH(a),b.Gd(_.WH(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 "+SH(a);b.Gd(_.VH(e.target,f))};return b};_.g.getAll=function(a,b){return Ldc(this,"getting all from index "+this.getName(),a,b)};
var Ldc=function(a,b,c,d){var e;void 0===c?e=void 0:e=c instanceof _.Edc?c.range():(new _.Edc(_.Fdc.only(c))).range();var f=new _.$h;try{var h=a.H.getAll(e,d)}catch(k){return b+=" for range "+(e?SH(e):"<all>"),f.Gd(_.WH(k,b)),f}h.onsuccess=function(){f.callback(h.result)};h.onerror=function(k){b+=" for range "+(e?SH(e):"<all>");f.Gd(_.VH(k.target,b))};return f};
Jdc.prototype.clear=function(){var a="clearing store "+this.getName(),b=new _.$h;try{var c=this.H.clear()}catch(d){return b.Gd(_.WH(d,a)),b}c.onsuccess=function(){b.callback()};c.onerror=function(d){b.Gd(_.VH(d.target,a))};return b};Jdc.prototype.getIndex=function(a){try{return new Gdc(this.H.index(a))}catch(b){throw _.WH(b,"getting index "+a);}};
Jdc.prototype.count=function(a){var b=new _.$h;try{var c=this.H.count(a?a.range():null);c.onsuccess=function(e){b.callback(e.target.result)};var d=this;c.onerror=function(e){b.Gd(_.VH(e.target,d.getName()))}}catch(e){b.Gd(_.WH(e,this.getName()))}return b};
var Mdc=function(a,b){_.yi.call(this);this.H=a;this.O=b;this.Eb=new _.of(this);this.Eb.listen(this.H,"complete",(0,_.K)(this.dispatchEvent,this,"complete"));this.Eb.listen(this.H,"abort",(0,_.K)(this.dispatchEvent,this,"abort"));this.Eb.listen(this.H,"error",this.Ibb)};_.lg(Mdc,_.yi);_.g=Mdc.prototype;_.g.Ibb=function(a){a.target instanceof _.TH?this.dispatchEvent({type:"error",target:a.target}):this.dispatchEvent({type:"error",target:_.VH(a.target,"in transaction")})};_.g.Eg=function(){return this.H.mode};
_.g.objectStore=function(a){try{return new Jdc(this.H.objectStore(a))}catch(b){throw _.WH(b,"getting object store "+a);}};_.g.commit=function(a){if(this.H.commit||!a)try{this.H.commit()}catch(b){throw _.WH(b,"cannot commit the transaction");}};
_.g.wait=function(){var a=new _.$h;_.ri(this,"complete",(0,_.K)(a.callback,a));var b=_.ri(this,"abort",function(){_.ui(c);a.Gd(new _.TH(_.ydc,"waiting for transaction to complete"))});var c=_.ri(this,"error",function(e){_.ui(b);a.Gd(e.target)});var d=this.O;return a.addCallback(function(){return d})};_.g.abort=function(){this.H.abort()};_.g.Ya=function(){Mdc.ub.Ya.call(this);this.Eb.dispose()};
var Ndc=function(a){_.yi.call(this);this.H=a;this.Eb=new _.of(this);this.Eb.listen(this.H,"abort",(0,_.K)(this.dispatchEvent,this,"abort"));this.Eb.listen(this.H,"error",this.Jbb);this.Eb.listen(this.H,"versionchange",this.Crb);this.Eb.listen(this.H,"close",(0,_.K)(this.dispatchEvent,this,"close"))};_.lg(Ndc,_.yi);_.g=Ndc.prototype;_.g.Cta=!0;_.g.Jbb=function(a){a=(a=a.target)&&a.error;this.dispatchEvent({type:"error",errorCode:a&&a.severity})};
_.g.Crb=function(a){this.dispatchEvent(new Odc(a.oldVersion,a.newVersion))};_.g.close=function(){this.Cta&&(this.H.close(),this.Cta=!1)};_.g.Ag=function(){return this.Cta};_.g.getName=function(){return this.H.name};_.g.mj=function(){return Number(this.H.version)};_.Pdc=function(a,b,c){try{return new Jdc(a.H.createObjectStore(b,c))}catch(d){throw _.WH(d,"creating object store "+b);}};
_.Qdc=function(a,b,c){try{var d=c?a.H.transaction(b,c):a.H.transaction(b);return new Mdc(d,a)}catch(e){throw _.WH(e,"creating transaction");}};Ndc.prototype.Ya=function(){Ndc.ub.Ya.call(this);this.Eb.dispose()};var Odc=function(a,b){_.ni.call(this,"versionchange");this.oldVersion=a;this.newVersion=b};_.lg(Odc,_.ni);
_.Rdc=function(){void 0==odc&&(odc=_.aa.indexedDB||_.aa.mozIndexedDB||_.aa.webkitIndexedDB||_.aa.moz_indexedDB);return odc};
_.Sdc=function(a,b,c,d){var e=new _.$h;b=b?_.Rdc().open(a,b):_.Rdc().open(a);b.onsuccess=function(f){f=new Ndc(f.target.result);e.callback(f)};b.onerror=function(f){e.Gd(_.VH(f.target,"opening database "+a))};b.onupgradeneeded=function(f){if(c){var h=new Ndc(f.target.result);c(new Odc(f.oldVersion,f.newVersion),h,new Mdc(f.target.transaction,h))}};b.onblocked=function(f){d&&d(new Odc(f.oldVersion,f.newVersion))};return e};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1gh");

/*

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

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1gb");

_.Tdc=function(a,b,c){_.rma(a.url,function(d){d=d.target;d.qA()?b(d.Vk()):c(d.Cb())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)};_.Udc=function(a,b,c,d){return _.z(a,1).split("/").pop()==d?(d=_.y(a,2),Array.isArray(d)?new b(d):c(_.tb(a.Wa()))):null};_.Wdc=function(a){_.G.call(this,a,-1,Vdc)};_.J(_.Wdc,_.G);var Vdc=[2];
_.Xdc=function(a){_.G.call(this,a)};_.J(_.Xdc,_.G);var Ydc=function(){var a=new _.Xdc,b=document.documentElement.getAttribute("lang");return _.u(a,5,b)};_.Xdc.prototype.Ki=function(){return _.y(this,7)};
_.Zdc=function(a){_.G.call(this,a)};_.J(_.Zdc,_.G);
var $dc;_.ZH=function(a){_.G.call(this,a,31,$dc)};_.J(_.ZH,_.G);_.$H=function(a,b){return _.u(a,8,b)};$dc=[3,20,27];
var bec=function(a){_.G.call(this,a,17,aec)};_.J(bec,_.G);var cec=function(a){var b=Date.now().toString();return _.u(a,4,b)},dec=function(a,b){return _.sj(a,3,b)},eec=function(a,b){return _.u(a,14,b)},aec=[3,5];
var gec=function(a){_.G.call(this,a,6,fec)};_.J(gec,_.G);var fec=[5];
var hec=function(a){_.G.call(this,a)};_.J(hec,_.G);
var iec=_.Eb(175237375,hec);
_.aI=function(a,b,c,d,e,f,h,k,l,p,q){_.yi.call(this);var r=this;this.Ia="";this.O=[];this.Ec="";this.Gb=this.Kb=this.ha=!1;this.Nc=this.ob=-1;this.Qb=!1;this.Ba=this.V=null;this.ta=0;this.ke=1;this.timeoutMillis=0;this.kb=!1;_.yi.call(this);this.Uc=a;this.jc=b||_.hg;this.ka=new bec;this.Ad=d;this.yb=q;this.ee=_.Ob(_.Bja,0,1);this.wa=e||null;this.Ga=c||null;this.Qa=h||!1;this.$a=l||null;this.Xf=null;this.withCredentials=!k;this.tc=f||!1;this.Qd=!this.tc&&(_.jj.wo&&_.Rb(65)||_.jj.gv&&_.Rb(45)||_.jj.vx&&
_.Rb(12)||_.Sa()&&0<=_.Ra(_.zaa(),12))&&!!_.Of()&&!!_.Of().navigator&&!!_.Of().navigator.sendBeacon;a=_.u(new _.Zdc,1,1);f||(f=Ydc(),_.F(a,11,f));_.F(this.ka,1,a);_.u(this.ka,2,this.Uc);this.ma=new _.XH(1E4,3E5,.1);this.H=new _.zi(this.ma.Wa());this.Ja(this.H);_.df(this.H,"tick",_.hha(jec(this,p)),!1,this);this.La=new _.zi(6E5);this.Ja(this.La);_.df(this.La,"tick",_.hha(jec(this,p)),!1,this);this.Qa||this.La.start();this.tc||(_.df(document,"visibilitychange",function(){"hidden"===document.visibilityState&&
r.Ua()}),_.df(document,"pagehide",this.Ua,!1,this))};_.J(_.aI,_.yi);var jec=function(a,b){return b?function(){b().then(a.flush.bind(a))}:a.flush};_.aI.prototype.Ya=function(){this.Ua();_.yi.prototype.Ya.call(this)};var kec=function(a){a.wa||(a.wa=.01>a.ee()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.wa};_.aI.prototype.W=function(a){a instanceof _.ZH?this.log(a):(a=_.$H(new _.ZH,a.Hc()),this.log(a))};
_.lec=function(a,b){b?(a.V||(a.V=new _.Wdc),b=b.Hc(),_.u(a.V,4,b)):a.V&&_.vb(a.V,4)};_.mec=function(a){a.Kb=a.Qd};_.nec=function(a,b){a.ma=new _.XH(1>b?1:b,3E5,.1);a.H.setInterval(a.ma.Wa())};
_.aI.prototype.log=function(a){a=a.clone();var b=this.ke++;_.u(a,21,b);this.Ia&&_.u(a,26,this.Ia);if(!_.y(a,1)){b=a;var c=Date.now().toString();_.u(b,1,c)}_.lj(a,15)||_.u(a,15,60*(new Date).getTimezoneOffset());this.V&&(b=this.V.clone(),_.F(a,16,b));for(;1E3<=this.O.length;)this.O.shift(),++this.ta;this.O.push(a);this.dispatchEvent(new oec(a));this.Qa||this.H.enabled||this.H.start()};
_.aI.prototype.flush=function(a,b){var c=this;if(0===this.O.length)a&&a();else if(this.kb)pec(this);else{var d=Date.now();if(this.Nc>d&&this.ob<d)b&&b("throttled");else{var e=eec(dec(cec(this.ka.clone()),this.O),this.ta);d={};var f=this.jc();f&&(d.Authorization=f);var h=kec(this);this.Ga&&(d["X-Goog-AuthUser"]=this.Ga,h=_.Si(h,"authuser",this.Ga));this.$a&&(d["X-Goog-PageId"]=this.$a,h=_.Si(h,"pageId",this.$a));if(f&&this.Ec===f)b&&b("stale-auth-token");else if(this.O=[],this.H.enabled&&this.H.stop(),
this.ta=0,this.ha)a&&a();else{var k=e.Hc(),l;this.Ba&&this.Ba.Ju(k.length)&&(l=this.Ba.bbc(k));var p={url:h,body:k,Lnb:1,requestHeaders:d,requestType:"POST",withCredentials:this.withCredentials,timeoutMillis:this.timeoutMillis},q=function(w){c.ma.reset();c.H.setInterval(c.ma.Wa());if(w){var A=null;try{var B=JSON.parse(w.replace(")]}'\n",""));A=new gec(B)}catch(E){}A&&(w=Number(_.kna(A,1,"-1")),0<w&&(c.ob=Date.now(),c.Nc=c.ob+w),A=_.Aj(A,iec))&&(A=_.Dj(A,1,-1),-1!=A&&(c.Qb||_.nec(c,A)))}a&&a()},r=
function(w){var A=_.yb(e,_.ZH,3);_.YH(c.ma);c.H.setInterval(c.ma.Wa());401===w&&f&&(c.Ec=f);if(500<=w&&600>w||401===w||0===w)c.O=A.concat(c.O),c.Qa||c.H.enabled||c.H.start();b&&b("net-send-failed",w)},v=function(){c.yb?c.yb.send(p,q,r):c.Ad(p,q,r)};l?l.then(function(w){p.requestHeaders["Content-Encoding"]="gzip";p.requestHeaders["Content-Type"]="application/binary";p.body=w;p.Lnb=2;v()},function(){v()}):v()}}}};_.aI.prototype.Ua=function(){this.ha||(this.Kb&&pec(this),this.Gb&&qec(this),this.flush())};
var pec=function(a){rec(a,32,10,function(b,c){b=_.Si(b,"format","json");b=_.Of().navigator.sendBeacon(b,c.Hc());a.kb&&!b&&(a.kb=!1);return b})},qec=function(a){rec(a,6,5,function(b,c){b=_.Qi(b,"format","base64json","p",_.kj(c.Hc(),3));if(15360<b.length)return!1;_.$g(new Image,b);return!0})},rec=function(a,b,c,d){if(0!==a.O.length){var e=_.mma(kec(a),"format");e=_.Qi(e,"auth",a.jc(),"authuser",a.Ga||"0");for(var f=0;f<c&&a.O.length;++f){var h=a.O.slice(0,b),k=dec(cec(a.ka.clone()),h);0===f&&eec(k,
a.ta);if(!d(e,k))break;a.O=a.O.slice(h.length)}a.H.enabled&&a.H.stop();a.ta=0}},oec=function(){_.ni.call(this,"event-logged",void 0)};_.J(oec,_.ni);

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1gc");

var sec=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,w=0;64>w;w+=4)v[w/4]=r[w]<<24|r[w+1]<<16|r[w+2]<<8|r[w+3];for(w=16;80>w;w++)r=v[w-3]^v[w-8]^v[w-14]^v[w-16],v[w]=(r<<1|r>>>31)&4294967295;r=e[0];var A=e[1],B=e[2],E=e[3],I=e[4];for(w=0;80>w;w++){if(40>w)if(20>w){var M=E^A&(B^E);var P=1518500249}else M=A^B^E,P=1859775393;else 60>w?(M=A&B|E&(A|B),P=2400959708):(M=A^B^E,P=3395469782);M=((r<<5|r>>>27)&4294967295)+
M+I+P+v[w]&4294967295;I=E;E=B;B=(A<<30|A>>>2)&4294967295;A=r;r=M}e[0]=e[0]+r&4294967295;e[1]=e[1]+A&4294967295;e[2]=e[2]+B&4294967295;e[3]=e[3]+E&4294967295;e[4]=e[4]+I&4294967295}function c(r,v){if("string"===typeof r){r=unescape(encodeURIComponent(r));for(var w=[],A=0,B=r.length;A<B;++A)w.push(r.charCodeAt(A));r=w}v||(v=r.length);w=0;if(0==p)for(;w+64<v;)b(r.slice(w,w+64)),w+=64,q+=64;for(;w<v;)if(f[p++]=r[w++],q++,64==p)for(p=0,b(f);w+64<v;)b(r.slice(w,w+64)),w+=64,q+=64}function d(){var r=[],
v=8*q;56>p?c(k,56-p):c(k,64-(p-56));for(var w=63;56<=w;w--)f[w]=v&255,v>>>=8;b(f);for(w=v=0;5>w;w++)for(var A=24;0<=A;A-=8)r[v++]=e[w]>>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="",w=0;w<r.length;w++)v+="0123456789ABCDEF".charAt(Math.floor(r[w]/16))+"0123456789ABCDEF".charAt(r[w]%16);return v}}},tec=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("gf`"+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("hf`"+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 vec=function(a,b,c){var d=String(_.aa.location.href);return d&&a&&b?[b,uec(tec(d),a,c||null)].join(" "):null},uec=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],_.Ma(d,function(k){e.push(k)}),wec(e.join(" "));var f=[],h=[];_.Ma(c,function(k){h.push(k.key);f.push(k.value)});c=Math.floor((new Date).getTime()/1E3);e=_.qa(f)?[c,b,a]:[f.join(":"),c,b,a];_.Ma(d,function(k){e.push(k)});a=wec(e.join(" "));a=[c,a];_.qa(h)||a.push(h.join(""));return a.join("_")},wec=function(a){var b=
sec();b.update(a);return b.digestString().toLowerCase()};
var xec={};
var yec,Aec;yec=function(a){return!!xec.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};_.zec=function(a){a=void 0===a?!1:a;var b=_.aa.__SAPISID||_.aa.__APISID||_.aa.__3PSAPISID||_.aa.__OVERRIDE_SID;yec(a)&&(b=b||_.aa.__1PSAPISID);if(b)return!0;var c=new _.bOa(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID");yec(a)&&(b=b||c.get("__Secure-1PAPISID"));return!!b};Aec=function(a,b,c,d){(a=_.aa[a])||(a=(new _.bOa(document)).get(b));return a?vec(a,c,d):null};
_.Bec=function(a,b){b=void 0===b?!1:b;var c=tec(String(_.aa.location.href)),d=[];if(_.zec(b)){c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:");var e=c?_.aa.__SAPISID:_.aa.__APISID;e||(e=new _.bOa(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?vec(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&yec(b)&&((b=Aec("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=Aec("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",
a))&&d.push(a))}return 0==d.length?null:d.join(" ")};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1gi");

_.Cec=function(a,b){this.ka=a;this.wa=b;this.V="https://play.google.com/log?format=json&hasfast=true";this.W=!1;this.ma=_.Tdc;this.H=""};
_.Cec.prototype.build=function(){var a=new _.aI(this.ka,this.La?this.La:_.Bec,this.wa,this.ma,this.V,this.W,!1,void 0,void 0,void 0,this.ta?this.ta:void 0);if(this.Ga){var b=this.Ga;_.y(b,1)||_.u(b,1,1);_.F(a.ka,1,b)}if(this.O){b=this.O;var c=_.x(a.ka,_.Zdc,1),d=_.x(c,_.Xdc,11);d||(d=new _.Xdc);_.u(d,7,b);_.F(c,11,d);_.y(c,1)||_.u(c,1,1);_.F(a.ka,1,c)}this.ha&&(a.Ba=this.ha);this.H&&(a.Ia=this.H);this.Ba&&_.lec(a,this.Ba);this.Qa&&(b=this.Qa,a.V||(a.V=new _.Wdc),_.qj(a.V,2,b));this.Ia&&(b=this.Ia,
a.Qb=!0,_.nec(a,b));return a};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1gj");

_.Dec=function(a,b,c){a.O[b.getId()]=c;a.H&&c.O(a.H)};_.Eec=function(a){var b;this.O=(b=void 0===b?!1:b)?null:a;this.H=b?a:null};_.Eec.prototype.NA=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=_.$H(new _.ZH,a.Hc());b(a);return new _.Uh(function(d){c(d,function(){d()})}.bind(this))};
_.Fec=function(a){var b;this.O=(b=void 0===b?!1:b)?null:a;this.H=b?a:null;this.O&&_.mec(this.O)};_.Fec.prototype.NA=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=_.$H(new _.ZH,a.Hc());b(a);c()};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1g7");


_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1g6");

var Gec;Gec=[1];_.bI=function(a){_.G.call(this,a,-1,Gec)};_.J(_.bI,_.G);_.bI.prototype.H=function(){return _.se(this,1)};_.Hec=function(a,b){return _.qj(a,1,b)};_.cI=function(a){_.G.call(this,a)};_.J(_.cI,_.G);_.g=_.cI.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Nb=function(a){return _.u(this,1,a)};_.g.getTitle=function(){return _.y(this,2)};_.g.setTitle=function(a){return _.u(this,2,a)};_.g.getState=function(){return _.y(this,5)};_.g.Id=function(a){return _.u(this,5,a)};
_.g.xt=function(){return _.lj(this,5)};_.Iec=function(a){_.G.call(this,a)};_.J(_.Iec,_.G);_.Iec.prototype.H=function(){return _.y(this,1)};_.Iec.prototype.Cb=function(){return _.y(this,2)};_.Iec.prototype.Dc=function(a){return _.u(this,2,a)};_.Iec.prototype.V=function(){return _.y(this,3)};_.Kec=function(a){_.G.call(this,a,-1,Jec)};_.J(_.Kec,_.G);_.Kec.prototype.H=function(){return _.se(this,1)};var Jec=[1];
_.Mec=function(a){_.G.call(this,a,-1,Lec)};_.J(_.Mec,_.G);_.Mec.prototype.H=function(){return _.yb(this,_.Iec,1)};var Lec=[1];
_.Oec=function(a){_.G.call(this,a,-1,Nec)};_.J(_.Oec,_.G);_.Oec.prototype.H=function(){return _.yb(this,_.Mec,1)};var Nec=[1];
_.Pec=function(a){_.G.call(this,a)};_.J(_.Pec,_.G);_.Pec.prototype.V=function(){return _.x(this,_.Oec,1)};_.Pec.prototype.H=function(){return _.x(this,_.Kec,2)};
_.dI=function(a){_.G.call(this,a,-1,Qec)};_.J(_.dI,_.G);_.g=_.dI.prototype;_.g.Cb=function(){return _.y(this,1)};_.g.Dc=function(a){return _.u(this,1,a)};_.g.Bd=function(){return _.yb(this,_.Ik,2)};_.g.fB=function(a){return _.sj(this,2,a)};_.g.ah=function(a,b){return _.yj(this,2,a,_.Ik,b)};_.g.Zj=function(){return _.y(this,3)};_.g.Ql=function(){return _.Q(this,5,!0)};_.g.Y6=function(){return _.x(this,_.Pec,7)};_.g.Dta=function(){return _.N(this,8)};_.g.Uf=function(){return _.y(this,17)};
_.g.$P=function(a){return _.u(this,17,a)};_.g.Ve=function(){return _.y(this,12)};_.g.mi=function(a){return _.u(this,12,a)};_.g.Zn=function(){return _.y(this,15)};_.g.kla=function(){return _.se(this,18)};var Qec=[2,14,18];_.dI.prototype.Tb="eO39Zd";

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1fy");

var Rec=function(a){_.G.call(this,a)};_.J(Rec,_.G);Rec.prototype.getEmail=function(){return _.z(this,3,"")};Rec.prototype.wq=function(){return _.lj(this,3)};_.eI=function(a){return _.x(a,Rec,36,1)};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1g3");


_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1gm");

_.fI=function(a,b){return _.u(a,b,_.hna)};_.Sec=function(a){if(_.Zma)return _.aa.atob(a);var b="";_.ana(a,function(c){b+=String.fromCharCode(c)});return b};_.gI=function(a,b,c,d,e,f,h){_.aI.call(this,a,_.Bec,b,_.Tdc,c,d,e,void 0,f,h)};_.J(_.gI,_.aI);

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1gk");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var Tec;_.hI=function(a,b,c){if(0!==a.O)return!1;_.u(b,c,a.H.ka());return!0};Tec=[3,42];_.Uec=function(a){_.G.call(this,a,-1,Tec)};_.J(_.Uec,_.G);_.Uec.prototype.getMimeType=function(){return _.y(this,27)};var Vec=function(a,b){if(b&&a in b)return a;var c=_.pGa();return c?(c=c.toLowerCase(),a=c+_.Rja(a),void 0===b||a in b?a:null):null};
var Wec=function(a){_.ni.call(this,"visibilitychange");this.hidden=a};_.J(Wec,_.ni);
_.Xec=function(a){_.yi.call(this);this.xd=a||_.sc();if(this.Pz=this.uub())this.H=_.df(this.xd.Vb(),this.Pz,(0,_.K)(this.Kbb,this))};_.lg(_.Xec,_.yi);_.g=_.Xec.prototype;_.g.uub=_.gea(function(){var a=this.Ju(),b="hidden"!=this.oBa();if(a){var c;b?c=((_.pGa()||"")+"visibilitychange").toLowerCase():c="visibilitychange";a=c}else a=null;return a});_.g.oBa=_.gea(function(){return Vec("hidden",this.xd.Vb())});_.g.mwb=_.gea(function(){return Vec("visibilityState",this.xd.Vb())});_.g.Ju=function(){return!!this.oBa()};
_.g.PB=function(){return!!this.xd.Vb()[this.oBa()]};_.g.Kbb=function(){var a=this.Ju()?this.xd.Vb()[this.mwb()]:null;a=new Wec(this.PB(),a);this.dispatchEvent(a)};_.g.Ya=function(){_.ui(this.H);_.Xec.ub.Ya.call(this)};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1gl");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Yec=function(a,b,c,d,e,f){var h=new _.Zi(null,void 0);a&&h.Pr(a);b&&_.Ima(h,b);c&&h.Ln(c);d&&h.QA(d);e&&h.zi(e);f&&_.$i(h,f);return h};_.Zec=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};_.iI=function(a){return new _.Uh(function(b){var c=a.length,d=[];if(c)for(var e=function(k,l,p){c--;d[k]=l?{d$:!0,value:p}:{d$:!1,reason:p};0==c&&b(d)},f=0,h;f<a.length;f++)h=a[f],_.xka(h,_.Ob(e,f,!0),_.Ob(e,f,!1));else b(d)})};
_.jI=function(a,b,c){_.L.call(this);this.Ym=null!=c?a.bind(c):a;this.ha=b;this.W=null;this.O=!1;this.V=0;this.H=null};_.J(_.jI,_.L);_.g=_.jI.prototype;_.g.oe=function(a){this.W=arguments;this.H||this.V?this.O=!0:$ec(this)};_.g.stop=function(){this.H&&(_.Bi(this.H),this.H=null,this.O=!1,this.W=null)};_.g.pause=function(){this.V++};_.g.resume=function(){this.V--;this.V||!this.O||this.H||(this.O=!1,$ec(this))};_.g.Ya=function(){_.L.prototype.Ya.call(this);this.stop()};
var $ec=function(a){a.H=_.Ai(function(){a.H=null;a.O&&!a.V&&(a.O=!1,$ec(a))},a.ha);var b=a.W;a.W=null;a.Ym.apply(null,b)};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1ga");

var afc=function(a){_.G.call(this,a)},ffc;_.J(afc,_.G);var bfc=function(a){_.G.call(this,a)};_.J(bfc,_.G);_.kI=function(a){_.G.call(this,a)};_.J(_.kI,_.G);_.kI.prototype.t5=function(a){_.u(this,3,a)};_.kI.prototype.Il=function(a){return _.F(this,5,a)};_.kI.prototype.getMimeType=function(){return _.y(this,7)};var cfc=[2],dfc=function(a){_.G.call(this,a,-1,cfc)};_.J(dfc,_.G);var efc=function(a){_.G.call(this,a)};_.J(efc,_.G);ffc=function(a){this.H=a};_.gfc=function(a){this.Ld=a};
_.gfc.prototype.getId=function(){return this.Ld};var hfc=function(a){_.G.call(this,a)};_.J(hfc,_.G);hfc.prototype.mj=function(){return _.y(this,1)};var ifc=function(a){_.G.call(this,a)};_.J(ifc,_.G);
var kfc=function(){this.H=this.W=!1;this.No=null;for(var a=this.V=this.O=0;a<_.HBa.length;a++){var b=_.HBa[a];if(b&&b.chrome&&b.chrome.runtime&&b.chrome.runtime.connect){this.W=!0;jfc(this,b);break}}},jfc=function(a,b){a.No=b.chrome.runtime.connect("ciiamoeghmklpofjbocenebdfbgjapaa");a.H=!0;a.No.onDisconnect.addListener(function(){a.H=!1});document.addEventListener("mousemove",function(c){a.O=c.clientX;a.V=c.clientY})};
kfc.prototype.NA=function(a){if(this.W&&this.H){var b=_.x(a,_.nc,2)||new _.nc,c=_.x(a,_.yo,5)||new _.yo,d=_.x(a,_.kI,3)||new _.kI;a=_.yb(a,_.lo,1);a=_.m(a);for(var e=a.next();!e.done;e=a.next())this.No.postMessage({detail:{impression:e.value.Hc(),session_info:b.Hc(),session_invariants:c.Hc(),client_info:d.Hc()}});document.dispatchEvent(new CustomEvent("ripple",{detail:{clientX:this.O,clientY:this.V}}))}};
var lfc=function(){_.ro.call(this)};_.J(lfc,_.ro);lfc.prototype.Qv=function(){return 1==_.y(_.x(this.H,afc,7),1)};var mfc=new _.no("high_frequency_builder");
var nfc=function(a,b,c){a=new _.zi(a);c.Ja(a);var d=new _.of(c);c.Ja(d);d.listen(a,"tick",b);a.start()};
var ofc=function(){_.ro.call(this)};_.J(ofc,_.ro);var pfc=function(a,b,c){var d=1E3*Date.now();if(0==b){b=new _.fo;var e=new _.xza;e=_.u(e,1,d);_.F(b,1,e);_.u(b,3,1);_.F(a.H,8,b);_.u(a.H,12,c);_.u(a.H,13,c);_.u(a.H,4,d);_.u(a.H,3,c)}else 1==b&&(b=new _.fo,e=new _.yza,d=_.u(e,1,d),_.F(b,2,d),_.u(b,3,2),_.F(a.H,8,b),_.u(a.H,12,c),_.u(a.H,3,c));return a},qfc=new _.no("system_builder");
var rfc=function(a,b){_.L.call(this);this.O=a;this.H=new _.Xec(b);this.Ja(this.H);this.Eb=new _.of(this);this.Ja(this.Eb);this.H.Ju()&&this.Eb.listen(this.H,"visibilitychange",this.V)};_.J(rfc,_.L);rfc.prototype.V=function(){if(this.O.aQ()){var a=this.H.PB()?102001:102E3;a=this.O.qG(a,0);this.O.Zm(a)}};
var sfc=function(a,b,c){c=void 0===c?!1:c;_.L.call(this);this.H=a;this.O=b;this.Ja(this.O);this.W=c;this.V=null};_.J(sfc,_.L);_.g=sfc.prototype;_.g.Zm=function(a){var b=this.H;_.u(a.H,6,b.W);a=a.build();b.H.add(a);b.V=!0;b=this.O;3<=b.H.H.Yb()&&b.O.oe();return new ffc(a)};_.g.qG=function(a,b){a=pfc(tfc(this.H,a),b,this.H.ha++);1==b&&this.H.ka.add(a);return a};_.g.$L=function(){return this.H.O};
_.g.Lw=function(a){var b=this.H,c=_.so(a,qfc),d=b.ha++,e=_.x(_.x(c.H,_.fo,8),_.yza,2),f=1E3*Date.now();_.u(e,2,f);_.u(c.H,13,d);b.ka.remove(_.y(a.H,12))};_.g.G_=function(){var a=this.O;if(!a.ha||a.H.V){var b=ufc(a.H,691).build();b=vfc(a.H,[b]);a.ka.NA(b)}a.W();this.H.ma=!1;this.V&&(_.ca(this.V),this.V=null)};_.g.H_=function(){var a=this.H,b=ufc(a,716);wfc(a,b);b=b.build();a.H.add(b);a.wa=!0;a.ma=!0;this.O.initialize();this.O.O.oe();this.W&&(this.V=new rfc(this))};_.g.Z6=function(){this.O.W();return _.iI(Array.from(this.O.V)).then()};
_.g.aQ=function(){var a=this.H;return a.wa&&a.ma&&!0};
var xfc=function(a,b,c,d,e){_.L.call(this);this.H=a;this.ta=b;this.ka=c;this.O=new _.jI(this.W,3E3,this);this.V=new Set;this.ha=d;this.ma=e||6E4};_.J(xfc,_.L);xfc.prototype.initialize=function(){nfc(this.ma,this.O.oe,this.O);nfc(36E5,this.wa,this)};xfc.prototype.W=function(){var a=this;if(0!=this.H.H.Yb()&&(!this.ha||this.H.V)){var b=yfc(this.H),c=this.ta.NA(b);c&&(_.Zh(c,function(){return void a.V.delete(c)}),this.V.add(c))}};
xfc.prototype.wa=function(){var a=this.H,b=ufc(a,1153).build();a.H.add(b);this.O.oe()};
var zfc=function(a){_.L.call(this);this.H=a;this.Ja(this.H)};_.J(zfc,_.L);_.g=zfc.prototype;_.g.Zm=function(a){a=this.H.Zm(a);this.Z6();return a};_.g.qG=function(a,b){return this.H.qG(a,b)};_.g.$L=function(){return this.H.$L()};_.g.Lw=function(a){return this.H.Lw(a)};_.g.G_=function(){return this.H.G_()};_.g.H_=function(){return this.H.H_()};_.g.Z6=function(){return this.H.Z6()};_.g.aQ=function(){return this.H.aQ()};
var Afc=function(){};Afc.prototype.uR=function(){return new lfc};
var Bfc=function(){this.H=[]};Bfc.prototype.add=function(a){this.H.push(a)};Bfc.prototype.Yb=function(){return this.H.length};
var Cfc=function(){this.H={}};Cfc.prototype.add=function(a){this.H[_.y(a.H,12)]=a};Cfc.prototype.remove=function(a){delete this.H[a]};
var Dfc=function(a,b){this.O=a;this.Ba=b;this.ha=1;this.ta=this.W=null;this.ka=new Cfc;this.H=new Bfc;this.ma=this.wa=this.V=!1},tfc=function(a,b){a=_.so((new _.ro).initialize(new _.lo,a.Ba),qfc);_.u(a.H,10,b);return a},yfc=function(a){var b=a.H,c=b.H;b.H=[];return vfc(a,c)},vfc=function(a,b){var c=new _.WAa;var d=a.O.O.clone();c=_.F(c,2,d);d=a.O;(d=d.V?d.V.clone():null)&&_.F(c,5,d);var e;d=a.O;for(var f,h=b.length-1;0<=h;h--){var k=_.x(b[h],_.ko,5);if(k&&_.x(k,_.Uec,1)){k=_.x(k,_.Uec,1);_.lj(k,12)&&
void 0===e&&(e=_.N(k,12));k=_.x(k,bfc,20);if(void 0!==k&&void 0===f){f=new ifc;var l=_.N(k,2);void 0!==l&&_.u(f,2,l);k=_.N(k,1);void 0!==k&&_.u(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 _.kI),void 0!==e&&_.u(d,6,e),void 0!==f&&_.F(d,13,f);(e=d)&&_.F(c,3,e);a=a.O.ha.clone();_.F(c,4,a);_.sj(c,1,b);return c},ufc=function(a,b){var c=pfc(tfc(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 efc;k=_.u(p,1,k);l=_.u(k,2,_.y(l.H,10));f.push(l)}d=f}716!=b&&(b=a.ta,_.u(c.H,6,a.W),e=new dfc,b=_.u(e,1,b),d&&_.sj(b,2,d),d=_.to(c),_.F(d,3,b));wfc(a,c);return c},wfc=function(a,b){a.W=_.y(b.H,12);a.ta=_.y(_.x(_.x(b.H,_.fo,8),_.xza,1),1)};
var Efc=function(){};Efc.prototype.uR=function(){return new ofc};
var Ffc=function(){this.H=this.O=null};Ffc.prototype.build=function(){null==this.H&&(this.H=new _.wAa);_.vo(this.H,qfc,new Efc);_.vo(this.H,mfc,new Afc);var a=this.H;var b=this.O;if(!_.lj(_.Gfc(b),1)){var c=_.Gfc(b),d=new _.MAa;_.F(c,1,d)}b=_.x(_.Gfc(b),_.MAa,1);a.H=b;b=_.Ya(a.O);for(c=0;c<b.length;c++)b[c].O(a.H);return new Dfc(this.O,this.H)};
var Hfc=function(){this.O=new _.nc;this.V=null;this.ha=new hfc;_.u(this.ha,1,6);this.H=this.W=null};Hfc.prototype.setSessionId=function(a){this.O.setSessionId(a);return this};_.Ifc=function(a,b){_.u(a.O,2,b);return a};_.Jfc=function(a,b){if(null==a.W){a.W=new _.UAa;var c=_.Gfc(a);_.F(c,2,a.W)}_.u(a.W,1,b)};_.Gfc=function(a){null==a.V&&(a.V=new _.yo);return a.V};_.Kfc=function(a){null==a.H&&(a.H=new _.kI);return a.H};
_.Lfc=function(){this.H=this.ha=null;this.W=new Hfc;this.V=null;this.ka=this.ma=!1;this.O=null};_.Mfc=function(a,b){a.ha=b;return a};_.Nfc=function(a,b){a.H=b;return a};_.Ofc=function(a,b){a.V=b;return a};_.Lfc.prototype.setSessionId=function(a){this.W.setSessionId(a);return this};_.Pfc=function(a,b){_.u(a.W.O,6,b);return a};
_.Lfc.prototype.build=function(){var a=new Ffc;a.O=this.W;null!=this.V&&(a.H=this.V);a=a.build();if(this.ka){var b=new kfc;this.H=this.ha=b}b=new xfc(a,this.ha,this.H,this.ma,this.O);a=new sfc(a,b,!1);this.ka&&(a=new zfc(a));return a};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1fs");

_.lI=function(a){return _.Q(a,84,!1)};
_.Qfc=function(a){_.G.call(this,a)};_.J(_.Qfc,_.G);
_.mI=function(a){_.G.call(this,a)};_.J(_.mI,_.G);_.mI.prototype.getOptions=function(){return _.x(this,_.Qfc,1)};_.mI.prototype.Zn=function(){return _.y(this,2)};_.mI.prototype.jd=function(){return _.x(this,_.Df,3)};
_.Rfc=function(a){_.G.call(this,a)};_.J(_.Rfc,_.G);_.nI=[3,4,5,6,7,8,9,10];
_.Sfc=new Map([[157,"categoryReferences"],[5,"hidden"]]);
var Vfc;_.Tfc={drive:1,appDataFolder:2,photos:3,androidBackup:4};_.Ufc=_.fb(_.Tfc);Vfc={};_.Wfc=(Vfc[0]="UNSPECIFIED_FEEDBACK",Vfc[1]="IMPLICIT_REJECT",Vfc[2]="NOT_HELPFUL_RIGHT_NOW",Vfc);
var oI,Yfc;oI={};_.Xfc=(oI[1]="modifiedDate",oI[2]="modifiedByMeDate",oI[3]="quotaBytesUsed",oI[4]="title",oI[6]="lastViewedByMeDate",oI[10]="createdDate",oI[7]="sharedWithMeDate",oI[9]="starred",oI[11]="recency",oI[5]="relevance",oI[12]="trashedDate",oI[13]="lastViewedByMeDate",oI);Yfc={};_.Zfc=(Yfc[1]="asc",Yfc[2]="desc",Yfc);
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.$fc=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():_.jg();this.date=new Date(a)};_.lg(_.$fc,_.mt);_.g=_.$fc.prototype;_.g.clone=function(){var a=new _.$fc(this.date);a.XG=this.XG;a.VV=this.VV;return a};_.g.add=function(a){(a.W||a.V)&&_.lt.prototype.add.call(this,new _.kt(a.W,a.V));this.date=new Date(this.date.getTime()+1E3*(a.seconds+60*(a.O+60*(a.H+24*a.Gw))))};_.g.getTimezoneOffset=function(){return 0};_.g.getFullYear=_.mt.prototype.getUTCFullYear;
_.g.getMonth=_.mt.prototype.getUTCMonth;_.g.getDate=_.mt.prototype.getUTCDate;_.g.getHours=_.mt.prototype.getUTCHours;_.g.getMinutes=_.mt.prototype.getUTCMinutes;_.g.getSeconds=_.mt.prototype.Kab;_.g.getMilliseconds=_.mt.prototype.Jab;_.g.getDay=_.mt.prototype.getUTCDay;_.g.setFullYear=_.mt.prototype.setUTCFullYear;_.g.setMonth=_.mt.prototype.setUTCMonth;_.g.setDate=_.mt.prototype.setUTCDate;_.g.setHours=_.mt.prototype.RNa;_.g.setMinutes=_.mt.prototype.SNa;_.g.setSeconds=_.mt.prototype.TNa;
_.g.setMilliseconds=_.mt.prototype.Lab;
var agc,cgc;agc={};_.bgc=(agc[1]="0",agc[2]="1",agc[3]="2",agc);cgc={};_.dgc=(cgc[1]="asc",cgc[2]="desc",cgc);
_.egc=new _.no("drive_dataservice_builder");
_.fgc=_.Hg&&0>_.Ra(_.Kg,"533");
_.ggc=new _.gfc("drive_dataservice_invariants");
_.hgc=new Map([[[1],1],[[6],7],[[2],2]]);_.igc=new Map([[[1],3],[[2],4],[[3],5],[[4],6],[[5],7],[[6],8],[[10],12],[[7],9],[[8],10],[[9],11]]);
_.jgc=new Map([[12,function(a){return _.N(a,69)}],[24,function(a){return _.Q(a,3,!1)}],[9,function(a){return _.Q(a,17,!1)}],[21,function(a){return _.lI(a)}],[13,function(a){return _.N(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}]]);
_.kgc=new Map([[34,function(a){return _.Q(a,9,!1)}],[25,function(a){return _.Q(a,1,!1)}],[33,function(a){return _.Q(a,8,!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)}],[45,function(a){return _.Q(a,20,!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)}],[46,function(a){return _.Q(a,21,!1)}],[47,function(a){return _.Q(a,22,!1)}],[48,function(a){return _.Q(a,23,!1)}]]);_.lgc=new Map([[[1],1],[[2],2],[[3],3],[[4],4],[[5],5]]);
_.mgc=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],[[257],257],[[258],258]]);_.ngc=new Map([[[2],3],[[1],2],[[0],1]]);_.ogc=new Map([[[0],1],[[1],2],[[3],3],[[5],4],[[6],5]]);
_.pgc=new Map([[[_.sdc],1],[[_.tdc],2],[[_.udc],3],[[_.vdc],4],[[_.wdc],5],[[_.xdc],6],[[_.ydc],7],[[_.zdc],8],[[_.Adc],10],[[_.Bdc],11],[[_.Cdc],12],[[_.Ddc],13]]);_.qgc=new Map([[[0],1],[[1],2],[[2],3],[[3],4],[[4],5],[[5],6],[[6],7]]);

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1fv");


_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1fw");


_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1fx");

_.pI=function(a){_.G.call(this,a,-1,rgc)};_.J(_.pI,_.G);_.pI.prototype.qc=function(){return _.y(this,2)};_.qI=function(a,b){return _.u(a,2,b)};_.g=_.pI.prototype;_.g.getItem=function(){return _.x(this,_.Ik,4)};_.g.setItem=function(a){return _.F(this,4,a)};_.g.uc=function(){return _.y(this,7)};_.g.gla=function(){return _.y(this,13)};_.g.UJa=function(a){_.u(this,13,a)};var rgc=[8,17];

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1g8");

var sgc;sgc="Y Z E P T G M K  m u n".split(" ");_.tgc=function(a,b){var c=a;a=c;var d="",e=1;0>c&&(c=-c);if(Infinity===c)b=(Infinity*Math.sign(a)).toString();else{for(var f=0;f<sgc.length;f++){var h=sgc[f];e=_.Dwa[h];if(c>=e||1>=e&&c>.1*e){d=h;break}}d||(e=1);b=Math.pow(10,void 0!==b?b:2);b=Math.round(a/e*b)/b+""+d}return b};_.ugc=function(a){return _.ke().get(a,16,void 0)};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1gn");

_.rI=function(a){return a instanceof Error};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1fu");

var xgc;_.uI=function(a){if(a instanceof _.Fc)return a;if(_.rI(a)){if(a=_.xda(a))return a}else a="string"===typeof a?_.LBa(a):_.LBa("Converting an unexpected reason type to drive.ds.Error which should be drive.ds.Error, Error, or string. Found:"+a);_.sI(a,2);_.tI(a,6);return a};_.vgc=function(a){var b=a.Xj();a=a.oG();return 15===b||32===b||33===b||401===a};_.wgc=function(){return _.aa.WorkerGlobalScope&&self instanceof _.aa.WorkerGlobalScope};_.vI=function(a){return _.Dj(a,1,0)};
_.sI=function(a,b){return _.u(a,1,b)};_.tI=function(a,b){return _.u(a,2,b)};xgc=[8,9,10,13,14,27,28,29,31,32,33,34,38];_.wI=function(a){_.G.call(this,a,-1,xgc)};_.J(_.wI,_.G);_.g=_.wI.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Nb=function(a){return _.u(this,1,a)};_.g.getTitle=function(){return _.y(this,2)};_.g.setTitle=function(a){return _.u(this,2,a)};_.g.yf=function(){return _.y(this,3)};_.g.kl=function(a){return _.u(this,3,a)};_.g.fw=function(a){return _.u(this,4,a)};
_.g.Ph=function(){return _.N(this,5)};_.g.Nn=function(a){return _.u(this,5,a)};_.g.getMimeType=function(){return _.y(this,6)};_.g.VE=function(a,b){_.uj(this,8,a,b)};_.g.Li=function(){return _.y(this,12)};_.g.re=function(){return _.x(this,_.Qf,17)};_.g.mj=function(){return _.y(this,20)};_.g.uc=function(){return _.y(this,21)};_.xI=function(a,b){return _.u(a,16,b)};
_.yI=function(a){_.G.call(this,a,-1,ygc)};_.J(_.yI,_.G);_.yI.prototype.GR=function(){return _.Dj(this,2,100)};_.yI.prototype.jP=function(a){return _.u(this,2,a)};_.yI.prototype.re=function(){return _.x(this,_.Qf,6)};_.yI.prototype.uc=function(){return _.y(this,8)};var ygc=[5];
_.zgc=new Map([[1,"connected"],[2,"unauthenticated/online"],[3,"offline"]]);
var Agc;Agc={};_.Bgc=(Agc[0]="/drive/v2internal",Agc[1]="/drive/v2internal.corp",Agc[2]="/drive/v2internal.scary",Agc[4]="/drive/v2internal.scary",Agc[5]="/drive/v2beta",Agc[6]="/drive/v2.1beta",Agc);
_.Cgc=new Set([0,1,2,3]);
_.Dgc=_.u(new _.wI,15,!0);_.Egc=_.xI(new _.wI,!0);_.Fgc=_.xI(new _.wI,!1);
_.Ggc=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."]]);

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1fz");

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

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1go");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Igc=function(a){a=_.lb(a);return 0===a.length?_.aja:new _.Og(a,_.Zia)};_.Jgc=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)};_.lg(_.Jgc,_.ldc);_.Jgc.prototype.reset=function(){this.H.reset();this.H.update(this.O)};
_.Jgc.prototype.update=function(a,b){this.H.update(a,b)};_.Jgc.prototype.digest=function(){var a=this.H.digest();this.H.reset();this.H.update(this.V);this.H.update(a);return this.H.digest()};_.Kgc=function(a,b){a.reset();a.update(b);return a.digest()};
_.Lgc=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()};_.lg(_.Lgc,_.ldc);_.Lgc.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 Mgc=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};
_.Lgc.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;)Mgc(this,a,d),d+=this.blockSize;if("string"===typeof a)for(;d<b;){if(e[f]=a.charCodeAt(d),++f,++d,f==this.blockSize){Mgc(this,e);f=0;break}}else for(;d<b;)if(e[f]=a[d],++f,++d,f==this.blockSize){Mgc(this,e);f=0;break}}this.O=f;this.V+=b}};
_.Lgc.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;Mgc(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};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1ft");

_.zI=function(a,b){return _.u(a,82,b)};_.AI=function(a){return _.Q(a,3,!1)};_.BI=function(a){return _.u(a,3,!0)};_.Ngc=function(a,b){return _.u(a,7,b)};
_.Ogc=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
*/
_.CI={j0:"Versions",U7:"Metadata",J6:"Data",XU:"Offline"};_.Pgc=new Map([[_.CI.j0,"versionKey"],[_.CI.U7,"k"]]);_.Qgc=new Set([1004]);

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1g5");

_.Rgc=function(a){_.G.call(this,a)};_.J(_.Rgc,_.G);_.g=_.Rgc.prototype;_.g.getKey=function(){return _.y(this,1)};_.g.wt=function(){return _.lj(this,1)};_.g.Wa=function(){return _.y(this,2)};_.g.Hb=function(a){return _.u(this,2,a)};_.g.Bi=function(){return _.vb(this,2)};_.g.Mg=function(){return _.lj(this,2)};
_.DI=function(a){_.G.call(this,a,-1,Sgc)};_.J(_.DI,_.G);_.DI.prototype.aA=function(){return _.y(this,1)};_.DI.prototype.getUrl=function(){return _.y(this,3)};var Sgc=[2,4,6];

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1gq");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Tgc=function(a,b,c){c&&(a=_.ih(a));a.length>b&&(a=a.substring(0,b-3)+"...");c&&(a=_.hh(a));return a};_.EI=function(){return"goog_"+_.Oja++};_.Ugc=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};
_.FI=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};_.FI.prototype.clone=function(){return new _.FI(this.start,this.end)};_.GI=function(a){return a.end-a.start};
_.Vgc=function(a,b,c){void 0===c&&(c=a.size);return a.slice?a.slice(b,c):null};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1gr");

var Zgc,ahc,chc;_.Wgc=function(a){var b={};_.Ta(a,function(c,d){b[d.toLowerCase()]=c});return b};_.Xgc=function(a){return(a=a&&_.Wgc(a))&&a["x-guploader-uploadid"]};_.Ygc=function(a){return(a=a&&_.Wgc(a))&&a["x-google-trace"]};Zgc=[6];_.HI=function(a){_.G.call(this,a,-1,Zgc)};_.J(_.HI,_.G);_.II=function(a,b){return _.u(a,14,b)};
_.bhc=function(a,b,c,d,e,f,h,k,l){l=void 0===l?!1:l;if(!_.$gc(a))return null;e=ahc(e)||new _.Fc;_.u(e,8,!0);k&&(k=_.$i(new _.Zi(k),void 0).toString(),_.u(e,19,k));e.oG()||_.u(e,15,a||f);e.getMessage()||_.Eo(e,["HTTP status code: "+a,"HTTP status text: "+b,"XHR error code: "+f,"XHR error text: "+h].join(", "));_.y(e,4)||_.Fo(e,d);e.Xj()||(5===f?_.II(e,7):0!==a||d?403===a?_.II(e,22):503===a||429===a?_.II(e,24):(_.vb(e,14),_.u(e,10,1),_.u(e,8,!0)):l||_.II(e,2));e.Fda(_.Xgc(c));e.uda(_.Ygc(c));return e};
ahc=function(a){if(!_.Ea(a))return null;var b=new _.Fc,c=a.error;if(!c)return _.Fo(b,JSON.stringify(a)),null;_.u(b,15,c.code);_.Eo(b,c.message);a=c.errors&&c.errors[0];if(!a)return b;c=a.reason;var d=chc[c];d?_.u(b,10,d):c&&!d&&_.u(b,10,2);(a=a.debugInfo)&&_.Fo(b,a);return b};_.$gc=function(a){return 200===a||204===a||308===a||206===a?!1:!0};
chc={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};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1g2");

_.dhc=function(a){for(var b in a)delete a[b]};_.JI=function(a,b){if(a.H)return a=a.H.responseText,b&&0==a.indexOf(b)&&(a=a.substring(b.length)),(0,_.Vla)(a)};_.KI=function(a){return _.Q(a,5,!1)};_.ehc=function(a,b){var c=_.x(a.H,_.zza,9);null==c&&(c=new _.zza);var d=_.u(c,5,_.y(b.H,10));_.u(d,2,_.y(b.H,12));_.F(a.H,9,c)};_.fhc=function(a,b){a=_.Ei(a);b=_.Ei(b);return a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]};
_.ghc=function(a){var b=_.Gma(a);if("undefined"==typeof b)throw Error("V");var c=new _.bj(null,void 0);a=_.Fma(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};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1g4");

var hhc,ihc,mhc,qhc,rhc,shc,thc,uhc,Mhc,FJ,Nhc,Ohc,Vhc,aic,mic,nhc,Jic,Lic,Nic,Pic,kjc,ojc,pjc,qjc,sjc,ujc,cK,eK,xjc,yjc,Bjc,Cjc,Djc,Ejc,Fjc,Gjc,Jjc,Ljc,Mjc,dkc,hkc,jkc,kkc,lkc,rkc,skc,bic,Bkc,Ckc,xkc,Dkc,ykc,Fkc,Gkc,Mkc,Lkc,Kkc,Ikc,Jkc,Fhc,Ghc,Phc,Nkc,Qhc,Rhc,Shc,Thc,Uhc,Okc,Qkc;_.LI=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];return function(d){return b.some(function(e){return e(d)})}};
_.MI=function(a,b,c){var d=new _.Fc,e=_.Yka(_.MI);_.u(d,20,e);_.tI(d,a);_.sI(d,b?b:2);c&&_.II(d,c);return d};_.NI=function(a){var b;a instanceof _.Fc?b=new _.Gc(null,a):_.rI(a)?b=a:b=_.aa.ErrorEvent&&a instanceof ErrorEvent?a.error instanceof Error?a.error:Error(a.message):"string"===typeof a?Error(a):Error("Kb`"+a);b.stack||(b.stack=_.Yka(_.NI));return b};hhc=function(a){return 7===a.Xj()||24===a.Ip()&&(a=a.oG(),503===a||429===a)?!0:!1};ihc=function(a,b){return b?b+"("+a+")":a};
_.OI=function(a,b,c){var d={},e=[];b&&e.push("kind");a.nDb&&e.push("searchResultSource");a.fields.forEach(function(p){if(!_.jhc.includes(p)){var q=_.Cdb.get(p);if(q){var r=_.Fdb[p];a.jF&&r&&(q=r);a.anonymous&&(a.jF?(p=_.Edb[p])&&(q=p):(p=_.Ddb[p])&&(q=p));q.split(",").forEach(function(v){var w=_.Sja(v,"/",1);1<w.length?(d[w[0]]||(d[w[0]]=[]),d[w[0]].push(w[1])):e.push(v)})}}});for(var f={},h=_.m(Object.entries(d)),k=h.next();!k.done;f={A6:f.A6},k=h.next()){var l=_.m(k.value);k=l.next().value;l=l.next().value;
f.A6=[];l.forEach(function(p){return function(q){p.A6.push(q)}}(f));"owners"==k&&b&&f.A6.push("kind");e.push(ihc(f.A6.join(","),k))}return ihc(e.join(","),c)};_.khc=function(a){var b=new _.uo;b.append(_.OI(a,!0));return b.toString()};_.lhc=function(a,b){return a.filter(function(c){return b.includes(c)})};mhc=function(a){a=a.filter(function(b){return!_.Cdb.has(b)});if(a.length)throw Error("hd`"+a.join(", "));};
_.phc=function(a){if(a){var b=a.getMimeType();b&&_.cG(a,b.toLowerCase());nhc(a,_.yb(a,ohc,58).map(function(c){var d=c.getMimeType();d&&_.u(c,1,d.toLowerCase());return c}))}};qhc=function(a,b){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;_.ej(b,c,d)}};rhc=function(a,b){b&&qhc({openDrive:!!_.Q(b,2,!1),reason:_.y(b,1)||0,syncType:_.y(b,3)||0,errorRecovery:!!_.Q(b,4,!1)},a)};shc=function(a){return 10>a?"0"+a:""+a};
thc=function(a){if(_.ab(a))return"\r\n";var b="";_.Ta(a,function(c,d){b+=d+": "+c+"\r\n"});return b};uhc=function(a){a=_.Eo(_.II(_.sI(new _.Fc,2),39),"Multiple resource key definitions found for itemId "+a);throw _.wd(a);};
Mhc=function(a){if(a instanceof _.PI)return"request access";if(a instanceof _.QI)return"admin migrate to TD";if(a instanceof _.RI)return"authorize app";if(a instanceof _.SI)return"copy item";if(a instanceof _.TI)return"change category links";if(a instanceof _.UI)return"create item";if(a instanceof _.VI)return"create ws";if("undefined"!=typeof _.WI&&a instanceof _.WI)return"delete app";if("undefined"!=typeof _.XI&&a instanceof _.XI)return"delete backup";if(a instanceof _.YI)return"delete item";if("undefined"!=
typeof _.ZI&&a instanceof _.ZI)return"delete permission";if(a instanceof _.$I)return"delete revision";if(a instanceof _.aJ)return"delete TD";if(a instanceof _.oD)return"delete pref";if(a instanceof _.bJ)return"delete ws";if(a instanceof _.cJ)return"download item";if(a instanceof _.dJ||a instanceof _.eJ)return"empty trash";if(a instanceof _.fJ)return"find by ID";if(a instanceof _.WF)return"find by IDs";if(a instanceof _.vhc)return"item export start";if("undefined"!=typeof _.gJ&&a instanceof _.gJ)return"get app";
if("undefined"!=typeof _.hJ&&a instanceof _.hJ)return"insert app";if("undefined"!=typeof _.iJ&&a instanceof _.iJ)return"insert permission";if(a instanceof _.mI)return a=a.jd(),_.kJ(a)?"quick access item query":_.lJ(a)?"people predict item query":_.mJ(a)?"drive priority query":"item query";if("undefined"!=typeof _.nJ&&a instanceof _.nJ)return"list android backup items request";if(a instanceof _.oJ){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 _.whc&&a instanceof _.whc?"list backups":a instanceof _.yI?"list changes":a instanceof _.pJ?"list permissions":"undefined"!=typeof _.qJ&&a instanceof _.qJ?"list revisions":a instanceof _.rJ?"migrate to shared drive":a instanceof _.sJ?"partial download item":a instanceof _.tJ?"people api":a instanceof _.VF?"get published category":"undefined"!=typeof _.uJ&&a instanceof _.uJ?"get remaining changes":
a instanceof _.vJ?"remove item":"undefined"!=typeof _.wJ&&a instanceof _.wJ?"reparent item":a instanceof _.xJ?"restore item":a instanceof _.$F?"list suggested workspace items":a instanceof _.bA?"list suggested workspaces":"undefined"!=typeof _.yJ&&a instanceof _.yJ?"update app":a instanceof _.zJ?"update category metadata":a instanceof _.wI?"update item":a instanceof _.AJ?"update revision":a instanceof _.BJ?"update TD":a instanceof _.pD?"update pref":a instanceof _.CJ?"update ws":a instanceof _.OH?
"get account":a instanceof _.bG?"get workspace":a instanceof _.xhc?"list activity":a instanceof _.yhc?"list category metadata":a instanceof _.zhc?"create TD":"undefined"!=typeof _.Ahc&&a instanceof _.Ahc?"item export cancel":"undefined"!=typeof _.Bhc&&a instanceof _.Bhc?"item export status":"undefined"!=typeof _.Chc&&a instanceof _.Chc?"generate cse token":"undefined"!=typeof _.Dhc&&a instanceof _.Dhc?"get largest change ID":a instanceof _.nD?"list prefs":a instanceof _.DJ?"multipart upload":a instanceof
_.Ehc?"list published categories":a instanceof Fhc?"init resumable upload":a instanceof Ghc?"resumable upload chunk":a instanceof _.Hhc?"resumable upload":a instanceof _.aG?"get TD":"undefined"!=typeof _.Ihc&&a instanceof _.Ihc?"move TD preflight":a instanceof _.EJ?"list TDs":"undefined"!=typeof _.Jhc&&a instanceof _.Jhc?"get TD stats":a instanceof _.Khc?"test connection":"undefined"!=typeof _.Lhc&&a instanceof _.Lhc?"list workspaces":"unknown"};
FJ=function(a,b,c){null!=c&&(Array.isArray(c)?0<c.length&&a.push(b+": "+c.join(", ")):a.push(b+": "+c))};Nhc=function(a){if(a instanceof _.UI||a instanceof _.DJ||a instanceof _.Hhc||a instanceof Fhc||a instanceof Ghc)return(new _.GJ).Dc(8);throw Error("wf");};Ohc=function(a){if(a instanceof _.wI){var b=_.rj(_.vb(a.clone(),1),17);b=_.Cj(b,_.Dgc)}else b=!1;b||(a instanceof _.wI?(a=_.rj(_.vb(a.clone(),1),17),b=_.Cj(a,_.Egc)||_.Cj(a,_.Fgc)):b=!1);return b?!1:!0};
_.HJ=function(a){return Phc.includes(a.constructor)?Ohc(a):!1};
Vhc=function(a,b){var c;if(Qhc.includes(a.constructor))return!0;if(b){if(_.Q(b,54,!1)&&Rhc.includes(a.constructor))return!0;var d=_.IJ(b);if(d&&!_.Q(d,7,!1)&&Shc.includes(a.constructor)&&!_.JJ(a)||_.Q(b,56,!1)&&_.JJ(a)||_.Q(b,57,!1)&&Thc.includes(a.constructor)||!(!_.Q(b,53,!1)||Rhc.includes(a.constructor)||Shc.includes(a.constructor)||_.JJ(a)||Thc.includes(a.constructor)||Uhc.includes(a.constructor))||(null===(c=_.IJ(b))||void 0===c?0:_.Q(c,20,!1))&&a.constructor===_.tJ)return!0}return!1};
aic=function(a,b){var c,d={};_.Te(_.nh(a.getTitle()))||(_.y(a,12)?d.originalFilename=a.getTitle():d.title=a.getTitle());if(a.getMimeType()&&(d.mimeType=a.getMimeType(),a.qc()&&_.$fa(a.getMimeType())&&b)){var e=b.Ola(),f=b.H(),h={encryptionState:"encrypted"};h.decryptionMetadata={wrappedKey:_.kj(b.V()),kaclsId:null!==(c=b.wa())&&void 0!==c?c:void 0,aes256GcmChunkSize:Whc[e?e.H():0],keyFormat:Xhc[f?f.H():0]};d.clientEncryptionDetails=h}_.Yhc(d,_.se(a,3));if(b=a.qc())d.id=b;_.y(a,16)&&(d.embeddingParent=
_.y(a,16));a.L2()&&(d.shortcutDetails={targetId:a.L2()});"number"===typeof _.y(a,26)&&(d.modifiedDate=_.Zhc(_.$hc(_.y(a,26)||0)));return d};_.Yhc=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)}}};
_.KJ=function(a,b,c,d,e){if(_.Q(a,89,!1)){if(c&&c.length&&d){c=b.concat(bic(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)!==_.kl(d)&&uhc(h):(a.set(h,_.kl(d)),b.push(d))}f=b}else f=b;f.length&&(f=_.GA(f),f.length&&(e["X-Goog-Drive-Resource-Keys"]=f))}};_.cic=function(a){var b=new _.vk;return _.u(b,1,a)};_.dic=function(a,b){return _.u(a,7,b)};_.eic=function(a,b){return _.u(a,8,b)};
_.fic=function(a,b){return _.u(a,11,b)};_.gic=function(a,b){return _.u(a,16,b)};_.LJ=function(a){_.G.call(this,a)};_.J(_.LJ,_.G);_.hic=function(a){_.G.call(this,a)};_.J(_.hic,_.G);var ohc=function(a){_.G.call(this,a)};_.J(ohc,_.G);ohc.prototype.getMimeType=function(){return _.y(this,1)};ohc.prototype.getUrl=function(){return _.y(this,2)};_.MJ=function(a){_.G.call(this,a)};_.J(_.MJ,_.G);_.MJ.prototype.Ce=function(){return _.y(this,2)};_.MJ.prototype.mh=function(a){return _.u(this,2,a)};
_.MJ.prototype.zh=function(a){return _.u(this,3,a)};_.iic=function(a){_.G.call(this,a)};_.J(_.iic,_.G);_.jic=function(a,b){return _.u(a,1,b)};_.kic=function(a,b){return _.sj(a,2,b)};_.lic=function(a,b){return _.sj(a,3,b)};mic=[2];_.NJ=function(a){_.G.call(this,a,-1,mic)};_.J(_.NJ,_.G);_.NJ.prototype.yf=function(){return _.y(this,1)};_.NJ.prototype.kl=function(a){return _.u(this,1,a)};_.NJ.prototype.twa=function(a,b){return _.uj(this,2,a,b)};_.OJ=function(a){_.G.call(this,a)};_.J(_.OJ,_.G);
_.OJ.prototype.Ce=function(){return _.y(this,1)};_.OJ.prototype.mh=function(a){return _.u(this,1,a)};_.OJ.prototype.zh=function(a){return _.u(this,2,a)};_.PJ=function(a,b){return _.qj(a,2,b)};_.nic=function(a,b){return _.sj(a,15,b)};_.oic=function(a,b){return _.F(a,17,b)};_.pic=function(a,b){return _.u(a,19,b)};_.qic=function(a,b){_.u(a,34,b)};_.ric=function(a,b){_.F(a,47,b)};_.sic=function(a,b){return _.u(a,52,b)};nhc=function(a,b){_.sj(a,58,b)};_.tic=function(a,b){return _.u(a,72,b)};
_.QJ=function(a,b){return _.F(a,84,b)};_.uic=function(a,b){_.F(a,85,b)};_.vic=function(a,b){_.F(a,91,b)};_.wic=function(a,b){return _.u(a,92,b)};_.xic=function(a,b){return _.u(a,93,b)};_.yic=function(a,b){_.F(a,95,b)};_.zic=function(a,b){return _.u(a,136,b)};_.Aic=function(a){_.G.call(this,a)};_.J(_.Aic,_.G);_.RJ=function(a){return _.Q(a,2,!1)};_.Bic=function(a){_.G.call(this,a)};_.J(_.Bic,_.G);var Cic=[3],Dic=function(a){_.G.call(this,a,-1,Cic)};_.J(Dic,_.G);
Dic.prototype.wi=function(){var a=_.se(this,3,!1);this.ka||(this.ka={});if(!this.ka[3]){for(var b=0;b<a.length;b++)a[b]=!!a[b];this.ka[3]=!0}_.pb(this)&&_.qb(a);return a};Dic.prototype.xn=function(a){return _.qj(this,3,a)};var Eic=[3],Fic=function(a){_.G.call(this,a,-1,Eic)};_.J(Fic,_.G);Fic.prototype.wi=function(){return _.se(this,3)};Fic.prototype.xn=function(a){return _.qj(this,3,a)};var Gic=[3],Hic=function(a){_.G.call(this,a,-1,Gic)};_.J(Hic,_.G);
Hic.prototype.wi=function(){return _.se(this,3)};Hic.prototype.xn=function(a){return _.qj(this,3,a)};_.SJ=function(a){_.G.call(this,a)};_.J(_.SJ,_.G);_.SJ.prototype.Wa=function(){return _.y(this,1)};_.SJ.prototype.Hb=function(a){return _.u(this,1,a)};_.SJ.prototype.Bi=function(){return _.vb(this,1)};_.SJ.prototype.Mg=function(){return _.lj(this,1)};_.TJ=function(a){return _.oj(a,45,1)};_.kJ=function(a){return _.Q(a,47,!1)};_.lJ=function(a){return _.Q(a,49,!1)};_.mJ=function(a){return _.Q(a,52,!1)};
_.UJ=function(a){return _.z(a,2,"")};_.IJ=function(a){return _.x(a,_.Bic,4)};_.VJ=function(a){return _.Q(a,10,!1)};_.Iic=function(a,b){return _.qj(a,27,b)};_.WJ=function(a){return _.oj(a,39,0)};_.XJ=function(a){return _.Q(a,40,!1)};_.Zhc=function(a){return _.lt.prototype.uP.call(a,!0)+"T"+_.mh(a.getHours(),2)+":"+_.mh(a.getMinutes(),2)+":"+_.mh(a.getSeconds(),2)+a.gaa()};Jic=function(a,b){return _.Idc(a,"getAllKeys","getting all keys index "+a.getName(),b,void 0)};
_.Kic=function(a,b){try{a.H.deleteObjectStore(b)}catch(c){throw _.WH(c,"deleting object store "+b);}};Lic=function(){var a=new _.Lfc;a.O=12E4;a.ma=!0;return a};_.Mic=function(a){_.G.call(this,a)};_.J(_.Mic,_.G);Nic=[3,4,10,18,19,28];_.UI=function(a){_.G.call(this,a,-1,Nic)};_.J(_.UI,_.G);_.g=_.UI.prototype;_.g.getMimeType=function(){return _.y(this,1)};_.g.getTitle=function(){return _.y(this,2)};_.g.setTitle=function(a){return _.u(this,2,a)};_.g.VE=function(a,b){_.uj(this,3,a,b)};
_.g.re=function(){return _.x(this,_.Qf,7)};_.g.lj=function(){return _.y(this,9)};_.g.uc=function(){return _.y(this,14)};_.g.Uz=function(){return _.x(this,_.Mic,15)};_.g.L2=function(){return _.y(this,21)};_.g.qc=function(){return _.y(this,23)};_.g.Vi=function(){return _.y(this,33)};_.YJ=function(a,b){return _.u(a,1,b)};_.ZJ=function(a,b){return _.qj(a,3,b)};_.Oic=function(a,b){return _.u(a,12,b)};_.YI=function(a){_.G.call(this,a)};_.J(_.YI,_.G);_.YI.prototype.getId=function(){return _.y(this,1)};
_.YI.prototype.Nb=function(a){return _.u(this,1,a)};_.YI.prototype.re=function(){return _.x(this,_.Qf,3)};_.aJ=function(a){_.G.call(this,a)};_.J(_.aJ,_.G);_.aJ.prototype.getId=function(){return _.y(this,1)};_.aJ.prototype.Nb=function(a){return _.u(this,1,a)};_.aJ.prototype.re=function(){return _.x(this,_.Qf,2)};Pic=[7,8];_.BJ=function(a){_.G.call(this,a,-1,Pic)};_.J(_.BJ,_.G);_.g=_.BJ.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Nb=function(a){return _.u(this,1,a)};
_.g.getTitle=function(){return _.y(this,2)};_.g.setTitle=function(a){return _.u(this,2,a)};_.g.re=function(){return _.x(this,_.Qf,4)};_.EJ=function(a){_.G.call(this,a)};_.J(_.EJ,_.G);_.EJ.prototype.getOptions=function(){return _.x(this,_.Qfc,1)};_.EJ.prototype.Zn=function(){return _.y(this,2)};_.EJ.prototype.jd=function(){return _.x(this,_.QH,3)};var Qic=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}},Ric=null,Sic=function(){this.O=0;this.H=[]};_.g=Sic.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=Tic(this,a);return this.H[a]};_.g.set=function(a,b){a=Tic(this,a);this.H[a]=b};_.g.Yb=function(){return this.H.length};_.g.lc=function(){return 0==this.H.length};_.g.clear=function(){this.O=this.H.length=0};_.g.hh=function(){var a=this.Yb(),b=this.Yb(),c=[];for(a=this.Yb()-a;a<b;a++)c.push(this.get(a));return c};_.g.Pf=function(){for(var a=[],b=this.Yb(),c=0;c<b;c++)a[c]=c;return a};
_.g.nf=function(a){return a<this.Yb()};_.g.Pq=function(a){for(var b=this.Yb(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};var Tic=function(a,b){if(b>=a.H.length)throw Error("na");return 40>a.H.length?b:(a.O+Number(b))%40},Uic=function(a){_.G.call(this,a)};_.J(Uic,_.G);_.Vic=function(a){_.G.call(this,a)};_.J(_.Vic,_.G);_.Vic.prototype.Ve=function(){return _.y(this,1)};_.Vic.prototype.mi=function(a){return _.u(this,1,a)};_.Vic.prototype.Cb=function(){return _.y(this,4)};
_.Vic.prototype.Dc=function(a){return _.u(this,4,a)};var Wic=function(a){_.G.call(this,a)};_.J(Wic,_.G);Wic.prototype.Vo=function(){return _.y(this,5)};var Xic=function(a,b){_.u(a,6,b)},Yic=function(a){_.G.call(this,a)};_.J(Yic,_.G);_.g=Yic.prototype;_.g.Mjb=function(a){return _.u(this,1,a)};_.g.NRb=function(a){return _.u(this,2,a)};_.g.Ly=function(){return _.N(this,3)};_.g.Njb=function(a){return _.u(this,3,a)};_.g.nRb=function(a){return _.u(this,4,a)};_.g.pRb=function(a){return _.u(this,5,a)};
_.g.zRb=function(a){return _.u(this,6,a)};_.g.PRb=function(a){_.u(this,7,a)};var Zic=function(a){_.G.call(this,a)};_.J(Zic,_.G);Zic.prototype.Ly=function(){return _.N(this,2)};var $ic=function(a,b){return _.u(a,2,b)},ajc=function(a,b){_.u(a,3,b)};Zic.prototype.GB=function(){return _.y(this,6)};var bjc=function(a,b){return _.u(a,8,b)},cjc=function(a){_.G.call(this,a)};_.J(cjc,_.G);var djc=function(a){_.G.call(this,a)};_.J(djc,_.G);var ejc=function(a,b){_.u(a,4,b)},fjc=function(a){_.G.call(this,a)};
_.J(fjc,_.G);fjc.prototype.jd=function(){return _.x(this,_.Vic,1)};fjc.prototype.getState=function(){return _.x(this,Wic,2)};fjc.prototype.Id=function(a){return _.F(this,2,a)};fjc.prototype.xt=function(){return _.lj(this,2)};var gjc=function(a){_.G.call(this,a)};_.J(gjc,_.G);gjc.prototype.Ij=function(){return _.y(this,1)};gjc.prototype.getEnvironment=function(){return _.y(this,2)};gjc.prototype.setEnvironment=function(a){return _.u(this,2,a)};
_.hjc=function(){var a=void 0===a?3E3:a;this.O=new _.Rk;this.H=new _.Rk;this.startTime=Date.now();this.V=!1;this.W=Math.ceil(a/2);this.ha=Math.floor(a/2)};_.ijc=function(a){var b=a.O.hh();a.V&&b.push({logName:"...",message:"...",level:"...",totalTime:"..."});_.Ca(b,a.H.hh());return b};_.jjc=function(a){var b=[];a=_.ijc(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")};
_.hjc.prototype.info=function(a,b){_.$J(this,a,b,"info")};_.hjc.prototype.config=function(a,b){_.$J(this,a,b,"config")};_.hjc.prototype.log=function(a,b,c){if(!Ric){Ric={};for(var d=0,e;e=_.cla[d];d++)Ric[e.value]=e,Ric[e.name]=e}_.$J(this,a,b,c)};_.$J=function(a,b,c,d){a.H.Yb()>=a.ha&&(a.V=!0,_.Sk(a.H));var e=Date.now()-a.startTime;b={logName:b,message:c,level:d,totalTime:1E3<e?(e/1E3).toFixed(1)+"s":e+"ms"};a.O.Yb()<a.W?a.O.enqueue(b):a.H.enqueue(b)};_.jhc=[42,1005,20,50,18,1003,1002];
_.aK=function(a){_.G.call(this,a)};_.J(_.aK,_.G);_.aK.prototype.getId=function(){return _.y(this,1)};_.aK.prototype.Nb=function(a){return _.u(this,1,a)};_.aK.prototype.getMimeType=function(){return _.y(this,2)};kjc=[22];_.GJ=function(a){_.G.call(this,a,-1,kjc)};_.J(_.GJ,_.G);_.g=_.GJ.prototype;_.g.Cb=function(){return _.y(this,1)};_.g.Dc=function(a){return _.u(this,1,a)};_.g.getItem=function(){return _.x(this,_.Ik,2)};_.g.setItem=function(a){return _.F(this,2,a)};
_.g.Zj=function(){return _.y(this,3)};_.g.EB=function(){return _.x(this,_.aK,4)};_.g.qc=function(){return _.y(this,5)};_.ljc=function(a,b){return _.u(a,5,b)};_.g=_.GJ.prototype;_.g.oK=function(){return _.y(this,7)};_.g.Fda=function(a){return _.u(this,7,a)};_.g.lga=function(a){_.u(this,9,a)};_.g.yOa=function(a){_.u(this,10,a)};_.g.nN=function(){return _.y(this,16)};_.g.uda=function(a){return _.u(this,16,a)};
var mjc=function(a){var b=new _.$h;a.listen("loadend",_.Ob(function(c,d){var e=d.dk(),f=d.getError();null==e||f?c.Gd(f):c.callback(e);d.dispose()},b,a));return b},njc=function(a){_.ni.call(this,a);this.connectionState=_.txb.get(a)};_.J(njc,_.ni);_.RI=function(a){_.G.call(this,a)};_.J(_.RI,_.G);_.RI.prototype.Hh=function(){return _.y(this,1)};_.RI.prototype.qc=function(){return _.y(this,2)};_.RI.prototype.re=function(){return _.x(this,_.Qf,4)};_.PI=function(a){_.G.call(this,a)};_.J(_.PI,_.G);
_.PI.prototype.qc=function(){return _.y(this,1)};_.QI=function(a){_.G.call(this,a)};_.J(_.QI,_.G);_.QI.prototype.getId=function(){return _.y(this,1)};_.QI.prototype.Nb=function(a){return _.u(this,1,a)};_.QI.prototype.$j=function(){return _.y(this,2)};_.QI.prototype.H=function(a){_.u(this,4,a)};ojc=[3,7];_.SI=function(a){_.G.call(this,a,-1,ojc)};_.J(_.SI,_.G);_.g=_.SI.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Nb=function(a){return _.u(this,1,a)};
_.g.getTitle=function(){return _.y(this,2)};_.g.setTitle=function(a){return _.u(this,2,a)};_.g.VE=function(a,b){_.uj(this,3,a,b)};_.g.re=function(){return _.x(this,_.Qf,5)};_.$I=function(a){_.G.call(this,a)};_.J(_.$I,_.G);_.$I.prototype.qc=function(){return _.y(this,1)};_.$I.prototype.re=function(){return _.x(this,_.Qf,3)};_.dJ=function(a){_.G.call(this,a)};_.J(_.dJ,_.G);_.dJ.prototype.re=function(){return _.x(this,_.Qf,1)};_.vJ=function(a){_.G.call(this,a)};_.J(_.vJ,_.G);_.g=_.vJ.prototype;
_.g.getId=function(){return _.y(this,1)};_.g.Nb=function(a){return _.u(this,1,a)};_.g.getParent=function(){return _.y(this,2)};_.g.Tg=function(a){return _.u(this,2,a)};_.g.re=function(){return _.x(this,_.Qf,3)};_.xJ=function(a){_.G.call(this,a)};_.J(_.xJ,_.G);_.g=_.xJ.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Nb=function(a){return _.u(this,1,a)};_.g.getParent=function(){return _.y(this,2)};_.g.Tg=function(a){return _.u(this,2,a)};_.g.re=function(){return _.x(this,_.Qf,3)};
_.AJ=function(a){_.G.call(this,a)};_.J(_.AJ,_.G);_.AJ.prototype.qc=function(){return _.y(this,1)};_.AJ.prototype.re=function(){return _.x(this,_.Qf,4)};_.VI=function(a){_.G.call(this,a)};_.J(_.VI,_.G);_.VI.prototype.getTitle=function(){return _.y(this,1)};_.VI.prototype.setTitle=function(a){return _.u(this,1,a)};_.VI.prototype.re=function(){return _.x(this,_.Qf,2)};_.bJ=function(a){_.G.call(this,a)};_.J(_.bJ,_.G);_.bJ.prototype.getId=function(){return _.y(this,1)};
_.bJ.prototype.Nb=function(a){return _.u(this,1,a)};_.bJ.prototype.re=function(){return _.x(this,_.Qf,3)};_.CJ=function(a){_.G.call(this,a)};_.J(_.CJ,_.G);_.g=_.CJ.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Nb=function(a){return _.u(this,1,a)};_.g.getTitle=function(){return _.y(this,2)};_.g.setTitle=function(a){return _.u(this,2,a)};_.g.getState=function(){return _.y(this,3)};_.g.Id=function(a){return _.u(this,3,a)};_.g.xt=function(){return _.lj(this,3)};
_.g.re=function(){return _.x(this,_.Qf,5)};pjc=[2,3];_.TI=function(a){_.G.call(this,a,-1,pjc)};_.J(_.TI,_.G);_.TI.prototype.uc=function(){return _.y(this,1)};_.TI.prototype.re=function(){return _.x(this,_.Qf,4)};qjc=[3,4];_.oJ=function(a){_.G.call(this,a,-1,qjc)};_.J(_.oJ,_.G);_.oJ.prototype.getType=function(){return _.y(this,1)};_.oJ.prototype.re=function(){return _.x(this,_.Qf,2)};_.rjc=function(a){_.G.call(this,a)};_.J(_.rjc,_.G);_.g=_.rjc.prototype;_.g.getKey=function(){return _.y(this,1)};
_.g.wt=function(){return _.lj(this,1)};_.g.Wa=function(){return _.y(this,2)};_.g.Hb=function(a){return _.u(this,2,a)};_.g.Bi=function(){return _.vb(this,2)};_.g.Mg=function(){return _.lj(this,2)};_.g.yf=function(){return _.y(this,3)};_.g.kl=function(a){return _.u(this,3,a)};_.g.getType=function(){return _.y(this,4)};sjc=[1];_.tjc=function(a){_.G.call(this,a,-1,sjc)};_.J(_.tjc,_.G);_.rJ=function(a){_.G.call(this,a)};_.J(_.rJ,_.G);_.rJ.prototype.H=function(a){_.u(this,4,a)};ujc=[1];
_.tJ=function(a){_.G.call(this,a,-1,ujc)};_.J(_.tJ,_.G);_.vjc=function(a){this.O=new Set;this.H=[].concat(_.fc(_.se(a,27)));this.initialize(a)};_.vjc.prototype.initialize=function(a){var b=_.lhc(this.H,_.se(a,28));if(0<b.length)throw Error("kf`"+b.join(","));this.H.push(21);this.H.push(70);this.H.push(83);this.H.push(87);_.KI(_.eI(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));_.Ga(this.H);this.H.sort();mhc(this.H)};
_.bK=function(a){return[].concat(_.fc(a.H))};_.wjc={1:"default",2:"teamDrive",3:"default,allTeamDrives"};cK=function(a){return"'"+a.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"};_.dK=function(a,b,c){0!==b.length&&(a.KI.length&&a.append(" "+(c||"and")+" "),a.append(b))};eK=function(a,b,c,d){if(c){var e=[];(void 0===d?0:d)&&e.push("not");e.push(cK(c));e.push("in");e.push(b);_.dK(a,e.join(" "))}};
_.fK=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());_.dK(a,e.join(" "),d)}};xjc=function(a,b,c){if(b.length){var d=[];d.push(c?"not (":"(");d.push(b.join(" or "));d.push(")");_.dK(a,d.join(""))}};_.$hc=function(a){var b=new _.$fc;b.setTime(a);return b};yjc=function(a,b){b=_.se(b,33)[0];if(null!=b){var c=[];c.push("teamDriveId");c.push("=");c.push(cK(b));_.dK(a,c.join(" "))}};
_.zjc=function(a){a=_.yb(a,_.SJ,25);if(null==a||0==a.length)return"";for(var b=[],c=0;c<a.length;c++)b.push(a[c].Wa());return b.join(",")};_.Ajc=function(a){a=a.gA();return null==a||0==a.length?"":a.map(function(b){b=b.UR();if(0==b)throw Error("lf");return _.Ufc[b]}).join(",")};
Bjc=function(a,b){if(a.length){var c=new _.uo;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(cK(d.Wa()));_.dK(c,e.join(" "),"or")}return c.toString()}return""};Cjc=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 cK(e.Wa())});d.push(a.join(", "));return d.join(" ")}return""};
Djc=function(a){if(_.N(a,2))return"any";switch(a.Wa()){case 0:return"mentions";case 1:return"suggestions";case 2:return"todos";default:return""}};Ejc=function(a){switch(a){case 1:return"<=";case 2:return"<";case 3:return"=";case 4:return">";case 5:return">=";default:return""}};Fjc=function(a,b,c){if(null!=_.y(c,2)){var d=Ejc(_.y(c,1));c=cK(_.Zhc(_.$hc(_.y(c,2)||0)));_.dK(a,[b,d,c].join(" "))}};
Gjc=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""};
_.Hjc=function(a,b){b=void 0===b?!1:b;for(var c=new _.uo,d=_.yb(a,_.il,4),e=0;e<d.length;e++){var f=d[e],h=f.Wa();if(h){var k=_.y(f,1),l=_.Q(f,3,!1),p=[];l&&1==k&&p.push("not");p.push("title");p.push(1==k?"contains":l?"!=":"=");p.push(cK(h));_.dK(c,p.join(" "))}}for(var q=_.yb(a,_.hl,5),r=0;r<q.length;r++){var v=q[r],w=v.Wa();if(w){var A=[];_.Q(v,2,!1)&&A.push("not");A.push("fullText");A.push("contains");A.push(cK(w));_.dK(c,A.join(" "))}}var B=_.nl(a);if(B&&0!=B.length){for(var E=[],I=[],M=[],P=
[],T=[],Y=[],ba=0;ba<B.length;ba++){var ja=B[ba];ja.Wa()&&(1===_.oj(ja,3,0)?_.N(ja,4)?I.push(ja):E.push(ja):_.N(ja,4)?_.Q(ja,2,!1)?Y.push(ja):T.push(ja):_.Q(ja,2,!1)?P.push(ja):M.push(ja))}var ea=Bjc(E,!1),xa=Bjc(I,!0),za=Cjc(M,!1,!1),Ja=Cjc(P,!0,!1),hb=Cjc(T,!1,!0),Sb=Cjc(Y,!0,!0),ac=new _.uo;if(za||hb||ea||xa)_.dK(ac,za,"or"),_.dK(ac,hb,"or"),_.dK(ac,ea,"or"),_.dK(ac,xa,"or");ac.KI.length&&_.dK(c,"("+ac.toString()+")","and");var Nc=new _.uo;if(Ja||Sb)_.dK(Nc,Ja,"and"),_.dK(Nc,Sb,"and");Nc.KI.length&&
_.dK(c,"("+Nc.toString()+")","and")}for(var wc=_.yb(a,_.fl,7),Gb=0;Gb<wc.length;Gb++)Fjc(c,"modifiedDate",wc[Gb]);for(var De=_.yb(a,_.fl,8),Yd=0;Yd<De.length;Yd++)Fjc(c,"lastViewedByMeDate",De[Yd]);_.fK(c,"trashed",a.Ph());_.fK(c,"explicitlyTrashed",_.N(a,17));_.fK(c,"starred",_.N(a,10));_.fK(c,"hidden",_.N(a,11));for(var Hh=_.ol(a),pd=0;pd<Hh.length;pd++){var Pb=Hh[pd];eK(c,"parents",Pb.Wa(),_.Q(Pb,2,!1))}var vi=b;vi=void 0===vi?!1:vi;for(var Zj=_.yb(a,_.Ff,13),ug=0;ug<Zj.length;ug++){var xj=Zj[ug];
if(vi){if(xj.Wa()){var Kj=[],im=[];_.Q(xj,2,!1)?Kj.push("not ("):Kj.push("(");im.push(cK(xj.Wa()));im.push("in");im.push("owners");im.push("or");im.push("creator");im.push("=");im.push(cK(xj.Wa()));Kj.push(im.join(" "));Kj.push(")");_.dK(c,Kj.join(""))}}else eK(c,"owners",xj.Wa(),_.Q(xj,2,!1))}for(var Fi=_.yb(a,_.Ff,14),Kp=0;Kp<Fi.length;Kp++){var Re=Fi[Kp];eK(c,"writers",Re.Wa(),_.Q(Re,2,!1))}for(var wi=_.yb(a,_.Ff,15),Vk=0;Vk<wi.length;Vk++){var Lp=wi[Vk];eK(c,"readers",Lp.Wa(),_.Q(Lp,2,!1))}_.N(a,
16)&&_.dK(c,"sharedWithMe");_.fK(c,"unparented",_.N(a,34));for(var ak=_.yb(a,_.cl,35)||[],Dq=_.m(ak),Eq=Dq.next();!Eq.done;Eq=Dq.next())eK(c,"ancestors",Eq.value.Wa(),!1);for(var gn=_.yb(a,_.cl,38)||[],Hm=_.m(gn),zl=Hm.next();!zl.done;zl=Hm.next())eK(c,"descendants",zl.value.Wa(),!1);for(var Or=_.yb(a,_.gl,37)||[],fj=_.m(Or),Pr=fj.next();!Pr.done;Pr=fj.next())eK(c,"folderFeatures",Pr.value.Wa(),!1);for(var Mp=_.se(a,39),Fq=_.m(Mp),Qr=Fq.next();!Qr.done;Qr=Fq.next()){var Np=Qr.value,Rr=[];Rr.push("templateData.description");
Rr.push("contains");Rr.push(cK(Np));_.dK(c,Rr.join(" "))}for(var Vn=_.se(a,40),sk=0;sk<Vn.length;sk++){var tk=[];0==sk&&tk.push("(");tk.push(cK(Vn[sk]));tk.push("in");tk.push("templateData.categories");sk==Vn.length-1&&tk.push(")");_.dK(c,tk.join(" "),0==sk?"and":"or")}var Qc=_.y(a,41);if(null!=Qc){var hn=[];hn.push("templateData.galleryState");hn.push("=");hn.push(cK(_.bgc[Qc]||""));_.dK(c,hn.join(" "))}var Zs=_.y(a,42);if(null!=Zs){var Gq=[];Gq.push("visibility");Gq.push("=");Gq.push(cK(Gjc(Zs)));
_.dK(c,Gq.join(" "))}for(var Sr=_.yb(a,_.bl,44),Eu=0;Eu<Sr.length;++Eu){var Tr=Sr[Eu];eK(c,"actionItems",Djc(Tr),_.Q(Tr,3,!1))}if(_.lj(a,50)){var Ql=[];Ql.push("pairedDocType");Ql.push(_.Q(a,50,!1)?"!=":"=");Ql.push(cK("NONE"));_.dK(c,Ql.join(" "))}eK(c,"workspaceIds",a.Yq(),!1);for(var To=_.yb(a,_.dl,57),Wn=0;Wn<To.length;Wn++){var Xn=[];0==Wn&&Xn.push("(");Xn.push(cK(To[Wn].Wa()));Xn.push("in");Xn.push("approvals");Wn==To.length-1&&Xn.push(")");_.dK(c,Xn.join(" "),0==Wn?"and":"or")}if(_.lj(a,58)){var Nx=
a.oq(),tw=Nx.Wa();if(tw){var Op=[];_.Q(Nx,2,!1)&&Op.push("not");Op.push("creator");Op.push("=");Op.push(cK(tw));_.dK(c,Op.join(" "))}}var Nz=_.x(a,_.npa,59);if(Nz)for(var Fu=_.m(_.yb(Nz,_.kpa,1)),Ur=Fu.next();!Ur.done;Ur=Fu.next()){var Vr=Ur.value;eK(c,"categoryMetadata",Vr.Fm());for(var $s=_.m(Vr.Yj()),Wk=$s.next();!Wk.done;Wk=$s.next()){var Gi=Wk.value,jm=_.y(Gi,1),Pg=_.Bb(Gi,_.el);if(10==Pg){_.Gj(Gi,_.bpa,10,_.el);var uw=_.N(Gi,15);(void 0===uw?0:uw)?_.dK(c,jm+" is null"):_.dK(c,"not ("+jm+" is null)")}else{var Hi=
new _.uo,Xk=void 0;switch(Pg){case 3:Xk=_.Gj(Gi,Dic,3,_.el);for(var Gu=_.m(Xk.wi()),Yk=Gu.next();!Yk.done;Yk=Gu.next())_.fK(Hi,jm,Yk.value,"or");break;case 14:for(var at=Xk=_.Gj(Gi,_.Voa,14,_.el),vw=new Map([[1,"="],[2,">"],[3,"<"]]),bt=_.m(at.wi()),Hu=bt.next();!Hu.done;Hu=bt.next()){var Wr=Hu.value,Pp=vw.get(_.y(at,2));if(!Pp)throw Error("mf");_.dK(Hi,[jm,Pp,cK(Wr.getYear()+"-"+shc(Wr.getMonth())+"-"+shc(Wr.getDay()))].join(" "),"or")}break;case 8:for(var gv=Xk=_.Gj(Gi,_.apa,8,_.el),hv=new Map([[1,
"="],[2,">"],[3,"<"]]),iv=_.m(gv.wi()),ny=iv.next();!ny.done;ny=iv.next()){var Tw=ny.value,sN=hv.get(_.y(gv,2));if(!sN)throw Error("mf");_.dK(Hi,[jm,sN,Tw].join(" "),"or")}break;case 9:for(var zg=Xk=_.Gj(Gi,Fic,9,_.el),cr=new Map([[1,"in"]]),jJ=_.m(zg.wi()),tN=jJ.next();!tN.done;tN=jJ.next()){var uN=tN.value,fS=cr.get(_.y(zg,2));if(!fS)throw Error("mf");_.dK(Hi,[uN,fS,jm].join(" "),"or")}break;case 6:for(var oy=Xk=_.Gj(Gi,_.fpa,6,_.el),gZ=new Map([[1,"="]]),vN=_.m(oy.wi()),hZ=vN.next();!hZ.done;hZ=
vN.next()){var iZ=hZ.value,gS=gZ.get(_.y(oy,2));if(!gS)throw Error("mf");_.dK(Hi,[jm,gS,cK(iZ)].join(" "),"or")}break;case 7:for(var $C=Xk=_.Gj(Gi,_.dpa,7,_.el),jZ=new Map([[1,"in"]]),kZ=_.m($C.wi()),GF=kZ.next();!GF.done;GF=kZ.next()){var LA=GF.value,lZ=jZ.get(_.y($C,2));if(!lZ)throw Error("mf");_.dK(Hi,[cK(LA),lZ,jm].join(" "),"or")}break;case 4:for(var mZ=Xk=_.Gj(Gi,_.hpa,4,_.el),c7=new Map([[1,"="],[2,"contains"],[3,"starts with"]]),nZ=_.m(mZ.wi()),oZ=nZ.next();!oZ.done;oZ=nZ.next()){var pZ=oZ.value,
d7=c7.get(_.y(mZ,2));if(!d7)throw Error("mf");_.dK(Hi,[jm,d7,cK(pZ)].join(" "),"or")}break;case 5:for(var qZ=Xk=_.Gj(Gi,Hic,5,_.el),kha=new Map([[1,"in"]]),wwb=_.m(qZ.wi()),wXa=wwb.next();!wXa.done;wXa=wwb.next()){var xXa=wXa.value,yXa=kha.get(_.y(qZ,2));if(!yXa)throw Error("mf");_.dK(Hi,[cK(xXa),yXa,jm].join(" "),"or")}break;case 12:for(var HF=Xk=_.Gj(Gi,_.Zoa,12,_.el),Rkc=new Map([[1,"="]]),xwb=_.m(HF.wi()),hS=xwb.next();!hS.done;hS=xwb.next()){var Uw=hS.value,e7=Rkc.get(_.y(HF,2));if(!e7)throw Error("mf");
_.dK(Hi,[jm,e7,cK(Uw)].join(" "),"or")}break;case 11:for(var lha=Xk=_.Gj(Gi,_.Xoa,11,_.el),rZ=new Map([[1,"in"]]),Bxa=_.m(lha.wi()),Cxa=Bxa.next();!Cxa.done;Cxa=Bxa.next()){var mha=Cxa.value,ywb=rZ.get(_.y(lha,2));if(!ywb)throw Error("mf");_.dK(Hi,[cK(mha),ywb,jm].join(" "),"or")}}_.N(Gi,15)?_.dK(c,"not ("+Hi+")"):_.dK(c,1<Xk.wi().length?"("+Hi+")":""+Hi)}}}null!=_.N(a,60)&&_.fK(c,"linkShareMetadata.securityUpdateEligible",_.N(a,60));var nha=_.N(a,65);if(null!=nha){var Dxa=[];Dxa.push("clientEncryptionDetails.encryptionState");
Dxa.push("=");Dxa.push(cK(nha?"encrypted":"unencrypted"));_.dK(c,Dxa.join(" "))}var zwb=_.yb(a,_.Ff,68);if(zwb.length){for(var Awb=[],Bwb=[],Exa=_.m(zwb),zXa=Exa.next();!zXa.done;zXa=Exa.next()){var f7=zXa.value,oha="sharedFrom = "+cK(f7.Wa());_.Q(f7,2,!1)?Bwb.push(oha):Awb.push(oha)}xjc(c,Awb,!1);xjc(c,Bwb,!0)}var g7=_.yb(a,_.Ff,67);if(g7.length){for(var AXa=[],Cwb=[],sZ=_.m(g7),BXa=sZ.next();!BXa.done;BXa=sZ.next()){var Dwb=BXa.value,CXa="sharedTo = "+cK(Dwb.Wa());_.Q(Dwb,2,!1)?Cwb.push(CXa):AXa.push(CXa)}xjc(c,
AXa,!1);xjc(c,Cwb,!0)}null!=_.N(a,69)&&_.fK(c,"linkShareMetadata.securityUpdateEnabled",_.N(a,69));null!=_.N(a,72)&&_.fK(c,"canAcceptOwnership",_.N(a,72));if(_.N(a,73)){var DXa=(new _.Hf).Hb("application/vnd.google-apps.shortcut");_.fK(c,"impactedByMultiparentingMigration",!0);_.dK(c,Cjc([DXa],!1,!1))}1==_.TJ(a)&&yjc(c,a);return c.toString()};
_.Ijc=function(a){var b=new _.uo(_.Hjc(a));_.Q(a,74,!1)?_.dK(b,"isQuickAccessForSharedFilesRequest"):_.kJ(a)?_.dK(b,"isQuickAccessRequest"):_.lJ(a)?_.dK(b,"isPeoplePredictRequest"):_.mJ(a)&&_.dK(b,"isDrivePriorityRequest");var c=a.Lc();if(c){var d=[];d.push("sortBy");d.push(_.Xfc[c.getType()]);d.push(_.dgc[c.Tf()]);_.N(c,3)&&d.push("foldersFirst");_.dK(b,d.join(" "))}_.fK(b,"domainSearch",_.N(a,18));_.fK(b,"offline",_.N(a,19));_.yb(a,_.SJ,25).length&&(c=[],c.push("sources"),c.push("contains"),c.push(_.zjc(a)),
_.dK(b,c.join(" ")));a.gA().length&&(c=[],c.push("spaces"),c.push("contains"),c.push(_.Ajc(a)),_.dK(b,c.join(" ")));if(c=_.TJ(a))d=[],d.push("corpora"),d.push("="),d.push(cK(_.wjc[c])),_.dK(b,d.join(" "));_.Q(a,66,!0)||_.fK(b,"includeItemsFromAllDrives",_.Q(a,66,!0));1!=_.TJ(a)&&yjc(b,a);_.Q(a,48,!1)&&_.dK(b,"cachedOnly");return b.toString()};
_.JJ=function(a){if(a instanceof _.mI)a=a.jd();else if(!a)return!1;return a instanceof _.bA||a instanceof _.$F||"undefined"!=typeof _.gK&&a instanceof _.gK||a instanceof _.Df&&(_.kJ(a)||_.lJ(a)||_.mJ(a))};Jjc=function(){_.ro.call(this);this.V=this.O=null;this.ka=!1;this.ha=null};_.J(Jjc,_.ro);_.Kjc=function(a){!a.ka&&a.V&&(a.V(),a.ka=!0)};Ljc=function(a,b){a.V||(a.V=b)};Jjc.prototype.Cj=function(){_.Kjc(this);(0,this.ha)()};Mjc=function(a,b){a.ha||(a.ha=b)};
_.hK=function(a){if(!a.O){a.O=new fjc;var b=_.to(a);_.F(b,56,a.O)}return a.O};Jjc.prototype.getState=function(){var a=_.hK(this).getState();a||(a=new Wic,_.hK(this).Id(a));return a};var Njc=function(a,b){var c=new Uic;_.u(c,1,b);a=_.to(a);_.F(a,12,c)};Jjc.prototype.ma=function(){var a=_.x(_.hK(this),Yic,4);if(!a){a=new Yic;var b=_.hK(this);_.F(b,4,a)}return a};
var Ojc=function(a){var b=_.x(_.hK(a),Zic,8);b||(b=new Zic,a=_.hK(a),_.F(a,8,b));return b},Pjc=function(a){var b=_.x(_.hK(a),djc,19);b||(b=new djc,a=_.hK(a),_.F(a,19,b));return b},Qjc=function(a){_.ni.call(this,"rb");this.H=a};_.J(Qjc,_.ni);Qjc.prototype.Le=function(){return this.H};_.Rjc=function(a,b){a=void 0===a?1:a;b=void 0===b?!1:b;_.yi.call(this);this.H=!1;this.connectionState=b?1:a;this.O=b?!0:1===a;this.V=b};_.J(_.Rjc,_.yi);_.g=_.Rjc.prototype;
_.g.isConnected=function(){return!this.H&&1===this.connectionState};_.g.Jk=function(){return 1===this.connectionState||2===this.connectionState};_.g.Le=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?_.VB.YU:_.VB.Jha;else 1===a?(b=_.VB.XL,this.O=!0):3===a&&(b=_.VB.XU);if(b)return b=new njc(b),this.connectionState=a,this.H=!1,this.dispatchEvent(b),!0}return!1};
var Sjc=function(a,b){this.userId=a;this.H=b;this.db=null},Ujc=function(a,b){a.H.info("drive.ds.sync.logging.ImpressionPersister","Persisting offline impressions.");return Tjc(a,function(c){return c.count().then(function(d){return 1E3>d?a.add(c,b):a.handleError(Error("pf"))},function(d){return a.handleError(d)})},"readwrite")};Sjc.prototype.add=function(a,b){var c=this,d={};return a.add((d.userId=this.userId,d.kDb=b.toJSON(),d)).then(null,function(e){c.handleError(e)})};
var Vjc=function(a){return new _.Uh(function(b){var c=new Map;Tjc(a,function(d){return Jic(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={asa:f.asa},k=h.next()){var l=_.m(k.value);k=l.next().value;l=l.next().value;f.asa=k;l.then(function(p){return function(q){q&&c.set(p.asa,new _.WAa(q.kDb))}}(f))}return _.iI([].concat(_.fc(e.values()))).then(function(){return b(c)})})})})},Wjc=function(a,b){return Tjc(a,
function(c){return c.remove(b)},"readwrite")},Tjc=function(a,b,c){c=void 0===c?"readonly":c;return Xjc(a).then(function(d){try{var e=_.Qdc(d,["OfflineImpressions"],c).objectStore("OfflineImpressions");return b(e)}catch(f){return a.handleError(f?_.NI(f):void 0)}},function(d){return a.handleError(d)})},Xjc=function(a){return a.db?_.Vh(a.db):_.Sdc("GoogleDriveDsImpressions",2,function(b,c){c.H.objectStoreNames.contains("OfflineImpressions")&&_.Kic(c,"OfflineImpressions");b=_.Pdc(c,"OfflineImpressions",
{autoIncrement:!0});try{b.H.createIndex("userId","userId",void 0)}catch(d){throw _.WH(d,"creating new index userId with key path userId");}},function(){return a.handleError(Error("qf"))}).then(function(b){return a.db=b},function(b){return _.Wh(_.NI(b))})};Sjc.prototype.handleError=function(a){a||(a=Error("rf"));_.$J(this.H,"drive.ds.sync.logging.ImpressionPersister",a.message,"severe");return _.Vh()};
_.Yjc=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;_.yi.call(this);this.V=b;this.O=null;this.H=b?!1:a};_.J(_.Yjc,_.yi);_.Yjc.prototype.Le=function(){return this.H};_.Yjc.prototype.Il=function(a){var b=this.H!==a;!this.V&&b&&(this.H=a,this.dispatchEvent(new Qjc(a)))};_.Yjc.prototype.hz=function(a){this.O=a};
var $jc=function(a,b,c,d,e,f){_.yi.call(this);var h=this;this.V=a;this.H=b;this.connectionState=c;this.O=d;this.Jb=new _.of(this);this.Jb.listen(b,"rb",function(k){k.Le()||Zjc(h)});this.Jb.listen(c,[_.VB.XL,_.VB.YU],function(){return void Zjc(h)});this.W=e;f.then(function(){return Zjc(h)})};_.J($jc,_.yi);$jc.prototype.NA=function(a){return(a=(this.H.Le()||this.connectionState.Le())&&this.H.O?Ujc(this.O,a):this.V.NA(a))?a:void 0};
var Zjc=function(a){return a.H.O?Vjc(a.O).then(function(b){b.forEach(function(c,d){a.V.NA(c).then(function(){return akc(a,d)},function(){a.log("Unable to send offline impression batch "+d+".")})})}):Promise.resolve()},akc=function(a,b){a.log("Sent offline impression batch "+b+".");a.dispatchEvent("sb");return Wjc(a.O,b).then(function(){a.log("Removed offline impression batch "+b+".")},function(){a.log("Unable to remove offline impression batch "+b+".")})};
$jc.prototype.log=function(a){this.W.info("drive.ds.sync.logging.ClearcutOfflineTransport",a)};var bkc=function(){};bkc.prototype.uR=function(){return new Jjc};var ckc=function(){this.H=new gjc};ckc.prototype.O=function(a){_.F(a,13,this.H)};ckc.prototype.setEnvironment=function(a){this.H.setEnvironment(a);return this};
var ekc=function(a,b,c,d){this.ha=b;this.connectionState=c;this.Mw=d;this.O=this.H=this.V=null;this.client=_.iK(_.mgc,_.WJ(a));this.ka=_.y(a,94);this.ma=_.iK(_.qgc,_.oj(a.Sf(),8,0));this.lya=_.iK(_.ngc,_.oj(a.Sf(),9,2));this.ta=_.VJ(a);this.Iu=_.KI(_.eI(a));this.ODa=_.XJ(a);this.W=dkc(a);this.buildLabel=a.Ki()};ekc.prototype.Ij=function(){return this.client};
dkc=function(a){var b=[].concat(_.fc(_.jgc.keys())),c=[].concat(_.fc(_.kgc.keys())),d=_.IJ(a);return b.filter(function(e){return _.jgc.get(e)(a)}).concat(c.filter(function(e){return d&&_.kgc.get(e)(d)}))};_.iK=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};ekc.prototype.Vo=function(a){return null==a?0:a?2:1};var fkc=function(a){if(a.O)return a.O.H("aU7Ts")};
ekc.prototype.Cb=function(a){return a instanceof _.dI||"undefined"!=typeof _.jK&&a instanceof _.jK||"undefined"!=typeof _.kK&&a instanceof _.kK||"undefined"!=typeof _.lK&&a instanceof _.lK?a.Cb():"undefined"!=typeof _.mK&&a instanceof _.mK||"undefined"!=typeof _.nK&&a instanceof _.nK||"undefined"!=typeof _.oK&&a instanceof _.oK||"undefined"!=typeof _.pK&&a instanceof _.pK||"undefined"!=typeof _.qK&&a instanceof _.qK?a.response?a.response.Cb():null:null};ekc.prototype.Ki=function(){return this.buildLabel};
var gkc=function(a){return a.ha.Le()||a.connectionState.Le()?2:1};ekc.prototype.getEnvironment=function(){return this.Mw};hkc=function(a,b){this.H=a;var c=new _.Lza;_.Mza(c,b.W);a=this.H.$L();var d=_.Kfc(a);_.F(d,10,c);(c=b.Ki())&&_.Jfc(a,c);this.H.H_();this.O=b};
_.ikc=function(a,b,c){var d=_.so(a.H.qG(b,c),_.egc);Njc(d,gkc(a.O));b=fkc(a.O);"boolean"===typeof b&&Xic(d.getState(),b);1===c&&Ljc(d,function(){return void a.H.Lw(d)});Mjc(d,function(){var e;var f=null===(e=a.O.V)||void 0===e?void 0:e.getSize();e=d.getState();_.u(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.getSize();h=d.getState();_.u(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.getSize();l=d.getState();_.u(l,
7,h);a.H.Zm(d)});return d};jkc=function(a){var b=new _.wAa,c=new ckc,d=a.Ij();_.u(c.H,1,d);_.u(c.H,8,a.ka);_.u(c.H,3,a.ma);_.u(c.H,4,a.lya);_.u(c.H,5,a.ta);_.u(c.H,6,a.Iu);_.u(c.H,7,a.ODa);a=c.setEnvironment(a.getEnvironment());_.Dec(b,_.ggc,a);_.vo(b,_.egc,new bkc);return b};
kkc=function(a,b,c,d,e,f,h,k){k=void 0===k?!1:k;var l=new _.gI(906,b,void 0,_.wgc());l.ha=!1;var p=new _.Eec(l);b=new Date;l=_.Pfc(_.Ofc(_.Nfc(Lic(),new _.Fec(l)),jkc(c)),109).setSessionId(b.getTime()+"_"+_.oh());if(k){a=new $jc(p,d,e,new Sjc(a,f),f,h);_.Mfc(l,a);d=l.build();_.Ifc(d.$L(),1E3*b.getTime());var q=new hkc(d,c);(new _.of).listen(a,"sb",function(){_.ikc(q,106008,0).Cj()});return q}_.Mfc(l,p);a=l.build();_.Ifc(a.$L(),1E3*b.getTime());return new hkc(a,c)};
lkc=function(a,b){this.V=a;this.W=b};lkc.prototype.O=function(a,b){this.V&&_.mkc(this)&&(a=_.ikc(this.V,a,0),b&&_.ehc(a,b),a.Cj())};_.rK=function(a,b){if(a.V&&_.mkc(a)){a=_.ikc(a.V,106018,0);var c=_.x(_.hK(a),cjc,15);if(!c){c=new cjc;var d=_.hK(a);_.F(d,15,c)}c=_.u(c,1,1);_.u(c,2,b);a.Cj()}};lkc.prototype.H=function(a,b){return this.V&&_.mkc(this)?(a=_.ikc(this.V,a,1),b&&_.ehc(a,b),a):null};_.mkc=function(a){return!(!a.V||!a.V.H.aQ())};
_.nkc=function(a,b,c,d,e,f){var h=_.N(a,59),k=_.vI(_.eI(a)).toString(),l=_.UJ(_.eI(a));f=new ekc(a,b,c,f);a=h?kkc(l,k,f,b,c,d,e,_.Q(a,17,!1)):null;return new lkc(a,f)};_.okc=function(a){_.G.call(this,a)};_.J(_.okc,_.G);_.okc.prototype.xk=function(){return _.y(this,1)};_.pkc=function(a){var b=new _.okc;return _.u(b,1,a)};_.cJ=function(a){_.G.call(this,a)};_.J(_.cJ,_.G);_.cJ.prototype.getId=function(){return _.y(this,1)};_.cJ.prototype.Nb=function(a){return _.u(this,1,a)};
_.qkc=function(a,b){return _.u(a,2,b)};rkc=[1];_.vhc=function(a){_.G.call(this,a,-1,rkc)};_.J(_.vhc,_.G);_.sJ=function(a){_.G.call(this,a)};_.J(_.sJ,_.G);_.sJ.prototype.jd=function(){return _.x(this,_.cJ,1)};skc=[2];_.zJ=function(a){_.G.call(this,a,-1,skc)};_.J(_.zJ,_.G);_.zJ.prototype.qc=function(){return _.y(this,1)};_.zJ.prototype.qW=function(){return _.yb(this,_.UF,2)};_.zJ.prototype.re=function(){return _.x(this,_.Qf,3)};_.eJ=function(a){_.G.call(this,a)};_.J(_.eJ,_.G);
_.eJ.prototype.jd=function(){return _.x(this,_.dJ,1)};_.eJ.prototype.Jda=function(a){return _.u(this,2,a)};_.tkc=function(a){_.G.call(this,a)};_.J(_.tkc,_.G);_.tkc.prototype.getId=function(){return _.y(this,1)};_.tkc.prototype.Nb=function(a){return _.u(this,1,a)};_.tkc.prototype.re=function(){return _.x(this,_.Qf,2)};_.pJ=function(a){_.G.call(this,a)};_.J(_.pJ,_.G);_.pJ.prototype.Zn=function(){return _.y(this,2)};_.pJ.prototype.jd=function(){return _.x(this,_.tkc,3)};
_.fJ=function(a){_.G.call(this,a)};_.J(_.fJ,_.G);_.ukc=function(a,b){this.O=b;this.H=new Map;this.yma(_.yb(a,_.jl,91))};_.ukc.prototype.yma=function(a){a=_.m(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;b=c.getId();c=_.kl(c);if(!b||!c)break;var d=_.vkc(this,b);if(d){d!==c&&uhc(b);break}this.H.set(b,c)}};
bic=function(a,b){return[].concat(_.fc(new Set(b))).map(function(c){var d=(new _.jl).Nb(c);a.H.has(c)?_.ll(d,a.H.get(c)):a.O&&(c=a.O.H(c))&&_.ll(d,_.Ok(c));return d}).filter(function(c){return _.lj(c,2)})};_.vkc=function(a,b){return a.H.has(b)?String(a.H.get(b)):a.O&&(a=a.O.H(b))&&_.lj(a,140)?_.Ok(a):null};_.yhc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};_.Ehc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};_.Khc=function(){this.H=_.Rf(new _.Qf,312)};
_.wkc=function(a,b){_.XH.call(this,a?a:500,b?b:6E5)};_.J(_.wkc,_.XH);_.sK=function(a,b,c,d){this.state=a;this.ma=b;this.ka=c;this.Xf=d;this.ha=this.O=this.timeout=this.W=null;this.V=!1;this.H=null};_.sK.prototype.getState=function(){return this.state};
_.sK.prototype.IM=function(a){var b=this;if(this.W)return this.W;var c=_.Yh();this.W=c.promise.then(function(){return _.pkc(1)},function(d){d=_.wd(d).qg;var e=0;2===d.Ip()?e=3:_.vgc(d)&&(e=2);return _.pkc(e)});a&&this.W.then(function(d){3===d.xk()&&_.rK(b.Xf,186469046)});this.H&&(a=_.y(Pjc(this.H),4)||0,ejc(Pjc(this.H),a+1));setTimeout(function(){b.W=null},5E3);xkc(this,c);return this.W};_.Akc=function(a,b){ykc(a,3)&&_.zkc(a,b)};_.sK.prototype.reset=function(){this.O=null;Bkc(this)};
Bkc=function(a){a.timeout&&(clearTimeout(a.timeout),a.timeout=null)};_.zkc=function(a,b){if(!a.O&&!a.V){a.H=a.Xf.H(106025);if(a.H){var c=Pjc(a.H);var d=!(!a.state.isConnected()&&a.state.Jk());c=_.u(c,1,d);c=_.u(c,2,a.state.O);_.u(c,5,!!b)}a.O=new _.wkc(5E3,6E4);Ckc(a)}};Ckc=function(a){Bkc(a);xkc(a);a.O&&(a.timeout=setTimeout(function(){return void Ckc(a)},a.O.Wa()),_.YH(a.O))};
xkc=function(a,b){var c=function(){if(a.H){var d=_.y(Pjc(a.H),3)||0,e=Pjc(a.H);_.u(e,3,d+1)}Dkc(a,b)};(a.ha?a.ha():_.Vh(void 0)).then(null,function(){return null}).then(c,c)};Dkc=function(a,b){a.log("Checking connection state.");var c=a.ma.then(function(d){return d.Oe(new _.Khc)}).then(null,function(d){d=_.wd(d);_.vgc(d.qg)&&ykc(a,2);return _.Wh(d)});b?b.resolve(c):c.then(null,function(){return null})};_.sK.prototype.log=function(a){this.ka.info("drive.ds.sync.connection.StateManager",a)};
ykc=function(a,b){return!a.V&&a.state.update(b)?(a.log("Connection status: "+_.zgc.get(b)),!0):!1};_.Ekc=function(){this.H={}};Fkc=function(a,b,c){if(a.H[b])throw Error("sf");a.H[b]=c};_.Ekc.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){_.aa.setTimeout(function(){throw d;},0)}};Gkc=function(a,b){for(var c=0;c<b.length;c++)delete a.H[b[c]]};_.Hkc=function(a,b){this.H=a;this.V=b;this.O=_.Bgc[_.oj(a.Sf(),8,0)];this.W=_.Bgc[_.oj(a.Sf(),51,5)]};
_.Hkc.prototype.kc=function(a,b){if(b.eO)Ikc(this,a,b),Jkc(this,a,b);else{var c={};if(11===a.jn){if(b.vNb){var d=b.aE||_.z(this.H.Sf(),37,"");c.key=d;qhc(c,a.uri)}Ikc(this,a,b);Kkc(this,a,b)}else switch(a.uri=Lkc(this,a.jn,a.uri),a.jn){case 1:Kkc(this,a,b);Ikc(this,a,b);break;case 0:b.Iu||_.KI(_.eI(this.H))||_.Q(this.H,83,!1)&&qhc({dsNonce:_.oh()},a.uri);Kkc(this,a,b);Jkc(this,a,b);Ikc(this,a,b);break;case 2:case 3:case 4:case 5:Kkc(this,a,b);Jkc(this,a,b);Ikc(this,a,b);break;case 8:case 9:case 10:case 13:case 12:case 7:Kkc(this,
a,b);Jkc(this,a,b);break;default:throw Error("tf`"+a.jn);}}};Mkc=function(a,b){var c=Lkc(a,b,new _.Zi);if(!c.vH())throw Error("vf");return(new _.Zi).Pr(c.Po).Ln(c.jk()).QA(c.Iy()).zi(_.Cgc.has(b)?"/batch"+a.O:"/batch")};
Lkc=function(a,b,c){var d=_.y(a.H.Sf(),57);switch(b){case 0:a=d+a.O;break;case 1:a=d+"/batch"+a.O;break;case 2:a=d+"/upload"+a.O;break;case 3:a=d+"/upload"+a.O+"/batch";break;case 4:return c;case 5:a=d+a.W;break;case 7:a=_.z(a.H.Sf(),62,"");break;case 8:a=_.y(a.H.Sf(),53);break;case 9:a=_.y(a.H.Sf(),56);break;case 10:a=_.y(a.H.Sf(),22);break;case 13:a=_.y(a.H.Sf(),55);break;case 12:a=_.y(a.H.Sf(),43);break;default:throw Error("tf`"+b);}a&&a.endsWith("/")&&(a=a.slice(0,-1));c=c.toString();if(!c)return new _.Zi(a);
_.ge(c,"/")&&(c=c.slice(1));return new _.Zi(a+"/"+c)};Kkc=function(a,b,c){a=_.eI(a.H);c.Iu||_.KI(a)||(b.headers.authorization=_.Bec([{key:"u",value:_.UJ(a)}])||"",c=_.vI(a),0<=c&&(b.headers["x-goog-authuser"]=String(c)))};
Ikc=function(a,b,c){var d=_.eI(a.H),e=a.H.Sf(),f=c.T8a||_.Q(e,14,!1),h=11===b.jn;if(c.S8a||_.y(e,13)){c=_.y(e,13);var k={};c&&_.ge(c,"email:")?k.trace=c:c&&"trace:true"===c?k.$trace="true":k.trace=c?"token:"+c:"email:"+d.getEmail().replace(/(@|\+).*$/,"");h||(k["trace.deb"]="genoa:3:all,driveService:3:all"+(2===_.oj(e,9,2)?"":",cospel:3:all,DriveService:3:all"));qhc(k,b.uri)}f&&!h&&a.V&&a.V.O(b.headers,b.method,b.uri.toString())};
Jkc=function(a,b,c){a=c.Iu||_.KI(_.eI(a.H))?_.z(a.H.Sf(),36,""):c.aE||_.z(a.H.Sf(),37,"");qhc({key:a},b.uri)};_.xhc=function(a,b,c){this.request=a;this.pageSize=b;this.pageToken=c};_.zhc=function(a){this.request=a;this.requestId=_.oh()};_.Hhc=function(a,b,c,d){this.request=a;this.file=b;this.UQ=void 0===c?null:c;this.metadata=d};Fhc=function(a,b){this.request=a;this.metadata=b};Ghc=function(a,b,c,d,e,f,h){this.V=a;this.blob=b;this.H=c;this.O=d;this.G0a=e;this.contentType=f;this.revisionId=h};
_.DJ=function(a,b,c,d){this.request=a;this.file=b;this.UQ=void 0===c?null:c;this.metadata=d};Phc=[_.PI,_.RI,_.QI,_.TI,_.SI,_.UI,_.VI,_.YI,_.$I,_.aJ,_.bJ,_.dJ,_.eJ,_.rJ,_.vJ,_.xJ,_.zJ,_.wI,_.AJ,_.BJ,_.CJ,_.zhc,_.DJ];Nkc=[_.yI];Qhc=[_.VF,_.Ehc];Rhc=[_.pJ,_.OH,_.nD,_.EJ];Shc=[_.mI,_.fJ,_.WF,_.yI,_.yhc];Thc=[_.EJ,_.aG];Uhc=[_.cJ,_.vhc,_.oJ,_.sJ,_.tJ,_.xhc,_.DJ,Ghc,Fhc];
Okc=function(a){return a instanceof _.mI||a instanceof _.EJ||"undefined"!=typeof _.tK&&a instanceof _.tK||a instanceof _.BJ||a instanceof _.aJ||a instanceof _.UI||a instanceof _.YI||a instanceof _.wI&&_.HJ(a)};_.Pkc=function(a,b){this.H=b;this.b5={};this.aj=new Sic;b=_.OI({fields:_.se(a,28),anonymous:_.KI(_.eI(a))});this.Hb("SecondaryFields",b);this.Hb("SdkBackfillEnabled",!!_.Q(a,45,!1)+" (Include corpus cache: "+!!_.Q(a,46,!1)+")")};_.Pkc.prototype.Hb=function(a,b){this.b5[a]=Qkc(a,b)};
var Skc=function(a,b){var c=a.b5[b];c||(c=Qkc(b,0,2),a.b5[b]=c);c.Hb(String(Number(c.Wa())+1))};_.Pkc.prototype.Uz=function(a){var b=_.Ya(this.b5);this.H&&b.push(Qkc("CacheSize",this.H.getSize()));b.push(Qkc("InitialViewDataLoaded",a));a=new _.tjc;_.sj(a,1,b);return _.ei(a)};Qkc=function(a,b,c){var d=new _.rjc;_.u(d,1,a);_.u(d,4,c||1);d.Hb(String(b));d.kl(_.Ggc.get(a));return d};
_.Tkc=function(a,b,c){var d=new _.Rfc;_.u(d,2,"Pending...");b instanceof _.mI?_.wj(d,3,_.nI,b):b instanceof _.EJ?_.wj(d,4,_.nI,b):"undefined"!=typeof _.tK&&b instanceof _.tK?_.wj(d,5,_.nI,b):b instanceof _.BJ?_.wj(d,6,_.nI,b):b instanceof _.aJ?_.wj(d,7,_.nI,b):b instanceof _.UI?_.wj(d,8,_.nI,b):b instanceof _.YI?_.wj(d,9,_.nI,b):b instanceof _.wI&&_.wj(d,10,_.nI,b);var e=Mhc(b),f=[];if(b instanceof _.QI)FJ(f,"ID",b.getId()),FJ(f,"Parent ID",b.$j());else if(b instanceof _.aJ)FJ(f,"TD ID",b.getId());
else if(b instanceof _.mI)b=_.Ijc(b.jd()),FJ(f,"Query",b);else if(b instanceof _.EJ)FJ(f,"Query","All");else if(b instanceof _.BJ)FJ(f,"TD ID",b.getId()),FJ(f,"Title",b.getTitle()),FJ(f,"Theme Image ID",_.y(b,3));else if(b instanceof _.UI)FJ(f,"MimeType",b.getMimeType()),FJ(f,"Title",b.getTitle()),FJ(f,"Parents",_.se(b,3)),FJ(f,"Convert",_.N(b,8)),FJ(f,"Request ID",b.lj()),FJ(f,"Parent Request IDs",_.se(b,10)),FJ(f,"Revision Item ID",_.y(b,12)),FJ(f,"Pinned",_.N(b,8));else if(b instanceof _.VI)FJ(f,
"Title",b.getTitle());else if(b instanceof _.YI)FJ(f,"ID",b.getId());else if(b instanceof _.bJ)FJ(f,"WS ID",b.getId());else if(b instanceof _.rJ)FJ(f,"Source ID",_.y(b,1)),FJ(f,"Destination Parent ID",_.y(b,2)),FJ(f,"validation token",_.y(b,4));else if(b instanceof _.wI){if(FJ(f,"ID",b.getId()),FJ(f,"Title",b.getTitle()),FJ(f,"Description",b.yf()),FJ(f,"Starred",_.N(b,4)),FJ(f,"Trashed",b.Ph()),FJ(f,"MimeType",b.getMimeType()),FJ(f,"Parents",_.se(b,8)),FJ(f,"Parents to add",_.se(b,9)),FJ(f,"Parents to remove",
_.se(b,10)),FJ(f,"Restricted",_.N(b,11)),FJ(f,"Folder Color",b.Li()),FJ(f,"Update Last Viewed",_.N(b,15)),FJ(f,"Subscribed",_.N(b,16)),FJ(f,"Available Offline",_.N(b,18)),FJ(f,"Wksp to add",_.se(b,31)),FJ(f,"Wksp to remove",_.se(b,32)),b=_.x(b,_.Dk,25))FJ(f,"Read Only",_.N(b,1)),FJ(f,"Reason",_.y(b,2))}else b instanceof _.CJ?(FJ(f,"WS ID",b.getId()),FJ(f,"Title",b.getTitle()),FJ(f,"State",b.getState())):b instanceof _.zhc&&FJ(f,"Title",b.request.getTitle());_.u(d,1,"Request: "+e+(c?" ("+c+")":"")+
"\n"+f.join("\n"));a.aj.add(d);return d};_.Ukc=function(a,b){for(var c=new _.uo,d=0;d<b.length&&20>d;d++){var e=b[d];c.append(e.getId()+":"+_.Tgc(e.getTitle()||"",20)+"\n")}20<b.length&&c.append(b.length-20+" more item(s)");_.u(a,2,c.toString()||"Done.")};_.Pkc.prototype.SR=function(){return this.aj.hh()};
_.uK=function(a){_.G.call(this,a)};_.J(_.uK,_.G);_.uK.prototype.Zc=function(){return _.x(this,_.dI,1)};_.Vkc=function(a,b){return _.F(a,1,b)};_.uK.prototype.Zn=function(){return _.y(this,3)};
_.Wkc=function(a,b,c){_.ni.call(this,"Cb");this.requestId=a;this.progress=b;this.totalBytes=c};_.J(_.Wkc,_.ni);
var Ykc;_.Xkc=function(a,b){this.O=a;this.V=b;this.H=null};Ykc=function(a){a.O()||(a.H&&(a.H.resolve(),a.H=null),a.V())};
var vK=function(a){_.yi.call(this);this.name=a};_.J(vK,_.yi);_.g=vK.prototype;_.g.Q4=function(){};_.g.zGa=function(){};_.g.X2a=function(){};_.g.xOa=function(){};_.g.W2a=function(){};_.g.rG=function(){this.dispatchEvent(new _.ni("Db"))};_.g.toString=function(){return this.name+": "+this.max(Infinity)};
var Zkc=function(a,b){vK.call(this,"Online");var c=this;this.O=a;this.H=b;this.Oc=new _.of(this);this.Ja(this.Oc);this.Oc.listen(this.O,"rb",function(d){d.Le()||c.rG()});this.Oc.listen(this.H,"fb",this.rG)};_.J(Zkc,vK);Zkc.prototype.max=function(){var a=this.O.Le(),b=this.H.OB();return!a&&b?Infinity:0};Zkc.prototype.Q4=function(){this.rG()};
var $kc=function(a){vK.call(this,"Online");var b=this;this.connectionState=a;this.Oc=new _.of(this);this.Ja(this.Oc);this.Oc.listen(this.connectionState,[_.VB.XL,_.VB.Jha,_.VB.YU],function(){return b.rG()})};_.J($kc,vK);$kc.prototype.max=function(){return this.connectionState.isConnected()?Infinity:0};$kc.prototype.Q4=function(){this.rG()};
_.alc=function(a,b){this.H=a;this.O=b};_.blc=function(a){return a.H instanceof _.sK?new $kc(a.H.getState()):new Zkc(a.O,a.H)};_.alc.prototype.Jj=function(){return this.H instanceof _.sK?this.H.getState():this.O};
var dlc;_.clc=function(a,b,c){this.RK=c;this.O=!0;this.V=0;this.H=new _.XH(a,b,.5)};dlc=function(a){return a.H.O+a.V};
_.wK=function(a,b){vK.call(this,"Backoff");this.H=a;this.O=b};_.J(_.wK,vK);_.wK.prototype.max=function(){return this.H.O?Infinity:0};_.wK.prototype.xOa=function(){var a=this.H;a.V=0;a.H.reset()};_.wK.prototype.W2a=function(a){var b=this;elc(a)&&this.H.O&&(this.H.O=!1,a=this.H.H.Wa(),this.log("Stopping new requests for "+a+" ms."),_.aa.setTimeout(function(){b.log("Backoff complete, allowing requests.");b.H.O=!0;b.rG()},a),_.YH(this.H.H))};
var elc=function(a){var b;return(a=null===(b=_.ka(a.dE))||void 0===b?void 0:b.response)?hhc(_.xda(a)):!1};_.wK.prototype.log=function(a){this.O.info("drive.ds.network.queue.BackoffState",a)};
_.flc=function(a,b){vK.call(this,"Batch");this.O=a;this.V=b;this.H=null};_.J(_.flc,vK);_.flc.prototype.max=function(a){return a>=this.O?this.O:null!=this.H?this.V<=Date.now()-this.H?this.O:0:0};_.flc.prototype.Q4=function(a){a>=this.O?this.rG():null==this.H&&glc(this)};_.flc.prototype.zGa=function(a,b){0<b?glc(this):this.H=null};var glc=function(a){a.H=Date.now()-1;_.aa.setTimeout(a.rG.bind(a),a.V)};
_.xK=function(){this.aj=[]};_.g=_.xK.prototype;_.g.add=function(a,b){b?this.aj.unshift(a):this.aj.push(a);return!0};_.g.Gta=function(a){return _.ta(this.aj,0,a)};_.g.getSize=function(){return this.aj.length};_.g.cancel=function(a){return _.ya(this.aj,function(b){return b.Xv.config.requestId===a?(b.be.resolve(Nhc(b.Xv.jx)),!0):!1})};_.g.vK=function(){return _.Bg(this.aj,function(a){return _.HJ(a.Xv.jx)})};
var hlc=function(){vK.call(this,"Immediate")};_.J(hlc,vK);hlc.prototype.max=function(){return Infinity};hlc.prototype.Q4=function(){this.rG()};
var ilc=function(){vK.call(this,"One Request")};_.J(ilc,vK);ilc.prototype.max=function(){return 1};
_.yK=function(a){vK.call(this,"Parallel");this.limit=a;this.H=0};_.J(_.yK,vK);_.yK.prototype.max=function(){return Math.max(0,this.limit-this.H)};_.yK.prototype.Q4=function(){this.H<this.limit&&this.rG()};_.yK.prototype.zGa=function(a){this.H+=a.length};_.yK.prototype.X2a=function(a){this.H-=a.length;this.H<this.limit&&this.rG()};
var jlc=function(){_.yi.apply(this,arguments)};_.J(jlc,_.yi);var llc=function(a,b){a.dispatchEvent(new klc(b))};jlc.prototype.O=function(){};var klc=function(a){_.ni.call(this,"Eb");this.request=a};_.J(klc,_.ni);
_.zK=function(a,b,c,d,e,f){_.yi.call(this);var h=this;this.ha=a;this.V=b;this.H=c;this.buckets=d;this.O=e;this.ka=0;this.W=new Map;this.Oc=new _.of(this);this.Ja(this.Oc);for(a=0;a<this.H.length;a++)this.Oc.listen(this.H[a],"Db",this.e2a);for(a=0;a<this.O.length;a++)this.Oc.listen(this.O[a],"Eb",function(k){mlc(h,!0,k.request)});this.logName=(0,_.Xs)("drive.ds.network.queue.Queue [%s]",f)};_.J(_.zK,_.yi);_.zK.prototype.add=function(a){return mlc(this,!1,{Xv:a,be:_.Yh(),dE:[]})};
_.zK.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};_.zK.prototype.vK=function(){return this.V.vK()?!0:this.buckets.some(function(a){return a.vK()})};
var mlc=function(a,b,c){if(!a.buckets.some(function(f){return f.add(c,b)}))return a=_.Eo(new _.Fc,"No queue bucket accepted request."),_.Wh(_.wd(a));for(var d=nlc(a),e=0;e<a.H.length;e++)a.H[e].Q4(d);return c.be.promise};_.g=_.zK.prototype;
_.g.e2a=function(){var a=nlc(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].Gta(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.ka++);this.W.set(c,a);for(var d=this.V.execute(a),e=0;e<a.length;e++)d[e].then(this.jyb.bind(this,a[e]),this.iyb.bind(this,a[e]));e=nlc(this);for(var f=0;f<this.H.length;f++)this.H[f].zGa(a,e);_.Zh(_.iI(d).then(this.hyb.bind(this,a)),function(){b.W.delete(c)});_.aa.setTimeout(this.e2a.bind(this),0)};
_.g.jyb=function(a,b){var c=a.Xv.config;this.log(Mhc(a.Xv.jx)+" request completed successfully. xd4: "+!(!c||!c.eO));this.H.forEach(function(d){return d.xOa()});this.O.forEach(function(d){return d.O(a)});a.be.resolve(b)};
_.g.iyb=function(a,b){b=_.wd(b);this.log(Mhc(a.Xv.jx)+(" request failed with error: "+b.ha+"."));a.dE.push({response:b,uUb:Date.now()});for(var c=0;c<this.H.length;c++)this.H[c].W2a(a);a.Xv.config.vGa||!this.O.some(function(d){return d.intercept(a)})?a.be.reject(b):this.log(Mhc(a.Xv.jx)+" encountered an error, but was intercepted to be retried.")};_.g.hyb=function(a){nlc(this);for(var b=0;b<this.H.length;b++)this.H[b].X2a(a)};
var nlc=function(a){for(var b=0,c=0;c<a.buckets.length;c++)if(a.buckets[c].getSize()){b=a.buckets[c].getSize();break}return b};_.zK.prototype.log=function(a){this.ha.info(this.logName,a)};
_.olc=function(a,b,c,d){jlc.call(this);this.V=b;this.ka=c;this.W=d;this.H=new Map;this.ha=_.Dj(a,21,1E3);this.ta=_.Dj(a,1,1);this.ma=function(){return new _.clc(_.Dj(a,63,1E3),_.Dj(a,64,3E5),_.Dj(a,65,10))}};_.J(_.olc,jlc);
_.olc.prototype.intercept=function(a){var b=a.dE.length,c=0<b&&_.ka(a.dE).response||null;if(c){c=_.uI(c);if(2===c.Ip())return plc(this,a);if(_.vgc(c))return 2>=b?(llc(this,a),a=!0):a=!1,a;var d=c.Xj();if(3===d||31===d||13===d||9===d)return qlc(this,a,b);if(hhc(c))return b=dlc(this.V),c=this.V,dlc(c)<c.RK?(this.log("Backoff number "+b+" for a User Rate Limit error."),llc(this,a),a=!0):(this.log("Done retrying User Rate Limit errors after "+(b+" backoffs.")),a=!1),a}return!1};
var plc=function(a,b){var c=rlc(a,b),d=dlc(c);if(dlc(c)<c.RK)return a.log("Retry "+(d+1)+" for a failed request due to an offline error."),a.ka.Le()?(d=c.H.Wa(),_.aa.setTimeout(function(){return llc(a,b)},d),_.YH(c.H)):(_.aa.setTimeout(function(){return llc(a,b)}),c.V++),!0;a.H.delete(b);return!1},rlc=function(a,b){a.H.has(b)||a.H.set(b,a.ma());return a.H.get(b)},qlc=function(a,b,c){var d=a.ta;if(c<=d)return a.log("Retry number "+(c+1)+" for a retryable error."),_.aa.setTimeout(function(){return llc(a,
b)},a.ha*Math.pow(2,c)),!0;a.log("Done retrying retriable requests after "+d+" retries.");return!1};_.olc.prototype.O=function(a){this.H.delete(a)};_.olc.prototype.log=function(a){this.W.info("drive.ds.network.queue.RetryInterceptor",a)};
var slc=function(a){try{if("undefined"!==typeof FileReaderSync&&_.wgc()){var b=new FileReaderSync;return Promise.resolve(b.readAsDataURL(a))}var c=new _.Xvb,d=mjc(c);c.H.readAsDataURL(a);return d.then()}catch(e){return Promise.reject(new _.Vvb(_.NI(e),"reading data"))}},tlc=function(a){return slc(a.size?a.slice(0,1):a).then(function(){return null},function(b){return b.name})};
var ulc=function(a,b,c,d,e,f,h){this.Ia=a;this.H=b;this.La=c;this.W=d;this.Qa=e;this.request=f;this.config=h;this.O=this.ta=this.progress=0;this.Ga=this.wa=this.ha=null;this.be=_.Yh();this.finished=!1;this.Ba=this.Qu=0;this.ka=null;this.ma=!1;this.V=null;a=f.request.Uz();a=_.wgc()&&a?_.y(a,1):null;this.fileSize="number"===typeof a?a:f.file.size;this.requestId=h.requestId;this.OO="progress_"+this.requestId;h.OO=this.OO;this.ma=!!f.metadata};
ulc.prototype.log=function(a){this.La.info("drive.ds.sync.request.ResumableUpload",a)};ulc.prototype.start=function(){var a=this,b=new Fhc(this.request.request,this.request.metadata),c=vlc(this);this.Ia.then(function(d){return d.Oe(b,c)}).then(function(d){a.ha=d.O;a.wa=d.H;a.Ga=d.V;wlc(a)},function(d){return void a.be.reject(d)});return _.Zh(this.be.promise.then(function(d){xlc(a,d);return d},function(d){d=_.wd(d);xlc(a,d.qg);return _.Wh(d)}),function(){Gkc(a.H,[a.OO])})};
var vlc=function(a){var b=_.eb(a.config);Fkc(a.H,a.OO,Qic(function(){return void a.H.notify([a.requestId],0)}));return b};ulc.prototype.cancel=function(){return this.finished?!1:(this.finished=!0,this.be.resolve(Nhc(this.request)),!0)};
var wlc=function(a){a.finished||(a.log("Uploading chunk "+a.Ba+" for "+a.ha+"."),ylc(a,4))},ylc=function(a,b){zlc(a).then(function(c){if(c){var d=Alc(a,c.blob.size);a.Ia.then(function(f){return f.Oe(c,d)}).then(function(f){a.V=null;var h=c.blob.size;a.progress+=a.O;a.ta+=h;a.Ba++;f.oK()&&(a.wa=f.oK());f.nN()&&(a.Ga=f.nN());a.progress<a.fileSize?wlc(a):a.be.resolve(f)},function(f){if(d.vGa)a.cancel();else{var h=_.uI(f);h.gDa()||h.nma()||a.ma?Blc(a,b,h,!1):tlc(c.blob).then(function(k){k=k?_.IFa.get(k)||
25:38;_.II(h,k);Blc(a,b,h,38===h.Ip(),38!==h.Ip()&&25!==h.Ip())},function(){})}})}else{var e=_.wd(_.II(_.Eo(new _.Fc,"Could not read more of the file. Read "+a.progress+"/"+a.fileSize+" bytes."),5));a.be.reject(e)}})},Blc=function(a,b,c,d,e){e=void 0===e?!1:e;var f=4-b;c.lga(f);!e&&0<b?(a.Qu++,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+"."));ylc(a,b)},a.Qa*Math.pow(1.5,f))):a.be.reject(_.wd(c))},zlc=function(a,b){return a.ma&&a.V?_.Vh(a.V):Clc(a,b).then(function(c){if(!c)return null;if(a.ma&&0<a.fileSize&&0===c.size)return zlc(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 Ghc(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})},Clc=function(a,b){a.O=b?b:Math.min(a.fileSize-a.progress,a.W);b=a.progress;return a.request.UQ?a.request.UQ(b,a.O):_.Vh(_.Vgc(a.request.file,b,b+a.O))},Alc=function(a,b){var c=_.eb(a.config);c.CTa=!0;var d=a.progress/a.fileSize,e=b/a.fileSize;Gkc(a.H,[a.OO]);Fkc(a.H,a.OO,function(f){a.H.notify([a.requestId],Math.min(d+e*f,1))});return c},xlc=function(a,b){b.yOa(3);b.lga(a.Qu);b.oK()||b.Fda(a.wa);b.nN()||b.uda(a.Ga)};
_.Dlc=function(a,b,c,d,e){this.ha=a;this.V=b;this.H=c;this.W=d;this.O=e};_.Dlc.prototype.create=function(a,b){return new ulc(this.ha,this.V,this.H,this.W,this.O,a,b)};
_.Elc=function(a){this.O=a;this.H={}};_.Elc.prototype.execute=function(a){for(var b=[],c=0;c<a.length;c++)if(a[c].Xv.jx instanceof _.Hhc)b.push(Flc(this,a[c].Xv));else{var d=_.Eo(new _.Fc,"ResumableUploadExecutor only supports ResumableUploadRequests.");b.push(Promise.reject(_.wd(d)))}return b};_.Elc.prototype.cancel=function(a){return!!this.H[a]&&this.H[a].cancel()};_.Elc.prototype.vK=function(){return!_.ab(this.H)};
var Flc=function(a,b){var c=a.O.create(b.jx,b.config),d=c.start(),e=b.config.requestId;a.H[e]=c;d.then(function(){delete a.H[e]},function(){delete a.H[e]});return d};
_.Glc=function(a,b){return new _.zK(b,a,[new hlc],[new _.xK],[],"immediate")};_.Hlc=function(a,b,c,d,e){return new _.zK(e,a,[_.blc(d),new _.wK(c,e),new ilc],[new _.xK],[new _.olc(b,c,d.Jj(),e)],"connected")};_.Ilc=function(a,b,c,d,e,f,h){h=void 0===h?_.Dj(b,10,50):h;return new _.zK(e,a,[_.blc(d),new _.flc(h,_.Dj(b,12,10)),new _.yK(3*h),new _.wK(c,e)],[new _.xK],[new _.olc(b,c,d.Jj(),e)],f)};_.Jlc=function(a,b,c){return new _.zK(c,a,[new _.yK(_.Dj(b,46,1))],[new _.xK],[],"resumable_upload")};
_.Klc=function(a,b,c,d,e,f,h,k){this.BI=a;this.ma=b;this.W=c;this.H=d;this.V=e;this.ha=f;this.ka=h;this.O=k};_.Klc.prototype.Oe=function(a,b){return Llc(this,a,b).then(null,function(c){c=_.wd(c);var d=c.qg;Ohc(a)||_.Go(d);return _.Wh(c)})};
var Llc=function(a,b,c){c=void 0===c?{}:c;var d=a.BI.validate(b);if(d)return _.Wh(_.wd(d));var e=a.ma.translate(b);e instanceof _.Fc?d=void 0:Array.isArray(e)?(d=e.map(function(f){return a.W.execute(a,f,c)}).filter(function(f){return!!f}),d=0<d.length?Promise.all(d):void 0):d=a.W.execute(a,e,c)||void 0;return _.Vh(d).then(function(){if(e instanceof _.Fc)return _.Wh(_.wd(e));if(Array.isArray(e)){var f=e.map(function(h){return Mlc(a,b,h,c)});return _.iI(f)}return Mlc(a,b,e,c)},function(f){return _.Wh(_.wd(f))})},
Mlc=function(a,b,c,d){var e=Nlc(a,c);if(!e)return b=_.II(_.Eo(new _.Fc,"Failed to choose a queue for server request."),18),_.Wh(_.wd(b));if(e===a.H[7]||e===a.H[8])d.eO=!0;d=e.add({jx:c,config:d});(_.HJ(b)||_.HJ(c))&&d.then(function(){Ykc(a.V)},function(){Ykc(a.V)});b=a.ha.apply(c,d);d.then(function(f){a.ka.apply(c,f)},function(){});return b};_.Klc.prototype.cancel=function(a){return _.Wa(this.H,function(b){return b.cancel(a)})};
var Nlc=function(a,b){var c,d=!1;b instanceof _.fJ?d=!(null===(c=_.x(b,_.WF,2))||void 0===c||!_.N(c,7)):b instanceof _.WF?d=!!_.N(b,7):b instanceof _.mI&&(d=(d=b.jd())&&!!_.N(d,46));return(b instanceof _.Khc||b instanceof _.DI&&_.N(b,9))&&a.H[1]?a.H[1]:b instanceof _.Hhc&&a.H[5]?a.H[5]:d&&Vhc(b,a.O)&&a.H[7]?a.H[7]:Vhc(b,a.O)&&a.H[8]?a.H[8]:d&&(b instanceof _.fJ||b instanceof _.WF)&&a.H[6]?a.H[6]:(d||Nkc.includes(b.constructor))&&a.H[3]?a.H[3]:Phc.includes(b.constructor)&&a.H[4]?a.H[4]:a.H[2]||a.H[1]};
var Olc=function(a){this.H=a};Olc.prototype.build=function(a,b){var c="====="+_.oh()+"=====",d=a[0].jn,e=b.every(function(l){return l.eO});if(e){var f=d;var h={"content-type":"text/plain; charset=UTF-8"};d="POST";var k=Mkc(this.H,a[0].jn);_.dj(k,"$ct",'multipart/mixed; boundary="'+c+'"')}else f=Plc[d],h=Qlc[d]||{},h["content-type"]=(0,_.Xs)('multipart/mixed; boundary="%s"',c),d=Rlc[d],k=new _.Zi("");a=Slc(this,a,b,c,e);return{jn:f,body:a,headers:h,method:d,uri:k}};
var Slc=function(a,b,c,d,e){for(var f=thc(Tlc[b[0].jn]||{}),h="",k=0;k<b.length;k++){e&&Kkc(a.H,b[k],c[k]);var l=b[k],p=a.H,q=l,r=c[k];q.uri=Lkc(p,q.jn,q.uri);switch(q.jn){case 0:case 5:Jkc(p,q,r);Ikc(p,q,r);break;case 2:Kkc(p,q,r);Jkc(p,q,r);var v=q,w=_.y(p.H.Sf(),57);v.headers.host=_.hj(w).jk();v.headers.origin=_.aa.location.origin?_.aa.location.origin:_.aa.location.protocol+"//"+_.aa.location.host;Ikc(p,q,r);break;case 12:case 10:case 13:break;case 8:case 7:throw Error("uf`"+q.jn);default:throw Error("tf`"+
q.jn);}p=l;q=p.uri.clone();q.Pr("");q.Ln("");q.QA(null);l=f+"\r\n"+(p.method+" "+q+" HTTP/1.1\r\n")+thc(l.headers)+"\r\n"+(l.body?l.body+"\r\n":"");h+="--"+d+"\r\n";h+=l}return h+("--"+d+"--\r\n")},Ulc={},Plc=(Ulc[0]=1,Ulc[2]=3,Ulc),Vlc={},Rlc=(Vlc[0]="POST",Vlc[2]="PUT",Vlc[12]="POST",Vlc),Wlc={},Xlc={},Qlc=(Xlc[2]=(Wlc["x-goog-upload-protocol"]="batch",Wlc),Xlc),Ylc={},Zlc={},$lc={},amc={},bmc={},Tlc=(bmc[0]=(Ylc["content-type"]="application/http",Ylc["content-transfer-encoding"]="binary",Ylc),
bmc[13]=(Zlc["content-type"]="application/http",Zlc["content-transfer-encoding"]="binary",Zlc),bmc[12]=($lc["content-type"]="application/http",$lc["content-transfer-encoding"]="binary",$lc),bmc[2]=(amc["content-type"]="application/http",amc),bmc);
var cmc=/^HTTP\/1\.1 (\d+) ([\w ]+)/,dmc=/^multipart\/mixed; boundary="?([^"]+)"?$/;
var emc=function(a,b,c,d,e){this.V=a;this.W=b;this.ha=c;this.H=d;this.O=e;this.aj=new Map};emc.prototype.add=function(a,b){var c="DEFAULT";b.eO&&(c=Mkc(this.V,a.jn).toString());this.aj.has(c)||this.aj.set(c,[]);c=this.aj.get(c);if(1<=c.length&&!b.eO&&!Plc[a.jn])return a=_.Eo(new _.Fc,"Unsupported batch API: "+a.jn),_.Wh(_.wd(a));var d=_.Yh();c.push({request:a,config:b,be:d});return d.promise};
emc.prototype.send=function(){for(var a={},b=_.m(this.aj.entries()),c=b.next();!c.done;a={jsa:a.jsa},c=b.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;try{fmc(this,d)}catch(f){var e=_.NI(f);e=_.Fo(_.Eo(new _.Fc,"Error executing XHR: "+e.message),e.stack);a.jsa=_.wd(e);d.forEach(function(h){return function(k){k.be.reject(h.jsa)}}(a));this.aj.delete(c)}}};
var fmc=function(a,b){if(1===b.length){var c=b[0];if(!c.config.LDa&&!c.config.eO){var d=!1;if(Plc[c.request.jn]){var e={jn:c.request.jn,headers:{},method:c.request.method,uri:c.request.uri.clone()};a.V.kc(e,c.config);2E3<e.uri.toString().length&&(d=!0)}if(!d){gmc(a,c);return}}}hmc(a,b)},gmc=function(a,b){var c=b.be;a.W.lh(b.request,b.config).then(function(d){c.resolve(d);imc(a,b)},function(d){a.handleError(b,d);c.reject(d)})},hmc=function(a,b){var c=[],d=[];b.forEach(function(e){c.push(e.request);
d.push(e.config)});a.W.lh(a.ha.build(c,d),{LDa:!0,eO:d.every(function(e){return e.eO})}).then(function(e){e.headers=_.Wgc(e.headers);var f=dmc.exec(e.headers["content-type"]);var h=f&&f[1]?"--"+f[1]:null;if(!h)throw new _.Gc("Could not extract batch boundary.",_.II(_.Fo(new _.Fc,JSON.stringify(e)),14));f=h+"\r\n";h=e.text.split(h+"--");if(2===h.length&&_.ge(_.Jja(h[0]),f)&&_.Te(h[1]))h=_.Jja(h[0]).substring(f.length);else throw new _.Gc("Could not parse batch response; did not begin and end with boundary.",
_.II(_.Fo(new _.Fc,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 w,A=e.headers,B=f[l],E=p&&p.uri,I=B.split("\r\n\r\n");if(2>I.length)v=new _.Gc("Individual batch response contained too few parts.",_.II(_.Fo(new _.Fc,B),17));else{var M=I[1].split("\r\n");if(w=cmc.exec(M[0])){p=_.qh(w[1]);w=w[2];M.shift();A=_.eb(A);for(var P=Object,T=P.assign,Y={},ba=0;ba<M.length;ba++){var ja=_.Sja(M[ba],":",1);ja&&2===
ja.length&&(Y[(0,_.Dg)(ja[0])]=(0,_.Dg)(ja[1]))}M=_.Wgc(Y);T.call(P,A,M);try{v=_.Te(_.nh(I[2]))?void 0:JSON.parse(I[2])}catch(ea){}v=(p=_.bhc(p,w,A,B,v,void 0,void 0,E&&E.toString()))?_.wd(p):{headers:A,text:B,json:v||void 0}}else v=new _.Gc("Could not extract HTTP status code and text.",_.II(_.Fo(new _.Fc,B),16))}r.call(q,v)}return k}).then(null,function(e){e=_.wd(e);return _.kdc(e,b.length)}).then(function(e){for(var f=!1,h=0;h<b.length;h++){var k=b[h].be,l=e[h];l instanceof _.Fc||l instanceof _.Gc?
(l=_.wd(l),f||(f=a.handleError(b[h],l)),k.reject(l)):k.resolve(l)}f||imc(a,b[0])})},imc=function(a,b){var c=b.request.jn;b=!b.config.Iu&&_.pa(jmc,c);if(a.H){if(a=a.H,c=b?1:2,!a.state.isConnected()||b)c=ykc(a,c),b&&c&&a.reset(),a.H&&c&&(b||!a.state.O)&&(a.H.Cj(),a.H=null)}else a.O&&b&&a.O.wa()};
emc.prototype.handleError=function(a,b){a=_.xda(b);if(2===a.Ip()){if(this.H)return _.Akc(this.H),!0}else if(_.vgc(a)){if(this.H){a=this.H;if(b=!a.V)b=a.state,b=!b.V&&b.isConnected()?b.H=!0:!1;b&&_.zkc(a);return!0}if(this.O)return this.O.ta(),!0}return!1};var jmc=[0,2,4,7,8];
var kmc=function(){_.Wi.apply(this,arguments)};_.J(kmc,_.Wi);kmc.prototype.getAllResponseHeaders=function(){return _.Jja(_.Wi.prototype.getAllResponseHeaders.call(this))};
var lmc=function(a,b){this.ha=a;this.W=b;this.V={};this.O={};this.H={}};
lmc.prototype.lh=function(a,b){var c=this;try{this.ha.kc(a,b);var d=new kmc;d.HC=!0;var e=b.requestId||"",f=_.Yh();d.listen("complete",function(){var h=b.LDa,k=4===a.jn;h=void 0===h?!1:h;k=void 0===k?!1:k;e&&(delete c.V[e],delete c.O[e],delete c.H[e]);var l={headers:_.Bma(d),text:d.Vk()};if((!b.eTb||_.$gc(d.Cb()))&&!h)try{l.json=_.JI(d)}catch(p){}h=_.bhc(d.Cb(),_.yma(d),l.headers,l.text,l.json,d.O,_.Cma(d),String(d.ta),k);d.dispose();h?f.reject(_.wd(h)):f.resolve(l)});e&&b.uNb&&(this.H[e]=0,d.listen("readystatechange",
function(){if(3===_.Xi(d)&&d.qA()&&200===d.Cb()){var h=d.Vk(),k=c.H[e];h.length>k&&(k=h.substring(k),c.H[e]=h.length,b.uNb(k))}}));e&&b.OO&&!b.eO&&(this.V[e]=d,this.O[e]=b,d.Gb=!0,d.listen("uploadprogress",function(h){h.lengthComputable&&c.W.notify([b.OO],b.CTa?h.loaded/h.total:h.loaded/h.total/2)}),b.CTa||d.listen("downloadprogress",function(h){h.lengthComputable&&c.W.notify([b.OO],h.loaded/h.total/2+.5)}));d.send(a.uri,a.method,a.body,a.headers);return f.promise}catch(h){return _.Wh(_.wd(h))}};
lmc.prototype.cancel=function(a){var b=this.V[a];a=this.O[a];return b&&b.isActive()?(a.vGa=!0,b.abort(),!0):!1};
_.mmc=function(a,b,c,d,e,f,h){this.O=a;this.wa=b;this.Ba=c;this.ta=d;this.ma=e;this.ha=f;this.H=h;this.V=[];this.ka=new Olc(this.O);this.W=new lmc(this.O,this.wa)};_.g=_.mmc.prototype;
_.g.execute=function(a){for(var b=[],c=[],d=0;d<a.length;d++){var e=a[d].Xv;this.V.push(e);b.push(this.Ba.convert(e,a[d].dE));c.push(Okc(e.jx)?_.Tkc(this.ma,e.jx):void 0)}if(this.H&&this.H.V){var f=Promise.reject(_.wd(_.bhc(0,"",{},"",void 0,-99)));return a.map(function(){return f})}var h=new emc(this.O,this.W,this.ka,this.H||void 0,this.ha||void 0);d=[];e={};for(var k=0;k<a.length;e={Pra:e.Pra},k++){e.Pra=a[k].Xv.config;var l=b[k].then(function(p){return function(q){return h.add(q,p.Pra)}}(e));d.push(l)}Promise.allSettled(b).then(function(){h.send()});
b=[];for(e=0;e<a.length;e++)k=a[e].Xv,l=d[e].then(this.Ppb.bind(this,k.jx,c[e],a[e].dE)).then(null,function(p){return Promise.reject(_.wd(p))}),l.then(this.zOa.bind(this,k),this.zOa.bind(this,k)),b.push(l);return b};_.g.Ppb=function(a,b,c,d){a=this.ta.convert(a,d,c);b&&a.then(function(e){e=e.Bd?e.Bd():[];_.Ukc(b,e)});return a};_.g.cancel=function(a){return this.W.cancel(a)};_.g.vK=function(){return this.V.some(function(a){return _.HJ(a.jx)})};_.g.zOa=function(a){_.wa(this.V,a)};
_.nmc=function(){};_.nmc.prototype.execute=function(){return null};
var omc=function(){};
var pmc=function(a,b){this.H=a;this.retryCount=b};
_.AK=function(a){return function(b){return b.kind===a}};
_.qmc=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 rmc;rmc=function(a){this.H=a};_.BK=function(a,b){if(!_.Ea(b)||null===b)throw new _.Gc("Expected an object, but got a "+_.Yga(b)+".",_.MI(11,void 0,8));if(null===b||void 0===b||void 0===b.kind)throw new _.Gc("Expected 'kind' parameter in response: "+JSON.stringify(b),_.MI(11,void 0,21));var c=b.kind;if(!a(b))throw new _.Gc("Unexpected response type: "+c+".",_.MI(11,void 0,9));};_.CK=function(a){return null!=a?(new Date(a)).getTime():void 0};
_.smc=function(a){var b=null!=a.canDelete?a.canDelete:a.canDeleteTeamDrive;var c=new _.Bk;c=_.u(c,1,a.canAddChildren);c=_.u(c,18,a.canChangeTeamDriveBackground);c=_.u(c,2,a.canComment);c=_.u(c,3,a.canCopy);b=_.u(c,4,b);b=_.u(b,5,a.canDownload);b=_.u(b,6,a.canEdit);b=_.u(b,10,a.canManageMembers);b=_.u(b,11,a.canManageVisitors);b=_.u(b,20,a.canMoveItemIntoTeamDrive);b=_.u(b,17,a.canMoveTeamDriveItem);b=_.gic(b,a.canReadTeamDrive);b=_.u(b,7,a.canRemoveChildren);b=_.u(b,12,a.canRename);b=_.u(b,13,a.canRenameTeamDrive);
b=_.u(b,8,a.canShare);b=_.u(b,9,a.canTrash);b=_.u(b,21,a.canUntrash);b=_.u(b,27,a.canModifyContentRestriction);b=_.u(b,26,a.canShareOutsideDomain);b=_.u(b,30,a.canMoveItemWithinTeamDrive);b=_.u(b,31,a.canMoveItemOutOfTeamDrive);b=_.u(b,32,a.canMoveChildrenWithinTeamDrive);b=_.u(b,33,a.canMoveChildrenOutOfTeamDrive);b=_.u(b,34,a.canDeleteChildren);b=_.u(b,35,a.canTrashChildren);b=_.u(b,36,a.canRequestApproval);b=_.u(b,37,a.canReadCategoryMetadata);b=_.u(b,38,a.canEditCategoryMetadata);b=_.u(b,39,a.canChangeCategoryReferences);
b=_.u(b,49,a.canSetMissingRequiredFields);b=_.u(b,40,a.canAddMyDriveParent);b=_.u(b,41,a.canRemoveMyDriveParent);b=_.u(b,42,a.canShareChildFiles);b=_.u(b,43,a.canShareChildFolders);b=_.u(b,44,a.canRead);b=_.u(b,45,a.canMoveItemWithinDrive);b=_.u(b,46,a.canMoveItemOutOfDrive);b=_.u(b,47,a.canMoveChildrenWithinDrive);b=_.u(b,48,a.canAddFolderFromAnotherDrive);b=_.u(b,50,a.canChangeSecurityUpdateEnabled);b=_.u(b,51,a.canRemoveSecureLinkUpdateForAllFiles);b=_.u(b,52,a.canCreateDecryptedCopy);b=_.u(b,
53,a.canCreateEncryptedCopy);b=_.u(b,54,void 0===a.canAddEncryptedChildren?a.canAddChildren:a.canAddEncryptedChildren);return _.u(b,55,a.canBlockOwner)};_.DK=function(a,b){_.BK(_.AK("drive#user"),b);var c=_.eic(_.fic(_.cic(1).Nb(b.permissionId),b.id).$c(b.displayName),b.emailAddress);b.picture&&c.Mn(b.picture.url);_.lI(a.H)&&_.eic(c,b.emailAddressFromAccount||b.emailAddress);_.dic(c,a.kf(b.id));c.Ln(b.domain);return c};rmc.prototype.kf=function(a){if(a)return _.UJ(_.eI(this.H))==a};
var tmc,ymc,Gmc,Mmc,Bmc,Amc,Dmc,Fmc,Hmc,vmc,Jmc,Imc,Kmc,Lmc,Omc,Pmc,Nmc,Emc;tmc=function(a,b){this.H=a;this.O=b};
_.wmc=function(a,b,c){var d=new _.uK,e=new _.dI,f=e.fB,h=[];if(_.AK("drive#file")(b))(a=_.umc(a,b))&&h.push(a);else if(_.AK("drive#fileList")(b))for(var k=b.items||[],l=0;l<k.length;l++){var p=_.umc(a,k[l]);h.push(p)}e=f.call(e,h);if(_.AK("drive#fileList")(b)){_.u(e,8,b.incompleteSearch);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 _.Iec).Dc(vmc.get(k.status)),l=_.u(l,
1,k.original),k=_.u(l,3,k.correction),h.push(k);a=new _.Mec;h=_.sj(a,1,h);f.push(h)}q=new _.Oec;_.sj(q,1,f)}if((f=b.suggestedNlpQueries)&&0<f.length){var r=new _.Kec;_.qj(r,1,f)}q||r?(f=new _.Pec,q&&_.F(f,1,q),r&&_.F(f,2,r),r=f):r=null;_.F(e,7,r);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);_.qj(e,18,r)}d=_.Vkc(d,e);c=_.Ygc(c);c=_.u(d,2,c);_.AK("drive#fileList")(b)&&b.nextPageToken&&_.u(c,3,b.nextPageToken);
return c};ymc=function(a,b,c,d,e){var f=_.ljc(new _.GJ,c);_.AK("drive#adminFile")(b)?(c=(new _.Ik).Nb(b.id),b.parentId&&_.PJ(c,[b.parentId]),_.tic(c,b.teamDriveId),f.setItem(c),_.ljc(f,c.getId())):_.AK("drive#file")(b)?(b=_.umc(a,b),f.setItem(b),c||_.ljc(f,b.getId())):_.AK("drive#revision")(b)&&(b=_.xmc(a,b),_.F(f,4,b));f.Fda(_.Xgc(d));f.uda(_.Ygc(d));(d=(d=d&&_.Wgc(d))&&d["x-server-object-version"])&&e&&(e=(new _.aK).Nb(d),_.F(f,4,e));f.Dc(1);return f};_.zmc=function(a,b){return _.ljc(new _.GJ,a).Dc(1).Fda(_.Xgc(b)).uda(_.Ygc(b))};
_.Cmc=function(a,b){var c=_.dic(_.fic(_.cic(Amc.get(b.type)).Nb(b.id),b.userId),a.H.kf(b.userId));c=_.u(c,4,b.withLink);c=_.eic(c.$c(b.name).Mn(b.photoLink),b.emailAddress).Ln(b.domain);c=_.u(c,10,b.deleted);c=_.u(c,12,b.audienceId);c=_.u(c,13,b.customerId);_.lI(a.O)&&c.$c(b.nameIfNotUser);b.role&&(a=Bmc.get(b.role),2==a&&b.additionalRoles&&"commenter"==b.additionalRoles[0]?a=4:2==a&&"published"==b.view&&(a=6),_.u(c,6,a));return c};
_.umc=function(a,b){var c=b.title,d=(new _.Ik).Nb(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=_.pic(_.cG(_.PJ(d,e).setTitle(c),b.mimeType),b.alternateLink);c=_.u(c,44,b.hasThumbnail);null!=b.thumbnailVersion&&_.u(c,90,Number(b.thumbnailVersion));_.u(c,21,b.iconLink);c.kl(b.description);_.u(c,26,b.explicitlyTrashed);_.u(c,22,b.shared);null!=b.quotaBytesUsed&&_.u(c,28,Number(b.quotaBytesUsed));null!=b.fileSize&&_.u(c,14,Number(b.fileSize));
_.u(c,30,b.copyable);b.labels&&(d=b.labels,c.fw(d.starred),_.u(c,6,d.hidden),c.Nn(d.trashed),_.u(c,8,d.restricted),_.u(c,9,d.viewed));_.u(c,10,_.CK(b.createdDate));_.u(c,69,_.CK(b.serverCreatedDate));_.u(c,11,_.CK(b.modifiedDate));_.u(c,12,_.CK(b.modifiedByMeDate));_.u(c,13,_.CK(b.lastViewedByMeDate));_.u(c,23,_.CK(b.sharedWithMeDate));_.u(c,62,_.CK(b.gec));_.u(c,70,_.CK(b.recency));b.recencyReason&&(d=Dmc.get(b.recencyReason)||0,_.u(c,71,d));d=[];if(b&&b.owners)for(e=b.owners,f=0;f<e.length;f++)(h=
_.DK(a.H,e[f]))&&d.push(h);_.nic(c,d);b.lastModifyingUser&&(d=_.DK(a.H,b.lastModifyingUser),_.oic(c,d));b.userPermission&&(d=Bmc.get(b.userPermission.role),_.AVb(c,d));b.imageMediaMetadata&&(e=b.imageMediaMetadata,d=(new _.MJ).mh(e.width).zh(e.height),d=_.u(d,4,e.rotation),e.date&&(e=e.date,f=new _.$fc,f.setMilliseconds(0),Emc.parse(e,f),_.u(d,1,f.getTime())),_.F(c,27,d));null!=b.folderColor&&_.qic(c,Number(b.folderColor));_.u(c,31,b.subscribed);_.u(c,45,b.fileExtension);_.qj(c,50,b.folderFeatures);
_.u(c,36,b.flaggedForAbuse);_.u(c,53,b.gplusMedia);_.u(c,46,b.primarySyncParentId||void 0);_.u(c,35,b.hasChildFolders);b.source&&(_.u(c,42,b.source.client_service_id),_.u(c,43,b.source.value));b.sharingUser&&(d=_.DK(a.H,b.sharingUser),_.ric(c,d));b.sources?_.qj(c,56,b.sources):b.gplusMedia&&_.qj(c,56,["GOOGLE_PHOTOS"]);if(b.spaces){d=b.spaces;e=[];for(f=0;f<d.length;f++)h=d[f],_.Tfc[h]&&(h=_.Af(new _.zf,_.Tfc[h]),e.push(h));c.RA(e)}_.u(c,63,b.ownedByMe);_.u(c,29,b.shareable);b.sourceAppId&&_.u(c,
61,b.sourceAppId);_.u(c,74,b.changed);if(b.actionItems){d=b.actionItems;e=[];for(f=0;f<d.length;f++){var k=d[f];k.id&&k.type&&(h=(new _.voa).Nb(k.id),k=Fmc.get(k.type),h=_.u(h,2,k),e.push(h))}_.sj(c,83,e)}b.capabilities&&_.QJ(c,_.smc(b.capabilities));b.permissionsSummary&&_.uic(c,Gmc(a,b.permissionsSummary));b.headRevisionId&&_.u(c,78,b.headRevisionId);b.templateData&&(d=b.templateData,e=(new _.NJ).kl(d.description),f=Hmc.get(d.galleryState),e=_.u(e,3,f),d=_.qj(e,2,d.category),_.F(c,86,d));_.tic(c,
b.teamDriveId);_.u(c,76,b.hasAugmentedPermissions);_.u(c,137,b.ancestorHasAugmentedPermissions);b.creator&&(d=_.DK(a.H,b.creator),_.vic(c,d));_.wic(c,b.primaryDomainName);_.xic(c,b.organizationDisplayName);_.u(c,94,b.passivelySubscribed);b.trashingUser&&_.yic(c,_.DK(a.H,b.trashingUser));c.Jda(_.CK(b.trashedDate));b.version&&_.u(c,75,Number(b.version));_.u(c,98,b.hasVisitorPermissions);_.u(c,102,b.hasAppsScriptAddOn);if(d=b.pairedDocType)d=Imc.get(d),_.u(c,101,d);b.videoMediaMetadata&&(d=b.videoMediaMetadata,
e=(new _.OJ).mh(d.width).zh(d.height),d.durationMillis&&_.u(e,3,Number(d.durationMillis)),_.F(c,103,e));_.qj(c,104,b.detectors);_.u(c,108,b.containsUnsubscribedChildren);if(b.contentRestrictions){d=[];e=_.m(b.contentRestrictions);for(f=e.next();!f.done;f=e.next())f=f.value,h=(new _.Dk).mP(f.readOnly),f=_.u(h,2,f.reason),d.push(f);_.sj(c,125,d)}if(d=b.publishingInfo)_.u(c,118,d.published),_.u(c,119,d.publishedUrl);_.qj(c,120,b.workspaceIds);b.approvalMetadata&&b.approvalMetadata.approvalVersion&&_.u(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 _.xoa).Nb(f.approvalId).Dc(Jmc.get(f.status)),d.push(f);_.sj(c,127,d)}b.shortcutDetails&&(d=b.shortcutDetails,e=new _.Goa,e=_.u(e,1,d.targetId),e=_.u(e,3,d.targetMimeType),e=_.u(e,6,d.canRequestAccessToTarget),d.targetLookupStatus&&(f=Kmc.get(d.targetLookupStatus)||0,_.u(e,4,f)),d.targetFile&&(d=_.umc(a,
d.targetFile),_.F(e,5,d)),_.F(c,132,e));b.clientEncryptionDetails&&(d=b.clientEncryptionDetails,e=new _.LJ,f=Lmc.get(d.encryptionState),e=_.u(e,1,f),d.decryptionMetadata&&(d=Mmc(d.decryptionMetadata),_.F(e,2,d)),_.F(c,138,e));b.linkShareMetadata&&(d=b.linkShareMetadata,e=new _.iic,e=_.u(e,2,d.securityUpdateEligible),e=_.u(e,3,d.securityUpdateEnabled),d=_.u(e,5,d.securityUpdateExplicitlySet),_.F(c,139,d));_.u(c,140,b.resourceKey);_.qj(c,135,b.authorizedAppIds);_.zic(c,b.customerId);_.u(c,144,b.abuseIsAppealable);
b.abuseNoticeReason&&(b=Nmc.get(b.abuseNoticeReason)||0,_.u(c,145,b));_.phc(c);_.lI(a.O)&&_.sic(c,5);return c};_.xmc=function(a,b){var c=(new _.aK).Nb(b.id);c=_.u(c,2,b.mimeType);c=_.u(c,3,_.CK(b.modifiedDate));c=_.u(c,4,b.pinned);c=_.u(c,5,b.downloadUrl);c=_.u(c,7,b.originalFilename);null!=b.fileSize&&_.u(c,8,Number(b.fileSize));b.lastModifyingUser&&(a=_.DK(a.H,b.lastModifyingUser),_.F(c,9,a));b.decryptionMetadata&&(b=Mmc(b.decryptionMetadata),_.F(c,10,b));return c};
Gmc=function(a,b){return _.lic(_.kic(_.jic(new _.Boa,b.entryCount),(b.visibility||[]).map(function(c){var d=_.cic(Amc.get(c.type)).Ln(c.domain);d=_.u(d,4,c.withLink).Nb(c.type+"|"+(c.domain||"")+"|"+c.withLink);if(c.role){var e=Bmc.get(c.role);2==e&&c.additionalRoles&&"commenter"==c.additionalRoles[0]&&(e=4);_.u(d,6,e)}return d})),(b.selectPermissions||[]).map(function(c){return _.Cmc(a,c)}))};
Mmc=function(a){var b=a.wrappedKey;var c=new _.hic;b=b?_.Sec(b):void 0;c=_.u(c,1,b);c=_.u(c,2,Number(a.kaclsId));c=_.u(c,5,a.kaclsName);b=Omc.get(a.aes256GcmChunkSize);c=_.u(c,3,b);b=Pmc.get(a.keyFormat);c=_.u(c,6,b);return _.u(c,4,a.jwt)};Bmc=new Map([["fileOrganizer",7],["organizer",5],["owner",1],["reader",2],["writer",3]]);Amc=new Map([["anyone",4],["audience",5],["domain",3],["group",2],["user",1]]);Dmc=new Map([["createdByMe",1],["modifiedByMe",2],["modified",3],["viewedByMe",4]]);
Fmc=new Map([["MENTION",0],["SUGGESTION",1],["ASSIGNMENT",2]]);Hmc=new Map([["UNAVAILABLE",1],["AVAILABLE",2],["PENDING",3]]);vmc=new Map([["CORRECT",1],["INCORRECT",2],["SUSPICIOUS",3]]);Jmc=new Map([["IN_PROGRESS",1],["APPROVED",2],["CANCELLED",3]]);Imc=new Map([["docs",1],["sheets",2],["slides",3]]);Kmc=new Map([["ok",1],["notFound",2],["permissionDenied",3]]);Lmc=new Map([["unencrypted",1],["encrypted",2]]);Omc=new Map([["unset",0],["default",1],["small",2],["size16kb",3]]);
Pmc=new Map([["unsetKeyFormat",0],["tinkKeyset",1],["tinkAesGcmKey",2]]);Nmc=new Map([["unknownReason",0],["accessibleOnlyToOwner",1],["accessibleOnlyToOwningCustomer",2],["suspiciousOther",3],["suspiciousPhishing",4],["suspiciousMalware",5],["accessibleOnlyToOwnerInSomeRegions",6],["accessibleOnlyToOwningCustomerInSomeRegions",7],["suspiciousInSomeRegions",8]]);Emc=new _.nWa("yyyy:MM:dd HH:mm:ss");
var Qmc=function(a,b,c){this.O=a;this.H=b;this.V=c};
var Smc,Umc;_.Rmc=function(a){this.V=a;this.W=new rmc(a);this.PF=new tmc(this.W,a);this.V=a};
_.Rmc.prototype.convert=function(a,b,c){c=void 0===c?[]:c;try{var d=this.ka(a,b);if(d)var e=Promise.resolve(d);else{if(a instanceof _.UI)var f=Promise.resolve(_.EK(this,a,b));else{if(a instanceof _.cJ)var h=Smc(this,0,b,c);else{if(a instanceof _.WF||a instanceof _.fJ){var k=Promise,l=k.resolve;if(!b.json)throw _.FK();_.BK(_.LI(_.AK("drive#fileList"),_.AK("drive#file")),b.json);var p=_.wmc(this.PF,b.json,b.headers);var q=l.call(k,p)}else{if(a instanceof _.DJ)k=Promise.resolve(_.EK(this,a,b));else{if("undefined"!=
typeof _.Chc&&a instanceof _.Chc){var r=Promise,v=r.resolve;if(!b.json)throw _.FK();_.BK(_.AK("drive#generateCseTokenResponse"),b.json);var w=b.json;var A=v.call(r,new _.qmc(w.fileId,w.jwt,Number(w.currentKaclsId),w.currentKaclsName,w.customerId))}else{if("undefined"!=typeof _.Tmc&&a instanceof _.Tmc){var B=Promise,E=B.resolve;if(!b.json)throw _.FK();_.BK(_.AK("drive#revision"),b.json);var I=_.xmc(this.PF,b.json);r=E.call(B,I)}else{if(a instanceof _.sJ)B=Smc(this,a.jd(),b,c);else{if(a instanceof Ghc){l=
Promise;var M=l.resolve;if(a.G0a){if(!b.json)throw _.FK();_.BK(_.LI(_.AK("drive#file"),_.AK("drive#adminFile"),_.AK("drive#revision")),b.json);var P=ymc(this.PF,b.json,null,b.headers,!!a.revisionId)}else P=_.zmc(null,b.headers);var T=M.call(l,P)}else{if(a instanceof Fhc){a=Promise;var Y=a.resolve,ba=_.Wgc(b.headers),ja=ba.location;if(!ja){var ea=_.II(new _.Fc,10);throw new _.Gc("No upload session URI included.",ea);}var xa=new Qmc(ja,_.Xgc(ba),_.Ygc(ba));var za=Y.call(a,xa)}else za=a instanceof _.Khc?
Promise.resolve(new omc):Promise.reject(new _.Gc("FromXhrConverter: Unsupported request type.",new _.Fc));T=za}B=T}r=B}A=r}k=A}q=k}h=q}f=h}e=f}return e}catch(Ja){return Promise.reject(_.wd(Ja))}};_.Rmc.prototype.ka=function(){return null};
Smc=function(a,b,c,d){b=c.headers["x-goog-safety-encoding"];return"base64"===b?0<_.Dj(a.V,95,0)?Umc(c.text,_.Dj(a.V,95,0)).then(function(e){return new pmc(e,d.length)}):Promise.resolve(new pmc(_.cba(c.text),d.length)):b?Promise.reject(Error("rg")):Promise.resolve(new pmc(new Uint8Array(_.Uma(c.text)),d.length))};
Umc=function(a,b){return new Promise(function(c){for(var d=[],e={d_:0};e.d_<Math.floor(a.length/b);e={d_:e.d_},e.d_++)_.Ai(function(f){return function(){d.push(_.cba(a.slice(f.d_*b,(f.d_+1)*b)))}}(e),0);_.Ai(function(){d.push(_.cba(a.slice(Math.floor(a.length/b)*b,a.length)))},0);_.Ai(function(){var f=d.map(function(l){return l.byteLength}).reduce(function(l,p){return l+p});f=new Uint8Array(f);for(var h=0,k=0;k<d.length;k++)f.set(d[k],h),h+=d[k].byteLength;c(f)},0)})};
_.EK=function(a,b,c){if(!c.json){if(b instanceof _.wI)return _.zmc(_.Vmc(b));throw _.FK();}var d=!1;b instanceof _.DJ&&(d=!!_.y(b.request,12));_.BK(_.LI(_.AK("drive#file"),_.AK("drive#adminFile"),_.AK("drive#revision")),c.json);return ymc(a.PF,c.json,_.Vmc(b),c.headers,d)};_.FK=function(){var a=_.II(new _.Fc,11);return new _.Gc("FromXhrConverter: JSON required, but none found",a)};_.Vmc=function(a){return a.getId?a.getId():a.qc?a.qc():null};
var Wmc,Ymc,Whc,Zmc,Xhc;Wmc={};_.Xmc=(Wmc[1]="active",Wmc[2]="archived",Wmc);Ymc={};Whc=(Ymc[0]="unset",Ymc[1]="default",Ymc[2]="small",Ymc[3]="size16kb",Ymc);Zmc={};Xhc=(Zmc[0]="unsetKeyFormat",Zmc[1]="tinkKeyset",Zmc[2]="tinkAesGcmKey",Zmc);
var bnc=function(a,b,c){return(a.UQ?a.UQ(0,a.file.size):Promise.resolve(a.file)).then(function(d){return slc(d)}).then(function(d){return $mc(a,b,d,c)},anc)},$mc=function(a,b,c,d){var e=!!_.y(a.request,12),f={},h="files";e&&(h+="/"+_.y(a.request,12));h=new _.Zi(h);f.uploadType="multipart";f.supportsTeamDrives=!0;f.pinned=!!_.Q(a.request,13,!1);null!=_.N(a.request,8)&&(f.convert=_.N(a.request,8));f.fields=_.khc({fields:_.bK(b).filter(function(q){return 194!=q}),anonymous:!1});qhc(f,h);rhc(h,a.request.re());
var k=aic(a.request,a.metadata);f=_.oh();b={};b=(b["content-type"]=(0,_.Xs)('multipart/related; boundary="%s"',f),b);var l=c.indexOf(",");c=0<=l?c.substring(l+1):"";k=JSON.stringify(k);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());_.KJ(d,_.yb(a.request,_.jl,28),[],null,b);a="--"+f;a=a+"\r\n"+thc(l)+"\r\n"+k+"\r\n"+a+"\r\n"+thc(p)+"\r\n"+c+"\r\n"+a+"--";return{jn:2,
headers:b,method:e?"PUT":"POST",uri:h,body:a}},anc=function(a){if(a instanceof _.Vvb){var b=new _.Fc;_.Eo(b,"fs.Error: "+a.message);a=(a=a.name)?_.IFa.get(a)||25:38;_.II(b,a);b=_.wd(b)}else b=_.NI(a);return Promise.reject(b)};
_.GK=function(a,b,c,d){this.H=a;this.Cg=b;this.O=c;this.Xf=d};_.GK.prototype.convert=function(a,b){try{return a.jx instanceof _.DJ?bnc(a.jx,this.Cg,this.H):Promise.resolve(this.V(a.jx,a.config,b))}catch(c){return c instanceof _.Gc?a=c.qg:(a=new _.Fc,_.Eo(a,"Error converting XHR: "+c.message),_.Fo(a,c.stack),_.II(a,4)),Promise.reject(a)}};
_.GK.prototype.V=function(a,b,c){var d,e=0,f,h={},k="GET",l={},p=!1,q=!1;if(a instanceof _.UI){k=(f=!!_.y(a,12))?"PUT":"POST";var r="files";f&&(r+="/"+_.y(a,12),l.pinned=!!_.Q(a,13,!1));null!=_.N(a,8)&&(l.convert=_.N(a,8));l.fields=_.khc({fields:this.dh(),anonymous:_.KI(_.eI(this.H)),jF:_.lI(this.H)});f=aic(a);h["content-type"]="application/json";var v=a.re();q=!0;l.supportsTeamDrives=!0;_.Q(this.H,3,!1)&&(l.enforceSingleParent=!0);_.KJ(this.H,_.yb(a,_.jl,28),_.se(a,3).concat([_.y(a,16),a.L2(),a.qc()]),
this.O,h)}else if(a instanceof _.cJ||a instanceof _.sJ)a instanceof _.sJ?(p=a.jd(),_.lj(a,2)&&(r="bytes="+_.y(a,2)+"-",_.lj(a,3)&&(r+=_.y(a,3)),h.range=r)):p=a,b.eTb=!0,r="files/"+p.getId(),_.y(p,2)&&(l.revisionId=_.y(p,2)),l.alt="media",h["X-Goog-Encode-Response-If-Executable"]="base64",_.KJ(this.H,[_.ll((new _.jl).Nb(p.getId()),_.y(p,3))],[p.getId()],this.O,h),q=p=!0;else if(a instanceof _.fJ||a instanceof _.WF){if(a instanceof _.fJ){r=_.y(a,1);var w=_.x(a,_.WF,2)}else if(a instanceof _.WF)r=0,
w=a,a.V(),_.rK(this.Xf,190196159);else throw Error("sg");var A=w.V()[r];r="files/"+A;a=_.Aa(this.dh(),this.dh(w.H()));_.Ga(a);l.fields=_.khc({fields:a,anonymous:_.KI(_.eI(this.H)),jF:_.lI(this.H)});l.supportsTeamDrives=!0;_.Q(this.H,14,!1)&&(l.useLegacyDomainPermissionBehavior=!1);this.W(A,l);v=w.re();q=!0;_.N(w,7)&&(b.LDa=!0);10!=_.WJ(this.H)||(null===(d=_.IJ(this.H))||void 0===d?0:_.Q(d,22,!1))?_.KJ(this.H,_.yb(w,_.jl,11).filter(function(E){return E.getId()==A}),[A],this.O,h):_.KJ(this.H,_.yb(w,
_.jl,11),w.V(),this.O,h)}else if("undefined"!=typeof _.Chc&&a instanceof _.Chc)r="files/generateCseToken",a.id&&(l.fileId=a.id),l.role=a.role,v=a.H;else if("undefined"!=typeof _.Tmc&&a instanceof _.Tmc)l.fields="kind,id,modifiedDate,originalFilename,fileSize,mimeType,decryptionMetadata(wrappedKey,kaclsId,aes256GcmChunkSize,jwt,keyFormat)",r="files/"+a.id+"/revisions/"+a.revisionId,q=p=!0;else if(a instanceof Ghc){e=4;k="PUT";r=a.V;a.contentType&&(h["content-type"]=a.contentType);if(a.O>=a.H){var B=
a.H;b=a.O;h["content-range"]=a.G0a?(0,_.Xs)("bytes %d-%d/%d",B,b,b+1):(0,_.Xs)("bytes %d-%d/*",B,b)}B=a.blob;q=!0}else a instanceof Fhc?(e=2,k=(f=!!_.y(a.request,12))?"PUT":"POST",r="files",f&&(r+="/"+_.y(a.request,12)),l.uploadType="resumable",l.pinned=!!_.Q(a.request,13,!1),null!=_.N(a.request,8)&&(l.convert=_.N(a.request,8)),l.fields=_.khc({fields:this.dh().filter(function(E){return 194!=E}),anonymous:_.KI(_.eI(this.H)),jF:_.lI(this.H)}),l.supportsTeamDrives=!0,f=aic(a.request,a.metadata),h["content-type"]=
"application/json",null!=a.request.getMimeType()&&(h["x-upload-content-type"]=a.request.getMimeType()),_.KJ(this.H,[],_.se(a.request,3),this.O,h),v=a.request.re(),q=!0):a instanceof _.Khc?(r="about",l.fields="kind",v=a.H,q=!0):_.cnc(a);q&&_.dnc(c,l);0!=e||p||v&&_.y(v,1)||_.rK(this.Xf,74438989);return _.enc(this,e,r,l,h,k,v,f,B)};
_.enc=function(a,b,c,d,e,f,h,k,l){c=new _.Zi(c);[10,12,13].includes(b)||rhc(c,h);(a=a.H.Ki())&&(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,_.ej(c,a,h);return{jn:b,headers:e,method:f,uri:c,body:k?JSON.stringify(k):l}};_.GK.prototype.W=function(){};_.dnc=function(a,b){a&&a.length?(b.retryCount=a.length,b.msSinceLastAttempt=Date.now()-_.ka(a).uUb):b.retryCount=0};
_.GK.prototype.dh=function(a){a||(a=_.bK(this.Cg));return a};_.cnc=function(a){var b=_.II(new _.Fc,4);throw new _.Gc("ToXhrConverter: Unsupported request type: "+Mhc(a),b);};
_.HK=function(a,b,c,d,e,f){_.yi.call(this);var h=this;this.O=a;this.V=b;this.W=c;this.ha=d;this.Ba=e;this.wa=f;this.aj={};this.ka={};this.Xf=null;_.ff(this,function(){h.HG()})};_.J(_.HK,_.yi);_.HK.prototype.$Q=function(){return _.EI()};
_.HK.prototype.upload=function(a,b,c,d){Skc(this.V,"UploadTotalCount");var e=a.lj();if(e&&this.aj[e])throw new _.Gc("Upload requested with a duplicate request ID.");var f=_.se(a,10);if(f&&f.length){if(1!==f.length)throw new _.Gc("Multi-parented uploads are not supported.");var h=this.aj[f[0]];if(!h)throw new _.Gc("The parent upload request must precede this request.");}!_.y(a,26)&&b&&b.lastModified&&_.u(a,26,b.lastModified);e||(e=this.$Q(),_.u(a,9,e));a=a.clone();f=fnc(this,e);this.aj[e]={request:a,
file:b,Ee:f,bN:!1,Qu:0,success:!1,$E:!1,children:[],metadata:c,zma:void 0,UQ:d};h?gnc(this,e,h):this.ma(e);return f.ln()};
var fnc=function(a,b){var c=new _.$h;c.dg(_.Ob(a.Ga,b),_.Ob(a.Ia,b),a);return c},gnc=function(a,b,c,d){var e=a.aj[b];c.children.push(b);_.Ga(c.children);c.Ee.then(function(f){if(1===f.Cb()&&(f=f.qc(),_.se(e.request,3).push(f),_.fI(e.request,10),!c.$E||d)){a.ma(b);return}a.log('[Cancel] Upload of "'+e.request.getTitle()+'" was cancelled due to parent upload cancellation.');a.cancel(b)},function(f){e.Ee.Gd(_.rI(f)?f:Error(f))})};
_.HK.prototype.Ga=function(a,b){Skc(this.V,"UploadSuccessCount");a=this.aj[a];a.success=1===b.Cb();(b=a.zma)&&!a.$E&&($ic(bjc(Ojc(b),a.Qu),!0),b.Cj())};_.HK.prototype.Ia=function(a,b){var c=_.x(this.O,_.HI,58);c&&_.Q(c,1,!1)&&(this.ka[a]=b);Skc(this.V,"UploadFailureCount");c=this.aj[a];(a=c.zma)&&!c.$E&&($ic(bjc(Ojc(a),c.Qu),!1),b=(c=b&&b.qg)&&c.Xj(),c=c&&c.Ip(),b?ajc(Ojc(a),hnc.get(b)||13):c&&ajc(Ojc(a),inc.get(c)||0),a.Cj())};
_.HK.prototype.ma=function(a){var b=this.aj[a];if(!b.bN){b.bN=!0;a=this.aj[a];var c=a.request,d=_.x(this.O,_.HI,58);d&&_.Q(d,4,!1)&&(d=c.getTitle().match(jnc))&&(!d[1]||a.Qu<Number(d[1].substr(1)))&&(c=c.clone(),_.sa(_.se(c,3),"$#@! Invalid parent ID."));a=c;c=(c=b.request.Uz())?_.y(c,1)||0:0;d=b.file&&b.file.size||c;c=this.O.Sf();var e=_.Dj(c,33,1048576);e=b.file&&b.file&&d>e?2:b.file?1:3;if(this.wa&&3!==e){var f=this.wa.H(106012);f&&(b.zma=f,f=Ojc(f),f=_.u(f,1,2===e?2:1),f=_.u(f,4,!!b.metadata),
f=_.u(f,5,!!_.y(a,12)),d=_.u(f,6,d),_.u(d,7,_.Dj(c,32,1073741824)))}switch(e){case 2:b.file&&knc(this,new _.Hhc(a,b.file,b.UQ,b.metadata),b.Ee,a.lj());break;case 1:b.file&&(c=b.Ee,d=b.file,e=b.metadata,b=b.UQ,f=_.x(this.O,_.Aic,2),knc(this,new _.DJ(a,d,b,f&&_.RJ(f)?e:void 0),c,a.lj()));break;case 3:knc(this,a,b.Ee,a.lj());break;default:throw new _.Gc("Upload type ${uploadType} not supported.");}}};
var knc=function(a,b,c,d){Fkc(a.W,d,a.ta.bind(a,d));var e=a.ha.then(function(f){return f.Oe(b,{requestId:d})}).then(null,function(f){return lnc(a,b,f)});e.then(function(){Gkc(a.W,[d])},function(){Gkc(a.W,[d])});e.then(function(f){c.callback(f)},function(f){c.Gd(f)})},lnc=function(a,b,c){var d=_.wd(c),e=b instanceof _.DJ&&b.request.qc()||"";c=d.qg;if(e&&8===c.Xj()){a.log("Create failed with 409 Conflict, re-querying: "+e);var f=_.YF(new _.WF,[e]);return _.fi(a.ha.then(function(h){return h.Oe(f)}).then(function(h){h=
h.Zc().Bd()[0];var k=b.request;if(h&&!h.Ph()&&(h.getMimeType()||"").replace(/\s/g,"")===(k.getMimeType()||"").replace(/\s/g,"")&&h.getTitle()===k.getTitle())return a.log("Matching item found for: "+e),_.ljc((new _.GJ).setItem(h),e).Dc(1);a.log("No matching item found for: "+e);return _.Wh(d)}))}return _.gi(d)};_.g=_.HK.prototype;
_.g.cancel=function(a){var b=this,c=this.aj[a];if(c&&(!c.$E||0!==c.children.length))if(c.$E=!0,c.Ee.Vf())this.log('[Cancel] Response for "'+c.request.getTitle()+'" already received. Cannot cancel.'+(c.children.length?" Attempting to cancel children.":"")),_.Ma(c.children,this.cancel,this);else{var d=c.zma;d&&(ajc($ic(bjc(Ojc(d),c.Qu),!1),2),d.Cj());var e=_.Yh();c.bN?this.ha.then(function(f){return void e.resolve(f.cancel(a))}):(c.bN=!0,c.Ee.callback(Nhc(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.HG=function(){var a=this;_.Ta(this.aj,function(b,c){a.cancel(c)})};
_.g.retry=function(a){var b=this,c=new Set(a),d=[],e={};a.forEach(function(f){if(!e[f])if(b.aj[f]){var h=[];do{h.push(f);var k=(_.se(b.aj[f].request,10)||[])[0];if(k){var l=b.aj[k];if(l.success||!l.Ee.Vf()||e[k])break;else if(!c.has(k)){e[f]=new _.Gc("Unable to retry request due to failed parent upload.");break}}f=k}while(f);_.la(h,function(p){var q=b.aj[p];q.Qu++;if(!e[p])if(!q.Ee.Vf()||q.success)e[p]=new _.Gc("Unable to retry request.");else{var r=(_.se(q.request,10)||[])[0];e[r]instanceof _.Gc?
e[p]=e[r]:(q.Ee=fnc(b,p),q.bN=!1,q.$E=!1,(r=r?b.aj[r]:null)?gnc(b,p,r,!0):d.push(p),e[p]=q.Ee.ln())}})}else e[f]=new _.Gc("Retry request with unknown ID.")});a=a.map(function(f){f=e[f];return f instanceof _.$h?f:_.gi(f)});_.Ma(d,this.ma,this);return a};_.g.log=function(){this.isDisposed()};_.g.jd=function(a){return this.aj[a]};var jnc=/^uploadTestFailMe(\.[1-9])?$/,inc=new Map([[2,12],[5,1],[27,3],[29,4],[30,5],[31,6],[35,7],[36,8],[37,9],[38,10],[25,11]]),hnc=new Map([[3,14]]);

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1gp");

_.mnc=function(a,b){return _.u(a,1,b)};_.nnc=function(a,b){return _.F(a,1,b)};_.onc=function(a,b){return _.u(a,2,b)};_.pnc=function(a,b){return _.F(a,3,b)};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1g1");


_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1g9");

var qnc;_.IK=function(a){_.G.call(this,a,-1,qnc)};_.J(_.IK,_.G);_.IK.prototype.Cb=function(){return _.y(this,1)};_.IK.prototype.Dc=function(a){return _.u(this,1,a)};_.IK.prototype.Lh=function(){return _.yb(this,_.Ik,2)};_.rnc=function(a,b){return _.sj(a,2,b)};_.IK.prototype.Nq=function(a,b){return _.yj(this,2,a,_.Ik,b)};_.IK.prototype.Uf=function(){return _.y(this,4)};_.snc=function(a,b){return _.u(a,4,b)};qnc=[2];

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1gs");

_.JK=function(a,b){_.u(a,1,b)};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1gt");

var tnc;_.unc=function(a){return _.Ye(a).dh(_.Q(a.get(_.Mo),19,!1)?tnc:_.We)};tnc=[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];

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1fq");

var vnc,wnc,xnc,ync,znc,KK,Anc,Bnc,Cnc,Dnc,Enc,Gnc,Hnc,Inc,Jnc,Knc,NK,Pnc,Qnc,OK,PK,Rnc,Snc,Unc,Vnc,Wnc,Xnc,Ync,$nc,aoc,boc,coc,doc,eoc,goc,ioc,poc,roc,uoc,voc,yoc,Boc,TK,Coc,Doc,Eoc,Foc,Goc,Hoc,Ioc,Joc,Koc,Loc,Moc,Noc,Ooc,Poc,Qoc,Soc,Toc,Uoc,Xoc,Woc,$oc,bpc,dpc,fpc,jpc,ppc,opc,wpc,xpc,ypc,zpc,Apc,Epc,Gpc,Hpc,Ipc,LK,Jpc,Kpc,Mnc,Lnc,Nnc,Onc,grc,ZK,aL,wrc,zrc,Arc,Brc,Erc,Voc,Frc,gsc,hsc,isc,jsc,ksc,msc,nsc,osc,bL,psc,cL,qsc,rsc,ssc,tsc,usc,vsc,dL,wsc,xsc,ysc,zsc,Asc,Bsc,Csc,Osc,mtc,otc,ptc,utc,vtc,
Dtc,Ntc,Wtc,duc,juc,quc,suc,xuc,Duc,Suc,Tuc,Wuc,Yuc,rvc,qwc,loc,rwc,swc,twc,ywc,Gwc,Hwc,KAc,Fpc;vnc=function(a){a={Title:a.getTitle(),Type:a.getMimeType(),Parents:_.se(a,3),Convert:_.N(a,8),ID:a.lj()};var b=[];_.Ta(a,function(c,d){c&&b.push(d+": "+c)});return b.join("; ")};
wnc=function(a){var b=[];b.push(vnc(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.Qu&&b.push("# of retries by client: "+a.Qu);var d="";a.bN?a.Ee.Vf()?a.Ee.dg(function(){d="Completed successfully."},function(e){d=e instanceof _.ai?"Canceled.":"Completed with failure. See attachment."}):d="In progress.":d="Not yet executed.";b.push("State: "+
d);return b.join("\n")};
xnc=function(a,b,c,d,e,f){var h=_.Xa(e),k=_.Xa(f);h=(0,_.Xs)("Drive Upload Report: %d/%d failed",k,h);a=a.Sf();d.push("Batch query interval: "+_.Dj(a,12,10)+"ms");d.push("Max resumable upload chunk size: "+_.Dj(a,32,1073741824)/1024/1024+" MiB");d.push("Max batch upload file size: "+_.Dj(a,33,1048576)/1024/1024+" MiB");d.push("Max files in an upload batch: "+_.Dj(a,35,10)+" files");d.push("Max files in a non-upload batch: "+_.Dj(a,10,50)+" files");d=d.join("\n");var l=[],p=[];_.Ta(e,function(q){p.push(wnc(q))});
l.push({name:"AllUploadRequests.txt",content:p.join("\n---------\n")});l.push({name:"DataserviceLogs.txt",content:_.jjc(b)});_.Ta(f,function(q,r){var v=l.push;r=e[r].request;r=(0,_.Xs)('ErrorResponseFor"%s"(ID:%s).txt',r.getTitle()||"",r.lj()||"");var w=q.qg;v.call(l,{name:r,content:q.toString()+"\n"+(w?_.y(w,4):"No detail.")})});return{title:h,description:d,GQ:l,Ed:152391,a$:c,X0:361003}};ync=function(a){return Array.prototype.concat.apply([],arguments)};
znc=function(a,b,c){c=_.Ia(a,b,c);return 0>c?(_.ua(a,b,-(c+1)),!0):!1};KK=function(a){throw _.wd(a);};Anc=function(a,b){var c=new _.bI,d=new Set;if(6===a){a=_.m(b);for(b=a.next();!b.done;b=a.next())(b=b.value)?(b=_.E7a.get(b.Jv()))&&d.add(b):d.add(1);0===d.size&&d.add(0)}_.Hec(c,[].concat(_.fc(d)));return c};
Bnc=function(a){var b=[],c={};a=_.m(a);for(var d=a.next();!d.done;c={Jfa:c.Jfa},d=a.next())if(d=d.value){c.Jfa=new Map;[].concat(_.fc(_.Jk(d)),[d.Am(),d.Zr(),d.oq()]).forEach(function(p){return function(q){q&&p.Jfa.set(LK(q),q)}}(c));for(var e=[],f=_.m(c.Jfa.values()),h=f.next();!h.done;h=f.next())if(h=h.value){var k=h.getName(),l=h.getEmail();e.push(LK(h)+"-"+((k?k.length:k)+"-")+((l?l.length:l)+"-")+_.xk(h))}b.push(d.getId()+","+d.Jv()+","+(e.length?e.join(","):"-"))}return b.length?"People: "+
b.join("|"):""};Cnc=function(a){var b=new _.uo;b.append("kind,largestChangeId,nextPageToken,");b.append("items(deleted,fileId,id,kind,");b.append(_.OI(a,!0,"file"));a.h8&&(b.append(",teamDriveId,teamDrive("),b.append(a.h8),b.append(")"));b.append(")");return b.toString()};Dnc=function(a){var b=new _.uo;b.append("kind,nextPageToken,items(");b.append(_.OI(a,!0));b.append("),incompleteSearch");a.h8&&(b.append(","),b.append(a.h8));return b.toString()};
Enc=function(a,b){for(var c=0;c<b.length;c++){var d=a,e=b[c],f=d.getCapabilities(),h=_.x(d,_.LJ,138),k=_.x(d,_.Dk,111),l=_.x(d,_.MJ,27),p=_.x(d,_.iic,139),q=d.vf(),r=d.Uh(),v=_.x(d,_.OJ,103);switch(e){case 227:_.vb(d,144);break;case 228:_.vb(d,145);break;case 74:_.tj(d,83);break;case 188:_.vb(d,137);break;case 149:_.fI(d,128);break;case 148:_.tj(d,127);break;case 138:_.vb(d,126);break;case 184:_.fI(d,135);break;case 76:f&&_.vb(f,1);break;case 223:f&&_.vb(f,54);break;case 208:f&&_.vb(f,48);break;case 185:f&&
_.vb(f,40);break;case 224:f&&_.vb(f,55);break;case 213:f&&_.vb(f,50);break;case 156:f&&_.vb(f,39);break;case 61:f&&_.vb(f,2);break;case 216:f&&_.vb(f,52);break;case 217:f&&_.vb(f,53);break;case 77:f&&_.vb(f,4);break;case 134:f&&_.vb(f,34);break;case 147:f&&_.vb(f,38);break;case 81:f&&_.vb(f,10);break;case 82:f&&_.vb(f,11);break;case 114:f&&_.vb(f,27);break;case 133:f&&_.vb(f,33);break;case 202:f&&_.vb(f,47);break;case 132:f&&_.vb(f,32);break;case 101:f&&_.vb(f,20);break;case 201:f&&_.vb(f,46);break;
case 131:f&&_.vb(f,31);break;case 200:f&&_.vb(f,45);break;case 130:f&&_.vb(f,30);break;case 93:f&&_.vb(f,17);break;case 191:f&&_.vb(f,44);break;case 146:f&&_.vb(f,37);break;case 90:f&&_.vb(f,16);break;case 78:f&&_.vb(f,7);break;case 186:f&&_.vb(f,41);break;case 222:f&&_.vb(f,51);break;case 85:f&&_.vb(f,12);break;case 137:f&&_.vb(f,36);break;case 209:f&&_.vb(f,49);break;case 79:f&&_.vb(f,8);break;case 189:f&&_.vb(f,42);break;case 190:f&&_.vb(f,43);break;case 80:f&&_.vb(f,9);break;case 135:f&&_.vb(f,
35);break;case 102:f&&_.vb(f,21);break;case 69:_.vb(d,74);break;case 194:h&&_.rj(h,2);break;case 193:h&&_.vb(h,1);break;case 1004:_.vb(d,108);break;case 136:_.tj(d,125);break;case 115:k&&_.vb(k,1);break;case 116:k&&_.vb(k,2);break;case 34:_.vb(d,30);f&&_.vb(f,3);break;case 9:_.vb(d,10);break;case 91:_.rj(d,91);break;case 43:_.vb(d,42);_.vb(d,43);break;case 187:_.vb(d,136);break;case 26:_.vb(d,24);break;case 108:_.fI(d,104);break;case 41:_.vb(d,40);f&&_.vb(f,5);break;case 42:_.vb(d,41);break;case 1005:_.tj(d,
117);break;case 59:f&&_.vb(f,6);break;case 28:_.vb(d,26);break;case 44:_.vb(d,45);break;case 13:_.vb(d,14);break;case 48:_.vb(d,36);break;case 38:_.vb(d,34);break;case 49:_.fI(d,50);break;case 51:_.vb(d,53);break;case 104:_.vb(d,102);break;case 39:_.vb(d,35);break;case 87:_.vb(d,76);break;case 100:_.vb(d,98);break;case 72:_.vb(d,78);break;case 5:_.vb(d,6);break;case 20:_.vb(d,21);break;case 21:break;case 29:l&&_.vb(l,1);break;case 31:l&&_.vb(l,3);break;case 92:l&&_.vb(l,4);break;case 30:l&&_.vb(l,
2);break;case 16:_.rj(d,17);break;case 12:_.vb(d,13);break;case 211:p&&_.vb(p,2);break;case 212:p&&_.vb(p,3);break;case 220:p&&_.vb(p,5);break;case 157:r&&_.tj(r,8);break;case 3:_.vb(d,4);break;case 11:_.vb(d,12);break;case 10:_.vb(d,11);break;case 50:_.vb(d,49);_.vb(d,51);_.rj(d,81);break;case 18:_.vb(d,19);break;case 95:_.vb(d,93);break;case 58:_.vb(d,63);break;case 14:_.tj(d,15);break;case 103:_.vb(d,101);break;case 1:_.fI(d,2);break;case 96:_.vb(d,94);break;case 1003:_.tj(d,107);break;case 75:_.rj(d,
85);break;case 94:_.vb(d,92);break;case 45:_.vb(d,46);break;case 124:_.vb(d,118);break;case 125:_.vb(d,119);break;case 1002:_.rj(d,100);break;case 32:_.vb(d,28);break;case 67:_.vb(d,70);break;case 68:_.vb(d,71);break;case 221:r&&_.vb(r,9);break;case 210:_.vb(d,140);break;case 7:_.vb(d,8);break;case 122:_.rj(d,109);break;case 66:_.vb(d,69);break;case 33:_.vb(d,29);break;case 24:_.vb(d,22);break;case 25:_.vb(d,23);break;case 46:_.rj(d,47);break;case 192:q&&_.vb(q,6);break;case 159:q&&_.rj(q,5);break;
case 154:q&&_.vb(q,1);break;case 158:q&&_.vb(q,4);break;case 155:q&&_.vb(q,3);break;case 52:_.fI(d,56);break;case 56:_.vb(d,61);break;case 55:_.tj(d,60);break;case 4:_.vb(d,5);break;case 35:_.vb(d,31);break;case 57:_.vb(d,62);break;case 83:_.vb(d,72);break;case 84:_.rj(d,86);break;case 19:_.vb(d,20);_.vb(d,44);_.vb(d,90);break;case 2:_.vb(d,3);break;case 6:_.vb(d,7);break;case 98:_.vb(d,96);break;case 97:_.rj(d,95);break;case 27:_.vb(d,25);break;case 70:_.vb(d,75);break;case 107:v&&_.vb(v,3);break;
case 106:v&&_.vb(v,2);break;case 105:v&&_.vb(v,1);break;case 8:_.vb(d,9);break;case 126:_.fI(d,120);break;default:throw Error("ed`"+e);}}};Gnc=function(a,b){if(0!=a.length){var c=new Set([].concat(_.fc(a),_.fc(Fnc)));a=[].concat(_.fc(_.Cdb.keys())).filter(function(e){return!c.has(e)});for(var d=0;d<b.length;d++)Enc(b[d],a)}};
Hnc=function(a,b){var c=a.getCapabilities()||new _.Bk,d=_.x(a,_.LJ,138),e=_.x(a,_.Dk,111),f=_.x(a,_.MJ,27),h=_.x(a,_.iic,139),k=a.vf(),l=a.Uh(),p=_.x(a,_.OJ,103);switch(b){case 227:return null!=_.N(a,144);case 228:return null!=_.y(a,145);case 74:return 0<a.uu().length;case 188:return null!=_.N(a,137);case 149:return 0<_.se(a,128).length;case 148:return 0<a.FAa().length;case 138:return null!=a.i$();case 184:return 0<_.se(a,135).length;case 76:return null!=_.Ck(c);case 223:return null!=_.N(c,54);case 208:return null!=
_.N(c,48);case 185:return null!=_.N(c,40);case 224:return null!=_.N(c,55);case 213:return null!=_.N(c,50);case 156:return null!=_.N(c,39);case 61:return null!=_.N(c,2);case 216:return null!=_.N(c,52);case 217:return null!=_.N(c,53);case 77:return null!=_.N(c,4);case 134:return null!=_.N(c,34);case 147:return null!=_.N(c,38);case 81:return null!=_.N(c,10);case 82:return null!=_.N(c,11);case 114:return null!=_.N(c,27);case 133:return null!=_.N(c,33);case 202:return null!=_.N(c,47);case 132:return null!=
_.N(c,32);case 101:return null!=_.N(c,20);case 201:return null!=_.N(c,46);case 131:return null!=_.N(c,31);case 200:return null!=_.N(c,45);case 130:return null!=_.N(c,30);case 93:return null!=_.N(c,17);case 191:return null!=_.N(c,44);case 146:return null!=_.N(c,37);case 90:return null!=_.Pe(c);case 78:return null!=_.N(c,7);case 186:return null!=_.N(c,41);case 222:return null!=_.N(c,51);case 85:return null!=_.N(c,12);case 137:return null!=_.N(c,36);case 209:return null!=_.N(c,49);case 79:return null!=
_.N(c,8);case 189:return null!=_.N(c,42);case 190:return null!=_.N(c,43);case 80:return null!=_.N(c,9);case 135:return null!=_.N(c,35);case 102:return null!=_.N(c,21);case 69:return null!=_.N(a,74);case 194:return null!=d&&null!=_.x(d,_.hic,2);case 193:return null!=d&&null!=_.y(d,1);case 1004:return null!=_.N(a,108);case 136:return 0<a.T1().length;case 115:return null!=e&&null!=_.N(e,1);case 116:return null!=e&&null!=_.y(e,2);case 34:return null!=_.N(a,30)||null!=_.N(c,3);case 9:return null!=a.lD();
case 91:return null!=a.oq();case 43:return null!=_.y(a,42)||null!=_.y(a,43);case 187:return null!=a.Vi();case 26:return null!=a.yf();case 108:return 0<_.se(a,104).length;case 41:return null!=_.N(c,5);case 42:return null!=_.y(a,41);case 1005:return 0<_.Nk(a).length;case 59:return null!=_.N(c,6);case 28:return null!=a.eJ();case 44:return null!=_.y(a,45);case 13:return null!=a.oM();case 48:return null!=_.N(a,36);case 38:return null!=a.Li();case 49:return 0<_.se(a,50).length;case 51:return null!=_.N(a,
53);case 104:return null!=_.N(a,102);case 39:return null!=a.Yka();case 87:return null!=_.Kk(a);case 100:return null!=_.N(a,98);case 72:return null!=_.y(a,78);case 5:return null!=_.N(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.Ce());case 16:return null!=a.Am();case 12:return null!=a.zz();case 211:return null!=h&&null!=_.N(h,2);case 212:return null!=
h&&null!=_.N(h,3);case 220:return null!=h&&null!=_.N(h,5);case 157:return!(!l||!_.yb(l,_.Gk,8));case 3:return null!=a.getMimeType();case 11:return null!=a.BB();case 10:return null!=a.Mq();case 50:return null!=_.N(a,49)||null!=_.N(a,51)||null!=a.Um();case 18:return null!=a.qq();case 14:return 0<_.Jk(a).length;case 95:return null!=a.Dl();case 58:return null!=_.N(a,63);case 103:return null!=_.y(a,101);case 1:return 0<a.vk().length;case 96:return null!=_.N(a,94);case 1003:return 0<_.Mk(a).length;case 75:return null!=
a.zw();case 94:return null!=a.BN();case 45:return null!=a.Zw();case 124:return null!=_.N(a,118);case 125:return null!=_.y(a,119);case 1002:return null!=_.Lk(a);case 32:return null!=a.rv();case 67:return null!=a.lK();case 68:return null!=_.y(a,71);case 221:return null!=l&&null!=_.N(l,9);case 210:return null!=_.Ok(a);case 7:return null!=a.T7();case 122:return null!=_.MK(a);case 66:return null!=_.y(a,69);case 33:return null!=_.N(a,29);case 24:return null!=a.yj();case 25:return null!=a.Ky();case 46:return null!=
a.Zr();case 192:return null!=k&&null!=_.N(k,6);case 159:return null!=k&&null!=_.xe(k);case 154:return null!=k&&null!=_.y(k,1);case 158:return null!=k&&null!=_.ze(k);case 155:return null!=k&&null!=_.y(k,3);case 52:return 0<_.se(a,56).length;case 55:return 0<a.gA().length;case 56:return null!=_.y(a,61);case 4:return null!=a.lB();case 35:return null!=_.N(a,31);case 57:return null!=_.y(a,62);case 83:return null!=a.uc();case 84:return null!=_.x(a,_.NJ,86);case 2:return null!=a.getTitle();case 19:return null!=
a.Az()||null!=_.N(a,44)||null!=_.y(a,90);case 6:return null!=a.Ph();case 98:return null!=a.Aw();case 97:return null!=a.BD();case 27:return null!=a.Bp();case 70:return null!=a.mj();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.Ce();case 8:return null!=_.N(a,9);case 126:return 0<_.se(a,120).length;default:throw Error("fd`"+b);}};Inc=function(a,b){return b.every(function(c){return Hnc(a,c)})};
Jnc=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)})};Knc=function(a,b){var c=new Set(b.concat(_.jhc));return a.filter(function(d){return!c.has(d)})};
NK=function(a,b,c){var d,e;b=b.clone();var f=b.getCapabilities();c=_.m(c);for(var h=c.next();!h.done;h=c.next())if(h=h.value,Hnc(b,h))if(_.Gdb.has(h)){if(f){var k=a.getCapabilities()||new _.Bk;_.QJ(a,k);switch(h){case 76:_.u(k,1,_.Ck(f));break;case 223:_.u(k,54,_.N(f,54));break;case 208:_.u(k,48,_.N(f,48));break;case 185:_.u(k,40,_.N(f,40));break;case 224:_.u(k,55,_.N(f,55));break;case 213:_.u(k,50,_.N(f,50));break;case 156:_.u(k,39,_.N(f,39));break;case 61:_.u(k,2,_.N(f,2));break;case 216:_.u(k,
52,_.N(f,52));break;case 217:_.u(k,53,_.N(f,53));break;case 77:_.u(k,4,_.N(f,4));break;case 134:_.u(k,34,_.N(f,34));break;case 147:_.u(k,38,_.N(f,38));break;case 81:_.u(k,10,_.N(f,10));break;case 82:_.u(k,11,_.N(f,11));break;case 114:_.u(k,27,_.N(f,27));break;case 133:_.u(k,33,_.N(f,33));break;case 202:_.u(k,47,_.N(f,47));_.u(k,32,_.N(f,32));break;case 132:_.u(k,32,_.N(f,32));break;case 101:_.u(k,20,_.N(f,20));break;case 201:_.u(k,46,_.N(f,46));break;case 131:_.u(k,31,_.N(f,31));break;case 200:_.u(k,
45,_.N(f,45));break;case 130:_.u(k,30,_.N(f,30));break;case 93:_.u(k,17,_.N(f,17));break;case 191:_.u(k,44,_.N(f,44));break;case 146:_.u(k,37,_.N(f,37));break;case 90:_.gic(k,_.Pe(f));break;case 78:_.u(k,7,_.N(f,7));break;case 186:_.u(k,41,_.N(f,41));break;case 222:_.u(k,51,_.N(f,51));break;case 85:_.u(k,12,_.N(f,12));break;case 137:_.u(k,36,_.N(f,36));break;case 209:_.u(k,49,_.N(f,49));break;case 79:_.u(k,8,_.N(f,8));break;case 189:_.u(k,42,_.N(f,42));break;case 190:_.u(k,43,_.N(f,43));break;case 80:_.u(k,
9,_.N(f,9));break;case 135:_.u(k,35,_.N(f,35));break;case 102:_.u(k,21,_.N(f,21));break;case 34:_.u(a,30,_.N(b,30));_.u(k,3,_.N(f,3));break;case 41:_.u(a,40,_.N(b,40));_.u(k,5,_.N(f,5));break;case 59:_.u(k,6,_.N(f,6))}}}else if(_.Hdb.has(h)){var l=_.x(b,_.LJ,138);if(l)switch(k=_.x(a,_.LJ,138)||new _.LJ,_.F(a,138,k),h){case 194:h=_.x(l,_.hic,2);_.F(k,2,h);break;case 193:_.u(k,1,_.y(l,1))}}else if(_.Idb.has(h)){if(k=_.x(b,_.Dk,111))switch(l=_.x(a,_.Dk,111)||new _.Dk,_.F(a,111,l),h){case 115:l.mP(_.N(k,
1));break;case 116:_.u(l,2,_.y(k,2))}}else if(_.Jdb.has(h)){if(k=_.x(b,_.MJ,27))switch(l=_.x(a,_.MJ,27)||new _.MJ,_.F(a,27,l),h){case 29:_.u(l,1,_.y(k,1));break;case 31:l.zh(_.y(k,3));break;case 92:_.u(l,4,_.y(k,4));break;case 30:l.mh(k.Ce())}}else if(_.Kdb.has(h)){if(k=_.x(b,_.iic,139))switch(l=_.x(a,_.iic,139)||new _.iic,_.F(a,139,l),h){case 211:_.u(l,2,_.N(k,2));break;case 212:_.u(l,3,_.N(k,3));break;case 220:_.u(l,5,_.N(k,5))}}else if(_.Ldb.has(h)){if(l=b.vf())switch(k=a.vf()||new _.Goa,_.F(a,
132,k),h){case 192:_.u(k,6,_.N(l,6));break;case 159:h=_.xe(l);_.F(k,5,h);break;case 154:_.u(k,1,_.y(l,1));break;case 158:_.u(k,4,_.ze(l));break;case 155:_.u(k,3,_.y(l,3))}}else if(_.Mdb.has(h))switch(k=b.Uh(),h){case 157:k&&(h=a.Uh()||new _.Eoa,Lnc(a,h),Mnc(h,_.yb(k,_.Gk,8)));break;case 221:k&&(h=a.Uh()||new _.Eoa,Lnc(a,h),_.u(h,9,_.N(k,9)))}else if(_.Ndb.has(h)){if(k=_.x(b,_.OJ,103))switch(l=_.x(a,_.OJ,103)||new _.OJ,_.F(a,103,l),h){case 107:_.u(l,3,_.y(k,3));break;case 106:l.zh(_.y(k,2));break;
case 105:l.mh(k.Ce())}}else switch(h){case 227:_.u(a,144,_.N(b,144));break;case 228:_.u(a,145,_.y(b,145));break;case 74:h=b.uu();_.sj(a,83,h);break;case 188:_.u(a,137,_.N(b,137));break;case 149:h=_.se(b,128);_.qj(a,128,h);break;case 148:h=b.FAa();_.sj(a,127,h);break;case 138:_.u(a,126,b.i$());break;case 184:h=_.se(b,135);_.qj(a,135,h);break;case 69:_.u(a,74,_.N(b,74));break;case 1004:_.u(a,108,_.N(b,108));break;case 136:h=b.T1();_.sj(a,125,h);break;case 9:_.u(a,10,b.lD());break;case 91:_.vic(a,b.oq());
break;case 43:_.u(a,42,_.y(b,42));_.u(a,43,_.y(b,43));break;case 187:_.zic(a,b.Vi());break;case 26:a.kl(b.yf());break;case 108:h=_.se(b,104);_.qj(a,104,h);break;case 42:_.u(a,41,_.y(b,41));break;case 1005:h=_.Nk(b);_.sj(a,117,h);break;case 28:_.u(a,26,b.eJ());break;case 44:_.u(a,45,_.y(b,45));break;case 13:_.u(a,14,b.oM());break;case 48:_.u(a,36,_.N(b,36));break;case 38:_.qic(a,b.Li());break;case 49:h=_.se(b,50);_.qj(a,50,h);break;case 51:_.u(a,53,_.N(b,53));break;case 104:_.u(a,102,_.N(b,102));break;
case 39:_.u(a,35,b.Yka());break;case 87:_.u(a,76,_.Kk(b));break;case 100:_.u(a,98,_.N(b,98));break;case 72:_.u(a,78,_.y(b,78));break;case 5:_.u(a,6,_.N(b,6));break;case 20:h=b.qf();_.u(a,21,h);break;case 21:a.Nb(b.getId());break;case 16:_.oic(a,b.Am());break;case 12:_.u(a,13,b.zz());break;case 3:_.cG(a,b.getMimeType());break;case 11:_.u(a,12,b.BB());break;case 10:_.u(a,11,b.Mq());break;case 50:_.u(a,49,_.N(b,49));_.u(a,51,_.N(b,51));h=b.Um();_.F(a,81,h);break;case 95:_.xic(a,b.Dl());break;case 18:_.pic(a,
b.qq());break;case 58:_.u(a,63,_.N(b,63));break;case 14:_.nic(a,_.Jk(b));break;case 1:_.PJ(a,b.vk());break;case 96:_.u(a,94,_.N(b,94));break;case 103:_.u(a,101,_.y(b,101));break;case 1003:Nnc(a,_.Mk(b));break;case 75:_.uic(a,b.zw());break;case 94:_.wic(a,b.BN());break;case 45:_.u(a,46,b.Zw());break;case 124:_.u(a,118,_.N(b,118));break;case 125:_.u(a,119,_.y(b,119));break;case 1002:h=_.Lk(b).clone();(null===(d=_.Lk(a))||void 0===d?0:_.N(d,3))&&_.u(h,3,!0);(null===(e=_.Lk(a))||void 0===e?0:_.N(e,4))&&
_.u(h,4,!0);_.F(a,100,h);break;case 32:_.u(a,28,b.rv());break;case 67:_.u(a,70,b.lK());break;case 68:_.u(a,71,_.y(b,71));break;case 210:_.u(a,140,_.Ok(b));break;case 7:_.u(a,8,b.T7());break;case 122:Onc(a,_.MK(b));break;case 66:_.u(a,69,_.y(b,69));break;case 33:_.u(a,29,_.N(b,29));break;case 24:_.u(a,22,b.yj());break;case 25:_.u(a,23,b.Ky());break;case 46:_.ric(a,b.Zr());break;case 52:h=_.se(b,56);_.qj(a,56,h);break;case 56:_.u(a,61,_.y(b,61));break;case 55:a.RA(b.gA());break;case 4:a.fw(b.lB());
break;case 35:_.u(a,31,_.N(b,31));break;case 57:_.u(a,62,_.y(b,62));break;case 83:_.tic(a,b.uc());break;case 84:h=_.x(b,_.NJ,86);_.F(a,86,h);break;case 98:a.Jda(b.Aw());break;case 97:_.yic(a,b.BD());break;case 19:_.u(a,20,b.Az());_.u(a,44,_.N(b,44));_.u(a,90,_.y(b,90));break;case 2:a.setTitle(b.getTitle());break;case 6:a.Nn(b.Ph());break;case 27:_.AVb(a,b.Bp());break;case 70:_.u(a,75,b.mj());break;case 8:_.u(a,9,_.N(b,9));break;case 126:h=_.se(b,120);_.qj(a,120,h);break;default:throw Error("gd`"+
h);}};Pnc=function(a,b){var c=_.yz[a];return b.filter(function(d){return!c||!c.has(d)})};Qnc=function(a,b,c){a=Pnc(c,a);return Jnc(b,a,_.jhc)};OK=function(a){return a?"application/vnd.google-apps.shortcut"===a.getMimeType():!1};PK=function(a,b){b=void 0===b?!1:b;if(!a)return!1;var c=a.getMimeType();return b&&OK(a)?(a=a.vf(),!!a&&"application/vnd.google-apps.folder"===_.y(a,3)):"application/vnd.google-apps.folder"===c};
Rnc=function(a){var b=a&&a.getId()||null;a&&OK(a)&&(a=(a=a.vf())&&_.y(a,1))&&(b=a);return b};Snc=function(a){return!!_.N(a,31)&&!_.N(a,94)};Unc=function(a){return Tnc.some(function(b){return Hnc(a,b)})};Vnc=function(a){return a.filter(function(b){return!!b}).some(function(b){return[4,5,2].includes(b.Jv())})};Wnc=function(a){return Vnc(a.filter(function(b){return b}).map(function(b){return b.getItem()}))};
Xnc=function(a,b){var c={};a=_.Ua(a,function(d){return!!d});b=_.Ua(b,function(d){return!!d});_.Ta(a,function(d,e){var f=b[e];f?_.Cj(d,f)||(d=_.YEa(4).setItem(f),c[e]=d):(d=_.YEa(2).setItem(d),c[e]=d)});_.Ta(b,function(d,e){a[e]||(d=_.YEa(1).setItem(d),c[e]=d)});return c};Ync=function(a,b){return _.Xa(a)!==_.Xa(b)||!_.ab(Xnc(a,b))};_.Znc=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};$nc=function(a,b){return 0<=b?!a||a<=b:!0};
aoc=function(a,b){var c=a.Um();c||(c=new _.yoa,b&&_.F(a,81,c));return c};boc=function(a){if(PK(a))_.JK(aoc(a,!0),!0);else if(PK(a,!0)){var b=a.vf();if(b=b&&_.xe(b))_.JK(aoc(b,!0),!0),_.JK(aoc(a,!0),!0)}};coc=function(a){return!!a.Um()&&!PK(a)};doc=function(a){var b=[];_.Ma(a,function(c){if(3!=c.Jv()){if(null!=_.N(c,49)||null!=_.N(c,51)||null!=c.Um())c=c.clone(),_.vb(c,49),_.vb(c,51),_.rj(c,81);b.push(c)}});return b};
eoc=function(a,b){if(b){var c=[];_.N(b,3)&&c.push("folder");var d=_.fdc()&&4===b.getType()?"title_natural":_.Xfc[b.getType()];b=_.Zfc[b.Tf()];d&&(b&&(d+=" "+b),c.push(d));c.length&&(a.orderBy=c.join(","))}};goc=function(a){for(var b=0;b<a.length;b++){var c=a[b];c&&c instanceof _.G?a[b]=c.Hc():c&&c instanceof _.jK?a[b]=c.Hc(function(d){return d?d.Hc():null}):c&&c instanceof foc&&(a[b]=c.Hc())}};ioc=function(a){var b=a.slice(0),c=new Set(b);hoc.forEach(function(d){c.has(d)||b.push(d)});b.sort();return b};
poc=function(a,b,c){var d=_.x(a,joc,66);if(d){var e=_.XJ(a),f=_.vI(_.eI(a));a=new _.Zi(_.y(d,1));var h=new _.Zi(window.location);var k=h.Po+"://"+h.jk();null!=h.No&&(k+=":"+h.Iy());h=_.kj(k,3);_.dj(a,"co",h);h=a.He();!e&&0<f&&(h+="u/"+f+"/");a.zi(h+"_/dataservice/cacheproxy");e=_.y(d,5)||"";if(_.fhc(window.location.href,a.toString())&&e)return a=ioc(c),c=_.y(d,6),b="#"+b+"_",d=new _.RH,d.update(a.join(",")),b+=_.Zec(d.digest()),c&&(b+="&jobset="+c),b=_.My(e+"?"+b),_.aa.SharedWorker?(c=new SharedWorker(_.pca(b),
void 0),b=new koc(c.port),c.port.start()):b=new koc(new Worker(_.pca(b),void 0)),new loc(new moc(b,!0),1,e,a);c=a.toString();b="cpiframe_"+_.EI();c=_.zh("IFRAME",{name:b,id:b,src:c});c.style.cssText=_.$ia(_.Igc(_.rg("display: none;")));document.body.appendChild(c);c=_.Yec(a.Po,void 0,a.jk(),a.Iy()).toString();return new loc(new moc(noc(window.frames[b],c),!0),0,a.toString())}a=new ooc;return new loc(new moc(a.O,!1),2,"inline",c,new moc(a.H,!1))};
roc=function(a){var b=new qoc;if(a instanceof _.PI)_.wj(b,16,QK,a);else if(a instanceof _.QI)_.wj(b,1,QK,a);else if(a instanceof _.RI)_.wj(b,2,QK,a);else if(a instanceof RK)_.wj(b,17,QK,a);else if(a instanceof _.UI)_.wj(b,3,QK,a);else if(a instanceof _.tK)_.wj(b,4,QK,a);else if(a instanceof _.SI)_.wj(b,5,QK,a);else if(a instanceof _.YI)_.wj(b,6,QK,a);else if(a instanceof _.$I)_.wj(b,7,QK,a);else if(a instanceof _.aJ)_.wj(b,8,QK,a);else if(a instanceof _.dJ)_.wj(b,9,QK,a);else if(a instanceof _.rJ)_.wj(b,
18,QK,a);else if(a instanceof _.vJ)_.wj(b,10,QK,a);else if(a instanceof _.wJ)_.wj(b,11,QK,a);else if(a instanceof _.xJ)_.wj(b,12,QK,a);else if(a instanceof _.wI)_.wj(b,13,QK,a);else if(a instanceof _.AJ)_.wj(b,14,QK,a);else if(a instanceof _.BJ)_.wj(b,15,QK,a);else throw new _.Gc("Unsupported request type");return b};
uoc=function(a){a=a.map(function(c){var d=new soc;if(c instanceof _.PI)_.wj(d,6,SK,c);else if(c instanceof RK)_.wj(d,7,SK,c);else if(c instanceof _.YI)_.wj(d,1,SK,c);else if(c instanceof _.vJ)_.wj(d,2,SK,c);else if(c instanceof _.wJ)_.wj(d,3,SK,c);else if(c instanceof _.wI)_.wj(d,4,SK,c);else if(c instanceof _.BJ)_.wj(d,5,SK,c);else throw new _.Gc("Unsupported request type");return d});var b=new toc;_.sj(b,1,a);return b};
voc=function(a){return _.yb(a,soc,1).map(function(b){return _.Gj(b,_.PI,6,SK)||_.Gj(b,_.YI,1,SK)||_.Gj(b,_.vJ,2,SK)||_.Gj(b,_.wJ,3,SK)||_.Gj(b,_.wI,4,SK)||_.Gj(b,_.BJ,5,SK)||_.Gj(b,RK,7,SK)})};yoc=function(a){var b=new woc;if(a instanceof _.oD)_.wj(b,1,xoc,a);else if(a instanceof _.pD)_.wj(b,2,xoc,a);else throw new _.Gc("Unsupported request type");return b};
Boc=function(a){var b=new zoc;if(a instanceof _.VI)_.wj(b,1,Aoc,a);else if(a instanceof _.bJ)_.wj(b,2,Aoc,a);else if(a instanceof _.CJ)_.wj(b,3,Aoc,a);else throw new _.Gc("Unsupported request type");return b};TK=function(a,b,c){return b?new c(JSON.parse(a)):a};Coc=function(a){a={t:a.title,d:a.description,c:a.Ed,fi:a.a$,dti:a.X0,a:a.GQ?a.GQ.map(function(b){return JSON.stringify({n:b.name,c:b.content,ct:b.contentType,ec:b.I9})}):void 0};return JSON.stringify(a)};
Doc=function(a){a=JSON.parse(a);return{title:a.t,description:a.d,Ed:a.c,a$:a.fi,X0:a.dti,GQ:a.a?a.a.map(function(b){b=JSON.parse(b);return{name:b.n,content:b.c,contentType:b.ct,I9:b.ec}}):void 0}};Eoc=function(a,b){var c=_.Wgc(b||{}),d=new Map;a.forEach(function(e){d.set(e,c[e]||null)});return d};Foc=function(a,b,c){a=a?1:2;a=_.sd(_.td(new _.ud,12),a);var d=(new _.Df).Nn(!0);d=_.u(d,17,!0);a=_.Ef(d,a);c&&_.pl(a,c);c=new _.Qfc;b&&_.mnc(c,b);return _.nnc(_.pnc(new _.mI,a),c)};Goc=function(a){return a.map(function(b){return b.getItem()})};
Hoc=function(a){var b={};a.forEach(function(c){b[c.getId()]=c.getItem()});return b};Ioc=function(a,b){var c=new _.Zi(_.z(b,16,"")+"/open"),d=a.getId();OK(a)&&(d=Rnc(a));_.dj(c,"id",d);_.dj(c,"authuser",_.vI(_.eI(b)));_.Q(b,89,!1)&&_.lj(a,140)&&_.dj(c,"resourcekey",_.Ok(a));return c.toString()};Joc=function(a){return String.fromCharCode(10>a?48+a:87+a)};Koc=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]=Joc(d>>4);b[2*c+3]=Joc(d&15)}return b.join("")};
Loc=function(a){var b={};_.Yhc(b,[_.y(a,2)||""]);return b};Moc=function(a){var b={};_.Te(_.nh(a.getTitle()))||(b.title=a.getTitle());_.Yhc(b,_.se(a,3));_.N(a,8)&&(b.description="",b.labels={starred:!1});return b};Noc=function(a){var b={};null!=a.getTitle()&&(b.title=a.getTitle());null!=_.y(a,3)&&(b.workspaceToken=_.y(a,3));return b};
Ooc=function(a){var b,c={};c.sourceIds=_.se(a.request,1);c.destinationFolderId=null!==(b=_.y(a.request,2))&&void 0!==b?b:void 0;a.pageToken&&(c.continuationToken=a.pageToken);return c};
Poc=function(a){var b={},c={};_.Te(_.nh(a.getTitle()))||(b.title=a.getTitle());null!=a.yf()&&(b.description=a.yf());null!=_.N(a,4)&&(c.starred=_.N(a,4));null!=a.Ph()&&(c.trashed=a.Ph());_.Te(_.nh(a.getMimeType()))||(b.mimeType=a.getMimeType());"number"===typeof _.y(a,7)&&(b.modifiedDate=_.Zhc(_.$hc(_.y(a,7)||0)));null!=_.N(a,11)&&(c.restricted=_.N(a,11));_.Xa(c)&&(b.labels=c);null!=a.Li()&&(b.folderColor=a.Li());null!=_.N(a,16)&&(b.subscribed=_.N(a,16));null!=_.N(a,40)&&(b.linkShareMetadata={securityUpdateEnabled:_.N(a,
40)});if(c=_.x(a,_.Dk,25)){b.contentRestrictions=[];var d={};null!=_.N(c,1)&&(d.readOnly=_.N(c,1));null!=_.y(c,2)&&(d.reason=_.y(c,2));b.contentRestrictions.push(d)}_.Yhc(b,_.se(a,8));return b};Qoc=function(a){var b={};null!=_.N(a,3)&&(b.pinned=_.N(a,3));return b};
Soc=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,_.lh)("0",6-c.length)+c);c=_.x(a,_.Roc,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);if(c=c.Ce())a.width=c;b.backgroundImageFile=a}}return b};
Toc=function(a){var b={};null!=a.getTitle()&&(b.title=a.getTitle());null!=a.getState()&&(a=_.Xmc[a.getState()])&&(b.state=a);return b};
Uoc=function(a){_.kg("drive.DebugUtil.printFindById",function(c){a.gN(c).then(function(d){window.console.log(JSON.stringify(d))})});_.kg("drive.DebugUtil.getLogs",function(){return _.jjc(a.Be())});_.kg("drive.DebugUtil.printLogs",function(){window.console.log(_.jjc(a.Be()))});_.kg("drive.DebugUtil.printRequestHistory",function(){a.SR().then(function(c){c.forEach(function(d){window.console.log(_.y(d,1));window.console.log(_.y(d,2))})})});_.kg("drive.DebugUtil.getState",function(){return a.getState()});
var b=a.Ka();b&&_.Q(b,1,!1)&&(_.kg("drive.DebugUtil.getContext",function(){return a.getContext()}),_.kg("drive.DebugUtil.setOffline",function(c){return void a.Il(c)}))};Xoc=function(a,b){b.info("drive.ds.sync.api.Dump","Requesting dump stats.");b=new _.Qf;_.Rf(b,305);_.Sf(b,!0);_.u(b,3,2);var c=new _.nD;_.F(c,1,b);Voc(c,[7]);a=a.then(function(d){return d.Oe(c)}).then(Woc);return _.fi(a)};
Woc=function(a){a=_.yb(a,_.Vo,3);var b=new Yoc;a.forEach(function(c){var d=c.getKey();"corpusSize"===(d&&_.y(d,2))&&(c=_.qh(c.Wa()),_.u(b,3,c))});return"number"===typeof _.y(b,3)?b:null};$oc=function(a,b){var c=Zoc(a.Yl,b.qc());if(c){var d=c.getItem(),e=d.zw();if(e){var f=e.WR(),h=_.ya(f,function(k){return k.getId()===_.y(b,2)});_.kic(e,f);h||(f=_.yb(e,_.vk,3),_.ya(f,function(k){return k.getId()===_.y(b,2)}),_.lic(e,f));_.jic(e,(_.y(e,1)||1)-1);a.$k([d],c.V)}}};
bpc=function(a,b,c){if(b=Zoc(a.Yl,b.qc())){var d=b.getItem(),e=d.zw();if(e){if(1===c.getType()||2===c.getType()){var f=_.yb(e,_.vk,3);f.push(c);_.Ka(f,apc);_.lic(e,f)}else f=e.WR(),f.push(c),_.Ka(f,apc),_.kic(e,f);_.jic(e,(_.y(e,1)||0)+1);a.$k([d],b.V)}}};dpc=function(a){return a.map(function(b){var c=new _.mxb;var d=b.serviceName?cpc.get(b.serviceName):void 0;c=_.u(c,3,d);return _.u(c,2,Number(b.bytesUsed))})};
fpc=function(a){return(a.quotaBytesByService||[]).reduce(function(b,c){return c.serviceName&&epc.has(c.serviceName)?b+Number(c.bytesUsed):b},0)};
jpc=function(a){var b=a.exportJob,c=b.status;c=c?gpc.get(c)||0:0;var d=Number(a.percentDone),e=b.items?b.items.length:0;a=a.numFetchedFiles||0;var f=0,h=0,k=(b.archives||[]).map(function(l){f+=Number(l.sizeOfContents)||0;h+=Number(l.compressedSize)||0;return l.storagePath});b=(b.failedItemInfos||[]).map(function(l){var p=_.cG((new _.Ik).Nb(l.docId).setTitle(l.title),l.mediaType);p=(new _.hpc).setItem(p);p=_.u(p,3,l.relativePath);return _.u(p,4,l.cause)});return new ipc(c,d,k,f,h,e,a,b)};
ppc=function(a){var b=kpc(new UK,lpc(a)),c=a.result;a=a.processedFileCount;if(c){var d=c.status;(d=d&&mpc[d])&&b.Dc(d);c.sourceResults&&npc(b,c.sourceResults.map(function(e){return opc(e)}));c.validationToken&&_.u(b,4,c.validationToken)}void 0!==a&&_.u(b,2,a);return b};opc=function(a){var b=qpc(rpc(new _.spc,a.sourceId),a.fileCount);a.unmovableFileReasons&&tpc(b,a.unmovableFileReasons.map(function(c){var d=new _.upc;d=_.u(d,1,c.unmovableReason);return _.u(d,2,c.count)}));return b};
wpc=function(a){var b={},c=a.getKey();b.key=c&&_.y(c,2);b.value=a.Wa();(a=c&&_.Wo(c))&&(b.namespace=vpc[a]);return b};xpc=function(a){for(var b=[],c=0;c<a.length;c++)b.push(vpc[a[c]]);return b};ypc=function(a){return"kind,defaultAppIds,items("+a+")"};zpc=function(a,b){var c;return(null===(c=_.IJ(b))||void 0===c?0:_.Q(c,16,!1))?a+",individualQuotaBytesTotal,individualQuotaBytesUsedAggregate":a};
Apc=function(){var a=!(!_.aa.IDBObjectStore||!_.aa.IDBObjectStore.prototype.getAll);return!!(_.aa.indexedDB||_.aa.mozIndexedDB||_.aa.webkitIndexedDB||_.aa.moz_indexedDB)&&a};
Epc=function(a,b){var c,d,e;b=b.clone();if((null===(c=_.IJ(b))||void 0===c?0:_.Q(c,18,!1))||(null===(d=_.IJ(b))||void 0===d?0:_.Q(d,17,!1)))null===(e=_.IJ(b))||void 0===e?void 0:_.u(e,15,!0);_.u(b,75,1<_.aa.devicePixelRatio);var f=b;var h=_.Q(f,61,!1),k=_.IJ(f),l=!!k&&_.Q(k,10,!1);if(_.KI(_.eI(f))||!h&&!l)_.u(f,61,!1),_.rj(f,66),k&&_.u(k,10,!1),f=!1;else{if(h){_.aa.SharedWorker||(h=!1);var p=_.x(f,joc,66);p&&_.y(p,1)||(h=!1);_.XJ(f)&&!_.Q(f,52,!1)&&(h=!1)}h?k&&_.u(k,10,!1):(_.u(f,61,!1),_.rj(f,66));
f=h||l}if(f)return b=new VK(a,b,_.Q(b,61,!1)?3:5),new Bpc(b);f=_.KI(_.eI(b))?2:1;a=new XK(a,b,f,void 0,void 0,void 0);return _.KI(_.eI(b))?new Cpc(a):new Dpc(a)};Gpc=function(a){return _.Ye(a).dh(_.Q(a.get(_.Mo),19,!1)?Fpc:_.zVa)};Hpc=function(a,b){a.push(b>>>0&255);a.push(b>>>8&255);a.push(b>>>16&255);a.push(b>>>24&255)};Ipc=function(a,b){return _.sj(a,1,b)};LK=function(a){return _.y(a,11)};Jpc=[1];Kpc=function(a){_.G.call(this,a,-1,Jpc)};_.J(Kpc,_.G);
Kpc.prototype.zN=function(){return _.yb(this,_.vk,1)};Kpc.prototype.Zha=function(a){_.yj(this,1,a,_.vk,void 0)};var Lpc=function(a){var b=new Kpc;return _.sj(b,1,a)},Mpc=function(a,b){return _.F(a,1,b)},Npc=function(a,b){_.sj(a,2,b)},Opc=function(a,b){_.F(a,6,b)},Ppc=function(a,b){_.F(a,7,b)},Qpc=function(a,b){return _.wj(a,3,_.zk,b)},Rpc=function(a){_.G.call(this,a)};_.J(Rpc,_.G);var Spc=function(a){_.G.call(this,a)};_.J(Spc,_.G);var Tpc=function(a){_.G.call(this,a)};_.J(Tpc,_.G);
var Upc=function(a){_.G.call(this,a)};_.J(Upc,_.G);var Vpc=function(a){_.G.call(this,a)};_.J(Vpc,_.G);var Wpc=function(a){_.G.call(this,a)};_.J(Wpc,_.G);var Xpc=function(a){_.G.call(this,a)};_.J(Xpc,_.G);var Ypc=function(a){_.G.call(this,a)};_.J(Ypc,_.G);var Zpc=function(a){_.G.call(this,a)};_.J(Zpc,_.G);var $pc=function(a){_.G.call(this,a)};_.J($pc,_.G);var aqc=function(a){_.G.call(this,a)};_.J(aqc,_.G);var bqc=function(a){_.G.call(this,a)};_.J(bqc,_.G);var cqc=function(a){_.G.call(this,a)};
_.J(cqc,_.G);var dqc=function(a){_.G.call(this,a)};_.J(dqc,_.G);var eqc=function(a,b){_.sj(a,1,b)},fqc=function(a,b){return _.u(a,2,b)},gqc=function(a,b){return _.F(a,3,b)},hqc=function(a,b){return _.u(a,4,b)},iqc=function(a){_.G.call(this,a)};_.J(iqc,_.G);var jqc=function(a,b){_.sj(a,1,b)},kqc=function(a,b){return _.F(a,2,b)},lqc=function(a){_.G.call(this,a)};_.J(lqc,_.G);
var mqc=function(a,b){_.sj(a,1,b)},nqc=function(a,b){return _.F(a,4,b)},oqc=function(a,b){_.F(a,5,b)},pqc=function(a,b){_.sj(a,2,b)},qqc=function(a,b){_.u(a,3,b)},rqc=function(a,b){_.sj(a,4,b)},sqc=function(a,b){return _.F(a,5,b)},tqc=function(a){_.G.call(this,a)};_.J(tqc,_.G);var uqc=function(a,b){_.sj(a,1,b)},vqc=function(a,b){return _.F(a,2,b)},wqc=function(a){_.G.call(this,a)};_.J(wqc,_.G);
var xqc=function(a,b){_.sj(a,2,b)},yqc=function(a){var b=new _.qoa;return _.sj(b,3,a)},zqc=[1,2],Aqc=function(a){_.G.call(this,a)};_.J(Aqc,_.G);Aqc.prototype.Mf=function(a){return _.wj(this,1,zqc,a)};var Bqc=[1],Cqc=function(a){_.G.call(this,a,-1,Bqc)};_.J(Cqc,_.G);Cqc.prototype.Yq=function(){return _.y(this,2)};var Dqc=function(a,b){_.sj(a,1,b)},Eqc=function(a,b){return _.u(a,2,b)},Fqc=function(a,b){return _.F(a,3,b)},Gqc=function(a){_.G.call(this,a)};_.J(Gqc,_.G);
var Hqc=[2],Iqc=function(a){_.G.call(this,a,-1,Hqc)};_.J(Iqc,_.G);var Jqc=function(a,b){_.sj(a,2,b)},Kqc=function(a,b){return _.F(a,3,b)},Lqc=[1],Mqc=function(a){_.G.call(this,a)};_.J(Mqc,_.G);Mqc.prototype.Mf=function(a){return _.wj(this,1,Lqc,a)};var Nqc=function(a,b){_.sj(a,1,b)},Oqc=function(a,b){return _.sj(a,2,b)},Pqc=function(a){_.G.call(this,a)};_.J(Pqc,_.G);var Qqc=function(a,b){_.sj(a,1,b)},Rqc=function(a,b){return _.F(a,2,b)},Sqc=function(a){_.G.call(this,a)};_.J(Sqc,_.G);
var Tqc=[1,2,3,4],Uqc=[1],Vqc=[1,2],Wqc=[1],Xqc=[1],Yqc=[1,2],Zqc=[1],$qc=function(a,b){return _.F(a,1,b)},arc=function(a,b){return _.u(a,2,b)},brc=function(a,b){return _.u(a,3,b)},crc=function(a,b){return _.u(a,4,b)},drc=function(a,b){return _.u(a,5,b)},erc=function(a,b){return _.u(a,6,b)},frc=function(a){_.G.call(this,a)};_.J(frc,_.G);Mnc=function(a,b){_.sj(a,8,b)};Lnc=function(a,b){return _.F(a,73,b)};Nnc=function(a,b){_.sj(a,107,b)};_.MK=function(a){return _.x(a,frc,109)};
Onc=function(a,b){_.F(a,109,b)};grc=function(a){_.G.call(this,a)};_.J(grc,_.G);var hrc=function(a){_.G.call(this,a)};_.J(hrc,_.G);var irc=function(a){var b=new _.Qj;_.Yj(b,a,1);_.Yj(b,a,2);_.Tj(a,b);return _.Sj(b)},jrc=function(a){_.G.call(this,a)};_.J(jrc,_.G);var joc=function(a){_.G.call(this,a)};_.J(joc,_.G);var krc=[11],lrc=function(a){_.G.call(this,a,-1,krc)};_.J(lrc,_.G);var YK=function(a){_.G.call(this,a)};_.J(YK,_.G);YK.prototype.getKey=function(){return _.y(this,2)};
YK.prototype.wt=function(){return _.lj(this,2)};ZK=function(a){return _.z(a,4,"en")};_.$K=function(a){return _.x(a,lrc,34,1)};aL=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};_.mrc=function(a,b){return _.u(a,2,b)};_.nrc=function(a,b){return _.u(a,3,b)};_.orc=function(a,b){return _.u(a,1,b)};_.prc=function(a,b){return _.u(a,2,b)};_.qrc=function(a,b){return _.sj(a,5,b)};_.rrc=function(a,b){return _.u(a,6,b)};
_.src=function(a,b){return _.u(a,7,b)};_.trc=function(a,b){return _.u(a,8,b)};_.urc=function(a,b){return _.u(a,10,b)};_.vrc=function(a,b){return _.u(a,15,b)};wrc=[2];_.xrc=function(a){_.G.call(this,a,-1,wrc)};_.J(_.xrc,_.G);_.xrc.prototype.li=function(){return _.y(this,1)};_.yrc=function(a,b){return _.F(a,1,b)};zrc=function(a,b){return _.u(a,2,b)};Arc=function(a,b){return _.u(a,3,b)};Brc=function(a,b){_.sj(a,4,b)};_.Crc=function(a,b){_.F(a,8,b)};_.Drc=function(a,b){_.F(a,9,b)};
Erc=function(a){_.G.call(this,a)};_.J(Erc,_.G);Erc.prototype.Wa=function(){return _.pj(this,1)};Erc.prototype.Hb=function(a){return _.wb(this,1,a,0)};Voc=function(a,b){_.qj(a,3,b)};Frc=function(a,b){return _.u(a,5,b)};_.Roc=function(a){_.G.call(this,a)};_.J(_.Roc,_.G);_.Roc.prototype.getId=function(){return _.y(this,1)};_.Roc.prototype.Nb=function(a){return _.u(this,1,a)};_.Roc.prototype.Ce=function(){return _.y(this,4)};_.Roc.prototype.mh=function(a){return _.u(this,4,a)};
_.tK=function(a){_.G.call(this,a)};_.J(_.tK,_.G);_.tK.prototype.getTitle=function(){return _.y(this,1)};_.tK.prototype.setTitle=function(a){return _.u(this,1,a)};_.tK.prototype.re=function(){return _.x(this,_.Qf,2)};
var Grc=function(a,b){return _.qj(a,9,b)},Hrc=function(a,b){return _.qj(a,10,b)},Irc=function(a,b){return _.u(a,36,b)},Jrc=function(a,b){return _.sj(a,38,b)},Krc=function(a,b){return _.u(a,2,b)},Lrc=function(a,b){return _.F(a,3,b)},Mrc=function(){var a=new _.pI;return _.u(a,5,!0)},Nrc=function(a){_.G.call(this,a)};_.J(Nrc,_.G);var Orc=function(a){_.G.call(this,a)};_.J(Orc,_.G);var Prc=function(a){_.G.call(this,a)};_.J(Prc,_.G);var Qrc=function(a){_.G.call(this,a)};_.J(Qrc,_.G);
var Rrc=function(a){_.G.call(this,a)};_.J(Rrc,_.G);var Src=function(a){_.G.call(this,a)};_.J(Src,_.G);Src.prototype.Ly=function(){return _.N(this,1)};Src.prototype.Vo=function(){return _.y(this,5)};Src.prototype.Tm=function(){return _.y(this,6)};Src.prototype.ew=function(a){return _.u(this,6,a)};var Trc=function(a,b){return _.u(a,1,b)},Urc=function(a,b){return _.u(a,3,b)},Vrc=function(a,b){return _.u(a,4,b)},Wrc=function(a,b){_.u(a,7,b)},Xrc=function(a){_.G.call(this,a)};_.J(Xrc,_.G);
Xrc.prototype.Ly=function(){return _.N(this,2)};var Yrc=function(a,b){_.u(a,1,b)},Zrc=function(a){_.G.call(this,a)};_.J(Zrc,_.G);Zrc.prototype.Tm=function(){return _.y(this,3)};Zrc.prototype.ew=function(a){return _.u(this,3,a)};Zrc.prototype.Vo=function(){return _.y(this,4)};var $rc=function(a){_.G.call(this,a)};_.J($rc,_.G);var asc=function(a){_.G.call(this,a)};_.J(asc,_.G);
var bsc=function(a,b){return _.u(a,1,b)},csc=function(a,b){return _.u(a,2,b)},dsc=function(a,b){_.u(a,3,b)},esc=[1,3,5],fsc=function(a){_.G.call(this,a,-1,esc)};_.J(fsc,_.G);fsc.prototype.xD=function(){return _.se(this,1)};fsc.prototype.Ly=function(){return _.N(this,2)};fsc.prototype.Vo=function(){return _.y(this,7)};gsc=function(a,b){_.u(a,2,b)};hsc=function(a,b){_.uj(a,5,b,void 0)};isc=function(a,b){_.u(a,6,b)};jsc=function(a,b){_.u(a,7,b)};ksc=function(a,b,c){_.$J(a,b,c,"warning")};
_.lsc=function(a,b){_.F(a,2,b)};msc=function(a){return[].concat(_.fc(a.O))};nsc=function(a){return a.H.concat([].concat(_.fc(a.O)))};osc=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(_.fc(c))};bL=function(a){var b=_.hK(a).jd();b||(b=new _.Vic,a=_.hK(a),_.F(a,1,b));return b};psc=function(a){var b=_.x(_.hK(a),fsc,3);b||(b=new fsc,a=_.hK(a),_.F(a,3,b));return b};
cL=function(a){var b=_.x(_.hK(a),Src,16);b||(b=new Src,a=_.hK(a),_.F(a,16,b));return b};qsc=function(a){var b=_.x(_.hK(a),Prc,7);b||(b=new Prc,a=_.hK(a),_.F(a,7,b));return b};rsc=function(a){var b=_.x(_.hK(a),Rrc,12);b||(b=new Rrc,a=_.hK(a),_.F(a,12,b));return b};ssc=function(a){var b=_.x(_.hK(a),Xrc,17);b||(b=new Xrc,a=_.hK(a),_.F(a,17,b));return b};tsc=function(a){var b=_.x(_.hK(a),asc,21);b||(b=new asc,a=_.hK(a),_.F(a,21,b));return b};
usc=function(a){if(a instanceof _.QH)return 2;if(a instanceof _.aG)return 10;if(a instanceof _.Df)return _.kJ(a)?3:_.lJ(a)?7:_.mJ(a)?8:1;if(a instanceof _.WF)return 9;if(a instanceof _.iG)return 11;if(a instanceof _.tJ)return 15;if(a instanceof _.OH)return 6;if(a instanceof _.oJ){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 _.nD)return 4;if(a instanceof _.dA)return 12;if(a instanceof _.bG)return 13}return 0};
vsc=function(a){var b=null;a instanceof _.dI||"undefined"!=typeof _.jK&&a instanceof _.jK||"undefined"!=typeof _.kK&&a instanceof _.kK?b=a.Ve()||0:"undefined"!=typeof _.mK&&a instanceof _.mK||"undefined"!=typeof _.nK&&a instanceof _.nK||"undefined"!=typeof _.oK&&a instanceof _.oK||"undefined"!=typeof _.pK&&a instanceof _.pK||"undefined"!=typeof _.qK&&a instanceof _.qK?b=a.Ne:"undefined"!=typeof _.lK&&a instanceof _.lK&&(b=a.Ve());return b||0};
dL=function(a,b,c){return a.V&&_.mkc(a)?(a=_.ikc(a.V,b,0),c&&_.ehc(a,c),a):null};wsc=function(a){a.V&&_.mkc(a)&&(a=a.V,a.H.aQ()&&a.H.G_())};xsc=function(a,b){return _.F(a,1,b)};ysc=function(a){var b=new _.fJ;return _.u(b,1,a)};zsc=function(a,b){return _.F(a,2,b)};Asc=function(a,b){a.ha=b};Bsc=[2];Csc=function(a){_.G.call(this,a,-1,Bsc)};_.J(Csc,_.G);_.g=Csc.prototype;_.g.Cb=function(){return _.y(this,1)};_.g.Dc=function(a){return _.u(this,1,a)};_.g.zN=function(){return _.yb(this,_.vk,2)};
_.g.Zha=function(a){_.yj(this,2,a,_.vk,void 0)};_.g.Zj=function(){return _.y(this,3)};var Dsc=function(a,b){return _.sj(a,2,b)},Esc=[2],Fsc=function(a){_.G.call(this,a,-1,Esc)};_.J(Fsc,_.G);Fsc.prototype.Cb=function(){return _.y(this,1)};Fsc.prototype.Dc=function(a){return _.u(this,1,a)};Fsc.prototype.Zj=function(){return _.y(this,3)};
var Gsc=function(a){return a.H?a.H.promise:a.O()?(a.H=new _.en,a.H.promise):null},Hsc=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.Xv.config.timestamp)&&b.push(e)}a=_.m(a.buckets);for(d=a.next();!d.done;d=a.next()){c=[];d=_.m(d.value.aj);for(e=d.next();!e.done;e=d.next())(e=e.value.Xv.config.timestamp)&&c.push(e);_.Ca(b,c)}return b},Isc=function(a,b){return Dsc(new Csc,(b.items||
[]).map(function(c){return _.Cmc(a,c)}))},Jsc=function(a,b){return erc(drc(crc(_.lic(_.jic(new _.Boa,b.entryCount),(b.selectPermissions||[]).map(function(c){return _.Cmc(a,c)})),b.memberCount),b.userEntryCount),b.groupEntryCount)},Ksc=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},Lsc=function(a,b){if(!(a instanceof b.constructor))throw Error("$");var c=a.Os();
b=b.Os();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++)_.dba(c[e],b[e])||(d[e]=b[e]);return _.hba(a.constructor,d)},Msc=[2],Nsc=function(a){_.G.call(this,a,-1,Msc)};_.J(Nsc,_.G);Nsc.prototype.Cb=function(){return _.y(this,1)};Nsc.prototype.Dc=function(a){return _.u(this,1,a)};Nsc.prototype.HXa=function(){return _.yb(this,_.XEa,2)};Nsc.prototype.Zj=function(){return _.y(this,3)};Osc=[2,6];
_.kK=function(a){_.G.call(this,a,-1,Osc)};_.J(_.kK,_.G);_.g=_.kK.prototype;_.g.Cb=function(){return _.y(this,1)};_.g.Dc=function(a){return _.u(this,1,a)};_.g.Bd=function(){return _.yb(this,_.Ik,2)};_.g.fB=function(a){return _.sj(this,2,a)};_.g.ah=function(a,b){return _.yj(this,2,a,_.Ik,b)};_.g.Zj=function(){return _.y(this,3)};_.g.Ql=function(){return _.Q(this,4,!0)};var Psc=function(a,b){return _.sj(a,6,b)};_.kK.prototype.Uf=function(){return _.y(this,10)};
_.kK.prototype.$P=function(a){return _.u(this,10,a)};_.kK.prototype.Ve=function(){return _.y(this,9)};_.kK.prototype.mi=function(a){return _.u(this,9,a)};
var Qsc={SUCCESS:1,s$b:2,l1b:3,MXb:4,F$b:5,X4b:6,L4b:7,xYb:8,p9b:9,E9b:10,r$b:11,c_b:12,HZb:13,m2b:14,E0b:15,LZb:16,KZb:17,QZb:18,NZb:19,OZb:20,W9b:21,B$b:22,p5b:23,u4b:24,pYb:25,PERMISSION_DENIED:26,J3b:27,DYb:28,CYb:29,INTERRUPTED:30,P5b:31,j6b:32,r_b:33,x_b:34,w9b:35,E_b:36,F0b:37,w_b:38,K4b:39,iZb:40,K5b:41,l6b:42,n9b:43,VYb:44,hZb:45,C0b:46,E3b:47,I4b:48,g5b:49,L5b:50,g9b:51,IZb:52,o9b:53,m9b:54,aZb:55,YYb:56,P_b:57,c4b:58,M5b:59,a3b:60,A7b:61,o8b:62,V8b:63,C2b:64,w4b:65,I$b:66,G_b:67,G0b:68,
q$b:69,H2b:70,BYb:71,QYb:72,w8b:73,W8b:74,S8b:75,Q8b:76,k8b:190,P8b:191,x8b:192,D8b:126,z8b:128,A8b:129,B8b:130,C8b:131,E8b:132,F8b:133,J7b:127,G7b:134,H7b:135,L7b:136,M7b:137,N7b:138,I7b:194,K7b:195,O7b:196,F7b:197,n8b:189,z7b:139,B7b:140,P7b:141,Q7b:142,b8b:143,e8b:144,f8b:145,g8b:146,h8b:147,i8b:148,j8b:149,m8b:150,s8b:151,u8b:152,v8b:153,y8b:154,G8b:155,I8b:156,J8b:157,K8b:158,L8b:159,M8b:160,N8b:161,R8b:162,U8b:163,X8b:164,C7b:165,D7b:166,E7b:167,x7b:168,y7b:169,T7b:170,R7b:171,S7b:172,U7b:173,
V7b:174,W7b:175,X7b:176,Y7b:177,Z7b:178,$7b:179,a8b:180,c8b:181,d8b:182,l8b:106,t8b:183,H8b:184,O8b:185,p8b:186,q8b:187,r8b:188,T8b:244,J5b:77,v$b:78,A$b:79,Q3b:80,r2b:81,t2b:82,O_b:83,B0b:84,K3b:85,P9b:86,v_b:87,J2b:88,I2b:89,$8b:90,Y8b:91,Z8b:92,w$b:93,xZb:94,wZb:95,tZb:96,vZb:97,uZb:98,H$b:99,j7b:100,TZb:101,MZb:102,RZb:103,PZb:104,SZb:105,H0b:107,B9b:108,d7b:109,k$b:110,K0b:111,J0b:112,f3b:113,g3b:114,p6b:115,bZb:116,n3b:117,$_b:118,x$b:119,Q4b:120,R4b:121,n2b:193,JZb:122,l_b:123,q2b:124,p4b:125,
K2b:198,U5b:199,z2b:200,pXb:201,F2b:202,D2b:203,GYb:204,gac:205,v3b:206,qZb:207,N4b:208,k6b:209,f7b:210,QXb:211,d3b:212,k3b:213,r9b:214,q9b:215,B2b:216,l2b:217,A2b:218,I_b:219,F9b:220,J_b:221,b3b:222,y9b:223,R$b:224,A4b:225,x9b:226,n_b:227,t3b:228,N_b:229,lZb:230,N9b:231,r4b:232,FILE_TOO_LARGE:233,G2b:234,H_b:235,y0b:236,f6b:237,x4b:238,aXb:239,mZb:240,E4b:241,q7b:242,t_b:243,nXb:245,u2b:246,i5b:247,s2b:248,P3b:249,v4b:250,D0b:251,s1b:252,e3b:253,ZYb:254,I0b:255,G$b:256,e1b:257,Z3b:258,x6b:259,T5b:260,
R2b:261,YZb:262,u_b:263,oYb:264,I3b:265,E$b:266,eXb:267,eYb:268,dYb:269,J4b:270,ZWb:271,$Wb:272,rYb:273,pZb:274,gYb:275,fYb:276,u3b:277,L0b:278,w2b:279,q6b:280,J9b:281,$3b:282,w3b:283,x3b:284,kZb:285,RXb:286,V4b:287,AYb:288,EYb:289,FYb:290},Rsc={y$b:0,a4b:1,r5b:2,e5b:3,M2b:4,NXb:5,b4b:6,f5b:7,T1b:8,nYb:9,c5b:10},Ssc=function(){this.map={};this.status=6;this.Ne=null};_.g=Ssc.prototype;_.g.Cb=function(){return this.status};_.g.Dc=function(a){this.status=a};_.g.Ve=function(){return this.Ne};
_.g.mi=function(a){this.Ne=a};_.g.lt=function(){return this.map};var Tsc=function(a,b){a.map=b};Ssc.prototype.Hc=function(a){var b=[];_.Ta(this.map,function(c,d){b.push({k:d,v:c?a(c):null})});return JSON.stringify({s:this.status,d:this.Ne,me:b})};var Usc=function(a,b,c){c=JSON.parse(c);a.Dc(c.s);a.mi(c.d);var d={};c.me.forEach(function(e){d[e.k]=e.v?b(e.v):null});a.map=d},Vsc=function(){Ssc.apply(this,arguments)};_.J(Vsc,Ssc);_.jK=function(){Ssc.apply(this,arguments)};_.J(_.jK,Ssc);
var eL=function(a){_.yi.call(this);var b=this;this.ta=a;this.active=!1;_.ff(this,function(){b.active=!1})};_.J(eL,_.yi);eL.prototype.Ni=function(){return String(_.Fa(this))};eL.prototype.activate=function(){this.active||(this.log("livelist "+this.Ni()+" activated."),this.active=!0,this.VP())};eL.prototype.isActive=function(){return this.active};eL.prototype.log=function(a,b){this.ta.log(this.logName,a,void 0===b?"info":b)};
_.fL=function(a,b,c,d,e,f){eL.call(this,c);var h=this;this.O=a;this.ma=b;this.request=e;this.wa=f;this.H=[];this.items=[];this.status=6;this.W=_.Hec(new _.bI,[1]);this.V=!0;this.Ne=0;this.Ba=d;this.limit=e.vi();_.ff(this,function(){h.H=[]});_.F7a++};_.J(_.fL,eL);_.g=_.fL.prototype;_.g.activate=function(){eL.prototype.activate.call(this);_.qa(this.items)&&6===this.Cb()&&this.nk()||Wsc(this)};_.g.VP=function(){};_.g.jd=function(){return this.request};_.g.vi=function(){return this.limit};_.g.Cb=function(){return this.status};
_.g.ws=function(){return this.W};_.g.nk=function(){return this.V};_.g.ms=function(){var a=_.Jy(_.D7a(),this.H,this.items),b=(new Nsc).Dc(this.Cb());a=_.sj(b,2,a);this.H=this.items;return a};_.g.Hu=function(a){this.isActive()&&(this.limit+=a||50,this.log("incrementMaxCount with "+a+" called on Livelist "+(this.Ni()+". New limit is ")+(this.limit+".")),this.Ba(this.Ni(),this.limit))};
var Xsc=function(a,b){return a.Cb()!==b.Cb()||aL(_.D7a(),a.items,b.Bd())},Ysc=function(a,b){a.items=b.Bd();a.status=b.Cb();_.lI(a.wa)&&(a.W=Anc(a.status,a.items));a.V=b.Ql();a.Ne=b.Ve()};_.fL.prototype.JB=function(a){this.dispatchEvent(new _.Hc(new _.Gc("Error occurred running a query after "+a.retryCount+" retries.",a.error)))};_.fL.prototype.WW=function(){this.dispatchEvent(new _.ni(_.xFa))};
_.fL.prototype.Pu=function(a,b){var c=this;b+="\n\n\nQuery:\n"+gL(this.O,this.jd());return this.ma.then(function(d){return d.sPb(a,b,c.jd(),c.vi(),c.items)})};
var Wsc=function(a){if(a.isActive()){var b=a.ws().H();a.log("Livelist "+a.Ni()+" returning "+a.items.length+". Status: "+(_.fb(Qsc)[a.Cb()]+". ")+(6===a.Cb()?"MissingTypes: "+b.join(",")+". ":"")+("Datasource: "+_.fb(Rsc)[a.Ne]+". Query: ")+(gL(a.O,a.request)+" ")+Bnc(a.items));Zsc(a,a.items,a.request);a.dispatchEvent(new _.ni(_.bd,a))}},Zsc=function(a,b,c){if(_.kJ(c))c="quick access";else if(_.lJ(c))c="people predict";else if(_.mJ(c))c="drive priority";else return;b=b.map(function(d){return d.getId()}).join(", ");
a.log("Livelist "+a.Ni()+" returning "+a.items.length+" for "+(c+": "+b))};_.fL.prototype.refresh=function(){};_.fL.prototype.Ya=function(){_.G7a++;eL.prototype.Ya.call(this)};var Fnc=[1004,1005,1002,1003],Tnc=[1002,1003,1005],$sc=[1,2],atc=function(a){_.G.call(this,a,-1,$sc)};_.J(atc,_.G);
var btc=function(a,b,c,d,e,f){eL.call(this,c);var h=this;this.O=a;this.W=b;this.ha=d;this.ka=e;this.request=f;this.logName="drive.ds.sync.IdViewCacheLiveMap";this.H={};this.items={};this.status=6;this.V=_.Hec(new _.bI,[1]);this.log("Creating find by ids live map: "+this.request.V().join(", "));_.ff(this,function(){h.H={}});_.gkb++};_.J(btc,eL);_.g=btc.prototype;_.g.VP=function(){_.ab(this.items)&&6===this.status||ctc(this)};_.g.jd=function(){return this.request};
_.g.getData=function(){this.H=this.items;var a=new _.jK;_.lI(this.O)?a.Dc(Vnc(Object.values(this.items))?6:this.status):a.Dc(this.status);a.map=this.items;return a};_.g.ms=function(){var a=Xnc(this.H,this.items),b=new Vsc;b.Dc(this.status);b.map=a;this.H=this.items;return b};_.g.Cb=function(){return this.status};_.g.ws=function(){return this.V};_.g.UT=function(a){dtc(a);var b=this.request;this.request=a;this.ka(this.Ni(),b,a)};
_.g.update=function(a){var b=this;0<=_.oa(this.jd().V(),"root")?this.ha.addCallback(function(c){var d=a.lt()[c];d&&(_.bb(a.map,c),a.map.root=d);etc(b,a)}):etc(this,a)};var etc=function(a,b){if(a.status!==b.Cb()||Ync(a.items,b.lt()))a.status=b.Cb(),a.items=b.lt(),_.lI(a.O)&&(a.V=Anc(a.status,Object.values(a.items))),ctc(a)};btc.prototype.JB=function(a){this.dispatchEvent(new _.Hc(new _.Gc("Error occurred running a find-by-IDs query after "+a.retryCount+" retries.",a.error)))};btc.prototype.WW=function(){this.dispatchEvent(new _.ni(_.xFa))};
var ctc=function(a){a.isActive()&&(a.log("Livelist "+a.Ni()+" returning "+(Object.values(a.items).length+". Status: ")+(_.fb(Qsc)[a.Cb()]+". Query: ")+(gL(a.W,a.request)+" ")+Bnc(Object.values(a.items))),a.dispatchEvent(new _.ni(_.bd,a)))};btc.prototype.Ya=function(){_.hkb++;eL.prototype.Ya.call(this)};_.ftc=function(a){_.G.call(this,a)};_.J(_.ftc,_.G);_.ftc.prototype.Cb=function(){return _.y(this,1)};_.ftc.prototype.Dc=function(a){return _.u(this,1,a)};
_.ftc.prototype.rn=function(){return _.x(this,_.cI,2)};var gtc=function(a){_.ni.call(this,a)};_.J(gtc,_.ni);var htc=[5,7,9],itc=function(a){_.G.call(this,a,-1,htc)};_.J(itc,_.G);_.g=itc.prototype;_.g.getUser=function(){return _.x(this,_.vk,1)};_.g.gB=function(a){_.u(this,2,a)};_.g.setBooleanValue=function(a){return _.u(this,3,a)};_.g.setTextValue=function(a){return _.u(this,4,a)};_.g.Zpa=function(a){return _.qj(this,5,a)};_.g.addTextValues=function(a,b){return _.uj(this,5,a,b)};
_.g.setSelectionValue=function(a){return _.u(this,6,a)};_.g.Vpa=function(a){return _.qj(this,7,a)};_.g.addSelectionValues=function(a,b){return _.uj(this,7,a,b)};_.g.setIntegerValue=function(a){return _.u(this,8,a)};_.g.Mpa=function(a){return _.qj(this,9,a)};_.g.addIntegerValues=function(a,b){return _.uj(this,9,a,b)};var jtc=[7,10,12,16,13,3],hL=function(a){_.G.call(this,a,-1,jtc)};_.J(hL,_.G);var iL=function(a){return _.y(a,4)};_.g=hL.prototype;_.g.gB=function(a){_.u(this,4,a)};
_.g.setBooleanValue=function(a){return _.u(this,5,a)};_.g.obb=function(){return _.y(this,6)};_.g.setTextValue=function(a){return _.u(this,6,a)};_.g.Zpa=function(a){return _.qj(this,7,a)};_.g.addTextValues=function(a,b){return _.uj(this,7,a,b)};_.g.mbb=function(){return _.y(this,8)};_.g.setLongTextValue=function(a){return _.u(this,8,a)};_.g.nbb=function(){return _.y(this,9)};_.g.setSelectionValue=function(a){return _.u(this,9,a)};_.g.pOa=function(){return _.se(this,10)};
_.g.Vpa=function(a){return _.qj(this,10,a)};_.g.addSelectionValues=function(a,b){return _.uj(this,10,a,b)};_.g.lbb=function(){return _.y(this,11)};_.g.setIntegerValue=function(a){return _.u(this,11,a)};_.g.Mpa=function(a){return _.qj(this,12,a)};_.g.addIntegerValues=function(a,b){return _.uj(this,12,a,b)};_.g.pbb=function(){return _.x(this,_.vk,15)};_.g.setUserValue=function(a){return _.F(this,15,a)};_.g.eZa=function(){return _.yb(this,_.vk,16)};var ktc=function(a,b){_.sj(a,16,b)};
hL.prototype.addUserValues=function(a,b){return _.yj(this,16,a,_.vk,b)};hL.prototype.H=function(){return _.y(this,17)};hL.prototype.setDateStringValue=function(a){return _.u(this,17,a)};hL.prototype.V=function(){return _.lj(this,17)};var ltc=function(a,b){_.sj(a,13,b)};hL.prototype.getId=function(){return _.y(this,14)};hL.prototype.Nb=function(a){return _.u(this,14,a)};hL.prototype.getName=function(){return _.y(this,1)};hL.prototype.$c=function(a){return _.u(this,1,a)};mtc=[3];
_.jL=function(a){_.G.call(this,a,-1,mtc)};_.J(_.jL,_.G);_.jL.prototype.getType=function(){return _.y(this,1)};_.jL.prototype.qc=function(){return _.y(this,2)};_.ntc=function(a){_.G.call(this,a)};_.J(_.ntc,_.G);_.ntc.prototype.getFeature=function(){return _.y(this,1)};otc=[1];_.gK=function(a){_.G.call(this,a,-1,otc)};_.J(_.gK,_.G);var RK=function(a){_.G.call(this,a)};_.J(RK,_.G);RK.prototype.getId=function(){return _.y(this,1)};RK.prototype.Nb=function(a){return _.u(this,1,a)};
RK.prototype.re=function(){return _.x(this,_.Qf,3)};ptc=[2,3,8];_.wJ=function(a){_.G.call(this,a,-1,ptc)};_.J(_.wJ,_.G);_.wJ.prototype.getId=function(){return _.y(this,1)};_.wJ.prototype.Nb=function(a){return _.u(this,1,a)};_.wJ.prototype.re=function(){return _.x(this,_.Qf,4)};_.wJ.prototype.uc=function(){return _.y(this,5)};var qtc=function(a){_.G.call(this,a)};_.J(qtc,_.G);var rtc=[1,2,4],stc=function(a){_.G.call(this,a)};_.J(stc,_.G);stc.prototype.yf=function(){return _.z(this,1)};
stc.prototype.kl=function(a){return _.Jj(this,1,a)};stc.prototype.getUrl=function(){return _.z(this,2)};_.ttc=function(a){_.G.call(this,a)};_.J(_.ttc,_.G);_.ttc.prototype.getType=function(){return _.oj(this,1,0)};_.ttc.prototype.getContext=function(){return _.x(this,stc,2)};utc=[1];vtc=[2,4];_.wtc=function(a){_.G.call(this,a,-1,vtc)};_.J(_.wtc,_.G);_.wtc.prototype.getLabel=function(){return _.z(this,1)};_.wtc.prototype.getTitle=function(){return _.z(this,3)};
_.wtc.prototype.setTitle=function(a){return _.Jj(this,3,a)};_.xtc=function(a){_.G.call(this,a,-1,utc)};_.J(_.xtc,_.G);_.ytc=[2,3,4];_.ztc=function(a){_.G.call(this,a)};_.J(_.ztc,_.G);_.ztc.prototype.te=function(){return _.z(this,3)};_.ztc.prototype.Mn=function(a){return _.Jj(this,4,a)};_.Atc=function(a){_.G.call(this,a)};_.J(_.Atc,_.G);_.Btc=function(a){_.G.call(this,a)};_.J(_.Btc,_.G);var Ctc=function(a){_.G.call(this,a)};_.J(Ctc,_.G);Dtc=[3,5];_.kL=[8,9,10,11,12,13,14];
_.Etc=function(a){_.G.call(this,a)};_.J(_.Etc,_.G);_.Ftc=function(a){_.G.call(this,a,-1,Dtc)};_.J(_.Ftc,_.G);_.Ftc.prototype.Cb=function(){return _.oj(this,6,0)};_.Ftc.prototype.Dc=function(a){return _.Lj(this,6,a)};var Gtc=function(a){_.G.call(this,a)};_.J(Gtc,_.G);var Htc=function(a){_.G.call(this,a)};_.J(Htc,_.G);var Itc=function(a){_.G.call(this,a)};_.J(Itc,_.G);var Jtc=[1],Ktc=function(a){_.G.call(this,a,-1,Jtc)};_.J(Ktc,_.G);var Ltc=function(a){_.G.call(this,a)};_.J(Ltc,_.G);
var Mtc=function(a){_.G.call(this,a)};_.J(Mtc,_.G);Ntc=[7];_.Otc=[1,2,3];_.Ptc=function(a){_.G.call(this,a)};_.J(_.Ptc,_.G);_.Qtc=function(a){_.G.call(this,a)};_.J(_.Qtc,_.G);_.Rtc=function(a){_.G.call(this,a)};_.J(_.Rtc,_.G);_.Stc=function(a){_.G.call(this,a,-1,Ntc)};_.J(_.Stc,_.G);var Ttc=function(a){_.G.call(this,a)};_.J(Ttc,_.G);Ttc.prototype.getName=function(){return _.z(this,1)};Ttc.prototype.$c=function(a){return _.Jj(this,1,a)};var Utc=function(a){_.G.call(this,a)};_.J(Utc,_.G);
Utc.prototype.getName=function(){return _.z(this,1)};Utc.prototype.$c=function(a){return _.Jj(this,1,a)};Utc.prototype.getTitle=function(){return _.z(this,2)};Utc.prototype.setTitle=function(a){return _.Jj(this,2,a)};_.Vtc=[1,4];Wtc=function(a){_.G.call(this,a)};_.J(Wtc,_.G);Wtc.prototype.getUser=function(){return _.Gj(this,_.Btc,1,_.Vtc)};Wtc.prototype.jk=function(){return _.x(this,Ttc,3)};Wtc.prototype.Ln=function(a){return _.F(this,3,a)};Wtc.prototype.vH=function(){return _.lj(this,3)};
var Xtc=[8,9,10],Ytc=function(a){_.G.call(this,a)};_.J(Ytc,_.G);Ytc.prototype.getType=function(){return _.oj(this,6,0)};var Ztc=function(a){_.G.call(this,a)};_.J(Ztc,_.G);_.$tc=function(a){_.G.call(this,a)};_.J(_.$tc,_.G);_.g=_.$tc.prototype;_.g.getName=function(){return _.z(this,1)};_.g.$c=function(a){return _.Jj(this,1,a)};_.g.getTitle=function(){return _.z(this,2)};_.g.setTitle=function(a){return _.Jj(this,2,a)};_.g.Oka=function(){return _.Gj(this,Ytc,9,Xtc)};
_.g.OXa=function(){return _.Gj(this,Ztc,10,Xtc)};_.g.mj=function(){return _.Dj(this,5)};_.g.getMimeType=function(){return _.z(this,6)};_.g.cA=function(){return _.x(this,Wtc,7)};var auc=function(a){_.G.call(this,a)};_.J(auc,_.G);var buc=[8,9,10],cuc=function(a){_.G.call(this,a)};_.J(cuc,_.G);_.g=cuc.prototype;_.g.getName=function(){return _.z(this,1)};_.g.$c=function(a){return _.Jj(this,1,a)};_.g.getTitle=function(){return _.z(this,2)};_.g.setTitle=function(a){return _.Jj(this,2,a)};
_.g.Oka=function(){return _.Gj(this,Ytc,9,buc)};_.g.OXa=function(){return _.Gj(this,Ztc,10,buc)};duc=[1,3];_.lL=function(a){_.G.call(this,a)};_.J(_.lL,_.G);_.lL.prototype.Mh=function(){return _.Gj(this,cuc,1,duc)};_.euc=[1,2,3];_.fuc=function(a){_.G.call(this,a)};_.J(_.fuc,_.G);_.guc=function(a){_.G.call(this,a)};_.J(_.guc,_.G);var huc=function(a){_.G.call(this,a)};_.J(huc,_.G);var iuc=function(a){_.G.call(this,a)};_.J(iuc,_.G);juc=[2,3];_.kuc=function(a){_.G.call(this,a,-1,juc)};_.J(_.kuc,_.G);
_.kuc.prototype.getType=function(){return _.oj(this,1,0)};_.luc=function(a){_.G.call(this,a)};_.J(_.luc,_.G);_.luc.prototype.getType=function(){return _.oj(this,1,0)};var muc=function(a){_.G.call(this,a)};_.J(muc,_.G);muc.prototype.getType=function(){return _.oj(this,1,0)};var nuc=function(a){_.G.call(this,a)};_.J(nuc,_.G);_.ouc=function(a){_.G.call(this,a)};_.J(_.ouc,_.G);_.ouc.prototype.H=function(){return _.Q(this,1)};var puc=function(a){_.G.call(this,a)};_.J(puc,_.G);quc=[1,2,4];
_.ruc=function(a){_.G.call(this,a)};_.J(_.ruc,_.G);suc=[1,2];_.tuc=function(a){_.G.call(this,a)};_.J(_.tuc,_.G);_.tuc.prototype.getParent=function(){return _.x(this,_.lL,1)};_.tuc.prototype.Tg=function(a){return _.F(this,1,a)};_.uuc=function(a){_.G.call(this,a,-1,suc)};_.J(_.uuc,_.G);_.vuc=function(a){_.G.call(this,a,-1,quc)};_.J(_.vuc,_.G);_.mL=function(a){_.G.call(this,a)};_.J(_.mL,_.G);_.mL.prototype.getEmail=function(){return _.z(this,1)};_.mL.prototype.getTitle=function(){return _.z(this,2)};
_.mL.prototype.setTitle=function(a){return _.Jj(this,2,a)};_.nL=[2,3,4,5];_.oL=function(a){_.G.call(this,a)};_.J(_.oL,_.G);_.g=_.oL.prototype;_.g.Af=function(){return _.oj(this,1,0)};_.g.getUser=function(){return _.Gj(this,_.Btc,2,_.nL)};_.g.jk=function(){return _.Gj(this,Ttc,4,_.nL)};_.g.Ln=function(a){return _.wj(this,4,_.nL,a)};_.g.vH=function(){return _.mj(this,4,_.nL)};var wuc=function(a){_.G.call(this,a)};_.J(wuc,_.G);xuc=[1,2,3,4];_.yuc=function(a){_.G.call(this,a,-1,xuc)};_.J(_.yuc,_.G);
_.zuc=function(a){_.G.call(this,a)};_.J(_.zuc,_.G);_.Auc=function(a){_.G.call(this,a)};_.J(_.Auc,_.G);_.Buc=function(a){_.G.call(this,a)};_.J(_.Buc,_.G);_.Cuc=function(a){_.G.call(this,a)};_.J(_.Cuc,_.G);_.Cuc.prototype.getType=function(){return _.oj(this,1,0)};Duc=[1];_.Euc=function(a){_.G.call(this,a)};_.J(_.Euc,_.G);_.Euc.prototype.getFeature=function(){return _.oj(this,1,0)};_.Fuc=function(a){_.G.call(this,a,-1,Duc)};_.J(_.Fuc,_.G);var Guc=function(a){_.G.call(this,a)};_.J(Guc,_.G);
var Huc=function(a){_.G.call(this,a)};_.J(Huc,_.G);var Iuc=function(a){_.G.call(this,a)};_.J(Iuc,_.G);Iuc.prototype.getType=function(){return _.oj(this,1,0)};_.pL=[1,2,3,4,5,6,7,8,9,10,11,12,13,18,15,16,19,20,21];_.qL=function(a){_.G.call(this,a)};_.J(_.qL,_.G);_.qL.prototype.ax=function(){return _.Gj(this,Iuc,10,_.pL)};var Juc=function(a){_.G.call(this,a)};_.J(Juc,_.G);Juc.prototype.getType=function(){return _.oj(this,2,0)};Juc.prototype.Hh=function(){return _.z(this,1)};
_.Kuc=function(a){_.G.call(this,a)};_.J(_.Kuc,_.G);var Luc=function(a){_.G.call(this,a)};_.J(Luc,_.G);_.Muc=function(a){_.G.call(this,a)};_.J(_.Muc,_.G);_.Nuc=function(a){_.G.call(this,a)};_.J(_.Nuc,_.G);_.Nuc.prototype.getType=function(){return _.oj(this,1,0)};_.rL=[1,2,3,4,5];_.Ouc=function(a){_.G.call(this,a)};_.J(_.Ouc,_.G);_.Ouc.prototype.getUser=function(){return _.Gj(this,_.Btc,1,_.rL)};_.Puc=function(a){_.G.call(this,a)};_.J(_.Puc,_.G);_.g=_.Puc.prototype;
_.g.getName=function(){return _.z(this,1)};_.g.$c=function(a){return _.Jj(this,1,a)};_.g.getTitle=function(){return _.z(this,2)};_.g.setTitle=function(a){return _.Jj(this,2,a)};_.g.Ma=function(){return _.x(this,_.$tc,3)};_.Quc=function(a){_.G.call(this,a)};_.J(_.Quc,_.G);_.Quc.prototype.getParent=function(){return _.x(this,_.$tc,4)};_.Quc.prototype.Tg=function(a){return _.F(this,4,a)};_.sL=[1,5,3];_.Ruc=function(a){_.G.call(this,a)};_.J(_.Ruc,_.G);
_.Ruc.prototype.Mh=function(){return _.Gj(this,_.$tc,1,_.sL)};Suc=function(a,b){return new _.Edc(_.Fdc.bound(a,b,void 0,void 0))};Tuc=function(){var a=new _.$h,b=_.Rdc().deleteDatabase("GoogleDriveDs");b.onsuccess=function(){a.callback()};b.onerror=function(c){a.Gd(_.VH(c.target,"deleting database GoogleDriveDs"))};b.onblocked=function(){};return a};_.Uuc=function(a){_.G.call(this,a)};_.J(_.Uuc,_.G);_.Uuc.prototype.Hp=function(){return _.y(this,1)};
_.Uuc.prototype.getSize=function(){return _.y(this,2)};_.Uuc.prototype.setSize=function(a){return _.u(this,2,a)};_.Uuc.prototype.getUrl=function(){return _.y(this,3)};_.Vuc=function(a){_.G.call(this,a)};_.J(_.Vuc,_.G);_.Vuc.prototype.getType=function(){return _.y(this,1)};Wuc=[2,3];_.Xuc=function(a){_.G.call(this,a,-1,Wuc)};_.J(_.Xuc,_.G);Yuc=[4,5,6,17,18,24];_.tL=function(a){_.G.call(this,a,-1,Yuc)};_.J(_.tL,_.G);_.tL.prototype.getId=function(){return _.y(this,1)};
_.tL.prototype.Nb=function(a){return _.u(this,1,a)};_.tL.prototype.getName=function(){return _.y(this,2)};_.tL.prototype.$c=function(a){return _.u(this,2,a)};var Zuc=function(a,b){return _.qj(a,4,b)},$uc=function(a,b){return _.qj(a,5,b)};_.tL.prototype.yR=function(){return _.y(this,8)};_.tL.prototype.getType=function(){return _.y(this,23)};var uL=function(a){_.G.call(this,a)};_.J(uL,_.G);uL.prototype.getQuery=function(){return _.x(this,_.Df,1,1)};uL.prototype.Ug=function(a){return _.F(this,1,a)};
uL.prototype.wK=function(){return _.lj(this,1)};uL.prototype.Zn=function(){return _.y(this,4)};var avc=function(a,b){return _.F(a,5,b)},Yoc=function(a){_.G.call(this,a)};_.J(Yoc,_.G);var bvc=[1,2,5,7,9,10,12,14],vL=function(a){_.G.call(this,a,-1,bvc)};_.J(vL,_.G);vL.prototype.Bd=function(){return _.yb(this,_.Ik,1)};var cvc=function(a,b){return _.sj(a,1,b)};vL.prototype.ah=function(a,b){return _.yj(this,1,a,_.Ik,b)};vL.prototype.zN=function(){return _.yb(this,_.vk,2)};
vL.prototype.Zha=function(a){_.yj(this,2,a,_.vk,void 0)};var dvc=function(a,b){return _.u(a,3,b)};vL.prototype.Bu=function(){return _.y(this,4)};vL.prototype.kz=function(a){return _.u(this,4,a)};var evc=function(a,b){return _.sj(a,5,b)};vL.prototype.Jv=function(){return _.N(this,6)};var fvc=function(a,b){return _.u(a,6,b)};vL.prototype.Ef=function(){return _.x(this,_.UB,8)};var gvc=function(a,b){return _.qj(a,12,b)};vL.prototype.Vo=function(){return _.oj(this,13,0)};
var hvc=function(a,b){return _.u(a,13,b)},ivc={sYb:0,qYb:1,m3b:2,z9b:3,C9b:4,W4b:5},jvc=[1],SK=[1,2,3,4,5,6,7],soc=function(a){_.G.call(this,a)};_.J(soc,_.G);var toc=function(a){_.G.call(this,a,-1,jvc)};_.J(toc,_.G);var QK=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18],qoc=function(a){_.G.call(this,a)};_.J(qoc,_.G);var xoc=[1,2],woc=function(a){_.G.call(this,a)};_.J(woc,_.G);var Aoc=[1,2,3],zoc=function(a){_.G.call(this,a)};_.J(zoc,_.G);var kvc=[3],wL=function(a){_.G.call(this,a,-1,kvc)};_.J(wL,_.G);
wL.prototype.tq=function(){return _.y(this,1)};var lvc=function(a,b){return _.u(a,1,b)};wL.prototype.getTitle=function(){return _.y(this,2)};wL.prototype.setTitle=function(a){return _.u(this,2,a)};wL.prototype.Bd=function(){return _.yb(this,_.Ik,3)};var mvc=function(a,b){return _.sj(a,3,b)};wL.prototype.ah=function(a,b){return _.yj(this,3,a,_.Ik,b)};wL.prototype.V=function(){return _.y(this,4)};var nvc=function(a,b){return _.u(a,4,b)};wL.prototype.H=function(){return _.x(this,_.yk,5)};
var ovc=function(a,b){return _.F(a,5,b)},pvc=[2],xL=function(a){_.G.call(this,a,-1,pvc)};_.J(xL,_.G);xL.prototype.Cb=function(){return _.y(this,1)};xL.prototype.Dc=function(a){return _.u(this,1,a)};xL.prototype.Yk=function(){return _.yb(this,wL,2)};var qvc=function(a,b){return _.sj(a,2,b)};xL.prototype.Uf=function(){return _.y(this,4)};rvc=function(a,b){return _.u(a,4,b)};_.lK=function(a){_.G.call(this,a)};_.J(_.lK,_.G);_.g=_.lK.prototype;_.g.Cb=function(){return _.y(this,1)};
_.g.Dc=function(a){return _.u(this,1,a)};_.g.AU=function(){return _.Ab(this,2,void 0,_.cI)};_.g.Zj=function(){return _.y(this,3)};_.g.Ve=function(){return _.y(this,5)};_.g.mi=function(a){return _.u(this,5,a)};var svc=function(a,b){return 1<a?2===b:a===b},tvc=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("jf");},yL=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=yL.prototype;
_.g.clone=function(){return new yL(this.item.clone(),this.count,this.V,this.O,this.H)};_.g.getId=function(){return this.item.getId()};_.g.Yb=function(){return this.count};_.g.getItem=function(){return this.item};_.g.setItem=function(a){this.item=a;return this};_.g.SA=function(a){this.V=a};_.g.equals=function(a){return this.count===a.Yb()&&this.V===a.V&&this.O===a.O&&this.H===a.H&&_.Cj(this.item,a.getItem())};
var uvc=function(a,b){a.H=b;return a},zL=function(a){return a instanceof _.Ik?null!=a.getId()&&a.getId()==a.uc():null!=a.qc()&&a.qc()==a.uc()},vvc=function(a,b,c){c=void 0===c?[]:c;var d=a.clone(),e=b.Uh();null!=e&&Lnc(a,e.clone());if((e=b.getCapabilities())&&null!=_.N(e,13)){var f=a.getCapabilities()||new _.Bk;_.u(f,13,_.N(e,13));_.QJ(a,f)}e&&null!=_.N(e,18)&&(f=a.getCapabilities()||new _.Bk,_.u(f,18,_.N(e,18)),_.QJ(a,f));NK(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.Uh()&&NK(a,d,c)},wvc=function(a,b,c){c=void 0===c?[]:c;if(!b||!zL(a)&&!zL(b))return a;if(2==a.Jv()){c=_.y(a,82);var d=b.clone();vvc(d,a);_.sic(d,b.Jv());_.zI(d,c);return d}a=a.clone();vvc(a,b,c);return a},xvc=function(a){return(a=a?a.Uh():null)&&_.N(a,7)||!1},yvc=function(a,b){this.V=a;this.items={};this.fields=new Set;this.H={};this.O=new Set;this.W=new Set(b)},zvc=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]={}})},Bvc=function(a,b,c){b.every(function(d){return zL(d)})?Avc(b,c,a.H,a.O):b.every(function(d){return!zL(d)})&&Avc(b,c,a.items,a.fields)},Avc=function(a,b,c,d){b=_.lhc(b,[].concat(_.fc(d)));if(0!==b.length)for(a=_.m(a),d=a.next();!d.done;d=a.next()){d=d.value;var e=d.vf();e=e?_.xe(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&&NK(d,k,[h]);e&&(k=c[h][e.getId()])&&NK(e,k,[h])}}};
yvc.prototype.update=function(a,b,c){b&&zL(b)?Cvc(a,b,this.H,this.O,c):Cvc(a,b,this.items,this.fields,c)};yvc.prototype.JJ=function(a){var b=this;_.Ta(this.items,function(c,d){_.bb(b.items[d],a)});_.Ta(this.H,function(c,d){_.bb(b.H[d],a)})};
var Cvc=function(a,b,c,d,e){_.Ta(c,function(f,h){h=Number(h);if(e.includes(h)&&(f[a]&&!b?_.bb(f,a):b&&Inc(b,[h])&&(f[a]=Dvc(b,h)),b)){var k=b.vf();(k=k?_.xe(k):null)&&Inc(k,[h])&&(f[k.getId()]=Dvc(k,h))}});b&&Enc(b,[].concat(_.fc(d)))},Dvc=function(a,b){var c=new _.Ik;c.Nb(a.getId());NK(c,a,[b]);return c};yvc.prototype.clear=function(){var a=this;_.Ta(this.items,function(b,c){a.items[c]={}});_.Ta(this.H,function(b,c){a.H[c]={}})};
yvc.prototype.log=function(a){this.V.info("drive.ds.sync.cache.FieldsCache",a)};var Evc=function(a,b,c){var d=this;this.Ct=b;this.Sv=c;this.Dd=new Map;this.rootId="";a.addCallback(function(e){d.rootId=e})};_.g=Evc.prototype;_.g.By=function(){return this.Dd};_.g.mk=function(a){var b=new Map;a=_.m(a.V());for(var c=a.next();!c.done;c=a.next())c=c.value,this.Dd.has(c)&&b.set(c,this.Dd.get(c).getItem());return b};
_.g.query=function(a,b){var c=[];if(Fvc(a)){for(var d=_.m(this.Dd.values()),e=d.next();!e.done;e=d.next())e=e.value,AL(this.Ct,a,e.getItem())&&(void 0===b||svc(e.V,b))&&c.push(e);this.Sv.sort(a,c)}return c};_.g.get=function(a){return this.Dd.get(a)||null};_.g.getAll=function(a){var b=[];a=_.m(a);for(var c=a.next();!c.done;c=a.next())(c=this.Dd.get(c.value))&&b.push(c);return b};
_.g.update=function(a){a.H?(a.H.count++,a.O&&a.O.count--,Gvc(this,a.H)?(this.Dd.delete(a.id),a.H.count--):this.Dd.set(a.id,a.H)):(this.Dd.delete(a.id),a.O.count--)};var Gvc=function(a,b){return 1<b.Yb()||svc(b.V,2)||b.getItem().eJ()||coc(b.getItem())?!1:"root"!==b.getId()&&b.getId()!==a.rootId};Evc.prototype.JJ=function(){for(var a=_.m(this.Dd.values()),b=a.next();!b.done;b=a.next())b=b.value,Gvc(this,b)&&(this.Dd.delete(b.getId()),b.count--)};
var Hvc=function(a,b,c,d){this.Cg=a;this.W=b;this.O=c;this.V=d},Zoc=function(a,b){return(b=a.O.get(b))?(b=b.clone(),Bvc(a.V,[b.getItem()],nsc(a.Cg)),b):null};Hvc.prototype.H=function(a){return(a=Zoc(this,a))?a.getItem():null};var Ivc=function(a,b){var c={};b=_.m(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=Zoc(a,d);e&&(c[d]=e)}return c},Jvc=function(a,b){return _.Va(Ivc(a,b),function(c){return c.getItem()})},Kvc=function(a,b){b=BL(a.W,b);return a.O.query(b).map(function(c){return c.clone()})};
Hvc.prototype.query=function(a){return Kvc(this,a).map(function(b){return b.getItem()})};Hvc.prototype.getSize=function(){return this.O.By().size};
var Lvc=function(a){var b=new Set;a=_.m(a.O.By().values());for(var c=a.next();!c.done;c=a.next()){c=c.value.getItem();for(var d=_.m(_.Jk(c)),e=d.next();!e.done;e=d.next())e=e.value,b.add(e.getId()||LK(e));(d=c.Am())&&b.add(d.getId()||LK(d));(d=c.Zr())&&b.add(d.getId()||LK(d));(d=c.oq())&&b.add(d.getId()||LK(d));(c=c.BD())&&b.add(c.getId()||LK(c))}return b.size},Mvc=function(a){return[].concat(_.fc(new Set(a.map(function(b){return _.Sfc.get(b)}).filter(function(b){return b})))).join(",")},CL=function(a,
b,c){b=void 0===b?[]:b;c=void 0===c?!1:c;b=[].concat(_.fc(b));b=Mvc(b);var d=_.lI(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");
return(b.length?d+","+b:d)+",capabilities("+c+")"},Nvc=function(a,b){b=void 0===b?[]:b;return"kind,nextPageToken,items("+CL(a,b,!1)+")"},Ovc=function(a){var b=new _.uo;_.fK(b,"hidden",_.N(a,4));a=_.N(a,6);null!=a&&_.fK(b,"canRemoveSecureLinkUpdateForAllFiles",a);return b.toString()},Pvc=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}},Qvc=function(a,b){switch(a){case 21:return b.getId()||"";case 3:return b.getMimeType()||"";case 4:return b.lB()||!1;case 12:return b.zz()||0;case 11:return b.BB()||0;case 10:return b.Mq()||0;case 2:return(b.getTitle()||"").toLowerCase();case 25:return b.Ky()||0;case 57:return _.y(b,62)||0;case 32:return b.rv()||0;case 9:return b.lD()||0;case 67:return b.lK()||0;case 98:return b.Aw()||0;default:return""}},Rvc=function(a){var b=_.fdc(),c={};b&&(c.numeric=b);this.H=_.gdc(a,c)};
Rvc.prototype.compare=function(a,b,c){b=Svc(b);c=Svc(c);a=a.Lc();var d=Pvc(a);if(a&&d){d=Tvc(this,a);var e=4===a.getType()?this.H:_.Ha;return Uvc(a,d,e,b,c)}return _.Ha(b.getId(),c.getId())};Rvc.prototype.sort=function(a,b,c){a=a.Lc();var d=Pvc(a);a&&d&&(d=Tvc(this,a),d=Vvc(b,d),_.Ka(b,Wvc(this,a,d)));c&&0<c&&_.ta(b,c,b.length-c)};
var Svc=function(a){return a instanceof _.Ik?a:a.getItem()},Tvc=function(a,b){b=Pvc(b);return _.K(a.O,a,b,_.Ha)},Vvc=function(a,b){var c={};a.forEach(function(d){d=Svc(d);var e=d.getId();c[e]=b(d)});return c},Wvc=function(a,b,c){return function(d,e){var f=4===b.getType()?a.H:_.Ha;d=Svc(d);e=Svc(e);return Uvc(b,function(h){return c[h.getId()]},f,d,e)}},Uvc=function(a,b,c,d,e){var f=1===a.Tf()?1:-1;if(_.N(a,3)){a=PK(d,!0);var h=PK(e,!0);a=a===h?0:a?-1:1}else a=0;return a||f*(c(b(d),b(e))||_.Ha(d.getId(),
e.getId()))};Rvc.prototype.O=function(a,b,c){for(var d=Qvc(a[0],c),e=1;e<a.length;e++){var f=Qvc(a[e],c);d=1===b(f,d)?f:d}return d};var Xvc=function(a,b){this.fields=a;this.rootId="";this.fields.sort();this.H=b;this.anonymous=_.KI(_.eI(b));a=_.IJ(b);this.V=!(!a||!_.Q(a,1,!1));this.O=!(!a||!_.Q(a,8,!1))};Xvc.prototype.kz=function(a){this.rootId=a||""};
var BL=function(a,b,c){b=b.clone();"root"===b.getId()&&b.Nb(a.rootId);_.ol(b).filter(function(d){return"root"===d.Wa()}).forEach(function(d){return d.Hb(a.rootId)});_.Jf(b,_.nl(b).map(function(d){d.Hb(d.Wa().toLowerCase());return d}));c&&_.ml(b,a.fields);b.H().sort();return b},gL=function(a,b,c){if(b instanceof _.Df){b=BL(a,b);var d=_.Ijc(b)}else if(b instanceof _.WF)d=b.V().sort().join(","),_.Q(b,5,!1)&&(d+="|cachedOnly");else{if(b instanceof _.QH)return d=Ovc(b),d+"|tdList";if(b instanceof _.aG)return d=
b.V().sort().join(","),b.H().length&&(d+="|"+Mvc(b.H())),d+"|tdMap";throw Error("nf");}return 3===c?d:d+"|"+Yvc(a,b.H(),2===c)},Yvc=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(_.fc(e)).filter(function(h){return f.has(h)}).forEach(function(h){e.delete(h);f.delete(h)});f.size&&(d=d+" - "+_.OI({fields:[].concat(_.fc(f)),anonymous:a.anonymous}));e.size&&(d=d+" + "+_.OI({fields:[].concat(_.fc(e)),
anonymous:a.anonymous}));return d};Xvc.prototype.equals=function(a,b,c){var d;c&&(d=3);return gL(this,a,d)===gL(this,b,d)};
var dtc=function(a){if(!a.V().every(function(b){return!_.Te(b)}))throw new _.Gc("Invalid ids for FindByIdsRequest");},$vc=function(a,b,c){if(_.lJ(b))throw new _.Gc("Did not expect a PeoplePredict request. Use peoplePredictQuery() for PeoplePredict requests. ");Zvc(a,b,c)},Zvc=function(a,b,c){var d;a.O||(d=_.MI(3));if(b.getId())throw new _.Gc("Use findByIds() for find by id queries.",d?d:_.MI(3));if(!b.vi()||0>=b.vi())throw new _.Gc("A positive limit is required on an ItemQueryRequest.",d?d:_.MI(3));
_.se(b,33);a.V&&c||(d=a.fields.slice(),c&&(d=d.concat(c)),awc(a,d,b.H()));if(c=(c=b.Lc())&&Pvc(c))d=b.H().length?b.H():a.fields,awc(a,d,c);if(_.kJ(b)){if(a.anonymous)throw new _.Gc("User must be authenticated for a Quick Access request.");if(!bwc(a)&&20<b.vi())throw new _.Gc("Limit must be in the range [1, 20].");c=2===_.TJ(b);d=_.se(b,33).length;if(c&&1!==d||d&&!c)throw new _.Gc("A Team Drive Quick Access request must specify the Team Drive corpora and a single Team Drive id.");c=_.tj(_.vb(_.rj(_.vb(_.vb(_.vb(_.fI(_.vb(_.rj(_.fI(b.clone(),
1),30),32),33),45),47),74),75),48),6);d=new _.Df;if(!_.Cj(c,d))throw new _.Gc("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: "+Lsc(d,c));}else if(_.Q(b,74,!1))throw new _.Gc("If is_quick_access_for_shared_files_request is set to true, is_quick_access_request must also be true.");if(_.mJ(b)){if(a.anonymous)throw new _.Gc("User must be authenticated for a DrivePriority request.");
if(2===_.TJ(b))throw new _.Gc("Team Drive corpora is not valid for a Drive Priority request.");a=_.vb(_.vb(_.vb(_.rj(_.fI(b.clone(),1),30),32),45),52);b=new _.Df;if(!_.Cj(a,b))throw new _.Gc("Some fields specified are not valid for a Drive Priority request. Valid: field, request_descriptor, limit, corpora and is_drive_priority_request. Extra: "+Lsc(b,a));}},cwc=function(a,b,c){if(!_.lJ(b))throw new _.Gc("Expected a PeoplePredict request.");Zvc(a,b,c);if(a.anonymous)throw new _.Gc("User must be authenticated for a People Predict request.");
if(2===_.TJ(b))throw new _.Gc("Team Drive corpora is not valid for a People Predict request.");a=_.vb(_.vb(_.vb(_.rj(_.fI(b.clone(),1),30),32),45),49);b=new _.Df;if(!_.Cj(a,b))throw new _.Gc("Some fields specified are not valid for a People Predict request. Valid: field, request_descriptor, limit, corpora and is_people_predict_request. Extra: "+Lsc(b,a));},awc=function(a,b,c){var d;a.O||(d=_.MI(3));if(!Jnc(b,c,_.jhc)){var e=_.OI({fields:c,anonymous:a.anonymous}),f=_.OI({fields:b,anonymous:a.anonymous});
a=_.OI({fields:Knc(c,b),anonymous:a.anonymous});throw new _.Gc("Requested field was not previously specified. Needed "+e+", but had "+(f+". Missing: "+a+"."),d?d:_.MI(3));}},bwc=function(a){return 200<=_.WJ(a.H)&&300>_.WJ(a.H)},dwc=function(a){var b=new Set;a=_.m(_.nl(a));for(var c=a.next();!c.done;c=a.next())switch(_.fNa(c.value.Wa())){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(_.fc(b))},ewc=function(a){switch(_.WJ(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"}},fwc=function(a){a=_.ol(a);return 1===a.length?a[0].Wa():null},gwc=function(a){_.L.call(this);this.H=a};_.lg(gwc,_.L);_.g=gwc.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.SO=function(a){this.H.addCallback(function(b){b.SO(a)})};
_.g.send=function(a,b){this.H.addCallback(function(c){c.send(a,b)})};_.g.Ya=function(){this.cancel();gwc.ub.Ya.call(this)};var koc=function(a){_.Sy.call(this);this.No=a;this.H=_.df(this.No,"message",this.arb,!1,this)};_.lg(koc,_.Sy);_.g=koc.prototype;_.g.Xf=null;_.g.send=function(a,b){var c=[];b=this.Zza(c,b);a={serviceName:a,payload:b,"--goog.messaging.PortChannel":!0};_.fgc&&(a=(0,_.Di)(a));this.No.postMessage(a,c)};
_.g.arb=function(a){a=a.ze;var b=a.data;if(_.fgc)try{b=JSON.parse(b)}catch(e){return}if(_.Ea(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.GDa(a.ports||[],b),d.FGa),null!=b&&d.callback(b))}};
_.g.Zza=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,_.K)(this.Zza,this,a)):b&&b.constructor==Object?_.Va(b,function(c,d){c=this.Zza(a,c);return"_port"==d?{type:"escaped",val:c}:c},this):b};
_.g.GDa=function(a,b){return Array.isArray(b)?b.map((0,_.K)(this.GDa,this,a)):b&&b.constructor==Object?b._port&&"real"==b._port.type?a[b._port.index]:_.Va(b,function(c,d){return this.GDa(a,"_port"==d?c.val:c)},this):b};_.g.Ya=function(){_.ui(this.H);"[object MessagePort]"==Object.prototype.toString.call(this.No)?this.No.close():"[object Worker]"==Object.prototype.toString.call(this.No)&&this.No.terminate();delete this.No;koc.ub.Ya.call(this)};
var noc=function(a,b){if("*"==b)return new gwc(_.gi(Error("of")));var c=new _.zi(50),d=_.Ob(_.ca,c),e=new _.$h(d);_.bi(e,d);c.start();_.df(c,"tick",function(){var f=new MessageChannel,h=function(){f.port1.removeEventListener("message",h,!0);c.isDisposed()||e.callback(new koc(f.port1))};f.port1.start();f.port1.addEventListener("message",h,!0);a.postMessage({"--goog.messaging.PortChannel":!0},b,[f.port2])});return new gwc(e)},hwc=function(a){_.L.call(this);this.H=new _.hdc(a);this.V={};this.O=_.jdc(this.H,
"private");this.W=_.jdc(this.H,"public");this.O.registerService("mics",(0,_.K)(this.wob,this),!0)};_.lg(hwc,_.L);_.g=hwc.prototype;_.g.EIb=0;_.g.Ya=function(){_.ca(this.H);delete this.H;delete this.W;delete this.O};_.g.send=function(a,b,c){var d=this.EIb++;this.V[d]=c;c={signature:d};c.data=b;this.W.send(a,c)};_.g.wob=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,_.K)(this.vob,this,b),!0)};
_.g.vob=function(a,b){a=a(b.data);var c=b.signature;_.Vh(a).then((0,_.K)(function(d){var e={};e.data=d;e.signature=c;this.O&&this.O.send("mics",e)},this))};var iwc=function(a,b){_.L.call(this);this.W=b;this.started=!1;this.V=new _.hdc(a);this.Ja(this.V);this.H=new hwc(_.jdc(this.V,"direct"));this.Ja(this.H)};_.J(iwc,_.L);iwc.prototype.registerService=function(a,b){this.H.registerService(a,b)};iwc.prototype.send=function(a,b,c){this.H.send(a,b||{},function(d){return(c||_.hg)(d)})};
var moc=function(a,b){iwc.call(this,a,b);this.O=new hwc(_.jdc(this.V,"passthrough"));this.Ja(this.O)};_.J(moc,iwc);var DL=function(a,b,c){a.O.registerService(b,function(d){return c(d)})},EL=function(a,b,c,d){a.O.send(b,c||{},d||_.hg)};moc.prototype.start=function(){this.started||(this.started=!0)};var hoc=[],jwc=function(){_.Sy.call(this);this.H=null};_.J(jwc,_.Sy);jwc.prototype.send=function(a,b){_.F8a(this.H,a,b)};
var ooc=function(){this.O=new jwc;this.H=new jwc;var a=this.O;a.H||(a.H=this.H);a=this.H;a.H||(a.H=this.O)},kwc=function(a,b,c,d){this.clientId=a;this.method=b;this.args=c;this.requestId=d;this.H=void 0},lwc=function(a,b){b=void 0===b?!1:b;void 0===a.H&&(a.H=b)&&goc(a.args);return{c:a.clientId,m:a.method,a:a.args,req:a.requestId,s:a.H}},mwc=function(a){var b=new kwc(a.c,a.m,a.a,a.req);b.H=a.s;return b},nwc=function(a,b,c){this.data=b?void 0:a;this.error=b;this.O=c;this.H=void 0},owc=function(a,b){b=
void 0===b?!1:b;void 0===a.H&&a.data&&(a.H=b)&&goc(a.data);return{d:a.data,err:a.error&&b?a.error.Hc():a.error,uid:a.O,s:b}},pwc=function(a){var b=a.s,c=a.err;c=void 0===c?void 0:b?new _.Fc(JSON.parse(a.err)):c;a=new nwc(c?void 0:a.d,c,a.uid);c||(a.H=b);return a},foc=function(a,b){this.H=a;this.dE=b};foc.prototype.get=function(){for(var a={},b=0;b<this.H.length;b++)a[this.H[b]]=this.dE[b];return a};
foc.prototype.Hc=function(){for(var a={},b={},c=0;c<this.dE.length;c++){var d=this.dE[c],e=this.H[c];d instanceof Error?b[e]=_.uI(d).Hc():a[e]=d.Hc()}return{r:a,e:b}};qwc=function(a,b){if(b){var c=[],d=[];_.Ta(a.r,function(e,f){c.push(f);d.push(new _.GJ(JSON.parse(e)))});_.Ta(a.e,function(e,f){c.push(f);e=new _.Fc(JSON.parse(e));d.push(_.NI(e))});return new foc(c,d)}return a};loc=function(a,b,c,d,e){this.channel=a;this.H=b;this.endpoint=c;this.V=d;this.O=e};
_.mK=function(a,b,c){this.response=a;this.Ne=void 0===b?0:b;this.H0=void 0===c?null:c};_.nK=function(a,b,c,d){this.response=a;this.pageToken=void 0===b?"":b;this.H=void 0===c?!1:c;this.Ne=void 0===d?0:d};rwc=function(a){_.nK.call(this,a,void 0,void 0,void 0);this.j6a=new _.en};_.J(rwc,_.nK);swc=function(a,b){this.response=a;this.pageToken=void 0===b?"":b};_.pK=function(a,b,c){this.response=a;this.Ne=void 0===b?0:b;this.H0=void 0===c?null:c};
_.oK=function(a,b,c){this.response=a;this.Ne=void 0===b?0:b;this.H0=void 0===c?null:c};_.qK=function(a,b,c,d){this.response=a;this.pageToken=void 0===b?"":b;this.H=void 0===c?!1:c;this.Ne=void 0===d?0:d};twc={YWb:0,tXb:1,x2b:3,S$b:5,Lkb:6,0:"ACCOUNT",1:"APPS",3:"ITEMS",5:"USER_PREFS",6:"PEOPLE"};_.uwc=function(a){_.G.call(this,a)};_.J(_.uwc,_.G);_.uwc.prototype.H=function(){return _.y(this,1)};var vwc=function(a){_.G.call(this,a)};_.J(vwc,_.G);vwc.prototype.H=function(){return _.N(this,1)};
vwc.prototype.V=function(){return _.y(this,2)};_.FL=function(a){_.G.call(this,a)};_.J(_.FL,_.G);_.g=_.FL.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Nb=function(a){return _.u(this,1,a)};_.g.getTitle=function(){return _.y(this,2)};_.g.setTitle=function(a){return _.u(this,2,a)};_.g.Fta=function(){return _.y(this,3)};_.g.vz=function(){return _.y(this,4)};_.g.kaa=function(){return _.x(this,vwc,6)};_.g.pub=function(){return _.x(this,_.uwc,7)};_.g.TXa=function(){return _.y(this,8)};
_.g.Eta=function(){return _.N(this,9)};_.GL=function(a){_.G.call(this,a)};_.J(_.GL,_.G);_.g=_.GL.prototype;_.g.getType=function(){return _.y(this,1)};_.g.getId=function(){return _.y(this,2)};_.g.Nb=function(a){return _.u(this,2,a)};_.g.getTitle=function(){return _.y(this,3)};_.g.setTitle=function(a){return _.u(this,3,a)};_.g.getSize=function(){return _.y(this,5)};_.g.setSize=function(a){return _.u(this,5,a)};_.g.Lbb=function(){return _.y(this,6)};_.wwc=function(a,b){return _.u(a,6,b)};
_.GL.prototype.yf=function(){return _.y(this,8)};_.GL.prototype.kl=function(a){return _.u(this,8,a)};_.GL.prototype.H=function(){return _.N(this,9)};_.WI=function(a){_.G.call(this,a)};_.J(_.WI,_.G);_.WI.prototype.Hh=function(){return _.y(this,1)};_.WI.prototype.re=function(){return _.x(this,_.Qf,3)};_.gJ=function(a){_.G.call(this,a)};_.J(_.gJ,_.G);_.gJ.prototype.Hh=function(){return _.y(this,1)};_.gJ.prototype.re=function(){return _.x(this,_.Qf,2)};_.hJ=function(a){_.G.call(this,a)};_.J(_.hJ,_.G);
_.hJ.prototype.Hh=function(){return _.y(this,1)};_.hJ.prototype.re=function(){return _.x(this,_.Qf,2)};_.yJ=function(a){_.G.call(this,a)};_.J(_.yJ,_.G);_.yJ.prototype.Hh=function(){return _.y(this,1)};_.yJ.prototype.re=function(){return _.x(this,_.Qf,4)};var xwc=function(a){_.G.call(this,a)};_.J(xwc,_.G);ywc=function(a,b){return _.u(a,1,b)};_.XI=function(a){_.G.call(this,a)};_.J(_.XI,_.G);_.XI.prototype.getId=function(){return _.y(this,1)};_.XI.prototype.Nb=function(a){return _.u(this,1,a)};
_.nJ=function(a){_.G.call(this,a)};_.J(_.nJ,_.G);_.nJ.prototype.getId=function(){return _.y(this,1)};_.nJ.prototype.Nb=function(a){return _.u(this,1,a)};_.whc=function(a){_.G.call(this,a)};_.J(_.whc,_.G);_.uJ=function(a){_.G.call(this,a)};_.J(_.uJ,_.G);_.uJ.prototype.re=function(){return _.x(this,_.Qf,1)};var zwc=function(){var a=new _.uJ,b=_.Rf(new _.Qf,301);return _.F(a,1,b)};_.uJ.prototype.uc=function(){return _.y(this,3)};_.ZI=function(a){_.G.call(this,a)};_.J(_.ZI,_.G);
_.ZI.prototype.qc=function(){return _.y(this,1)};_.ZI.prototype.re=function(){return _.x(this,_.Qf,3)};_.iJ=function(a){_.G.call(this,a)};_.J(_.iJ,_.G);_.g=_.iJ.prototype;_.g.qc=function(){return _.y(this,1)};_.g.Af=function(){return _.y(this,2)};_.g.getType=function(){return _.y(this,3)};_.g.Wa=function(){return _.y(this,4)};_.g.Hb=function(a){return _.u(this,4,a)};_.g.Bi=function(){return _.vb(this,4)};_.g.Mg=function(){return _.lj(this,4)};_.g.re=function(){return _.x(this,_.Qf,7)};
_.Jhc=function(a){_.G.call(this,a)};_.J(_.Jhc,_.G);_.Jhc.prototype.uc=function(){return _.y(this,1)};_.qJ=function(a){_.G.call(this,a)};_.J(_.qJ,_.G);_.qJ.prototype.qc=function(){return _.y(this,1)};_.qJ.prototype.re=function(){return _.x(this,_.Qf,2)};_.qJ.prototype.vi=function(){return _.Dj(this,3,1E3)};_.qJ.prototype.Fi=function(a){return _.u(this,3,a)};var Awc=function(a,b,c){_.yi.call(this);this.Ba=a;this.ma=b;this.O=!0;this.ha=this.H=this.timeout=this.W=null;this.V=!1;this.ka=c};_.J(Awc,_.yi);
Awc.prototype.OB=function(){return this.O};Awc.prototype.RQ=function(){var a=this;if(this.W)return this.W;var b=_.Yh();this.W=b.promise;_.aa.setTimeout(function(){a.W=null},5E3);Bwc(this,b);return b.promise};Awc.prototype.ta=function(){!0===this.O&&(this.log("Became unauthenticated."),this.O=!1,this.V=!0,Cwc(this))};Awc.prototype.wa=function(){!1===this.O&&(this.log("Became authenticated."),this.O=!0,this.H=null,this.V=!1,this.timeout&&(_.aa.clearTimeout(this.timeout),this.timeout=null),this.dispatchEvent(new gtc("fb")))};
var Dwc=function(a,b){a.ha=b},Cwc=function(a){a.H||(a.H=new _.wkc(5E3),a.timeout=_.aa.setTimeout(function(){return Ewc(a)},a.H.Wa()))},Ewc=function(a){Bwc(a);a.H&&(_.YH(a.H),a.timeout=_.aa.setTimeout(function(){return Ewc(a)},a.H.Wa()))},Bwc=function(a,b){var c=_.Vh();a.ha&&(c=a.ha());c.then(function(){return Fwc(a,b)})},Fwc=function(a,b){a.log("Checking authentication state.");var c=a.Ba.then(function(d){return d.Oe(new _.Khc)});b?c.then(function(){b.resolve(ywc(new xwc,1))},function(d){var e=_.wd(d).qg;
d=0;_.vgc(e)?(a.log("Checked authentication state: unauthenticated."),d=2):(a.log("Checked authentication state: error occurred."),_.Go(e),_.u(e,21,"Checked authentication state: error occurred."),a.ka(e));e=new xwc;ywc(e,d);b.resolve(e)}):c.then(null,function(d){d=_.wd(d);_.vgc(d.qg)&&a.V&&(a.dispatchEvent(new gtc("gb")),a.V=!1)})};Awc.prototype.log=function(a){this.ma.info("drive.ds.sync.auth.StateManager",a)};_.Lhc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};
_.Ahc=function(a){this.H=a;this.type=1};_.Bhc=function(a){this.H=a;this.type=0};_.Ihc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};Gwc=function(a){return _.Gj(a,_.mI,3,_.nI)||_.Gj(a,_.EJ,4,_.nI)||_.Gj(a,_.tK,5,_.nI)||_.Gj(a,_.BJ,6,_.nI)||_.Gj(a,_.aJ,7,_.nI)||_.Gj(a,_.UI,8,_.nI)||_.Gj(a,_.YI,9,_.nI)||_.Gj(a,_.wI,10,_.nI)};Hwc=function(a){_.G.call(this,a)};_.J(Hwc,_.G);_.g=Hwc.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Nb=function(a){return _.u(this,1,a)};
_.g.aA=function(){return _.y(this,3)};_.g.He=function(){return _.y(this,4)};_.g.zi=function(a){return _.u(this,4,a)};_.g.oma=function(){return _.lj(this,4)};var Iwc=function(a){this.Xf=a;this.H=new Map;this.O=this.Xf.W};
Iwc.prototype.create=function(a,b){if(0!=usc(b)){var c=this.Xf.H(106001);if(c){var d=usc(b),e=bL(c);_.u(e,2,d);d=bL(c);e=null;if(b instanceof _.iG||b instanceof _.WF||b instanceof _.Df||b instanceof _.oJ||b instanceof _.nD||b instanceof _.aG||b instanceof _.QH||b instanceof _.OH||b instanceof _.bG||b instanceof _.dA)e=b.re();e=e&&_.Q(e,2,!1);_.u(d,7,"boolean"==typeof e?e:void 0);d=bL(c);b=b instanceof _.Df?0<_.ol(b).length:void 0;_.u(d,8,b);this.H.set(a,c)}}};
var Jwc=function(a,b,c){if(a=a.H.get(b))a=bL(a),_.u(a,5,c)},Kwc=function(a,b,c){(a=a.H.get(b))&&_.N(bL(a),8)&&(a=bL(a),_.u(a,9,c))},Lwc=function(a,b,c,d,e){var f=a.H.get(b);f&&(bL(f).Dc(c),bL(f).mi(d),null!=e&&(c=bL(f),_.u(c,6,e)),f.Cj(),a.H.delete(b))},Mwc=function(a,b,c){var d=a.H.get(b);if(d){var e=a.O.Cb(c);c=vsc(c);if(1==e||2==c)e=_.iK(_.igc,c),d=bL(d),d=3==e||8==e?!_.N(d,5):0!=e?_.Hgc.has(e):null,Lwc(a,b,1,e,d)}},Nwc=function(a,b,c){var d=a.O.Cb(c);d=_.iK(_.hgc,d||22);var e=vsc(c);e=_.iK(_.igc,
e);Lwc(a,b,d,e,"undefined"!=typeof _.mK&&c instanceof _.mK||"undefined"!=typeof _.oK&&c instanceof _.oK||"undefined"!=typeof _.pK&&c instanceof _.pK?c.H0:null)},HL=function(a,b,c){c=void 0===c?3:c;var d=a.H.get(b);d&&(bL(d).Dc(c),d.Cj(),a.H.delete(b))},Owc=[2,4],IL=function(a){_.G.call(this,a,-1,Owc)};_.J(IL,_.G);IL.prototype.Cb=function(){return _.y(this,1)};IL.prototype.Dc=function(a){return _.u(this,1,a)};IL.prototype.Zj=function(){return _.y(this,3)};
var Pwc=[4,9],Qwc=function(a){_.G.call(this,a,-1,Pwc)};_.J(Qwc,_.G);_.g=Qwc.prototype;_.g.Cb=function(){return _.y(this,1)};_.g.Dc=function(a){return _.u(this,1,a)};_.g.vYa=function(){return _.y(this,2)};_.g.uOa=function(){return _.y(this,3)};_.g.hvb=function(){return _.yb(this,_.pI,4)};var Rwc=[2],JL=function(a){_.G.call(this,a,-1,Rwc)};_.J(JL,_.G);JL.prototype.getName=function(){return _.y(this,1)};JL.prototype.$c=function(a){return _.u(this,1,a)};JL.prototype.H=function(){return _.yb(this,hL,2)};
var Swc=function(a,b){_.sj(a,2,b)};JL.prototype.qc=function(){return _.y(this,3)};var Twc=function(a,b){return _.u(a,3,b)},Uwc=[2],KL=function(a){_.G.call(this,a,-1,Uwc)};_.J(KL,_.G);KL.prototype.Cb=function(){return _.y(this,1)};KL.prototype.Dc=function(a){return _.u(this,1,a)};KL.prototype.H=function(){return _.yb(this,JL,2)};var Vwc=function(a,b){return _.sj(a,2,b)};KL.prototype.Zj=function(){return _.y(this,3)};var Wwc=function(a){_.G.call(this,a)};_.J(Wwc,_.G);_.g=Wwc.prototype;
_.g.qc=function(){return _.y(this,1)};_.g.Cb=function(){return _.y(this,2)};_.g.Dc=function(a){return _.u(this,2,a)};_.g.getError=function(){return _.x(this,_.Fc,3)};_.g.Pe=function(a){return _.F(this,3,a)};_.g.eo=function(){return _.lj(this,3)};var Xwc={z$b:0,a5b:1,d5b:2,b5b:4,E2b:5,M_b:6,L2b:7,q5b:8},Ywc=function(a){_.G.call(this,a)};_.J(Ywc,_.G);Ywc.prototype.getUrl=function(){return _.y(this,1)};var LL=function(a){_.G.call(this,a)};_.J(LL,_.G);var Zwc=function(a,b){return _.u(a,1,b)};
LL.prototype.getName=function(){return _.y(this,2)};LL.prototype.$c=function(a){return _.u(this,2,a)};LL.prototype.getEmail=function(){return _.y(this,3)};var $wc=function(a,b){return _.u(a,3,b)};LL.prototype.wq=function(){return _.lj(this,3)};var axc=[1],bxc=function(a){_.G.call(this,a,-1,axc)};_.J(bxc,_.G);var cxc=function(a,b){return _.sj(a,1,b)},dxc=[2],ML=function(a){_.G.call(this,a,-1,dxc)};_.J(ML,_.G);ML.prototype.Cb=function(){return _.y(this,1)};
ML.prototype.Dc=function(a){return _.u(this,1,a)};ML.prototype.Yk=function(){return _.yb(this,_.cI,2)};var exc=function(a,b){return _.sj(a,2,b)};ML.prototype.Zj=function(){return _.y(this,3)};var fxc=function(a,b){this.O=a|0;this.H=b|0};fxc.prototype.equals=function(a){return this===a?!0:a instanceof fxc?this.O===a.O&&this.H===a.H:!1};fxc.prototype.Ac=function(){return 31*this.O+17*this.H|0};
var gxc=function(a,b){return new fxc(a,b)},hxc=function(a,b){b=~b;a?a=~a+1:b+=1;return gxc(a,b)},ixc=function(a){var b="-"===a[0];a=a.slice(b?3:2);return(b?hxc:gxc)(parseInt(a.slice(-8),16),parseInt(a.slice(-16,-8)||"",16))},jxc=function(){this.H=this.W=this.O=this.V=null},kxc=[1],lxc=function(a){_.G.call(this,a,-1,kxc)};_.J(lxc,_.G);
var mxc=function(a,b){return _.qj(a,1,b)},nxc=function(a){this.W=a;this.O=new Map;this.V=new Set;this.enabled=!0;this.error=null;this.started=!1},NL=function(a,b,c){if(a.started)throw Error("xf");c={Lo: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)}},OL=function(a,b){if(!a.started)throw Error("yf");if(!a.enabled)throw Error("zf`"+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.Lo.delete(b);if(0===e.Lo.size)try{e.callback()}catch(f){throw a.enabled=!1,a.error=f?_.NI(f):null,f;}}}};nxc.prototype.H=function(a){return this.V.has(a)};nxc.prototype.start=function(){this.started=!0};nxc.prototype.log=function(a){this.W.info("drive.ds.MilestoneManager",a)};
var oxc=function(a,b,c){this.id=a;this.O=b;this.H=c},pxc=function(a,b){return new oxc((a?a:b).getId(),a,b)},PL=function(a){return new oxc(a.getId(),null,a)},qxc=function(a,b){this.Ct=a;this.Sv=b;this.LD=!0;this.X8=!1;this.Ne=0},QL=function(a,b){(a.LD=b)||a.JJ()};_.g=qxc.prototype;_.g.Ula=function(a,b){if(5===this.YE(a))throw Error("Af");for(var c=[],d=_.m(this.By()),e=d.next();!e.done;e=d.next())e=e.value,AL(this.Ct,a,e.getItem())&&c.push(e);this.Sv.sort(a,c,b);return c};_.g.getSize=function(){return this.By().length};
_.g.mk=function(a,b){a=this.Ula(a,b);a=Goc(a);b=new _.dI;b.fB(a);b.Dc(this.bO()?6:1);return b};_.g.update=function(a){var b=this.Bs(a.O),c=this.Bs(a.H);if(!b&&!c)return!1;b&&this.zJ(a.O);c&&this.kS(a.H);return!0};_.g.YE=function(a){return this.LD&&this.X8?Fvc(a)?1:5:5};_.g.TX=function(){this.X8=!0};_.g.Bs=function(a){return!!a&&this.LD};_.g.mi=function(a){this.Ne=a};_.g.Ve=function(){return this.Ne};
var RL=function(a,b,c,d,e,f){f=void 0===f?"":f;qxc.call(this,a,b);var h=this;this.ha=c;this.nextPageToken=f;this.Dd=[];this.O={};this.request=BL(c,d,!0);this.W=gL(c,d);this.H=!e;rxc(this,e);this.V=function(k,l){return h.Sv.compare(h.request,k,l)}};_.J(RL,qxc);_.g=RL.prototype;_.g.jd=function(){return this.request};_.g.jN=function(){return this.W};
_.g.kS=function(a){var b=this.O[a.getId()];b&&this.zJ(b);znc(this.Dd,a,this.V);this.O[a.getId()]=a;a.count++;this.Dd.length>this.request.vi()&&(this.zJ(_.ka(this.Dd)),this.H=!1)};_.g.zJ=function(a){var b=this.Dd,c=_.Ia(b,a,this.V);0<=c&&_.va(b,c);_.bb(this.O,a.getId());a.count--};_.g.JJ=function(){this.Dd.forEach(function(a){a.count--});this.Dd=[];this.O={}};_.g.By=function(){return this.Dd};
_.g.YE=function(a){var b;if(b=this.ha.equals(this.request,a,!0))a=a.H(),b=this.request.H(),b=Jnc(b,a,_.jhc);return b?this.H?1:6:5};_.g.Ula=function(a,b){if(5===this.YE(a))throw Error("Af");b=b?Math.min(b,this.Dd.length):this.Dd.length;return _.Da(this.Dd,0,b)};_.g.Bs=function(a){if(!qxc.prototype.Bs.call(this,a)||!AL(this.Ct,this.request,a.getItem()))return!1;if(this.H||_.Q(this.request,48,!1))return!0;var b=_.ka(this.Dd);return!!b&&0>=this.V(a,b)};_.g.bO=function(){return this.H?!1:!0};
_.g.getType=function(){return"CacheHintCorpusCache"};_.g.$k=function(a,b){var c=this,d=_.ka(this.Dd);!this.H&&d&&_.na(a,function(e){return e.getId()===d.getId()})&&(b?(this.zJ(d),rxc(this,_.ka(a))):this.H=!0);_.Ma(a,function(e){c.update(PL(e))})};var rxc=function(a,b){b&&AL(a.Ct,a.request,b.getItem())&&a.kS(b)};RL.prototype.Gy=function(){return this.nextPageToken};var SL=function(a,b){qxc.call(this,a,b);this.Dd=new Map};_.J(SL,qxc);SL.prototype.kS=function(a){this.Dd.set(a.getId(),a);a.count++};
SL.prototype.zJ=function(a){this.Dd.delete(a.getId());a.count--};SL.prototype.JJ=function(){for(var a=_.m(this.Dd.values()),b=a.next();!b.done;b=a.next())b.value.count--;this.Dd=new Map};SL.prototype.By=function(){return Array.from(this.Dd.values())};var sxc=function(a,b){SL.call(this,a,b);this.TX()};_.J(sxc,SL);_.g=sxc.prototype;
_.g.YE=function(a){var b=this,c=SL.prototype.YE.call(this,a);if(5===c)return c;if(0<_.se(a,33).length)return 5;a=_.ol(a);return 0<a.length?a.every(function(d){return(d=b.Dd.get(d.Wa()))&&!d.getItem().uc()&&d.H})?1:5:5};_.g.Bs=function(a){return SL.prototype.Bs.call(this,a)&&!(null===a||void 0===a?0:a.getItem().uc())};_.g.Ula=function(a,b){for(var c=[],d=_.m(this.By()),e=d.next();!e.done;e=d.next())e=e.value,AL(this.Ct,a,e.getItem())&&c.push(e);this.Sv.sort(a,c,b);return c};_.g.jd=function(){return new _.Df};
_.g.jN=function(){return null};_.g.getType=function(){return"MyDriveCorpusCache"};_.g.bO=function(){return!1};var txc=function(a){return[].concat(_.fc(a.Dd.values())).filter(function(b){return b.H}).map(function(b){return b.getId()})},TL=function(a,b,c,d){SL.call(this,a,b);var e=this;this.H=d;NL(c,["aU7Ts","BNEDtc"],function(){return e.TX()})};_.J(TL,SL);
TL.prototype.YE=function(a){var b=this,c=SL.prototype.YE.call(this,a);if(5==c)return c;if(0<_.se(a,33).length)return 5;a=_.ol(a);return 0<a.length&&!a.every(function(d){d=b.Dd.get(d.Wa());return null!=d&&!d.getItem().uc()&&Snc(d.getItem())&&!_.N(d.getItem(),108)})?5:1};TL.prototype.Bs=function(a){return SL.prototype.Bs.call(this,a)&&uxc(this,a.getItem())};var uxc=function(a,b){if(_.N(b,31)||!a.X8)return!0;var c=a.H();return b.vk().some(function(d){var e=a.Dd.get(d);return d==c||null!=e&&Snc(e.getItem())})};
_.g=TL.prototype;_.g.TX=function(){SL.prototype.TX.call(this);for(var a=_.m(this.Dd),b=a.next();!b.done;b=a.next()){var c=_.m(b.value);b=c.next().value;c=c.next().value;uxc(this,c.getItem())||(c.count--,this.Dd.delete(b))}};_.g.jd=function(){return new _.Df};_.g.jN=function(){return null};_.g.getType=function(){return"SubscribedCorpusCache"};_.g.bO=function(){return!1};
var vxc=/^[\x00-\x7F]*$/,UL=function(){this.H=[this.W,this.O,this.V,this.ha,this.CHb,this.yHb,this.oHb,this.rHb,this.qHb,this.vHb,this.mHb,this.pHb,this.wHb,this.xHb,this.zHb,this.nHb,this.BHb,this.AHb,this.jHb,this.tHb,this.sHb,this.kHb,this.uHb,this.DHb,this.lHb];this.rootId=""};UL.prototype.kz=function(a){this.rootId=a||""};
var Fvc=function(a){return wxc(a)&&0==_.se(a,40).length&&void 0==_.y(a,41)},wxc=function(a){var b=!0;_.yb(a,_.Ff,13).forEach(function(d){"me"!=d.Wa()&&(b=!1)});var c=a.Lc();c=!c||5!=c.getType();return 0==_.yb(a,_.hl,5).length&&0==_.yb(a,_.Ff,14).length&&0==_.yb(a,_.Ff,15).length&&!_.lj(a,58)&&!_.N(a,18)&&!_.N(a,34)&&0==_.yb(a,_.cl,35).length&&0==_.yb(a,_.cl,38).length&&c&&b&&0==_.se(a,39).length&&!_.y(a,42)&&0==_.yb(a,_.bl,44).length&&!_.kJ(a)&&!_.lJ(a)&&!_.mJ(a)&&0==_.yb(a,_.dl,57).length&&xxc(a)&&
!_.x(a,_.npa,59)&&null==_.N(a,60)&&0==_.yb(a,_.Ff,68).length&&0==_.yb(a,_.Ff,67).length&&null==_.N(a,69)&&!_.N(a,73)},xxc=function(a){return _.yb(a,_.il,4).every(function(b){b=b.Wa();return!b||!b.includes("*")&&vxc.test(b)})};UL.prototype.S9=function(a,b){var c=this;return b.filter(function(d){return AL(c,a,d)})};var AL=function(a,b,c){return!!c&&yxc(a,c)&&a.H.every(function(d){return d.call(a,b,c)})},yxc=function(a,b){return b.getId()!=a.rootId&&!zL(b)};
UL.prototype.W=function(a,b){var c=!0,d=_.yb(a,_.il,4);if(!xxc(a))return!0;for(a=0;a<d.length&&c;a++){var e=d[a];if(e.Wa()){var f=_.Q(e,3,!1),h=(b.getTitle()||"").toLowerCase(),k=e.Wa().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,_.fc(k.split(RegExp("\\b"))));for(k=0;k<e.length&&c;k++)l=e[k],p=!0,0!=(0,_.Dg)(l).length&&(0==l.replace(/\./g,
"").length&&(p=!1),l=!!h.match(p?new RegExp("(^|[^\\w])"+_.kh(l)+"($|[^\\w])|(^|[ ])"+_.kh(l)):new RegExp(_.kh(l))),c=c&&(f?!l:l))}}}return c};
UL.prototype.O=function(a,b){var c=_.nl(a),d=0,e=0,f=!1,h=!1;c=_.m(c);for(var k=c.next();!k.done;k=c.next())if(k=k.value,k.Wa()){var l=b.getMimeType()||"";if(_.N(k,4)){var p=b.vf();l=p&&_.y(p,3)||""}p=_.Q(k,2,!1);var q=k.Wa();_.JJ(a)&&(q=q.toLowerCase(),l=l.toLowerCase());k=0===_.oj(k,3,0)?q===l:l.includes(q);p?(e++,h=h||k):(d++,f=f||k)}return d&&!f||e&&h?!1:!0};
UL.prototype.V=function(a,b){var c=!0;a=_.yb(a,_.fl,7);a=_.m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=b.Mq();c=c&&zxc(e,d)}return c};UL.prototype.ha=function(a,b){var c=!0;a=_.yb(a,_.fl,8);a=_.m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=b.zz();c=c&&zxc(e,d)}return c};var zxc=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=UL.prototype;_.g.CHb=function(a,b){var c=a.Ph();a=_.TJ(a);return null==c||c==!!b.Ph()&&(!c||1==b.Bp()||!(!a||2!=a&&3!=a))};_.g.yHb=function(a,b){return null==_.N(a,10)||_.N(a,10)==!!b.lB()};_.g.oHb=function(a,b){return null==_.N(a,11)||_.N(a,11)==!!_.N(b,6)};_.g.rHb=function(a,b){a=_.ol(a);a=_.m(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.Wa()){var d="root"==c.Wa()&&this.rootId||c.Wa();d=b.vk().includes(d);if(_.Q(c,2,!1)?d:!d)return!1}return!0};
_.g.qHb=function(a,b){a=_.yb(a,_.Ff,13);a=_.m(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,"me"==c.Wa()){var d=1==b.Bp();if(_.Q(c,2,!1)?d:!d)return!1}return!0};_.g.vHb=function(a,b){return null==_.N(a,16)||(_.N(a,16)?null!=b.Ky():!0)};_.g.mHb=function(a,b){var c=_.N(a,17);a=_.TJ(a);return null==c||c==!!b.eJ()&&(!c||1==b.Bp()||!(!a||2!=a&&3!=a))};_.g.pHb=function(a,b){b=aoc(b);return null==_.N(a,19)||_.N(a,19)==!!_.Ek(b)};
_.g.wHb=function(a,b){a=_.yb(a,_.SJ,25);if(0==a.length)return!0;var c=new Set(_.se(b,56));return a.every(function(d){return c.has(d.Wa())})};_.g.xHb=function(a,b){if(0==a.gA().length)return!0;if(0==b.gA().length)return!1;var c=new Set(b.gA().map(function(d){return d.UR()}));return a.gA().some(function(d){return c.has(d.UR())})};_.g.zHb=function(a,b){a=_.se(a,33);return!a.length||a.includes(b.uc()||"")};_.g.nHb=function(a,b){a=_.yb(a,_.gl,37);if(0==a.length)return!0;var c=new Set(_.se(b,50));return a.every(function(d){return c.has(d.Wa())})};
_.g.BHb=function(a,b){return _.y(a,41)?(b=_.x(b,_.NJ,86),null!=b&&_.y(a,41)==_.y(b,3)):!0};_.g.AHb=function(a,b){if(_.se(a,40).length){if(b=_.x(b,_.NJ,86)){var c=new Set(_.se(b,2));return _.se(a,40).some(function(d){return c.has(d)})}return!1}return!0};_.g.jHb=function(a,b){var c=_.TJ(a);return 1==c?(b=_.N(b,31),!!_.ol(a).length||!!_.yb(a,_.cl,35).length||1==_.N(a,18)||_.kJ(a)||_.lJ(a)||_.mJ(a)||!!a.Yq()||null==b||b):2==c?!!b.uc():!0};
_.g.tHb=function(a,b){return _.kJ(a)?!_.lj(b,100)||b.Ph()?!1:_.Q(a,74,!1)?!!_.N(_.Lk(b),4):!!_.N(_.Lk(b),3):!0};_.g.sHb=function(a,b){return _.lJ(a)?!!_.Mk(b).length&&!b.Ph():!0};_.g.kHb=function(a,b){return _.mJ(a)?!!_.Nk(b).length&&!b.Ph():!0};_.g.uHb=function(a,b){return _.lj(a,50)?_.Q(a,50,!1)?_.lj(b,101)&&0!==_.y(b,101):!_.lj(b,101):!0};_.g.DHb=function(a,b){a=a.Yq();return!a||_.se(b,120).includes(a)};
_.g.lHb=function(a,b){b=_.x(b,_.LJ,138);return null==_.N(a,65)||null==b?!0:_.N(a,65)==(2==_.y(b,1))};var VL=function(a,b,c,d){d=void 0===d?5E3:d;SL.call(this,a,b);this.teamDriveId=c;this.limit=d};_.J(VL,SL);_.g=VL.prototype;
_.g.YE=function(a){var b=this,c=SL.prototype.YE.call(this,a);if(5==c)return c;c=_.ol(a);var d=c.every(function(e){var f=e.Wa();return(null!=b.Dd.get(f)||b.teamDriveId==f)&&!_.Q(e,2,!1)});if(0<c.length&&d)return 1;a=_.se(a,33);return 0!=a.length&&a.includes(this.teamDriveId)?1:5};_.g.Bs=function(a){return SL.prototype.Bs.call(this,a)&&!!a&&a.getItem().uc()==this.teamDriveId&&!zL(a.getItem())};_.g.bO=function(){return!1};_.g.jd=function(){var a=new _.Df;_.ql(a,[this.teamDriveId]);_.rl(a,2);return a};
_.g.jN=function(){return null};_.g.uc=function(){return this.teamDriveId};_.g.getType=function(){return"TeamDriveCorpusCache: "+this.teamDriveId};var Axc=function(a,b){this.W=a;this.ka=b;this.ha=[];this.O=this.H=null;this.V=[];a=new _.Df;_.u(a,48,!0);b=new _.ud;_.td(b,11);_.sd(b,2);_.Ef(a,b);this.ma=BL(this.W,a,!0)};
Axc.prototype.add=function(a){a instanceof TL?this.H=a:a instanceof sxc?this.O=a:a instanceof RL?(this.log("Adding new cache hint for "+gL(this.W,a.jd(),2)),this.ha.push(a)):a instanceof VL&&this.V.push(a)};
Axc.prototype.remove=function(a){var b=this;if(a instanceof TL)this.H&&(QL(this.H,!1),this.H=null);else if(a instanceof sxc)this.O&&(QL(this.O,!1),this.O=null);else if(a instanceof RL){var c=_.ma(this.ha,function(d){return b.W.equals(d.jd(),a.jd())});0<=c&&(QL(this.ha[c],!1),_.va(this.ha,c))}else a instanceof VL&&(c=_.ma(this.V,function(d){return b.W.equals(d.jd(),a.jd())}),0<=c&&(QL(this.V[c],!1),_.va(this.V,c)))};
var Bxc=function(a){var b=[];a.H&&b.push(a.H);a.O&&b.push(a.O);_.Ca(b,_.Ba(a.ha));_.Ca(b,_.Ba(a.V));return b},Cxc=function(a,b){b=void 0===b?!1:b;return a.ha.filter(function(c){return a.H&&b?(c=c.jd().clone(),_.vb(c,32),_.tj(c,26),!_.Cj(a.ma,c)):!0})};Axc.prototype.MW=function(){return _.Ba(this.V)};var Dxc=function(a,b){return _.Bg(a.V,function(c){return c.uc()===b})},Exc=function(a,b){return Cxc(a).find(function(c){return a.W.equals(c.jd(),BL(a.W,b,!0))})};
Axc.prototype.log=function(a,b){this.ka.log("drive.ds.sync.cache.CorpusCacheList",a,void 0===b?"info":b)};var Fxc=function(a,b){_.ni.call(this,"tb");this.ids=a;this.error=b};_.J(Fxc,_.ni);Fxc.prototype.getError=function(){return this.error};Fxc.prototype.H=function(){return this.ids};var Gxc=function(a){_.ni.call(this,"ub");this.people=a};_.J(Gxc,_.ni);Gxc.prototype.getPeople=function(){return this.people};var Hxc=function(a){_.ni.call(this,"vb");this.people=a};_.J(Hxc,_.ni);
Hxc.prototype.getPeople=function(){return this.people};var Ixc=function(a,b,c){c=void 0===c?0:c;this.person=a;this.Ne=c;this.O=!1;this.H=new Set(b?[b]:[]);6===c&&(this.O=!0)};Ixc.prototype.Ve=function(){return this.Ne};
var Jxc=function(a){return 0===a.Ne?1:2===a.Ne||(1===a.Ne||4===a.Ne)&&(a.person.wq()||a.O)?3:2},Kxc=function(a,b,c){if(_.y(b,1)!==_.y(a.person.clone(),1))return!1;6===c&&(a.O=!0);var d=Jxc(a),e=a.Ve();if(4===c?0:1===e?1===c:5===e||6===e||2===e||4===e?0!==c&&e!==c:1)return b=$wc(b.clone(),a.getEmail(b)),e=!_.Cj(a.person,b),a.person=b,a.Ne=c,e||d!==Jxc(a);if(4===c)return a.Ne=c,_.u(a.person,6,_.y(b,6)),d!==Jxc(a);c=b;return!a.person.getEmail()&&c.getEmail()?($wc(a.person,a.getEmail(b)),!0):!1};
Ixc.prototype.getEmail=function(a){var b=this.person.getEmail();a=a.getEmail();return!a&&b&&0!==b.length?b:a};var Mxc=function(a,b,c,d){var e;_.yi.call(this);var f=this;this.O=a;this.V=b;this.W=c;this.ka=d;this.H=[];this.ha=(null===(e=_.IJ(a))||void 0===e?0:_.Q(e,20,!1))?450:50;this.ma=new _.jI(function(){return Lxc(f)},100,this)};_.J(Mxc,_.yi);Mxc.prototype.lh=function(a){a&&_.lI(this.O)&&(this.H.includes(a)||this.H.push(a),this.ma.oe())};
var Lxc=function(a){a.ka.then(function(){for(;a.H.length;){var b=a.H.splice(0,a.ha);a.log("Querying for people. Size: "+b.length+". Pending: "+(a.H.length+" "+b));a.sendRequest(b)}})};Mxc.prototype.sendRequest=function(a){var b=this;return this.W.then(function(c){var d=c.Oe;var e=new _.tJ;e=_.qj(e,1,a);return d.call(c,e)}).then(function(c){c=_.yb(c,LL,1);b.dispatchEvent(new Gxc(c))},function(c){c=_.wd(c);b.dispatchEvent(new Fxc(a,c))})};
Mxc.prototype.log=function(a){this.V.info("drive.ds.sync.query.PeopleQueryRunner",a)};
var Pxc=function(a,b,c,d,e){_.yi.call(this);var f=this;this.H=new Map;this.O=new Set;this.V=new Map;this.Oc=new _.of(this);this.Ja(this.Oc);this.ka=b;this.ha=d;this.ta=_.Dj(_.x(a,jrc,85)||new jrc,1,864E5);this.W=new Mxc(a,b,c,e);this.ma=new _.CD(function(){var h,k=null===(h=f.ha)||void 0===h?void 0:dL(h,106015);if(k){h=_.x(_.hK(k),Qrc,11);if(!h){h=new Qrc;var l=_.hK(k);_.F(l,11,h)}h=_.u(h,1,f.H.size);_.u(h,2,f.O.size);k.Cj()}},500,this);this.Oc.listen(this.W,"ub",function(h){h=h.getPeople();Nxc(f,
h,1);f.ma.oe()});this.Oc.listen(this.W,"tb",function(h){Oxc(f,h)})};_.J(Pxc,_.yi);Pxc.prototype.get=function(a){var b=this.H.get(a);return b?(Qxc(this,b)&&Rxc(this,a),b):null};var Rxc=function(a,b){if(!b)return Promise.resolve();if(a.V.has(b))return a.V.get(b).promise;a.W.lh(b);var c=new _.en;a.V.set(b,c);return c.promise};Pxc.prototype.Sb=function(a){var b=this;return Sxc(this,a)?Promise.resolve(this.H.get(a)):Rxc(this,a).then(function(){return b.H.get(a)})};
Pxc.prototype.lc=function(){return 0===this.H.size};Pxc.prototype.clear=function(){this.log("Clearing the PeopleCache.");this.H.clear();this.O.clear()};
var Txc=function(a){return[].concat(_.fc(a.H.values())).filter(function(b){return 3===Jxc(b)&&4!==b.Ve()}).map(function(b){return b.person.clone()})},Uxc=function(a,b){return(a=a.H.get(b))?[].concat(_.fc(a.H)):[]},Vxc=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(_.fc(e.H)).length&&(a.H.delete(d),a.O.delete(d)))}},Nxc=function(a,b,c){if(![1,2].includes(c))throw Error("Bf");0!==b.length&&(a.log("Importing "+b.length+" from "+
(Object.keys(Xwc)[c]+".")),Wxc(a,b,c))},Yxc=function(a,b,c,d){0!==b.length&&Xxc(a,b,c,void 0===d?0:d)},Sxc=function(a,b){b=a.H.get(b);return!(!b||3!==Jxc(b)||Qxc(a,b))},Xxc=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)Kxc(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&&2!==l&&Rxc(k,_.y(f,1));k.H.set(_.y(f,1),new Ixc(f,p,l))}e&&1===d&&(f.getName()?a.O.delete(h):a.O.add(h))}return e},Qxc=
function(a,b){switch(b.Ve()){case 1:case 2:return null==_.y(b.person.clone(),5)||Date.now()-Number(_.y(b.person.clone(),5))>a.ta;case 4:return 1E3<Date.now()-Number(_.y(b.person.clone(),6));default:return!0}};Pxc.prototype.log=function(a,b){this.ka.log("drive.ds.sync.cache.PeopleCache",a,void 0===b?"info":b)};
var Oxc=function(a,b){b=b.H().map(function(c){var d=a.H.get(c);return d?d.person.clone():Zwc(new LL,c)});Wxc(a,b,4)},Wxc=function(a,b,c){for(var d=Date.now(),e=_.m(b),f=e.next();!f.done;f=e.next()){var h=f.value;f=_.y(h,1);1===c?_.u(h,5,d):4===c&&_.u(h,6,d);if(h=a.V.get(f))h.resolve(),a.V.delete(f)}Xxc(a,b,void 0,c)&&a.dispatchEvent(new Hxc(b))},Zxc=function(a,b,c,d,e){_.yi.call(this);var f=this;this.Oc=new _.of(this);this.Ja(this.Oc);this.H=new Pxc(a,b,c,d,e);this.O=_.IJ(a)||new _.Bic;this.Oc.listen(this.H,
"vb",function(h){return f.dispatchEvent(h)})};_.J(Zxc,_.yi);Zxc.prototype.BP=function(a){var b=this;if(a.H){var c=a.H.getItem(),d=$xc(this,[c]).map(function(e){return ayc(b,e)});Yxc(this.H,d,a.H.getId(),this.Ve(_.y(c,82)))}a.O&&Vxc(this.H,a.id,byc(this,a))};Zxc.prototype.Ve=function(a){return _.Ogc.get(a)||0};
var byc=function(a,b){var c=cyc(a,b.O),d=cyc(a,b.H);return c.filter(function(e){return!d.includes(e)})},cyc=function(a,b){return b?dyc(a,[b.getItem()]):[]},fyc=function(a,b){b=b.getUser();Yxc(a.H,[ayc(a,b)],"ACCOUNT");eyc(a,b)},hyc=function(a,b){var c=_.yb(b,_.aK,2).map(function(d){var e=_.x(d,_.vk,9,1);return a.H.Sb(LK(e)).then(function(){return void gyc(a,[e])})});return Promise.all(c).then(function(){return b})},iyc=function(a,b){gyc(a,$xc(a,b))},gyc=function(a,b){b=_.m(b);for(var c=b.next();!c.done;c=
b.next())c=c.value,LK(c)&&eyc(a,c)},jyc=function(a,b,c){for(var d=new Set,e=_.m(b),f=e.next();!f.done;f=e.next())f=f.value,LK(f)&&(d.add(LK(f)),Yxc(a.H,[ayc(a,f)],c));return Promise.all([].concat(_.fc(d)).map(function(h){return a.H.Sb(h)})).then(function(){return gyc(a,b)})},kyc=function(a,b){return dyc(a,[b]).some(function(c){return!Sxc(a.H,c)})},dyc=function(a,b){var c=new Set;a=$xc(a,b);a=_.m(a);for(b=a.next();!b.done;b=a.next())(b=LK(b.value))&&c.add(b);return[].concat(_.fc(c))},$xc=function(a,
b){return b.map(function(c){var d=c.zw();d=d?[].concat(_.fc(d.WR()),_.fc(_.yb(d,_.vk,3))):[];var e=c.vf();e=(e=e&&_.xe(e))?$xc(a,[e]):[];return[].concat(_.fc(_.Jk(c)),[c.Am(),c.Zr(),c.oq(),c.BD()],_.fc(d),_.fc(e))}).flat().filter(function(c){return c&&!!LK(c)})};Zxc.prototype.Hd=function(a){return Uxc(this.H,a).filter(function(b){return"ACCOUNT"!==b})};
var lyc=function(a){return cxc(new bxc,Txc(a.H))},myc=function(a,b){return b.map(function(c){c=c.clone();var d=$xc(a,[c]);d=_.m(d);for(var e=d.next();!e.done;e=d.next())e=e.value,_.vb(e,3),_.vb(e,8),_.vb(e,5);return c})},oyc=function(a,b){return b.some(function(c){return nyc(a,c)})},nyc=function(a,b){return $xc(a,[b]).some(function(c){return _.lj(c,3)||c.wq()||_.lj(c,5)})},eyc=function(a,b){var c=a.H.get(LK(b));if(c){a=c.person.clone();var d=_.eic(b.$c(a.getName()),a.getEmail());c=Jxc(c);_.u(d,16,
c);(a=_.x(a,Ywc,4))&&b.Mn(a.getUrl())}},ayc=function(a,b){var c=LK(b);c=$wc(Zwc(new LL,c).$c(b.getName()),b.getEmail());var d=new Ywc;d=_.u(d,1,_.y(b,5));c=_.F(c,4,d);_.Q(a.O,9,!1)&&(_.vb(b,3),_.vb(b,8),_.vb(b,5));return c},pyc=function(){this.suggestionSessionId=this.W=null;this.V=[];this.incompleteSearch=!1;this.O=[];this.H=!0};pyc.prototype.Uf=function(){return this.suggestionSessionId};pyc.prototype.CBa=function(){return this.O};pyc.prototype.lc=function(){return this.H};
var qyc=function(a){if(!a)return null;a=a.split("/");return 2>a.length?null:a[1]},ryc=function(a,b){a=qyc(a);b=qyc(b);return!(!a||!b||a!==b)},syc=function(a){return a.qc()+"_"+qyc(a.getName())},tyc=function(a,b){var c=_.se(a,1).map(function(d,e){return b[Number(e)].value.j6a.promise});return Promise.allSettled(c).then(function(d){return _.se(a,1).map(function(e,f){e=e.toString();var h=new Wwc;e=_.u(h,1,e);f=d[Number(f)];"fulfilled"===f.status?e.Dc(1):(e.Dc(3),e.Pe(f.reason.qg));return e})})},WL=function(a,
b){_.L.call(this);this.O=a;this.request=b;this.Ty=new Set;this.status=6;this.W=new Map;this.Ne=0};_.J(WL,_.L);_.g=WL.prototype;_.g.Yh=function(a){var b=this;this.Ty.add(a);return this.resize().then(function(){return b.QO(a)})};_.g.ek=function(a){this.Ty.delete(a);0===this.Ty.size&&this.dispose()};_.g.Ve=function(){return this.Ne};_.g.mi=function(a){this.Ne=a};
_.g.HD=function(a,b,c){var d=this;c=void 0===c?1:c;var e=!1;a.forEach(function(f){e=d.lw(f,c)||e});b||(e=1!==this.status||e,this.status=1);return e?this.BY():_.Vh([])};_.g.BY=function(){for(var a=[],b=_.m(this.Ty.values()),c=b.next();!c.done;c=b.next())a.push(this.QO(c.value));return _.Xh(a)};
_.g.AY=function(a){this.status=3;for(var b=[],c={},d=_.m(this.Ty.values()),e=d.next();!e.done;c={Ura:c.Ura},e=d.next())c.Ura=e.value,b.push(this.O.then(function(f){return function(h){return void h.AY(f.Ura,a)}}(c)));return _.Xh(b)};_.g.GA=function(){for(var a=this,b=[],c={},d=_.m(this.Ty.values()),e=d.next();!e.done;c={Vra:c.Vra},e=d.next())c.Vra=e.value,b.push(this.O.then(function(f){return function(h){return void h.GA(f.Vra)}}(c)));return _.Xh(b).then(function(){a.mi(0===a.Ve()?1:6)})};
_.g.resize=function(){var a=this;return this.O.then(function(b){var c=0;a.Ty.forEach(function(d){d=b.Ala(d);c=Math.max(c,d.vi?d.vi()||0:0)});a.kga(c)})};var uyc=function(a,b){return b?a.W.get(a.ala(b))||null:null};_.g=WL.prototype;_.g.fG=function(a,b){var c=uyc(this,a);b=tvc(c,b);this.W.set(this.ala(a),b)};_.g.ala=function(a){return a};_.g.vOa=function(){return[]};_.g.QO=function(a){var b=this;return this.O.then(function(c){return void c.QO(a,b.mk())})};_.g.removeItem=function(){};
var XL=function(a,b){_.ni.call(this,"Ab");this.error=a;this.retryCount=b};_.J(XL,_.ni);var YL=function(a,b){_.yi.call(this);this.request=a;this.pageToken="";this.H=this.O=!1;this.data=[];this.limit=0;this.W=b};_.J(YL,_.yi);var vyc=function(a){return!a.O||""!==a.pageToken};YL.prototype.lh=function(a){this.limit=void 0===a?1E5:a;return!this.H&&this.data.length<=this.limit&&vyc(this)?wyc(this):_.Vh([])};
var wyc=function(a){a.O=!0;a.H=!0;var b=a.hja(a.request,a.limit-a.data.length,a.pageToken);return a.W(b).then(function(c){return xyc(a,c)},function(c){return a.handleError(c)})},xyc=function(a,b){a.H=!1;a.pageToken=a.tla(b);b=a.Gka(b);b.forEach(function(c){return a.data.push(c)});a.a7(b);return a.data.length<a.limit&&vyc(a)?_.Xh([_.Vh(b),wyc(a)]).then(function(c){return c[0].concat(c[1])}):_.Vh(b)};
YL.prototype.handleError=function(a){this.H=!1;a=_.uI(a);var b=new XL(a);this.wOa(b);this.dispatchEvent(b);return _.Wh(a)};YL.prototype.a7=function(){};YL.prototype.wOa=function(){};var yyc=function(a,b,c){YL.call(this,c,function(d){return a.then(function(e){return e.Oe(d)}).then(null,function(e){KK(e)})});this.V=b};_.J(yyc,YL);_.g=yyc.prototype;_.g.hja=function(a,b,c){a=a.clone();a.Fi(b);return new _.yhc(a,c)};_.g.tla=function(a){return a.pageToken||""};_.g.Gka=function(a){return a.response.H()};
_.g.a7=function(a){this.V.HD(a,!1,1)};_.g.wOa=function(a){this.V.JB(this.request,a)};var zyc=function(a,b,c,d){WL.call(this,a,d.clone());this.ha=b;this.V=c;this.data=[];this.H=null};_.J(zyc,WL);_.g=zyc.prototype;_.g.refresh=function(){this.GA();this.H=new yyc(this.ha,this.V,this.request);return this.H.lh(this.request.vi()||100)};_.g.Hp=function(a){return this.data.find(function(b){return ryc(b.getName(),a)})};
_.g.kga=function(a){this.H&&a===this.request.vi()||(this.request.Fi(a),this.H?this.H.lh(a):this.refresh())};_.g.mk=function(){var a=this,b=Vwc((new KL).Dc(this.status),this.data.filter(function(c){return a.V.LEa(c)}).map(function(c){return c.clone()}));return new _.nK(b,void 0,void 0,this.Ve())};_.g.HD=function(a,b,c){var d=this;a=a.filter(function(e){return e.qc()===d.request.qc()});return WL.prototype.HD.call(this,a,b,c)};
_.g.lw=function(a,b){b=void 0===b?1:b;if(!$nc(uyc(this,a.getName()),b))return!1;var c=-1===b?0:this.data.length,d=this.data.findIndex(function(e){return ryc(e.getName(),a.getName())});-1<d&&(this.data.splice(d,1),c=d);this.data.splice(c,0,a);this.fG(a.getName(),b);return!0};_.g.removeItem=function(a){_.ya(this.data,function(b){return ryc(b.getName(),a)})&&(this.W.delete(this.ala(a)),this.BY())};_.g.ala=function(a){return qyc(a)};_.g.fG=function(a,b){this.Hp(a)&&WL.prototype.fG.call(this,a,b)};
_.g.vOa=function(a){var b=this;return a instanceof _.zJ&&a.qc()===this.request.qc()?a.qW().map(function(c){return b.Hp(c.Fm())}).filter(function(c){return!!c}).map(function(c){return c.clone()}):[]};var ZL=function(){this.H=new Map};ZL.prototype.Yh=function(a,b){var c=this.getKey(b),d=this.H.get(c),e=!d;d||(d=this.kja(b),this.H.set(c,d));d.Yh(a);return e};var Ayc=function(a,b,c){var d=a.getKey(c),e=a.H.get(d),f=!e;e||(e=a.uya(c),a.H.set(d,e));e.Yh(b);return f};
ZL.prototype.ek=function(a,b){var c=this.H.get(this.getKey(b));c&&(c.ek(a),c.isDisposed()&&this.H.delete(this.getKey(b)))};var Byc=function(a,b,c){var d=a.H.get(a.getKey(c));d&&(d.ek(b),d.isDisposed()&&a.H.delete(a.getKey(c)))},Cyc=function(a,b){return a.H.get(b)};ZL.prototype.HD=function(a,b,c){var d=this;c=void 0===c?1:c;var e=a.filter(function(f){return d.LEa(f)});this.H.forEach(function(f){f.HD(e,b,c)})};ZL.prototype.removeItem=function(a,b){b=b?this.H.get(b):null;(b?[b]:this.H).forEach(function(c){c.removeItem(a)})};
var Dyc=function(a,b){a=Array.from(a.H.values()).map(function(c){return c.vOa(b)});return[].concat.apply([],_.fc(a))};ZL.prototype.fG=function(a,b){this.H.forEach(function(c){c.fG(a,b)})};ZL.prototype.LEa=function(){return!0};ZL.prototype.JB=function(a,b){(a=this.H.get(this.getKey(a)))&&a.AY(b)};ZL.prototype.y3=function(a,b,c,d){var e=this.getKey(b),f=this.H.get(e);f||(f=this.kja(b),f.mi(c),this.H.set(e,f),this.HD(a,d))};
var Eyc=function(){this.H=new Set;this.V=0;this.O=[]},Fyc=function(a,b){a.H.add(b)},Gyc=function(a,b){var c;if(c=b instanceof _.Ik)c=b.Aw(),c=!!(b.Ph()&&c&&c<=Math.max.apply(Math,_.fc([a.V].concat(_.fc(a.O)))));if(c)return!0;b=b instanceof _.Ik?b.getId():b;return a.H.has(b)},Hyc=function(a,b){return _.ya(a.O,function(c){return c===b})&&b>a.V?(a.V=b,!0):!1};Eyc.prototype.S9=function(a){var b=this;return a.filter(function(c){return!Gyc(b,c)})};
var Iyc=function(a,b){this.H=new Map;this.V=a;this.W=b;this.O=new Eyc};_.J(Iyc,ZL);var Jyc=function(a,b){Fyc(a.O,syc(b));(a=Cyc(a,b.qc()))&&a.BY()};_.g=Iyc.prototype;_.g.getKey=function(a){return a.qc()};_.g.kja=function(a){return new zyc(this.V,this.W,this,a)};_.g.uya=function(a){return new zyc(this.V,this.W,this,a)};_.g.Do=function(a){a=_.m(a);for(var b=a.next();!b.done;b=a.next())(b=b.value.getItem())&&(b=Cyc(this,b.getId()))&&b.refresh()};_.g.LEa=function(a){return!Gyc(this.O,syc(a))};
var Kyc=function(a){var b=new _.cI;b.Nb(a);return b},Lyc=function(){_.yi.call(this);this.H=Date.now()};_.J(Lyc,_.yi);Lyc.prototype.KF=function(){this.H=Date.now();this.dispatchEvent("Bb")};
var Myc=function(a,b){this.O=a;this.H=b},Nyc=function(a,b){b=_.tWb(b);var c=new yyc(a.O,a.H,b);new Promise(function(d,e){return c.lh(100).then(d,e)})},Oyc=function(){this.Dd={}},$L=function(a,b){Pyc(a,"subscribed");b&&Pyc(a,b);return a.Dd[b||"subscribed"].be.promise},Pyc=function(a,b){a.Dd[b]||(a.Dd[b]={count:0,sS:[],j4a:[],be:_.Yh()});a.Dd[b].count++},aM=function(a,b){b&&!Qyc(a,b)||Qyc(a,"subscribed")},Qyc=function(a,b){if(!a.Dd[b])return!1;a.Dd[b].count--;0===a.Dd[b].count&&(a.Dd[b].be.resolve({items:a.Dd[b].sS,
oOb:a.Dd[b].j4a}),_.bb(a.Dd,b));return!0};Oyc.prototype.Do=function(a,b){var c=this,d=b||"subscribed";a.forEach(function(e){var f=e.uc();f&&f===e.qc()&&c.Dd[f]&&c.Dd[f].j4a.push(e);c.Dd[d]&&c.Dd[d].sS.push(e)})};var Ryc=function(a,b,c){YL.call(this,a,c);this.V=b};_.J(Ryc,YL);Ryc.prototype.hja=function(a,b){return a.clone().Fi(b)};Ryc.prototype.tla=function(){return""};Ryc.prototype.Gka=function(a){return[a]};Ryc.prototype.a7=function(a){this.V(a)};
var Syc=function(a,b,c,d){WL.call(this,a,d.clone());this.ka=b;this.H=this.V=null;this.ha=c};_.J(Syc,WL);Syc.prototype.refresh=function(){var a=this;this.GA();this.H=new Ryc(this.request,this.ha,function(b){return a.ka.then(function(c){return c.Oe(b)})});return this.H.lh(this.request.vi()||0)};Syc.prototype.kga=function(a){1===this.status||this.H&&a===this.request.vi()||(this.request.Fi(a),this.H?this.H.lh(a):this.refresh())};
Syc.prototype.mk=function(){if(this.V)return this.V;var a=new xL;a.Dc(this.status);return a};Syc.prototype.lw=function(a){this.V=a;return!0};var Tyc=function(a,b,c){this.H=new Map;this.O=a;this.W=b;this.V=c};_.J(Tyc,ZL);_.g=Tyc.prototype;_.g.log=function(a){this.V.info("drive.ds.sync.cache.SuggestedWorkspaceCacheManager",a)};_.g.getKey=function(a){return a.toString()};_.g.kja=function(a){var b=this;return new Syc(this.O,this.W,function(c){b.HD(c,!1)},a)};_.g.uya=function(){throw Error("Cf");};
_.g.y3=function(a,b,c,d){var e=a[0].Yk();this.log("Initialized "+e.length+" suggested workspaces: "+e.map(function(f){return f.tq()}).join(", "));ZL.prototype.y3.call(this,a,b,c,d)};var Uyc=function(a,b,c,d){_.yi.call(this);this.request=a;this.Ba=b;this.ta=c;this.wa=d;this.ma=0;this.be=null;this.O=new Set};_.J(Uyc,_.yi);
Uyc.prototype.lh=function(){var a=this;if(this.be)return this.be.promise;this.be=_.Yh();for(var b={},c=_.m(this.W(this.request)),d=c.next();!d.done;b={ksa:b.ksa,qfa:b.qfa},d=c.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;b.qfa=d;b.ksa=e;this.ma++;this.Ba.then(function(f){return function(h){return h.Oe(f.ksa)}}(b)).then(function(f){return function(h){var k=f.qfa;a.V(h);Vyc(a,k)}}(b),function(f){return function(h){return void a.handleError(f.qfa,h)}}(b))}return this.be.promise};
var Vyc=function(a,b){a.O.add(b);a.O.size===a.ma?(a.ha(a.request),a.dispatchEvent("zb"),a.be.resolve()):a.dispatchEvent("wb")};Uyc.prototype.handleError=function(a,b){b=_.wd(b);var c=b.qg;5===c.Ev()||4===c.Xj()?(this.wa.info("drive.ds.sync.query.SimpleFindByIdsRunner","Deleting "+a+" due to: "+b.message),this.ka(a),Vyc(this,a)):(a=new XL(c,_.Dj(this.ta.Sf(),1,1)),this.dispatchEvent(a),this.be.reject(b))};var Wyc=function(a,b,c,d,e){Uyc.call(this,a.clone(),c,d,e);this.H=b};_.J(Wyc,Uyc);
Wyc.prototype.W=function(a){var b=new Map;_.se(a,1).forEach(function(c){var d=_.zVb(a.clone(),[c]);b.set(c,d)});return b};Wyc.prototype.V=function(a){var b=[];a.AU().forEach(function(c){b.push(c)});this.H(b,!0)};Wyc.prototype.ha=function(){this.H([],!1)};Wyc.prototype.ka=function(a){this.H([Kyc(a)],!0)};var Xyc=function(a,b,c,d,e,f){WL.call(this,a,f.clone());this.ma=b;this.V=c;this.ka=d;this.ha=e;this.Rk={};this.H=null};_.J(Xyc,WL);
Xyc.prototype.refresh=function(){this.H=new Wyc(this.request,this.ha,this.ma,this.V,this.ka);return this.H.lh()};Xyc.prototype.kga=function(){this.H||this.refresh()};Xyc.prototype.mk=function(){var a=new _.lK;a.Dc(this.status);_.Ta(this.Rk,function(b,c){a.AU().set(c,b||new _.cI)});a.mi(this.Ve());return a};Xyc.prototype.lw=function(a){var b=a.getId();if(_.Cj(a,Kyc(a.getId()))){if(this.Rk[b])return delete this.Rk[b],!0}else if(0<=_.se(this.request,1).indexOf(b))return this.Rk[b]=a,!0;return!1};
var Yyc=function(a,b){a=a.getState();return null==a||b.getState()==a},Zyc=function(a,b,c){YL.call(this,a,c);this.V=b};_.J(Zyc,YL);Zyc.prototype.hja=function(a,b,c){a=a.clone();a.Fi(b);return new _.Lhc(a,c)};Zyc.prototype.tla=function(a){return a.pageToken||""};Zyc.prototype.Gka=function(a){return a.response.Yk()};Zyc.prototype.a7=function(a){this.V(a)};var $yc=function(a){this.H=_.gdc(a,{numeric:!0})};
$yc.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=_.Ha(b.getId(),c.getId())*(a?1:-1);return f};$yc.prototype.V=function(a,b,c){var d=_.y(b,4),e=_.y(c,4),f;d!==e?f=_.Ha(d,e)*(a?1:-1):f=_.Ha(b.getId(),c.getId())*(a?1:-1);return f};var azc=function(a,b,c,d,e){WL.call(this,a,e.clone());this.ha=b;this.Rk=[];this.H=null;this.V=d;a=new $yc(c);b=(c=this.request.Kx())?c.getType():0;c=c?c.Tf():0;this.ka=1===b?a.O.bind(a,2!==c):a.V.bind(a,1===c)};
_.J(azc,WL);azc.prototype.refresh=function(){var a=this;this.GA();this.H=new Zyc(this.request,this.V,function(b){return a.ha.then(function(c){return c.Oe(b)})});return this.H.lh(this.request.vi()||0)};azc.prototype.kga=function(a){1===this.status||this.H&&a===this.request.vi()||(this.request.Fi(a),this.H?this.H.lh(a):this.refresh())};azc.prototype.mk=function(){var a=new ML;a.Dc(this.status);exc(a,this.Rk.map(function(b){return b.clone()}));return new _.qK(a,void 0,1!==this.status&&vyc(this.H),this.Ve())};
azc.prototype.lw=function(a){var b=_.ya(this.Rk,function(c){return c.getId()===a.getId()});return a&&Yyc(this.request,a)&&!_.Cj(a,Kyc(a.getId()))?znc(this.Rk,a,this.ka):b};var bzc=function(a,b,c,d){this.H=new Map;this.V=a;this.ha=b;this.W=c;this.O=d;this.logName="drive.ds.sync.cache.WorkspaceCacheManager"};_.J(bzc,ZL);_.g=bzc.prototype;_.g.log=function(a){this.W.info(this.logName,a)};_.g.getKey=function(a){return a.toString()};
_.g.kja=function(a){var b=this;return new azc(this.V,this.ha,ZK(_.eI(this.O)),function(c){return void b.HD(c,!1)},a)};_.g.uya=function(a){var b=this;return new Xyc(this.V,this.ha,this.O,this.W,function(c,d){return b.HD(c,d)},a)};_.g.y3=function(a,b,c,d){this.log("Initialized "+a.length+" items for workspaces: "+a.map(function(e){return e.getId()}).join(", "));ZL.prototype.y3.call(this,a,b,c,d)};
var czc=function(a,b){b=void 0===b?!1:b;var c=a.getMimeType();OK(a)&&(c=(c=a.vf())?_.y(c,3):"");PK(a)&&(a.Li()&&(c+="+"+String(a.Li())),a.yj()&&(c+="+shared"));return _.nfa(c,b?"32":"16")},dzc=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("&")},ezc=function(a,b){var c=_.N(a,44),d=a.vf();if(d){if(1!==_.ze(d))return null;c=(c=_.xe(d))?_.N(c,44):!0}if(!c)return null;c={};d=a.getId();OK(a)&&(d=Rnc(a));
d=[_.z(b,65,"https://lh3.google.com"),"u",_.vI(_.eI(b)),"d",d].join("/");_.Q(b,89,!1)&&_.lj(a,140)&&(c.resourcekey=_.Ok(a));return d=dzc(d+"={size}",c)},fzc=function(a){this.H=a},hzc=function(a,b,c){if(c.includes(20)&&c.includes(3)){var d=czc(b,_.Q(a.H,75,!1));_.u(b,21,d)}c.includes(18)&&_.pic(b,Ioc(b,a.H));c.includes(19)&&(d=ezc(b,a.H),_.u(b,20,d));gzc(a,b,c);if(OK(b)){if(d=(d=b.vf())&&_.xe(d)){if(c.includes(20)&&c.includes(3)){var e=czc(d,_.Q(a.H,75,!1));_.u(d,21,e)}c.includes(18)&&_.pic(d,Ioc(d,
a.H));c.includes(19)&&(e=ezc(d,a.H),_.u(d,20,e));gzc(a,d,c)}_.u(b,44,!!b.Az())}},gzc=function(a,b,c){var d=c.includes(41);c=c.includes(42);if(d||c){var e=b.getMimeType();e&&(e=!PK(b)&&!OK(b)&&!_.fe(e)&&(!b.T7()||2!==b.Bp()),d&&_.u(b,40,e),e&&c&&(a=a.H,d=b.getId(),OK(b)&&(d=Rnc(b)),c=new _.Zi(_.z(a,16,"")+"/uc"),_.dj(c,"id",d),_.dj(c,"authuser",_.vI(_.eI(a))),_.dj(c,"export","download"),_.Q(a,89,!1)&&_.lj(b,140)&&_.dj(c,"resourcekey",_.Ok(b)),_.u(b,41,c.toString())))}},izc=function(a,b){this.tja="";
this.startTime=b||new Date;this.H=a;this.Iaa=Koc(a)};izc.prototype.clone=function(){return new izc(this.H,this.startTime)};var jzc=function(){this.H=null;this.rZ=[]},kzc=function(a){return _.Bf(a.rZ,function(b){return _.eb(b)})};jzc.prototype.GN=function(){return this.H};
jzc.prototype.O=function(a,b,c){if(this.H){var d=this.H;if(!a["X-Google-DapperTraceInfo"]){var e=new jxc;e.V=ixc(d.Iaa);var f=_.oh().substring(0,8);d=Koc(f);f=(new Hwc).Nb(f);f=_.u(f,2,d);b=_.u(f,3,b).zi(c);this.rZ.push(b);e.O=ixc(d);e.H=gxc(808464432,808464432);e.W=41;b=String.fromCharCode;c=b.apply;d=new _.Qj;if(e.V){f=e.V.O>>>0;var h=e.V.H>>>0;_.Rj(d,1,1);var k=d.H;Hpc(k,f);Hpc(k,h)}e.O&&(f=e.O.O>>>0,h=e.O.H>>>0,_.Rj(d,2,1),k=d.H,Hpc(k,f),Hpc(k,h));f=e.W;null!=f&&(_.Rj(d,3,5),Hpc(d.H,f));e.H&&
(f=e.H.O>>>0,e=e.H.H>>>0,_.Rj(d,4,1),h=d.H,Hpc(h,f),Hpc(h,e));e=_.Sj(d);a["X-Google-DapperTraceInfo"]=_.aa.btoa(c.call(b,null,e))}}};var lzc=function(){this.Fb=[];this.O=this.H=0};lzc.prototype.discard=function(a){for(var b=this.H,c=this.O,d=this.Fb,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 mzc=function(a,b){if(!c)var c=b.length;for(var d=a.H,e=a.O,f=a.Fb,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},nzc=function(a){this.key=a;this.H=new _.Lgc;this.O=new _.Jgc(new _.Lgc,_.Uma(a))};nzc.prototype.encrypt=function(a){for(var b=[],c=0;16>c;c++)b[c]=Math.floor(256*Math.random());b=Ksc(b);c=ozc(this,a);return b.concat(c,pzc(this,b,a,!0))};
var qzc=function(a,b){var c=pzc(a,b.substring(0,16),b.substring(36),!1);b=b.substring(16,36);a=ozc(a,c);if(b!==a)throw Error("Df");return c},ozc=function(a,b){a=_.Kgc(a.O,_.Ugc(b));return Ksc(a)},pzc=function(a,b,c,d){a.H.reset();a.H.update(b);a.H.update(a.key);b=new lzc;a=a.H.digest();if(!e)var e=a.length;for(var f=b.Fb,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=_.Ugc(c.substring(8192*
e,8192*(e+1))),mzc(b,a),d+=Ksc(a);return d}d=[];for(e=0;e<c.length/8192;e++){a=c.substring(8192*e,8192*(e+1));f=_.aa.Uint8Array?new Uint8Array(a.length):Array(a.length);for(h=0;h<a.length;h++)f[h]=a.charCodeAt(h)&255;a=f;mzc(b,a);d.push(a)}if(d.length){for(c=0;c<d.length-1;c++)if(8192!==d[c].length)throw Error("Ef");c=8192*(d.length-1)+d[d.length-1].length;b=Array(c);for(a=e=0;e<c;)f=rzc(d,e++),128>f?b[a++]=String.fromCharCode(f):191<f&&224>f?(h=rzc(d,e++),b[a++]=String.fromCharCode((f&31)<<6|h&63)):
239<f&&365>f?(h=rzc(d,e++),k=rzc(d,e++),l=rzc(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=rzc(d,e++),k=rzc(d,e++),b[a++]=String.fromCharCode((f&15)<<12|(h&63)<<6|k&63));b.length=a;d=b.join("")}else d="";return d},rzc=function(a,b){return a[Math.floor(b/8192)][b%8192]},szc=function(a,b,c){this.data=a;this.h1a=b;this.H=c;this.isEncrypted=!1};szc.prototype.getData=function(){return this.data};
szc.prototype.Tm=function(){return this.h1a};var tzc=function(a,b,c,d){this.O=a;this.H=_.Yh();this.np=!1;this.V=_.z(b,7,"");this.W=_.Dj(_.$K(b),6,2E7);this.jF=_.lI(b);this.ha=_.Dj(_.$K(b),12,0);this.ka=c;this.Xf=d||null};tzc.prototype.initialize=function(){var a=this;this.np||(this.np=!0,this.O.initialize().then(function(){a.H.resolve()},function(b){a.H.reject(b)}));return _.fi(this.H.promise)};
tzc.prototype.yB=function(a){if(a instanceof _.UB)return 0;if(a instanceof IL)return 1;if(a instanceof atc)return 5;if(a instanceof vL)return 3;if(a instanceof bxc)return 6;throw new _.Gc("Unsupported dataShard in getDataType");};var uzc=function(a){if(0==a)return _.UB;if(1==a)return IL;if(5==a)return atc;if(3==a)return vL;if(6==a)return bxc;throw new _.Gc("Unsupported dataType:"+a+" in getDataTypeCtor");};tzc.prototype.Vo=function(a){if(a instanceof vL)return a.Vo()};
tzc.prototype.Tm=function(a){if(a instanceof vL)return a.Bd().length};tzc.prototype.Jv=function(a){if(a instanceof vL)return a=a.Jv(),null!=a?a:void 0};
var zzc=function(a,b,c,d){if(0==c.length)return _.Vh();for(var e=a.yB(c[0]),f=_.m(c),h=f.next();!h.done;h=f.next())a.yB(h.value);var k=a.Vo(c[0]),l=0;3==e&&vzc(a,c);var p=!!b;return wzc(a,c).then(function(q){if(p){var r=a.Xf?a.Xf.H(106023,d):null;l=q.reduce(function(w,A){(A=A.Tm())&&(w+=A);return w},0);var v=xzc(a,b,q.map(function(w){return w.getData()})).then(function(w){if(w.length!=q.length)return _.Wh(Error("Ff"));w=_.m(w.entries());for(var A=w.next();!A.done;A=w.next()){var B=_.m(A.value);A=
B.next().value;B=B.next().value;A=q[A];A.data=B;A.isEncrypted=!0}return q});r&&(Wrc(Vrc(Urc(cL(r),_.iK(_.ogc,e)),_.iK(_.lgc,k)),!0),v.then(function(){var w=l;Trc(cL(r),!0).ew(w);r.Cj()},function(){var w=l;Trc(cL(r),!1).ew(w);r.Cj()}));return v}return q}).then(function(q){return a.H.promise.then(function(){return yzc(a.O,q,e,k,p,d)})})},wzc=function(a,b){return new _.Uh(function(c,d){var e=!1,f=[];b.forEach(function(l){if(!e){var p=l.Hc();p.length>a.W?e=!0:f.push(new szc(p,a.Tm(l),a.Jv(l)))}});if(e){var h=
Error("Gf"),k=new _.Fc;_.sI(k,2);_.II(k,23);_.u(k,21,h.message);_.Go(k);a.ka(k);d(h)}c(f)})},vzc=function(a,b){for(var c=_.m(b),d=c.next();!d.done;d=c.next());a.jF||Azc(b);if(a.ha)for(a=a.ha,c=b.length-1;0<=c;c--)if(b[c].Vo()){d=[];for(var e=b[c].Bd();e.length>a;){var f=_.ta(e,a-1,a);f=cvc(new vL,f);d.push(f)}cvc(b[c],e);d.length&&_.Ob(_.ta,b,c+1,0).apply(null,d)}},bM=function(a,b,c,d,e,f){var h=_.Yh(),k;_.Zh(a.H.promise.then(function(){return Bzc(a.O,c,d,e)}).then(function(l){var p=l.map(function(r){return r.data}),
q=new _.$h;if(l[0]&&l[0].p1){if(k=a.Xf?a.Xf.H(106022,f):null)Wrc(Vrc(Urc(cL(k),_.iK(_.ogc,c)),_.iK(_.lgc,d)),!0),q.ln().then(function(r){var v=k;r=void 0!=r;Trc(cL(v),r);_.Kjc(v)});Czc(a,q,b,p)}else q.callback(p);return _.Vh(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 (uzc(c))(JSON.parse(r)),q+=a.Tm(r),p.push(r);3==c&&(a.jF||Dzc(p),Ezc(p));k&&cL(k).ew(q)}h.resolve(p)}),function(){k&&k.Cj()}).ej(h.reject,h);return h.promise},
Azc=function(a){if(a.length){for(var b=0;b<a.length;b++)if(a[b].zN().length)return;b=new Map;for(var c=new Map,d=_.m(a),e=d.next();!e.done;e=d.next()){e=e.value.Bd()||[];e=_.m(e);for(var f=e.next();!f.done;f=e.next())if(f=f.value,_.nic(f,Fzc(_.Jk(f),b,c)),_.oic(f,Fzc([f.Am()],b,c)[0]),_.ric(f,Fzc([f.Zr()],b,c)[0]),_.vic(f,Fzc([f.oq()],b,c)[0]),_.yic(f,Fzc([f.BD()],b,c)[0]),f=f.zw())_.kic(f,Fzc(f.WR(),b,c)),_.lic(f,Fzc(_.yb(f,_.vk,3),b,c))}var h=[];b.forEach(function(k){h.push(k)});_.sj(a[0],2,h)}},
Fzc=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)?_.Cj(f,b.get(e))?d.push(c.get(e)):d.push(f):(b.set(e,f.clone()),f=new _.vk,f.Nb(e),c.set(e,f),d.push(f))):d.push(f)}return d},Dzc=function(a){var b=new Map,c=new Map;a[0]&&a[0].zN()&&a[0].zN().forEach(function(h){b.set(h.getId(),h);h=(new _.vk).Nb(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.Bd()||
[];e=_.m(e);for(var f=e.next();!f.done;f=e.next())if(f=f.value,_.nic(f,Gzc(_.Jk(f),b,c)),_.oic(f,Gzc([f.Am()],b,c)[0]),_.ric(f,Gzc([f.Zr()],b,c)[0]),_.vic(f,Gzc([f.oq()],b,c)[0]),_.yic(f,Gzc([f.BD()],b,c)[0]),f=f.zw())_.kic(f,Gzc(f.WR(),b,c)),_.lic(f,Gzc(_.yb(f,_.vk,3),b,c));_.tj(d,2)}}},Gzc=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();_.Cj(c.get(f),e)?d.push(b.get(f).clone()):d.push(e)}else d.push(e);return d},Ezc=
function(a){for(var b={},c=1;c<a.length;b={Zea:b.Zea},c++)if(!a[c].Vo()){for(var d=0,e=c;e<a.length&&!a[e].Vo();e++)d++;e=a[c-1];d=_.ta(a,c,d);b.Zea=e.Bd();d.forEach(function(f){return function(h){_.Ca(f.Zea,h.Bd())}}(b));cvc(e,b.Zea)}},xzc=function(a,b,c){if(!_.wgc()&&a.V){var d=new Worker(_.pca(_.My(a.V)),void 0),e=new _.$h;d.addEventListener("message",function(k){d.terminate();e.callback(k.data)},!1);d.addEventListener("error",function(k){d.terminate();e.Gd(Error(String(k)))},!1);c=mxc(new lxc,
c);d.postMessage({command:"encrypt",data:{request:c.Hc(),key:b}});return e}try{a=[];var f=new nzc(b);for(b=0;b<c.length;b++)a.push(f.encrypt(c[b]));var h=_.ei(a)}catch(k){h=_.gi(k)}return h},Czc=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(!_.wgc()&&a.V){var f=new Worker(_.pca(_.My(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 nzc(c);for(c=0;c<d.length;c++)a.push(qzc(h,d[c]));b.callback(a)}catch(k){b.callback(void 0)}},Hzc=/^[\w]+$/,Izc=function(a,b,c){return[a.Du(),a.clientId,b?"#":cM(a)].join(":")+":"+(c||"")},Jzc=function(a,b,c){this.global=void 0===c?!1:c;a.match(Hzc);this.key=a;this.value=b};Jzc.prototype.getKey=function(){return this.key};Jzc.prototype.Wa=function(){return this.value};
var Kzc=function(a,b){return{k:Izc(b,a.global,a.key),v:a.value}},Lzc=function(a,b){a=Izc(a,b);return Suc(a+"A",a+"z")},Mzc=function(a,b){this.H=a;this.O=b},Nzc=function(a){return a?new Mzc(a.versionKey,a.versionChangeTimestamp):null},Ozc=function(a,b){return a+":"+b},Pzc=function(a,b,c,d,e){this.data=a;this.index=b;this.size=c;this.timestamp=d;this.p1=void 0===e?null:e},Qzc=function(a){return{data:a.data,index:a.index,size:a.size,timestamp:a.timestamp,e:a.p1}},Rzc=function(a,b,c,d){a=cM(a)+"_"+b;
3===b&&(a+="_"+d);return a+=(0,_.Xs)(":%02d",c)},Szc=function(a,b,c,d){c=Rzc(a,b,void 0===c?0:c,d);a=cM(a)+"_"+b;3===b&&(a+="_"+d);return Suc(c,a+":a")},Tzc=function(a){var b=cM(a)+"_";a=cM(a)+"_A";return Suc(b,a)},Uzc=function(a){return a?new Pzc(a.data,a.index,a.size,a.timestamp,a.e):null},Vzc=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=_.Ba(e);_.Ka(this.fields);_.Ga(this.fields);this.H=
f};Vzc.prototype.Du=function(){return this.userId};Vzc.prototype.dh=function(){return _.Ba(this.fields)};
var cM=function(a){if(!a.O){var b=new _.RH;b.update([a.userId,a.clientId,a.W,a.V].join(":"));b.update(a.fields);a.O=_.Zec(b.digest())}return a.O},Wzc=function(a){return{versionKey:cM(a),versionInfo:{u:a.userId,c:a.clientId,pv:a.W,phk:a.V,f:a.fields},lastAccessedTimestamp:a.H}},Xzc=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 Vzc(c.u,c.c,c.pv,c.phk,c.f,a.lastAccessedTimestamp);b?a.O=d:cM(a)!==d&&(a=null);return a},dM=function(a,
b,c,d){c=void 0===c?null:c;d=void 0===d?!1:d;_.L.call(this);var e=this;this.Xf=b;this.W=c;this.readOnly=d;this.H=this.version=null;this.Ba=!1;this.wa=!0;this.V=null;this.ka=!1;this.O="";this.ma=null;this.Qa=a.then(function(f){e.version=f});this.Jb=new _.of(this);this.Ja(this.Jb)};_.J(dM,_.L);dM.prototype.initialize=function(){return Yzc(this)};
var Yzc=function(a,b){a.V||(a.V=_.Yh(),a.Qa.then(function(){b?(a.wa=!1,Zzc(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)"),_.Sdc("GoogleDriveDs",2,a.Ga.bind(a),a.ta.bind(a)).dg(a.La.bind(a),a.ta.bind(a)),_.Ci(2E4).then(a.Ia.bind(a)))},function(c){a.V.reject(new _.Gc("Database version error",void 0,_.rI(c)?c:void 0))}));return a.V.promise},Zzc=function(a,b){a.H=b;a.Jb.listen(a.H,"close",
a.ha.bind(a,"Browser closing database"));a.Jb.listen(a.H,"versionchange",a.ha.bind(a,"Database version change detected, closing"))};dM.prototype.Ga=function(a,b){this.log("Upgrading GoogleDriveDs to version "+a.newVersion);this.Ba=!0;_.Ma(b.H.objectStoreNames,function(c){return _.Kic(b,c)});_.Ta(_.CI,function(c){var d=_.Pgc.get(c);_.Pdc(b,c,d?{keyPath:d}:void 0)})};
dM.prototype.ta=function(a){var b;a&&a instanceof _.TH&&"InvalidStateError"==a.getName()&&_.jj.gv?b=Error("Hf"):_.rI(a)&&(b=a);this.ha("Unable to open database GoogleDriveDs (version 2)");this.V.reject(b);$zc(this,!1)};dM.prototype.La=function(a){this.ka?a.dispose():(Zzc(this,a),this.Ja(this.H),this.readOnly||aAc(this).then(null,function(){}),this.log("Initialized database GoogleDriveDs"),this.V.resolve(),$zc(this,!0))};
var $zc=function(a,b){if(a.ma){var c=a.ma,d=_.x(_.hK(c),Nrc,5);d||(d=new Nrc,c=_.hK(c),_.F(c,5,d));d=_.u(d,1,2);d=_.u(d,2,a.mj().W);d=_.u(d,5,a.mj().ka);b=_.u(d,3,b);b=_.u(b,4,a.Ba);_.u(b,6,a.mj().ma);a.ma.Cj();a.ma=null}};dM.prototype.Ia=function(){this.H||this.Ff()||(this.ha("Opening database GoogleDriveDs timed out."),this.ta(Error("If")))};dM.prototype.ha=function(a){this.log(a);this.ka||(this.ka=!0,this.O="Database disabled: "+a,this.H&&this.wa&&this.H.close())};dM.prototype.Ff=function(){return this.ka};
var bAc=function(a){return a.ka?a.O:null};dM.prototype.mj=function(){return this.version};
var eM=function(a,b,c){c=void 0===c?"readonly":c;if(a.readOnly&&"readonly"!=c)return null;a=a.H;try{return _.Qdc(a,[b],c)}catch(d){return null}},aAc=function(a){var b=_.CI.j0,c=eM(a,b,"readwrite");if(!c)return _.Wh(Error("Jf"));c.objectStore(b).put(Wzc(a.mj()));return _.Vh(c.wait()).then(function(){})},cAc=function(a){if(!a.H)return _.Wh(Error("Kf"));if(a.Ff())return _.Wh(Error(a.O));var b=_.CI.j0,c=eM(a,b,"readwrite");if(!c)return _.Wh(Error("Lf"));b=c.objectStore(b);return _.Vh(b.remove(cM(a.mj())))},
dAc=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=Uzc(e.value))&&(d[e.index]=e);if(!d[0])return b.reject(Error("Mf")),0;a=d[0].timestamp;if(!a)return b.reject(Error("Nf")),0;e=d[0].size;if(!e)return b.reject(Error("Of")),0;if(e>d.length)return b.reject(Error("Pf`"+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("Qf`"+e)),0;if(c&&a<c)return b.reject(Error("Rf`"+a+"`"+c)),d.length>
e?e:null;if(d.length>e)return b.resolve(d.slice(0,e)),e;b.resolve(d);return null},Bzc=function(a,b,c,d){if(!a.H||3==b&&void 0==c)return _.Wh(Error("Sf"));if(a.Ff())return _.Wh(Error(a.O));var e=Szc(a.mj(),b,0,c),f=_.CI.J6,h=eM(a,f);if(!h)return _.Wh(Error("Tf"));e=h.objectStore(f).getAll(e);var k=_.Yh();e.dg(function(l){l=dAc(l,k,d);a.readOnly||null==l||eAc(a,b,c,l).then(null,function(){})},k.reject);return k.promise},yzc=function(a,b,c,d,e,f){if(a.H){if(a.Ff())return _.Wh(Error(a.O));if(100<b.length||
3==c&&void 0==d)return _.Wh(Error("Uf"))}else return _.Wh(Error("Vf"));var h=Date.now(),k=b.length,l=b.map(function(v,w){return{key:Rzc(a.mj(),c,w,d),data:new Pzc(v.getData(),w,k,h,e),metadata:v}}),p=_.CI.J6;b=eM(a,p,"readwrite");if(!b)return _.Wh(Error("Wf"));p=b.objectStore(p);var q={};l=_.m(l);for(var r=l.next();!r.done;q={rfa:q.rfa},r=l.next())r=r.value,q.rfa=fAc(a,c,d,r.metadata,f),p.put(Qzc(r.data),r.key).then(function(v){return function(){var w=v.rfa;w&&(Trc(cL(w),!0),w.Cj())}}(q),function(v){return function(w){var A=
v.rfa,B=w instanceof _.TH?w.code:_.rdc;A&&a.W&&(w=Trc(cL(A),!1),B=_.iK(_.pgc,B),_.u(w,2,B),A.Cj())}}(q));return _.Vh(b.wait()).then(function(){})},fAc=function(a,b,c,d,e){if(a.W){var f=a.W.W;if(a=a.W.H(106019,e))b=Vrc(Urc(cL(a),_.iK(_.ogc,b)),_.iK(_.lgc,c)),f=_.u(b,5,f.Vo(d.H)),Wrc(f,d.isEncrypted),void 0!=d.Tm()&&cL(a).ew(d.Tm());return a}return null},eAc=function(a,b,c,d){d=void 0===d?0:d;if(a.H){if(a.Ff())return _.Wh(Error(a.O));if(3==b&&void 0==c)return _.Wh(Error("Xf"))}else return _.Wh(Error("Yf"));
b=Szc(a.mj(),b,d,c);c=_.CI.J6;a=eM(a,c,"readwrite");if(!a)return _.Wh(Error("Zf"));a.objectStore(c).remove(b);return _.Vh(a.wait()).then(function(){})},gAc=function(a){if(!a.H)return _.Wh(Error("$f"));if(a.Ff())return _.Wh(Error(a.O));var b=Tzc(a.mj()),c=_.CI.J6;a=eM(a,c,"readwrite");if(!a)return _.Wh(Error("ag"));a.objectStore(c).remove(b);return _.Vh(a.wait()).then(function(){})};
dM.prototype.getMetadata=function(a){if(this.H){if(this.Ff())return _.Wh(Error(this.O));if(a&&0==a.length)return _.Wh(Error("bg"))}else return _.Wh(Error("cg"));var b=this.mj(),c=_.CI.U7,d=eM(this,c);if(!d)return _.Wh(Error("dg"));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(_.Vh(c.get(Izc(b,e.global,e.key))));c=_.Xh(d)}else c=_.Xh([c.getAll(Lzc(b,!1)).then(),c.getAll(Lzc(b,!0)).then()]).then(function(f){var h=_.m(f);f=h.next().value;h=h.next().value;
return ync(f,h)});return c.then(function(f){return f.map(function(h){a:{if(h){var k=h.k.split(":"),l="#"===k[2];if(4===k.length&&(l||k[2]===cM(b))){h=k[0]!==b.Du()||k[1]!==String(b.clientId)?void 0:new Jzc(k[3],h.v,l);break a}}h=void 0}return h})})};
var hAc=function(a,b){if(a.H){if(a.Ff())return _.Wh(Error(a.O));if(0==b.length)return _.Wh(Error("eg"))}else return _.Wh(Error("fg"));var c=_.CI.U7,d=eM(a,c,"readwrite");if(!d)return _.Wh(Error("gg"));c=d.objectStore(c);d=[];b=_.m(b);for(var e=b.next();!e.done;e=b.next())d.push(c.put(Kzc(e.value,a.mj())).then());return _.Xh(d).then(function(){})},iAc=function(a,b){b=void 0===b?!1:b;if(a.H){if(a.Ff())return _.Wh(Error(a.O))}else return _.Wh(Error("ig"));var c=a.mj(),d=_.CI.U7;a=eM(a,d,"readwrite");
if(!a)return _.Wh(Error("jg"));d=a.objectStore(d);a=[];a.push(d.remove(Lzc(c,!1)).then());b&&a.push(d.remove(Lzc(c,!0)).then());return _.Xh(a).then(function(){})},jAc=function(a){if(!a.H)return _.Wh(Error("kg"));if(a.Ff())return _.Wh(Error(a.O));var b=Ozc(a.mj().Du(),a.mj().clientId),c=_.CI.XU;a=eM(a,c);if(!a)return _.Wh(Error("lg"));c=a.objectStore(c);return _.Vh(c.get(b)).then(function(d){return Nzc(d)})},kAc=function(a,b){b=void 0===b?!1:b;if(!a.H)return _.Wh(Error("mg"));if(a.Ff())return _.Wh(Error(a.O));
var c=a.mj(),d=Ozc(c.Du(),c.clientId);b=new Mzc(cM(c),b?Date.now():void 0);c=_.CI.XU;a=eM(a,c,"readwrite");if(!a)return _.Wh(Error("ng"));a.objectStore(c).put({versionKey:b.H,versionChangeTimestamp:b.O},d);return _.Vh(a.wait())};dM.prototype.Il=function(a){var b=this;return this.H?this.Ff()?_.Wh(Error(this.O)):jAc(this).then(function(c){var d=cM(b.mj());if(c)if(a){if(!c.O&&d==c.H&&d!=cM(a))return kAc(b,!0);if(c.O&&d==cM(a))return kAc(b)}else{if(d!=c.H)return kAc(b)}else if(!a)return kAc(b)}):_.Wh(Error("og"))};
var lAc=function(a){if(!a.H)return _.Wh(Error("pg"));if(a.Ff())return _.Wh(Error(a.O));var b=a.mj(),c=Ozc(b.Du(),b.clientId);return jAc(a).then(function(d){if(d){d=_.CI.XU;var e=eM(a,d,"readwrite");if(e)return e.objectStore(d).remove(c).then()}})};
dM.prototype.clear=function(a){var b=this;a=void 0===a?!1:a;return this.H?this.Ff()?_.Wh(Error(this.O)):jAc(this).then(function(c){var d=c&&c.H==cM(b.mj());return d&&!a?!1:(c&&d?lAc(b):_.Vh()).then(function(){return _.Xh([iAc(b,a),gAc(b),cAc(b)]).then(function(){return!0},function(){return!1})},function(){return!1})}):_.Wh(Error("qg"))};dM.prototype.close=function(){this.ha("Closing database")};dM.prototype.log=function(a){this.Xf.info("drive.ds.sync.storage.VersionedDb",a)};
var mAc=function(a){if(1>=a.mj())return!1;var b=a.H.objectStoreNames;return _.Ya(_.CI).every(function(c){return b&&b.contains(c)})},nAc=function(){var a=_.Yh();_.Sdc("GoogleDriveDs").dg(function(b){b?mAc(b)?a.resolve(b):(b.close(),_.Vh(Tuc()).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},oAc=function(a,b,c){var d=_.Yh();a?_.Qdc(a,[_.CI.j0],"readonly").objectStore(_.CI.j0).getAll().dg(function(e){e=
_.Ya(e).map(function(f){return Xzc(f)}).filter(function(f){return null!=f});d.resolve(e.filter(function(f){return(!b||f.Du()==b)&&(!c||f.clientId==c)}))},d.reject):d.resolve([]);return d.promise},pAc=function(a,b,c){var d=_.Yh();nAc().then(function(e){if(e){var f=_.CI.XU;_.Qdc(e,[f],"readonly").objectStore(f).get(a+":"+b).then(function(h){return Nzc(h)}).then(function(h){if(h){var k=0;"number"==typeof c&&"number"==typeof h.O&&(k=c+h.O-Date.now());var l=_.CI.j0,p=_.Qdc(e,[l],"readonly");p.objectStore(l).get(h.H).then(function(q){(q=
Xzc(q))?(q.ka=!0,0>k?q.ha=!0:0<k&&(q.ma=k),d.resolve(q)):d.resolve(null)});_.bi(p.wait(),function(){e.close()})}else d.resolve(null),e.close()},function(h){d.reject(h);e.close()})}else d.resolve(null)},d.reject);return d.promise},qAc=function(a,b,c){var d=_.Yh(),e=new dM(_.Vh(a),b);Yzc(e,c).then(function(){return d.resolve(e)},d.reject);return d.promise},rAc=function(a,b,c,d,e){e=void 0===e?!1:e;var f=[];a.forEach(function(h){var k=qAc(h,b,c);f.push(k.then(function(l){return l.clear(e)}).then(function(l){return l?
h:void 0}))});_.Xh(f).then(function(h){var k=[];h.forEach(function(l){l&&(k.push(l),b.info("drive.ds.sync.storage.VersionedDb","Cleared version: "+cM(l)))});d.resolve(k)})},sAc=function(a,b,c){var d=Date.now()-12096E5,e=_.Yh();nAc().then(function(f){f?(_.Zh(e.promise,function(){f.close()}),oAc(f,a,b).then(function(h){return h.filter(function(k){return k.H<d})},function(){return[]}).then(function(h){rAc(h,c,f,e)})):e.resolve([])});return e.promise},tAc=function(a,b,c){var d=_.Yh();nAc().then(function(e){e?
(_.Zh(d.promise,function(){e.close()}),oAc(e,a,b).then(function(f){rAc(f,c,e,d,!0)})):d.resolve([])});return d.promise},uAc=function(a,b,c,d){if(a.length){var e=_.CI.J6,f=a.shift(),h=Rzc(f,3,0,1);try{_.Qdc(c,[e],"readonly").objectStore(e).get(h).then(function(k){(k=Uzc(k))&&(!k.p1||k.p1&&d.has(f.V))?b.resolve(f):uAc(a,b,c,d)},function(){return b.resolve(null)})}catch(k){b.resolve(null)}}else b.resolve(null)},vAc=function(a,b,c,d,e,f,h){var k=_.Yh();nAc().then(function(l){l?(_.Zh(k.promise,function(){l.close()}),
oAc(l,a,b).then(function(p){return p.filter(function(q){return(!h||h!=cM(q))&&q.W==c&&q.H>=e&&Qnc(d.filter(function(r){return!_.Qgc.has(r)}),q.dh(),b)})},function(){return[]}).then(function(p){p.length?(p.sort(function(q,r){return r.H-q.H}),uAc(p,k,l,new Set(f))):k.resolve(null)})):k.resolve(null)});return k.promise},wAc={key:"rid",global:!0},xAc={key:"ooi",global:!0},yAc={key:"rtds",global:!1},zAc={key:"dct",global:!1},AAc={key:"pc",global:!1},BAc=function(a){this.H=new _.Uh(function(b){a?a.initialize().then(function(){return b(a)},
function(){return b(null)}):b(null)})};BAc.prototype.get=function(a){return this.H.then(function(b){if(b&&!b.Ff())return b.getMetadata([a]).then(function(c){return(c=c[0])?c.Wa():void 0},function(){})})};BAc.prototype.set=function(a,b){return this.H.then(function(c){return c&&!c.Ff()?hAc(c,[new Jzc(a.key,b,a.global)]).then(function(){return!0},function(){return!1}):!1})};BAc.prototype.Bu=function(){return this.get(wAc).then(function(a){return a?a:null})};
BAc.prototype.kz=function(a){return this.set(wAc,a)};var CAc=function(a){return a.get(xAc).then(function(b){return"boolean"===typeof b?b:null})};BAc.prototype.hz=function(a){return this.set(xAc,a)};var DAc=function(a){return a.get(AAc).then(function(b){return"boolean"===typeof b?b:null})},EAc=function(a){return a.get(yAc).then(function(b){return Array.isArray(b)?b:null})},FAc=function(a){return a.get(zAc).then(function(b){return"number"===typeof b?b:null})},GAc=function(){this.aj=[]};_.J(GAc,_.xK);
GAc.prototype.add=function(a,b){var c=a.Xv.jx;return c instanceof _.DJ&&_.y(c.request,12)?_.xK.prototype.add.call(this,a,b):!1};GAc.prototype.Gta=function(a){return this.aj.splice(0,Math.min(a,1))};var HAc=function(a,b){this.aj=[];this.H=b};_.J(HAc,_.xK);HAc.prototype.add=function(a,b){return a.Xv.jx instanceof _.DJ?!1:_.xK.prototype.add.call(this,a,b)};
HAc.prototype.Gta=function(a){for(var b=[],c=[],d={},e=0,f=0;f<this.aj.length&&b.length<a;f++){var h=this.aj[f],k=h.Xv.jx;k instanceof _.WI||k instanceof _.hJ||k instanceof _.yJ?k="app|"+k.Hh():k instanceof _.RI||k instanceof _.SI||k instanceof _.YI||k instanceof _.wI?k="item|"+(k instanceof _.RI?k.qc():k.getId()):k instanceof _.ZI||k instanceof _.iJ?k="item|"+k.qc():k instanceof _.$I||k instanceof _.AJ?k="item|"+k.qc():k instanceof _.pD||k instanceof _.oD?(k=k instanceof _.pD?_.x(k,_.Vo,1).getKey():
k.getKey(),k="pref|"+_.y(k,2)+"|"+_.Wo(k)):k=k instanceof _.aJ?"td|"+k.getId():null;var l=h.Xv.jx;if(l instanceof _.UI)l=!!_.N(l,8);else if(l instanceof _.SI){l=this.H.H(l.getId());var p;if(p=!!l)p=!!(l&&l.getMimeType()&&_.Odb.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++)_.va(this.aj,c[a]);return b};
var IAc=function(a,b,c,d,e,f,h,k,l){a=a.Sf();h=new _.Elc(new _.Dlc(k,h,d,_.Dj(a,32,1073741824),_.Dj(a,21,1E3)));k=new _.clc(_.Dj(a,59,2E3),_.Dj(a,60,2E4),_.Dj(a,61,6));c=new _.alc(l?l:c,l?void 0:e);e={};e[1]=_.Glc(b,d);e[2]=_.Hlc(b,a,k,c,d);e[3]=_.Ilc(b,a,k,c,d,"batch");l=_.Dj(a,10,50);f=new _.zK(d,b,[_.blc(c),new _.flc(l,_.Dj(a,11,100)),new _.yK(l),new _.wK(k,d)],[new HAc(a,f),new GAc,new _.xK],[new _.olc(a,k,c.Jj(),d)],"mutation");return e[4]=f,e[5]=_.Jlc(h,a,d),e[6]=_.Ilc(b,a,k,c,d,"find_by_ids_batch"),
e[7]=_.Ilc(b,a,k,c,d,"xd4_batch"),e[8]=_.Ilc(b,a,k,c,d,"xd4_batch_one",1),e},lpc=function(a){return a.nextPageToken?a.nextPageToken:a.continuationToken?a.continuationToken:""},JAc=function(a){_.G.call(this,a)};_.J(JAc,_.G);JAc.prototype.Cb=function(){return _.y(this,1)};JAc.prototype.Dc=function(a){return _.u(this,1,a)};KAc=function(a,b){return _.F(a,2,b)};Fpc=[90,59,75];_.fM=function(a){_.G.call(this,a)};_.J(_.fM,_.G);_.fM.prototype.Cb=function(){return _.y(this,1)};
_.fM.prototype.Dc=function(a){return _.u(this,1,a)};_.fM.prototype.Ef=function(){return _.x(this,_.UB,2)};_.LAc=function(a,b){return _.F(a,2,b)};_.fM.prototype.Zj=function(){return _.y(this,3)};
_.gM=function(a){_.G.call(this,a)};_.J(_.gM,_.G);_.gM.prototype.eZ=function(a){_.F(this,1,a)};_.gM.prototype.Gv=function(){return _.x(this,_.Hy,2)};_.gM.prototype.gP=function(a){_.F(this,2,a)};
_.MAc=function(a){_.G.call(this,a)};_.J(_.MAc,_.G);_.MAc.prototype.li=function(){return _.x(this,Juc,2)};_.MAc.prototype.V=function(a){_.wj(this,5,_.NAc,a)};_.NAc=[5,6];
var OAc;_.PAc=function(a){_.G.call(this,a,-1,OAc)};_.J(_.PAc,_.G);_.PAc.prototype.V=function(a){_.wj(this,6,_.hM,a)};OAc=[3,4,5];_.hM=[6,7];
var QAc=function(a){_.G.call(this,a)};_.J(QAc,_.G);QAc.prototype.getType=function(){return _.y(this,1)};var RAc=function(a){var b=new QAc;return _.u(b,1,a)};QAc.prototype.Jy=function(){return _.y(this,3)};QAc.prototype.iz=function(a){return _.u(this,3,a)};QAc.prototype.Di=function(){return _.y(this,4)};QAc.prototype.setPosition=function(a){return _.u(this,4,a)};
var TAc=function(a){_.G.call(this,a,-1,SAc)};_.J(TAc,_.G);TAc.prototype.Cb=function(){return _.y(this,1)};TAc.prototype.Dc=function(a){return _.u(this,1,a)};TAc.prototype.Zj=function(){return _.y(this,3)};var SAc=[2];
_.UAc=function(a){_.G.call(this,a)};_.J(_.UAc,_.G);_.UAc.prototype.getId=function(){return _.y(this,1)};_.UAc.prototype.Nb=function(a){return _.u(this,1,a)};_.UAc.prototype.re=function(){return _.x(this,_.Qf,4)};
var WAc=function(a){_.G.call(this,a,-1,VAc)};_.J(WAc,_.G);WAc.prototype.Cb=function(){return _.y(this,1)};WAc.prototype.Dc=function(a){return _.u(this,1,a)};WAc.prototype.Zj=function(){return _.y(this,3)};var VAc=[2];
var XAc=function(a){_.G.call(this,a)};_.J(XAc,_.G);XAc.prototype.Cb=function(){return _.y(this,1)};XAc.prototype.Dc=function(a){return _.u(this,1,a)};XAc.prototype.yr=function(){return _.x(this,_.tL,2)};
var YAc=function(a){_.G.call(this,a)};_.J(YAc,_.G);_.g=YAc.prototype;_.g.Cb=function(){return _.y(this,1)};_.g.Dc=function(a){return _.u(this,1,a)};_.g.yr=function(){return _.x(this,_.tL,2)};_.g.Zj=function(){return _.y(this,3)};_.g.Hh=function(){return _.y(this,4)};
_.iM=function(a){_.G.call(this,a)};_.J(_.iM,_.G);_.iM.prototype.getType=function(){return _.y(this,1)};var ZAc=function(a){var b=new _.iM;return _.u(b,1,a)},$Ac=function(a,b){return _.F(a,2,b)};_.iM.prototype.Jy=function(){return _.y(this,3)};_.iM.prototype.iz=function(a){return _.u(this,3,a)};_.iM.prototype.Di=function(){return _.y(this,4)};_.iM.prototype.setPosition=function(a){return _.u(this,4,a)};
var bBc=function(a){_.G.call(this,a,-1,aBc)};_.J(bBc,_.G);var aBc=[1];
var dBc=function(a){_.G.call(this,a,-1,cBc)};_.J(dBc,_.G);dBc.prototype.Cb=function(){return _.y(this,1)};dBc.prototype.Dc=function(a){return _.u(this,1,a)};dBc.prototype.Zj=function(){return _.y(this,3)};var cBc=[2];
var fBc=function(a){_.G.call(this,a,-1,eBc)};_.J(fBc,_.G);fBc.prototype.Cb=function(){return _.y(this,1)};fBc.prototype.Dc=function(a){return _.u(this,1,a)};fBc.prototype.Zj=function(){return _.y(this,3)};var eBc=[2];
var gBc=function(a){_.G.call(this,a)};_.J(gBc,_.G);
var hBc=function(a){_.G.call(this,a)};_.J(hBc,_.G);hBc.prototype.Gy=function(){return _.y(this,2)};
var iBc=function(a){_.G.call(this,a)};_.J(iBc,_.G);iBc.prototype.H=function(){return _.x(this,_.SC,1)};iBc.prototype.V=function(){return _.x(this,_.SC,2)};iBc.prototype.wa=function(){return _.x(this,_.SC,3)};
var jBc=function(a){_.G.call(this,a)};_.J(jBc,_.G);jBc.prototype.H=function(){return _.N(this,1)};jBc.prototype.V=function(){return _.N(this,3)};jBc.prototype.wa=function(){return _.N(this,4)};
var kBc=function(a){_.G.call(this,a)};_.J(kBc,_.G);_.g=kBc.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Nb=function(a){return _.u(this,1,a)};_.g.Obb=function(){return _.y(this,2)};_.g.te=function(){return _.y(this,4)};_.g.Nbb=function(){return _.x(this,jBc,5)};_.g.getCapabilities=function(){return _.x(this,lBc,6)};_.g.Tbb=function(){return _.y(this,7)};_.g.m6a=function(a){return _.wj(this,13,jM,a)};_.g.Mbb=function(){return _.Gj(this,mBc,19,jM)};
_.g.FOa=function(a){return _.wj(this,19,jM,a)};_.g.y6a=function(a){return _.wj(this,12,jM,a)};_.g.z6a=function(a){return _.wj(this,11,jM,a)};_.g.svb=function(){return _.Gj(this,nBc,10,jM)};_.g.Pbb=function(){return _.Gj(this,oBc,15,jM)};_.g.Y6a=function(a){return _.wj(this,15,jM,a)};_.g.Qbb=function(){return _.Gj(this,pBc,14,jM)};_.g.Z6a=function(a){return _.wj(this,14,jM,a)};_.g.k7a=function(a){return _.wj(this,9,jM,a)};_.g.Rbb=function(){return _.Gj(this,qBc,8,jM)};
_.g.GOa=function(a){return _.wj(this,8,jM,a)};_.g.Sbb=function(){return _.Gj(this,rBc,18,jM)};_.g.HOa=function(a){return _.wj(this,18,jM,a)};_.g.p7a=function(a){return _.wj(this,17,jM,a)};var lBc=function(a){_.G.call(this,a)};_.J(lBc,_.G);lBc.prototype.H=function(){return _.N(this,1)};lBc.prototype.V=function(){return _.N(this,2)};var sBc=function(a){_.G.call(this,a)};_.J(sBc,_.G);var pBc=function(a){_.G.call(this,a,-1,tBc)};_.J(pBc,_.G);pBc.prototype.H=function(){return _.yb(this,uBc,1)};
var vBc=function(a,b){_.sj(a,1,b)},uBc=function(a){_.G.call(this,a)};_.J(uBc,_.G);_.g=uBc.prototype;_.g.getLabel=function(){return _.y(this,1)};_.g.Op=function(){return _.lj(this,1)};_.g.Wa=function(){return _.y(this,2)};_.g.Hb=function(a){return _.u(this,2,a)};_.g.Bi=function(){return _.vb(this,2)};_.g.Mg=function(){return _.lj(this,2)};_.g.yf=function(){return _.y(this,5)};_.g.kl=function(a){return _.u(this,5,a)};_.g.Vbb=function(){return _.lj(this,5)};
_.g.getCapabilities=function(){return _.x(this,wBc,3)};_.g.Ubb=function(){return _.x(this,xBc,4)};var wBc=function(a){_.G.call(this,a)};_.J(wBc,_.G);wBc.prototype.H=function(){return _.N(this,1)};wBc.prototype.V=function(){return _.N(this,2)};var xBc=function(a){_.G.call(this,a)};_.J(xBc,_.G);_.g=xBc.prototype;_.g.Zbb=function(){return _.N(this,1)};_.g.$bb=function(){return _.N(this,2)};_.g.Wbb=function(){return _.x(this,iBc,3)};_.g.acb=function(){return _.lj(this,3)};
_.g.Ybb=function(){return _.x(this,iBc,4)};_.g.ccb=function(){return _.lj(this,4)};_.g.Xbb=function(){return _.y(this,5)};_.g.bcb=function(){return _.lj(this,5)};var oBc=function(a){_.G.call(this,a)};_.J(oBc,_.G);oBc.prototype.H=function(){return _.y(this,1)};oBc.prototype.ZW=function(){return _.lj(this,1)};oBc.prototype.getOptions=function(){return _.x(this,pBc,2)};var qBc=function(a){_.G.call(this,a)};_.J(qBc,_.G);qBc.prototype.V=function(){return _.y(this,1)};
qBc.prototype.H=function(){return _.y(this,2)};var yBc=function(a){_.G.call(this,a)};_.J(yBc,_.G);yBc.prototype.ZW=function(){return _.lj(this,1)};yBc.prototype.getOptions=function(){return _.x(this,qBc,2)};var nBc=function(a){_.G.call(this,a)};_.J(nBc,_.G);nBc.prototype.V=function(){return _.y(this,1)};nBc.prototype.H=function(){return _.y(this,2)};var zBc=function(a){_.G.call(this,a)};_.J(zBc,_.G);var ABc=function(a){_.G.call(this,a)};_.J(ABc,_.G);ABc.prototype.ZW=function(){return _.lj(this,1)};
ABc.prototype.getOptions=function(){return _.x(this,zBc,2)};var BBc=function(a){_.G.call(this,a)};_.J(BBc,_.G);_.g=BBc.prototype;_.g.GOa=function(a){return _.wj(this,3,kM,a)};_.g.k7a=function(a){return _.wj(this,4,kM,a)};_.g.z6a=function(a){return _.wj(this,5,kM,a)};_.g.y6a=function(a){return _.wj(this,6,kM,a)};_.g.m6a=function(a){return _.wj(this,7,kM,a)};_.g.Z6a=function(a){return _.wj(this,8,kM,a)};_.g.Y6a=function(a){return _.wj(this,9,kM,a)};_.g.p7a=function(a){return _.wj(this,10,kM,a)};
_.g.HOa=function(a){return _.wj(this,11,kM,a)};_.g.FOa=function(a){return _.wj(this,12,kM,a)};var CBc=function(a){_.G.call(this,a)};_.J(CBc,_.G);var rBc=function(a){_.G.call(this,a)};_.J(rBc,_.G);rBc.prototype.H=function(){return _.y(this,1)};rBc.prototype.ZW=function(){return _.lj(this,1)};rBc.prototype.getOptions=function(){return _.x(this,CBc,2)};var mBc=function(a){_.G.call(this,a)};_.J(mBc,_.G);mBc.prototype.H=function(){return _.y(this,4)};
var jM=[13,19,12,11,10,15,14,9,8,18,17,16],tBc=[1],kM=[3,4,5,6,7,8,9,10,11,12];
var DBc=function(a){_.G.call(this,a)};_.J(DBc,_.G);DBc.prototype.getType=function(){return _.y(this,1)};var EBc=function(a){var b=new DBc;return _.u(b,1,a)},FBc=function(a,b){return _.F(a,2,b)};DBc.prototype.Jy=function(){return _.y(this,3)};DBc.prototype.iz=function(a){return _.u(this,3,a)};DBc.prototype.Di=function(){return _.y(this,4)};DBc.prototype.setPosition=function(a){return _.u(this,4,a)};
var HBc=function(a){_.G.call(this,a,-1,GBc)};_.J(HBc,_.G);HBc.prototype.Cb=function(){return _.y(this,1)};HBc.prototype.Dc=function(a){return _.u(this,1,a)};var GBc=[2];
var IBc=function(a){_.G.call(this,a)};_.J(IBc,_.G);
var lM=function(a){_.G.call(this,a,-1,JBc)};_.J(lM,_.G);lM.prototype.getName=function(){return _.y(this,1)};lM.prototype.$c=function(a){return _.u(this,1,a)};lM.prototype.Fm=function(){return _.y(this,2)};var KBc=function(a,b){return _.u(a,2,b)};lM.prototype.V=function(){return _.y(this,14)};var LBc=function(a,b){return _.u(a,14,b)};_.g=lM.prototype;_.g.getTitle=function(){return _.y(this,3)};_.g.setTitle=function(a){return _.u(this,3,a)};_.g.yf=function(){return _.y(this,4)};
_.g.kl=function(a){return _.u(this,4,a)};_.g.dcb=function(){return _.y(this,15)};_.g.Yj=function(){return _.yb(this,kBc,5)};var MBc=function(a,b){return _.sj(a,5,b)},NBc=function(a,b){_.F(a,6,b)},OBc=function(a,b){_.F(a,7,b)},PBc=function(a,b){_.F(a,8,b)},QBc=function(a,b){return _.u(a,9,b)},RBc=function(a,b){return _.u(a,10,b)},SBc=function(a,b){return _.u(a,11,b)};lM.prototype.H=function(){return _.x(this,jBc,12)};var TBc=function(a,b){_.F(a,12,b)};
lM.prototype.getCapabilities=function(){return _.x(this,UBc,13)};var VBc=function(a,b){_.F(a,13,b)};lM.prototype.getCustomer=function(){return _.y(this,16)};var WBc=function(a,b){return _.u(a,16,b)},UBc=function(a){_.G.call(this,a)};_.J(UBc,_.G);UBc.prototype.wa=function(){return _.N(this,1)};UBc.prototype.H=function(){return _.N(this,2)};UBc.prototype.Ba=function(){return _.N(this,3)};UBc.prototype.V=function(){return _.N(this,4)};var JBc=[5];
var mM=function(a){_.G.call(this,a,-1,XBc)};_.J(mM,_.G);mM.prototype.Cb=function(){return _.y(this,1)};mM.prototype.Dc=function(a){return _.u(this,1,a)};mM.prototype.H=function(){return _.yb(this,lM,2)};var YBc=function(a,b){return _.sj(a,2,b)};mM.prototype.Zj=function(){return _.y(this,3)};var XBc=[2];
var ZBc=function(a){_.G.call(this,a)};_.J(ZBc,_.G);ZBc.prototype.Cb=function(){return _.y(this,1)};ZBc.prototype.Dc=function(a){return _.u(this,1,a)};ZBc.prototype.H=function(){return _.x(this,lM,2)};ZBc.prototype.Zj=function(){return _.y(this,3)};
_.nM=function(a){_.G.call(this,a,-1,$Bc)};_.J(_.nM,_.G);_.nM.prototype.qW=function(){return _.yb(this,_.UF,2)};_.nM.prototype.re=function(){return _.x(this,_.Qf,3)};var $Bc=[1,2];
_.hpc=function(a){_.G.call(this,a)};_.J(_.hpc,_.G);_.g=_.hpc.prototype;_.g.getItem=function(){return _.x(this,_.Ik,1)};_.g.setItem=function(a){return _.F(this,1,a)};_.g.getError=function(){return _.x(this,_.Fc,2)};_.g.Pe=function(a){return _.F(this,2,a)};_.g.eo=function(){return _.lj(this,2)};_.g.Ev=function(){return _.y(this,4)};
var bCc=function(a){_.G.call(this,a,-1,aCc)};_.J(bCc,_.G);var aCc=[2,4];
var dCc=function(a){_.G.call(this,a,-1,cCc)};_.J(dCc,_.G);dCc.prototype.H=function(){return _.y(this,2)};var eCc=function(a,b){_.u(a,2,b)},cCc=[1];
var fCc=function(a){_.G.call(this,a)};_.J(fCc,_.G);fCc.prototype.getType=function(){return _.y(this,1)};var gCc=function(a){var b=new fCc;return _.u(b,1,a)},hCc=function(a,b){return _.F(a,2,b)};fCc.prototype.Jy=function(){return _.y(this,3)};fCc.prototype.iz=function(a){return _.u(this,3,a)};fCc.prototype.Di=function(){return _.y(this,4)};fCc.prototype.setPosition=function(a){return _.u(this,4,a)};
var jCc=function(a){_.G.call(this,a,-1,iCc)};_.J(jCc,_.G);jCc.prototype.Cb=function(){return _.y(this,1)};jCc.prototype.Dc=function(a){return _.u(this,1,a)};jCc.prototype.Zj=function(){return _.y(this,3)};var iCc=[2];
var kCc=function(a){_.G.call(this,a)};_.J(kCc,_.G);kCc.prototype.Zc=function(){return _.x(this,Csc,1)};kCc.prototype.Zn=function(){return _.y(this,2)};
var oM=function(a){_.G.call(this,a)};_.J(oM,_.G);oM.prototype.Cb=function(){return _.y(this,1)};oM.prototype.Dc=function(a){return _.u(this,1,a)};oM.prototype.Zj=function(){return _.y(this,3)};
var lCc=function(a){_.G.call(this,a)};_.J(lCc,_.G);lCc.prototype.getKey=function(){return _.y(this,1)};lCc.prototype.wt=function(){return _.lj(this,1)};var nCc=function(a){_.G.call(this,a,-1,mCc)};_.J(nCc,_.G);var oCc=[2,4,6,10],pCc=[3,5,7,8,9],mCc=[1];
var qCc=function(a){_.G.call(this,a)};_.J(qCc,_.G);
_.sCc=function(a){_.G.call(this,a,-1,rCc)};_.J(_.sCc,_.G);var rCc=[1];
var UK=function(a){_.G.call(this,a,-1,tCc)},npc;_.J(UK,_.G);UK.prototype.Zn=function(){return _.y(this,1)};var kpc=function(a,b){return _.u(a,1,b)};UK.prototype.Cb=function(){return _.y(this,3)};UK.prototype.Dc=function(a){return _.u(this,3,a)};npc=function(a,b){_.sj(a,5,b)};_.upc=function(a){_.G.call(this,a)};_.J(_.upc,_.G);_.upc.prototype.Yb=function(){return _.y(this,2)};_.spc=function(a){_.G.call(this,a,-1,uCc)};_.J(_.spc,_.G);
var rpc=function(a,b){return _.u(a,1,b)},qpc=function(a,b){return _.u(a,2,b)},tpc=function(a,b){_.sj(a,3,b)},tCc=[5],uCc=[3];
var vCc=function(a){_.G.call(this,a)};_.J(vCc,_.G);_.g=vCc.prototype;_.g.Cb=function(){return _.y(this,1)};_.g.Dc=function(a){return _.u(this,1,a)};_.g.Zj=function(){return _.y(this,2)};_.g.AOa=function(){return _.x(this,_.Vo,3)};_.g.getKey=function(){return _.x(this,_.Kc,4)};_.g.wt=function(){return _.lj(this,4)};
var pM=function(a){_.G.call(this,a)};_.J(pM,_.G);pM.prototype.getType=function(){return _.y(this,1)};var wCc=function(a){var b=new pM;return _.u(b,1,a)};pM.prototype.rn=function(){return _.x(this,wL,2)};var xCc=function(a,b){return _.F(a,2,b)};pM.prototype.Jy=function(){return _.y(this,3)};pM.prototype.iz=function(a){return _.u(this,3,a)};pM.prototype.Di=function(){return _.y(this,4)};pM.prototype.setPosition=function(a){return _.u(this,4,a)};
var qM=function(a){_.G.call(this,a)};_.J(qM,_.G);qM.prototype.getType=function(){return _.y(this,1)};var yCc=function(a){var b=new qM;return _.u(b,1,a)};qM.prototype.rn=function(){return _.x(this,_.cI,2)};var zCc=function(a,b){return _.F(a,2,b)};qM.prototype.Jy=function(){return _.y(this,3)};qM.prototype.iz=function(a){return _.u(this,3,a)};qM.prototype.Di=function(){return _.y(this,4)};qM.prototype.setPosition=function(a){return _.u(this,4,a)};
var BCc=function(a){_.G.call(this,a,-1,ACc)};_.J(BCc,_.G);BCc.prototype.Cb=function(){return _.y(this,1)};BCc.prototype.Dc=function(a){return _.u(this,1,a)};BCc.prototype.Lh=function(){return _.yb(this,_.XEa,2)};BCc.prototype.Nq=function(a,b){return _.yj(this,2,a,_.XEa,b)};var ACc=[2];
var DCc=function(a){_.G.call(this,a,-1,CCc)};_.J(DCc,_.G);DCc.prototype.Cb=function(){return _.y(this,1)};DCc.prototype.Dc=function(a){return _.u(this,1,a)};DCc.prototype.Yk=function(){return _.yb(this,pM,2)};var CCc=[2];
var ECc=function(a){_.G.call(this,a)};_.J(ECc,_.G);ECc.prototype.Cb=function(){return _.y(this,1)};ECc.prototype.Dc=function(a){return _.u(this,1,a)};
var GCc=function(a){_.G.call(this,a,-1,FCc)};_.J(GCc,_.G);GCc.prototype.Cb=function(){return _.y(this,1)};GCc.prototype.Dc=function(a){return _.u(this,1,a)};GCc.prototype.Yk=function(){return _.yb(this,qM,2)};var FCc=[2];
var ICc=function(a){_.G.call(this,a,-1,HCc)};_.J(ICc,_.G);ICc.prototype.Gy=function(){return _.z(this,2)};var HCc=[1];
var JCc=function(a){_.ni.call(this,"Fb");this.dataType=a};_.J(JCc,_.ni);
var KCc=function(a,b){_.ni.call(this,"Gb");this.percentDone=a;this.kva=b};_.J(KCc,_.ni);
var LCc=function(){};_.g=LCc.prototype;_.g.TM=function(a,b){return FBc(EBc(1),a).setPosition(b)};_.g.RM=function(a,b){return FBc(EBc(2).setPosition(b),a)};_.g.cF=function(a,b,c){return FBc(EBc(3).iz(b).setPosition(c),a)};_.g.aR=function(a,b){return FBc(EBc(4),a).setPosition(b)};_.g.oN=function(a){return _.x(a,JL,2)};
var MCc=function(){_.Ky.call(this,new LCc,function(a){return a&&a.getName()})};_.J(MCc,_.Ky);
var rM=function(a,b,c,d){d=void 0===d?50:d;eL.call(this,a);var e=this;this.V=b;this.connectionState=c;this.limit=d;this.active=!1;this.status=6;this.wa=_.Hec(new _.bI,[1]);this.ha=this.H=!1;this.Oc=new _.of(this);this.Ja(this.Oc);_.ff(this,function(){e.Oc.removeAll()})};_.J(rM,eL);_.g=rM.prototype;_.g.Le=function(){return this.V.Le()||this.connectionState.Le()};
_.g.VP=function(){var a=this;this.Oc.listen(this.V,"rb",function(){return void a.gu()});this.Oc.listen(this.connectionState,[].concat(_.fc(Object.values(_.VB))),function(){return void a.gu()});this.V.Le()?this.Oc.hd(this.V,"rb",function(b){b.Le()||(a.pH(),a.dispatchEvent(new _.ni(_.Up)))}):this.connectionState.Le()?this.Oc.hd(this.connectionState,[_.VB.XL,_.VB.YU],function(){a.pH();a.dispatchEvent(new _.ni(_.Up))}):(this.pH(),this.dispatchEvent(new _.ni(_.Up)))};_.g.pH=function(){};
_.g.Hu=function(a){var b=this;if(this.nk()){var c=this.limit;this.limit+=a||50;this.Yb()>c&&this.gu();this.V.Le()?this.Oc.hd(this.V,"rb",function(d){d.Le()||b.xP()}):this.xP()}};_.g.aM=function(){this.Le()&&!this.H?this.status=2:this.status=this.H?1:6};_.g.Cb=function(){return this.status};_.g.ws=function(){return this.wa};_.g.handleError=function(a){this.dispatchEvent(new _.Hc(a))};_.g.WW=function(){this.dispatchEvent(new _.ni(_.xFa))};_.g.nk=function(){return!this.H||this.ha};
_.g.refresh=function(){this.H=this.active=!1;this.status=6;this.Oc.removeAll();this.activate()};_.g.xP=function(){};
var NCc=function(a,b,c,d,e){rM.call(this,c,a,b,e.vi()||void 0);this.request=e;this.logName="drive.ds.sync.CategoryMetadataLiveList";this.W=[];this.data=[];this.changed=!1;this.O=new MCc;this.ka=d};_.J(NCc,rM);_.g=NCc.prototype;_.g.pH=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.ni(_.bd,this))};_.g.getData=function(){return Vwc(new KL,this.data).Dc(this.status)};
_.g.ms=function(){var a=_.Jy(this.O,this.W,this.data);this.W=this.data;var b=(new HBc).Dc(this.status);return _.sj(b,2,a)};_.g.xP=function(){this.ka(this.Ni(),this.limit)};_.g.gu=function(){if(this.active){var a=this.status;this.aM();if(this.changed||a!==this.status)this.changed=!1,OCc(this)}};_.g.Yb=function(){return this.data.length};_.g.jd=function(){return this.request};
_.g.update=function(a){var b=a.response;if(this.status!==b.Cb()||aL(this.O,this.data,b.H()))this.H=!0,this.status=b.Cb(),this.data=b.H(),this.ha=a.H,OCc(this)};var OCc=function(a){a.log("Livelist "+a.Ni()+" returning "+a.data.length+" for "+(a.request.qc()+". Status: ")+(_.fb(Qsc)[a.Cb()]+"."));a.dispatchEvent(new _.ni(_.bd,a))};NCc.prototype.JB=function(a){this.dispatchEvent(new _.Hc(new _.Gc("Error occurred running a category metadata query after "+a.retryCount+" retries.",a.error)))};
var PCc=function(a,b,c,d,e,f,h){_.fL.call(this,a,b,c,e,f,d);this.Xf=h;this.logName="drive.ds.sync.ViewCacheLiveList";this.ka=null;this.ha=void 0;this.suggestionSessionId=null};_.J(PCc,_.fL);PCc.prototype.getData=function(){this.H=this.items;var a=Frc((new _.dI).Dc(this.Cb()).fB(this.items),this.nk());a=_.F(a,7,this.ka).$P(this.suggestionSessionId).mi(this.Ne);return _.qj(a,18,this.ha)};
PCc.prototype.update=function(a){if(Xsc(this,a)&&(Ysc(this,a),this.ka=a.Y6(),this.suggestionSessionId=a.Uf(),this.ha=a.kla(),Wsc(this),this.suggestionSessionId&&bwc(this.O)&&(a=this.Xf.H(106027)))){var b=_.x(_.hK(a),$rc,20);if(!b){b=new $rc;var c=_.hK(a);_.F(c,20,b)}_.u(b,1,this.suggestionSessionId);a.Cj()}};
var QCc=function(a,b){var c={};a=_.Ua(a,function(d){return!!d});b=_.Ua(b,function(d){return!!d});_.Ta(a,function(d,e){var f=b[e];f?_.Cj(d,f)||(d=zCc(yCc(4),f),c[e]=d):(d=zCc(yCc(2),d),c[e]=d)});_.Ta(b,function(d,e){a[e]||(d=zCc(yCc(1),d),c[e]=d)});return c},RCc=function(a,b){return _.Xa(a)!==_.Xa(b)||!_.ab(QCc(a,b))};
var SCc=function(a,b){eL.call(this,a);this.request=b;this.logName="drive.ds.sync.WorkspaceFindByIdsLiveMap";this.status=6;this.H={};this.data={}};_.J(SCc,eL);_.g=SCc.prototype;_.g.VP=function(){_.ab(this.data)&&6===this.status||this.dispatchEvent(new _.ni(_.bd,this))};_.g.Cb=function(){return this.status};_.g.ws=function(){return new _.bI};_.g.getData=function(){this.H=this.data;var a=(new _.lK).Dc(this.status);_.Ta(this.data,function(b,c){a.AU().set(c,b||new _.cI)});return a};
_.g.ms=function(){var a=QCc(this.H,this.data);this.H=this.data;var b=(new ECc).Dc(this.status);_.Ta(a,function(c,d){_.Ab(b,2,void 0,qM).set(d,c)});return b};_.g.UT=function(){throw Error("tg");};_.g.jd=function(){return this.request};_.g.update=function(a){var b={};a.AU().forEach(function(c,d){c||(c=Kyc(d));b[d]=c});if(this.status!==a.Cb()||RCc(this.H,b))this.status=a.Cb(),this.data=b,this.active&&this.dispatchEvent(new _.ni(_.bd,this))};
_.g.JB=function(a){this.dispatchEvent(new _.Hc(new _.Gc("Error occurred running a Workspace find by id after "+a.retryCount+" retries.",a.error)))};_.g.WW=function(){this.dispatchEvent(new _.ni(_.xFa))};
var TCc=function(a,b,c,d,e,f){_.fL.call(this,a,b,c,d,e,f);this.ha=[];this.suggestionSessionId=null;this.logName="drive.ds.sync.PeoplePredictLiveList"};_.J(TCc,_.fL);TCc.prototype.getData=function(){this.H=this.items;var a=(new _.kK).Dc(this.Cb()).fB(this.items);var b=this.nk();a=_.u(a,4,b);return Psc(a,this.ha).$P(this.suggestionSessionId).mi(this.Ne)};TCc.prototype.update=function(a){Xsc(this,a)&&(Ysc(this,a),this.ha=_.yb(a,_.vk,6),this.suggestionSessionId=a.Uf(),Wsc(this))};
var UCc=function(){};_.g=UCc.prototype;_.g.TM=function(a,b){return xCc(wCc(1),a).setPosition(b)};_.g.RM=function(a,b){return xCc(wCc(2).setPosition(b),a)};_.g.cF=function(a,b,c){return xCc(wCc(3).iz(b).setPosition(c),a)};_.g.aR=function(a,b){return xCc(wCc(4),a).setPosition(b)};_.g.oN=function(a){return a.rn()};
var VCc=function(){_.Ky.call(this,new UCc,function(a){return a&&a.tq()})};_.J(VCc,_.Ky);
var WCc=function(a,b,c){rM.call(this,a.Be(),a.Jj(),a.xk(),b.vi()||10);this.request=b;this.logName="drive.ds.sync.SuggestedWorkspaceQueryLiveList";this.O=[];this.data=[];this.changed=!1;this.W=new VCc;this.suggestionSessionId=null;this.ka=c};_.J(WCc,rM);_.g=WCc.prototype;_.g.pH=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.ni(_.bd,this))};_.g.getData=function(){this.O=this.data;return rvc(qvc((new xL).Dc(this.status),this.data.slice(0)),this.suggestionSessionId)};
_.g.ms=function(){var a=_.Jy(this.W,this.O,this.data);this.O=this.data;var b=(new DCc).Dc(this.status);return _.sj(b,2,a)};_.g.xP=function(){};_.g.gu=function(){var a=this.status;this.aM();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ni(_.bd,this))};_.g.Yb=function(){return this.data.length};_.g.jd=function(){return this.request};
_.g.update=function(a){if(this.status!==a.Cb()||aL(this.W,this.data,a.Yk())){this.changed=this.H=!0;this.data=a.Yk();if(a=a.Uf())this.suggestionSessionId=a;this.gu()}};_.g.refresh=function(){this.ka()};_.g.JB=function(a){this.dispatchEvent(new _.Hc(new _.Gc("Error occurred running a Suggested Workspace query after "+(a.retryCount+" retries."),a.error)))};
var XCc=function(a,b,c,d){eL.call(this,a);var e=this;this.request=b;this.ha=c;this.W=d;this.logName="drive.ds.sync.TeamDriveLiveList";this.O=[];this.items=[];this.status=6;this.V=_.Hec(new _.bI,[1]);this.H=!0;this.limit=b.vi();_.ff(this,function(){e.O=[]})};_.J(XCc,eL);_.g=XCc.prototype;_.g.VP=function(){_.qa(this.items)&&6===this.status&&this.H||this.dispatchEvent(new _.ni(_.bd,this))};_.g.jd=function(){return this.request};_.g.Cb=function(){return this.status};_.g.ws=function(){return this.V};
_.g.nk=function(){return this.H};_.g.getData=function(){this.O=this.items;return Frc((new _.dI).Dc(this.status).fB(this.items),this.H)};_.g.ms=function(){var a=_.Jy(_.D7a(),this.O,this.items),b=(new Nsc).Dc(this.status);a=_.sj(b,2,a);this.O=this.items;return a};_.g.Hu=function(a){this.isActive()&&(this.limit+=a||20,this.ha.gG(this.Ni(),this.limit))};
_.g.update=function(a){if(this.status!==a.Cb()||aL(_.D7a(),this.items,a.Bd()))this.items=a.Bd(),this.status=a.Cb(),_.lI(this.W)&&(this.V=Anc(this.status,this.items)),this.H=a.Ql(),this.isActive()&&this.dispatchEvent(new _.ni(_.bd,this))};_.g.JB=function(a){this.dispatchEvent(new _.Hc(new _.Gc("Error occurred running a Team Drive query after "+a.retryCount+" retries.",a.error)))};_.g.WW=function(){this.dispatchEvent(new _.ni(_.xFa))};_.g.Pu=function(){throw Error("ug");};_.g.refresh=function(){};
var YCc=function(a,b,c){eL.call(this,a.Be());var d=this;this.context=a;this.W=b;this.request=c;this.logName="drive.ds.sync.TeamDriveLiveMap";this.O={};this.H={};this.status=6;this.V=_.Hec(new _.bI,[1]);this.log("Creating TD find by ids live map: "+this.request.V().join(", "));_.ff(this,function(){d.O={}})};_.J(YCc,eL);_.g=YCc.prototype;_.g.VP=function(){(0<Object.values(this.H).length||6!==this.status)&&this.dispatchEvent(new _.ni(_.bd,this))};_.g.jd=function(){return this.request};
_.g.getData=function(){this.O=this.H;var a=new _.jK;a.Dc(this.status);a.map=this.H;return a};_.g.ms=function(){var a=Xnc(this.O,this.H),b=new Vsc;b.Dc(this.status);b.map=a;this.O=this.H;return b};_.g.Cb=function(){return this.status};_.g.ws=function(){return this.V};_.g.UT=function(a){var b=this.request;this.request=a;this.W.JZ(this.Ni(),b,a)};
_.g.update=function(a){if(this.status!==a.Cb()||Ync(this.H,a.lt()))this.status=a.Cb(),this.H=a.lt(),_.lI(this.context.Xc)&&(this.V=Anc(this.status,Object.values(this.H))),this.isActive()&&this.dispatchEvent(new _.ni(_.bd,this))};_.g.JB=function(a){this.dispatchEvent(new _.Hc(new _.Gc("Error occurred running a team drive find-by-IDs query after "+a.retryCount+" retries.",a.error)))};_.g.WW=function(){this.dispatchEvent(new _.ni(_.xFa))};
var ZCc=function(){};_.g=ZCc.prototype;_.g.TM=function(a,b){return zCc(yCc(1),a).setPosition(b)};_.g.RM=function(a,b){return zCc(yCc(2).setPosition(b),a)};_.g.cF=function(a,b,c){return zCc(yCc(3).iz(b).setPosition(c),a)};_.g.aR=function(a,b){return zCc(yCc(4),a).setPosition(b)};_.g.oN=function(a){return a.rn()};
var $Cc=function(){_.Ky.call(this,new ZCc,function(a){return a&&a.getId()})};_.J($Cc,_.Ky);
var aDc=function(a,b,c){rM.call(this,a.Be(),a.Jj(),a.xk(),b.vi()||10);this.request=b;this.ka=c;this.logName="drive.ds.sync.WorkspaceQueryLiveList";this.O=[];this.data=[];this.changed=!1;this.W=new $Cc};_.J(aDc,rM);_.g=aDc.prototype;_.g.pH=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.ni(_.bd,this))};_.g.getData=function(){this.O=this.data;return exc((new ML).Dc(this.status),this.data.slice(0))};
_.g.ms=function(){var a=_.Jy(this.W,this.O,this.data);this.O=this.data;var b=(new GCc).Dc(this.status);return _.sj(b,2,a)};_.g.xP=function(){this.ka.gG(this.Ni(),this.limit)};_.g.gu=function(){var a=this.status;this.aM();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ni(_.bd,this))};_.g.Yb=function(){return this.data.length};_.g.jd=function(){return this.request};
_.g.update=function(a){var b=a.response;if(this.status!==b.Cb()||aL(this.W,this.data,b.Yk()))this.H=!0,this.status=b.Cb(),this.data=b.Yk(),this.ha=a.H,this.dispatchEvent(new _.ni(_.bd,this))};_.g.JB=function(a){this.dispatchEvent(new _.Hc(new _.Gc("Error occurred running a Workspace query after "+a.retryCount+" retries.",a.error)))};
var bDc=function(a,b){this.context=a;this.ha=b;this.H={};this.ka={};this.ma={};this.V=null;this.W=a.Cf;this.O=this.context.pga;this.ta=this.context.b7};_.g=bDc.prototype;_.g.vya=function(a){var b=this,c=new PCc(this.context.ym,this.context.KQ,this.context.Be(),this.context.Xc,function(d,e){b.gG(d,e)},a,this.context.lk());this.Yh(c);_.ff(c,function(){b.ek(c)});return c};
_.g.yya=function(a){var b=this,c=new TCc(this.context.ym,this.context.KQ,this.context.Be(),function(d,e){b.gG(d,e)},a,this.context.Xc);this.Yh(c);_.ff(c,function(){b.ek(c)});return c};_.g.sya=function(a){var b=this,c=new btc(this.context.Xc,this.context.ym,this.context.Be(),this.context.I_,this.JZ.bind(this),a);this.Yh(c);_.ff(c,function(){b.ek(c)});return c};_.g.Bya=function(a){var b=this,c=new XCc(this.context.Be(),a,this,this.context.Xc);this.Yh(c);_.ff(c,function(){b.ek(c)});return c};
_.g.Cya=function(a){var b=this,c=new YCc(this.context,this,a);this.Yh(c);_.ff(c,function(){b.ek(c)});return c};_.g.Fya=function(a){var b=this,c=new aDc(this.context,a,this);this.Yh(c);_.ff(c,function(){b.ek(c)});return c};_.g.zya=function(a){var b=this,c=new WCc(this.context,a,function(){if(a instanceof _.bA){var d=cDc(b.context);Cyc(d,d.getKey(a)).refresh()}});this.Yh(c);_.ff(c,function(){b.ek(c)});return c};
_.g.Gya=function(a){var b=this,c=new SCc(this.context.Be(),a);this.Yh(c);_.ff(c,function(){b.ek(c)});return c};_.g.oya=function(a){var b=this,c=new NCc(this.context.Jj(),this.context.xk(),this.context.Be(),function(d,e){b.gG(d,e)},a);this.Yh(c);_.ff(c,function(){b.ek(c)});return c};
_.g.Yh=function(a){var b=a.Ni();this.H[b]=a;this.ha.create(b,a.jd());if(a.jd()instanceof _.dA)a=this.O.Yh(b,a.jd());else if(a.jd()instanceof _.bG)a=Ayc(this.O,b,a.jd());else if(a.jd()instanceof _.bA)a=cDc(this.context).Yh(b,a.jd());else if(a.jd()instanceof _.iG)a=this.ta.Yh(b,a.jd());else{var c=a.jd(),d=gL(this.context.ym,c,2);this.log("Registering LiveList "+a.Ni()+" "+d);a=this.W.Yh(b,c)}"boolean"===typeof a&&Jwc(this.ha,b,a)};
_.g.ek=function(a){if(a.jd()instanceof _.dA)this.O.ek(a.Ni(),a.jd());else if(a.jd()instanceof _.bG)Byc(this.O,a.Ni(),a.jd());else if(a.jd()instanceof _.bA)cDc(this.context).ek(a.Ni(),a.jd());else if(a.jd()instanceof _.iG)this.ta.ek(a.Ni(),a.jd());else{var b=a.jd(),c=gL(this.context.ym,b,2);this.log("Unregistering LiveList "+a.Ni()+" "+c);this.W.ek(a.Ni(),b)}HL(this.ha,a.Ni(),4);delete this.H[a.Ni()]};_.g.JZ=function(a,b,c){this.W.ek(a,b);this.W.Yh(a,c)};
_.g.gG=function(a,b){var c=dDc(this,a).jd();c.Fi(b);c instanceof _.dA?this.O.Yh(a,c):c instanceof _.bG?Ayc(this.O,a,c):c instanceof _.iG?this.ta.Yh(a,c):this.W.Yh(a,c)};_.g.QO=function(a,b){var c=this.H[a]&&this.H[a].jd();c&&(c instanceof _.Df?Gnc(c.H(),b.Bd().filter(function(d){return!zL(d)})):c instanceof _.WF&&Gnc(c.H(),Object.values(b.lt()).filter(function(d){return d&&!zL(d)})));this.ka[a]=b;this.V||(this.V=_.Ai(this.W9,50,this))};
_.g.AY=function(a,b){this.ma[a]=b;this.V||(this.V=_.Ai(this.W9,50,this))};_.g.GA=function(a){(a=this.H[a])&&a.WW()};_.g.W9=function(){_.Bi(this.V);this.V=null;var a=Object.keys(this.ka),b=Object.keys(this.ma);a=_.m(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=this.ka[c];if(d){delete this.ka[c];var e=this.H[c];e&&(Mwc(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])HL(this.ha,a,3),d.JB(c)};
_.g.Ala=function(a){return dDc(this,a).jd()};var dDc=function(a,b){if(!a.H[b])throw Error("vg`"+b);return a.H[b]};bDc.prototype.log=function(a,b){this.context.Be().log("drive.ds.sync.cache.LocalLiveRequestManager",a,void 0===b?"info":b)};
var eDc=function(){},fDc=function(a){this.H=a},ipc=function(a,b,c,d,e,f,h,k){this.status=a;this.percentDone=b;this.H=c;this.W=d;this.V=e;this.BA=f;this.numFetchedFiles=h;this.O=k};
var sM=function(a,b){_.yi.call(this);this.O=a;this.request=b;this.be=_.Yh();this.complete=!1;this.H=""};_.J(sM,_.yi);sM.prototype.start=function(){var a=this;this.O.then(function(b){return b.Oe(a.request)}).then(this.W.bind(this)).then(null,this.handleError.bind(this));return this.be.promise};sM.prototype.W=function(a){this.H=a.H;this.dispatchEvent(new KCc(0,this.H));gDc(this)};
var gDc=function(a){_.aa.setTimeout(function(){a.O.then(function(b){return b.Oe(new _.Bhc(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 bCc;c=_.qj(c,2,b.H);c=_.u(c,3,a.H);c=_.u(c,5,b.W);c=_.u(c,6,b.V);c=_.u(c,7,b.BA);c=_.u(c,8,b.numFetchedFiles);b=_.sj(c,4,b.O);a.be.resolve(b)}else b=_.tI(_.Fo(_.Eo(new _.Fc,"Export failed for request "+a.H+": "+b.status),JSON.stringify(b)),8),a.handleError(b);a.dispose()}else a.dispatchEvent(new KCc(b.percentDone,
a.H)),gDc(a)}).then(null,function(b){a.handleError(b)})},5E3)};sM.prototype.cancel=function(){var a=this;this.O.then(function(b){return b.Oe(new _.Ahc(a.H))}).then(this.V.bind(this)).then(null,this.handleError.bind(this))};sM.prototype.V=function(){if(!this.complete){var a=new bCc;a=_.u(a,3,this.H);a=_.u(a,1,!0);this.be.resolve(a);this.complete=!0;this.dispose()}};sM.prototype.handleError=function(a){this.complete=!0;this.be.reject(_.NI(a));this.dispose()};
var hDc=function(){_.ni.call(this,"VbxEwf")};_.J(hDc,_.ni);
var iDc=function(a,b){this.context=a;this.H=null;this.oc=b||null};_.g=iDc.prototype;_.g.Ka=function(){return _.x(this.context.Xc,_.HI,58)};_.g.getContext=function(){return this.context};_.g.Uz=function(){return this.context.hB.Uz(this.H)};_.g.Be=function(){return this.context.Be()};_.g.gN=function(a){return _.ei(this.context.Cf.Yl.H(a))};_.g.SR=function(){return _.ei(this.context.hB.SR())};
_.g.R5=function(a,b,c){var d=new _.$h;if(_.Gj(a,_.mI,3,_.nI)||_.Gj(a,_.EJ,4,_.nI)||_.Gj(a,_.tK,5,_.nI)||_.Gj(a,_.BJ,6,_.nI)||_.Gj(a,_.aJ,7,_.nI)||_.Gj(a,_.UI,8,_.nI)||_.Gj(a,_.YI,9,_.nI)||_.Gj(a,_.wI,10,_.nI)){var e=Gwc(a);this.context.Hm().then(function(f){return f.Oe(e,{S8a:b,T8a:c})}).then(function(f){var h=[],k="";if(f instanceof _.uK){h=f.Zc().Bd();var l=_.y(f,2);k=f.Zn()}else if(f instanceof _.GJ)f.getItem()&&h.push(f.getItem()),l=f.nN();else throw Error("xg");d.callback({items:h,tja:l,pageToken:k})},
function(f){return void d.Gd(f)});return d}throw Error("wg");};_.g.Sqa=function(){var a=this.context.Xc,b=a.Sf();a="email:"+_.eI(a).getEmail().replace(/@.*$/,"");_.u(b,13,a)};_.g.Pia=function(){this.context.Ws.YS();var a=this.context.Xc;tAc(_.UJ(_.eI(a)),_.WJ(a),this.context.Be()).then(null,function(){})};_.g.tka=function(){return _.Bgc[_.oj(this.context.Xc.Sf(),8,0)]};_.g.cea=function(){this.context.sG.H=new izc(_.oh().substring(0,8))};
_.g.ET=function(){var a=this.context.sG.GN(),b=null;a&&(b=kzc(this.context.sG),b={traceId:a,spanRecs:b});a=this.context.sG;a.H=null;a.rZ=[];return _.ei(b)};_.g.GN=function(){return _.ei(this.context.sG.GN())};
_.g.getState=function(a){var b=this.context.Oj,c=b.H.bind(b);b={};b.b=this.context.Xc.Ki();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.Cf.Yl.getSize();c=this.context.Cf.Rt;var d=c.H;d&&(b.cs_sutd=d.X8,b.cs_ss=d.getSize());b.cs_ch=Cxc(c).length;b.cs_td=c.MW().length;if(c=this.context.c7)b.t_cps=c.VYa().getStats().join(",");b.t_id=jDc(this.context);
var e=[];kDc(this.context.RR()).forEach(function(f,h){e.push(h+":"+f.join(";"))});b.t_ct=e.join(",");b.n_a=this.context.wz?this.context.xk().isConnected():this.context.TI.OB();b.n_o=this.context.wz?this.context.xk().Le():this.context.Jj().Le();b.n_csm=!!this.context.wz;a&&(b.csw_cc=_.Xa(a.channels),b.csw_ac=a.O,b.csw_mcc=a.H);return _.ei(JSON.stringify(b))};_.g.mqa=function(){this.oc&&(this.oc.dispatchEvent(new hDc),this.oc.Xu())};
_.g.Il=function(a){var b=this.context.wz;b&&a!==b.V&&(b.V=a,b.reset(),a?b.state.update(3):_.zkc(b))};
var nDc=function(a,b){this.context=a;this.Cg=b;this.H=_.lhc(_.bK(this.Cg),lDc);this.O=_.lhc(_.bK(this.Cg),mDc)};
nDc.prototype.$k=function(a){var b=this,c=this.context.DQ.Ef().Ef(),d=(c=c?c.getUser():null)?c.getId():null,e={};a.forEach(function(h){_.phc(h);var k=h.getId(),l=b.context.Bu();_.sic(h,3);_.zI(h,5);var p=aoc(h,!0);h.getCapabilities()||_.QJ(h,new _.Bk);_.N(p,2)&&((p=h.vk())&&p.length?_.u(h,46,p[0]):(_.PJ(h,[l]),_.u(h,46,l)),_.u(h,12,h.Mq()),l=new _.vk,l.Nb(d),_.u(l,6,1),_.dic(l,!0),_.oic(h,l),_.nic(h,[l]),_.AVb(h,1));e[k]=h});a=Object.keys(e);c=this.context.Cf;var f=Ivc(c.Yl,a);_.Ta(f,function(h,k){NK(h.getItem(),
e[k],b.H);(b.context.Jj().Le()||b.context.xk().Le()||3===h.getItem().Jv())&&NK(h.getItem(),e[k],b.O);_.bb(e,k)});_.Ta(e,function(h){_.Ek(h.Um())&&(f[h.getId()]=new yL(h))});oDc(c,Object.values(f))};
var pDc=function(a,b){var c=[];b.forEach(function(d){c.push(d.getItem())});a.$k(c)},qDc=function(a){a=a.context.Cf;var b=new _.Df;b.Il(!0);b=Kvc(a.Yl,b);for(var c=[],d=[],e=0;e<b.length;e++){var f=b[e].getItem();if(3===f.Jv()){var h=new _.pI;_.qI(h,f.getId());_.BI(h);d.push(h)}else h=new _.yoa,_.JK(h,!1),_.u(h,2,!1),_.F(f,81,h),c.push(b[e])}oDc(a,c);a.Do(d)},lDc=[50],mDc=[12,11,10,67,68];
var rDc=function(a){this.context=a;this.H=null;this.V=!1;this.O=new nDc(a,a.Cg)};_.g=rDc.prototype;_.g.bZ=function(a){this.H=a;this.V=!1;if(a){if(this.H){a=this.fcb.bind(this);var b=this.ecb.bind(this);this.log("Querying all offline items.");this.H.dW().dg(a,b);this.V||(this.H.t0((0,_.K)(this.Gzb,this)),this.V=!0)}}else qDc(this.O)};_.g.fcb=function(a){this.log("Processing all offline item(s): "+a.length);this.O.$k(a);OL(this.context.Oj,"GZTDpc")};_.g.ecb=function(){this.log("Error fetching offline items.")};
_.g.Gzb=function(a){this.log("Handling offline change(s): "+a.length);pDc(this.O,a)};_.g.log=function(a){this.context.Be().info("drive.ds.sync.offline.LocalDataService",a)};
var tM=function(a){_.yi.call(this);this.context=a;this.Ba="drive.ds.sync.BaseItemService";this.Oc=new _.of(this);this.ma=null;this.Ua=this.wa=!1;var b=new rDc(a);this.context.ha=b;this.Ga=new iDc(a,this);Uoc(this.Ga);_.x(a.Xc,_.HI,58);this.Ja(this.Oc);this.O=this.context.Oj;this.W=a.Jta;this.V=new bDc(a,this.W);a=this.context;b=this.V;a.W=b;a.O.resolve(b);this.pUa()};_.J(tM,_.yi);_.g=tM.prototype;_.g.pUa=function(){};
_.g.initialize=function(){var a=this;if(!this.ma){this.ma=_.Yh();var b=this.context.lk().H(106E3);this.ma.promise.then(function(){b&&b.Cj()},function(){_.rK(a.context.lk(),181008852)});this.context.Be().info(this.Ba,"Initializing "+(_.XJ(this.context.Xc)?"(coldstart) ":"")+" with client build: "+this.context.Xc.Ki());this.Oc.listen(this.context,_.ad,this.lxb);this.Oc.listen(this.context.TI,["fb","gb"],function(c){return void a.dispatchEvent(c)});this.Oc.listen(this.context.xk(),[].concat(_.fc(Object.values(_.VB))),
function(c){return void a.dispatchEvent(c)});this.$a();this.O.start();OL(this.O,"NSockf")}return this.ma.promise};_.g.xZa=function(){this.context.Be().info(this.Ba,"Ready to process requests.");this.wa||(this.wa=!0,this.ma.resolve())};_.g.lxb=function(a){var b=a.error,c=b.qg;c&&3===c.getType()&&!this.wa?(this.wa=!0,this.ma.reject(b)):this.dispatchEvent(a)};_.g.J5=function(){throw uM("teamDriveQuery");};_.g.Iqa=function(){throw uM("teamDriveFindByIds");};
_.g.Jqa=function(){throw uM("teamDriveMovePreflight");};_.g.EHa=function(){throw uM("peoplePredictQuery");};_.g.query=function(a){$vc(this.context.ym,a,msc(this.context.Cg));this.KF();var b=a.clone();b=this.V.vya(b);this.Ua||(a=a.re(),a&&121===_.y(a,1)||(this.Ua=!0,this.Oc.listen(b,_.bd,this.BOa)));return b};_.g.BOa=function(a){a=a.currentTarget;if(1===a.Cb()){var b=this.O.H("W6J7De");this.Ga.H=b;this.Oc.Tc(a,_.bd,this.BOa)}};_.g.ht=function(a){this.KF();dtc(a);return this.V.sya(a.clone())};
_.g.qwa=function(){throw uM("activityQuery");};_.g.gxa=function(){throw uM("backupsQuery");};_.g.tIa=function(){throw uM("refreshBackups");};_.g.eW=function(){throw uM("getAndroidBackupItems");};_.g.l9=function(){throw uM("deleteBackup");};_.g.HHa=function(){throw uM("permissionQuery");};_.g.Uaa=function(){throw uM("insertPermission");};_.g.m9=function(){throw uM("deletePermission");};_.g.ad=function(){throw uM("mutate");};_.g.qO=function(){throw uM("mutateWorkspace");};
_.g.TC=function(){throw uM("bulkMutate");};_.g.rya=function(){throw uM("createFileUploader");};_.g.IUa=function(a){return new sM(this.context.Hm(),a)};_.g.ks=function(a){if(3===a.getType())return _.fi(this.context.Hm().then(function(b){return b.Oe(a)}).then(null,KK));throw uM("getApps with type "+a.getType());};_.g.yr=function(){throw uM("getApp");};_.g.Waa=function(){throw uM("installApp");};_.g.k9=function(){throw uM("deleteApp");};_.g.QT=function(){throw uM("updateApp");};
_.g.MN=function(){throw uM("getUserAccount");};_.g.nH=function(){throw uM("getUserPrefs");};_.g.NS=function(){throw uM("mutateUserPref");};_.g.Au=function(){throw uM("getRevisions");};_.g.jDa=function(){return!1};_.g.Il=function(a){this.context.wz?a?_.Akc(this.context.wz,!0):this.context.xk().Le()&&this.context.wz.IM(!0).then(null,function(){}):this.context.Jj().Il(a)};_.g.hz=function(){throw uM("setOfflineOptIn");};_.g.bZ=function(){throw uM("setLocalItemService");};_.g.KF=function(){};
_.g.QS=function(){this.context.QS();this.context.lk().O(106006)};_.g.y$=function(){return this.Ga};_.g.ZY=function(){};_.g.OB=function(){return this.context.TI.OB()};_.g.RQ=function(){return _.Q(this.context.Xc.Sf(),52,!1)?_.Vh(ywc(new xwc,0)):this.context.TI.RQ()};_.g.isConnected=function(){return 1===this.context.xk().get()};_.g.E8=function(){var a=this.context.wz;return a?a.IM():_.Vh(_.pkc(0))};_.g.sync=function(){throw uM("sync");};_.g.Xu=function(){return this.context.Xu()};
_.g.kca=function(){throw uM("offlineDataLoaded");};_.g.Noa=function(a){return this.context.Hm().then(function(b){return b.Oe(a)}).then(function(b){return b})};_.g.Hxa=function(){throw uM("categoryMetadataQuery");};_.g.D8=function(){throw uM("changeCategoryLinks");};_.g.AP=function(){throw uM("updateCategoryMetadata");};_.g.eIa=function(){throw uM("publishedCategoriesQuery");};_.g.fIa=function(){throw uM("publishedCategoryQuery");};_.g.VMa=function(){throw uM("workspaceFindByIdsRequest");};
_.g.Era=function(){throw uM("workspaceQueryRequest");};_.g.pLa=function(){throw uM("suggestedWorkspaceItemQueryRequest");};_.g.qLa=function(){throw uM("suggestedWorkspaceQueryRequest");};_.g.r0=function(){throw uM("addCacheHint");};_.g.R0=function(){throw uM("createUserFeedback");};_.g.Do=function(){throw uM("handleChanges");};var uM=function(a){return new _.Gc(a+" is unsupported",_.MI(3))};
var Cpc=function(a){tM.call(this,a);this.Ba="drive.ds.sync.AnonymousItemService";a.kz("")};_.J(Cpc,tM);Cpc.prototype.$a=function(){NL(this.O,["NSockf"],this.xZa.bind(this))};
var sDc=new Set([1,2,4,5,6]),tDc=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.Ne=0};tDc.prototype.Ef=function(){var a=new _.fM;a.Dc(this.status);this.H&&_.LAc(a,uDc(this));return a};
var vDc=function(a,b,c,d){d=void 0===d?!1:d;var e=sDc.has(c);if(1===a.status&&!e)return!1;a.Ne=c;var f=a.status;c=!a.H;if(_.lI(a.O)){var h=(h=b&&b.getUser())&&LK(h);h=!(!h||!Sxc(a.ka.H,h));a.status=h&&e||d?1:6}f=!_.Cj(a.H,b)||(_.lI(a.O)?a.status!==f:6===a.status&&e);a.H=b.clone();_.lI(a.O)||(a.status=e||d?1:6);c&&(OL(a.ha,"toquGd"),a.W.info("drive.ds.sync.account.InMemoryAccountCache","Account loaded from "+(e?"server":"cache")));f&&a.V.update(0);return f};tDc.prototype.Ve=function(){return this.Ne};
var uDc=function(a){return a.H?a.H.clone():null};
var wDc=function(a){_.yi.call(this);this.W=a;this.Ne=0};_.J(wDc,_.yi);var xDc=function(a){a=a.clone();var b=function(c){return c.toLowerCase()};Zuc(a,_.se(a,4).map(b));$uc(a,_.se(a,5).map(b));return a};_.g=wDc.prototype;_.g.ks=function(){};_.g.put=function(){};_.g.remove=function(){};_.g.LQ=function(){};_.g.uH=function(){return 0!==this.Ne};_.g.Ve=function(){return this.Ne};
var yDc=new Set([1,2,4,5,6]),zDc=function(a,b,c){wDc.call(this,b);this.V=a;this.O=c;this.apps={};this.H=[];this.status=6;this.np=!1};_.J(zDc,wDc);zDc.prototype.ks=function(){var a=new IL;if(!_.ab(this.apps)){_.qj(a,4,this.H);var b=[];_.Ta(this.apps,function(c){b.push(c.clone())});_.sj(a,2,b)}a.Dc(this.status);return a};zDc.prototype.put=function(a){this.apps[a.getId()]=xDc(a);this.O.update(1);this.dispatchEvent(new _.ni("Hb",this))};zDc.prototype.remove=function(a){_.bb(this.apps,a)&&this.O.update(1)};
zDc.prototype.LQ=function(a,b,c){c=void 0===c?!1:c;var d=!yDc.has(b);1===this.status&&d||(this.Ne=b,ADc(this,a,!d||c),d||this.O.update(1),this.np||(this.np=!0,this.V.info("drive.ds.sync.appsettings.InMemoryAppSettingsCache","Apps initialized."),OL(this.W,"nVUlO")))};
var ADc=function(a,b,c){var d=!1,e=c?1:6;d=e!==a.status;a.status=e;e=_.se(b,4);if(!d)if(e.length!==a.H.length)d=!0;else{var f=e.concat(a.H);_.Ga(f);d=f.length!==a.H.length}a.H=e;var h=_.eb(a.apps);_.dhc(a.apps);b=_.yb(b,_.tL,2);d||(d=b.length!==_.Xa(h));b.forEach(function(k){var l=xDc(k);a.apps[k.getId()]=l;d||(k=h[k.getId()],d=!k||!_.Cj(l,k))});a.V.info("drive.ds.sync.appsettings.InMemoryAppSettingsCache",(c?"Fresh":"Stale")+" apps loaded: "+b.length);d&&a.dispatchEvent(new _.ni("Hb",a))};
var vM=function(a){_.L.call(this);this.context=a;this.Ty=new Set;this.Cp=6;this.cEa=!0;this.Ne=0;this.Oc=new _.of(this);this.Ja(this.Oc)};_.J(vM,_.L);_.g=vM.prototype;_.g.Yh=function(a){this.BTa(a);this.Ty.add(a);this.resize(!0);this.QO(a)};_.g.BTa=function(){};_.g.ek=function(a){this.Ty.delete(a);0!=this.Ty.size||this.O0a()?this.resize(!1):this.dispose()};_.g.Ve=function(){return this.Ne};_.g.mi=function(a){this.Ne=a};_.g.qT=function(a){this.cEa=!1;this.Cp=a};_.g.lW=function(){return this.Cp};
var CDc=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)}}BDc(a.context.Cf,d,b);d.forEach(function(k){hzc(a.context.IOa,k,b);if(k.uc()){var l=k.getCapabilities();zL(k)?l&&(_.u(l,12,_.N(l,13)),_.u(l,9,!1),_.u(l,21,!1)):PK(k)?(l&&_.u(l,3,!1),_.u(k,30,!1)):l&&(_.u(l,42,!1),_.u(l,43,!1))}k.getCapabilities()||
_.QJ(k,new _.Bk)})};vM.prototype.jd=function(){};vM.prototype.$k=function(a,b){var c=this,d=!1;a.forEach(function(e){e=PL(e);d=c.lw(e,!0)||d});b||(1!=this.lW()&&(d=!0),this.qT(1));d&&this.BY()};var DDc=function(a,b){var c=!1;b.forEach(function(d){c=a.lw(d)||c});c&&a.BY();return c};_.g=vM.prototype;_.g.update=function(a){return DDc(this,[a])};_.g.BY=function(){var a=this;this.ATa();this.Ty.forEach(function(b){a.QO(b)})};_.g.ATa=function(){};
_.g.QO=function(a){var b=EDc(this.context).Ala(a);this.a0a(b)||(b=this.mk(b),EDc(this.context).QO(a,b))};_.g.AY=function(a){var b=this;this.qT(3);this.Ty.forEach(function(c){EDc(b.context).AY(c,a)})};_.g.GA=function(){var a=this;this.Ty.forEach(function(b){EDc(a.context).GA(b)});this.mi(0==this.Ve()?1:6)};_.g.O0a=function(){return!1};_.g.a0a=function(){return!1};
var FDc=function(a){_.ni.call(this,"xb");this.id=a};_.J(FDc,_.ni);
var GDc=function(a,b,c,d){d=void 0===d?!1:d;_.yi.call(this);this.request=a;this.context=b;this.LMa=d;this.be=null;this.items={};this.W=[];this.V=[];this.H=null;this.originalRequest=c||a;this.O=new Set};_.J(GDc,_.yi);
GDc.prototype.lh=function(){var a=this;if(this.be)return this.be.promise;this.be=_.Yh();for(var b={},c=_.m(this.request.V().entries()),d=c.next();!d.done;b={lsa:b.lsa,ifa:b.ifa,Wra:b.Wra},d=c.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;b.Wra=e;b.lsa=zsc(ysc(d),this.request);b.ifa=void 0;this.LMa&&(b.ifa={LMa:!0});this.context.Hm().then(function(f){return function(h){return h.Oe(f.lsa,f.ifa)}}(b)).then(function(f){return void HDc(a,f)},function(f){return function(h){var k=f.Wra;h=
_.wd(h);5===h.qg.Ev()||4===h.qg.Xj()?(a.context.Be().info("drive.ds.sync.query.ViewCacheFindByIdsRunner","Deleting "+k+" due to: "+h.message),a.V.push(k),IDc(a)):a.handleError(h)}}(b))}return this.be.promise};var HDc=function(a,b){b.Zc().Bd().forEach(function(c){_.zI(c,1);a.W.push(c)});IDc(a)},IDc=function(a){a.H||(a.H=_.aa.setTimeout(a.ha.bind(a),10))};
GDc.prototype.ha=function(){_.aa.clearTimeout(this.H);this.H=null;JDc(this);KDc(this);this.O.size===this.request.V().length?(this.context.Cf.$k([],1,this.originalRequest,!1),this.dispatchEvent("zb"),this.be.resolve(this.items)):this.dispatchEvent("wb")};
var JDc=function(a){var b=a.W;a.W=[];b=a.context.oga.S9(b);if(_.KI(_.eI(a.context.Xc))){var c=a.context.Cf.Yl;_.Ma(b,function(d){var e=c.H(d.getId());e&&_.PJ(d,e.vk())})}b.forEach(function(d){a.O.add(d.getId());a.items[d.getId()]=d});a.context.Cf.$k(b,1,a.originalRequest,!0)},KDc=function(a){var b=a.V;a.V=[];b.forEach(function(c){var d=_.BI(_.qI(new _.pI,c));a.context.Cf.Do([d]);a.O.add(c);a.items[c]=null;a.dispatchEvent(new FDc(c))})};
GDc.prototype.handleError=function(a){var b=new XL(a.qg,_.Dj(this.context.Xc.Sf(),1,1));this.context.Cf.JB(this.request,b);this.dispatchEvent(b);this.be.reject(a)};
var LDc=function(a,b,c,d){vM.call(this,a);this.Cg=b;this.request=c;this.Dd={};this.H=null;this.O=_.IJ(a.Xc)||new _.Bic;d&&this.$k(d,!0)};_.J(LDc,vM);
LDc.prototype.refresh=function(){var a=this;if(this.H)return this.H.promise;this.Cp=6;if(_.Q(this.request,5,!1))return this.qT(1),_.Vh();var b=this.cEa?!Jnc(_.bK(this.Cg),this.request.H()):!1,c=[],d=this.context.Bu();this.request.V().forEach(function(h){if("root"!==h&&h!==d){var k=a.Dd[h],l=k&&k.getItem();if(k=!k||l&&1!==l.Jv()||b)l=l&&l.Um(),k=!(l&&_.N(l,2));k&&c.push(h)}});if(0===c.length)return this.$k([],!1),_.Vh();this.H=_.Yh();this.H.promise.then(function(){a.H=null},function(){a.H=null});var e=
this.request.clone();_.YF(e,c);var f=new GDc(e,this.context,this.request);this.context.Jj().Le()?(this.Oc.listen(this.context.Jj(),"rb",function(h){h.Le()||(a.Oc.Tc(a.context.Jj(),"rb"),MDc(a,f,a.H))}),this.Cp=0<Object.values(this.Dd).length?1:2):(this.context.xk().Le()&&(this.Cp=0<Object.values(this.Dd).length?1:2),MDc(this,f,this.H));return this.H.promise};var MDc=function(a,b,c){a.Oc.listen(b,"xb",function(d){a.Dd[d.id]=null});a.GA();b.lh().then(function(){c.resolve()},c.reject)};_.g=LDc.prototype;
_.g.Lia=function(a){var b=this;if(this.context.ym.equals(a,this.request,!0)){if(Jnc(_.bK(this.Cg),a.H()))return!0;if(Jnc(this.request.H(),a.H(),_.bK(this.Cg))){if(this.cEa)return!0;if(_.Q(this.O,5,!1))return this.request.V().every(function(c){return(c=b.Dd[c])&&_.N(c.getItem(),31)})}}return!1};
_.g.mk=function(a){var b=new _.jK;_.lI(this.context.Xc)?b.Dc(Wnc(Object.values(this.Dd))?6:this.Cp):b.Dc(this.Cp);b.mi(this.Ve());Tsc(b,_.Va(this.Dd,function(c){return c?c.getItem():null}));CDc(this,a.H(),b.lt());return b};_.g.resize=function(){};_.g.jd=function(){return this.request};_.g.getSize=function(){return Object.values(this.Dd).length};
_.g.lw=function(a){var b=this.Bs(a.O),c=this.Bs(a.H);if(b||c)c?(this.Dd[a.id]=a.H,a.H.count++,b&&a.O.count--):(this.Dd[a.id]=null,a.O.count--);else return!1;return!0};_.g.Bs=function(a){return!!a&&_.pa(this.request.V(),a.getId())};
var NDc=function(a,b){_.ni.call(this,a);this.changes=b};_.J(NDc,_.ni);
var ODc=function(a){var b=new pyc;if(a.Uf()){var c=a.Uf();b.H=!1;b.suggestionSessionId=c}a instanceof _.kK&&_.yb(a,_.vk,6).length?(a=_.yb(a,_.vk,6),b.H=!1,b.V=a):a instanceof _.dI&&(a.Y6()||a.Dta()||a.kla().length)&&(c=a.Y6(),b.H=!1,b.W=c,c=a.Dta()||!1,b.H=!1,b.incompleteSearch=c,a=a.kla(),b.H=!1,b.O=a);return b};
var wM=function(a,b,c,d,e,f,h,k,l){l=void 0===l?"":l;_.yi.call(this);this.Ua=a;this.Ba=b;this.Qa=c;this.ta=d;this.$a=e;this.request=f;this.nextPageToken=l;this.W=0;this.wa=!1;this.V=[];this.O=!1;this.ka=0;this.Ga=new Set;this.ma=h||!1;this.La=k||!1;this.Ia=this.aIa(f);this.ha=new pyc};_.J(wM,_.yi);var PDc=function(a){return!a.wa||""!==a.nextPageToken},RDc=function(a,b){a.W=b;return a.V.length<a.W&&!a.O&&PDc(a)?QDc(a):_.ei()};wM.prototype.Yb=function(){return this.V.length};wM.prototype.H=function(){return this.V.slice()};
var QDc=function(a){var b=a.W-a.V.length+a.ka;a.log("Get more items called with limit of "+b);var c=a.nextPageToken,d=new _.$h;d.addCallback(function(h){SDc(a,c,h)});var e=_.onc(_.pnc(new _.mI,a.Ia),c),f=_.mnc(new _.Qfc,b);a.La&&_.u(f,10,!0);_.nnc(e,f);a.wa=!0;a.O=!0;a.Ba.then(function(h){return h.Oe(e)}).then(function(h){TDc(a,d,h)},function(h){a.handleError(d,f,h)});return d},TDc=function(a,b,c){a.O=!1;if(c instanceof _.kK)var d=c;else d=c.Zc(),a.nextPageToken=c.Zn()||"";a.ha=ODc(d);a.ha.lc()||
a.dispatchEvent("yb");b.callback(d.Bd())};wM.prototype.handleError=function(a,b,c){var d=this;c=_.wd(c);this.O=!1;if(5===c.qg.Ev())a.callback([]);else{if(10===c.qg.Ev()&&(_.mnc(b,Math.ceil(_.Dj(b,1,1E3)/2-2E-15)),1<_.Dj(b,1,1E3))){var e=_.nnc(_.onc(_.pnc(new _.mI,this.Ia),this.nextPageToken),b);this.O=!0;this.Ba.then(function(h){return h.Oe(e)}).then(function(h){TDc(d,a,h)},function(h){d.handleError(a,b,h)});return}var f=new XL(c.qg,_.Dj(this.Qa.Sf(),1,1));this.COa(f);this.dispatchEvent(f);a.Gd(c)}};
var SDc=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: ")+(_.Ijc(a.request)+" paginationToken: ")+b;b=_.Go(_.Eo(_.tI(_.sI(new _.Fc,2),9),f));a.$a(new _.Hc(new _.Gc(f,b)));break}d.add(f.getId())}f=c.filter(function(h){var k=a.Ga.has(h.getId());a.Ga.add(h.getId());return!k});a.ka+=c.length-f.length;c=_.m(f);for(b=c.next();!b.done;b=c.next())_.zI(b.value,a.ma?
2:1);c=[];b=_.m(a.h4a(f));for(f=b.next();!f.done;f=b.next())f=f.value,a.V.push(f.getId()),f=_.qI(new _.pI,f.getId()).setItem(f),c.push(f);c.length&&a.dispatchEvent(new NDc("wb",c));a.V.length<a.W&&a.nextPageToken?QDc(a):a.dispatchEvent("zb")};_.g=wM.prototype;_.g.h4a=function(a){return a};_.g.COa=function(){};_.g.jd=function(){return this.request};_.g.aIa=function(a){a=a.clone();this.ma&&_.u(a,46,!0);return a};_.g.log=function(a){this.Ua.info("drive.ds.sync.query.QueryRunner",a)};
var UDc=function(a,b,c,d){wM.call(this,a.Be(),a.Hm(),a.Xc,a.Cf.Yl,a.dispatchEvent,b,void 0,c,d);this.context=a};_.J(UDc,wM);UDc.prototype.h4a=function(a){a=this.context.oga.S9(a);this.context.Cf.$k(a,1,this.request,PDc(this));return a};UDc.prototype.COa=function(a){this.context.Cf.JB(this.request,a)};UDc.prototype.aIa=function(a){var b=a=wM.prototype.aIa.call(this,a),c=_.ol(b);0===_.se(b,33).length&&1===c.length&&(c=this.ta.H(c[0].Wa()))&&(c=c.uc())&&(_.ql(b,[c]),_.rl(b,2));VDc(this,a);return a};
var VDc=function(a,b){if(_.ol(b).some(function(d){return(d=a.ta.H(d.Wa()))&&_.N(d,108)})){var c=b.re();c||(c=new _.Qf,_.pl(b,c));_.Rf(c,937)}};
var WDc=function(a,b,c,d){this.context=a;this.Cg=b;this.V=d;this.Poa=0;this.O=c},$Dc=function(a,b){if(b){a.log("Processing potential rejoin for TD: "+b);var c=_.rl(_.ml(_.ql(new _.Df,[b]),_.bK(a.Cg)),1),d=_.Rf(new _.Qf,306);_.pl(c,d);XDc(a);c=new UDc(a.context,c);RDc(c,5E3).addCallback(a.H.bind(a,c));YDc(a);ZDc(a,b)}},YDc=function(a){var b=_.Ya(a.O).filter(function(d){return d instanceof LDc}),c=new Set;b.forEach(function(d){d.jd().V().forEach(function(e){a.V.get(e)||c.add(e)})});b=_.Rf(new _.Qf,
310);a.log("Re-querying missing find-by-ids :"+c.size);a.RO([].concat(_.fc(c)),b)},ZDc=function(a,b){var c=[];(a.context.Cf.kIa.ZQ[b||"subscribed"]||[]).forEach(function(d){_.Ta(a.O,function(e){_.Cj(e.jd(),d)&&c.push(e)})});_.Ga(c);0<c.length&&(XDc(a),c.forEach(function(d){d=gL(a.context.ym,d.jd(),3);a.log("Refreshing "+b+" cache: "+d)}),_.Xh(c.map(function(d){return d.refresh().then(null,_.hg)})).then(function(){aEc(a)},function(){aEc(a)}))};
WDc.prototype.RO=function(a,b,c,d,e){var f=this;c=void 0===c?!1:c;a=a.filter(function(k){return!_.Te(k)});if(0===a.length)return _.Vh({});a=_.u(_.XF(_.YF(new _.WF,a),d||_.bK(this.Cg)),7,!0);_.ZF(a,b);e&&e.length&&_.sj(a,11,e);XDc(this);var h=new GDc(a,this.context,void 0,c);b=h.lh();b.then(function(){f.H(h)},function(){f.H(h)});return b};WDc.prototype.H=function(a){a.dispose();aEc(this)};var XDc=function(a){a.Poa++;a.context.Ws.setActive(!1)},aEc=function(a){a.Poa--;0===a.Poa&&a.context.Ws.setActive(!0)};
WDc.prototype.log=function(a){this.context.Be().info("drive.ds.sync.cache.CacheRefresher",a)};
var bEc=function(a,b,c){_.L.call(this);this.context=a;this.H=b;this.request=c;this.O=this.be=null;a=new _.Qf;_.Sf(a,!1);_.Rf(a,305);_.pl(this.request,a);this.Oc=new _.of(this);this.Ja(this.Oc)};_.J(bEc,_.L);
bEc.prototype.lh=function(){if(!this.be){this.be=_.Yh();if(_.Q(this.request,48,!1))return this.H.mi(9),this.be.resolve(this.H),this.be.promise;this.O=new wM(this.context.Be(),this.context.Hm(),this.context.Xc,this.context.Cf.Yl,this.context.dispatchEvent,this.request,!0);this.Oc.listen(this.O,"wb",this.W);this.Oc.listen(this.O,"zb",this.V.bind(this));this.Oc.listen(this.O,"Ab",this.be.reject.bind(this.be));RDc(this.O,this.request.vi())}return this.be.promise};
bEc.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(PL(new yL(b)))};bEc.prototype.V=function(){this.H instanceof RL?this.H.H=!PDc(this.O):PDc(this.O)&&QL(this.H,!1);this.H.mi(5);this.be.resolve(this.H)};
var dEc=function(a,b){_.ni.call(this,cEc);this.cache=a;this.changes=b};_.J(dEc,_.ni);var cEc="Ib";
var eEc=function(a,b){return new _.Uh(function(c,d){b.then(function(e){for(var f=new Map,h=_.m(a.By()),k=h.next();!k.done;k=h.next()){k=k.value;var l=k.getId();boc(k.getItem());f.set(l,uvc(new yL(k.getItem()),k.H))}h=_.m(e.items);for(k=h.next();!k.done;k=h.next())k=k.value,l=k.qc(),l=f.get(l)||null,_.AI(k)?l&&a.update(new oxc(l.getId(),l,null)):(k=k.getItem(),boc(k),a.update(pxc(l,uvc(new yL(k),null===l||void 0===l?void 0:l.H))));a.TX();c(e.oOb)},d)})};
var fEc=function(a,b){_.L.call(this);this.context=a;this.Cg=b};_.J(fEc,_.L);
fEc.prototype.lh=function(a){this.log("Running initial view populator (IVDP).");try{var b=new vL(JSON.parse(a))}catch(l){this.handleError("Error parsing initial view dump.",_.NI(l));return}a=_.eI(this.context.Xc);if(!_.KI(a)){var c=b.Ef();if(c){var d=c.getUser();d&&d.getId()===_.z(a,6,"")&&vDc(this.context.DQ,c,4)}(a=b.Bu())&&this.context.kz(a,6)}var e=_.y(b,3)||void 0;e&&gEc(this.context,e,!0);if((a=_.yb(b,_.Vo,9))&&a.length){c=(c=this.context.Xc.Sf())&&_.se(c,30)||[];var f=new Set(c);a.forEach(function(l){(l=
(l=l.getKey())&&_.Wo(l))&&f.add(l)});this.context.GE.LQ(a,4,[].concat(_.fc(f.values())))}a=b.Bd();a.forEach(function(l){_.phc(l);_.zI(l,6)});if(c=_.yb(b,uL,5)[0])if(b=this.context.ym,Qnc(_.bK(this.Cg),c.getQuery().H(),_.WJ(this.context.Xc)))if((d=c.getQuery().Lc())&&4===d.getType()&&!_.fdc())this.handleError("Invalid initial view data, natural sort unsupported");else{if(0<a.length){d=BL(b,c.getQuery());d.Fi(_.y(c,2)||void 0);b=a.map(function(l){return new yL(l,void 0,1,e)});var h=_.x(c,_.Ik,3);if(h&&
_.y(c,2)){var k=b[b.length-1];_.zI(h,6);if(!_.Cj(h,k.getItem())){this.handleError("Invalid last item in initial view data.");return}}k=new RL(this.context.Ct,this.context.Sv,this.context.ym,d,k,c.Zn()||"");k.mi(4);d=c=0;b=_.m(b);for(h=b.next();!h.done;h=b.next())k.update(PL(h.value))?c++:d++;hEc(this.context.Cf,k);b=k.jd();this.log("Imported "+c+" initial view items (IVDP) successfully ("+d+" failed) into the cache hint corpus cache. Query: "+k.jN());k=new _.mI;_.pnc(k,b);k=_.Tkc(this.context.hB,
k,"IVDP");_.Ukc(k,a);OL(this.context.Oj,"W6J7De")}}else this.handleError("Invalid initial view data, fields: "+Yvc(b,c.getQuery().H()));else this.handleError("No initial query found")};fEc.prototype.handleError=function(a,b){var c=b?void 0:_.Go(_.tI(_.sI(new _.Fc,2),6));b=new _.Gc(a,c,b);this.context.DJ(b.qg);this.log("Initial view dump population failed. Message: "+a);OL(this.context.Oj,"DEJoH")};fEc.prototype.log=function(a){this.context.Be().info("drive.ds.sync.cache.InitialViewPopulator",a)};
var iEc=function(a){_.yi.call(this);this.context=a;this.W="drive.ds.sync.cache.CorpusCachePopulator";this.V=0;this.O=new TL(a.Ct,a.Sv,a.Oj,function(){return a.Bu()});this.H=this.context.Xc;this.ta=new sxc(a.Ct,a.Sv)};_.J(iEc,_.yi);
var jEc=function(a,b){var c=_.Dj(a.H,31,2E4);b="number"===typeof _.y(b,3)?_.y(b,3):c+1;b>c?(QL(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.hB.Hb("CachedCorpusType",c)};iEc.prototype.log=function(a,b){this.context.Be().log(this.W,a,b||"info")};var kEc=function(a,b){0===a.V&&(a.V=b)};
var lEc=function(a,b){var c;if(c=!!b&&!!b.Uh())a=_.N(a,4),c=null==a||!!_.N(b.Uh(),7)==a;return c};
var mEc=function(a,b){_.yi.call(this);this.context=a;this.request=b;this.V=[];this.nextPageToken="";this.H=this.O=!1};_.J(mEc,_.yi);mEc.prototype.lh=function(){return this.H||this.O&&""===this.nextPageToken?_.ei():nEc(this)};mEc.prototype.Yb=function(){return this.V.length};
var nEc=function(a){a.O=!0;a.H=!0;var b=Krc(Lrc(new _.EJ,a.request),a.nextPageToken),c=_.Tkc(a.context.hB,b);return _.fi(a.context.Hm().then(function(d){return d.Oe(b)}).then(function(d){var e=d.Zc().Bd();a.nextPageToken=d.Zn()||"";oEc(a,c,e)},function(d){return void a.handleError(d)}))},oEc=function(a,b,c){_.Ukc(b,c);for(b=0;b<c.length;b++)_.zI(c[b],1);a.context.Cf.$k(c,1,a.request,!a.O||""!==a.nextPageToken);var d=[];_.Ma(c,function(e){this.V.push(e.getId());e=_.qI(new _.pI,e.getId()).setItem(e);
d.push(e)},a);d.length&&a.dispatchEvent(new NDc("wb",d));a.nextPageToken?nEc(a):(a.H=!1,a.dispatchEvent("zb"))};mEc.prototype.handleError=function(a){this.H=!1;a=new XL(_.uI(a),_.Dj(this.context.Xc.Sf(),1,1));this.dispatchEvent(a)};mEc.prototype.jd=function(){return this.request};
var pEc=function(a){this.H=_.gdc(a,{numeric:!0})};pEc.prototype.sort=function(a){_.Ka(a,this.compare.bind(this))};pEc.prototype.compare=function(a,b){a=a.getItem();b=b.getItem();var c=this.H(a.getTitle(),b.getTitle());return 0===c?_.Ha(a.getId(),b.getId()):c};
var qEc=function(a,b,c,d){d=void 0===d?!1:d;vM.call(this,a);this.Cg=b;this.Dd=[];this.be=null;this.request=c.clone();this.aw=new mEc(a,this.request);this.jTb=new pEc(ZK(_.eI(a.Xc)));this.oEa=null!=_.N(this.request,6);_.ff(this,this.apb,this);d&&(this.be=_.Yh(),this.be.resolve())};_.J(qEc,vM);_.g=qEc.prototype;_.g.refresh=function(){3===this.Cp&&(this.Cp=6,this.be=null);return this.ida()};_.g.isInitialized=function(){return!!this.be};
_.g.ida=function(){var a=this;if(this.isInitialized())return this.be.promise;this.be=_.Yh();this.context.Jj().Le()?this.Oc.listen(this.context.Jj(),"rb",function(b){b.Le()||(a.Oc.Tc(a.context.Jj(),"rb"),a.GA(),a.aw.lh().dg(a.be.resolve,a.be.reject,a.be))}):this.context.xk().Le()?this.Oc.hd(this.context.xk(),[_.VB.XL,_.VB.YU],function(){a.GA();a.aw.lh().dg(a.be.resolve,a.be.reject,a.be)}):(this.GA(),this.aw.lh().dg(this.be.resolve,this.be.reject,this.be));return this.be.promise};_.g.resize=function(){};
_.g.jd=function(){return this.request};_.g.By=function(){return this.Dd};_.g.Lia=function(a){return this.context.ym.equals(a,this.request)};_.g.mk=function(a){a=a.vi();this.jTb.sort(this.Dd);var b=Goc(_.Da(this.Dd,0,Math.min(a,this.Dd.length)));CDc(this,nsc(this.Cg),b);var c=new _.dI;c.fB(b);c.Dc(this.Zxa(a));c.mi(this.Ve());Frc(c,a<this.Dd.length||!(this.context.Jj().Le()||this.context.xk().Le())&&1!==this.Cp);return c};
_.g.Zxa=function(a){return 1===this.Cp||a<=this.Dd.length?1:this.context.Jj().Le()||this.context.xk().Le()?0<this.Dd.length?1:2:6};_.g.$k=function(a,b){this.isInitialized()&&vM.prototype.$k.call(this,a,b)};_.g.lw=function(a,b){b=void 0===b?!1:b;if(!this.isInitialized())return!1;var c=a.id,d=_.na(this.Dd,function(h){return h.getId()===c}),e=!!d;b=this.Bs(a.H,b);var f=a.O;d&&(f=d,e=!0);if(e||b)e?b?this.pMa(f,a.H):this.zJ(f):this.kS(a.H);else return!1;return!0};_.g.kS=function(a){this.Dd.push(a);a.count++};
_.g.zJ=function(a){_.wa(this.Dd,a);a.count--};_.g.hAa=function(a){return _.oa(this.Dd,a)};_.g.pMa=function(a,b){this.Dd[this.hAa(a)]=b;b.count++;a.count--};_.g.Bs=function(a,b){b=void 0===b?!1:b;if(!a)return!1;if(this.oEa&&null!=_.N(this.request,6)){if(b)return!0;var c=a.getId();b=!!this.Dd.find(function(d){return c===d.getId()},this);a=zL(a.getItem())&&lEc(this.request,a.getItem());return b&&a}return zL(a.getItem())&&lEc(this.request,a.getItem())};_.g.apb=function(){this.Dd.forEach(function(a){a.count--})};
_.g.O0a=function(){return!0};_.g.getType=function(){return"TeamDriveViewCache"};_.g.getSize=function(){return this.Dd.length};_.g.TX=function(){this.Cp=1};
var rEc=function(a){this.H=a},sEc=function(a,b,c,d,e){if(0===e||null===b){var f=new hBc;_.u(f,2,b);_.u(f,1,d);return _.Vh(f)}var h=zwc();_.u(h,2,b);c&&_.u(h,3,c);return a.H.then(function(k){return k.Oe(h)}).then(function(k){var l,p=null!==(l=k.Gy())&&void 0!==l?l:null;return sEc(a,p,c,d+_.y(k,1),e-1)})};
var tEc=function(a,b){iEc.call(this,a);this.Cg=b;this.ha=void 0;this.ka=null;this.ma=!1;this.bE=void 0;this.W="drive.ds.sync.cache.LocalDumpPopulator"};_.J(tEc,iEc);tEc.prototype.handleError=function(){this.log("Local dump population failed.");OL(this.context.Oj,"mrK8ic")};
tEc.prototype.lh=function(){var a=this;if(this.ka)return this.ka;if(this.context.gR){var b=new _.$h;this.ka=b;this.initialize().then(function(){var c=_.yb(_.$K(a.H),YK,11);c=c[0]&&c[0].getKey()||"";return uEc(a,a.context.gR,c,4)}).then(null,function(c){if(_.Q(a.H,8,!0))return vEc(a,c);throw c;}).then(function(){_.lI(a.H)||a.context.Cf.Jq.H.clear();OL(a.context.Oj,"zaOY7");b.callback()},function(c){kEc(a,8);a.handleError();b.Gd(c)});return b}this.handleError();return _.gi(Error("yg"))};
tEc.prototype.initialize=function(){var a=this;return _.Vh(this.context.gR.initialize()).then(function(){if(!_.XJ(a.H)){var b=_.Dj(_.$K(a.H),7,432E6);b&&(a.ha=Date.now()-b);return new _.Uh(function(c,d){DAc(a.context.UD).then(function(e){e?c():d(Error("zg"))})})}})};
var uEc=function(a,b,c,d){return _.mg(a,function f(){var h=this,k;return _.dg(f,function(l){return 1==l.H?(k=h.ha,wEc(h,b,c,k),xEc(h,b,c,k),yEc(h,b,c,k),_.Xf(l,zEc(h,b,c,k),2)):_.Xf(l,Promise.all([AEc(h,b,c,d,k),BEc(h,b,c,d,k),CEc(h,b,c,d,k),DEc(h,b,c,d,k)]),0)})})},wEc=function(a,b,c,d){var e=function(){return a.log("Failed to load account from storage.")};bM(b,c,0,void 0,d,a.bE).then(function(f){f[0]?vDc(a.context.DQ,f[0],a.Ve(),_.XJ(a.H)):e()},function(){return e()})},xEc=function(a,b,c,d){var e=
function(){return a.log("Failed to load apps from storage.")};bM(b,c,1,void 0,d,a.bE).then(function(f){f[0]?a.context.J_.LQ(f[0],a.Ve(),_.XJ(a.H)):e()},function(){return e()})},yEc=function(a,b,c,d){var e=function(){return a.log("Failed to load user prefs from storage.")};bM(b,c,5,void 0,d,a.bE).then(function(f){if(f[0]){f=f[0];var h=_.yb(f,_.Vo,1);h.length&&a.context.GE.LQ(h,a.Ve(),_.se(f,2),_.XJ(a.H))}else e()},function(){return e()})},AEc=function(a,b,c,d,e){var f=new _.en;bM(b,c,3,1,e,a.bE).then(function(h){return EEc(a,
h[0])}).then(function(h){if(h){b!==a.context.gR||Qnc(_.se(h,12),_.bK(a.Cg),_.WJ(a.H))||(a.log("Disabling dump updater due to inconsistent fields.","warning"),a.context.Ws.YS());var k=_.y(h,3);if(!k||0>k)throw Error("Cg");a.context.kz(h.Bu(),d);k=_.y(h,3);"number"===typeof k&&gEc(a.context,Number(k));if(_.XJ(a.H)||_.VJ(a.H))a.log((_.XJ(a.H)?"Coldstart":"Background")+": Firing INITIAL_CHANGES_PROCESSED."),a.context.DFa();a.$k(h,d);f.resolve()}else f.reject("Failed to load cache hints from storage.")},
function(h){return f.reject(h)});return f.promise},BEc=function(a,b,c,d,e){return FEc(a,2,b,c,d,e).then(function(){var f,h;return null===(f=_.IJ(a.H))||void 0===f||!_.Q(f,17,!1)||null!==(h=a.O)&&void 0!==h&&h.LD?Promise.resolve():FEc(a,5,b,c,d,e)},function(){var f;return(null===(f=_.IJ(a.H))||void 0===f?0:_.Q(f,17,!1))?FEc(a,5,b,c,d,e):Promise.reject(Error("Ag"))})},FEc=function(a,b,c,d,e,f){var h=new _.en;bM(c,d,3,b,f,a.bE).then(function(k){k[0]?(a.$k(k[0],e),h.resolve()):h.reject(Error("Bg"))},
function(k){return h.reject(k)});return h.promise},CEc=function(a,b,c,d,e){var f=new _.en;bM(b,c,3,4,e,a.bE).then(function(h){h.forEach(function(k){a.$k(k,d)});f.resolve()},function(h){return f.reject(h)});return f.promise},DEc=function(a,b,c,d,e){var f=new _.en;bM(b,c,3,3,e,a.bE).then(function(h){h.length?h.forEach(function(k){a.$k(k,d)}):OL(a.context.Oj,"rVezo");f.resolve()},function(h){return f.reject(h)});return f.promise},zEc=function(a,b,c,d){var e=new _.en;bM(b,c,6,void 0,d,a.bE).then(function(f){f=
_.m(f);for(var h=f.next();!h.done;h=f.next())h=h.value,_.yb(h,LL,1).length&&(a.log("Importing "+_.yb(h,LL,1).length+" people into the PeopleCache."),h=_.yb(h,LL,1),Nxc(a.context.Cf.Jq.H,h,2));e.resolve()},function(f){return e.reject(f)});return e.promise},EEc=function(a,b){var c=_.y(b,3);if(c&&!_.XJ(a.H)){var d=new rEc(a.context.Hm()),e=_.Dj(_.$K(a.H),13,5);return sEc(d,c,null,0,e).then(function(f){return _.lj(f,2)?(a.log("Encrypted dump too stale."),a.context.lk().O(106007),kEc(a,9),null):b},function(){return b})}return _.Vh(b)},
vEc=function(a,b){var c=cM(a.context.bM.mj()),d=_.yb(_.$K(a.H),YK,11).filter(function(e){return e.wt()});return vAc(_.UJ(_.eI(a.H)),_.WJ(a.H),_.Dj(_.$K(a.H),10,0)||0,_.bK(a.Cg),a.ha||0,d.map(function(e){return _.y(e,1)}),c).then(function(e){if(e){var f=d.find(function(l){return e.V===_.y(l,1)}),h=new dM(_.Vh(e),a.context.Be(),null,!0),k=new tzc(h,a.H,function(l){a.context.DJ(l)});k.initialize();a.ma=!0;return uEc(a,k,f?f.getKey():null,8).then(function(){return h.getMetadata([AAc])}).then(function(l){l[0]?
(l=l[0].Wa(),l=a.context.UD.set(AAc,l)):l=Promise.resolve();return l}).then(function(){h.close()})}return _.Wh(new _.Gc("No compatible dumps to forklift were found.",null,b))})},KEc=function(a,b,c){var d;switch(b.Vo()){case 1:return GEc(a,b,c);case 2:return HEc(a,b,a.O);case 5:return(null===(d=_.IJ(a.H))||void 0===d?0:_.Q(d,17,!1))?HEc(a,b,a.ta):null;case 3:return IEc(a,b);case 4:return JEc(a,b);default:return null}},GEc=function(a,b,c){var d=[];_.yb(b,uL,5).forEach(function(e){var f=void 0,h=_.x(e,
_.Ik,3);h&&(_.phc(h),_.N(a.H,67)&&Enc(h,Tnc),_.zI(h,c),f=new yL(h));var k=e.getQuery();if(!_.Q(k,48,!1)||_.yb(a.H,_.Df,44).some(function(l){if(!_.Q(l,48,!1))return!1;l=BL(a.context.ym,l,!0);return _.Cj(l,k)}))e=new RL(a.context.Ct,a.context.Sv,a.context.ym,k,f),e.mi(a.Ve()),d.push({cache:e,changes:$L(a.context.zx,null)})});return d},HEc=function(a,b,c){b=_.x(b,Yoc,11);if(!b)throw Error("Dg");jEc(a,b);return c.LD?(c.mi(a.Ve()),[{cache:c,changes:$L(a.context.zx,null)}]):[]},JEc=function(a,b){return _.yb(b,
uL,5).map(function(c){c=new qEc(a.context,a.Cg,_.x(c,_.QH,5),!0);c.mi(a.Ve());return{cache:c,changes:$L(a.context.zx,null)}})},IEc=function(a,b){var c=_.se(_.yb(b,uL,5)[0].getQuery(),33)[0],d=_.y(b,3)||void 0;b=$L(a.context.zx,c);xM(a.context).addCallback(function(f){f.Bwa(c,d)});var e=new VL(a.context.Ct,a.context.Sv,c);e.mi(a.Ve());return[{cache:e,changes:b}]};
tEc.prototype.$k=function(a,b){var c=this,d=KEc(this,a,b);if(d&&0!==d.length){for(var e=_.m(a.Bd()),f=e.next();!f.done;f=e.next()){var h=f.value;_.phc(h);_.N(this.H,67)&&Enc(h,Tnc);_.zI(h,b);_.lI(this.H)||this.context.Cf.Jq.H.lc()||iyc(this.context.Cf.Jq,[h]);f=new yL(h);_.se(a,14).includes(h.getId())&&uvc(f,!0);for(h=0;h<d.length;h++)d[h].cache.update(PL(f))}d.forEach(function(k){var l=k.cache;c.dispatchEvent(new dEc(l,k.changes));c.log("Imported "+l.getSize()+" items into the "+l.getType());var p=
null;l instanceof VL&&(p=l.uc());c.context.Saa.promise.then(function(){aM(c.context.zx,p)})});1===a.Vo()&&OL(this.context.Oj,"ZA9qG")}else this.log("Ignoring corpus cache for "+a.Vo()+".")};tEc.prototype.Ve=function(){return this.ma?7:3};
var LEc=function(a){_.L.call(this);this.context=a};_.J(LEc,_.L);LEc.prototype.lh=function(a){try{return MEc(this,new lCc(JSON.parse(a)))}catch(b){return this.handleError("Error parsing prefetched request.",b),Promise.resolve()}};
var MEc=function(a,b){a.log("Running prefetched request populator for "+b.getKey()+".");switch(b.getKey()){case 1:case 3:b=NEc(a,b);break;case 4:b=OEc(a,b);break;case 6:b=PEc(a,b);break;case 2:b=QEc(a,b);break;case 7:b=REc(a,b);break;case 5:b=Promise.all(_.yb(_.Gj(b,nCc,7,pCc),lCc,1).map(function(c){MEc(a,c)}));break;default:return a.handleError("Unsupported prefetched request."),Promise.resolve()}return b},NEc=function(a,b){var c=_.Gj(b,_.Df,2,oCc);b=JSON.parse(_.Fj(b,3,pCc)||"{}");var d=new _.mI;
_.pnc(d,c);return a.context.RR().Ita.convert(d,{headers:{},text:"",json:b}).then(function(e){SEc(a,c,e.Zc())})},PEc=function(a,b){return SEc(a,_.Gj(b,_.Df,2,oCc),_.Gj(b,_.dI,9,pCc))},SEc=function(a,b,c){for(var d=c.Bd(),e=_.m(d),f=e.next();!f.done;f=e.next())_.zI(f.value,7);c=ODc(c);a=a.context.Cf;b=BL(a.context.ym,b);e=yM(a,b);a.log("Initializing cache with "+d.length+" items for key '"+e+"'");f=a.V[e];f||(f=new zM(a.context,b),f.mi(2),TEc(a,e,f));c.lc()||f.Hta(c);a.$k(d,1,b);return Promise.resolve()},
QEc=function(a,b){_.Gj(b,_.nD,4,oCc);b=_.Gj(b,_.$z,5,pCc);var c=a.context.Xc.Sf();c=c&&_.se(c,30)||[];var d=new Set(c);_.yb(b,_.Vo,3).forEach(function(e){(e=(e=e.getKey())&&_.Wo(e))&&d.add(e)});a.context.GE.LQ(_.yb(b,_.Vo,3),2,[].concat(_.fc(d.values())));return Promise.resolve()},OEc=function(a,b){a.context.pga.y3(_.Gj(b,ML,8,pCc).Yk(),_.Gj(b,_.dA,6,oCc),2,!1);return Promise.resolve()},REc=function(a,b){var c=_.Gj(b,_.bA,10,oCc);b=JSON.parse(_.Fj(b,3,pCc)||"{}");return a.context.RR().Ita.convert(c,
{headers:{},text:"",json:b}).then(function(d){cDc(a.context).y3([d],c,2,!1)})};LEc.prototype.handleError=function(a,b){var c=b?void 0:_.Go(_.tI(_.sI(new _.Fc,2),6));this.context.dispatchEvent(new _.Hc(new _.Gc(a,c,b instanceof Error?b:null)));this.log("Prefetched request population failed.")};LEc.prototype.log=function(a){this.context.Be().info("drive.ds.sync.cache.PrefetchedRequestPopulator",a)};
var UEc=function(a){iEc.call(this,a);this.ha=[];this.ka=[];this.W="drive.ds.sync.cache.SdkCachePopulator";this.ma=Math.ceil(1.1*_.Dj(a.Xc,31,2E4))};_.J(UEc,iEc);UEc.prototype.lh=function(){if(!_.Q(this.H,45,!1))return kEc(this,5),this.handleError(),_.gi(Error("Eg"));this.log("Drive SDK cache population initiated.");return this.context.eYa().addCallback(this.Ba,this).addCallback(this.wa,this).yg(this.handleError,this)};
UEc.prototype.Ba=function(){var a=this;OL(this.context.Oj,"L6uQWd");xM(this.context).addCallback(function(b){b.Cea()});if(_.Q(this.H,46,!1))return Xoc(this.context.Hm(),this.context.Be()).addCallback(function(b){if(!b)throw kEc(a,4),Error("Fg");jEc(a,b)});this.log("Subscribed corpus cache population disabled.");QL(this.O,!1);return _.ei()};
UEc.prototype.wa=function(){var a=this;this.context.DFa();var b=new _.$h;if(this.O.LD){this.log("Starting subscribed corpus cache population.");var c=this.O.jd();c.Fi(this.ma);this.O.mi(5);VEc(this,this.O,c)}c=_.yb(this.H,_.Df,44);c=_.m(c);for(var d=c.next();!d.done;d=c.next())d=new RL(this.context.Ct,this.context.Sv,this.context.ym,d.value),d.mi(5),VEc(this,d,d.jd()),d=gL(this.context.ym,d.jd()),this.log("Starting "+d+" cache hint corpus cache population.");_.Xh(this.ka).then(function(e){b.callback(e)},
function(e){for(var f=_.m(a.ha),h=f.next();!h.done;h=f.next())h.value.dispose();kEc(a,7);f=e;e instanceof XL?f=_.NI(e.error):_.rI(e)||(f=Error("Gg`"+e));b.Gd(f)});return b};
var VEc=function(a,b,c){var d=$L(a.context.zx,null);b=new bEc(a.context,b,c);a.ha.push(b);b=b.lh().then(function(e){!e.LD&&e instanceof TL&&(a.log("Subscribed corpus cache disabled, too many backfill items."),a.context.hB.Hb("CachedCorpusType","errorUncachedCorpus"));a.dispatchEvent(new dEc(e,d))});b.then(function(){WEc(a)},function(){WEc(a)});a.ka.push(b)},WEc=function(a){a.context.Saa.promise.then(function(){aM(a.context.zx,null)})};
UEc.prototype.handleError=function(){this.log("Drive SDK cache population failed.");OL(this.context.Oj,"Gv4zef")};UEc.prototype.Ve=function(){return 5};
var XEc=function(a,b){_.L.call(this);this.context=a;this.V=b;this.Oc=new _.of(this);this.impression=null;this.W=[];this.Ja(this.Oc);this.H=new tEc(this.context,this.context.Cg);this.Ja(this.H);this.O=new UEc(this.context);this.Ja(this.O)};_.J(XEc,_.L);
XEc.prototype.lh=function(){var a=this;this.log("Corpus cache population initiated.");this.impression=this.context.lk().H(106002);_.aa._DRIVE_dsp&&YEc(this);_.aa._DRIVE_dspc=function(c){YEc(a,c)};$L(this.context.zx,null);_.Q(this.context.Xc,24,!1)&&!_.XJ(this.context.Xc)&&(_.aa._DRIVE_ivd||null===_.aa._DRIVE_ivd?ZEc(this):_.aa._DRIVE_ivdc=function(){ZEc(a)});var b=this.context.gR;if(b)return this.Oc.listen(this.H,cEc,this.ha),this.Oc.listen(this.O,cEc,this.ha),(!_.VJ(this.context.Xc)&&_.N(this.context.Xc,
69)?this.context.pY.promise:Promise.resolve()).then(function(){return b.initialize().then(function(){a.log("Dump storage initialized.");a.impression&&(a.H.bE=a.impression);return a.H.lh().dg(function(){return $Ec(a,a.H.Ve())},function(){aFc(a,a.H.Ve(),a.H.V);return _.XJ(a.context.Xc)?a.handleError(Error("Hg")):a.O.lh().then(function(){return $Ec(a,a.O.Ve())},function(c){aFc(a,a.O.Ve(),a.O.V);return a.handleError(c)})})},function(c){a.handleError(_.rI(c)?c:void 0,!0)})});this.handleError(void 0,!0)};
var YEc=function(a,b){a=new LEc(a.context);var c=[,!0,!0,!0,!0,,!0,!0],d=(_.aa._DRIVE_dsp||[]).filter(function(f,h){return f&&c[h]&&(!b||h===Number(b))});d=_.m(d);for(var e=d.next();!e.done;e=d.next())a.lh(e.value);a.dispose()};XEc.prototype.ha=function(a){var b=a.cache;this.log("Cache populated: "+b.getType());this.W.push(bFc(this,b,a.changes))};
var $Ec=function(a,b){aM(a.context.zx,null);OL(a.context.Oj,"L6uQWd");xM(a.context).addCallback(function(c){c.Cea()});return Promise.all(a.W).then(function(){cFc(a,b)})},cFc=function(a,b){if(!a.isDisposed()){_.XJ(a.context.Xc)||dFc(a.V,_.yb(a.context.Xc,_.Df,44));a.log("Corpus cache population complete.");var c=a.context.Oj;c.H("mrK8ic")?c.H("Gv4zef")||a.context.Ws.EFa():DAc(a.context.UD).then(function(d){d&&a.context.Ws.EFa()},function(){});OL(c,"rVezo");OL(c,"BNEDtc");a.impression&&(b=_.iK(_.igc,
b),hsc(psc(a.impression),b),gsc(psc(a.impression),!0),isc(psc(a.impression),Lvc(a.V.Yl)),jsc(psc(a.impression),a.context.Cf.Vo()),a.impression.Cj());a.dispose()}},aFc=function(a,b,c){a.impression&&(b=_.iK(_.igc,b),hsc(psc(a.impression),b),a=psc(a.impression),_.uj(a,3,c,void 0))};
XEc.prototype.handleError=function(a,b){b=void 0===b?!1:b;aM(this.context.zx,null);var c=this.context.Oj;OL(c,"L6uQWd");xM(this.context).addCallback(function(d){d.Cea()});OL(c,"mrK8ic");OL(c,"Gv4zef");OL(c,"rVezo");OL(c,"BNEDtc");this.context.hB.Hb("CachedCorpusType","partialCorpus");c=!!this.H.context.gR||_.Q(this.O.H,45,!1);a&&!b&&c?(c=void 0,b="Corpus population failed: ",_.rI(a)?(c=a,b+=c.message):b+=String(a),this.log(b),a=new _.Gc(b,void 0,c),c=a.qg,_.sI(c,_.XJ(this.context.Xc)?3:1),_.tI(c,
6),_.Eo(c,b),_.Go(c),this.context.dispatchEvent(new _.Hc(a))):this.log("Corpus population skipped");this.impression&&(gsc(psc(this.impression),!1),this.impression.Cj());this.dispose()};var bFc=function(a,b,c){return eEc(b,c).then(function(d){d.some(function(e){return b instanceof VL&&_.AI(e)&&e.qc()===b.uc()})||hEc(a.V,b,d)},function(){return a.handleError(Error("Ig"))})},ZEc=function(a){if(_.aa._DRIVE_ivd){var b=new fEc(a.context,a.context.Cg);a.Ja(b);b.lh(_.aa._DRIVE_ivd)}else OL(a.context.Oj,"DEJoH")};
XEc.prototype.log=function(a){this.context.Be().info("drive.ds.sync.cache.CorpusCachePopulatorManager",a)};
var eFc=function(){SL.apply(this,arguments)};_.J(eFc,SL);_.g=eFc.prototype;_.g.Bs=function(a){var b;if(b=SL.prototype.Bs.call(this,a))a=a&&a.getItem()&&a.getItem().Um(),b=!(!a||!_.N(a,3));return b};_.g.jd=function(){};_.g.jN=function(){return null};_.g.getType=function(){};_.g.bO=function(){};
var fFc=function(a,b){this.context=a;this.H=b;this.ZQ={}},hFc=function(a,b){if(!_.kJ(b)){var c=_.se(b,33);if(1===c.length)gFc(a,c[0],b);else{c=_.ol(b);if(1===c.length&&!_.Q(c[0],2,!1)){var d=c[0].Wa();c=a.H.get(d);if(!c){c=a.context.Cf.SI;var e=_.Rf(new _.Qf,310);c.RO([d],e).then(function(f){if((f=f[d])&&f.uc()){var h=f.getCapabilities();h&&_.Pe(h)&&(f=f.uc(),gFc(a,f,b))}else gFc(a,null,b)});return}if(c.getItem().uc()&&_.Pe(c.getItem().getCapabilities())){c=c.getItem().uc();gFc(a,c,b);return}}gFc(a,
null,b)}}},gFc=function(a,b,c){if(b){var d=a.H.get(b);if(d&&!zL(d.getItem()))return}d=b||"subscribed";a.ZQ[d]||(a.ZQ[d]=[]);a.ZQ[d].push(c);b&&(xM(a.context).addCallback(function(e){e.Bwa(b)}),iFc(a.context.ALa,b))},jFc=function(a,b){if(!_.kJ(b)){var c={},d;for(d in a.ZQ){c.nU=d;for(var e=0;e<a.ZQ[c.nU].length;e++)if(_.Cj(b,a.ZQ[c.nU][e])){_.va(a.ZQ[c.nU],e);"subscribed"!==c.nU&&xM(a.context).addCallback(function(f){return function(h){h.NIa(f.nU,!1)}}(c));return}c={nU:c.nU}}}};
var kFc=function(){this.H=new Map;this.O=[];this.V=[]};
kFc.prototype.update=function(a){var b=this,c=a.id,d=a.O;a=a.H;var e=(d||a).getItem();OK(e)&&(a?(e=a.getItem().vf())&&_.y(e,1)&&(1===_.ze(e)||3===_.ze(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&&!_.Cj(a.getItem(),d.getItem()))&&this.H.get(c).forEach(function(f){b.V.push(f)})};
var lFc=function(a){return a.V.filter(function(b){return!a.O.includes(b)})},mFc=function(a){a.O=[];a.V=[]};
var nFc=function(a,b){Uyc.call(this,a.clone(),b.Hm(),b.Xc,b.Be());this.context=b};_.J(nFc,Uyc);nFc.prototype.W=function(a){var b=new Map;a.V().forEach(function(c){var d=a.clone();d=_.qj(d,2,[c]);b.set(c,d)});return b};nFc.prototype.V=function(a){a=a.Bd()[0];this.context.Cf.$k([a],1,void 0,!0,this.request.H())};nFc.prototype.ha=function(a){this.context.Cf.$k([],1,a,!1,this.request.H())};nFc.prototype.ka=function(a){a=_.BI(_.qI(new _.pI,a));this.context.Cf.Do([a])};
var oFc=function(a,b,c,d){vM.call(this,a);this.Cg=b;this.request=c;this.Dd={};d&&this.$k(d,!0)};_.J(oFc,vM);_.g=oFc.prototype;
_.g.refresh=function(){var a=this;this.Cp=6;var b=CL(this.context.Xc)!==CL(this.context.Xc,this.request.H()),c=[];this.request.V().forEach(function(h){var k=a.Dd[h];k&&k.getItem().Uh()&&!b||c.push(h)});if(0===c.length)return this.$k([],!1),_.Vh();var d=this.request.clone();_.qj(d,2,c);var e=new nFc(d,this.context),f=_.Yh();this.context.Jj().Le()?(this.Oc.listen(this.context.Jj(),"rb",function(h){h.Le()||(a.Oc.Tc(a.context.Jj(),"rb"),a.GA(),e.lh().then(f.resolve,f.reject,f))}),this.Cp=0<_.Xa(this.Dd)?
1:2):(this.context.xk().Le()&&(this.Cp=0<_.Xa(this.Dd)?1:2),this.GA(),e.lh().then(f.resolve,f.reject,f));return f.promise};_.g.Lia=function(a){return this.context.ym.equals(a,this.request)&&Jnc(_.bK(this.Cg),a.H())};_.g.mk=function(a){var b=new _.jK;b.Dc(this.Cp);b.mi(this.Ve());Tsc(b,_.Va(this.Dd,function(c){return c?c.getItem():null}));CDc(this,a.H(),b.lt());return b};_.g.resize=function(){};_.g.jd=function(){return this.request};_.g.getSize=function(){return _.Xa(this.Dd)};
_.g.lw=function(a){var b=this.Bs(a.O),c=this.Bs(a.H);if(b||c)c?(this.Dd[a.id]=a.H,a.H.count++,b&&a.O.count--):(this.Dd[a.id]=null,a.O.count--);else return!1;return!0};_.g.Bs=function(a){return!!a&&this.request.V().includes(a.getId())};
var zM=function(a,b,c,d,e){vM.call(this,a);var f=this;this.V=0;this.Dd=[];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.Ga=gL(this.context.ym,b);this.aw=new UDc(this.context,this.request,!1,e);b=this.request.Lc()&&Pvc(this.request.Lc());var h=this.context.Sv;this.H=b?function(k,l){return h.compare(f.request,k,l)}:null;this.oEa=!b||!Fvc(this.request)||_.KI(_.eI(a.Xc));
this.Ia=wxc(this.request);c&&this.$k(c,!d);this.wa=_.Dj(a.Xc.Sf(),16,36E5);_.JJ(this.request)&&this.Oc.listen(this.context.Tha,"Bb",this.La);_.ff(this,function(){(0,_.ca)(f.aw);f.clear()})};_.J(zM,vM);zM.prototype.refresh=function(){this.log(this.jN()+" | Refresh called, currently "+this.getSize()+" items cached");return pFc(this,!1)};
var pFc=function(a,b){a.Cp=6;if(_.Q(a.request,48,!1))return a.Cp=1,_.Vh();if(_.JJ(a.request)){var c=qFc,d=a.context.Tha.H;d=Math.max(Date.now()-d,a.wa);c(a,Math.min(d,2592E5))}return rFc(a,b)};zM.prototype.initialize=function(){return this.count>=this.request.vi()||1===this.Cp?_.Vh():this.refresh()};zM.prototype.clear=function(){sFc(this)};
var sFc=function(a){a.Dd.forEach(function(b){b.count--});a.count=0;a.Dd=[];a.O.clear()},qFc=function(a,b){_.aa.clearTimeout(a.Ba);a.Ba=_.aa.setTimeout(function(){return pFc(a,!0)},b)};zM.prototype.La=function(){Date.now()-this.ta>this.wa&&qFc(this,0)};
var rFc=function(a,b){a.aw&&(a.Oc.Tc(a.aw,"yb",a.Hta),a.Oc.Tc(a.aw,"zb",a.DOa),a.aw.dispose());var c=a.request.re();c&&_.Sf(c,!1);a.aw=new UDc(a.context,a.request,b);a.V=0;a.Oc.listen(a.aw,"yb",function(){return a.Hta(a.aw.ha)});a.Oc.listen(a.aw,"zb",a.DOa);return a.ida()};
zM.prototype.ida=function(){var a=this,b=_.Yh();this.context.Jj().Le()?this.Oc.listen(this.context.Jj(),"rb",function(c){c.Le()||(a.Oc.Tc(a.context.Jj(),"rb"),tFc(a,b))}):this.context.xk().Le()?this.Oc.hd(this.context.xk(),[_.VB.XL,_.VB.YU],function(){tFc(a,b)}):tFc(this,b);return b.promise};var tFc=function(a,b){a.GA();_.Nka(RDc(a.aw,a.request.vi()+a.V).dg(b.resolve,b.reject,b),function(){return a.ta=Date.now()})};_.g=zM.prototype;
_.g.resize=function(a){this.log(this.jN()+" | Resize called");var b=0;for(var c=_.m(new Set([].concat(_.fc(this.Ty)))),d=c.next();!d.done;d=c.next())d=d.value,d=EDc(this.context).Ala(d),b=Math.max(b,d.vi());_.JJ(this.request)?(this.request.Fi(b),2!==this.Ve()&&!this.aw.O&&(b>this.count||a)?this.refresh():this.JJ()):this.request.vi()!==b&&(this.request.Fi(b),b>this.count?this.ida():this.JJ())};_.g.jd=function(){return this.request};_.g.jN=function(){return this.Ga};_.g.getSize=function(){return this.Dd.length};
_.g.Lia=function(a){return this.context.ym.equals(a,this.request)};
_.g.mk=function(a){var b=a.vi(),c,d=!1;if(_.lJ(this.request)){var e=this.Dd.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=_.Mk(k.getItem()).filter(function(l){return h.includes(_.x(l,_.vk,1).getId())});k=k.clone();Nnc(k.getItem(),d);e[c]=k}e=e.filter(function(l){return _.Mk(l.getItem()).length})}d=Wnc(e);c=new _.kK;_.u(c,4,!1);Psc(c,f)}else e=this.Dd.slice(0,b),c=new _.dI,Frc(c,b<this.Dd.length||!(this.context.Jj().Le()||
this.context.xk().Le())&&1!==this.Cp),_.F(c,7,this.ka),_.u(c,8,this.incompleteSearch),_.qj(c,18,this.ha),d=Wnc(e);e=Goc(e);CDc(this,a.H(),e);c.fB(e);c.Dc(d?6:this.Zxa(b));c.mi(this.Ve());c.$P(this.suggestionSessionId);return c};_.g.Zxa=function(a){return 1===this.Cp||a<=this.count?1:this.context.Jj().Le()||this.context.xk().Le()?0<this.Dd.length?1:2:6};_.g.Hta=function(a){this.ka=a.W;this.incompleteSearch=a.incompleteSearch;this.ha=a.CBa();this.W=a.V;this.suggestionSessionId=a.Uf()};
_.g.DOa=function(){var a=this.request.vi()-this.count;0<a&&PDc(this.aw)&&(this.V+=a,this.ida())};_.g.$k=function(a,b){_.JJ(this.request)&&sFc(this);var c=!1;a=_.m(a);for(var d=a.next();!d.done;d=a.next())d=PL(d.value),c=this.lw(d,!0)||c;b||(1!==this.Cp&&(c=!0),this.Cp=1);if(a=this.H){a:{a=this.Dd;d=this.H||_.Ha;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.qp("ViewCache unsorted after import"),this.context.Sv.sort(this.request,this.Dd));c&&(this.BY(),uFc(this,b))};
var uFc=function(a,b){_.ol(a.request).length&&a.Dd.length&&a.context.I_.then(function(c){var d=dL(a.context.lk(),106024,a.ma);if(d){var e=_.ol(a.request)[0].Wa(),f=_.x(_.hK(d),Zrc,18);if(!f){f=new Zrc;var h=_.hK(d);_.F(h,18,f)}f=_.u(f,1,!b);c=_.u(f,2,c===e).ew(a.Dd.length);_.u(c,4,a.context.Cf.Vo());a.ma=d;d.Cj()}})};_.g=zM.prototype;
_.g.lw=function(a,b){var c=this.O.get(a.id),d=!!c,e=this.Bs(a.H,b),f=a.O;c&&(d?a.O&&a.O!==c&&this.qp("Updating different wrapper from the existing one"):this.qp("Updating existing item but old wrapper did not match"),f=c,d=!0);if(d||e)if(d)e?this.pMa(f,a.H):(this.zJ(f),_.JJ(this.request)&&qFc(this,0));else{if(_.JJ(this.request)&&!b)return!1;this.kS(a.H)}else return!1;return!0};_.g.kS=function(a){this.H?znc(this.Dd,a,this.H):this.Dd.push(a);a.count++;vFc(a)&&this.count++;this.O.set(a.getId(),a)};
_.g.zJ=function(a){if(this.H){var b=this.Dd,c=_.Ia(b,a,this.H);0<=c&&_.va(b,c)}else _.wa(this.Dd,a);a.count--;vFc(a)&&this.count--;this.O.delete(a.getId())};_.g.hAa=function(a){return this.H?_.Ia(this.Dd,a,this.H):_.oa(this.Dd,a)};_.g.pMa=function(a,b){this.H&&0!==this.H(a,b)?(this.zJ(a),this.kS(b)):(this.Dd[this.hAa(a)]=b,b.count++,vFc(b)&&this.count++,a.count--,vFc(a)&&this.count--,this.O.delete(a.getId()),this.O.set(b.getId(),b))};
_.g.Bs=function(a,b){if(!a)return!1;if(this.oEa&&!_.JJ(this.request)){if(b)return!0;if(!this.Ia){var c=a.getId();b=!!this.Dd.find(function(e){return c===e.getId()},this);a=AL(this.context.Ct,this.request,a.getItem());return b&&a}}if(!AL(this.context.Ct,this.request,a.getItem()))return!1;var d=1.2*this.request.vi();if(1===this.Cp||!this.H||svc(a.V,2)||this.count<d||b||coc(a.getItem()))return!0;b=0===this.Dd.length?null:this.Dd[this.Dd.length-1];return!!b&&0>=this.H(a,b)};
_.g.JJ=function(){this.log(this.jN()+" | Evict called");if(1!==this.Cp&&!this.context.Jj().Le()&&!this.context.xk().Le()){var a=1.2*this.request.vi();if(!(a>=this.count||this.aw&&a>=this.aw.Yb())){a=this.count-this.request.vi();for(var b=this.Dd.length-1;0<=b&&0<a;b--){var c=this.Dd[b];svc(c.V,2)||coc(c.getItem())||(c.count--,vFc(c)&&this.count--,this.O.delete(c.getId()),_.va(this.Dd,b),a--)}rFc(this,!1)}}};
_.g.qp=function(a){var b=new _.Fc;_.sI(b,2);_.tI(b,6);_.Go(b);this.context.dispatchEvent(new _.Hc(new _.Gc(a,b)))};var vFc=function(a){return!svc(a.V,2)&&3!==a.getItem().Jv()};zM.prototype.log=function(a,b){this.context.Be().log("drive.ds.sync.cache.ViewCache",a,void 0===b?"info":b)};zM.prototype.BTa=function(a){var b=this,c=_.ol(this.request);c.length&&(c=c.some(function(d){return(d=b.context.Cf.Yl.H(d.Wa()))&&_.N(d,108)}),Kwc(this.context.Jta,a,c))};zM.prototype.ATa=function(){this.JJ()};
zM.prototype.a0a=function(a){return 1!==this.Cp&&a.vi()>this.count&&this.aw.O};
var wFc=function(a,b,c,d,e,f){_.L.call(this);this.V=a;this.ka=b;this.H=c;this.W=d;this.O=e;this.ha=f;this.Oc=new _.of(this);this.Ja(this.Oc)};_.J(wFc,_.L);
var zFc=function(a,b,c){var d,e,f,h;if(null===(d=_.IJ(a.H))||void 0===d?0:_.Q(d,15,!1))if(null===(e=a.O.get(b))||void 0===e||!e.H){if(c&&(null===(h=null===(f=a.H)||void 0===f?void 0:_.IJ(f))||void 0===h?0:_.Q(h,19,!1)))return xFc(a,b);void 0!==c&&yFc(a,b,!c)}return Promise.resolve([])},xFc=function(a,b){var c=_.hga(new _.Df,[(new _.Kd).Hb(b)]),d=new wM(a.V,a.ka,a.H,a.W,a.ha,c,!1,!0);a.log("Paginating to cache more items for "+b);var e=new _.en;a.Oc.listen(d,"wb",function(f){e.resolve(f.changes)});
RDc(d,1E3).then(function(){e.resolve([]);yFc(a,b,!PDc(d))},function(f){e.reject(f);a.log("Error trying to backfill "+b+" "+f)});return e.promise},yFc=function(a,b,c){var d;a.log("Setting hasAllImmediateChildren for "+b+" to "+c);null===(d=a.O.get(b))||void 0===d?void 0:uvc(d,c)};wFc.prototype.log=function(a,b){this.V.log("drive.ds.sync.ProgressiveSyncer",a,void 0===b?"info":b)};
var AM=function(a,b){var c;_.L.call(this);var d=this;this.V={};this.ha=new kFc;this.Oc=new _.of(this);this.Ja(this.Oc);this.context=a;this.Cg=b;this.H=this.context.Xc;this.Rt=new Axc(a.ym,a.Be());this.context.lk().W.H=this.Rt;if(null===(c=_.IJ(this.H))||void 0===c?0:_.Q(c,15,!1))b=new sxc(a.Ct,a.Sv),this.Rt.add(b),a.nga.promise.then(function(){var e,f,h,k;null===(f=null===(e=d.Rt)||void 0===e?void 0:e.O)||void 0===f?void 0:QL(f,!(null===(k=null===(h=d.Rt)||void 0===h?void 0:h.H)||void 0===k?0:k.LD))});
this.O=new Evc(a.I_,a.Ct,a.Sv);_.N(a.Xc,60)&&(this.Ba=new eFc(a.Ct,a.Sv));this.W=new yvc(a.Be(),_.bK(this.Cg));AFc(this,_.se(this.H,28));this.Yl=new Hvc(this.Cg,this.context.ym,this.O,this.W);this.context.lk().W.V=this.Yl;this.SI=new WDc(this.context,this.Cg,this.V,this.O);this.kIa=new fFc(this.context,this.O);this.ma=new XEc(this.context,this);_.ff(this.ma,function(){d.ma=null});this.wa=_.lhc(_.bK(this.Cg),BFc);NL(this.context.Oj,["NSockf"],function(){return d.initialize()});NL(this.context.Oj,["NSockf",
"jroI5d"],function(){if(_.x(d.H,_.Ik,12))var e=_.x(d.H,_.Ik,12);else{e=_.dic(_.fic(new _.vk,_.UJ(_.eI(d.H))),!0);e=_.u(e,6,1);var f=_.z(_.eI(d.H),6,"");f&&e.Nb(f);e=_.AVb(_.nic(_.oic(_.cG((new _.Ik).Nb(d.context.Bu()).setTitle(_.z(d.H,38,"My Drive")),"application/vnd.google-apps.folder").Nn(!1),e),[e]),1);e=_.u(e,29,!0);e=_.u(e,63,!0);f=new _.Bk;f=_.u(f,1,_.Q(d.H,6,!0));f=_.u(f,2,!1);f=_.u(f,3,!1);f=_.u(f,4,!1);f=_.u(f,5,!1);f=_.u(f,6,!0);f=_.u(f,7,!0);f=_.u(f,10,!1);f=_.u(f,11,!1);f=_.gic(f,!1);
f=_.u(f,12,!1);f=_.u(f,8,!1);f=_.u(f,9,!1);f=_.u(f,21,!1);e=_.QJ(e,f)}d.$k([e],1);OL(d.context.Oj,"hVFf7")});this.ka=_.Yh();NL(this.context.Oj,["BNEDtc"],function(){d.ka.resolve()});this.Jq=new Zxc(this.H,this.context.Be(),a.Hm(),this.context.lk(),this.context.pY.promise);_.lI(this.H)&&this.Oc.listen(this.Jq,"vb",this.ta);this.EOa=new _.ukc(this.H,this.Yl);this.Ga=new wFc(a.Be(),a.Hm(),a.Xc,this.Yl,this.O,a.dispatchEvent)};_.J(AM,_.L);
AM.prototype.ta=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.Jq.Hd(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.Jq.H.get(d),e=!(!d||1!==d.Ve()&&4!==d.Ve()||3===Jxc(d));e&&a.add(h)}b=[];c=_.m(c);for(h=c.next();!h.done;h=c.next())h=h.value,(d=this.O.get(h))?(h=d.getItem().clone(),CFc(this,h),b.push(pxc(d,new yL(h,
void 0,1)))):this.log("b/154479164 Unexpected missing wrapper for "+h+".","warning");DFc(this,b,[]);this.context.Ws.update(6);a.size&&this.SI.RO([].concat(_.fc(a)),_.Rf(new _.Qf,311))};AM.prototype.initialize=function(){this.ma.lh()};
AM.prototype.Yh=function(a,b){if(b instanceof _.Df)b=BL(this.context.ym,b),EFc(this,b.H()),hFc(this.kIa,b),b=FFc(this,b),b.cache.Yh(a);else if(b instanceof _.WF)b=GFc(this,b),EFc(this,b.H()),b=HFc(this,b),b.cache.Yh(a);else if(b instanceof _.QH){var c=yM(this,b),d=this.V[c];d?(3==d.lW()?(this.log(c+" | TeamDriveQueryRequest backed by refreshing existing cache"),d.refresh()):this.log(c+" | TeamDriveQueryRequest backed by existing view cache"),b={cache:d,Qv:!1}):(this.log(c+" | ItemQueryRequest backed by new cache"),
d=new qEc(this.context,this.Cg,b),d.refresh().then(null,_.hg),TEc(this,c,d),b={cache:d,Qv:!0});b.cache.Yh(a)}else if(b instanceof _.aG)c=b.H(),d=this.W,zvc(d,d.H,d.O,c),b=HFc(this,b),b.cache.Yh(a);else throw Error("Jg");return b.Qv};AM.prototype.ek=function(a,b){if(b instanceof _.Df)b=BL(this.context.ym,b),jFc(this.kIa,b);else if(b instanceof _.WF)b=GFc(this,b);else if(!(b instanceof _.QH||b instanceof _.aG))throw Error("Jg");b=yM(this,b);var c=this.V[b];c&&(c.ek(a),c.isDisposed()&&delete this.V[b])};
var yM=function(a,b){return gL(a.context.ym,b,2)},FFc=function(a,b){var c,d,e=yM(a,b),f=a.V[e];if(f)return 3==f.lW()?(a.log(e+" | ItemQueryRequest backed by refreshing existing cache"),f.refresh()):a.log(e+" | ItemQueryRequest backed by existing view cache"),{cache:f,Qv:!1};var h=[],k=5;f=!1;for(var l=Bxc(a.Rt),p=0;p<l.length;p++){var q=l[p];k=q.YE(b);if(5!=k){l=1==k?void 0:b.vi();if((null===(c=_.IJ(a.H))||void 0===c?0:_.Q(c,18,!1))&&q instanceof sxc){f=!0;k=5;a.log("Partial Caching dark launch: Skipped returning from the MyDrive cache for "+
(e+"."));break}h=q.Ula(b,l);var r=q.Ve();var v=q instanceof RL?q.Gy():"";a.log(e+" | ItemQueryRequest backed by "+q.getType()+" | size "+(q.getSize()+" | initial "+h.length));break}}5==k&&a.log(e+" | ItemQueryRequest backed by new cache");if(a.context.Jj().Le()||a.context.xk().Le())h=h.concat(a.O.query(b,1)),_.Ga(h,void 0,function(A){return A.getId()}),k=(k=a.Rt.H)&&k.X8&&5!=k.YE(b)?k.YE(b):6,a.log("Offline: Populate with "+h.length+" initial items(s)");var w=new zM(a.context,b,h,1==k,v);r&&w.mi(r);
w.$k(a.O.query(b,2),1!=k);r=w.initialize();(null===(d=_.IJ(a.H))||void 0===d?0:_.Q(d,18,!1))&&f&&r.then(function(){return xM(a.context)}).then(function(A){return A.VYa().BWb()}).then(function(){var A,B;if(w.isDisposed())a.log("Partial Caching dark launch: ViewCache is disposed skipping match check for "+e);else{var E=w.mk(b).Bd().map(function(T){return T.getId()}),I=(null===(B=null===(A=a.Rt)||void 0===A?void 0:A.O)||void 0===B?void 0:B.mk(b,b.vi()).Bd().map(function(T){return T.getId()}))||[],M=
_.La(E.sort(),I.sort()),P=dL(a.context.lk(),106030);P&&(dsc(csc(bsc(tsc(P),E.length),I.length),M),P.Cj());M?a.log("Partial Caching dark launch: Network/Cache match for "+e):a.log("Partial Caching dark launch: Network/Cache mismatch for "+e+("\nNetwork: "+E.length+".  Cache: ")+(I.length+".\nNetwork: ")+(E+".\nCache: ")+(I+"."),"warning")}},function(){a.log("Partial Caching dark launch: Error waiting for changelog processing.Won't be checking match for "+e,"warning")});r.then(null,function(A){A=_.uI(A);
_.Go(A);a.context.dispatchEvent(new _.Hc(new _.Gc("Error during view cache init",A)))});TEc(a,e,w);return{cache:w,Qv:!0}},HFc=function(a,b){var c=yM(a,b),d=!1,e=a.V[c];if(e&&e.Lia(b))a.log("FindByIdsRequest backed by existing query cache: "+c);else{var f=a.O.getAll(b.V()),h;b instanceof _.WF?h=new LDc(a.context,a.Cg,b,f):h=new oFc(a.context,a.Cg,b,f);f.length&&h.mi(8);h.refresh().then(null,_.hg);b=h;d=!0;TEc(a,c,b);e?(IFc(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,Qv:d}};AM.prototype.MW=function(){return Object.values(this.V).filter(function(a){return a.jd()instanceof _.QH})};
AM.prototype.B4a=function(a){for(var b=_.Rf(new _.Qf,309),c=[],d=_.m(Object.entries(this.W.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=Yvc(this.context.ym,c,!0),this.log("Refreshing "+a+" for secondary fields: "+d+"."),this.SI.RO([a],b,!1,c))};
var BDc=function(a,b,c){c&&c.length&&Bvc(a.W,b,c);_.lI(a.H)&&iyc(a.Jq,b)},hEc=function(a,b,c){var d,e,f;if(b instanceof qEc){var h=yM(a,b.jd());if(a.V[h]){a.log(h+" | Cache already exists, ignoring persisted data");return}}b instanceof qxc&&a.Rt.remove(b);h=new Map;var k=a.O.By(),l=new Map(k);k=[];for(var p=_.m(b.By()),q=p.next();!q.done;q=p.next()){q=q.value;var r=q.getId(),v=a.O.get(r);if(v){var w=v.getItem().Jv();(null===(d=_.IJ(a.H))||void 0===d?0:_.Q(d,15,!1))&&!0===q.H&&uvc(v,q.H);3==w||4==
w?h.set(q.getId(),q.getItem()):v!=q&&k.push(new oxc(q.getId(),q,v));l.delete(r)}else{r=PL(q);if(null===(e=_.IJ(a.H))||void 0===e?0:_.Q(e,15,!1))null===(f=a.Rt.O)||void 0===f?void 0:f.update(r);a.O.update(r);a.ha.update(r);_.lI(a.H)&&a.Jq.BP(r)}_.lI(a.H)&&CFc(a,q.getItem())}l=_.m(l.values());for(q=l.next();!q.done;q=l.next())k.push(PL(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 qEc?(k=yM(a,b.jd()),
TEc(a,k,b)):a.Rt.add(b);k=[];h=_.m(h.values());for(l=h.next();!l.done;l=h.next())l=l.value,p=new _.pI,_.qI(p,l.getId()),p.setItem(l),k.push(p);a.Do(k);a.log("Merged cache: "+b.getType());b instanceof VL&&c.forEach(function(A){a.context.Kta.propagate(A)});b instanceof RL&&JFc(a,b.jd(),!b.H);a.context.Ws.update(3)},JFc=function(a,b,c){var d;(null===(d=_.IJ(a.H))||void 0===d?0:_.Q(d,15,!1))&&(b=fwc(b))&&zFc(a.Ga,b,c).then(function(e){a.Do(e)})},IFc=function(a,b){(new Set([].concat(_.fc(a.Ty)))).forEach(function(c){b.Yh(c);
a.ek(c)})};
AM.prototype.$k=function(a,b,c,d,e){var f=this;this.log("Importing "+a.length+" items");e||(e=c?[].concat(_.fc(c.H().filter(function(A){return!_.bK(f.Cg).includes(A)}))):[]);c&&c instanceof _.Df&&_.JJ(c)&&KFc(this,a,c);for(var h=[],k=[],l=0;l<a.length;l++){var p=a[l],q=new yL(p,void 0,b),r=this.O.get(p.getId()),v=r?r.getItem():null,w=LFc(this,r,q);if(null!=w)q.SA(w),MFc(this,v,p),boc(p),p=wvc(p,v,e),q.setItem(p);else if(null!=r)q=r,p=v;else continue;_.lI(this.H)&&CFc(this,p);!r||NFc(this,v,p,e)?(k.push(pxc(r,
q)),h.push(q)):h.push(r)}a=null;c&&(c instanceof _.Df&&(JFc(this,c,d),(a=Exc(this.Rt,c))&&a.$k(h,!!d)),c=yM(this,c),(a=this.V[c])&&a.$k(h,!!d));0<k.length&&(_.lI(this.H)&&k.forEach(function(A){return f.Jq.BP(A)}),DFc(this,k,e,a?[a]:[]),OFc(this,h));EDc(this.context).W9()};
var CFc=function(a,b){kyc(a.Jq,b)||5!=b.Jv()||_.sic(b,1)},NFc=function(a,b,c,d){(b=b?_.vb(b.clone(),82):null)&&BDc(a,[b],d);c=_.vb(c.clone(),82);BDc(a,[c],[]);return!_.Cj(b,c)},KFc=function(a,b,c){PFc(a,b,c);b.forEach(function(d,e){var f=a.Yl.H(d.getId());f&&(NK(f,d,[1002]),NK(f,d,[1003]),NK(f,d,[1005]),b[e]=f);_.kJ(c)&&0<_.se(c,33).length&&_.tic(d,_.se(c,33)[0])})},PFc=function(a,b,c){var d;_.kJ(c)?d="quick access":_.lJ(c)?d="people predict":_.mJ(c)&&(d="drive priority");c=b.map(function(e){return e.getId()}).join(", ");
a.log("Got "+b.length+" ItemSuggest items for "+d+": "+c)},oDc=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.$k(Goc(d),b)};AM.prototype.yma=function(a){this.EOa.yma(a)};
AM.prototype.Do=function(a){for(var b=this,c=[],d=0;d<a.length;d++){var e=a[d],f=_.AI(e)?null:e.getItem(),h=e.qc(),k=(h=this.O.get(h))?h.getItem():null,l=null;if(f){l=new yL(f,void 0,void 0,_.y(e,1)||void 0);var p=LFc(this,h,l);if(null==p)continue;l.SA(p);MFc(this,k,f);_.Q(e,5,!1)&&Enc(f,Tnc);boc(f);f=wvc(f,k);l.setItem(f);_.lI(this.H)&&CFc(this,f)}if(k&&!f||f&&NFc(this,k,f,[]))this.context.ALa.My(e),c.push(pxc(h,l))}_.lI(this.H)&&c.forEach(function(q){return b.Jq.BP(q)});DFc(this,c,[])};
var MFc=function(a,b,c){b&&!c.Um()&&NK(c,b,a.wa);var d=b?b.vf():null,e=c.vf();e=e?_.xe(e):null;d&&e&&MFc(a,_.xe(d),e);b&&!_.Lk(c)&&NK(c,b,[1002]);b&&!_.Mk(c).length&&NK(c,b,[1003]);b&&!_.Nk(c).length&&NK(c,b,[1005]);b&&_.N(b,31)&&!_.N(c,31)&&(Enc(c,Tnc),a.log("Cleared Item Suggest data for "+b.getId()+"."))};AM.prototype.JB=function(a,b){if(a instanceof _.Df||a instanceof _.WF||a instanceof _.QH)a=yM(this,a),(a=this.V[a])&&a.AY(b);else throw Error("Jg");};
var LFc=function(a,b,c){var d=c.getItem();if(Gyc(a.context.oga,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.Jv()&&!zL(a)&&!zL(d)&&a.uc()==d.uc())if(a.mj()&&d.mj()){if(a.mj()>d.mj())return null}else if(b.O&&c.O){if(b.O>c.O)return null}else if(a.Mq()>d.Mq())return null}return tvc(b&&b.V,c.V)};AM.prototype.fG=function(a,b){(a=this.O.get(a))&&a.SA(tvc(a.V,b))};
var DFc=function(a,b,c,d){d=void 0===d?[]:d;var e;if(null===(e=_.IJ(a.H))||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&&uvc(h.H,h.O.H);h=_.m(b);for(f=h.next();!f.done;f=h.next())f=f.value,a.W.update(f.id,f.H?f.H.getItem():null,c);c=Object.values(a.V);d=_.m(d);for(h=d.next();!h.done;h=d.next())_.wa(c,h.value);d=_.m(c);for(h=d.next();!h.done;h=d.next())DDc(h.value,b);d=new Set;h=Bxc(a.Rt);c=_.m(h);for(h=c.next();!h.done;h=c.next()){f=h.value;var k=_.m(b);
for(h=k.next();!h.done;h=k.next())h=h.value,f.update(h)&&d.add(h.id);f instanceof VL&&f.getSize()>=1.2*f.limit&&QFc(a.context.ALa,f.uc(),!1)}b=_.m(b);for(h=b.next();!h.done;h=b.next())h=h.value,_.N(a.H,60)&&a.Ba.update(h),a.O.update(h),a.O.get(h.id)||a.W.JJ(h.id),a.ha.update(h);d.size&&a.context.Ws.koa(d.size);RFc(a)},RFc=function(a){var b=a.ha.O.slice(0),c=lFc(a.ha);mFc(a.ha);if(b.length){a.log("Refreshing shortcuts with unknown targets: "+b.join(", "));var d=new _.Qf;_.Rf(d,308);a.SI.RO(b,d,!0)}if(c.length){a.log("Updating locally stale shortcuts: "+
c.join(", "));b=Ivc(a.Yl,c);var e=[];Object.values(b).forEach(function(f){var h=f.getItem().vf(),k=a.Yl.H(_.y(h,1));k&&(_.F(h,5,k),_.u(h,4,1),e.push(f))});oDc(a,e)}},SFc=function(a){EDc(a.context).W9();a.O.JJ()},GFc=function(a,b){_.Ka(b.H());var c=_.oa(b.V(),"root");if(0>c)return b;b=b.clone();b.V()[c]=a.context.Bu();return b},AFc=function(a,b){var c;null!==(c=_.IJ(a.H))&&void 0!==c&&_.Q(c,1,!1)||(b=osc(a.Cg,b),a=a.W,zvc(a,a.items,a.fields,b))},EFc=function(a,b){var c;if(null===(c=_.IJ(a.H))||void 0===
c?0:_.Q(c,1,!1))b=osc(a.Cg,b),a=a.W,zvc(a,a.items,a.fields,b)},OFc=function(a,b){a.ka.promise.then(function(){var c=b.filter(function(e){return 4==e.getItem().Jv()});if(c.length){c=c.map(function(e){return e.getId()});a.log("Refreshing "+c.length+" partial items. "+c);var d=_.Rf(new _.Qf,311);a.SI.RO(c,d)}})},dFc=function(a,b){a.ka.promise.then(function(){for(var c={},d=_.m(b),e=d.next();!e.done;c={j6:c.j6,Ora:c.Ora},e=d.next()){e=e.value;if(Exc(a.Rt,e))break;c.j6=new RL(a.context.Ct,a.context.Sv,
a.context.ym,e);e=new bEc(a.context,c.j6,e);c.Ora=$L(a.context.zx,null);e.lh().then(function(f){return function(){eEc(f.j6,f.Ora).then(function(h){hEc(a,f.j6,h)})}}(c)).then(function(){aM(a.context.zx,null)},function(){aM(a.context.zx,null)})}})};AM.prototype.Vo=function(){var a=this.Rt.H;return a&&a.LD?1:2};AM.prototype.log=function(a,b){this.context.Be().log("drive.ds.sync.cache.CacheManager",a,void 0===b?"info":b)};
var TEc=function(a,b,c){a.V[b]=c;a.log(b+" | Set cache with "+c.getSize()+" items")},BFc=[50];
var UFc=function(a){_.L.call(this);var b=this;this.context=a;this.H=[];this.V=new _.Rk;this.O=new Map;this.ka=-1;this.ha=0;var c=_.Yh();this.wa=c.promise;EAc(this.context.UD).then(function(d){b.H=d||[];c.resolve();TFc(b)},function(){return c.resolve()});NL(this.context.Oj,["rVezo"],(0,_.K)(this.W,this))};_.J(UFc,_.L);
var iFc=function(a,b){_.Q(a.context.Xc,46,!1)&&a.wa.then(function(){if(a.H[0]!==b){_.wa(a.H,b);for(xvc(a.context.Cf.Yl.H(b))?a.log(b,"Hidden TD, not tracking in recency list"):_.ua(a.H,b,0);a.H.length>2*_.Dj(a.context.Xc,47,5);)a.H.pop();a.context.UD.set(yAc,a.H)}a.context.Cf.Rt.MW().length+a.O.size<_.Dj(a.context.Xc,47,5)&&(TFc(a),a.W())})},VFc=function(a,b){_.wa(a.H,b)&&a.context.UD.set(yAc,a.H)};
UFc.prototype.My=function(a){this.context.Kta.propagate(a);if(zL(a)){var b=a.uc();_.AI(a)?QFc(this,b,!0):(a=a.getItem(),xvc(a)&&VFc(this,b))}};var QFc=function(a,b,c){VFc(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.Cf.Rt;for(var e=d.MW(),f=0;f<e.length;f++){var h=e[f];if(h.uc()===b){a.log(b,"Cache removed");d.remove(h);a.context.Ws.update(3);break}}xM(a.context).addCallback(function(k){k.NIa(b,c)});a.W()};
UFc.prototype.W=function(){if(this.context.Oj.H("rVezo")){var a=this.context.Cf.Rt;WFc(this);for(var b={};this.V.Yb()&&!(this.ha>=_.Dj(this.context.Xc,47,5));){var c=_.Sk(this.V);this.ha++;Dxc(a,c)||this.O.has(c)||(this.O.set(c,null),b.Ifa=new _.Jhc,_.u(b.Ifa,1,c),this.context.Hm().then(function(d){return function(e){return e.Oe(d.Ifa)}}(b)).then(this.ta.bind(this,c),this.ma.bind(this,c)));b={Ifa:b.Ifa}}}};
var TFc=function(a){a.H&&a.H.length&&(a.ha=0,a.V.clear(),a.H.forEach(function(b){a.V.enqueue(b)}))},WFc=function(a){_.aa.clearTimeout(a.ka);a.ka=_.aa.setTimeout(function(){TFc(a);a.W()},36E5)};UFc.prototype.ta=function(a,b){var c=_.y(b,1);c&&c>_.Dj(this.context.Xc,48,1E3)?(this.log(a,"Too large to backfill: "+_.y(b,1)),XFc(this,a,!1)):YFc(this,a)};
UFc.prototype.ma=function(a,b){(b=_.uI(b).Xj())&&4===b?(this.log(a,"Non-existent or inaccessible, removing from cache"),a=_.BI(_.Ngc(_.qI(new _.pI,a),a)),this.context.Cf.Do([a])):YFc(this,a)};
var YFc=function(a,b){var c=new VL(a.context.Ct,a.context.Sv,b),d=c.jd().clone();d.Fi(_.Dj(a.context.Xc,48,1E3));d=new bEc(a.context,c,d);a.O.set(b,d);a.log(b,"Backfill started");var e=$L(a.context.zx,b);xM(a.context).addCallback(function(f){f.Bwa(b)});d.lh().then(function(){ZFc(a,b,c,e)},function(){a.log(b,"Backfill failed");a.ha--;XFc(a,b,!0)}).then(function(){aM(a.context.zx,b)},function(){aM(a.context.zx,b)})},ZFc=function(a,b,c,d){c.LD?(c.TX(),eEc(c,d).then(function(e){a.log(b,"Backfill complete, size: "+
c.getSize());hEc(a.context.Cf,c,e);XFc(a,b,!1)},function(){a.log(b,"Backfill changes failed");XFc(a,b,!0)})):(a.log(b,"Backfill exceeded size limit"),XFc(a,b,!0))},XFc=function(a,b,c){var d=a.O.get(b);d&&d.dispose();a.O.delete(b);c&&xM(a.context).addCallback(function(e){e.NIa(b,!1)});a.W();0<a.O.size||a.context.Cf.Rt.MW().map(function(e){return e.uc()}).filter(function(e){return!a.H.includes(e)}).forEach(function(e){QFc(a,e,!0)})};
UFc.prototype.log=function(a,b){this.context.Be().info("drive.ds.sync.cache.TeamDriveCacheManager",a+" | "+b)};
var $Fc=function(){_.L.apply(this,arguments)};_.J($Fc,_.L);
var cGc=function(a,b){b=aGc(b);var c=a.getItem(),d=bGc(c.getCapabilities());b.N4.forEach(function(e){_.AVb(e.getItem(),c.Bp());_.QJ(e.getItem(),d.clone())});return b},fGc=function(a,b,c){var d=dGc(c);c=c.find(function(e){return e.getId()===b.getId()});c={HK:c?c:new yL(b),children:[]};eGc(a,d,c);return c},dGc=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().vk()),e=d.next();!e.done;e=d.next())e=e.value,b[e]||(b[e]=[]),b[e].push(c)}return b},eGc=
function(a,b,c){var d=c.HK.getItem();(b[d.getId()]||[]).forEach(function(e){c.children.push(eGc(a,b,{HK:e,parent:c,children:[]}))});return c},hGc=function(a,b){b=b.children.filter(function(l){return!_.Kk(l.HK.getItem())});for(var c=new Map,d=[];b.length;){var e=b.pop(),f=e.HK.getItem();if(!c.has(f.getId())){_.AVb(f,a.Bp());gGc(a,f,e.parent?e.parent.HK.getItem():void 0);for(var h=_.m(e.children),k=h.next();!k.done;k=h.next())k=k.value,_.Kk(k.HK.getItem())||b.push(k);c.set(f.getId(),!0);d.push(e.HK)}}return d},
iGc=function(a){a=a.children.filter(function(h){return!_.Kk(h.HK.getItem())});for(var b=new Map,c=[];a.length;){var d=a.pop(),e=d.HK.getItem();if(!b.has(e.getId())){c.push(_.BI(_.qI(new _.pI,e.getId())));d=_.m(d.children);for(var f=d.next();!f.done;f=d.next())f=f.value,_.Kk(f.HK.getItem())||a.push(f);b.set(e.getId(),!0)}}return c},aGc=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();_.Kk(e)||_.N(e,137)?c.push(e):b.push(d)}return{dR:c,N4:b}},bGc=
function(a){a=a.clone();var b=null!=_.N(a,34)?_.N(a,34):_.N(a,7),c=null!=_.N(a,35)?_.N(a,35):_.N(a,7);_.u(a,45,c);_.u(a,46,b);_.u(a,30,c);_.u(a,31,b);_.u(a,47,c);_.u(a,32,c);_.u(a,33,b);_.u(a,4,b);_.u(a,9,c);_.u(a,20,b);_.u(a,17,_.N(a,7));_.u(a,8,_.N(a,10)||_.N(a,11));_.u(a,21,_.Ck(a));_.vb(a,18);_.vb(a,13);_.vb(a,10);_.u(a,42,_.N(a,42));_.u(a,43,_.N(a,43));_.u(a,48,_.N(a,48));return a},gGc=function(a,b,c){var d=a.getCapabilities(),e=b.getCapabilities();_.u(e,30,_.N(d,30));_.u(e,31,_.N(d,31));_.u(e,
47,_.N(d,47));_.u(e,32,_.N(d,32));_.u(e,33,_.N(d,33));_.u(e,4,_.N(d,4));_.u(e,9,_.N(d,9));_.u(e,21,_.N(d,21));_.u(e,20,_.N(d,20));_.u(e,17,_.N(d,17));_.u(e,1,_.Ck(d));_.u(e,7,_.N(d,7));_.u(e,10,_.N(d,10));_.u(e,11,_.N(d,11));_.u(e,45,_.N(d,45));_.u(e,46,_.N(d,46));_.u(e,48,_.N(d,48));_.u(b,137,_.Kk(a));c&&(a=c.getCapabilities(),PK(b)?(_.u(e,8,_.N(a,43)),_.u(e,43,_.N(a,43)),_.u(e,42,_.N(a,42))):_.u(e,8,_.N(a,42)))};
var jGc=function(a){this.context=a;this.V=new $Fc;this.logName="drive.ds.sync.change.TdChangeProcessor";this.O=_.Rf(new _.Qf,306);this.H=a.Cf};
jGc.prototype.propagate=function(a){if(zL(a))_.AI(a)?kGc(this,a):lGc(this,a);else if(_.Q(this.context.Xc,86,!1)){var b=a.qc(),c=this.H.Yl.H(b);var d=c&&c.uc();var e=a.getItem()&&a.getItem().uc();if(!c||!d||!PK(a.getItem()||c)||e&&e!==d)d=!1;else if(d=!!_.Kk(c),!_.AI(a)){e=a.getItem();var f=e.Bp()!==c.Bp();d=_.Kk(c)!==_.Kk(e)||d&&f}if(d)if(_.AI(a)){if(a=mGc(this,c.uc()),c=this.V,d=(new _.Ik).Nb(b),a=(a=fGc(c,d,a))?iGc(a):[],this.context.Cf.Do(a),this.log(b,"SD shared folder delete | Removed "+a.length+
" item(s)"),b=dL(this.context.lk(),106009))c=qsc(b),_.u(c,2,a.length),b.Cj()}else if(b=a.getItem(),c=mGc(this,b.uc()),d=this.V,b=a.getItem(),b=(c=fGc(d,b,c))?hGc(b,c):[],oDc(this.context.Cf,b),this.log(a.qc(),"SD shared folder update | Updated "+b.length+" item(s)"),a=dL(this.context.lk(),106010))c=qsc(a),_.u(c,1,b.length),a.Cj()}};
var kGc=function(a,b){var c=b.qc();b=mGc(a,c);b=aGc(b);var d=_.Bf(b.N4,function(e){return _.BI(_.qI(new _.pI,e.getId()))});a.context.Cf.Do(d);a.H.SI.RO(b.dR.map(function(e){return e.getId()}),a.O,void 0,void 0,b.dR.map(function(e){return _.ll((new _.jl).Nb(e.getId()),_.Ok(e))}));a.log(c,"SD delete | Remove "+d.length+" item(s), "+(b.dR.length+" divergent items"));if(a=dL(a.context.lk(),106016))c=rsc(a),_.u(c,1,b.dR.length),_.u(c,2,b.N4.length),a.Cj()},lGc=function(a,b){var c=b.qc(),d=mGc(a,c),e=a.H.Yl.H(c);
b=cGc(b,d);oDc(a.context.Cf,b.N4);a.H.SI.RO(b.dR.map(function(h){return h.getId()}),a.O,void 0,void 0,b.dR.map(function(h){return _.ll((new _.jl).Nb(h.getId()),_.Ok(h))}));a.log(c,"SD update | Update "+b.N4.length+" item(s), "+(b.dR.length+" divergent items"));if(d=dL(a.context.lk(),106017)){var f=rsc(d);_.u(f,1,b.dR.length);_.u(f,2,b.N4.length);d.Cj()}e||$Dc(a.H.SI,c)},mGc=function(a,b){var c=new _.Df;_.ql(c,[b]);_.rl(c,2);return Kvc(a.H.Yl,c)};
jGc.prototype.log=function(a,b){this.context.Be().info(this.logName,a+": "+b)};
var nGc=function(a,b,c){this.H=a;this.V=b;this.DJ=c},rGc=function(a,b,c){if(b.qW().length){var d=Cyc(a.H,b.qc());if(d){var e=d?Dyc(a.H,b):[];for(var f={},h=_.m(b.qW()),k=h.next();!k.done;f={HI:f.HI},k=h.next())if(k=k.value,f.HI=oGc(e,k.Fm(),b.qc()),_.N(k,3))Jyc(a.H,f.HI),c.then(function(r){return function(){var v=syc(r.HI);a.H.O.H.delete(v)}}(f),function(r){return function(){var v=syc(r.HI);a.H.O.H.delete(v)}}(f));else{for(var l=_.m(_.yb(k,_.TF,2)),p=l.next();!p.done;p=l.next())pGc(a,f.HI,p.value);
k=_.m(_.se(k,4));for(l=k.next();!l.done;l=k.next())qGc(f.HI,l.value);a.H.HD([f.HI],!1,-1);c.then(function(r){return function(){return void a.H.fG(r.HI.getName(),-2)}}(f),function(r){return function(){a.H.fG(r.HI.getName(),-2)}}(f))}e=a.Zc(d.mk().response)}}e=e?e:a.Zc();var q=e.j6a;c.then(function(r){q.resolve(r)},function(r){q.reject(_.wd(r));a.handleError(b.qc(),r)});return e};nGc.prototype.Zc=function(a){a=void 0===a?new KL:a;return new rwc(a.Dc(1))};
var oGc=function(a,b,c){var d=a.find(function(e){return ryc(e.getName(),b)});d||(d=Twc((new JL).$c(b),c),a.push(d));return d};nGc.prototype.handleError=function(a,b){Nyc(this.V,a);a=_.uI(b);_.u(a,21,"Server error updating metadata after optimistic application.");this.DJ(a)};
var pGc=function(a,b,c){var d=b.H().find(function(e){return e.getId()===c.getId()});d||(d=new hL,d.Nb(c.getId()),Swc(b,b.H().concat([d])),sGc(d,c));if(1===iL(d))d.setBooleanValue(_.N(c,3));else if(12===iL(d))d.setDateStringValue(_.y(c,17));else if(2===iL(d))d.setTextValue(_.y(c,4));else if(3===iL(d))_.se(c,6).length?d.Zpa(_.se(c,6)):_.se(c,5).length&&(a=_.se(d,7).concat(_.se(c,5)),d.Zpa(a));else if(4===iL(d))d.setLongTextValue(_.y(c,7));else if(5===iL(d))d.setSelectionValue(_.y(c,8));else if(6===
iL(d))_.se(c,10).length?d.Vpa(_.se(c,10)):_.se(c,9).length&&(a=d.pOa().concat(_.se(c,9)),d.Vpa(a));else if(7===iL(d))d.setIntegerValue(_.y(c,11));else if(8===iL(d))_.se(c,13).length?d.Mpa(_.se(c,13)):_.se(c,12).length&&(a=_.se(d,12).concat(_.se(c,12)),d.Mpa(a));else if(10===iL(d))d.setUserValue(a.O(_.y(c,14)));else if(11===iL(d))_.se(c,16).length?ktc(d,_.se(c,16).map(a.O)):_.se(c,15).length&&ktc(d,d.eZa().concat(_.se(c,15).map(a.O)));else throw new _.Gc("Optimistic Applier: Unsupported value type "+
(iL(d)+"."),new _.Fc);},qGc=function(a,b){if(a=a.H().find(function(c){return c.getId()===b}))if(1===iL(a))_.vb(a,5);else if(12===iL(a))_.vb(a,17);else if(2===iL(a))_.vb(a,6);else if(3===iL(a))_.fI(a,7);else if(4===iL(a))_.vb(a,8);else if(5===iL(a))_.vb(a,9);else if(6===iL(a))_.fI(a,10);else if(7===iL(a))_.vb(a,11);else if(8===iL(a))_.fI(a,12);else if(10===iL(a))_.rj(a,15);else if(11===iL(a))_.tj(a,16);else throw new _.Gc("Optimistic Applier: Unsupported value type "+(iL(a)+"."),new _.Fc);},sGc=function(a,
b){_.lj(b,3)?a.gB(1):_.lj(b,17)?a.gB(12):_.lj(b,4)?a.gB(2):_.se(b,6).length||_.se(b,5).length?a.gB(3):_.lj(b,7)?a.gB(4):_.lj(b,8)?a.gB(5):_.se(b,10).length||_.se(b,9).length?a.gB(6):_.lj(b,11)?a.gB(7):_.se(b,13).length||_.se(b,12).length?a.gB(8):_.lj(b,14)?a.gB(10):(_.se(b,16).length||_.se(b,15).length)&&a.gB(11)};nGc.prototype.O=function(a){return _.eic(_.cic(1),a)};
var tGc=function(a,b,c,d,e,f,h,k,l){this.H=a;this.ka=b;this.wa=c;this.O=d;this.ma=e;this.Cg=f;this.ha=0;this.V=k;this.W=l;this.Ba=h};
tGc.prototype.apply=function(a,b){var c=this;if(!_.HJ(a))return b;var d=null;a instanceof _.YI?d=uGc(this,a,b):a instanceof _.eJ?d=vGc(this,a,b):a instanceof _.wI?d=wGc(this,a,b):a instanceof _.TI?d=xGc(this,a,b):a instanceof _.zJ&&(d=rGc(this.wa,a,b));d&&(this.ha++,this.ka.setActive(!1),a=function(){c.ha--;0==c.ha&&c.ka.setActive(!0)},b.then(a,a));return d?_.Vh(d):b};
var uGc=function(a,b,c){Fyc(a.O,b.getId());var d=a.H.Yl.H(b.getId());c.then(function(){a.W("VMiG2e")},a.ta.bind(a,b.getId(),d)).then(function(){var e=b.getId();a.O.H.delete(e)},function(){var e=b.getId();a.O.H.delete(e)});c.then(null,function(e){e=_.uI(e);_.u(e,21,"Server error deleting item after optimistic application.");a.V(e)});return(new _.GJ).Dc(1)},vGc=function(a,b,c){var d=_.y(b,2);d&&a.O.O.push(d);c.then(function(){d&&Hyc(a.O,d)&&yGc(a,d,new _.wkc(1E4,3E5),Date.now()+72E5,5).then(function(){a.W("VMiG2e")},
function(){a.W("VMiG2e")})},function(){d&&_.wa(a.O.O,d)});c.then(null,function(e){e=_.uI(e);_.u(e,21,"Server error emptying trash after optimistic application.");a.V(e)});return(new _.GJ).Dc(1)},yGc=function(a,b,c,d,e){if(Date.now()>d||0>=e)return _.Vh();var f=_.Yh(),h=c.Wa();_.YH(c);setTimeout(function(){a.ma.then(function(k){var l=_.Rf(new _.Qf,1425);l=Foc(!0,1,l);return k.Oe(l).then(function(p){if(p=p.Zc())if(p=p.Bd()[0],!p||(p.Aw()||0)>b){f.resolve();return}yGc(a,b,c,d,e).then(function(){f.resolve()},
function(){f.resolve()})},function(){var p=yGc(a,b,c,d,e-1);p.then(function(){f.resolve()},function(){f.resolve()});return p})})},h);return f.promise},xGc=function(a,b,c){var d=b.uc(),e=a.H.Yl.H(d);if(!e)return null;e=e.clone();BDc(a.H,[e],[157]);var f=e.Uh();zGc(f,_.yb(b,_.Gk,2));AGc(f,_.yb(b,_.Gk,3));a.H.$k([e],-1,void 0,void 0,[157]);c.then(function(){a.H.fG(d,-2)},function(){a.H.fG(d,-2)});c.then(function(h){a.H.$k([_.x(h,_.Ik,2)],1,void 0,void 0,[157])},null);c.then(null,function(h){h=_.uI(h);
_.u(h,21,"Server error updating item after optimistic application.");a.V(h)});return KAc(new JAc,e).Dc(1)},zGc=function(a,b){var c={};b=_.m(b);for(var d=b.next();!d.done;c={yfa:c.yfa},d=b.next())c.yfa=d.value,_.yb(a,_.Gk,8).some(function(e){return function(f){return f.Fm()==e.yfa.Fm()}}(c))||_.yj(a,8,c.yfa,_.Gk,void 0)},AGc=function(a,b){var c=b.map(function(d){return d.Fm()});b=_.yb(a,_.Gk,8).filter(function(d){return!c.includes(d.Fm())});Mnc(a,b)},wGc=function(a,b,c){var d=a.H.Yl.H(b.getId());if(!d||
d.uc()&&0==b.Ph()||null!=_.N(b,40))return null;var e=_.se(b,10),f=_.se(b,9);if(0<e.length&&0<f.length&&(e=Object.values(Jvc(a.H.Yl,e.concat(f))).map(function(k){return k.uc()||"root"}),_.Ga(e),1<e.length))return null;var h=d.clone();BGc(a,b,h);a.H.$k([h],-1,void 0,void 0,msc(a.Cg));c.then(function(){return a.H.fG(b.getId(),-2)},function(){a.H.fG(b.getId(),-2);a.ta(b.getId(),d)});c.then(null,function(k){k=_.uI(k);if(63==k.Xj()){var l=h.getId();_.u(k,22,l);_.u(k,23,f[0])}_.u(k,21,"Server error updating item after optimistic application.");
a.V(k)});return _.ljc((new _.GJ).setItem(h),h.getId()).Dc(1)},BGc=function(a,b,c){null!=b.yf()&&c.kl(b.yf());null!=b.Li()&&_.qic(c,b.Li());null!=b.getMimeType()&&_.cG(c,b.getMimeType());null!=_.y(b,7)&&_.u(c,11,_.y(b,7));null!=_.N(b,11)&&_.u(c,8,_.N(b,11));null!=_.N(b,4)&&c.fw(_.N(b,4));null!=_.N(b,16)&&_.u(c,31,_.N(b,16));null!=b.getTitle()&&c.setTitle(b.getTitle());null!=b.Ph()&&(c.Nn(b.Ph()),_.u(c,26,b.Ph()));null!=_.N(b,18)&&_.JK(aoc(c,!0),_.N(b,18));_.se(b,8).length&&_.PJ(c,_.se(b,8));if(_.se(b,
9).length){var d=new Set(c.vk());_.se(b,9).forEach(function(p){return d.add(p)});_.PJ(c,[].concat(_.fc(d)))}if(_.se(b,10).length){var e=new Set(c.vk());_.se(b,10).forEach(function(p){return e.delete(p)});_.PJ(c,[].concat(_.fc(e)));var f=c.Zw();f&&_.se(b,10).includes(f)&&_.vb(c,46)}if(!c.Zw()){var h=a.Ba();f=c.vk().find(function(p){var q=a.H.Yl.H(p);return q&&!!q.Zw()||p==h});_.u(c,46,f||void 0)}c.vk().length&&(f=a.H.Yl.H(c.vk()[0]))&&_.tic(c,f.uc());if(f=_.x(b,_.Dk,25)){var k=_.x(c,_.Dk,111)||new _.Dk;
null!=_.N(f,1)&&k.mP(_.N(f,1));null!=_.y(f,2)&&_.u(k,2,_.y(f,2));_.F(c,111,k)}var l=_.se(c,120);_.se(b,31).forEach(function(p){l.includes(p)||l.push(p)});_.se(b,32).forEach(function(p){_.wa(l,p)});_.qj(c,120,l)};tGc.prototype.ta=function(a,b){var c=this,d=_.YF(new _.WF,[a]);this.ma.then(function(e){return e.Oe(d)}).then(function(e){e=e.Zc().Bd()[0];c.H.$k([e.clone()],1)},function(){b&&c.H.$k([b.clone()],1)})};
var CGc=function(a){this.H=a};_.J(CGc,_.nmc);CGc.prototype.execute=function(a,b,c){var d=_.nmc.prototype.execute.call(this,a,b,c);if(d)return d;if(c.LMa||b instanceof _.mI&&_.JJ(b.jd()))if(c=Gsc(this.H))return c;return b instanceof _.eJ?(c=_.Rf(new _.Qf,1424),a.Oe(Foc(!1,1,c)).then(function(e){(e=e.Zc())&&(e=e.Bd()[0])&&_.lj(e,96)&&b.Jda(e.Aw())},_.hg)):null};
var apc=function(a,b){return[DGc,EGc,FGc,GGc].reduce(function(c,d){var e;0!==c?e=c:e=_.Ha(d(a),d(b));return e},0)},DGc=function(a){return HGc[a.Af()]},EGc=function(a){return IGc[a.getType()]},FGc=function(a){return a.getName()||""},GGc=function(a){return a.getId()||""},BM={},HGc=(BM[5]=0,BM[7]=1,BM[1]=2,BM[3]=3,BM[4]=4,BM[2]=5,BM[6]=6,BM),JGc={},IGc=(JGc[1]=0,JGc[2]=1,JGc[3]=2,JGc[4]=3,JGc);
var KGc=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.Cg=l};
KGc.prototype.apply=function(a,b){var c=this;if(!(b instanceof _.GJ&&8===b.Cb()))if(a instanceof _.SI||a instanceof _.UI||a instanceof _.zhc||a instanceof _.rJ||a instanceof _.wI||a instanceof _.BJ||a instanceof _.Hhc||a instanceof _.DJ||a instanceof RK){var d=_.zI(b.getItem().clone(),9);this.H.$k([d],1);hzc(this.ta,b.getItem(),_.bK(this.Cg))}else if(a instanceof _.YI)b=_.BI(_.qI(new _.pI,a.getId())),this.H.Do([b]);else if(a instanceof _.aJ)b=_.BI(_.Ngc(_.qI(new _.pI,a.getId()),a.getId())),this.H.Do([b]),
this.ma.propagate(b);else if(a instanceof _.eJ)b=Foc(!0).jd(),b=this.H.Yl.query(b).map(function(e){return _.BI(_.qI(new _.pI,e.getId()))}),this.H.Do(b);else if(a instanceof _.WI)this.O.remove(a.Hh());else if(a instanceof _.hJ||a instanceof _.yJ)this.O.put(b.yr());else if(a instanceof _.ZI)$oc(this.H,a);else if(a instanceof _.oD)this.W.remove(a.getKey());else if(a instanceof _.iJ)bpc(this.H,a,_.x(b,_.vk,2));else if(a instanceof _.pD)this.W.put(b.AOa());else if(a instanceof _.VI||a instanceof _.CJ)this.ha.HD([b.rn()],
!1);else if(a instanceof _.bJ)this.ha.HD([Kyc(a.getId())],!1);else if(a instanceof _.yhc)this.V.HD(b.response.H(),!1,1);else if(a instanceof _.zJ)a.qW().filter(function(e){return _.N(e,3)}).forEach(function(e){return c.V.removeItem(e.Fm()||"",a.qc())}),Nyc(this.ka,a.qc()),this.H.B4a(a.qc());else if(a instanceof _.gK)for(b=_.m(_.yb(a,_.ntc,1)),d=b.next();!d.done;d=b.next())switch(d=d.value,d.getFeature()){case 3:case 4:case 1:switch(d=_.x(d,_.jL,2),d.getType()){case 1:case 2:if(d=this.H.Yl.H(d.qc()))d=
_.qI(Mrc(),d.getId()).setItem(d.clone()),this.H.Do([d])}}};
var LGc=function(a){this.H=a};
LGc.prototype.translate=function(a){if(a instanceof _.vJ){var b=this.H.H(a.getId());if(!b)return new _.Fc;var c=(new _.wI).Nb(a.getId());if(b.uc()){var d=b.getCapabilities();_.Pe(d)||_.N(d,9)?c.Nn(!0):_.xI(c,!1)}else d=a.getParent(),1===b.Bp()?c.Nn(!0):d?(b=this.H.H(d),!b||_.N(b.getCapabilities(),7)?Hrc(c,[d]):_.xI(c,!1)):_.xI(c,!1);return c}if(a instanceof _.wJ)return Jrc(Irc(Hrc(Grc((new _.wI).Nb(a.getId()),_.se(a,2)),_.se(a,3)),_.N(a,6)),_.yb(a,_.jl,8));if(a instanceof _.xJ){b=this.H.H(a.getId());
if(!b)return new _.Fc;c=(new _.wI).Nb(a.getId());b.uc()?(d=b.getCapabilities(),_.Pe(d)||_.N(d,9)?c.Nn(!1):_.xI(c,!0)):(d=a.getParent(),1===b.Bp()?c.Nn(!1):d?(b=this.H.H(d),!b||_.Ck(b.getCapabilities())?Grc(c,[d]):_.xI(c,!0)):_.xI(c,!0));return c}if(a instanceof _.tK)return new _.zhc(a);if(a instanceof _.nM)return _.se(a,1).map(function(f){var h=new _.zJ;f=_.u(h,1,f);h=a.qW();f=_.sj(f,2,h);h=a.re();return _.F(f,3,h)});if(a instanceof _.dJ){c=Foc(!1,1).jd();var e=0;this.H.query(c).forEach(function(f){(f=
f.Aw())&&(e=Math.max(e,f))});return xsc(new _.eJ,a).Jda(e)}return a};
var MGc=function(){};MGc.prototype.validate=function(a){var b=null;a instanceof _.nJ?(a=a.getId()||"",_.Te(a)&&(b="Tried to request backup with no id.")):a instanceof _.XI&&(a=a.getId()||"",_.Te(a)&&(b="Tried to delete backup with no id."));return b?_.uI(b):null};
var NGc=function(a,b){this.H=a;this.O=b},QGc=function(a,b){var c=new _.fM,d=new _.UB;if(b.user){var e=_.DK(a.H,b.user);_.F(d,1,e)}a=OGc(a,b);a=Arc(zrc(_.yrc(new _.qxb,a),b.rootFolderId),b.domainSharingPolicy);b.gsuiteSubscriptionInfo&&(e=b.gsuiteSubscriptionInfo,_.Crc(a,_.nrc(_.mrc((new _.TB).Dc(PGc.get(e.status)),Number(e.trialMillisRemaining)),_.CK(e.trialEndTime))));b.teamDashboardCapabilities&&(e=b.teamDashboardCapabilities,_.Drc(a,_.prc(_.orc(new _.lxb,e.canAdministerTeam),e.canManageInvites)));
b.importFormats&&Brc(a,b.importFormats.map(function(f){var h=new _.xrc;h=_.u(h,1,f.source);return _.qj(h,2,f.targets)}));_.F(d,3,a);_.LAc(c,d);b=b.largestChangeId;null!=b&&_.u(c,4,Number(b));return c},OGc=function(a,b){var c;var d=new _.pxb;d=_.u(d,1,Number(b.quotaBytesTotal));d=_.u(d,2,Number(b.quotaBytesUsed));d=_.u(d,3,Number(b.quotaBytesUsedAggregate));d=_.u(d,4,Number(b.quotaBytesUsedInTrash));d=_.trc(_.src(_.rrc(_.qrc(d,dpc(b.quotaBytesByService||[])),b.quotaType?RGc.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)-fpc(b);d=_.u(d,9,e);d=_.urc(d,Number(b.quotaBytesUsedAggregate));d=_.u(d,11,Number(b.quotaBytesUsedInTrash));d=_.u(d,13,_.Znc(Number(b.quotaBytesUsedAggregate),Number(b.quotaBytesTotal)));d=_.vrc(d,SGc.get(b.quotaStatus)||0);if(b.graceQuotaInfo&&b.graceQuotaInfo.endDate){e=new _.oxb;var f=_.v7a(new Date(b.graceQuotaInfo.endDate));e=
_.F(e,1,f);e=_.u(e,2,Number(b.graceQuotaInfo.additionalQuotaBytes));_.F(d,12,e)}if(null===(c=_.IJ(a.O))||void 0===c?0:_.Q(c,16,!1)){var h;(a=d.cK())&&(null===(h=null===b||void 0===b?void 0:b.graceQuotaInfo)||void 0===h?0:h.gracePeriodActive)&&a.setActive(!!b.graceQuotaInfo.gracePeriodActive);isNaN(Number(b.individualQuotaBytesTotal))||(h=_.u(d,16,Number(b.individualQuotaBytesTotal)),_.u(h,17,_.Znc(Number(b.individualQuotaBytesUsedAggregate),Number(b.individualQuotaBytesTotal))));b=_.u(d,9,Number(b.individualQuotaBytesUsedAggregate))}else b=
d;return b},SGc=new Map([["softLimitExceeded",2],["hardLimitExceeded",3],["underLimit",1]]),epc=new Set(["POOLED_STORAGE","FAMILY"]),PGc=new Map([["isInTrial",1],["hasPaidContract",2],["noSubscription",3],["trialExpired",4]]),cpc=new Map([["DRIVE",1],["FAMILY",4],["GMAIL",2],["PHOTOS",3],["POOLED_STORAGE",5]]),RGc=new Map([["LIMITED",1],["UNLIMITED",2],["POOLED",3]]);
var TGc=new Map([["TYPE_UNSPECIFIED",0],["MOBILE",1],["SYNC_CLIENT",2],["APP",3]]),UGc=new Map([["TYPE_UNSPECIFIED",0],["MY_DRIVE_ROOT",1],["SHARED_DRIVE_ROOT",2],["STANDARD_FOLDER",3]]),VGc=new Map([["TYPE_UNSPECIFIED",0],["USER_DELETION",1],["TRASH_AUTO_PURGE",2],["MULTIPARENTING_MIGRATION",4]]),WGc=new Map([["TYPE_UNSPECIFIED",0],["TRASH",1],["PERMANENT_DELETE",2]]),XGc=new Map([["TYPE_UNSPECIFIED",0],["UNTRASH",1],["REVIVE",2]]),YGc=new Map([["ROLE_UNSPECIFIED",0],["OWNER",1],["ORGANIZER",2],
["FILE_ORGANIZER",3],["EDITOR",4],["COMMENTER",5],["VIEWER",6],["PUBLISHED_VIEWER",7]]),ZGc=new Map([["SUBTYPE_UNSPECIFIED",0],["ADDED",1],["DELETED",2],["REPLY_ADDED",3],["REPLY_DELETED",4],["RESOLVED",5],["REOPENED",6]]),$Gc=new Map([["SUBTYPE_UNSPECIFIED",0],["ADDED",1],["DELETED",2],["REPLY_ADDED",3],["REPLY_DELETED",4],["RESOLVED",5],["REOPENED",6],["REASSIGNED",7]]),aHc=new Map([["SUBTYPE_UNSPECIFIED",0],["ADDED",1],["DELETED",2],["REPLY_ADDED",3],["REPLY_DELETED",4],["ACCEPTED",7],["REJECTED",
8],["ACCEPT_DELETED",9],["REJECT_DELETED",10]]),bHc=new Map([["TYPE_UNSPECIFIED",0],["FLAGGED",1],["CLEARED",2]]),cHc=new Map([["TYPE_UNSPECIFIED",0],["LOADED_FOR_VIEW",1],["VIEWED_MORE_CONTENT",2],["OPEN_WITH_APP_INITIATED",3]]),dHc=new Map([["DOMAIN_VISIBILITY_UNKNOWN",0],["DOMAIN_VISIBILITY_CONSUMER",1],["DOMAIN_VISIBILITY_SAME_DOMAIN",2],["DOMAIN_VISIBILITY_ALL_DOMAINS",3],["DOMAIN_VISIBILITY_RESTRICTED",4]]),eHc=new Map([["NAMED_PARTY_UNKNOWN",0],["NAMED_PARTY_UNNAMED",1],["NAMED_PARTY_NAMED",
2]]),fHc=new Map([["TYPE_UNSPECIFIED",0],["DOWNLOADED",1],["DOWNLOAD_INITIATED",2],["PRINT_INITIATED",3]]),gHc=new Map([["UNSPECIFIED_REFERENCE_TYPE",0],["LINK",1],["DISCUSS",2]]),hHc=new Map([["FEATURE_UNSPECIFIED",0],["SHARING_OUTSIDE_DOMAIN",1],["DIRECT_SHARING",2],["ITEM_DUPLICATION",3],["DRIVE_FILE_STREAM",4]]),iHc=new Map([["RESTRICTION_UNSPECIFIED",0],["UNRESTRICTED",1],["FULLY_RESTRICTED",2]]),jHc=new Map([["STATUS_UNSPECIFIED",0],["IN_PROGRESS",1],["COMPLETED",2],["CANCELLED",3]]),kHc=new Map([["DECISION_UNSPECIFIED",
0],["APPROVED",1],["DECLINED",2]]),lHc=new Map([["TYPE_UNSPECIFIED",0],["LABEL_ADDED",1],["LABEL_REMOVED",2],["LABEL_FIELD_VALUE_CHANGED",3]]),mHc=new Map([["PUBLISH_MODE_UNSPECIFIED",0],["NONE",1],["FIXED",2],["AUTO",3]]),nHc=new Map([["REASON_UNSPECIFIED",0],["ORPHAN_REPARENTED",1]]),uHc=function(a){return a.map(function(b){var c=new _.PAc;if(b.primaryActionDetail){var d=oHc(b.primaryActionDetail);_.F(c,2,d)}b.actors&&(d=pHc(b.actors),_.sj(c,3,d));b.actions&&(d=qHc(b.actions),_.sj(c,4,d));b.targets&&
(d=rHc(b.targets),_.sj(c,5,d));b.timestamp&&c.V(sHc(b.timestamp));b.timeRange&&(b=tHc(b.timeRange),_.wj(c,7,_.hM,b));return c})},qHc=function(a){return a.map(function(b){var c=new _.MAc;if(b.detail){var d=oHc(b.detail);_.F(c,1,d)}if(b.source){d=b.source;var e=new Juc;if(d.type){var f=TGc.get(d.type);_.Lj(e,2,f)}d.appId&&_.Jj(e,1,d.appId);_.F(c,2,e)}b.actor&&(d=vHc(b.actor),_.F(c,3,d));b.target&&(d=wHc(b.target),_.F(c,4,d));b.timestamp&&c.V(sHc(b.timestamp));b.timeRange&&(b=tHc(b.timeRange),_.wj(c,
6,_.NAc,b));return c})},rHc=function(a){return a.map(function(b){return wHc(b)})},yHc=function(a){return a.map(function(b){return xHc(b)})},zHc=function(a){return a.map(function(b){var c=new _.tuc;b.parent&&c.Tg(xHc(b.parent));b.shortcut&&(b=xHc(b.shortcut),_.F(c,2,b));return c})},wHc=function(a){var b=new _.Ruc;if(a.driveItem){var c=AHc(a.driveItem);_.wj(b,1,_.sL,c)}if(a.drive){var d=a.drive;c=new _.Puc;d.name&&c.$c(d.name);d.title&&c.setTitle(d.title);d.root&&(d=AHc(d.root),_.F(c,3,d));_.wj(b,5,
_.sL,c)}a.fileComment&&(a=a.fileComment,c=new _.Quc,a.legacyCommentId&&_.Jj(c,1,a.legacyCommentId),a.legacyDiscussionId&&_.Jj(c,2,a.legacyDiscussionId),a.linkToDiscussion&&_.Jj(c,3,a.linkToDiscussion),a.parent&&c.Tg(AHc(a.parent)),_.wj(b,3,_.sL,c));return b},xHc=function(a){var b=new _.lL;if(a.driveItem){var c=a.driveItem,d=new cuc;c.name&&d.$c(c.name);c.title&&d.setTitle(c.title);if(c.driveFile){var e=new auc;_.wj(d,8,buc,e)}c.driveFolder&&(e=BHc(c.driveFolder),_.wj(d,9,buc,e));c.driveShortcut&&
(c=CHc(c.driveShortcut),_.wj(d,10,buc,c));_.wj(b,1,duc,d)}a.drive&&(a=DHc(a.drive),_.wj(b,3,duc,a));return b},AHc=function(a){var b=new _.$tc;a.name&&b.$c(a.name);a.title&&b.setTitle(a.title);a.mimeType&&_.Jj(b,6,a.mimeType);var c=Number(a.version);isFinite(c)&&_.Ij(b,5,c);if(a.owner){var d=a.owner;c=new Wtc;d.domain&&c.Ln(EHc(d.domain));if(d.user){var e=CM(d.user);_.wj(c,1,_.Vtc,e)}d.drive&&(d=DHc(d.drive),_.wj(c,4,_.Vtc,d));_.F(b,7,c)}a.driveFile&&(c=new auc,_.wj(b,8,Xtc,c));a.driveFolder&&(c=BHc(a.driveFolder),
_.wj(b,9,Xtc,c));a.driveShortcut&&(a=CHc(a.driveShortcut),_.wj(b,10,Xtc,a));return b},DHc=function(a){var b=new Utc;a.name&&b.$c(a.name);a.title&&b.setTitle(a.title);return b},BHc=function(a){var b=new Ytc;a.type&&(a=UGc.get(a.type),_.Lj(b,6,a));return b},CHc=function(a){var b=new Ztc;a.targetName&&_.Jj(b,1,a.targetName);a.targetMimeType&&_.Jj(b,2,a.targetMimeType);return b},pHc=function(a){return a.map(function(b){return vHc(b)})},vHc=function(a){var b=new _.Ouc;if(a.user){var c=CM(a.user);_.wj(b,
1,_.rL,c)}a.anonymous&&(c=new Luc,_.wj(b,2,_.rL,c));if(a.impersonation){var d=a.impersonation;c=new _.Muc;d.impersonatedUser&&(d=CM(d.impersonatedUser),_.F(c,1,d));_.wj(b,3,_.rL,c)}a.system&&(d=a.system,c=new _.Nuc,d.type&&(d=VGc.get(d.type),_.Lj(c,1,d)),_.wj(b,4,_.rL,c));a.administrator&&(a=new _.Kuc,_.wj(b,5,_.rL,a));return b},FHc=function(a){return a.map(function(b){return CM(b)})},CM=function(a){var b=new _.Btc;if(a.knownUser){var c=a.knownUser,d=new _.ztc;c.personName&&_.Jj(d,1,c.personName);
c.isCurrentUser&&_.Hj(d,2,c.isCurrentUser);c.displayName&&_.Jj(d,3,c.displayName);c.photoUrl&&d.Mn(c.photoUrl);_.wj(b,2,_.ytc,d)}a.unknownUser&&(c=new Ctc,_.wj(b,4,_.ytc,c));a.deletedUser&&(a=new _.Atc,_.wj(b,3,_.ytc,a));return b},sHc=function(a){var b=(new Date(a)).getTime();a=Math.floor(b/1E3);b=b%1E3*1E6;return _.u7a((new _.Hy).setSeconds(a),b)},tHc=function(a){var b=new _.gM;a.startTime&&b.eZ(sHc(a.startTime));a.endTime&&b.gP(sHc(a.endTime));return b},EHc=function(a){var b=new Ttc;a.name&&b.$c(a.name);
a.legacyId&&_.Jj(b,3,a.legacyId);a.audienceDisplayName&&_.Jj(b,4,a.audienceDisplayName);return b},oHc=function(a){var b=new _.qL;if(a.create){var c=a.create,d=new _.guc;if(c.new){var e=new huc;_.wj(d,1,_.euc,e)}c.upload&&(e=new iuc,_.wj(d,2,_.euc,e));c.copy&&(e=c.copy,c=new _.fuc,e.originalObject&&(e=xHc(e.originalObject),_.F(c,1,e)),_.wj(d,3,_.euc,c));_.wj(b,1,_.pL,d)}a.edit&&(d=new nuc,_.wj(b,2,_.pL,d));if(a.move){c=a.move;d=new _.vuc;c.addedParents&&(e=yHc(c.addedParents),_.sj(d,1,e));c.removedParents&&
(e=yHc(c.removedParents),_.sj(d,2,e));c.fromOwnershipTransfer&&_.Hj(d,3,c.fromOwnershipTransfer);c.reparents&&(e=c.reparents.map(GHc),_.sj(d,4,e));if(c.multiparentingMigration){e=c.multiparentingMigration;c=new _.uuc;if(e.removedParents){var f=yHc(e.removedParents);_.sj(c,2,f)}e.migratedParents&&(e=zHc(e.migratedParents),_.sj(c,1,e));_.F(d,5,c)}_.wj(b,3,_.pL,d)}a.rename&&(d=a.rename,c=new _.Buc,d.oldTitle&&_.Jj(c,1,d.oldTitle),d.newTitle&&_.Jj(c,2,d.newTitle),_.wj(b,4,_.pL,c));a.delete&&(c=a.delete,
d=new _.luc,c.type&&(c=WGc.get(c.type),_.Lj(d,1,c)),_.wj(b,5,_.pL,d));a.restore&&(c=a.restore,d=new _.Cuc,c.type&&(c=XGc.get(c.type),_.Lj(d,1,c)),_.wj(b,6,_.pL,d));a.permissionChange&&(c=a.permissionChange,d=new _.yuc,c.addedPermissions&&(e=HHc(c.addedPermissions),_.sj(d,1,e)),c.removedPermissions&&(e=HHc(c.removedPermissions),_.sj(d,2,e)),c.resharedPermissions&&(e=HHc(c.resharedPermissions),_.sj(d,3,e)),c.otherActivePermissions&&(c=HHc(c.otherActivePermissions),_.sj(d,4,c)),_.wj(b,7,_.pL,d));if(a.comment){c=
a.comment;d=new _.Stc;c.post&&(f=c.post,e=new _.Ptc,f.subtype&&(f=ZGc.get(f.subtype),_.Lj(e,1,f)),_.wj(d,1,_.Otc,e));if(c.assignment){f=c.assignment;e=new _.Qtc;if(f.subtype){var h=$Gc.get(f.subtype);_.Lj(e,1,h)}f.assignedUser&&(f=CM(f.assignedUser),_.F(e,7,f));_.wj(d,2,_.Otc,e)}c.suggestion&&(f=c.suggestion,e=new _.Rtc,f.subtype&&(f=aHc.get(f.subtype),_.Lj(e,1,f)),_.wj(d,3,_.Otc,e));c.mentionedUsers&&(c=FHc(c.mentionedUsers),_.sj(d,7,c));_.wj(b,8,_.pL,d)}a.dlpChange&&(c=a.dlpChange,d=new _.kuc,c.type&&
(c=bHc.get(c.type),_.Lj(d,1,c)),_.wj(b,9,_.pL,d));if(c=a.view){d=new Iuc;(e=cHc.get(c.type))&&_.Lj(d,1,e);if(e=c.viewHistoryVisibility)c=new Huc,(f=dHc.get(e.domainPolicyVisibilityState))&&_.Lj(c,1,f),(e=eHc.get(e.namedPartyState))&&_.Lj(c,2,e),_.F(d,2,c);_.wj(b,10,_.pL,d)}if(c=a.download)d=new muc,(c=fHc.get(c.type))&&_.Lj(d,1,c),_.wj(b,11,_.pL,d);a.reference&&(c=a.reference,d=new _.ttc,c.type&&(e=gHc.get(c.type),_.Lj(d,1,e)),c.context&&(c=c.context,e=new stc,c.description&&e.kl(c.description),c.url&&
_.Jj(e,2,c.url),_.F(d,2,e)),_.wj(b,12,_.pL,d));a.settingsChange&&(c=a.settingsChange,d=new _.Fuc,c.restrictionChanges&&(c=IHc(c.restrictionChanges),_.sj(d,1,c)),_.wj(b,13,_.pL,d));a.approvalChange&&(c=a.approvalChange,d=new _.Ftc,c.approvalName&&_.Jj(d,2,c.approvalName),c.approvalEventNames&&_.qj(d,3,c.approvalEventNames),c.initiator&&(e=CM(c.initiator),_.F(d,4,e)),c.reviewers&&(e=FHc(c.reviewers),_.sj(d,5,e)),c.status&&d.Dc(jHc.get(c.status)),c.dueTime&&(e=sHc(c.dueTime),_.F(d,7,e)),c.approvalRequested&&
(e=new Gtc,_.wj(d,8,_.kL,e)),c.approvalCancelled&&(e=new Htc,_.wj(d,9,_.kL,e)),c.reviewerResponded&&(f=c.reviewerResponded,e=new _.Etc,f.reviewerDecision&&(f=kHc.get(f.reviewerDecision),_.Lj(e,1,f)),_.wj(d,10,_.kL,e)),c.commentAdded&&(e=new Itc,_.wj(d,11,_.kL,e)),c.reviewersChanged&&(f=c.reviewersChanged,e=new Ktc,f.reviewerChanges&&(f=JHc(f.reviewerChanges),_.sj(e,1,f)),_.wj(d,12,_.kL,e)),c.dueTimeChanged&&(e=c.dueTimeChanged,c=new Mtc,e.oldDueTime&&(e=sHc(e.oldDueTime),_.F(c,1,e)),_.wj(d,13,_.kL,
c)),_.wj(b,18,_.pL,d));a.lock&&(d=new puc,_.wj(b,15,_.pL,d));a.unlock&&(d=new Guc,_.wj(b,16,_.pL,d));a.appliedLabelChange&&(c=a.appliedLabelChange,d=new _.xtc,c.changes&&(c=KHc(c.changes),_.sj(d,1,c)),_.wj(b,19,_.pL,d));a.publishChange&&(c=a.publishChange,d=new _.Auc,c.oldPublishState&&(e=LHc(c.oldPublishState),_.F(d,1,e)),c.newPublishState&&(c=LHc(c.newPublishState),_.F(d,2,c)),_.wj(b,20,_.pL,d));a.linkShareMetadataChange&&(a=a.linkShareMetadataChange,d=new _.ouc,a.securityUpdateEnabled&&_.Hj(d,
1,a.securityUpdateEnabled),_.wj(b,21,_.pL,d));return b},GHc=function(a){var b=new _.ruc;a.reason&&(a=nHc.get(a.reason),_.Lj(b,1,a));return b},HHc=function(a){return a.map(function(b){var c=new _.oL;if(b.role){var d=YGc.get(b.role);_.Lj(c,1,d)}b.user&&(d=CM(b.user),_.wj(c,2,_.nL,d));if(b.group){d=b.group;var e=new _.mL;d.email&&_.Jj(e,1,d.email);d.title&&e.setTitle(d.title);_.wj(c,3,_.nL,e)}b.domain&&c.Ln(EHc(b.domain));b.anyone&&(d=new wuc,_.wj(c,5,_.nL,d));b.allowDiscovery&&_.Hj(c,6,b.allowDiscovery);
return c})},IHc=function(a){return a.map(function(b){var c=new _.Euc;if(b.feature){var d=hHc.get(b.feature);_.Lj(c,1,d)}b.newRestriction&&(b=iHc.get(b.newRestriction),_.Lj(c,2,b));return c})},JHc=function(a){return a.map(function(b){var c=new Ltc;if(b.removedReviewer){var d=CM(b.removedReviewer);_.F(c,3,d)}b.addedReviewer&&(b=CM(b.addedReviewer),_.F(c,4,b));return c})},KHc=function(a){return a.map(function(b){var c=new _.wtc;b.label&&_.Jj(c,1,b.label);b.types&&(b=MHc(b.types),_.qj(c,2,b));return c})},
MHc=function(a){return a.map(function(b){return lHc.get(b)})},LHc=function(a){var b=new _.zuc;if(a.publishMode){var c=mHc.get(a.publishMode);_.Lj(b,1,c)}a.signinRequired&&_.Hj(b,2,a.signinRequired);a.publishedTime&&(a=sHc(a.publishedTime),_.F(b,3,a));return b};
var OHc=function(a){return(a.items||[]).map(function(b){return NHc(b)})},PHc=function(a,b){var c=new YAc;b=_.u(c,4,b);a&&(a=NHc(a),_.F(b,2,a));return b},NHc=function(a){var b=(new _.tL).Nb(a.id);b=_.u(b,3,a.useByDefault).$c(a.name);b=_.u(b,7,a.openUrlTemplate);b=$uc(Zuc(b,a.primaryMimeTypes),a.secondaryMimeTypes);b=_.u(b,8,a.createUrl);b=_.u(b,9,a.createInFolderTemplate);b=_.u(b,10,a.objectType);b=_.u(b,11,a.supportsCreate);b=_.u(b,12,a.supportsImport);b=_.u(b,13,a.supportsMultiOpen);b=_.u(b,27,a.supportsOfflineCreate);
b=_.u(b,14,a.installed);b=_.u(b,15,a.authorized);b=_.u(b,16,a.productUrl);b=_.qj(b,17,a.primaryFileExtensions);b=_.qj(b,18,a.secondaryFileExtensions);b=_.u(b,19,a.shortDescription);b=_.u(b,20,a.longDescription);b=_.u(b,21,a.productId);b=_.u(b,22,a.removable);var c=QHc.get(a.type);b=_.u(b,23,c);b=_.u(b,25,a.hasAppData);b=_.u(b,26,Number(a.appDataQuotaBytesUsed));b=_.u(b,28,a.requiresAuthorizationBeforeOpenWith);b=_.u(b,30,a.hasDriveWideScope);b=_.u(b,31,a.driveSource);b=_.u(b,32,a.driveBranded);b=
_.u(b,33,a.hidden);b=_.u(b,34,a.supportsMobileBrowser);b=_.u(b,35,a.supportsTeamDrives);b=_.u(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 _.Uuc;l=_.u(l,3,k.iconUrl).setSize(k.size);k.category&&(k=RHc.get(k.category),_.u(l,1,k));h.call(f,l)}_.sj(b,6,d);c=a.chromeExtensionIds||[];d=[];for(e=0;e<c.length;e++)d.push(c[e]);_.qj(b,24,d);c=a.rankingInfo||{};a=new _.Xuc;d=c.absoluteScore;null!=d&&_.u(a,1,Number(d));d=SHc(c.mimeTypeScores||[]);_.sj(a,
2,d);c=SHc(c.fileExtensionScores||[]);_.sj(a,3,c);_.F(b,29,a);return b},SHc=function(a){return a.map(function(b){var c=b.type;b=b.score;var d=new _.Vuc;c=_.u(d,1,c);return _.u(c,2,Number(b))})},QHc=new Map([["WEB_ONLY",1],["WEB_AND_CHROME_EXTENSION",2],["CHROME_EXTENSION_ONLY",3]]),RHc=new Map([["application",1],["document",2],["documentShared",3]]);
var UHc=function(a){var b=new fBc;if(!a.backups)return b;a=a.backups.map(function(c){var d=(new _.FL).Nb(c.id).setTitle(c.title);d=_.u(d,3,_.CK(c.updateTime));var e=THc.get(c.backupSource);d=_.u(d,4,e);d=_.u(d,5,c.iconUri);d=_.u(d,8,_.CK(c.expiryTime));d=_.u(d,9,"boolean"===typeof c.hasGoogleoneBackup?c.hasGoogleoneBackup:!1);if(1===d.vz())e=new vwc,e=_.u(e,1,c.whatsappOngoingBackupEnabled),c=_.u(e,2,c.whatsappPhoneNumber),_.F(d,6,c);else if(2===d.vz()){e=Number(c.deviceAndroidId);var f=new _.uwc;
f=_.u(f,1,c.deviceName);f=_.u(f,2,c.deviceModelName);c=_.u(f,3,c.shouldIncludeSpecialSyncItems);c=_.u(c,4,isNaN(e)?void 0:e);_.F(d,7,c)}return d});_.sj(b,2,a);return b},WHc=function(a){var b=new bBc;if(!a.backupItems)return b;a=a.backupItems.map(function(c){var d=(new _.GL).Nb(c.id);var e=VHc.get(c.type);d=_.u(d,1,e).setTitle(c.title);d=_.u(d,4,c.iconUri);d=_.wwc(d.setSize(c.size?Number(c.size):void 0),_.CK(c.updateTime));d=_.u(d,7,c.hasCustomBehavior).kl(c.description);return _.u(d,9,c.ongoingSyncEnabled)});
_.sj(b,1,a);return b},THc=new Map([["BACKUP_SOURCE_UNSPECIFIED",0],["BACKUP_SOURCE_WHATSAPP",1],["BACKUP_SOURCE_ANDROID",2]]),VHc=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 XHc=function(a,b){this.H=a;this.O=b};
var gpc=new Map([["QUEUED",1],["COUNTING",3],["BUILDING",2],["SUCCEEDED",4],["FAILED",5]]);
var YHc=new Map([["READ",2],["WRITE",3],["COMMENT",4]]),ZHc=function(a,b,c){var d=c.itemId;c=c.driveItem;d=(new _.Ik).Nb(d);c&&(_.cG(d.setTitle(c.title),c.mimeType),c.userCapabilities&&_.QJ(d,_.smc(c.userCapabilities)));_.bK(b).includes(19)&&_.u(d,44,!0);hzc(a,d,_.bK(b));_.sic(d,4);return d},bIc=function(a,b,c){for(var d=[],e=[],f={},h=_.m(c.item||[]),k=h.next();!k.done;f={Efa:f.Efa},k=h.next()){var l=k.value;if(l.person){f.Efa=l.itemId;k=$Hc(l.person).Nb(f.Efa);var p={};l=_.m(l.childItem||[]);for(var q=
l.next();!q.done;p={Zra:p.Zra},q=l.next()){var r=q.value;e.some(function(v){return function(w){return w.getId()===v.Efa}}(f))||e.push(k);p.Zra=r.itemId;q=d.find(function(v){return function(w){return w.getId()===v.Zra}}(p));void 0===q&&(q=ZHc(a,b,r),d.push(q));r=brc(arc($qc(new _.zoa,k.clone()),aIc(r)),r.url);_.yj(q,107,r,_.zoa,void 0)}}}return Psc((new _.kK).fB(d),e).$P(c.suggestionSessionId)},$Hc=function(a){return _.eic((new _.vk).Nb(a.id).$c(a.displayName),a.emailAddress).Mn(a.photoUrl)},mIc=function(a){var b=
a.action;return b?b.map(function(c){var d=new _.boa,e=cIc(c);e&&_.wj(d,2,_.zk,e);(e=dIc(c))&&Qpc(d,e);(e=eIc(c))&&_.wj(d,4,_.zk,e);(e=fIc(c))&&_.wj(d,5,_.zk,e);(e=gIc(c))&&_.wj(d,6,_.zk,e);(e=hIc(c))&&_.wj(d,7,_.zk,e);(e=iIc(c))&&_.wj(d,8,_.zk,e);(e=jIc(c))&&_.wj(d,9,_.zk,e);(e=kIc(c))&&_.wj(d,10,_.zk,e);(c=lIc(c))&&_.wj(d,11,_.zk,c);return d}):(a=DM(a),a=yqc([a]),[Qpc(new _.boa,a)])},oIc=function(a){return(a.justification||[]).map(function(b){return nIc(b)})},DM=function(a){return(a=a.justification)?
nIc(a):null},nIc=function(a){var b=Mpc(new _.yk,pIc(a.displayText)),c=a.primaryPerson,d=a.allPeople;c?(c=$Hc(c),_.wj(b,3,_.aoa,c),Npc(b,[c])):d?(c=(d.person||[]).map(function(e){return $Hc(e)}),d=Lpc(c),_.wj(b,4,_.aoa,d),Npc(b,c)):(c=(a.person||[]).map(function(e){return $Hc(e)}),c.length&&(d=Lpc(c),_.wj(b,4,_.aoa,d),Npc(b,c)));_.u(b,5,_.CK(a.eventTime));Opc(b,pIc(a.justificationDescription));Ppc(b,pIc(a.unstructuredJustificationDescription));return b},pIc=function(a){if(!a)return null;a=a.textSegment||
[];return Ipc(new _.qk,a.map(function(b){var c=(new _.rk).jh(b.text),d=b.link;if(d){var e=new _.uk;d=_.u(e,1,d.url)}else d=null;c=_.F(c,2,d);c=_.u(c,3,b.bold);return _.u(c,4,b.italic)}))},cIc=function(a){a=a.documentDocosAction;if(!a)return null;var b=nqc(new _.joa,DM(a));mqc(b,(a.subAction||[]).map(function(c){var d=new _.koa;c.reply?(c=new _.doa,_.wj(d,1,_.Ak,c)):c.resolve?(c=new Ypc,_.wj(d,2,_.Ak,c)):c.reassign?(c=new Wpc,_.wj(d,3,_.Ak,c)):c.acceptSuggestion?(c=new Rpc,_.wj(d,4,_.Ak,c)):c.rejectSuggestion?
(c=new Xpc,_.wj(d,5,_.Ak,c)):c.openThread&&(c=new _.coa,_.wj(d,6,_.Ak,c));return d}));_.u(b,2,a.discussionId);_.u(b,3,a.postId);oqc(b,pIc(a.anchorText));return b},eIc=function(a){a=a.documentShareAction;if(!a)return null;var b=sqc(new _.moa,DM(a));rqc(b,(a.subAction||[]).map(function(c){var d=new tqc;c.suggestedShare?(c=new bqc,_.wj(d,1,Vqc,c)):c.responseToRequest&&(c=new Zpc,_.wj(d,2,Vqc,c));return d}));pqc(b,(a.sharee||[]).map(function(c){return $Hc(c)}));qqc(b,YHc.get(a.shareeRole));return b},
dIc=function(a){a=a.documentViewAction;if(!a)return null;var b=yqc(oIc(a));xqc(b,(a.subAction||[]).map(function(c){var d=new Aqc;c.open?d.Mf(new Tpc):c.reviewEdits&&(c=new $pc,_.wj(d,2,zqc,c));return d}));return b},fIc=function(a){a=a.emailViewAction;if(!a)return null;var b=Kqc(new Iqc,DM(a));Jqc(b,(a.subAction||[]).map(function(c){var d=new Mqc;c.open&&d.Mf(new Upc);return d}));return b},gIc=function(a){a=a.calendarEventAction;if(!a)return null;var b=hqc(gqc(fqc(new _.foa,a.eventId),DM(a)),a.guestCount);
eqc(b,(a.subAction||[]).map(function(c){var d=new iqc;if(c.viewCalendarEvent){var e=new cqc;_.wj(d,1,Tqc,e)}c.shareWithAttendees&&(e=new aqc,_.wj(d,2,Tqc,e));c.present&&(e=new Vpc,_.wj(d,3,Tqc,e));c.openDocument&&(c=new Tpc,_.wj(d,4,Tqc,c));return d}));return b},hIc=function(a){a=a.documentWorkspaceAction;if(!a)return null;var b=Fqc(Eqc(new Cqc,a.workspaceId),DM(a));Dqc(b,(a.subAction||[]).map(function(c){var d=new Gqc;c.addToWorkspace&&(c=new Spc,_.wj(d,1,Xqc,c));return d}));return b},iIc=function(a){a=
a.documentTopicAction;if(!a)return null;var b=vqc(new _.ooa,DM(a));uqc(b,(a.subAction||[]).map(function(c){var d=new wqc;c.openDocument&&(c=new Tpc,_.wj(d,1,Wqc,c));return d}));return b},jIc=function(a){a=a.popularDocumentAction;if(!a)return null;var b=Rqc(new _.uoa,DM(a));Qqc(b,(a.subAction||[]).map(function(c){var d=new Sqc;c.openDocument&&(c=new Tpc,_.wj(d,1,Zqc,c));return d}));return b},kIc=function(a){a=a.collaboratorActivityAction;if(!a)return null;var b=kqc(new _.hoa,DM(a));jqc(b,(a.subAction||
[]).map(function(c){var d=new lqc;c.openDocument&&(c=new Tpc,_.wj(d,1,Uqc,c));return d}));return b},lIc=function(a){a=a.formResponseAction;if(!a)return null;var b=Oqc(new _.soa,oIc(a));Nqc(b,(a.subAction||[]).map(function(c){var d=new Pqc;c.openDocument?(c=new Tpc,_.wj(d,1,Yqc,c)):c.viewResponses&&(c=new dqc,_.wj(d,2,Yqc,c));return d}));return b},aIc=function(a){a=((a.justification||{}).displayText||{}).textSegment||[];return 0<a.length?(a[0]||{}).text||"":""};
var qIc=function(a,b){this.H=a;this.O=b},sIc=function(a,b,c){var d=new KL,e=Object.values(c.categoryMetadata||{});Vwc(d,e.map(function(f){return rIc(a,f,b.qc())}));d.Dc(1);return new _.nK(d,lpc(c))},uIc=function(a,b){var c=new mM;YBc(c,(b.categories||[]).map(function(d){return tIc(a,d)}));c.Dc(1);return new swc(c,lpc(b))},rIc=function(a,b,c){c=Twc((new JL).$c(b.categoryName),c);b=Object.values(b.attributeValues||[]);Swc(c,b.map(function(d){return vIc(a,d)}).filter(function(d){return null!==d}));return c},
tIc=function(a,b){var c,d=WBc(MBc(SBc(RBc(QBc(LBc(KBc((new lM).$c(b.name),b.categoryName),b.latestName).setTitle(b.title).kl(b.description),_.CK(b.createTime)),_.CK(b.updateTime)),_.CK(b.publishTime)),(null!==(c=b.attributes)&&void 0!==c?c:[]).map(function(e){a:{var f=e.type;var h=(new kBc).Nb(e.id);h=_.u(h,2,e.queryGuid);h=_.u(h,3,e.helpText);h=_.u(h,4,e.displayName);if(e.attributeDisplayHints){var k=wIc(e.attributeDisplayHints);_.F(h,5,k)}if(e.capabilities){k=e.capabilities;var l=new lBc;l=_.u(l,
1,k.canSearch);k=_.u(l,2,k.canWrite);_.F(h,6,k)}if(f&&(_.u(h,7,xIc[f]),e=e[yIc(f)+"Options"],!zIc(a,h,f,e))){f=null;break a}f=h}return f}).filter(function(e){return null!==e})),b.customer);b.createdBy&&NBc(d,AIc(b.createdBy));b.UVb&&OBc(d,AIc(b.UVb));b.publishedBy&&PBc(d,AIc(b.publishedBy));b.displayHints&&TBc(d,wIc(b.displayHints));b.capabilities&&VBc(d,BIc(b.capabilities));b.learnMoreUri&&_.u(d,15,b.learnMoreUri);return d},vIc=function(a,b){var c=(new hL).Nb(b.id);if(b.userScoped)b=Object.values(b.userScoped),
ltc(c,b.map(function(d){if(d.scopedUser){var e=new itc;var f=_.DK(a.H,d.scopedUser);e=_.F(e,1,f);d=a.Hb(e,d)?e:null}else d=null;return d}).filter(function(d){return null!==d})),c.gB(9);else if(!a.Hb(c,b))return null;return c},wIc=function(a){var b=new jBc;b=_.u(b,1,a.disabled);b=_.u(b,2,a.hidden);b=_.u(b,3,a.activatedInAllDrives);return _.u(b,4,!!a.required)},BIc=function(a){var b=new UBc;b=_.u(b,1,a.canSearch);b=_.u(b,2,a.canApply);b=_.u(b,4,a.canRemove);return _.u(b,3,a.canManageSharedDriveActivation)},
zIc=function(a,b,c,d){return CIc(a,function(){DIc(a)[c](b,d)},c,b)},EIc=function(a){a=void 0===a?{}:a;var b=new qBc;b=_.u(b,1,a.minSize);return _.u(b,2,a.maxSize)},GIc=function(a){var b=new pBc;vBc(b,(a.choices||[]).map(function(c){var d=new uBc;d=_.u(d,1,c.label).Hb(c.value);c.description&&d.kl(c.description);if(c.capabilities){var e=c.capabilities;var f=new wBc;f=_.u(f,1,e.canSearch);e=_.u(f,2,e.canSelect);_.F(d,3,e)}c.displayHints&&(c=c.displayHints,e=new xBc,e=_.u(e,1,c.disabled),e=_.u(e,2,c.hidden),
c.badgePriority&&_.u(e,5,c.badgePriority),c.badgeColors&&(f=FIc(c.badgeColors),_.F(e,3,f)),c.darkBadgeColors&&(c=FIc(c.darkBadgeColors),_.F(e,4,c)),_.F(d,4,e));return d}));return b},FIc=function(a){var b=new iBc;var c=HIc(a.backgroundColor);b=_.F(b,1,c);c=HIc(a.foregroundColor);b=_.F(b,2,c);a=HIc(a.soloColor);return _.F(b,3,a)},HIc=function(a){var b=new _.SC;b=_.wb(b,1,a.red,0);b=_.wb(b,2,a.green,0);b=_.wb(b,3,a.blue,0);a.alpha&&(a=(new Erc).Hb(a.alpha),_.F(b,4,a));return b},IIc=function(a){var b=
new zBc;b=_.u(b,1,a.showThousandsSeparator);b=_.u(b,2,Number(a.minValue));return _.u(b,3,Number(a.maxValue))},JIc=function(a){var b=(new _.Toa).setYear(a.year).setMonth(a.month);return _.u(b,3,a.day)};qIc.prototype.Hb=function(a,b){var c=this,d=b.valueType.replace(/([A-Z])/g,"_$1").toLowerCase().toUpperCase();a.gB(xIc[d]);return CIc(this,function(){KIc(c)[d](a,b[b.valueType])},b.valueType)};
var CIc=function(a,b,c,d){try{b()}catch(e){if(e instanceof TypeError&&!(d instanceof BBc))return ksc(a.O,"drive.ds.response.MetadataParser","Response Parser: Error parsing type "+c+"."),!1;throw e;}return!0},AIc=function(a){return _.cic(1).Nb(a.personName.split("/")[1])},yIc=function(a){return a.toLowerCase().replace(/_([a-z])/g,function(b,c){return c.toUpperCase()})},DIc=function(a){return{BOOLEAN:function(b,c){var d=b.m6a;var e=new sBc;e=_.u(e,1,c.trueLabel);c=_.u(e,2,c.falseLabel);return d.call(b,
c)},TEXT:function(b,c){return b.GOa(EIc(c))},TEXT_LIST:function(b,c){var d=b.k7a;var e=new yBc;e=_.u(e,1,c.maxEntries);c=EIc(c.options);c=_.F(e,2,c);return d.call(b,c)},LONG_TEXT:function(b,c){var d=new nBc;d=_.u(d,1,c.minSize);c=_.u(d,2,c.maxSize);return _.wj(b,10,jM,c)},SELECTION:function(b,c){return b.Z6a(GIc(c))},SELECTION_LIST:function(b,c){var d=b.Y6a;var e=new oBc;e=_.u(e,1,c.maxEntries);c=GIc(c.options);c=_.F(e,2,c);return d.call(b,c)},INTEGER:function(b,c){return b.z6a(IIc(c))},INTEGER_LIST:function(b,
c){var d=b.y6a;var e=new ABc;e=_.u(e,1,c.maxEntries);c=IIc(c.options);c=_.F(e,2,c);return d.call(b,c)},USER:function(b){return b.p7a(new CBc)},USER_LIST:function(b,c){var d=b.HOa,e=new rBc;c=_.u(e,1,c.maxEntries);e=new CBc;c=_.F(c,2,e);return d.call(b,c)},DATE:function(b,c){var d=b.FOa;var e=new mBc;e=_.u(e,4,c.dateFormat);var f=JIc(c.minValue);e=_.F(e,2,f);c=JIc(c.maxValue);c=_.F(e,3,c);return d.call(b,c)},USER_SCOPED:function(b,c){var d=new BBc;d=_.u(d,1,c.canReadCollaboratorValues);var e=c.subtype;
_.u(d,2,xIc[e]);var f=yIc(e)+"Options";zIc(a,d,e,c[f]);return _.wj(b,16,jM,d)}}},KIc=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.Zpa(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.Vpa(c)},INTEGER:function(b,c){return b.setIntegerValue(parseInt(c,10))},INTEGER_LIST:function(b,c){return b.Mpa(c.map(function(d){return parseInt(d,
10)}))},USER:function(b,c){return b.setUserValue(_.DK(a.H,c))},USER_LIST:function(b,c){ktc(b,c.map(function(d){return _.DK(a.H,d)}))},DATE_STRING:function(b,c){return b.setDateStringValue(c)}}},xIc={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 mpc={movable:1,deadlineExceeded:2,exceedsSourceLimit:3,exceedsDestinationDepthLimit:4,exceedsDestinationSizeLimit:5,tooManyUnmovableFiles:6,tooHighProportionUnmovableFiles:7};
var MIc=function(a){a=a.personResponse||[];return cxc(new bxc,a.map(function(b){var c=b.person;b=Zwc(new LL,b.personId);var d=b.$c;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=$wc(d.call(b,e),LIc(c));c=void 0===c?{}:c;c=c.photo?c.photo[0]:null;h=new Ywc;c=_.u(h,1,c&&!c.isDefault?c.url:null);return _.F(f,4,c)}))},LIc=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 NIc=function(a){this.H=a},PIc=function(a,b){return(b.items||[]).map(function(c){return OIc(a,c)})},OIc=function(a,b){var c=new _.Eoa,d=b.colorRgb;d?(d=d.substring(1),d=/^[a-fA-F0-9]+$/.test(d)?parseInt(d,16):0):d=0;_.u(c,2,d);_.u(c,1,b.backgroundImageLink);_.u(c,3,b.trusted);_.u(c,5,b.backgroundImageGridViewLink);_.u(c,6,b.backgroundImageListViewLink);_.u(c,7,b.hidden);_.u(c,9,b.removeSecureLinkUpdateForAllFiles);(d=b.categoryReferences)&&Mnc(c,d.map(function(e){var f=new _.Gk;return _.u(f,1,
e.category)}));c=_.zic(_.xic(_.wic(_.sic(_.tic(Lnc(_.cG((new _.Ik).Nb(b.id).setTitle(b.name),"application/vnd.google-apps.folder"),c),b.id),2),b.primaryDomainName),b.organizationDisplayName),b.customerId);b.capabilities&&(d=_.gic(_.smc(b.capabilities),!0),_.QJ(c,d));b.permissionsSummary&&_.uic(c,Jsc(a.H,b.permissionsSummary));b.restrictions&&Onc(c,QIc(b.restrictions));return c},QIc=function(a){var b=new frc;b=_.u(b,1,a.copyRequiresWriterPermission);b=_.u(b,2,a.disallowDriveFileStream);b=_.u(b,3,a.domainUsersOnly);
"teamMembersOnly"in a&&_.u(b,4,a.teamMembersOnly);return b};
var RIc={DRIVE_FE:2,DRIVE_BE:4,EXPLORER:1,GENERAL:3,PSYNCHO:5,SLACK:6,DRIVE_BE_EX:7,DRIVE_SHARING:9,TEAMKIT:10},vpc=_.fb(RIc);
var SIc=function(a){var b=new _.Kc;b=_.u(b,2,a.key);b=_.u(b,1,a.namespace?RIc[a.namespace]:void 0);return _.lCa(new _.Vo,b).Hb(a.value)};
var UIc=function(a){var b=a.items||[];b=exc(new ML,b.map(function(c){return TIc(c)}));return new _.qK(b,lpc(a))},TIc=function(a){var b=(new _.cI).Nb(a.id).setTitle(a.title);b=_.u(b,3,_.CK(a.createdDate));return _.u(b,4,_.CK(a.modifiedDate)).Id(a.state?VIc[a.state]:void 0)},WIc=function(a,b,c){var d=c.item||[];return _.snc(_.rnc(new _.IK,d.map(function(e){return ZHc(a,b,e)})),c.suggestionSessionId)},YIc=function(a,b,c){var d=c.item||[];return rvc(qvc(new xL,d.map(function(e){return XIc(a,b,e)})),c.suggestionSessionId)},
XIc=function(a,b,c){var d=c.driveWorkspace,e=c.childItem||[];return ovc(mvc(nvc(lvc(new wL,c.predictionId).setTitle(d&&d.title),d&&d.workspaceToken),e.map(function(f){return ZHc(a,b,f)})),DM(c))},ZIc=function(a){var b=new _.ftc;a.kind&&(a=TIc(a),_.F(b,2,a));b.Dc(1);return b},VIc={active:1,archived:2};
var $Ic=function(a,b,c,d){_.Rmc.call(this,b);this.Cg=a;this.ma=c;this.O=d;this.ha=null;this.ta=new NGc(this.W,b);this.H=new NIc(this.PF);this.wa=new XHc(this.PF,this.H)};_.J($Ic,_.Rmc);var aJc=function(a){a.ha||(a.ha=new qIc(a.W,a.ma));return a.ha};
$Ic.prototype.ka=function(a,b){if(a instanceof _.PI)var c=_.zmc(_.Vmc(a));else{if(a instanceof _.QI)var d=_.EK(this,a,b);else{if(a instanceof _.yhc)var e=bJc(this,a.request,b);else{if(a instanceof _.RI)var f=_.EK(this,a,b);else{if(a instanceof _.TI){if(!b.json)throw _.FK();_.BK(_.LI(_.AK("drive#teamDrive"),_.AK("drive#drive")),b.json);var h=KAc((new JAc).Dc(1),OIc(this.H,b.json))}else{if(a instanceof _.SI)var k=_.EK(this,a,b);else{if(a instanceof _.gK)var l=new qtc;else{if(a instanceof _.VI)var p=
cJc(a,b);else{if(a instanceof _.WI)var q=PHc(void 0,a.Hh());else{if(a instanceof _.XI)var r=new gBc;else{if(a instanceof _.YI)var v=_.zmc(_.Vmc(a));else{if(a instanceof _.ZI)var w=new oM;else{if(a instanceof _.$I)var A=_.zmc(_.Vmc(a));else{if(a instanceof _.aJ)var B=_.zmc(_.Vmc(a));else{if(a instanceof _.oD){var E=new vCc,I=a.getKey();var M=_.F(E,4,I)}else{if(a instanceof _.bJ)var P=cJc(a,b);else{if(a instanceof _.eJ)var T=_.zmc(_.Vmc(a));else{if(a instanceof _.vhc){if(!b.json)throw _.FK();var Y=
new fDc(b.json.exportJob.id)}else{if(a instanceof _.gJ){if(!b.json)throw _.FK();_.BK(_.AK("drive#app"),b.json);var ba=b.json,ja=new XAc,ea=NHc(ba);var xa=_.F(ja,2,ea).Dc(1)}else{if(a instanceof _.hJ)var za=dJc(a,b);else{if(a instanceof _.iJ){if(!b.json)throw _.FK();_.BK(_.AK("drive#permission"),b.json);var Ja=(new oM).Dc(1),hb=_.Cmc(this.PF,b.json);var Sb=_.F(Ja,2,hb)}else{if(a instanceof _.mI)a:{if(!b.json)throw _.FK();if(a instanceof _.mI){var ac=a.jd();if(ac&&_.kJ(ac)){for(var Nc=this.O,wc=this.Cg,
Gb=b.json,De=[],Yd=_.m(Gb.item||[]),Hh=Yd.next();!Hh.done;Hh=Yd.next()){var pd=Hh.value;if(pd.driveItem){var Pb=new _.Coa,vi=_.u(Pb,2,aIc(pd));_.Q(ac,74,!1)?_.u(vi,4,!0):_.u(vi,3,!0);var Zj=ZHc(Nc,wc,pd);var ug=_.F(Zj,100,vi);De.push(ug)}}var xj=(new _.dI).fB(De).$P(Gb.suggestionSessionId);var Kj=_.Vkc(new _.uK,xj);break a}if(ac&&_.lJ(ac)){Kj=bIc(this.O,this.Cg,b.json);break a}if(ac&&_.mJ(ac)){for(var im=this.O,Fi=this.Cg,Kp=b.json,Re=[],wi=_.m(Kp.item||[]),Vk=wi.next();!Vk.done;Vk=wi.next()){var Lp=
Vk.value;if(Lp.driveItem){var ak=ZHc(im,Fi,Lp),Dq=mIc(Lp);var Eq=_.sj(ak,117,Dq);Re.push(Eq)}}var gn=(new _.dI).fB(Re).$P(Kp.suggestionSessionId);Kj=_.Vkc(new _.uK,gn);break a}}_.BK(_.AK("drive#fileList"),b.json);Kj=_.wmc(this.PF,b.json,b.headers)}else{if(a instanceof _.nJ){if(!b.json)throw _.FK();var Hm=WHc(b.json)}else{if(a instanceof _.oJ){if(!b.json)throw _.FK();_.BK(_.AK("drive#appList"),b.json);var zl=b.json,Or=new IL,fj=OHc(zl);var Pr=_.sj(Or,2,fj);var Mp=_.qj(Pr,4,zl.defaultAppIds).Dc(1)}else{if(a instanceof
_.whc){if(!b.json)throw _.FK();var Fq=UHc(b.json)}else{if(a instanceof _.yI)var Qr=eJc(this,b);else{if(a instanceof _.pJ){var Np=b.json;if(!Np)throw _.FK();_.BK(_.AK("drive#permissionList"),Np);var Rr=new kCc,Vn=Isc(this.PF,Np);var sk=_.F(Rr,1,Vn);var tk=_.u(sk,2,lpc(Np))}else{if(a instanceof _.qJ){if(!b.json)throw _.FK();_.BK(_.AK("drive#revisionList"),b.json);for(var Qc=this.PF,hn=b.json,Zs=new Fsc,Gq=[],Sr=hn.items||[],Eu=0;Eu<Sr.length;Eu++){var Tr=_.xmc(Qc,Sr[Eu]);Gq.push(Tr)}var Ql=_.sj(Zs,
2,Gq)}else{if(a instanceof _.rJ)var To=_.EK(this,a,b);else{if(a instanceof _.DI)var Wn=fJc(a,b);else{if(a instanceof _.tJ){if(!b.json)throw _.FK();var Xn=MIc(b.json)}else{if(a instanceof _.Ehc){if(!b.json)throw _.FK();var Nx=uIc(aJc(this),b.json)}else{if(a instanceof _.VF){if(!b.json)throw _.FK();var tw=aJc(this),Op=b.json,Nz=new ZBc,Fu=tIc(tw,Op);var Ur=_.F(Nz,2,Fu).Dc(1)}else{if(a instanceof _.uJ){if(!b.json)throw _.FK();_.BK(_.AK("drive#remainingCount"),b.json);var Vr=b.json,$s=new hBc,Wk=Vr.nextPageToken;
null!=Wk&&_.u($s,2,Number(Wk));_.u($s,1,Number(Vr.remainingCount));var Gi=$s}else{if(a instanceof _.aG){if(!b.json)throw _.FK();_.BK(_.LI(_.AK("drive#teamDrive"),_.AK("drive#drive")),b.json);var jm=(new _.dI).fB([OIc(this.H,b.json)])}else{if(a instanceof _.EJ){if(!b.json)throw _.FK();_.BK(_.LI(_.AK("drive#teamDriveList"),_.AK("drive#driveList")),b.json);var Pg=(new _.dI).fB(PIc(this.H,b.json)),uw=_.Vkc(new _.uK,Pg);var Hi=_.u(uw,3,lpc(b.json))}else{if(a instanceof _.yJ)var Xk=dJc(a,b);else{if(a instanceof
_.zJ)var Gu=bJc(this,a,b);else{if(a instanceof _.wI)var Yk=_.EK(this,a,b);else{if(a instanceof _.AJ)var at=_.EK(this,a,b);else{if(a instanceof _.BJ)var vw=gJc(this,b);else{if(a instanceof _.pD){if(!b.json)throw _.FK();_.BK(_.AK("drive#setting"),b.json);var bt=SIc(b.json),Hu=new vCc;var Wr=_.F(Hu,3,bt);var Pp=bt.getKey();var gv=_.F(Wr,4,Pp)}else{if(a instanceof _.CJ)var hv=cJc(a,b);else{if(a instanceof _.OH){if(!b.json)throw _.FK();_.BK(_.AK("drive#about"),b.json);var iv=QGc(this.ta,b.json)}else{if(a instanceof
_.bG){if(!b.json)throw _.FK();_.BK(_.AK("drive#workspace"),b.json);var ny=TIc(b.json),Tw=new _.lK;Tw.AU().set(ny.getId(),ny);var sN=Tw}else{if(a instanceof _.xhc){if(!b.json)throw _.FK();var zg=b.json,cr;null!==(cr=_.IJ(this.V))&&void 0!==cr&&_.Q(cr,21,!1)&&(VGc.set("HIERARCHY_RECONCILIATION",3),nHc.set("UNMOVABLE_ITEM_REPARENTED",3));var jJ=new ICc;zg.nextPageToken&&_.Jj(jJ,2,zg.nextPageToken);if(zg.activities){var tN=uHc(zg.activities);_.sj(jJ,1,tN)}var uN=jJ}else{if(a instanceof _.zhc)var fS=gJc(this,
b);else{if("undefined"!=typeof _.Dhc&&a instanceof _.Dhc)var oy=eJc(this,b);else{if(a instanceof _.Ahc){if(!b.json)throw _.FK();var gZ=new eDc}else{if(a instanceof _.Bhc){if(!b.json)throw _.FK();var vN=jpc(b.json)}else{if(a instanceof _.nD){if(!b.json)throw _.FK();_.BK(_.AK("drive#settingList"),b.json);for(var hZ=b.json,iZ=new _.$z,gS=[],$C=hZ.items||[],jZ=0;jZ<$C.length;jZ++){var kZ=SIc($C[jZ]);kZ&&gS.push(kZ)}var GF=_.fkb(iZ,gS)}else{if(a instanceof _.bA){if(!b.json)throw _.FK();var LA=YIc(this.O,
this.Cg,b.json).Dc(1)}else{if(a instanceof _.$F){if(!b.json)throw _.FK();var lZ=WIc(this.O,this.Cg,b.json)}else{if(a instanceof _.Jhc){if(!b.json)throw _.FK();_.BK(_.AK("drive#teamDrive"),b.json);var mZ=b.json,c7=mZ.recursiveFolderCount,nZ=mZ.recursiveFileCount,oZ=new qCc;var pZ=_.u(oZ,1,nZ);var d7=_.u(pZ,2,c7)}else{if(a instanceof _.Ihc){if(!b.json)throw _.FK();_.BK(_.LI(_.AK("drive#migrateToDrivePreFlightResponse"),_.AK("drive#migrateToTeamDrivePreFlightResponse")),b.json);var qZ=ppc(b.json)}else{if(a instanceof
_.Lhc){if(!b.json)throw _.FK();_.BK(_.AK("drive#workspaceList"),b.json);var kha=UIc(b.json)}else kha=a instanceof RK?gJc(this,b):null;qZ=kha}d7=qZ}lZ=d7}LA=lZ}GF=LA}vN=GF}gZ=vN}oy=gZ}fS=oy}uN=fS}sN=uN}iv=sN}hv=iv}gv=hv}vw=gv}at=vw}Yk=at}Gu=Yk}Xk=Gu}Hi=Xk}jm=Hi}Gi=jm}Ur=Gi}Nx=Ur}Xn=Nx}Wn=Xn}To=Wn}Ql=To}tk=Ql}Qr=tk}Fq=Qr}Mp=Fq}Hm=Mp}Kj=Hm}Sb=Kj}za=Sb}xa=za}Y=xa}T=Y}P=T}M=P}B=M}A=B}w=A}v=w}r=v}q=r}p=q}l=p}k=l}h=k}f=h}e=f}d=e}c=d}return c};
var cJc=function(a,b){if(!b.json){if(a instanceof _.bJ)return ZIc({});throw _.FK();}_.BK(_.AK("drive#workspace"),b.json);return ZIc(b.json)},gJc=function(a,b){if(!b.json)throw _.FK();_.BK(_.LI(_.AK("drive#teamDrive"),_.AK("drive#drive")),b.json);a=OIc(a.H,b.json);return(new _.GJ).Dc(1).setItem(a)},bJc=function(a,b,c){if(!c.json)throw _.FK();_.BK(_.AK("drive#categoryMetadataList"),c.json);return sIc(aJc(a),b,c.json)},dJc=function(a,b){if(!b.json)throw _.FK();_.BK(_.AK("drive#app"),b.json);return PHc(b.json,
a.Hh())},eJc=function(a,b){if(!b.json)throw _.FK();_.BK(_.LI(_.AK("drive#about"),_.AK("drive#changeList")),b.json);a=a.wa;var c=b.json;b=new Qwc;var d=c.largestChangeId;null!=d&&_.u(b,3,Number(d));if(_.AK("drive#changeList")(c)){d=c.nextPageToken;null!=d&&_.u(b,2,Number(d));d=[];c=c.items||[];for(var e=0;e<c.length;e++){var f=a,h=c[e];var k=new _.pI;k=_.u(k,1,Number(h.id));h.teamDriveId?(_.Ngc(k,h.teamDriveId),_.qI(k,h.teamDriveId)):_.qI(k,h.fileId);h.file?k.setItem(_.umc(f.H,h.file)):h.teamDrive&&
k.setItem(OIc(f.O,h.teamDrive));h.deleted&&!k.getItem()&&_.BI(k);d.push(k)}_.sj(b,4,d)}return b},fJc=function(a,b){var c=new dCc;if(_.se(a,6).length){var d=[];Eoc(_.se(a,6),b.headers).forEach(function(e,f){var h=new _.Rgc;e=_.u(h,1,f).Hb(e);d.push(e)});_.sj(c,1,d)}eCc(c,b.json?JSON.stringify(b.json):b.text);return c};
var iJc=function(a){var b=new _.uo;if(a=a.getState()){var c=[];c.push("state");c.push("=");c.push(hJc[a]);_.dK(b,c.join(" "))}return b.toString()},jJc={},hJc=(jJc[1]="active",jJc[2]="archived",jJc);
var kJc=function(a,b,c,d){_.GK.call(this,b,c,a.EOa,d);this.ka=a;this.ha=new Xvc(_.bK(c),b)};_.J(kJc,_.GK);
kJc.prototype.V=function(a,b,c){var d=this,e,f,h,k,l,p;try{return _.GK.prototype.V.call(this,a,b,c)}catch(xa){}var q=0,r={},v="GET",w={},A=!1,B=!1;if(a instanceof _.QI){v="POST";var E="admin/files/"+a.getId()+"/migrateToTeamDrive";_.N(a,3)&&(w.useDomainAdminAccess=!0);w.fields="kind,id,parentId,teamDriveId";w.fileId=a.getId();_.lj(a,4)&&(w.preFlightValidationToken=_.y(a,4));var I={parentId:a.$j()};r["content-type"]="application/json";A=B=!0;_.KJ(this.H,[],[a.getId(),a.$j()],this.O,r)}else if(a instanceof
_.RI){v="POST";E="files/"+a.qc()+"/authorize";w.appId=a.Hh();_.N(a,3)&&(w.propagate=!0);var M=a.re();B=!0;w.supportsTeamDrives=!0;_.KJ(this.H,[],[a.qc()],this.O,r)}else if(a instanceof RK)E="drives/"+a.getId(),v="PUT",I={removeSecureLinkUpdateForAllFiles:_.Q(a,2,!1)},r["content-type"]="application/json",w.fields=CL(this.H,[],!0),M=a.re(),B=!0;else if(a instanceof _.zhc)v="POST",E="teamdrives/"+a.requestId,w.fields=CL(this.H),I={name:a.request.getTitle()},r["content-type"]="application/json",M=a.request.re(),
B=!0;else if(a instanceof _.VI)v="POST",E="workspaces",w.fields="kind,id,title,createdDate,modifiedDate,state",I=Noc(a),r["content-type"]="application/json",M=a.re(),B=!0;else if(a instanceof _.SI)v="POST",E="files/"+a.getId()+"/copy",w.fields=_.khc({fields:this.dh(),anonymous:_.KI(_.eI(this.H)),jF:_.lI(this.H)}),w.convert=_.Q(a,4,!1),I=Moc(a),r["content-type"]="application/json",M=a.re(),a=_.se(a,3).concat([a.getId()]),_.KJ(this.H,[],a,this.O,r),B=!0,w.supportsTeamDrives=!0,_.Q(this.H,3,!1)&&(w.enforceSingleParent=
!0);else if(a instanceof _.WI)v="DELETE",E="apps/"+a.Hh(),w.appId=a.Hh(),w.deleteAppData=!!_.N(a,2),M=a.re(),B=!0;else if(a instanceof _.XI)v="DELETE",E="backups/"+a.getId(),q=9;else if(a instanceof _.YI)v="DELETE",E="files/"+a.getId(),M=a.re(),B=!0,w.supportsTeamDrives=!0,_.Q(this.H,3,!1)&&(w.enforceSingleParent=!0),_.KJ(this.H,[],[a.getId()],this.O,r);else if(a instanceof _.ZI)v="DELETE",E="files/"+a.qc()+"/permissions/"+_.y(a,2),M=a.re(),B=!0,w.supportsTeamDrives=!0;else if(a instanceof _.$I)v=
"DELETE",E="files/"+a.qc()+"/revisions/"+_.y(a,2),M=a.re(),B=!0,_.KJ(this.H,[],[a.qc()],this.O,r);else if(a instanceof _.aJ)v="DELETE",E="teamdrives/"+a.getId(),M=a.re(),B=!0;else if(a instanceof _.oD)v="DELETE",M=a.getKey(),E="settings/"+_.y(M,2),_.Wo(M)&&(w.namespace=vpc[_.Wo(M)]),M=a.re(),B=!0;else if(a instanceof _.bJ)v="DELETE",E="workspaces/"+a.getId(),M=a.re(),B=!0;else if(a instanceof _.eJ)v="DELETE",E="files/trash",M=a.jd().re(),B=!0,_.Q(this.H,3,!1)&&(w.enforceSingleParent=!0);else if(a instanceof
_.gJ)E="apps/"+a.Hh(),M=a.re(),B=!0,w.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 _.nJ)E="backups/"+a.getId()+"/items",q=9,w.languageCode=ZK(_.eI(this.H));else if(a instanceof _.hJ)v="POST",E="apps",w.appId=a.Hh(),M=a.re(),B=!0;else if(a instanceof _.iJ)v="POST",E="files/"+a.qc()+"/permissions",w.fields=_.lI(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",w.emailMessage=
_.y(a,5)||"",w.sendNotificationEmail=!_.Q(a,6,!1),M={},B=a.Af(),1==B?M.role="owner":3==B?M.role="writer":4==B?(M.role="reader",M.additionalRoles=["commenter"]):2==B&&(M.role="reader"),B=a.getType(),1==B?M.type="user":2==B?M.type="group":3==B?M.type="domain":4==B?M.type="anyone":5==B&&(M.type="audience"),a.Wa()&&(M.value=a.Wa()),M.withLink=!_.Q(a,8,!1),I=M,r["content-type"]="application/json",M=a.re(),B=!0,w.supportsTeamDrives=!0;else if(a instanceof _.vhc)q=8,v="POST",E="/v1/exports",r["content-type"]=
"application/json",I=_.se(a,1).map(function(xa){if(_.Q(d.H,89,!1)){var za=_.vkc(d.O,xa);if(null!==za)return{id:xa,resource_key:{resource_key:za}}}return{id:xa}}),I={archiveFormat:null,archivePrefix:_.y(a,2),conversions:null,items:I,locale:null};else if(a instanceof _.mI||a instanceof _.gK||a instanceof _.bA||a instanceof _.$F)if(b=a instanceof _.mI?a.jd():a,_.JJ(b)){q=10;v="POST";E="/v1/items";r["content-type"]="application/json";var P=9==_.WJ(this.H)?"WEB_MOBILE":"WEB_DESKTOP",T={};I={};T.applicationType=
ewc(this.H);T.platformType=P;T.languageCode=ZK(_.eI(this.H));T.timeZone=(new _.lt).gaa();T.requestType="LIVE_REQUEST";a instanceof _.mI&&(P=a.getOptions())&&_.Q(P,10,!1)&&(T.requestType="BACKGROUND_REQUEST");if(b instanceof _.Df)if(_.kJ(b)){if(bwc(this.ha)){T.scenarioType="ONE_PICK";if(a=null===(f=null===(e=_.x(b,grc,75))||void 0===e?void 0:_.x(e,hrc,1))||void 0===f?void 0:_.y(f,1))T.clientTags=T.clientTags||[],T.clientTags.push({name:a});this.Xf.O(106026)}else _.Q(b,74,!1)?T.scenarioType="QUICK_ACCESS_FOR_SHARED_FILES":
T.scenarioType="QUICK_ACCESS";2==_.TJ(b)&&(_.se(b,33),bwc(this.ha)||(T.scenarioType="QUICK_ACCESS_FOR_SHARED_DRIVE"),I.contextFeature=[{type:"DRIVE_TEAM_DRIVE_ROOT_ID",stringValue:_.se(b,33)[0]}]);_.nl(b).length&&(I.itemType=dwc(b))}else _.lJ(b)?T.scenarioType="DRIVE_PEOPLE_WITH_ACTIONS":_.mJ(b)&&(T.scenarioType="DRIVE_PRIORITY");else b instanceof _.gK?(E="/v1/userfeedback",I.userFeedback=_.yb(b,_.ntc,1).map(function(xa){var za=_.x(xa,_.jL,2),Ja={},hb={};hb.feedbackType=[_.Wfc[za.getType()]];Ja.item=
hb;Ja.clientInfo=T;switch(xa.getFeature()){case 1:T.scenarioType="DRIVE_PRIORITY";hb.itemId=za.qc();break;case 3:T.scenarioType="QUICK_ACCESS";hb.itemId=za.qc();break;case 4:T.scenarioType="QUICK_ACCESS_FOR_SHARED_FILES";hb.itemId=za.qc();break;case 2:T.scenarioType="DRIVE_WORKSPACES",hb.itemId=za.qc(),hb.childItem=_.yb(za,_.jL,3).map(function(Sb){var ac;return{itemId:null!==(ac=Sb.qc())&&void 0!==ac?ac:void 0}})}return Ja})):b instanceof _.bA?T.scenarioType="DRIVE_WORKSPACES":b instanceof _.$F?(T.scenarioType=
"ITEMS_FOR_DRIVE_WORKSPACE",I.contextFeature=[{type:"GENERIC_TITLE",stringValue:b.getTitle()||""},{type:"DRIVE_WORKSPACE_ID",stringValue:b.Yq()||""},{type:"DRIVE_EMPTY_WORKSPACE",boolValue:null!==(h=_.N(b,5))&&void 0!==h?h:void 0}]):_.cnc(a);b instanceof _.gK||(I.maxSuggestions=b.vi(),I.clientInfo=T)}else{M=b.re();B=!0;b.getId();E="files";w.q=_.Hjc(b,null===(k=_.IJ(this.H))||void 0===k?void 0:_.Q(k,23,!1));P=[];var Y;(Y=_.IJ(this.H))&&_.Q(Y,4,!1)?(Y=_.Aa(this.dh(),this.dh(b.H())),_.Ga(Y)):Y=_.Ba(this.dh());
var ba=void 0,ja=!1;0<_.yb(b,_.hl,5).length&&(ba=_.y(this.H.Sf(),50),ja=!0);w.fields=Dnc({fields:Y,anonymous:_.KI(_.eI(this.H)),h8:ba||void 0,jF:_.lI(this.H),nDb:ja});w.appDataFilter="NO_APP_DATA";0<_.yb(b,_.SJ,25).length&&(w.sources=_.zjc(b));0<b.gA().length&&(w.spaces=_.Ajc(b));a.Zn()&&(w.pageToken=a.Zn());(a=a.getOptions())&&_.Dj(a,1,1E3)&&(w.maxResults=_.Dj(a,1,1E3));_.Q(b,36,!1)&&(w.includeUnsubscribed=!0);_.y(b,43)&&(w.rawUserQuery=_.y(b,43));w.supportsTeamDrives=!0;w.includeItemsFromAllDrives=
_.Q(b,66,!0);0<_.se(b,33).length&&2==_.TJ(b)&&(a=_.se(b,33)[0],w.teamDriveId=a,P.push(a));w.corpora=_.wjc[_.TJ(b)];_.N(b,18)&&(delete w.corpora,w.corpus="DOMAIN");a=_.ol(b);Y=_.yb(b,_.cl,35);ba=_.yb(b,_.cl,38);P=P.concat(a.filter(function(xa){return!_.Q(xa,2,!1)}).map(function(xa){return xa.Wa()})).concat(Y.map(function(xa){return xa.Wa()})).concat(ba.map(function(xa){return xa.Wa()}));_.KJ(this.H,_.yb(b,_.jl,63),P,this.O,r);eoc(w,b.Lc());_.Q(this.H,14,!1)&&(w.useLegacyDomainPermissionBehavior=!1);
_.x(b,_.ppa,64)&&(a=irc(_.x(b,_.ppa,64)),a=_.sb(a,4),w.searchSessionData=a)}else if(a instanceof _.oJ){E="apps";switch(a.getType()){case 1:w.fields=lJc;break;case 2:w.fields=mJc;break;case 4:w.fields=nJc;break;case 3:q=5,E="apps",w.fields="items(icons[category='application'],icons(size,iconUrl),id,name,openUrlTemplate,primaryFileExtensions,primaryMimeTypes,productId,rankingInfo,secondaryFileExtensions,secondaryMimeTypes,kind),kind",w.appQueryScope="all_webstore",b.Iu=!0}w.languageCode=ZK(_.eI(this.H));
0<_.se(a,3).length&&(w.appFilterExtensions=_.se(a,3).join(","));0<_.se(a,4).length&&(w.appFilterMimeTypes=_.se(a,4).join(","));M=a.re();B=!0}else if(a instanceof _.whc)E="backups",q=9,w.languageCode=ZK(_.eI(this.H));else if(a instanceof _.yI)E="changes",w.includeDeleted=_.Q(a,3,!0),w.includeSubscribed=_.Q(a,4,!0),w.maxResults=a.GR(),w.startChangeId=_.y(a,1),w.fields=Cnc({fields:this.dh(),h8:CL(this.H,_.se(a,5)),anonymous:_.KI(_.eI(this.H)),jF:_.lI(this.H)}),w.appDataFilter="NO_APP_DATA",a.uc()||(w.filters=
"DRIVE_DATASERVICE"),M=_.se(this.H.Sf(),31),M.length&&(w.spaces=_.Bf(M,function(xa){return _.Ufc[xa]}).join(",")),w.supportsTeamDrives=!0,w.includeCorpusRemovals=!0,w.includeItemsFromAllDrives=!0,a.uc()&&(w.teamDriveId=a.uc()),M=a.re(),B=!0;else if(a instanceof _.pJ)b=a.jd(),E="files/"+b.getId()+"/permissions",w.fields=_.lI(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()&&(w.pageToken=a.Zn()),_.y(a,1)&&(w.maxResults=_.y(a,1)),M=b.re(),B=!0,w.supportsTeamDrives=!0,_.Q(this.H,14,!1)&&(w.useLegacyDomainPermissionBehavior=!1),_.KJ(this.H,[],[b.getId()],this.O,r);else if(a instanceof _.qJ)w.fields=_.lI(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))",
w.maxResults=a.vi(),E="files/"+a.qc()+"/revisions",M=a.re(),B=!0,_.KJ(this.H,[],[a.qc()],this.O,r);else if(a instanceof _.rJ)v="POST",E="files/"+(_.y(a,1)||"")+"/migrateToDrive",_.N(a,3)&&(w.useDomainAdminAccess=!0),w.fields=_.khc({fields:this.dh(),anonymous:_.KI(_.eI(this.H)),jF:_.lI(this.H)}),w.fileId=null!==(l=_.y(a,1))&&void 0!==l?l:void 0,_.lj(a,4)&&(w.preFlightValidationToken=_.y(a,4)),I=Loc(a),r["content-type"]="application/json",A=B=!0,_.KJ(this.H,[],[_.y(a,1)||"",_.y(a,2)||""],this.O,r);
else if(a instanceof _.aG)a.V(),E="teamdrives/"+a.V()[0],w.fields=CL(this.H,a.H()),M=a.re(),B=!0;else if(a instanceof _.Ihc)v="POST",E="admin/files/migrateToTeamDrivePreFlight",_.N(a.request,3)&&(w.useDomainAdminAccess=!0),I=Ooc(a),r["content-type"]="application/json",B=A=!0,_.KJ(this.H,[],_.se(a.request,1),this.O,r);else if(a instanceof _.EJ){M=a.jd();E="teamdrives";w.fields=Nvc(this.H,M.H());w.q=Ovc(M);a.Zn()&&(w.pageToken=a.Zn());if(M=(M=a.getOptions())&&_.Dj(M,1,1E3))w.maxResults=M;M=a.jd().re();
B=!0}else if(a instanceof _.Jhc)E="teamdrives/"+a.uc(),w.fields="kind,id,recursiveFileCount,recursiveFolderCount",B=A=!0;else if(a instanceof _.yJ)v="PUT",E="apps/"+a.Hh(),w.appId=a.Hh(),B={},B.useByDefault=null!==(p=_.N(a,2))&&void 0!==p?p:void 0,_.N(a,3)&&(B.hasAppData=!1),r["content-type"]="application/json",M=a.re(),I=B,B=!0;else if(a instanceof _.wI)v="PUT",E="files/"+a.getId(),w.fields=_.khc({fields:this.dh(),anonymous:_.KI(_.eI(this.H)),jF:_.lI(this.H)}),w.modifiedDateBehavior="DRIVE_UI",w.updateViewedDate=
!!_.N(a,15),w.fileId=a.getId(),_.se(a,9).length&&(w.addParents=_.se(a,9).join(",")),_.se(a,10).length&&(w.removeParents=_.se(a,10).join(",")),_.se(a,31).length&&(w.addWorkspaces=_.se(a,31).join(",")),_.se(a,32).length&&(w.removeWorkspaces=_.se(a,32).join(",")),null!=_.N(a,24)&&(w.confirmed=_.N(a,24)),w.languageCode=ZK(_.eI(this.H)),I=Poc(a),r["content-type"]="application/json",M=a.re(),B=!0,w.supportsTeamDrives=!0,this.W(a.getId(),w),_.N(a,36)?w.bypassMultiparentingCheck=!0:_.Q(this.H,3,!1)&&(w.enforceSingleParent=
!0),b=_.se(a,9).concat(_.se(a,10)),b.push(a.getId()),_.KJ(this.H,_.yb(a,_.jl,38),b,this.O,r);else if(a instanceof _.AJ)v="PUT",E="files/"+a.qc()+"/revisions/"+_.y(a,2),I=Qoc(a),r["content-type"]="application/json",M=a.re(),_.KJ(this.H,[],[a.qc()],this.O,r);else if(a instanceof _.BJ)E="teamdrives/"+a.getId(),null!=_.N(a,15)?(v="POST",E+="/"+(_.N(a,15)?"hide":"unhide")):(v="PUT",I=Soc(a),r["content-type"]="application/json"),w.fields=CL(this.H),M=a.re(),B=!0;else if(a instanceof _.CJ)v="PUT",E="workspaces/"+
a.getId(),w.fields="kind,id,title,createdDate,modifiedDate,state",I=Toc(a),r["content-type"]="application/json",M=a.re(),B=!0;else if(a instanceof _.pD){v="PUT";M=_.x(a,_.Vo,1);B=M.getKey();E="settings/"+_.y(B,2);if(B=_.Wo(B))w.namespace=vpc[B];I=wpc(M);r["content-type"]="application/json";M=a.re();B=!0}else if(a instanceof _.OH)E="about",w.fields=_.lI(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",w.fields=zpc(w.fields,this.H),M=a.re(),B=!0;else if(a instanceof _.DI){q=11;v=a.aA();E=a.getUrl();var ea=_.y(a,5)||"";_.yb(a,_.Rgc,2).forEach(function(xa){r[xa.getKey()]=
xa.Wa()});P=_.m(_.yb(a,_.Rgc,4));for(Y=P.next();!Y.done;Y=P.next())Y=Y.value,w[Y.getKey()]=Y.Wa();_.N(a,7)&&(b.vNb=!0);_.N(a,8)&&(b.Iu=!0);_.N(a,9)&&(b.vGa=!0)}else if(a instanceof _.yhc)b=a.request.qc(),E="files/"+b+"/listCategoryMetadata",M=a.request.re(),a.pageToken&&(w.pageToken=a.pageToken),a.request.vi()&&(w.maxResults=a.request.vi()),w.fields="kind,nextPageToken,categoryMetadata",_.KJ(this.H,[],[b],this.O,r);else if(a instanceof _.zJ)r["content-type"]="application/json",v="POST",b=a.qc(),E=
"files/"+b+"/updateCategoryMetadata",M=a.re(),I={categoryMetadata:a.qW().map(function(xa){var za=_.yb(xa,_.TF,2).map(function(hb){return{id:hb.getId(),userId:hb.Du(),setBooleanValue:_.N(hb,3),setTextValue:_.y(hb,4),setTextValues:_.se(hb,6),addTextValues:_.se(hb,5),setLongTextValue:_.y(hb,7),setSelectionValue:_.y(hb,8),setSelectionValues:_.se(hb,10),addSelectionValues:_.se(hb,9),setIntegerValue:_.y(hb,11),setIntegerValues:_.se(hb,13),addIntegerValues:_.se(hb,12),setUserValue:_.y(hb,14),setUserValues:_.se(hb,
16),addUserValues:_.se(hb,15),setDateStringValue:_.y(hb,17)}}),Ja={categoryName:xa.Fm()};za.length?Ja.categoryAttributeValueDeltas=za:_.se(xa,4).length?Ja.revertAttributeIds=_.se(xa,4):_.N(xa,3)&&(Ja.removeCategory=_.N(xa,3));return Ja})},_.KJ(this.H,[],[b],this.O,r);else if(a instanceof _.tJ)q=13,E=_.KI(_.eI(this.H))?"/v2/people/public":"/v2/people",r["content-type"]="application/json",w.person_id=_.se(a,1),w["request_mask.include_container"]=["PROFILE","DOMAIN_PROFILE"],w["request_mask.include_field.paths"]=
["person.metadata.best_display_name","person.photo","person.email"],w["merged_person_source_options.included_profile_states"]=["DASHER_ADMIN_DISABLED"],_.KI(_.eI(this.H))||(w["core_id_params.enable_private_names"]=!0);else if(a instanceof _.Ehc)q=12,E="/v1/categories/-/published",r["content-type"]="application/json",a.pageToken&&(w.pageToken=a.pageToken),a.request.vi()&&(w.maxResults=a.request.vi()),a.request.getCustomer()&&(w.customer=a.request.getCustomer()),w.$outputDefaults=!0,w.languageCode=
ZK(_.eI(this.H));else if(a instanceof _.VF)q=12,E="/v1/"+a.getName(),r["content-type"]="application/json",w.$outputDefaults=!0,w.languageCode=ZK(_.eI(this.H));else if(a instanceof _.TI)r["content-type"]="application/json",v="POST",E="drives/"+a.uc()+"/changeCategoryReferences",M=a.re(),B=!0,w.fields=CL(this.H,[157],!0),I={},b=_.yb(a,_.Gk,2),b.length&&(I.addCategoryReferences=b.map(function(xa){return{category:xa.Fm()}})),a=_.yb(a,_.Gk,3),a.length&&(I.removeCategoryReferences=a.map(function(xa){return xa.Fm()}));
else if(a instanceof _.bG)_.se(a,1),E="workspaces/"+_.se(a,1)[0],w.fields="kind,id,title,createdDate,modifiedDate,state",M=a.re(),B=!0;else if(a instanceof _.xhc){if(q=7,v="POST",E="/v2/activity:query",r["content-type"]="application/json",I={},I.pageSize=a.pageSize,a.pageToken&&(I.pageToken=a.pageToken),b="items/"+a.request.getId(),_.Q(a.request,2,!1)?I.ancestorName=b:I.itemName=b,I.consolidationStrategy={legacy:{}},a=_.IJ(this.H),(null===a||void 0===a?0:_.Q(a,13,!1))||(null===a||void 0===a?0:_.Q(a,
21,!1)))b=[],(null===a||void 0===a?0:_.Q(a,13,!1))&&b.push("MULTIPARENTING_MIGRATION"),(null===a||void 0===a?0:_.Q(a,21,!1))&&b.push("HIERARCHY_RECONCILIATION"),I.filter="actor.type_case:(USER IMPERSONATION ADMINISTRATOR SYSTEM) actor.system.type:("+(b.join(" ")+")")}else a instanceof _.Ahc?(q=8,v="POST",E="/v1/exports/"+a.H+":cancel"):a instanceof _.Bhc?(q=8,E="/v1/exports/"+a.H):"undefined"!=typeof _.Dhc&&a instanceof _.Dhc?(E="changes",w.fields="kind,largestChangeId",w.supportsTeamDrives=!0,w.includeItemsFromAllDrives=
!0,a.teamDriveId&&(w.teamDriveId=a.teamDriveId),M=a.H,B=!0):a instanceof _.nD?(E="settings",M=_.se(a,3),w.namespace=xpc(M),M=a.re(),B=!0):a instanceof _.Lhc?(E="workspaces",w.fields="kind,nextPageToken,items(kind,id,title,createdDate,modifiedDate,state)",a.pageToken&&(w.pageToken=a.pageToken),a.request.vi()&&(w.maxResults=a.request.vi()),w.q=iJc(a.request),(M=a.request.Kx())&&1==M.getType()&&(w.orderBy="title"),M=a.request.re(),B=!0):a instanceof _.uJ?(E="changes/getRemainingCount",w.pageToken=_.y(a,
2),_.lj(a,3)&&(w.supportsTeamDrives=!0,w.includeItemsFromAllDrives=!0,w.teamDriveId=a.uc()),M=a.re()):a instanceof _.PI?(r["content-type"]="application/json",v="POST",E="files/"+a.qc()+"/sendAccessRequest",I={},A=!0):_.cnc(a);B&&_.dnc(c,w);0!=q||A||M&&_.y(M,1)||_.rK(this.Xf,74438989);return _.enc(this,q,E,w,r,v,M,I,ea)};kJc.prototype.W=function(a,b){a=this.ka.Yl.H(a);b.expectedParentIds=a?a.vk().join(","):[]};
var lJc=ypc("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"),mJc=
ypc("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"),
nJc=ypc("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 oJc=function(a,b,c,d,e,f,h,k,l,p,q,r,v,w,A,B,E,I,M,P,T,Y,ba){this.zpa=_.Yh();this.mga=new _.Ekc;var ja=new _.Xkc(this.vK.bind(this),function(){return T("w8KrJc")}),ea=new LGc(b.Yl),xa=new CGc(ja);c=new tGc(b,f,new nGc(d,e,c),h,this.zpa.promise,k,l,c,T);d=new KGc(b,p,q,r,v,d,e,B,k);this.O=new _.Hkc(a,w);w=new kJc(b,a,k,Y);this.Ita=new $Ic(k,a,A,B);this.H=IAc(a,new _.mmc(this.O,this.mga,w,this.Ita,E,I,M),I,A,P,b.Yl,this.mga,this.zpa.promise,M||void 0);this.zpa.resolve(ba?ba:new _.Klc(new MGc,ea,
xa,this.H,ja,c,d,a))};oJc.prototype.vK=function(){return _.Wa(this.H,function(a){return a.vK()})};var kDc=function(a){var b=new Map,c=Date.now();_.Ta(a.H,function(d,e){d=Hsc(d);d.length&&b.set(e,d.map(function(f){return f?c-f:null}))});return b};
var pJc=function(a,b){var c=this;this.context=a;this.Cg=b;this.ka=null;this.sS=0;this.ma=this.active=!1;this.H=this.wa=null;this.W={};this.Ia=this.Ga=!1;this.Xf=a.lk();this.ha=_.Yh();this.O=a.Xc;this.La=_.IJ(this.O)||new _.Bic;b=_.$K(this.O);this.Ba=new _.wkc(_.Dj(b,2,37500),_.Dj(b,3,6E5));this.ta=a.gR;_.Ta(twc,function(d){c.W[d]=[]});this.V=a.Cf.Rt;NL(a.Oj,["hVFf7","T8oKm","BNEDtc"],function(){c.log("Initializing: loaded from local dump");c.initialize()});NL(a.Oj,["hVFf7","T8oKm","mrK8ic"],function(){c.log("Initializing: loaded from sdk backfill");
c.initialize()});NL(a.Oj,["mrK8ic","BNEDtc"],function(){c.log("Updating: sdk backfill complete");c.CL().then(null,_.hg)})};_.g=pJc.prototype;_.g.initialize=function(){var a=this;this.Ga||(this.Ga=!0,xM(this.context).addCallback(function(b){a.ta.initialize().dg(function(){a.ka=b;a.setActive(!0)},function(c){c&&ksc(a.context.Be(),"drive.ds.sync.storage.LiveDumpUpdater","Error initializing dump storage",_.NI(c));a.log("Error initializing dump storage");a.YS()})}))};
_.g.isInitialized=function(){return!!this.ka||this.ma};_.g.koa=function(a){this.active&&(this.sS+=a,this.sS>_.Dj(_.$K(this.O),1,500)&&this.update(3))};_.g.setActive=function(a){if(this.isInitialized()&&this.active!==a){var b=this.context;a&&(b.RR().vK()||0<b.Cf.SI.Poa||b.Jj().Le()||b.xk().Le())||((this.active=a)?(this.ha.resolve(),this.H||this.CL().then(null,_.hg)):(this.ha=_.Yh(),_.aa.clearTimeout(this.wa)))}};_.g.YS=function(){this.ma=!0};_.g.dZa=function(){return this.H?this.H.promise:_.Vh()};
_.g.CL=function(){var a=this;if(this.H)return this.H.promise;this.H=_.Yh();_.Zh(this.H.promise,function(){a.H=null});var b=this.Xf.H(106021)||void 0;this.ha.promise.then(function(){return CAc(a.context.UD)}).then(function(c){var d=!c;return a.ma?d:_.Xh([qJc(a,3,d,void 0,void 0,b),qJc(a,0,d,void 0,!0,b),qJc(a,1,d,void 0,!0,b),qJc(a,5,d,void 0,!0,b),qJc(a,6,d,void 0,!0,b)]).then(function(){return d},function(e){e=new _.Gc("Failed to update dump",void 0,_.NI(e));return _.Wh(e)})},function(){return _.Wh(Error("Kg"))}).then(function(c){a.H.resolve(c);
b&&(c=ssc(b),_.u(c,2,!0),b.Cj())},function(c){a.H.reject(c);b&&(c=ssc(b),_.u(c,2,!1),b.Cj())});return this.H.promise};_.g.update=function(a,b){var c=this,d=new _.$h,e=this.Xf.H(106021)||void 0;e&&(Yrc(ssc(e),_.iK(_.ogc,a)),d.then(function(){var f=ssc(e);_.u(f,2,!0);e.Cj()},function(){var f=ssc(e);_.u(f,2,!1);e.Cj()}));this.ha.promise.then(function(){return CAc(c.context.UD)}).then(function(f){f=!f;c.ma?d.callback():_.ci(qJc(c,a,f,b,void 0,e),d)});return d};
var qJc=function(a,b,c,d,e,f){var h=_.ka(a.W[b]);if(h){if(h.encrypt===c&&1<a.W[b].length)return h.Ee.ln();var k=new _.$h;_.bi(h.Ee,function(){_.ci(a.lw(b,c,d,e,f),k)})}else k=a.lw(b,c,d,e,f);var l={encrypt:c,Ee:k};a.W[b].push(l);_.bi(k,function(){_.ya(a.W[b],function(p){return l===p})});k.yg(function(p){a.ta.O.Ff()?a.YS():p instanceof _.Gc&&(p=p.O||null,p instanceof _.TH&&"InvalidStateError"==p.getName()&&p.message&&-1<p.message.indexOf("The database connection is closing.")&&a.YS());return null});
return k};
pJc.prototype.lw=function(a,b,c,d,e){var f=this,h=new _.$h;this.ha.promise.then(function(){if(3===a)_.ci(rJc(f,c||!1,b,e),h);else{switch(a){case 0:var k=uDc(f.context.DQ);break;case 1:k=f.context.J_.ks();break;case 5:k=sJc(f.context.GE);break;case 6:k=lyc(f.context.Cf.Jq);break;default:h.Gd("Invalid data type to write to storage.");return}if(k){var l=_.yb(_.$K(f.O),YK,11)[0].getKey();!l&&b?(f.log("Skipping dump update, encrypted and no key"),h.callback()):zzc(f.ta,b?l:null,[k],e).then(function(){return void h.callback()},function(p){return void h.Gd(p)})}else d?
(f.log("Skipping dump update: "+a),h.callback()):h.Gd("Failed to get data to write to dump.")}});return h};
var rJc=function(a,b,c,d){_.VJ(a.O)||(_.aa.clearTimeout(a.wa),a.wa=_.aa.setTimeout(function(){_.YH(a.Ba);a.update(3,!0)},a.Ba.Wa()));if(b&&0===a.sS)return _.ei();a.sS=0;b=_.yb(_.$K(a.O),YK,11)[0].getKey();if(!b&&c)return a.log("Skipping dump update, encrypted and no key"),_.ei();for(var e=[],f=_.m(tJc(a)),h=f.next();!h.done;h=f.next())h=uJc(a,h.value),h.length&&e.push(zzc(a.ta,c?b:null,h,d));var k=new _.$h;Promise.all(e).then(function(){a.Ia&&a.context.UD.set(AAc,!0);k.callback()},function(l){return void k.Gd(l)});
return k},tJc=function(a){var b,c,d,e=Object.values(ivc).filter(function(f){return 0<f&&!vJc.includes(f)});(null===(b=_.IJ(a.context.Xc))||void 0===b?0:_.Q(b,17,!1))?(null===(c=a.V.H)||void 0===c?0:c.LD)||null===(d=a.V.O)||void 0===d||!d.LD?e.push(2):e.push(5):e.push(2);return e},uJc=function(a,b){switch(b){case 1:return[wJc(a)];case 2:return b=a.V.H,a=hvc(xJc(a,b),2),b&&fvc(a,b.bO()),[a];case 5:return b=a.V.O,a=hvc(xJc(a,b),5),b&&(fvc(a,b.bO()),b=txc(b),_.qj(a,14,b)),[a];case 3:return yJc(a);case 4:return zJc(a);
default:throw new _.Gc("Unsupported CacheType");}},wJc=function(a){for(var b={},c=[],d=Cxc(a.V,!0),e=!0,f=0;f<d.length;f++){var h=d[f],k=h.By(),l=AJc(a,Goc(k));k=l.length;var p=0<k?l[k-1]:null;_.Ma(l,function(q){b[q.getId()]=q});if(0<k||h.H)l=(new uL).Ug(h.jd()),h.H||(_.u(l,2,k),_.F(l,3,p),e=!1),c.push(l)}d=_.Ya(b);a.log("Exporting "+d.length+" initial dump items.");return fvc(hvc(evc(cvc(dvc(gvc((new vL).kz(a.context.Bu()),_.bK(a.Cg)),a.ka.iH(null)),BJc(d)),c),1),!e)},xJc=function(a,b){var c=b?b.By():
[];c=AJc(a,_.Ya(Hoc(c)));a.log("Exporting "+c.length+" secondary dump items.");c.length>_.Dj(_.$K(a.O),5,2E4)&&(b&&QL(b,!1),c=[]);c=cvc(new vL,BJc(c));var d=new Yoc;(a=a.V.H)&&a.LD&&(a=a.By(),_.u(d,3,a.length));a=_.F(c,11,d);b&&fvc(a,b.bO());return a},yJc=function(a){var b=[],c=a.ka;a.V.MW().forEach(function(d){var e=c.iH(d.uc());if(e){var f=AJc(a,Goc(d.By()));a.log("Exporting "+f.length+" TD dump items for: "+d.uc());e=fvc(hvc(dvc(cvc(new vL,BJc(f)),e),3),d.bO());d=(new uL).Ug(d.jd());evc(e,[d]);
b.push(e)}});return b},zJc=function(a){var b={},c=[];a.context.Cf.MW().forEach(function(d){1===d.lW()&&null==_.N(d.jd(),6)&&(Goc(d.By()).forEach(function(e){b[e.getId()]=e}),d=avc((new uL).Ug(new _.Df),d.jd()),c.push(d))});return[fvc(hvc(evc(cvc(new vL,BJc(Object.values(b))),c),4),!1)]},AJc=function(a,b){b=doc(b);_.N(a.O,67)&&(b=CJc(b));_.lI(a.O)&&(_.Q(a.La,9,!1)?oyc(a.context.Cf.Jq,b)&&(_.rK(a.Xf,179490965),a.log("b/179490965 Unexpected people data when writing to disk cache.","warning"),b=myc(a.context.Cf.Jq,
b)):b=myc(a.context.Cf.Jq,b));return b.filter(function(c){return 4!==c.Jv()})},CJc=function(a){var b=[];a=_.m(a);for(var c=a.next();!c.done;c=a.next())c=c.value,Unc(c)?(c=c.clone(),Enc(c,Tnc),b.push(c)):b.push(c);return b},BJc=function(a){return a.map(function(b){return b.clone()})};pJc.prototype.log=function(a,b){this.context.Be().log("drive.ds.sync.storage.LiveDumpUpdater",a,void 0===b?"info":b)};pJc.prototype.EFa=function(){this.Ia=!0};var vJc=[2,5];
var DJc=function(){};_.g=DJc.prototype;_.g.setActive=function(){};_.g.YS=function(){};_.g.update=function(){return _.ei()};_.g.dZa=function(){return _.Vh()};_.g.CL=function(){return _.Vh()};_.g.koa=function(){};_.g.EFa=function(){};
var VK=function(a,b,c,d){_.yi.call(this);var e=this;this.Aa=a;this.Mw=c;this.rootId=null;this.Ga=!0;this.ha=null;this.ma=[];this.wa=d||new _.hjc;this.Xc=b.clone();(a=_.IJ(this.Xc))&&_.Q(a,1,!1)&&_.fI(this.Xc,28);this.Cg=new _.vjc(this.Xc);this.ym=new Xvc(_.bK(this.Cg),this.Xc);EJc(this);this.pY=new _.en;this.ob=_.aa.setTimeout(function(){e.Be().info("drive.ds.sync.ThinContext","Page stable timed out.");e.pY.resolve();e.lk().O(106020)},1E4);this.I_=new _.$h;this.Ba=new _.Yjc(_.XJ(this.Xc),_.Q(this.Xc.Sf(),
52,!1));this.connectionState=new _.Rjc(_.XJ(this.Xc)?3:1,!_.Q(this.Xc.Sf(),52,!1));this.Xf=_.nkc(this.Xc,this.Ba,this.connectionState,this.wa,this.pY.promise,this.Mw);this.Jta=new Iwc(this.Xf);this.KQ=new _.$h;this.log("Enabled experiments: "+this.lk().W.W);FJc(this)};_.J(VK,_.yi);VK.prototype.getEnvironment=function(){return this.Mw};VK.prototype.QS=function(){this.Be().info("drive.ds.sync.ThinContext","Notified of page stable.");_.aa.clearTimeout(this.ob);this.pY.resolve()};
var FJc=function(a){var b=function(){a.Xu().then(null,_.hg)},c=a.Aa;(c=c&&_.Cc(c,_.Il))?_.ri(c,"w",b):_.wgc()||_.ri(_.aa,"unload",b)};VK.prototype.Xu=function(){this.Xf.O(106005);wsc(this.Xf);var a=this.ma.map(function(b){return b()});_.ra(this.ma);return Promise.all(a).then()};var GJc=function(a,b){a.ma.push(b)};_.g=VK.prototype;_.g.Be=function(){return this.wa};_.g.kz=function(a,b){"string"===typeof a&&null===this.rootId&&(this.rootId=a,this.I_.callback(a),a.length&&this.U6a(a,b||null))};
_.g.U6a=function(){};_.g.Bu=function(){return this.rootId};_.g.lk=function(){return this.Xf};var HJc=function(a){if(!a.ha)throw Error("Lg");return a.ha},IJc=function(a,b){a.ha=b};VK.prototype.OB=function(){return this.Ga||this.connectionState.isConnected()};VK.prototype.Jj=function(){return this.Ba};VK.prototype.xk=function(){return this.connectionState};VK.prototype.PQb=function(a){this.KQ.callback(a)};
var EJc=function(a){var b=a.Xc.Sf();0===_.se(b,30).length&&(a.log("No user pref namespaces provided, user prefs disabled."),_.u(b,19,3));if(!_.z(b,37,""))throw Error("Mg");_.y(b,57)||(a.log("No root URI provided; using prod default."),_.u(b,57,"https://clients6.google.com"));if(_.Q(_.$K(a.Xc),9,!1))if(b=_.yb(_.$K(a.Xc),YK,11),0<b.length){if(!_.y(b[0],1)||!b[0].getKey()&&!_.XJ(a.Xc)&&!_.VJ(a.Xc))throw Error("Ng");}else _.u(_.$K(a.Xc),9,!1),a.log("Disabling IndexedDB support, missing configuration.");
if(!_.Q(_.$K(a.Xc),9,!1)&&(_.XJ(a.Xc)||_.VJ(a.Xc)))throw Error("Og");var c=_.eI(a.Xc);b=!(!c||!_.KI(c));c=c&&_.UJ(c)||"";if(!b&&!c)throw Error("Pg");b&&_.tj(a.Xc,44);_.yb(a.Xc,_.Df,44).forEach(function(d){try{$vc(a.ym,d)}catch(e){if(e instanceof _.Gc&&(d=e.qg)&&3===d.Ev())throw Error("Qg");throw e;}})};VK.prototype.DJ=function(a){this.dispatchEvent(new _.Hc(new _.Gc(void 0,a)))};VK.prototype.log=function(a){this.Be().info("drive.ds.sync.ThinContext",a)};
var JJc=function(a,b){this.H=a;this.Ne=b};
var KJc=new Set([5,4,1,6,2]),LJc=new Map([[3,1],[7,1],[2,2],[4,2],[5,3],[1,4],[6,5]]),MJc=function(a,b,c){_.yi.call(this);this.ha=a;this.V=b;this.W=c;this.hG=new Map;this.O=new Map;this.status=6;this.H=null};_.J(MJc,_.yi);
MJc.prototype.LQ=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())&&_.Wo(q))&&f.add(q)});[].concat(_.fc(f.values())).forEach(function(q){return void c.push(q)})}if(c.length){var h=KJc.has(b),k=new Map;c.forEach(function(q){k.set(q,new Map)});a.forEach(function(q){var r=q.getKey(),v=r&&_.y(r,2);r=k.get(r&&_.Wo(r));v&&r&&r.set(v,NJc(q))});var l=0,p=0;[].concat(_.fc(k.keys())).forEach(function(q){var r=k.get(q),v=e.hG.get(q);v?h&&(r.forEach(function(w){var A=
w.getKey();(A=v.get(A&&_.y(A,2)))&&_.Cj(w,A)||l++}),[].concat(_.fc(v.values())).forEach(function(w){w=w.getKey();r.has(_.y(w,2))||p++}),e.hG.set(q,r),e.O.set(q,b)):(l+=r.size,e.hG.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,OL(this.V,"px2C2c");OL(this.V,"rkYxSd")}(l||p)&&OJc(this,!h)}};MJc.prototype.uH=function(){return 0<this.hG.size};
var OJc=function(a,b){b||a.H||(a.H=_.aa.setTimeout(function(){_.aa.clearTimeout(a.H);a.H=null;a.W.update(5)},1E3));a.dispatchEvent(new _.ni("WPi0i"))};MJc.prototype.put=function(a){var b=a.getKey(),c=b&&_.Wo(b);b=b&&_.y(b,2);if(c&&b&&(c=this.hG.get(c))){var d=c.get(b);a=NJc(a);d&&_.Cj(a,d)||(c.set(b,a),OJc(this))}};MJc.prototype.remove=function(a){var b=a&&_.Wo(a);a=a&&_.y(a,2);b&&a&&(b=this.hG.get(b))&&b.delete(a)&&OJc(this)};
var sJc=function(a,b){var c=[];(b||[].concat(_.fc(a.hG.keys()))).forEach(function(e){(e=a.hG.get(e))&&[].concat(_.fc(e.values())).forEach(function(f){return void c.push(f.clone())})});b=b?b.filter(function(e){return a.hG.has(e)}):[].concat(_.fc(a.hG.keys()));var d=new atc;_.sj(d,1,c);_.qj(d,2,b);return d};
MJc.prototype.nH=function(a){var b=this,c=sJc(this,a),d=new _.$z;d.Dc(this.status);_.fkb(d,_.yb(c,_.Vo,1));_.F(d,4,c);var e=0;a.forEach(function(f){f=b.O.get(f);LJc.has(f)&&Infinity>LJc.get(f)&&(e=f)});return new JJc(d,e)};var NJc=function(a){a=a.clone();a.Mg()||a.Hb("");return a};
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var PJc=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},RJc=function(a,b){return QJc(a[b])+(QJc(a[b+1])<<8)+(QJc(a[b+2])<<16)+(QJc(a[b+3])<<24)},QJc=function(a){return 127<a?a-256:a};
var XK=function(a,b,c,d,e,f){VK.call(this,a,b,c,d);var h=this;this.Ua=_.Yh();this.Ct=new UL;this.W=null;this.O=_.Yh();this.Ia=new _.$h;this.c7=null;this.oga=new Eyc;this.V=null;this.$a=_.Yh();this.ta=new _.$h;this.sG=new jzc;this.zx=new Oyc;this.Tha=new Lyc;this.Saa=new _.en;this.La=!1;this.nga=new _.en;this.H={};this.ka=null;this.Jb=new _.of;this.Ja(this.Jb);this.Oj=e?e:new nxc(this.Be());this.lk().W.O=this.Oj;this.bM=_.Q(_.$K(b),9,!1)&&Apc()?SJc(this,b):null;this.Sv=new Rvc(ZK(_.eI(b)));this.UD=
TJc(this,this.bM);this.gR=UJc(this,this.bM,b);this.Cf=new AM(this,this.Cg);this.Ws=VJc(this);(a=(a=_.x(this.Xc,_.Ik,12))&&a.getId())&&this.kz(a,6);this.DQ=new tDc(this.Xc,this.Cf.Jq,this.Oj,this.Be(),this.Ws);this.J_=new zDc(this.Be(),this.Oj,this.Ws);this.GE=new MJc(this.Be(),this.Oj,this.Ws);this.TI=new Awc(this.Hm(),this.Be(),function(k){return void h.DJ(k)});this.wz=_.Q(this.Xc.Sf(),52,!1)?new _.sK(this.xk(),this.Hm(),this.Be(),this.lk()):null;NL(this.Oj,["mrK8ic"],function(){h.$a.promise.then(function(){gEc(h,
h.V)})});this.IOa=new fzc(this.Xc);this.hB=new _.Pkc(this.Xc,this.Cf.Yl);this.Kta=new jGc(this);this.b7=new Iyc(this.O.promise,this.Hm());this.kb=new Myc(this.Hm(),this.b7);this.pga=new bzc(this.O.promise,this.Hm(),this.Be(),this.Xc);this.Qa=new oJc(this.Xc,this.Cf,this.DJ.bind(this),this.b7,this.kb,this.Ws,this.oga,this.Cg,this.Bu.bind(this),this.Kta,this.J_,this.GE,this.pga,this.sG,this.Be(),this.IOa,this.hB,this.TI,this.wz,this.Jj(),this.Brb.bind(this),this.lk(),f);this.Ua.resolve(this.Qa);this.ALa=
new UFc(this);NL(this.Oj,["BNEDtc"],function(){return h.nga.resolve()});GJc(this,function(){h.Ws.YS();return _.Vh()})};_.J(XK,VK);
var SJc=function(a,b){var c=_.UJ(_.eI(b)),d=_.WJ(b),e=function(){},f=_.yb(_.$K(b),YK,11);f=f[0]&&_.y(f[0],1);var h=new Vzc(c,d,_.Dj(_.$K(b),10,0)||0,f||"",_.bK(a.Cg));_.XJ(b)?c=pAc(c,d).then(function(l){return l?l:h}):_.VJ(b)&&0<_.Dj(_.$K(b),8,432E6)?(b=WJc(a,c),c=pAc(c,d,b).then(function(l){return l&&(e=function(p){return p.Il(h).then(null,_.hg)},!l.ha)?l:h})):c=_.Vh(h);var k=new dM(c,a.Be(),a.lk());k.initialize().then(function(){return e(k)},function(){return null});return k},WJc=function(a,b){var c=
_.Dj(_.$K(a.Xc),8,432E6);if(!_.XJ(a.Xc)&&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+=RJc(b,e),h.b+=RJc(b,e+4),h.c+=RJc(b,e+8),PJc(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+=RJc(b,e+4);h.a+=RJc(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+=RJc(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=PJc(h);return d.call(a,b)%c}};XK.prototype.hz=function(a){var b=this;return this.bM?this.bM.Ff()?_.Wh(Error("Rg`"+bAc(this.bM))):CAc(this.UD).then(function(c){var d=b.bM,e=[];e.push(b.Ws.dZa());e.push(a?d.Il():lAc(d));if(a===c)return _.Xh(e).then(function(){return!1});!1===a&&(e.push(aAc(d)),(c=b.Bu())&&e.push(b.UD.kz(c)));return _.Xh(e).then(function(){return b.UD.hz(a)},function(){return!1})}):_.Wh(Error("Sg"))};
var UJc=function(a,b,c){var d=null;b&&(d=new tzc(b,c,function(e){a.DJ(e)},a.lk()),d.initialize());return d},TJc=function(a,b){var c=new BAc(b||void 0);c.Bu().then(function(d){d&&a.kz(d,5)});b&&(CAc(c).then(function(d){a.Jj().hz(d)}),_.Xh([b.initialize(),a.pY.promise]).then(function(){XJc(a,c)},function(){}));return c},XJc=function(a,b){FAc(b).then(function(c){(!c||c<Date.now()-864E5)&&sAc(_.UJ(_.eI(a.Xc)),_.WJ(a.Xc),a.Be()).then(function(d){d&&(d=Date.now(),b.set(zAc,d))},function(){})})},VJc=function(a){if(!a.gR)return new DJc;
var b=new pJc(a,a.Cg);a.Jb.listen(a.Jj(),"rb",function(c){return void b.setActive(!c.Le())});a.Jb.listen(a.xk(),[].concat(_.fc(Object.values(_.VB))),function(){return void b.setActive(a.xk().isConnected())});return b};XK.prototype.ZY=function(a){this.c7=a;this.Ia.callback(a)};var xM=function(a){return a.Ia.ln()},jDc=function(a){return a.bM?a.bM.Ff():null},YJc=function(a,b){a.Oj.H("NSockf")?OL(a.Oj,b):NL(a.Oj,["NSockf"],function(){OL(a.Oj,b)})};
XK.prototype.U6a=function(a,b){this.log("Setting Root ID: "+a);a&&(this.Ct.kz(a),this.ym.kz(a),6!==b&&1!==b||this.UD.kz(a),YJc(this,"jroI5d"))};XK.prototype.eYa=function(){return this.ta.ln()};var gEc=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.Vf()||(a.ta.callback(b),YJc(a,"T8oKm")))},EDc=function(a){if(!a.W)throw Error("Tg");return a.W};_.g=XK.prototype;_.g.RR=function(){return this.Qa};_.g.Hm=function(){return this.Ua.promise.then(function(a){return a.zpa.promise})};
_.g.DFa=function(){this.La||(this.La=!0,this.Saa.resolve(),OL(this.Oj,"aU7Ts"))};_.g.OB=function(){throw Error("Ug");};_.g.Brb=function(a){this.dispatchEvent(a)};var ZJc=function(a,b){AFc(a.Cf,b)},$Jc=function(a,b,c){a.H[b]=c},cDc=function(a){a.ka||(a.ka=new Tyc(a.O.promise,a.Hm(),a.Be()));return a.ka};
var EM=function(a,b,c){_.yi.call(this);var d=this;this.Ga=a;this.logName=b;this.wa=_.Yh();this.Ba=this.channel=this.clientId=null;c.then(function(e){return aKc(d,e)})};_.J(EM,_.yi);var aKc=function(a,b){a.clientId=b.clientId;a.channel=b.channel;a.Ba=b.H;DL(a.channel,a.Ga,function(c){c=pwc(c);a.zaa(c.O,!(!c.data||!c.H),c.data,c.error)});a.log("Service initialized: "+a.Ga);a.wa.resolve()};EM.prototype.zaa=function(){};
EM.prototype.send=function(a,b,c,d){var e=this,f=_.Yh();this.wa.promise.then(function(){var h=e.channel;EL(h,e.Ga,lwc(new kwc(e.clientId,a,b,d),h.W),function(k){return void bKc(k,a,f,c||function(){})})});return f.promise};var bKc=function(a,b,c,d){a=pwc(a);a.data?c.resolve(d(a.data,a.H)):(a.error?d=a.error:(d=new _.Fc,_.sI(d,2),_.tI(d,6),_.u(d,21,"Worker["+b+"]: An invalid response was received")),c.reject(new _.Gc(void 0,d)))};EM.prototype.log=function(a){this.Ba&&this.Ba.info(this.logName,a)};
var cKc=function(a,b,c,d){this.clientId=a;this.channel=b;this.H=c;this.O=d};
var FM=function(a,b){_.L.call(this);this.V=a;this.wa=b;this.La=this.yV()};_.J(FM,_.L);FM.prototype.registerService=function(a){var b=this;DL(a,this.V,function(c){return b.ex(c)})};
FM.prototype.ex=function(a){var b=this;a=mwc(a);var c=a.H,d=this.La[a.method],e=null;if(d)try{var f=d(a);if(f instanceof nwc)return owc(f,c);if(f.then)return f.then(function(h){return owc(h,c)},function(h){h=_.uI(h);return owc(b.Zc(void 0,h),c)})}catch(h){e=_.NI(h)}f=new _.Fc;_.sI(f,2);_.tI(f,3);_.Eo(f,this.V+":"+a.method+": "+(e?e.message:"unsupported method"));e&&e.stack&&_.u(f,20,e.stack);return owc(this.Zc(void 0,f),c)};
FM.prototype.Zc=function(a,b,c){if(a&&!b)return new nwc(a,void 0,c);a=_.uI(b);return new nwc(void 0,a,c)};FM.prototype.update=function(a,b,c,d){(a=this.wa.channels[a]||null)&&EL(a,this.V,owc(this.Zc(c,d,b),a.W))};
var dKc=function(){this.channels={};this.H=this.O=this.V=0},eKc=function(a,b){var c=a.V++;a.channels[c]=b;a.O++;a.H=Math.max(a.H,_.Xa(a.channels));return c},fKc=function(a,b){var c=a.channels[b];return c?(delete a.channels[b],c):null};
var gKc=function(a,b){FM.call(this,"LRM",b);this.context=a;this.H={};a=this.context;a.W=this;a.O.resolve(this);this.ha=this.context.Cf;this.O=this.context.pga;this.W=cDc(this.context);this.ka=this.context.b7};_.J(gKc,FM);
gKc.prototype.yV=function(){var a=this,b={};return b["4.1"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.Df);return a.Yh(d,c)},b["4.9"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.QH);return a.Yh(d,c)},b["4.2"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.WF);return a.Yh(d,c)},b["4.10"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.aG);return a.Yh(d,c)},b["4.3"]=function(c){var d=c.clientId+":"+c.requestId;
c=TK(c.args[0],!!c.H,_.Df);return a.ek(d,c)},b["4.11"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.QH);return a.ek(d,c)},b["4.4"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.WF);return a.ek(d,c)},b["4.12"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.aG);return a.ek(d,c)},b["4.5"]=function(c){var d=c.clientId+":"+c.requestId,e=TK(c.args[0],!!c.H,_.WF);c=TK(c.args[1],!!c.H,_.WF);return a.JZ(d,e,c)},b["4.6"]=function(c){var d=c.clientId+
":"+c.requestId,e=TK(c.args[0],!!c.H,_.aG);c=TK(c.args[1],!!c.H,_.aG);return a.JZ(d,e,c)},b["4.7"]=function(c){return a.gG(c)},b["4.8"]=function(c){return a.gG(c)},b["4.13"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.dA);return a.Yh(d,c)},b["4.14"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.bG);return a.Yh(d,c)},b["4.15"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.dA);return a.ek(d,c)},b["4.16"]=function(c){var d=c.clientId+
":"+c.requestId;c=TK(c.args[0],!!c.H,_.bG);return a.ek(d,c)},b["4.18"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.iG);return a.Yh(d,c)},b["4.19"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.iG);return a.ek(d,c)},b["4.22"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.bA);return a.Yh(d,c)},b["4.23"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.bA);return a.ek(d,c)},b["4.21"]=function(c){c=a.H[c.clientId+":"+
c.requestId].query;if(c instanceof _.bA){var d=a.W;Cyc(d,d.getKey(c)).refresh()}return a.Zc([])},b};gKc.prototype.Yh=function(a,b){var c=this,d=new _.en;this.H[a]={query:b,lWb:d.promise};b instanceof _.dA?d.resolve(this.O.Yh(a,b)):b instanceof _.bG?d.resolve(Ayc(this.O,a,b)):b instanceof _.bA?d.resolve(this.W.Yh(a,b)):b instanceof _.iG?d.resolve(this.ka.Yh(a,b)):d.resolve(this.ha.Yh(a,b));return d.promise.then(function(){return c.Zc([])})};gKc.prototype.ek=function(a,b){hKc(this,a,b);return this.Zc([])};
var hKc=function(a,b,c){delete a.H[b];c instanceof _.dA?a.O.ek(b,c):c instanceof _.bG?Byc(a.O,b,c):c instanceof _.bA?a.W.ek(b,c):c instanceof _.iG?a.ka.ek(b,c):a.ha.ek(b,c)};_.g=gKc.prototype;_.g.JZ=function(a,b,c){hKc(this,a,b);return this.Yh(a,c)};_.g.gG=function(a){var b=a.clientId+":"+a.requestId,c=this.H[b].query;c.Fi(a.args[0]);c instanceof _.dA?this.O.Yh(b,c):c instanceof _.bG?Ayc(this.O,b,c):c instanceof _.bA?this.W.Yh(b,c):c instanceof _.iG?this.ka.Yh(b,c):this.ha.Yh(b,c);return this.Zc([])};
_.g.QO=function(a,b){var c=this,d=this.H[a];if(d){a=a.split(":");var e=_.ph(a[0]),f=a[1];d.lWb.then(function(h){b instanceof _.qK||b instanceof _.nK?c.update(e,f,[b.response,b.pageToken,b.H,b.Ne,h]):(d.query instanceof _.Df?Gnc(d.query.H(),b.Bd().filter(function(k){return!zL(k)})):d.query instanceof _.WF&&Gnc(d.query.H(),Object.values(b.lt()).filter(function(k){return k&&!zL(k)})),c.update(e,f,[b,h]))})}};
_.g.AY=function(a,b){if(this.H[a]){var c=a.split(":");a=_.ph(c[0]);c=c[1];var d=b.error;d.lga(b.retryCount);this.update(a,c,void 0,d)}};_.g.GA=function(a){this.H[a]&&(a=a.split(":"),this.update(_.ph(a[0]),a[1],["cacheRefresh"]))};_.g.W9=function(){};_.g.Ala=function(a){if(!this.H[a])throw Error("vg`"+a);return this.H[a].query};var iKc=function(a,b){_.Ta(a.H,function(c,d){_.ph(d.split(":")[0])===b&&hKc(a,d,c.query)})};
var jKc=function(a,b,c){EM.call(this,"LRM","drive.ds.sync.cache.LiveRequestManagerProxy",a);this.context=b;this.H=c;this.O={}};_.J(jKc,EM);jKc.prototype.vya=function(a){var b=this;a=new PCc(this.context.ym,this.context.KQ,this.context.Be(),this.context.Xc,function(c,d){return b.gG(c,d)},a,this.context.lk());kKc(this,a);return a};jKc.prototype.yya=function(a){var b=this;a=new TCc(this.context.ym,this.context.KQ,this.context.Be(),function(c,d){return b.gG(c,d)},a,this.context.Xc);kKc(this,a);return a};
var kKc=function(a,b){a.Yh(b);_.ff(b,function(){a.ek(b);a.send("4.3",[b.jd()],void 0,b.Ni())});a.send("4.1",[b.jd()],void 0,b.Ni())};_.g=jKc.prototype;_.g.sya=function(a){var b=this,c=new btc(this.context.Xc,this.context.ym,this.context.Be(),this.context.I_,this.JZ.bind(this),a);this.Yh(c);_.ff(c,function(){b.ek(c);b.send("4.4",[c.jd()],void 0,c.Ni())});this.send("4.2",[c.jd()],void 0,c.Ni());return c};
_.g.Bya=function(a){var b=this,c=new XCc(this.context.Be(),a,this,this.context.Xc);this.Yh(c);_.ff(c,function(){b.ek(c);b.send("4.11",[c.jd()],void 0,c.Ni())});this.send("4.9",[c.jd()],void 0,c.Ni());return c};_.g.Cya=function(a){var b=this,c=new YCc(this.context,this,a);this.Yh(c);_.ff(c,function(){b.ek(c);b.send("4.12",[c.jd()],void 0,c.Ni())});this.send("4.10",[c.jd()],void 0,c.Ni());return c};
_.g.Fya=function(a){var b=this,c=new aDc(this.context,a,this);this.Yh(c);_.ff(c,function(){b.ek(c);b.send("4.15",[c.jd()],void 0,c.Ni())});this.send("4.13",[c.jd()],void 0,c.Ni());return c};_.g.Gya=function(a){var b=this,c=new SCc(this.context.Be(),a);this.Yh(c);_.ff(c,function(){b.ek(c);b.send("4.16",[c.jd()],void 0,c.Ni())});this.send("4.14",[c.jd()],void 0,c.Ni());return c};
_.g.zya=function(a){var b=this,c=new WCc(this.context,a,function(){b.send("4.21",[],void 0,c.Ni())});this.Yh(c);_.ff(c,function(){b.ek(c);b.send("4.23",[c.jd()],void 0,c.Ni())});this.send("4.22",[c.jd()],void 0,c.Ni());return c};_.g.oya=function(a){var b=this,c=new NCc(this.context.Jj(),this.context.xk(),this.context.Be(),function(d,e){return b.gG(d,e)},a);this.Yh(c);_.ff(c,function(){b.ek(c);b.send("4.19",[c.jd()],void 0,c.Ni())});this.send("4.18",[c.jd()],void 0,c.Ni());return c};
_.g.Yh=function(a){this.H.create(a.Ni(),a.jd());this.O[a.Ni()]=a};_.g.ek=function(a){HL(this.H,a.Ni(),4);delete this.O[a.Ni()]};_.g.JZ=function(a,b,c){if(b instanceof _.WF&&c instanceof _.WF)this.send("4.5",[b,c],void 0,a);else if(b instanceof _.aG&&c instanceof _.aG)this.send("4.6",[b,c],void 0,a);else throw Error("Vg");};
_.g.gG=function(a,b){if(!this.O[a])throw Error("vg`"+a);var c=this.O[a];if(c.jd()instanceof _.Df)var d="4.7";else if(c.jd()instanceof _.QH)d="4.8";else if(c.jd()instanceof _.iG)d="4.20";else if(c.jd()instanceof _.dA)d="4.17";else throw Error("Wg");c.jd().Fi(b);this.send(d,[b],void 0,a)};
_.g.zaa=function(a,b,c,d){if(a=this.O[a]){var e,f=0;if(d)a.JB(new XL(d,d.P6())),HL(this.H,a.Ni(),3);else if(c&&c[f]){d=c[f++];if("cacheRefresh"===d){a.WW();return}var h=a.jd();if(h instanceof _.Df||h instanceof _.QH)h instanceof _.Df&&_.lJ(h)?e=TK(d,b,_.kK):e=TK(d,b,_.dI);else if(h instanceof _.WF||h instanceof _.aG)b?(e=new _.jK,Usc(e,function(k){return new _.Ik(JSON.parse(k))},d)):e=d;else if(h instanceof _.iG)e=new _.nK(TK(d,b,KL),c[f++],c[f++],c[f++]);else if(h instanceof _.dA)e=new _.qK(TK(d,
b,ML),c[f++],c[f++],c[f++]);else if(h instanceof _.bG)e=TK(d,b,_.lK);else if(h instanceof _.bA)e=TK(d,b,xL);else throw Error("Xg");}e&&(b=f,c&&"boolean"===typeof c[b]&&Jwc(this.H,a.Ni(),!!c[b]),Mwc(this.H,a.Ni(),e),a.update(e))}};
var GM=function(){_.yi.apply(this,arguments);this.commands=new _.Rk;this.ha=this.active=this.np=!1};_.J(GM,_.yi);GM.prototype.initialize=function(){this.np||(this.np=!0,this.V(),this.setActive(!0))};GM.prototype.V=function(){};GM.prototype.setActive=function(a){this.active=a;lKc(this)};var lKc=function(a){if(a.active&&!a.ha){var b=_.Sk(a.commands);if(b)if(a.wa()){do a.ka(b);while(b=_.Sk(a.commands))}else{a.ha=!0;var c=function(){a.ha=!1;lKc(a)};a.Ba(b).then(c,c)}}};GM.prototype.ka=function(){};
GM.prototype.Ba=function(){};GM.prototype.wa=function(){return!0};GM.prototype.enqueue=function(a){try{var b=new _.$h;this.commands.enqueue(new mKc(a,b));lKc(this);return b}catch(c){return _.gi(_.NI(c))}};var mKc=function(a,b){this.H=a;this.Ee=b};mKc.prototype.getCommand=function(){return this.H};
var pKc=function(a){GM.call(this);var b=this;this.context=a;this.H=null;this.Oc=new _.of(this);this.Ja(this.Oc);this.Oc.listen(this.context,"VMiG2e",function(){return void nKc(b)});this.O=this.context.Cf.Jq;_.lI(this.context.Xc)&&this.Oc.listen(this.O,"vb",this.W);var c=a.Oj;NL(c,["toquGd"],function(){return b.initialize()});var d=["NSockf"];1!==_.oj(a.Xc.Sf(),17,1)&&(d.push("iuEtc"),NL(c,["mrK8ic"],function(){OL(c,"iuEtc")}));NL(c,d,function(){oKc(b)})};_.J(pKc,GM);pKc.prototype.V=function(){qKc(this)};
var oKc=function(a){if(1===a.context.DQ.Ef().Cb())Promise.resolve();else{var b=_.Rf(_.Sf(new _.Qf,!0),301);b=_.PH(new _.OH,b);a.refresh(b).then(null,function(c){c=_.uI(c);_.u(c,21,"Initial account request failed.");a.context.DJ(c)})}},nKc=function(a){var b=_.Rf(new _.Qf,304);b=_.PH(new _.OH,b);a.refresh(b).then(null,function(){})};
pKc.prototype.refresh=function(a,b){var c=this;this.H||(this.H=this.context.Hm().then(function(d){return d.Oe(a,b)}).then(function(d){var e=d.Ef(),f=e.getUser();if(f&&!1===_.wk(f))d=_.vI(_.eI(c.context.Xc)),d=Error("Yg`"+d+"`"+LK(f)),_.Lb(d),_.rK(c.context.lk(),73301807),d=Promise.reject(d);else{f=c.context.DQ;var h=0===f.Ve()?1:6;_.lI(c.context.Xc)&&fyc(c.O,e);h=vDc(f,e,h);(e=e.getMetadata())&&c.context.kz(_.y(e,2),1);(d=_.y(d,4))&&gEc(c.context,d,!0);h&&c.dispatchEvent(new _.ni("WPi0i"));d=Promise.resolve(new _.pK(f.Ef(),
f.Ve(),!1))}return d}).then(function(d){return d},function(d){d=_.uI(d);_.u(d,5,1);return Promise.reject(new _.Gc("Error fetching account from server.",d))}),this.H.then(function(){c.H=null},function(){c.H=null}));return this.H};
pKc.prototype.ka=function(a){var b=a.getCommand();if(b.H){var c={};b.aE&&(c.aE=b.aE);this.refresh(b.request,c).then(function(e){return a.Ee.callback(e)},function(e){a.Ee.Gd(e)})}else if(b=this.context.DQ,c=b.Ef(),_.lI(this.context.Xc)){c=c.Ef();var d=c.getUser();d=Sxc(this.O.H,LK(d));fyc(this.O,c);vDc(b,c,b.Ve())&&this.dispatchEvent(new _.ni("WPi0i"));a.Ee.callback(new _.pK(b.Ef(),b.Ve(),d))}else c.Cb(),b=new _.pK(c,b.Ve(),!0),a.Ee.callback(b)};
var qKc=function(a){var b=a.context.Xc.Sf();_.aa.setTimeout(function(){var c=_.Rf(new _.Qf,306);c=_.PH(new _.OH,c);a.refresh(c).then(function(){qKc(a)},function(){qKc(a)})},Math.ceil(_.Dj(b,7,9E5)*Math.random())+_.Dj(b,3,72E5))};pKc.prototype.W=function(a){var b=this.context.DQ,c=b.Ef().Ef();c&&a.getPeople().find(function(d){return _.y(d,1)===LK(c.getUser())})&&(fyc(this.O,c),vDc(b,c,b.Ve())&&this.dispatchEvent(new _.ni("WPi0i")))};var rKc=function(a,b,c){this.request=a;this.H=!!b;this.aE=c||null};
var tKc=function(a){GM.call(this);this.context=a;this.ta=this.W=!1;this.O=null;this.H=1;this.ma=0;this.error=null;this.Oc=new _.of(this);this.Ja(this.Oc);this.Oc.listen(this.context.J_,"Hb",_.Ob(this.dispatchEvent,new _.ni("Hb",this)));sKc(this)};_.J(tKc,GM);
var sKc=function(a){var b=a.context.Oj;NL(b,["nVUlO"],function(){a.ta=!0;a.setActive(!0)});if(!_.XJ(a.context.Xc)){var c=_.oj(a.context.Xc.Sf(),18,1);NL(b,["NSockf"],function(){1===c?uKc(a):a.setActive(!0)});2===c&&NL(b,["mrK8ic"],function(){a.W||uKc(a)})}},uKc=function(a){var b=new _.Qf;_.Sf(b,!0);_.Rf(b,301);var c=new _.oJ;_.lsc(c,b);_.u(c,1,1);a.refresh(c).then(null,function(){return null})};
tKc.prototype.refresh=function(a,b){var c=this;_.aa.clearTimeout(this.ma);this.ma=0;var d=_.Yh();this.O=d.promise;this.O.then(function(){vKc(c)},function(){vKc(c)});var e=this.H;this.H=a.getType()||e;var f=!this.W;this.W=!0;var h=new _.oJ;_.u(h,1,this.H);_.lsc(h,a.re());this.context.Hm().then(function(k){return k.Oe(h,b)}).then(function(k){c.error=null;var l=c.context.J_;l.LQ(k,l.uH()?6:1);d.resolve()},function(k){c.H=e;k=_.wd(k);var l=k.qg;_.u(l,5,2);f?(_.sI(l,1),k.message="Initial app settings refresh failed.",
_.u(k.qg,21,"Initial app settings refresh failed."),c.context.DJ(l),c.setActive(!0)):(_.sI(l,2),k.message="Error occurred while loading the latest set of apps.",_.u(k.qg,21,"Error occurred while loading the latest set of apps."));c.error=k;d.reject(k)});return this.O};tKc.prototype.wa=function(){return!1};
tKc.prototype.Ba=function(a){var b=this,c=a.getCommand(),d=c.request,e=c.pka,f=c.aE?{aE:c.aE}:void 0;if(!wKc(d))return this.context.Hm().then(function(l){return l.Oe(d,f)}).then(function(l){a.Ee.callback(new _.mK(l,1,!1))},function(l){a.Ee.Gd(_.NI(l))}),_.Vh(void 0);c=_.Vh();var h=!1;this.O?xKc(this,d.getType())?e=this.O:c=e=new _.Uh(function(l,p){b.O.then(function(){b.refresh(d,f).then(function(){return l()},p)})}):!e&&this.ta&&xKc(this,d.getType())&&!this.error?(h=!0,e=_.Vh()):e=this.refresh(d,
f);var k=a.Ee;e.then(function(){var l=b.context.J_;k.callback(new _.mK(l.ks(),l.Ve(),h))},function(l){k.Gd(l)});return c.then()};
var wKc=function(a){var b=a.getType();return 1===b||2===b||4===b?(b=_.se(a,4),a=_.se(a,3),!(b&&b.length)&&!(a&&a.length)):!1},xKc=function(a,b){return a.H===b||4===a.H||2===a.H&&1===b},vKc=function(a){a.O=null;var b=a.context.Xc.Sf(),c=new _.Qf;_.Rf(c,306);var d=new _.oJ;_.u(d,1,1);_.lsc(d,c);a.ma=_.aa.setTimeout(function(){return void a.refresh(d)},Math.ceil(_.Dj(b,7,9E5)*Math.random())+_.Dj(b,4,72E5))},yKc=function(a,b,c){this.V=a;this.H=!!b;this.O=c||null};
_.Uf.Object.defineProperties(yKc.prototype,{request:{configurable:!0,enumerable:!0,get:function(){return this.V}},pka:{configurable:!0,enumerable:!0,get:function(){return this.H}},aE:{configurable:!0,enumerable:!0,get:function(){return this.O}}});
var AKc=function(a){GM.call(this);var b=this;this.context=a;this.error=null;this.Oc=new _.of(this);this.Ja(this.Oc);this.Oc.listen(this.context.GE,"WPi0i",function(){return b.dispatchEvent(new _.ni("WPi0i"))});this.H=_.Yh();this.O=_.se(this.context.Xc.Sf(),30);zKc(this)};_.J(AKc,GM);
var zKc=function(a){var b=a.context.Oj;NL(b,["rkYxSd"],function(){return a.initialize()});NL(b,["px2C2c"],function(){a.context.Be().info("drive.ds.sync.userprefs.UserPrefsManager","All user prefs loaded.");a.H.resolve();a.H=null});var c=["NSockf"],d=_.oj(a.context.Xc.Sf(),19,1);1!==d&&(c.push("OZvrNc"),2===d&&NL(b,["mrK8ic"],function(){OL(b,"OZvrNc")}));!_.Q(a.context.Xc,11,!1)&&_.Q(a.context.Xc,24,!1)&&(c.push("DEJoH"),_.aa.setTimeout(function(){0<_.yb(sJc(a.context.GE),_.Vo,1).length||(b.H("NSockf")?
OL(b,"DEJoH"):NL(b,["NSockf"],function(){OL(b,"DEJoH")}))},12E3));NL(b,c,function(){if(!b.H("px2C2c")){var e=new _.Qf;_.Sf(e,!0);_.Rf(e,301);var f=new _.nD;_.F(f,1,e);Voc(f,BKc(a));a.query(f).then(null,function(){a.initialize()})}})};AKc.prototype.V=function(){var a="User prefs detected: "+_.yb(sJc(this.context.GE),_.Vo,1).length;this.context.Be().info("drive.ds.sync.userprefs.UserPrefsManager",a);CKc(this)};
AKc.prototype.query=function(a,b){var c=this,d=b?{aE:b}:void 0;return this.context.Hm().then(function(e){return e.Oe(a,d)}).then(function(e){c.error=null;var f=c.context.GE;f.LQ(_.yb(e,_.Vo,3),f.uH()?6:1,_.se(a,3))}).then(null,function(e){e=_.wd(e);_.u(e.qg,5,4);0<c.commands.Yb()||c.context.DJ(e.qg);c.error=e;throw e;})};
AKc.prototype.ka=function(a){var b=this,c=a.getCommand(),d=a.Ee,e=new Set([].concat(_.fc(this.context.GE.hG.keys()))),f=_.se(c.request,3);f.find(function(h){return!e.has(h)})&&(c.pka=!0);this.error?d.Gd(this.error):c.pka?(Voc(c.request,BKc(this,f)),(this.H?this.H.promise:this.query(c.request,c.aE||void 0)).then(function(){b.getData(d,f,!1)},function(){b.getData(d,f,!1)})):this.getData(d,f,!0)};
var BKc=function(a,b){b=void 0===b?[]:b;a=new Set([].concat(_.fc(a.O),_.fc([].concat(_.fc(a.context.GE.hG.keys()))),_.fc(b)));return[].concat(_.fc(a.values()))};AKc.prototype.getData=function(a,b,c){b=this.context.GE.nH(b);a.callback(new _.oK(b.H,b.Ne,c))};
var CKc=function(a){var b=a.context.Xc.Sf();_.aa.setTimeout(function(){var c=new _.nD,d=new _.Qf;_.Rf(d,306);_.F(c,1,d);Voc(c,BKc(a));a.query(c).then(null,_.hg).then(function(){CKc(a)},function(){CKc(a)})},Math.ceil(_.Dj(b,7,9E5)*Math.random())+_.Dj(b,5,72E5))},DKc=function(a,b,c){this.request=a;this.pka=!!b;this.aE=c||null};
var EKc=function(a,b,c,d){FM.call(this,"IS",b);this.context=a;this.Oc=new _.of(this);this.Ba=_.Yh();this.O=null;this.ha=!1;this.W=null;this.Ga=new iDc(a);Uoc(this.Ga);this.Ja(this.Oc);this.ka=new pKc(a);this.Ja(this.ka);this.Oc.listen(this.ka,"WPi0i",function(){return c(new JCc(1))});this.ma=new tKc(a);this.Ja(this.ma);this.Oc.listen(this.ma,"Hb",function(){return c(new JCc(2))});this.ta=new AKc(a);this.Ja(this.ta);this.Oc.listen(this.ta,"WPi0i",function(){return c(new JCc(4))});this.Ia=d;this.H=
this.context.Hm()};_.J(EKc,FM);_.g=EKc.prototype;
_.g.yV=function(){var a={};return a["3.43"]=this.r0.bind(this),a["3.42"]=this.D8.bind(this),a["3.1"]=this.MN.bind(this),a["3.2"]=this.nH.bind(this),a["3.3"]=this.ad.bind(this),a["3.35"]=this.qO.bind(this),a["3.4"]=this.TC.bind(this),a["3.5"]=this.ks.bind(this),a["3.6"]=this.NS.bind(this),a["3.8"]=this.Il.bind(this),a["3.36"]=this.hz.bind(this),a["3.9"]=this.KF.bind(this),a["3.10"]=this.yr.bind(this),a["3.11"]=this.Waa.bind(this),a["3.12"]=this.k9.bind(this),a["3.13"]=this.QT.bind(this),a["3.14"]=
this.Uaa.bind(this),a["3.15"]=this.m9.bind(this),a["3.16"]=this.Au.bind(this),a["3.17"]=this.dGb.bind(this),a["3.18"]=this.hGb.bind(this),a["3.19"]=this.RQ.bind(this),a["3.20"]=this.fGb.bind(this),a["3.25"]=this.eGb.bind(this),a["3.22"]=this.l9.bind(this),a["3.28"]=this.sync.bind(this),a["3.30"]=this.Noa.bind(this),a["3.29"]=this.$zb.bind(this),a["3.40"]=this.jGb.bind(this),a["3.33"]=this.kGb.bind(this),a["3.39"]=this.AP.bind(this),a["3.37"]=this.iGb.bind(this),a["3.38"]=this.gcb.bind(this),a["3.41"]=
this.QS.bind(this),a["3.44"]=this.R0.bind(this),a["3.45"]=this.Do.bind(this),a["3.46"]=this.E8.bind(this),a};_.g.MN=function(a){var b=this,c=TK(a.args[0],!!a.H,_.OH);a=new rKc(c,a.args[1],this.context.H[a.clientId]);OL(this.context.Oj,"iuEtc");return this.ka.enqueue(a).then(function(d){return b.Zc([d.response,d.Ne,d.H0])},function(d){return b.Zc(void 0,d)})};
_.g.nH=function(a){var b=this,c=TK(a.args[0],!!a.H,_.nD);a=new DKc(c,a.args[1],this.context.H[a.clientId]);OL(this.context.Oj,"OZvrNc");return this.ta.enqueue(a).then(function(d){return b.Zc([d.response,d.Ne,d.H0])},function(d){return b.Zc(void 0,d)})};
_.g.ad=function(a){var b=this,c=TK(a.args[0],!!a.H,qoc),d=_.Gj(c,_.PI,16,QK)||_.Gj(c,_.QI,1,QK)||_.Gj(c,_.RI,2,QK)||_.Gj(c,_.UI,3,QK)||_.Gj(c,_.tK,4,QK)||_.Gj(c,_.SI,5,QK)||_.Gj(c,_.YI,6,QK)||_.Gj(c,_.$I,7,QK)||_.Gj(c,_.aJ,8,QK)||_.Gj(c,_.dJ,9,QK)||_.Gj(c,_.rJ,18,QK)||_.Gj(c,_.vJ,10,QK)||_.Gj(c,_.wJ,11,QK)||_.Gj(c,_.xJ,12,QK)||_.Gj(c,_.wI,13,QK)||_.Gj(c,_.AJ,14,QK)||_.Gj(c,_.BJ,15,QK)||_.Gj(c,RK,17,QK),e=HM(this,a);return this.H.then(function(f){return f.Oe(d,e)}).then(function(f){return b.Zc([f])},
function(f){return b.Zc(void 0,f)})};_.g.qO=function(a){var b=this,c=TK(a.args[0],!!a.H,zoc),d=_.Gj(c,_.VI,1,Aoc)||_.Gj(c,_.bJ,2,Aoc)||_.Gj(c,_.CJ,3,Aoc),e=HM(this,a);return this.H.then(function(f){return f.Oe(d,e)}).then(function(f){return b.Zc([f])},function(f){return b.Zc(void 0,f)})};
_.g.TC=function(a){var b=this,c=TK(a.args[0],!!a.H,toc),d=HM(this,a),e=[],f=[];voc(c).forEach(function(h){h instanceof _.PI?e.push(String(h.qc())):e.push(String(h.getId()));f.push(b.H.then(function(k){return k.Oe(h,d)}))});a=_.iI(f).then(function(h){return h.map(function(k){return k.value||k.reason})});_.Zh(a,function(){return void SFc(b.context.Cf)});return a.then(function(h){return b.Zc([new foc(e,h)])})};
_.g.ks=function(a){var b=this,c=TK(a.args[0],!!a.H,_.oJ),d=a.args[1];if(3===c.getType())if(!d&&this.W)a=this.W;else{var e=HM(this,a);a=this.H.then(function(f){return f.Oe(c,e)}).then(function(f){return new _.mK(f,1,!1)});this.W||(this.W=a.then(function(f){return new _.mK(f.response,f.Ne,!0)}),setTimeout(function(){b.W=null},9E5))}else a=new yKc(c,d,this.context.H[a.clientId]),OL(this.context.Oj,"Qubz4b"),a=this.ma.enqueue(a);return a.then(function(f){return b.Zc([f.response,f.Ne,f.H0])},function(f){return b.Zc(void 0,
f)})};_.g.NS=function(a){var b=this,c=TK(a.args[0],!!a.H,woc),d=_.Gj(c,_.oD,1,xoc)||_.Gj(c,_.pD,2,xoc),e=HM(this,a);return this.H.then(function(f){return f.Oe(d,e)}).then(function(f){return b.Zc([f])},function(f){return b.Zc(void 0,f)})};_.g.Il=function(a){a=a.args[0];if(this.context.wz)a?_.Akc(this.context.wz,!0):this.context.xk().Le()&&this.context.wz.IM(!0).then(null,function(){});else try{this.context.Jj().Il(a)}catch(b){return this.Zc(void 0,b)}return this.Zc([])};
_.g.hz=function(a){var b=this,c=a.args[0];return this.context.hz(c).then(function(d){return d?(b.context.Jj().hz(c),b.Ia(c),b.context.Ws.CL().then(null,function(){return!c})):_.Vh(!c)}).then(function(d){return b.Zc([d])},function(d){return b.Zc(void 0,d)})};
_.g.sync=function(){var a=this;return _.Xh([this.context.Saa.promise,this.context.nga.promise]).then(function(){return xM(a.context).then()}).then(function(b){return new _.Uh(function(c,d){b.sync().then(function(){return c()},function(e){return d(e)})})}).then(function(){return a.context.Ws.CL()}).then(function(){return a.Zc([])},function(b){return a.Zc(void 0,b)})};_.g.KF=function(){try{var a=this.context.c7;a&&a.tpa();this.context.Tha.KF();return this.Zc([])}catch(b){return this.Zc(void 0,b)}};
_.g.QS=function(){this.context.QS();return this.Zc([])};_.g.yr=function(a){var b=this,c=TK(a.args[0],!!a.H,_.gJ),d=HM(this,a);return this.H.then(function(e){return e.Oe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.Waa=function(a){var b=this,c=TK(a.args[0],!!a.H,_.hJ),d=HM(this,a);return this.H.then(function(e){return e.Oe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};
_.g.k9=function(a){var b=this,c=TK(a.args[0],!!a.H,_.WI),d=HM(this,a);return this.H.then(function(e){return e.Oe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.QT=function(a){var b=this,c=TK(a.args[0],!!a.H,_.yJ),d=HM(this,a);return this.H.then(function(e){return e.Oe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};
_.g.Uaa=function(a){var b=this,c=TK(a.args[0],!!a.H,_.iJ),d=HM(this,a);return this.H.then(function(e){return e.Oe(c,d)}).then(function(e){return _.lI(b.context.Xc)?jyc(b.context.Cf.Jq,[_.x(e,_.vk,2)],c.qc()).then(function(){return e}):e}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.m9=function(a){var b=this,c=TK(a.args[0],!!a.H,_.ZI),d=HM(this,a);return this.H.then(function(e){return e.Oe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};
_.g.Au=function(a){var b=this,c=TK(a.args[0],!!a.H,_.qJ),d=HM(this,a);return this.H.then(function(e){return e.Oe(c,d).then(function(f){return _.lI(b.context.Xc)?hyc(b.context.Cf.Jq,f):f})}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.dGb=function(a){var b=this,c=TK(a.args[0],!!a.H,_.UAc),d=new _.xhc(c,a.args[1],a.args[2]||void 0),e=HM(this,a);return this.H.then(function(f){return f.Oe(d,e)}).then(function(f){return b.Zc([f])},function(f){return b.Zc(void 0,f)})};
_.g.hGb=function(a){var b=this,c=TK(a.args[0],!!a.H,_.pJ),d=HM(this,a);return this.H.then(function(e){return e.Oe(c,d).then(function(f){return _.lI(b.context.Xc)?jyc(b.context.Cf.Jq,f.Zc().zN(),c.jd().getId()).then(function(){return f}):f})}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.RQ=function(){var a=this;return(_.Q(this.context.Xc.Sf(),52,!1)?_.Vh(ywc(new xwc,0)):this.context.TI.RQ()).then(function(b){return a.Zc([b])},function(b){return a.Zc(void 0,b)})};
_.g.fGb=function(a){var b=this,c=TK(a.args[0],!!a.H,_.whc),d=HM(this,a);return this.H.then(function(e){return e.Oe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.eGb=function(a){var b=this,c=TK(a.args[0],!!a.H,_.nJ),d=HM(this,a);return this.H.then(function(e){return e.Oe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};
_.g.l9=function(a){var b=this,c=TK(a.args[0],!!a.H,_.XI),d=HM(this,a);return this.H.then(function(e){return e.Oe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.Noa=function(a){var b=this,c=TK(a.args[0],!!a.H,_.DI),d=HM(this,a);return this.H.then(function(e){return e.Oe(c,d)}).then(function(e){return b.Zc([e,null])},function(e){return b.Zc([null,_.uI(e)])})};_.g.$zb=function(){return this.Zc([!0])};
_.g.jGb=function(a){var b=this,c=TK(a.args[0],!!a.H,_.$F),d=HM(this,a);return this.H.then(function(e){return e.Oe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.kGb=function(a){var b=this,c=TK(a.args[0],!!a.H,_.bA),d=HM(this,a);return this.H.then(function(e){return e.Oe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.r0=function(a){a=TK(a.args[0],!!a.H,_.Df);dFc(this.context.Cf,[a]);return this.Zc([])};
_.g.D8=function(a){var b=this,c=TK(a.args[0],!!a.H,_.TI),d=HM(this,a);return this.H.then(function(e){return e.Oe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.AP=function(a){var b=this,c=TK(a.args[0],!!a.H,_.nM),d=HM(this,a);return this.H.then(function(e){return e.Oe(c,d)}).then(function(e){return tyc(c,e)}).then(function(e){return b.Zc(e)},function(e){return b.Zc(void 0,e)})};
_.g.iGb=function(a){var b=this,c=new _.Ehc(TK(a.args[0],!!a.H,_.uVb),a.args[1]),d=HM(this,a);return this.H.then(function(e){return e.Oe(c,d)}).then(function(e){return b.Zc([e.response,e.pageToken])},function(e){return b.Zc(void 0,e)})};_.g.gcb=function(a){var b=this,c=TK(a.args[0],!!a.H,_.VF),d=HM(this,a);return this.H.then(function(e){return e.Oe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};
_.g.R0=function(a){var b=this,c=TK(a.args[0],!!a.H,_.gK),d=HM(this,a);return this.H.then(function(e){return e.Oe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.Do=function(a){var b=a.args.map(function(c){return TK(c,!!a.H,_.pI)});this.context.Cf.Do(b);SFc(this.context.Cf);return this.Zc([])};_.g.E8=function(){var a=this,b=this.context.wz;return(b?b.IM():_.Vh(_.pkc(0))).then(function(c){return a.Zc([c])},function(c){return a.Zc(void 0,c)})};
_.g.initialize=function(){var a=this;if(!this.O){this.O=_.Yh();this.context.Be().info("drive.ds.sync.cacheproxy.WorkerSyncedItemService","Initializing with client build: "+this.context.Xc.Ki());this.Oc.listen(this.context,_.ad,function(e){e=e.error;var f=e.qg;f&&3===f.getType()&&!a.ha?(a.ha=!0,a.O.reject(e)):ksc(a.context.Be(),"drive.ds.sync.cacheproxy.WorkerSyncedItemService","An error occurred in the Shared Worker")});var b=this.context.Oj,c=["hVFf7"];_.XJ(this.context.Xc)&&c.push("BNEDtc");NL(b,
c,function(){a.ha||(a.ha=!0,a.O.resolve())});NL(b,["GZTDpc"],function(){return a.Ba.resolve()});var d=function(){xM(a.context).then(function(e){return void e.start()})};NL(b,["T8oKm",_.VJ(this.context.Xc)?"BNEDtc":"ZA9qG"],function(){return void d()});NL(b,["T8oKm","mrK8ic"],function(){return void d()});b.start();OL(b,"NSockf")}return this.O.promise};_.g.kca=function(){return this.Ba.promise};_.g.Xu=function(){var a=this.context.c7;a&&a.dispose();return this.context.Xu()};
var HM=function(a,b){return(a=a.context.H[b.clientId])?{aE:a}:{}};
var FKc=function(a,b,c){FM.call(this,"DU",b);this.context=a;this.O=c;this.H=new iDc(a)};_.J(FKc,FM);_.g=FKc.prototype;
_.g.yV=function(){var a=this,b={};return b["5.1"]=function(){return a.Pia()},b["5.2"]=function(c){return a.gN(c)},b["5.4"]=function(c){return a.Uz(c)},b["5.5"]=function(){return a.SR()},b["5.10"]=function(){return a.GN()},b["5.6"]=function(){return a.cea()},b["5.7"]=function(){return a.ET()},b["5.9"]=function(c){return a.Sqa(c)},b["5.8"]=function(c){return a.R5(c)},b["5.11"]=function(){return a.mqa()},b["5.12"]=function(c){return a.getState(c)},b["5.13"]=function(c){return a.Il(c)},b};
_.g.Pia=function(){var a=this;this.context.Ws.YS();var b=this.context.Xc;return tAc(_.UJ(_.eI(b)),_.WJ(b),this.context.Be()).then(null,function(){}).then(function(){return a.Zc([])})};_.g.gN=function(a){a=this.context.Cf.Yl.H(a.args[0]);return this.Zc([a])};_.g.Uz=function(a){var b=this;return this.context.hB.Uz(a.args[0]).then(function(c){return b.Zc([c])})};_.g.SR=function(){return this.Zc(this.context.hB.SR())};
_.g.R5=function(a){var b=this,c=TK(a.args[0],!!a.H,_.Rfc),d=a.args[1],e=a.args[2];if(_.Gj(c,_.mI,3,_.nI)||_.Gj(c,_.EJ,4,_.nI)||_.Gj(c,_.tK,5,_.nI)||_.Gj(c,_.BJ,6,_.nI)||_.Gj(c,_.aJ,7,_.nI)||_.Gj(c,_.UI,8,_.nI)||_.Gj(c,_.YI,9,_.nI)||_.Gj(c,_.wI,10,_.nI)){var f=Gwc(c);return this.context.Hm().then(function(h){return h.Oe(f,{S8a:d,T8a:e})}).then(function(h){a:{var k=[],l="";if(h instanceof _.uK){k=h.Zc().Bd();var p=_.y(h,2);l=h.Zn()}else if(h instanceof _.GJ)h.getItem()&&k.push(h.getItem()),p=h.nN();
else{h=b.Zc(void 0,Error("xg"));break a}h=b.Zc([p,l].concat(_.fc(k)))}return h},function(h){return b.Zc(void 0,h)})}return _.Vh(this.Zc(void 0,Error("wg")))};_.g.Sqa=function(){var a=this.context.Xc,b=a.Sf();a="email:"+_.eI(a).getEmail().replace(/@.*$/,"");_.u(b,13,a);return this.Zc([])};_.g.cea=function(){this.context.sG.H=new izc(_.oh().substring(0,8));return this.Zc([])};
_.g.ET=function(){var a=this.context.sG.GN();if(a){var b=kzc(this.context.sG);a=[a.H,a.startTime].concat(_.fc(b))}else a=[];b=this.context.sG;b.H=null;b.rZ=[];return this.Zc(a)};_.g.GN=function(){var a=this.context.sG.GN();return this.Zc(a?[a.H,a.startTime]:[])};_.g.getState=function(){var a=this;return this.H.getState(this.wa).then(function(b){return a.Zc([b])})};_.g.mqa=function(){var a=[this.O.Xu(),_.Ci(3E4)];_.Zh(_.yka(a),function(){_.aa.setTimeout(function(){self.close()})});return this.Zc([])};
_.g.Il=function(a){this.H.Il(a.args[0]);return this.Zc([])};
var GKc=function(a,b,c,d,e,f,h){_.HK.call(this,a,b,c,d,f,h);this.H=e;this.Xf=null};_.J(GKc,_.HK);GKc.prototype.QM=function(a,b){var c=this;return _.fi(this.H.then(function(d){return d.i5a(xnc(c.O,c.Ba,a,b,c.aj,c.ka))},null))};GKc.prototype.ta=function(a,b){var c=this.jd(a);if(c){var d=0;if(c.file){var e=c.request&&c.request.Uz();e&&(d=_.y(e,1));0===d&&(d=c.file.size)}this.dispatchEvent(new _.Wkc(a,b,d))}};
var HKc=function(a,b,c,d,e,f,h,k){FM.call(this,"FU",k);this.ka=a;this.ha=b;this.ta=c;this.Ba=d;this.W=e;this.ma=f;this.Xf=h;this.H={};this.O={};this.Oc=new _.of(this);this.Ja(this.Oc)};_.J(HKc,FM);_.g=HKc.prototype;
_.g.yV=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.HG(c)},b["7.4"]=function(c){return a.retry(c)},b["7.5"]=function(c){return a.QM(c)},b["7.6"]=function(c){c=c.clientId+":"+c.requestId;a.H[c]&&(a.H[c].dispose(),delete a.H[c]);return a.Zc([])},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.Zc([])},b};
_.g.upload=function(a){var b=this,c=a.clientId+":"+a.requestId,d=TK(a.args[0],!!a.H,_.UI),e=a.args[1];if(!this.H[c]){var f=new GKc(this.ka,this.ha,this.ta,this.Ba,this.W,this.ma,this.Xf);this.Oc.listen(f,"Cb",_.Ob(this.hcb,a.clientId,a.requestId));this.Ja(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.lj(),r=_.Yh();b.O[q]=r;b.update(l,p,IKc(3,q,[h,k]));return r.promise}).then(function(h){return b.Zc([h])},function(h){return b.Zc(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.Zc([])};_.g.HG=function(a){a=a.clientId+":"+a.requestId;this.H[a]&&this.H[a].HG();return this.Zc([])};
_.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;_.Ma(f,function(p){k[p]=h[l++]});_.Ta(k,function(p,q){p.dg(function(r){b.update(a.clientId,c,IKc(0,e,[q,r]))},function(r){b.update(a.clientId,c,IKc(1,e,[q,r.qg]))})});return this.Zc([])}return this.Zc(void 0,_.uI("Could not retry upload."))};
_.g.QM=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=xnc(b.O,b.Ba,c,a,b.aj,b.ka),this.Zc([Coc(c)])):this.Zc(void 0,_.uI("FileUploader not found."))};_.g.hcb=function(a,b,c){this.update(a,b,IKc(2,c.requestId,[c.progress,c.totalBytes]))};var IKc=function(a,b,c){return[Number(a),b].concat(_.fc(c))};
var JKc=function(a,b){FM.call(this,"IE",b);this.O=a;this.H=new Map};_.J(JKc,FM);JKc.prototype.yV=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};
JKc.prototype.export=function(a){var b=this,c=a.requestId,d=a.clientId+":"+c,e=TK(a.args[0],!!a.H,_.vhc);e=new sM(this.O,e);var f=_.df(e,"Gb",function(h){b.update(a.clientId,c,[h.percentDone,h.kva])});_.ff(e,function(){_.ui(f);b.H.delete(d)});this.H.set(d,e);return e.start().then(function(h){return b.Zc([h])},function(h){return b.Zc(void 0,h)})};JKc.prototype.cancel=function(a){(a=this.H.get(a.clientId+":"+a.requestId))&&a.cancel();return this.Zc([])};
var KKc=function(a,b){FM.call(this,"ODS",b);this.context=a;this.H=!1;this.W=_.Yh();this.O=new nDc(a,a.Cg)};_.J(KKc,FM);KKc.prototype.yV=function(){var a=this,b={};return b["6.1"]=function(c){return LKc(a,c)},b["6.2"]=function(c){return MKc(a,c)},b["6.3"]=function(){a.H&&(qDc(a.O),a.H=!1,a.W=_.Yh());return a.Zc([])},b};
var LKc=function(a,b){if(!a.H){a.H=!0;var c=b.args.map(function(d){return TK(d,!!b.H,_.Ik)});a.O.$k(c);OL(a.context.Oj,"GZTDpc");a.W.resolve()}return a.Zc([])},MKc=function(a,b){return a.W.promise.then(function(){var c=b.args.map(function(d){return TK(d,!!b.H,_.pI)});pDc(a.O,c);return a.Zc([])})};
var NKc=function(){var a=this;this.services=new Map;"IS LRM DU ODS FU IE TM".split(" ").forEach(function(b){if(a.services.has(b))throw Error("Zg`"+b);a.services.set(b,new _.$h)})};NKc.prototype.activate=function(a){var b=this.services.get(a.V);if(b&&!b.Vf())b.callback(a);else throw Error("$g`"+a.V);};var OKc=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)})};NKc.prototype.Ho=function(){return[].concat(_.fc(this.services.values())).every(function(a){return a.Vf()})};
var PKc=function(){},QKc={0:2E3,1:3E3,2:5E3},RKc=function(a,b){this.request=a;this.ha=b;this.O=_.Yh();this.continuationToken="";this.V=0;this.$E=this.W=!1;this.H=PKc};RKc.prototype.lh=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=PKc;b.V=0;return c},function(c){b.H=PKc;b.V=0;return Promise.reject(c)})};
RKc.prototype.sendRequest=function(){var a=this;if(this.$E)this.O.resolve((new UK).Dc(8));else{var b=new _.Ihc(this.request,this.continuationToken);this.ha.then(function(c){return c.Oe(b)}).then(function(c){SKc(a,c)},function(c){a.handleError(c)})}};var SKc=function(a,b){var c;a.continuationToken=null!==(c=b.Zn())&&void 0!==c?c:"";a.H(b);a.continuationToken?setTimeout(function(){a.sendRequest()},TKc(a.V++,a.ka)):a.O.resolve(b)};RKc.prototype.handleError=function(a){a=_.wd(a);this.O.reject(a)};
RKc.prototype.cancel=function(){this.$E=!0};var TKc=function(a,b){return b?b:(a=QKc[a])?a:1E4};
var UKc=function(a,b){FM.call(this,"TM",b);this.O=a;this.H=new Map};_.J(UKc,FM);UKc.prototype.yV=function(){var a=this,b={};return b["10.1"]=function(c){return VKc(a,c)},b["10.2"]=function(c){return a.cancel(c)},b};
var VKc=function(a,b){var c=b.clientId+":"+b.requestId,d=TK(b.args[0],!!b.H,_.sCc);d=new RKc(d,a.O);a.H.set(c,d);d=d.lh(function(e){var f;a.update(b.clientId,null!==(f=b.requestId)&&void 0!==f?f:"",[e])}).then(function(e){return a.Zc([e])},function(e){return a.Zc(void 0,e)});d.then(function(){a.H.delete(c)},function(){a.H.delete(c)});return d};UKc.prototype.cancel=function(a){this.H.get(a.clientId+":"+a.requestId).cancel();return this.Zc([])};
var IM=function(a,b,c){_.L.call(this);this.H=a;this.Mw=b;this.kb=c;this.fields=null;this.Ia=!1;this.La=_.Yh();this.W=!1;this.Ba=_.Yh();this.O=_.Yh();this.ta=null;this.wa=this.Ua=!1;this.yb=_.Yh();this.ha=new Set;this.Ga=new Set;this.V=new Map;this.ma=new Set;this.lz=Date.now();this.services=new NKc;this.Jb=new _.of(this);this.Ja(this.Jb)};_.J(IM,_.L);IM.prototype.ZY=function(a){this.O.promise.then(function(b){b.c7||a.bPa(b)})};
var ZKc=function(a,b){var c=eKc(a.H,b),d=a.Qb.bind(a,c);DL(b,"8.1",d);b.registerService("8.1",d);DL(b,"8.4",a.Qa.bind(a,c));b.registerService("8.5",function(f){return WKc(a,c,f)});DL(b,"8.2",a.Gb.bind(a,c));DL(b,"8.3",a.Kb.bind(a,c));OKc(a.services,b);b.start();XKc(a,c,b);a.ka(c,b);var e=[];a.ta||(a.ta=_.Xh([a.La.promise,a.Ba.promise]).then((0,_.K)(a.initialize,a)));e.push(a.ta);_.Xh(e).then(function(){return void YKc(a,c,b)},function(f){a.Ua=!0;EL(b,"2.2",{err:_.uI(f).Hc()},d)})},$Kc=function(a){return Math.floor((Date.now()-
a.lz)/1E3)},aLc=function(a,b,c){var d=function(e){EL(b,"2.8",{au:"fb"===e.type})};a.Jb.listen(c.TI,["fb","gb"],d);_.ff(b,a.Jb.Tc.bind(a.Jb,c.TI,["fb","gb"],d))},bLc=function(a,b,c){var d=c.xk(),e=[].concat(_.fc(Object.values(_.VB))),f=function(h){EL(b,"2.19",{cs:h.connectionState})};a.Jb.listen(d,e,f);_.ff(b,function(){a.Jb.Tc(d,e,f)})};
IM.prototype.Qb=function(a){var b=fKc(this.H,a);if(b&&((this.services.services.get("LRM")||null).addCallback(function(d){iKc(d,a)}),b.dispose(),this.log((0,_.Xs)("Client %d disconnected (num clients remaining: %d)",a,_.Xa(this.H.channels))),0===_.Xa(this.H.channels))){var c=function(){_.aa.setTimeout(function(){self.close()})};this.Ua?c():(this.services.services.get("IS")||null).addCallback(function(d){d.Xu().then(c,c)})}};
IM.prototype.Qa=function(a,b){if(this.ha.has(a))return _.Vh();var c=new _.Pc(JSON.parse(b.dsc));_.u(c,24,!1);this.Ia||(this.Ia=!0,this.La.resolve(c));this.ha.add(a);return this.O.promise.then(function(d){$Jc(d,a,_.z(c.Sf(),37,""));ZJc(d,_.se(c,28));d.Cf.yma(_.yb(c,_.jl,91));return d.pY.promise.then(function(){dFc(d.Cf,_.yb(c,_.Df,44))})},function(){})};
IM.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 fEc(e,e.Cg);e.lh(d);e.dispose();(e=c.H.channels[a]||null)&&EL(e,"2.16")})}};IM.prototype.Kb=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){cLc(new LEc(h),e);(h=c.H.channels[a]||null)&&EL(h,"2.17",{t:f})})}};
var cLc=function(a,b){b.filter(function(c){return c}).forEach(function(c){return a.lh(c)});a.dispose()};IM.prototype.$a=function(){for(var a=[],b={},c=_.m(_.Ya(this.H.channels)),d=c.next();!d.done;b={bfa:b.bfa,Gfa:b.Gfa},d=c.next())b.bfa=d.value,b.Gfa=_.Yh(),EL(b.bfa,"2.12",void 0,function(e){return function(){e.bfa.dispose();e.Gfa.resolve()}}(b)),a.push(b.Gfa.promise);return _.Xh(a).then()};
IM.prototype.initialize=function(a){var b=this;a=a[0];_.Iic(a,this.fields);var c=_.x(a,_.HI,58);c=c&&_.Q(c,1,!1)?this.kb:void 0;try{var d=new XK(null,a,this.Mw,c,void 0,void 0),e=d.lk().H(106E3);GJc(d,this.$a.bind(this));this.Jb.listen(d.Jj(),"rb",function(k){k={os:k.Le()};for(var l=_.m(_.Ya(b.H.channels)),p=l.next();!p.done;p=l.next())EL(p.value,"2.6",k)});this.Jb.listen(d,_.ad,this.ob);this.Jb.listen(d,"w8KrJc",this.Ec);Dwc(d.TI,this.ka.bind(this));var f=d.wz;f&&Asc(f,function(){return b.ka()});
this.O.resolve(d);var h=dLc(this,d,new EKc(d,this.H,(0,_.K)(this.jc,this),(0,_.K)(this.tc,this)));e&&h.then(function(){return e&&e.Cj()});return h}catch(k){return _.Wh(k)}};
var dLc=function(a,b,c){a.services.activate(c);a.services.activate(new gKc(b,a.H));a.services.activate(new FKc(b,a.H,c));a.services.activate(new KKc(b,a.H));a.services.activate(new HKc(b.Xc,b.hB,b.RR().mga,b.Hm(),b.KQ,b.Be(),b.lk(),a.H));a.services.activate(new JKc(b.Hm(),a.H));a.services.activate(new UKc(b.Hm(),a.H));return c.initialize()},YKc=function(a,b,c){var d=_.Xa(a.H.channels);a.log((0,_.Xs)("Client %d connected (num clients: %d, added: %d, max concurrent: %d)",b,d,a.H.O,a.H.H));EL(c,"2.2",
{id:b,clients:d,uptimeSec:$Kc(a),dsp:!a.V.has(b),ivd:!a.ma.has(b)});a.O.promise.then(function(e){e.I_.addCallback(function(f){c.isDisposed()||EL(c,"2.5",{id:f})});1<d&&xM(e).addCallback(function(f){return f.Lxa()});(a.services.services.get("IS")||null).addCallback(function(f){f.kca().then(function(){c.isDisposed()||EL(c,"2.14")})});aLc(a,c,e);bLc(a,c,e)})};IM.prototype.jc=function(a){a={dt:a.dataType};for(var b=_.m(_.Ya(this.H.channels)),c=b.next();!c.done;c=b.next())EL(c.value,"2.15",a)};
IM.prototype.tc=function(a){var b={oois:a};_.Ya(this.H.channels).forEach(function(c){EL(c,"2.18",b)})};IM.prototype.ob=function(a){a={p:a.error.qg.Hc()};for(var b=_.m(_.Ya(this.H.channels)),c=b.next();!c.done;c=b.next())EL(c.value,"2.10",a)};IM.prototype.Ec=function(){for(var a=_.m(_.Ya(this.H.channels)),b=a.next();!b.done;b=a.next())EL(b.value,"2.7")};var XKc=function(a,b,c){a.ha.has(b)?_.Vh():new _.Uh(function(d){EL(c,"2.1",void 0,function(e){d(a.Qa(b,e))})})};
IM.prototype.ka=function(a,b){var c=this;if("number"===typeof a){if(!b)return _.Wh(Error("ah"));if(this.W&&this.Ga.has(a))return _.Vh()}b=b||_.Ya(this.H.channels)[0];if(!b)return _.Wh(Error("bh"));var d=_.Yh();b.send("1.1",void 0,function(e){WKc(c,a,e);d.resolve()});return d.promise};var WKc=function(a,b,c){_.Ta(c.ac,function(d,e){_.aa[e]=d});"number"===typeof b&&a.Ga.add(b);a.W||(c.bl&&!a.wa&&(a.wa=!0,a.yb.resolve(c.bl)),a.fields||(a.fields=c.ufds),a.W=!0,a.Ba.resolve())};
IM.prototype.log=function(a){this.O.promise.then(function(b){return b.Be().info("drive.ds.sync.cacheproxy.Worker",a)})};
var eLc=function(a,b){EM.call(this,"DU","drive.ds.sync.DebugUtilProxy",a);this.context=b;this.H=null};_.J(eLc,EM);_.g=eLc.prototype;_.g.Ka=function(){return _.x(this.context.Xc,_.HI,58)};_.g.getContext=function(){return this.context};_.g.Uz=function(){return _.fi(this.send("5.4",[this.H],function(a,b){return TK(a[0],b,_.tjc)}))};_.g.Be=function(){return this.context.Be()};_.g.gN=function(a){return _.fi(this.send("5.2",[a],function(b,c){return b[0]?TK(b[0],c,_.Ik):null}))};
_.g.SR=function(){return _.fi(this.send("5.5",[],function(a,b){return a.map(function(c){return TK(c,b,_.Rfc)})}))};_.g.R5=function(a,b,c){return _.fi(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 TK(k,e,_.Ik)}),tja:f,pageToken:h}}))};_.g.Sqa=function(){this.send("5.9",[])};_.g.Pia=function(){this.send("5.1",[])};_.g.tka=function(){return _.Bgc[_.oj(this.context.Xc.Sf(),8,0)]};_.g.cea=function(){this.send("5.6",[])};
_.g.ET=function(){return _.fi(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 TK(e,b,Hwc)});return{traceId:new izc(c,d),spanRecs:a}}))};_.g.GN=function(){return _.fi(this.send("5.10",[],function(a){return 0===a.length?null:new izc(a[0],new Date(a[1]))}))};_.g.getState=function(){return _.fi(this.send("5.12",[],function(a){return a[0]}))};_.g.mqa=function(){this.send("5.11",[])};_.g.Il=function(a){this.send("5.13",[a])};
var fLc=function(a,b){EM.call(this,"IE","drive.ds.sync.itemexport.ItemExportSessionProxy",a);this.request=b;this.promise=null;this.id=String(_.Fa(this))};_.J(fLc,EM);fLc.prototype.start=function(){var a=this;this.promise||(this.promise=this.send("9.1",[this.request],function(b,c){return TK(b[0],c,bCc)},this.id).then(),this.promise.then(function(){return a.dispose()},function(){return a.dispose()}));return this.promise};fLc.prototype.cancel=function(){this.send("9.2",[],void 0,this.id)};
fLc.prototype.zaa=function(a,b,c){this.dispatchEvent(new KCc(c[0],c[1]))};
var gLc=function(a){EM.call(this,"ODS","drive.ds.sync.offline.DataServiceProxy",a);this.H=null};_.J(gLc,EM);gLc.prototype.bZ=function(a){var b=this;(this.H=a)?(this.log("Querying all offline items."),this.H.dW().dg(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.t0(function(c){b.log("Forwarding offline items changes, count:"+c.length);b.send("6.2",c)})):this.send("6.3",[])};
var hLc=function(a,b){YL.call(this,a,b)};_.J(hLc,YL);hLc.prototype.hja=function(a,b,c){return new _.Ehc(a,c)};hLc.prototype.tla=function(a){return a.pageToken||""};hLc.prototype.Gka=function(a){return a.response.H()};hLc.prototype.a7=function(){};
var iLc=function(a,b,c){rM.call(this,a.Be(),a.Jj(),a.xk(),b.vi()||void 0);this.request=b;this.logName="drive.ds.sync.PublishedCategoriesLiveList";this.O=[];this.changed=!1;this.ka=c;this.W=new hLc(this.request,this.ka)};_.J(iLc,rM);_.g=iLc.prototype;_.g.pH=function(){this.W.lh().then(this.icb.bind(this),this.handleError.bind(this))};_.g.getData=function(){return YBc(new mM,this.O).Dc(this.status)};_.g.ms=function(){return new IBc};_.g.nk=function(){return!this.Le()&&(!this.H||vyc(this.W))};
_.g.icb=function(a){this.changed=this.H=!0;this.O=a;this.gu()};_.g.gu=function(){if(this.active){var a=this.status;this.aM();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ni(_.bd,this))}};_.g.Yb=function(){return this.O.length};
var jLc=function(a,b,c){rM.call(this,a.Be(),a.Jj(),a.xk(),b.vi()||10);this.request=b;this.logName="drive.ds.sync.SuggestedWorkspaceItemQueryLiveList";this.O=[];this.data=[];this.changed=!1;this.W=new _.B7a;this.suggestionSessionId=null;this.ka=c};_.J(jLc,rM);_.g=jLc.prototype;_.g.pH=function(){var a=this;this.ka(this.request).then(function(b){a.H=!0;a.changed=!0;a.data=b.Lh();a.suggestionSessionId=b.Uf();a.gu()},this.handleError.bind(this))};
_.g.getData=function(){this.O=this.data;return _.snc(_.rnc((new _.IK).Dc(this.status),this.data.slice(0)),this.suggestionSessionId)};_.g.ms=function(){var a=_.Jy(this.W,this.O,this.data);this.O=this.data;var b=(new BCc).Dc(this.status);return _.sj(b,2,a)};_.g.xP=function(){};_.g.gu=function(){var a=this.status;this.aM();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ni(_.bd,this))};_.g.Yb=function(){return this.data.length};
var kLc=function(){};_.g=kLc.prototype;_.g.TM=function(a,b){b=RAc(1).setPosition(b);_.F(b,2,a);return b};_.g.RM=function(a,b){b=RAc(2).setPosition(b);_.F(b,2,a);return b};_.g.cF=function(a,b,c){b=RAc(3).iz(b).setPosition(c);_.F(b,2,a);return b};_.g.aR=function(a,b){b=RAc(4).setPosition(b);_.F(b,2,a);return b};_.g.oN=function(a){return _.x(a,_.PAc,2)};
var lLc=function(){_.Ky.call(this,new kLc,function(a){a:switch(_.Bb(a,_.hM)){case 6:a=_.Iy(_.Gj(a,_.Hy,6,_.hM)).getTime().toString();break a;case 7:var b=_.Gj(a,_.gM,7,_.hM);a=_.x(b,_.Hy,1);b=b.Gv();a=a&&b?_.Iy(b).getTime()+"--"+_.Iy(a).getTime():"";break a;default:a=""}return a})};_.J(lLc,_.Ky);var nLc=function(){mLc||(mLc=new lLc);return mLc},mLc;
var oLc=function(a,b,c,d){rM.call(this,b.Be(),b.Jj(),b.xk(),d);this.request=a;this.logName="drive.ds.sync.SyncedActivityQueryLiveList";this.O=!1;this.W=[];this.activities=[];this.token="";this.changed=!1;this.ka=new _.wkc(_.Dj(b.Xc.Sf(),6,1E3));this.ma=c};_.J(oLc,rM);_.g=oLc.prototype;_.g.VP=function(){rM.prototype.VP.call(this);this.gu()};_.g.pH=function(){_.N(this.request,3)?this.page():this.poll()};
_.g.Hu=function(a){if(a=a||50,this.activities.length>this.limit)this.changed=!0;rM.prototype.Hu.call(this,a)};_.g.getData=function(){var a=(new WAc).Dc(this.status);_.sj(a,2,this.activities.slice(0,this.limit));this.W=_.Ba(this.activities);return a};_.g.ms=function(){var a=_.Jy(nLc(),this.W,this.activities),b=new TAc;a=_.sj(b,2,a).Dc(this.status);this.W=_.Ba(this.activities);return a};_.g.nk=function(){return!this.Le()&&(!this.H||this.activities.length>this.limit||!!this.token)};_.g.jd=function(){return this.request};
_.g.page=function(a){var b=this;this.active?(this.O=!0,this.nk()&&this.activities.length<this.limit?this.ma(this.request,this.limit-this.activities.length,this.token).then(function(c){b.H=!0;var d=_.yb(c,_.PAc,1);b.activities=b.activities.concat(d);b.token=c.Gy()||"";0<d.length&&(b.changed=!0);b.gu();b.page(a)},function(c){b.dispatchEvent(new _.Hc(c));b.O=!1}):(this.O=!1,a&&a.callback(),pLc(this))):this.O=!1};
_.g.poll=function(){var a=this;this.active&&(this.O=!0,this.ma(this.request,this.limit).then(function(b){var c=nLc();a.H=!0;var d=_.yb(b,_.PAc,1);aL(c,a.activities.slice(0,d.length),d)?(a.activities=d,a.token=b.Gy()||"",a.changed=!0,a.gu(),a.page()):(a.O=!1,pLc(a))},function(b){a.dispatchEvent(new _.Hc(b));a.O=!1}))};_.g.gu=function(){if(this.active){var a=this.status;this.aM();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ni(_.bd,this))}};
_.g.aM=function(){this.Le()&&!this.H?this.status=2:this.status=this.activities.length<this.limit&&(!this.H||this.token)?6:1};_.g.xP=function(){this.active&&this.nk()&&!this.O&&this.page(new _.$h)};var pLc=function(a){_.N(a.request,3)||(_.YH(a.ka),_.aa.setTimeout((0,_.K)(a.poll,a),a.ka.Wa()))};oLc.prototype.Yb=function(){return this.activities.length};
var qLc=function(){};_.g=qLc.prototype;_.g.TM=function(a,b){return $Ac(ZAc(1),a).setPosition(b)};_.g.RM=function(a,b){return $Ac(ZAc(2).setPosition(b),a)};_.g.cF=function(a,b,c){return $Ac(ZAc(3).iz(b).setPosition(c),a)};_.g.aR=function(a,b){return $Ac(ZAc(4),a).setPosition(b)};_.g.oN=function(a){return _.x(a,_.FL,2)};
var rLc=function(){_.Ky.call(this,new qLc,function(a){return a.getId()})};_.J(rLc,_.Ky);var tLc=function(){sLc||(sLc=new rLc);return sLc},sLc;
var uLc=function(a,b,c){rM.call(this,b.Be(),b.Jj(),b.xk());this.request=a;this.logName="drive.ds.sync.SyncedBackupsQueryLiveList";this.W=[];this.backups=[];this.changed=!1;this.O=new _.wkc(_.Dj(b.Xc.Sf(),54,1E3));this.ka=c};_.J(uLc,rM);_.g=uLc.prototype;_.g.activate=function(){rM.prototype.activate.call(this);this.gu()};_.g.pH=function(){this.poll()};_.g.getData=function(){var a=new fBc;a=_.sj(a,2,this.backups).Dc(this.status);this.W=_.Ba(this.backups);return a};
_.g.ms=function(){var a=_.Jy(tLc(),this.W,this.backups),b=new dBc;a=_.sj(b,2,a).Dc(this.status);this.W=_.Ba(this.backups);return a};_.g.nk=function(){return!this.Le()&&!this.H};_.g.poll=function(){var a=this,b=new _.$h;this.ka(this.request).then(function(c){a.H=!0;c=_.yb(c,_.FL,2);aL(tLc(),a.backups,c)&&(a.changed=!0,a.backups=c,a.O.reset());a.gu();b.callback();vLc(a)},function(c){a.dispatchEvent(new _.Hc(c));b.Gd(c);vLc(a)});return b};
_.g.gu=function(){if(this.active){var a=this.status;this.aM();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ni(_.bd,this))}};_.g.xP=function(){};var vLc=function(a){a.active&&(_.aa.setTimeout((0,_.K)(a.poll,a),a.O.Wa()),_.YH(a.O))};uLc.prototype.Yb=function(){return this.backups.length};
var wLc=function(){};_.g=wLc.prototype;_.g.TM=function(a,b){return hCc(gCc(1),a).setPosition(b)};_.g.RM=function(a,b){return hCc(gCc(2).setPosition(b),a)};_.g.cF=function(a,b,c){return hCc(gCc(3).iz(b).setPosition(c),a)};_.g.aR=function(a,b){return hCc(gCc(4),a).setPosition(b)};_.g.oN=function(a){return _.x(a,_.vk,2)};
var xLc=function(){_.Ky.call(this,new wLc,function(a){return a.getId()})};_.J(xLc,_.Ky);
var JM=function(a,b,c){_.yi.call(this);this.context=a;this.request=b;this.nextPageToken="";this.H=this.O=!1;this.limit=0;this.permissions=[];this.V=c};_.J(JM,_.yi);JM.prototype.Fi=function(a){this.limit=a};JM.prototype.lh=function(){return this.H||this.O&&""===this.nextPageToken?Promise.resolve():yLc(this)};JM.prototype.vla=function(){return this.permissions};
var yLc=function(a){a.O=!0;a.H=!0;var b=Math.min(a.limit-a.permissions.length,100);var c=new _.pJ;c=_.F(c,3,a.request);c=_.u(c,2,a.nextPageToken);b=_.u(c,1,b);return a.V(b).then(a.W.bind(a)).then(null,a.handleError.bind(a))};JM.prototype.W=function(a){this.H=!1;this.nextPageToken=a.Zn()||"";a=a.Zc().zN();this.permissions=_.Aa(this.permissions,a);a.length&&this.dispatchEvent("wb");if(this.nextPageToken&&this.permissions.length<this.limit)return yLc(this);this.dispatchEvent("zb")};
JM.prototype.handleError=function(a){this.H=!1;a=new XL(_.uI(a),_.Dj(this.context.Xc.Sf(),1,1));this.dispatchEvent(a)};
var zLc=function(a,b,c,d){rM.call(this,b.Be(),b.Jj(),b.xk(),d||100);var e=this;this.request=a;this.context=b;this.logName="drive.ds.sync.SyncedPermissionQueryLiveList";this.ka=[];this.permissions=[];this.changed=!1;this.W=null;this.ma=c;this.O=new JM(b,this.request,this.ma);_.ff(this,function(){e.W&&(_.aa.clearTimeout(e.W),e.W=null)})};_.J(zLc,rM);_.g=zLc.prototype;_.g.activate=function(){rM.prototype.activate.call(this);this.gu()};_.g.pH=function(){this.query()};
_.g.Hu=function(a){rM.prototype.Hu.call(this,a||100)};_.g.getData=function(){var a=Dsc(new Csc,this.permissions.slice(0,this.limit)).Dc(this.status);this.ka=_.Ba(this.permissions);return a};_.g.ms=function(){var a=_.Jy(_.Xl(xLc),this.ka,this.permissions),b=new jCc;a=_.sj(b,2,a).Dc(this.status);this.ka=_.Ba(this.permissions);return a};_.g.nk=function(){var a;(a=!this.Le())&&!(a=!this.H)&&(a=this.O,a=!a.O||""!==a.nextPageToken);return a};_.g.jd=function(){return this.request};
_.g.query=function(){var a=this;this.O=new JM(this.context,this.request,this.ma);this.O.Fi(this.limit);return this.O.lh().then(function(){return ALc(a)},function(b){return a.handleError(b)})};_.g.handleError=function(a){rM.prototype.handleError.call(this,a);BLc(this)};var ALc=function(a){a.H=!0;var b=a.O.vla();aL(_.Xl(xLc),a.permissions,b)&&(a.changed=!0,a.permissions=b);a.gu();BLc(a)};
zLc.prototype.gu=function(){if(this.active){var a=this.status;this.aM();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ni(_.bd,this))}};zLc.prototype.xP=function(){var a=this;this.O.Fi(this.limit);this.O.lh().then(function(){return ALc(a)},function(b){return a.handleError(b)})};var BLc=function(a){if(a.active){var b=a.context.Xc.Sf();a.W=_.aa.setTimeout((0,_.K)(a.query,a),Math.ceil(_.Dj(b,7,9E5)*Math.random())+_.Dj(b,15,36E5))}};zLc.prototype.Yb=function(){return this.permissions.length};
var CLc=function(a){6!==a.status&&_.aa.setTimeout(function(){a.dispatchEvent(new _.ni(_.bd,a))},0)};
var DLc=function(){},ELc=function(a,b){EM.call(this,"TM","drive.ds.sync.TeamDriveMovePreflightRunnerProxy",a);this.request=b;this.O=DLc;this.H=null;this.id=String(_.Fa(this))};_.J(ELc,EM);ELc.prototype.zaa=function(a,b,c){a===this.id&&(a=_.m(c).next().value,this.O(TK(a,b,UK)))};ELc.prototype.lh=function(a){a=void 0===a?DLc:a;if(!this.H){this.O=a;var b=_.Yh();this.H=b;this.send("10.1",[this.request],function(c,d){return TK(c[0],d,UK)},this.id).then(function(c){return void b.resolve(c)},function(c){return void b.reject(c)})}return this.H.promise};
ELc.prototype.cancel=function(){this.send("10.2",[this.request],void 0,this.id)};
var FLc=function(a,b,c){_.yi.call(this);var d=this;this.instanceId=a;this.H=b;this.O=c;this.Qu={};this.files={};_.ff(this,function(){d.H("7.6",[])})};_.J(FLc,_.yi);_.g=FLc.prototype;_.g.getId=function(){return this.instanceId};_.g.$Q=function(){return _.EI()};
_.g.upload=function(a,b){!_.y(a,26)&&b&&b.lastModified&&_.u(a,26,b.lastModified);var c;b&&(c=b.type?b:new File([b],b.name,{type:b.type}));if(b){var d=new _.Mic;_.u(d,1,b.size);_.F(a,15,d);this.files[a.lj()]=b}return _.fi(this.H("7.1",[a,c],function(e,f){return TK(e[0],f,_.GJ)}))};_.g.cancel=function(a){this.H("7.2",[a])};_.g.HG=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 _.$h;c=this.$Q();this.Qu[c]=b;b=_.Ya(b);this.H("7.4",[c].concat(_.fc(a)));return b};_.g.QM=function(a,b){var c=this;return _.fi(this.H("7.5",[a].concat(_.fc(b)),function(d){return Doc(d[0])}).then(function(d){return c.O.addCallback(function(e){return e.i5a(d)})}))};var GLc=function(a,b,c,d){if(a.Qu[b]&&a.Qu[b][c]){var e=a.Qu[b][c];d instanceof _.GJ?e.callback(d):e.Gd(d);delete a.Qu[b][c];_.ab(a.Qu[b])&&delete a.Qu[b]}};
var HLc=function(a,b){EM.call(this,"FU","drive.ds.sync.upload.FileUploaderProxyManager",a);this.O=b;this.H=new Map};_.J(HLc,EM);var ILc=function(a){var b=_.EI(),c=new FLc(b,function(d,e,f){return a.send(d,e,f,b)},a.O);a.H.set(b,c);_.ff(c,function(){return void a.H.delete(b)});return c};
HLc.prototype.zaa=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.files[d];a.H("7.7",[d,_.Vgc(c,b,Math.min(c.size,b+e))]);break;case 0:b=TK(e[1],b,_.GJ);GLc(a,d,e[0],b);break;case 1:b=new _.Gc(void 0,TK(e[1],b,_.Fc));GLc(a,d,e[0],b);break;case 2:a.dispatchEvent(new _.Wkc(d,e[0],e[1]));break;default:throw Error("ch");}}};
var JLc=function(a,b){if(0===a.length)throw new _.Gc("mutateUserPref requires a namespace.",_.MI(3));var c=null;b instanceof _.pD?c=(b=(b=_.x(b,_.Vo,1))&&b.getKey())&&_.Wo(b)||null:b instanceof _.oD&&(c=(b=b.getKey())&&_.Wo(b)||null);if(!c||!a.find(function(d){return d===c}))throw new _.Gc("mutateUserPref unsupported for namespace: "+c,_.MI(3));};
var KLc=function(a){this.H=a};
var Bpc=function(a){EM.call(this,"IS","drive.ds.sync.ItemServiceProxy",(LLc=_.Yh()).promise);var b=this;this.ta=null;this.Qa=this.Ua=this.$a=this.ma=!1;this.ha=this.ka=this.W=null;this.kb=new _.en;this.La=new _.en;this.V=LLc;LLc=void 0;this.context=a;IJc(this.context,new gLc(this.V.promise));osc(this.context.Cg,_.se(this.context.Xc,28));this.H=this.context.Jta;this.O=new jKc(this.V.promise,this.context,this.H);this.ob=new HLc(this.V.promise,this.context.KQ);this.Ia=new eLc(this.V.promise,this.context);
this.Oc=new _.of(this);this.Ja(this.Oc);this.Oc.listen(this.context.xk(),[].concat(_.fc(Object.values(_.VB))),function(c){return void b.dispatchEvent(c)})},LLc;_.J(Bpc,EM);
Bpc.prototype.initialize=function(){var a=this;if(!this.ta){this.ta=this.wa.promise;var b=this.context.lk().H(106E3);this.ta.then(function(){b&&b.Cj();a.U3a()},function(){_.rK(a.context.lk(),181008852)});this.context.Be().info("drive.ds.sync.ItemServiceProxy","Initializing "+(_.XJ(this.context.Xc)?"(coldstart) ":"")+"with client build: "+this.context.Xc.Ki());var c=poc(this.context.Xc,this.Ni(),_.bK(this.context.Cg));MLc(this,c);if(2===c.H){var d=new IM(new dKc,6,this.context.Be());ZKc(d,c.O);this.La.resolve(d)}else Uoc(this.Ia);
this.context.Be().info("drive.ds.sync.ItemServiceProxy","Connecting to worker: "+c.endpoint);c.channel.start();GJc(this.context,function(){return NLc(c.channel)})}return this.ta};
var NLc=function(a){return _.yka([new _.Uh(function(b){a.isDisposed()||EL(a,"8.1",void 0,function(){a.dispose();b()})}),_.Ci(1E4)])},MLc=function(a,b){var c=b.channel;0===b.H?c.registerService("2.0",function(){return{uid:a.Ni(),fds:_.bK(a.context.Cg)}}):c.registerService("1.1",function(){return OLc(a,b)});2===b.H?a.La.promise.then(function(){return void PLc(a,b)}):PLc(a,b);DL(c,"2.1",function(){return{dsc:a.context.Xc.Hc()}});DL(c,"2.2",function(d){"number"===typeof d.id?(a.V.resolve(new cKc(d.id,
c,a.context.Be(),d.clients)),d.dsp&&QLc(c),d.ivd&&RLc(a,c)):(d=new _.Fc(JSON.parse(d.err)),a.wa.reject(new _.Gc("Unable to initialize dataservice.",d)))});DL(c,"2.15",function(d){a.dispatchEvent(new JCc(d.dt))});DL(c,"2.5",function(d){a.context.kz(d.id)});DL(c,"2.6",function(d){a.context.Jj().Il(d.os)});DL(c,"2.18",function(d){a.context.Jj().hz(d.oois)});DL(c,"2.7",function(){a.ma=!1});DL(c,"2.8",function(d){a.context.Ga=d.au;a.dispatchEvent(new gtc(d.au?"fb":"gb"))});DL(c,"2.19",function(d){a.context.xk().update(d.cs)});
DL(c,"2.9",function(d){var e=d.logName,f=d.level;d=(0,_.Xs)("[CSW %s] %s",d.totalTime,d.message);switch(f){case "config":a.context.Be().config(e,d);break;case "fine":_.$J(a.context.Be(),e,d,"fine");break;case "finer":_.$J(a.context.Be(),e,d,"finer");break;case "finest":_.$J(a.context.Be(),e,d,"finest");break;case "info":a.context.Be().info(e,d);break;case "warning":case "severe":ksc(a.context.Be(),e,d);break;default:ksc(a.context.Be(),"drive.ds.sync.ItemServiceProxy","Unknown log level: "+f),ksc(a.context.Be(),
e,d)}});DL(c,"2.10",function(d){return void a.vaa(d)});DL(c,"2.12",function(){a.Qa=!0;KM(a)});DL(c,"2.14",function(){return a.kb.resolve()});DL(c,"2.16",function(){return a.$a=!0});DL(c,"2.17",function(d){a.context.Be().info("drive.ds.sync.ItemServiceProxy","Prefetched request loaded for: "+d.t.join(","))})},PLc=function(a,b){1!==b.H&&2!==b.H||b.channel.send("8.5",OLc(a,b));EL(b.channel,"8.4",{dsc:a.context.Xc.Hc()});QLc(b.channel);RLc(a,b.channel)},QLc=function(a){_.aa._DRIVE_dsp&&EL(a,"8.3",{dsp:SLc(_.aa._DRIVE_dsp)});
_.aa._DRIVE_dspc=function(b){if(_.aa._DRIVE_dsp){var c=[];c[b]=_.aa._DRIVE_dsp[b];EL(a,"8.3",{dsp:SLc(c)})}}},RLc=function(a,b){_.Q(a.context.Xc,24,!1)&&(_.aa._DRIVE_ivd?EL(b,"8.2",{ivd:_.aa._DRIVE_ivd}):void 0===_.aa._DRIVE_ivd&&(_.aa._DRIVE_ivdc=function(){_.aa._DRIVE_ivd&&EL(b,"8.2",{ivd:_.aa._DRIVE_ivd})}))},OLc=function(a,b){var c={};if(1===b.H){var d=new _.bOa(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.Xc.Ki(),ufds:b.V}};Bpc.prototype.Ni=function(){var a=_.tj(_.tj(_.fI(this.context.Xc.clone(),28),44),91),b=new _.RH;b.update(_.UJ(_.eI(a)));b.update(String(_.vI(_.eI(a))));b.update(a.Hc());return _.Zec(b.digest())};var SLc=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=Bpc.prototype;_.g.vaa=function(a){this.dispatchEvent(new _.Hc(new _.Gc(void 0,new _.Fc(JSON.parse(a.p)))))};
_.g.query=function(a){KM(this);$vc(this.context.ym,a,msc(this.context.Cg));this.KF();var b=this.O.vya(a);this.Ua||(a=a.re(),a&&121===_.y(a,1)||(this.Ua=!0,this.Oc.listen(b,_.bd,this.JOa)));return b};_.g.JOa=function(a){a=a.currentTarget;1===a.Cb()&&(this.Ia.H=this.$a,this.Oc.Tc(a,_.bd,this.JOa))};_.g.ht=function(a){KM(this);dtc(a);this.KF();return this.O.sya(a)};
_.g.qwa=function(a,b){var c=this;KM(this);if(this.ka&&_.Cj(this.ka.jd(),a))return this.ka;this.ka=new oLc(a.clone(),this.context,function(d,e,f){return c.send("3.17",[d,e,f],function(h,k){return TK(h[0],k,ICc)})},b);_.aa.setTimeout(function(){c.ka=null},3E3);return this.ka};
_.g.HHa=function(a,b){var c=this;KM(this);if(this.ha&&_.Cj(this.ha.jd(),a))return CLc(this.ha),this.ha;this.ha=new zLc(a,this.context,function(d){return c.send("3.18",[d],function(e,f){return TK(e[0],f,kCc)})},b);_.aa.setTimeout(function(){c.ha=null},3E3);return this.ha};_.g.Uaa=function(a){KM(this);return _.fi(this.send("3.14",[a],function(b,c){return TK(b[0],c,oM)}))};_.g.m9=function(a){KM(this);return _.fi(this.send("3.15",[a],function(b,c){return TK(b[0],c,oM)}))};
_.g.ad=function(a){KM(this);!this.ma&&_.HJ(a)&&(this.ma=!0);a=roc(a);return _.fi(this.send("3.3",[a],function(b,c){return TK(b[0],c,_.GJ)}))};_.g.qO=function(a){KM(this);a=Boc(a);return this.send("3.35",[a],function(b,c){return TK(b[0],c,_.ftc)})};_.g.TC=function(a){KM(this);for(var b=0;b<a.length;b++)!this.ma&&_.HJ(a[b])&&(this.ma=!0);a=uoc(a);return _.fi(this.send("3.4",[a],function(c,d){return qwc(c[0],d).get()}))};_.g.rya=function(){KM(this);return ILc(this.ob)};
_.g.IUa=function(a){KM(this);return new fLc(this.V.promise,a)};_.g.ks=function(a,b){var c=this;KM(this);var d=_.oh();this.H.create(d,a);return _.fi(this.send("3.5",[a,!!b],function(e,f){f=TK(e[0],f,IL);return new _.mK(f,e[1],e[2])})).addCallback(function(e){Nwc(c.H,d,e);return e.response}).yg(function(e){HL(c.H,d);return e})};_.g.yr=function(a){KM(this);return this.send("3.10",[a],function(b,c){return TK(b[0],c,XAc)})};
_.g.Waa=function(a){KM(this);return _.fi(this.send("3.11",[a],function(b,c){return TK(b[0],c,YAc)}))};_.g.k9=function(a){KM(this);return _.fi(this.send("3.12",[a],function(b,c){return TK(b[0],c,YAc)}))};_.g.QT=function(a){KM(this);return _.fi(this.send("3.13",[a],function(b,c){return TK(b[0],c,YAc)}))};
_.g.MN=function(a,b){var c=this;KM(this);var d=_.oh();this.H.create(d,a);return _.fi(this.send("3.1",[a,!!b],function(e,f){f=TK(e[0],f,_.fM);return new _.pK(f,e[1],e[2])})).addCallback(function(e){Nwc(c.H,d,e);return e.response}).yg(function(e){HL(c.H,d);return e})};
_.g.nH=function(a,b){var c=this,d=_.se(this.context.Xc.Sf(),30);if(!d||0===d.length)return _.gi(new _.Gc("getUserPrefs requires a namespace.",_.MI(3)));0===_.se(a,3).length&&Voc(a,d);KM(this);var e=_.oh();this.H.create(e,a);return _.fi(this.send("3.2",[a,!!b],function(f,h){h=TK(f[0],h,_.$z);return new _.oK(h,f[1],f[2])})).addCallback(function(f){Nwc(c.H,e,f);return f.response}).yg(function(f){HL(c.H,e);return f})};
_.g.NS=function(a){KM(this);JLc(_.se(this.context.Xc.Sf(),30),a);a=yoc(a);return this.send("3.6",[a],function(b,c){return TK(b[0],c,vCc)})};_.g.Au=function(a){KM(this);return _.fi(this.send("3.16",[a],function(b,c){return TK(b[0],c,Fsc)}))};_.g.jDa=function(){return this.ma};_.g.Il=function(a){KM(this);this.send("3.8",[a])};_.g.hz=function(a){KM(this);return _.Vh(this.send("3.36",[a],function(b){return!!b[0]}))};_.g.bZ=function(a){KM(this);HJc(this.context).bZ(a);this.hz(!!a)};
_.g.KF=function(){KM(this);this.send("3.9",[])};_.g.QS=function(){KM(this);this.send("3.41",[]);this.context.QS();var a=dL(this.context.lk(),106006);a&&this.V.promise.then(function(b){var c=_.x(_.hK(a),Orc,6);if(!c){c=new Orc;var d=_.hK(a);_.F(d,6,c)}c=_.u(c,1,b.clientId);_.u(c,2,b.O);a.Cj()},function(){})};_.g.OB=function(){KM(this);return this.context.OB()};_.g.RQ=function(){KM(this);return _.Vh(this.send("3.19",[],function(a,b){return TK(a[0],b,xwc)}))};_.g.isConnected=function(){return this.context.xk().isConnected()};
_.g.E8=function(){return this.send("3.46",[],function(a,b){return TK(a[0],b,_.okc)})};_.g.y$=function(){return this.Ia};_.g.sync=function(){KM(this);return _.Vh(this.send("3.28",[]))};_.g.Xu=function(){return this.context.Xu()};_.g.ZY=function(a){this.La.promise.then(function(b){return void b.ZY(a)})};_.g.Iqa=function(a){KM(this);return this.O.Cya(a)};_.g.J5=function(a){KM(this);return this.O.Bya(a)};_.g.EHa=function(a){KM(this);cwc(this.context.ym,a,msc(this.context.Cg));return this.O.yya(a)};
_.g.Jqa=function(a){KM(this);return new ELc(this.V.promise,a)};_.g.gxa=function(a){var b=this;KM(this);if(!this.W||this.W.isDisposed())this.W=new uLc(a,this.context,function(c){return b.send("3.20",[c],function(d,e){return TK(d[0],e,fBc)})});return this.W};_.g.tIa=function(){this.W&&!this.W.isDisposed()?this.W.poll():_.Vh()};_.g.l9=function(a){KM(this);return _.fi(this.send("3.22",[a],function(b,c){return TK(b[0],c,gBc)}))};
_.g.eW=function(a){KM(this);return _.fi(this.send("3.25",[a],function(b,c){return TK(b[0],c,bBc)}))};_.g.kca=function(){return this.kb.promise};_.g.Noa=function(a){var b=_.Yh();_.fi(this.send("3.30",[a],function(c,d){c[0]?b.resolve(TK(c[0],d,dCc)):b.reject(new _.Gc(void 0,TK(c[1],d,_.Fc)))})).yg(function(c){return void b.reject(c)});return b.promise};_.g.Hxa=function(a){KM(this);return this.O.oya(a)};_.g.D8=function(a){KM(this);return this.send("3.42",[a],function(b,c){return TK(b[0],c,JAc)})};
_.g.AP=function(a){KM(this);var b=new _.en;this.send("3.39",[a],function(c,d){return c.map(function(e){return TK(e,d,Wwc)})}).then(function(c){return void b.resolve(c)},function(c){return void b.reject(c)});return Promise.resolve(new KLc(b.promise))};_.g.eIa=function(a){var b=this;KM(this);return new iLc(this.context,a,function(c){return _.Vh(b.send("3.37",[c.request,c.pageToken],function(d,e){return new swc(TK(d[0],e,mM),d[1])}))})};
_.g.fIa=function(a){KM(this);return this.send("3.38",[a],function(b,c){return TK(b[0],c,ZBc)})};_.g.VMa=function(a){KM(this);return this.O.Gya(a)};_.g.Era=function(a){KM(this);return this.O.Fya(a)};_.g.pLa=function(a){var b=this;KM(this);return new jLc(this.context,a,function(){return _.Vh(b.send("3.40",[a],function(c,d){return TK(c[0],d,_.IK)}))})};_.g.qLa=function(a){KM(this);return this.O.zya(a)};_.g.r0=function(a){KM(this);this.send("3.43",[a])};
_.g.R0=function(a){KM(this);return _.Vh(this.send("3.44",[a],function(b,c){return TK(b[0],c,qtc)}))};_.g.Do=function(a){KM(this);if(1!==_.WJ(this.context.Xc))return Promise.reject(Error("dh"));for(var b=_.m(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!c.qc())return Promise.reject(Error("eh"));if(!_.AI(c)&&!c.getItem())return Promise.reject(Error("fh"))}return Promise.resolve(this.send("3.45",a))};
_.g.U3a=function(){var a=this;if(3===this.context.getEnvironment()){var b=[_.Ci(1E4,!1),this.send("3.29",[],function(c){return!!c[0]}).then()];_.yka(b).then(function(c){c?_.Ai(a.U3a.bind(a),6E4):(a.Qa=!0,KM(a))})}};var KM=function(a){a.Qa&&a.dispatchEvent(new hDc)};
var Dpc=function(a){tM.call(this,a);this.ha=this.ka=this.ta=null;this.kb=_.Yh();this.logName="drive.ds.sync.SyncedItemService";this.H=a.Hm()};_.J(Dpc,tM);Dpc.prototype.pUa=function(){this.Ia=new pKc(this.context);this.Ja(this.Ia);this.La=new tKc(this.context);this.Ja(this.La);this.Qa=new AKc(this.context);this.Ja(this.Qa)};
Dpc.prototype.$a=function(){var a=this,b=["hVFf7"];_.XJ(this.context.Xc)&&b.push("BNEDtc");NL(this.O,b,function(){return void a.xZa()});NL(this.O,["T8oKm",_.VJ(this.context.Xc)?"BNEDtc":"ZA9qG"],function(){return void TLc(a)});NL(this.O,["T8oKm","mrK8ic"],function(){return void TLc(a)});this.Oc.listen(this.Ia,"WPi0i",this.Lta.bind(this,1));this.Oc.listen(this.La,"Hb",this.Lta.bind(this,2));this.Oc.listen(this.Qa,"WPi0i",this.Lta.bind(this,4));NL(this.O,["GZTDpc"],function(){return a.kb.resolve()})};
var TLc=function(a){xM(a.context).addCallback(function(b){b.start()})};_.g=Dpc.prototype;_.g.Lta=function(a){_.pa(rtc,a)&&this.dispatchEvent(new JCc(a))};_.g.J5=function(a){return this.V.Bya(a.clone())};_.g.EHa=function(a){cwc(this.context.ym,a,msc(this.context.Cg));return this.V.yya(a.clone())};_.g.Iqa=function(a){return this.V.Cya(a.clone())};_.g.Jqa=function(a){return new RKc(a,this.context.Hm())};
_.g.qwa=function(a,b){var c=this;if(this.ta&&_.Cj(this.ta.jd(),a))return this.ta;this.ta=new oLc(a.clone(),this.context,this.amb.bind(this),b);_.aa.setTimeout(function(){c.ta=null},3E3);return this.ta};_.g.amb=function(a,b,c){var d=new _.xhc(a,b,c);return _.fi(this.H.then(function(e){return e.Oe(d)}).then(null,function(e){return KK(e)}))};_.g.gxa=function(a){var b=this;if(!this.ha||this.ha.isDisposed())this.ha=new uLc(a,this.context,function(c){return ULc(b,c)});return this.ha};
var ULc=function(a,b){return _.fi(a.H.then(function(c){return c.Oe(b)}).then(null,function(c){return KK(c)}))};_.g=Dpc.prototype;_.g.tIa=function(){this.ha&&!this.ha.isDisposed()?this.ha.poll().then():_.Vh()};_.g.eW=function(a){return _.fi(this.H.then(function(b){return b.Oe(a)}))};_.g.l9=function(a){return _.fi(this.H.then(function(b){return b.Oe(a)}))};
_.g.HHa=function(a,b){var c=this;if(this.ka&&_.Cj(this.ka.jd(),a))return CLc(this.ka),this.ka;this.ka=new zLc(a.clone(),this.context,this.KNb.bind(this),b);_.aa.setTimeout(function(){c.ka=null},3E3);return this.ka};_.g.KNb=function(a){var b=this;return this.H.then(function(c){return c.Oe(a)}).then(function(c){return _.lI(b.context.Xc)?jyc(b.context.Cf.Jq,c.Zc().zN(),a.jd().getId()).then(function(){return c}):c},KK)};
_.g.Uaa=function(a){var b=this;return _.fi(this.H.then(function(c){return c.Oe(a)}).then(function(c){return _.lI(b.context.Xc)?jyc(b.context.Cf.Jq,[_.x(c,_.vk,2)],a.qc()).then(function(){return c}):c},KK))};_.g.m9=function(a){return _.fi(this.H.then(function(b){return b.Oe(a)}).then(null,KK))};_.g.Hxa=function(a){return this.V.oya(a.clone())};_.g.D8=function(a){return this.H.then(function(b){return b.Oe(a)}).then(null,KK)};
_.g.AP=function(a){return this.H.then(function(b){return b.Oe(a)}).then(function(b){var c=new _.en;tyc(a,b).then(function(d){return c.resolve(d)});return new KLc(c.promise)},function(b){KK(b)})};_.g.eIa=function(a){var b=this;return new iLc(this.context,a,function(c){return b.H.then(function(d){return d.Oe(c)}).then(null,function(d){return KK(d)})})};_.g.fIa=function(a){return this.H.then(function(b){return b.Oe(a)}).then(null,KK)};
_.g.ad=function(a){return _.fi(this.H.then(function(b){return b.Oe(a)}).then(null,KK))};_.g.qO=function(a){return this.H.then(function(b){return b.Oe(a)}).then(null,KK)};_.g.TC=function(a){var b=this,c=[],d=[];a.forEach(function(f){f instanceof _.PI?c.push(String(f.qc())):c.push(String(f.getId()));d.push(b.ad(f))});a=new _.Sn(d);var e=new _.$h;a.addCallback(this.Kob.bind(this,e,c));return e};
_.g.rya=function(){return new GKc(this.context.Xc,this.context.hB,this.context.RR().mga,this.context.Hm(),this.context.KQ,this.context.Be(),this.context.lk())};_.g.ks=function(a,b){var c=this,d=_.oh();this.W.create(d,a);3===a.getType()?a=tM.prototype.ks.call(this,a).addCallback(function(e){return new _.mK(e,1,!1)}):(OL(this.O,"Qubz4b"),a=this.La.enqueue(new yKc(a,b)));return a.addCallback(function(e){Nwc(c.W,d,e);return e.response}).yg(function(){HL(c.W,d)})};
_.g.yr=function(a){return _.fi(this.H.then(function(b){return b.Oe(a)}).then(null,KK))};_.g.Waa=function(a){return _.fi(this.H.then(function(b){return b.Oe(a)}).then(null,KK))};_.g.k9=function(a){return _.fi(this.H.then(function(b){return b.Oe(a)}).then(null,KK))};_.g.QT=function(a){return _.fi(this.H.then(function(b){return b.Oe(a)}).then(null,KK))};
_.g.MN=function(a,b){var c=this;OL(this.O,"iuEtc");var d=_.oh();this.W.create(d,a);return this.Ia.enqueue(new rKc(a,b)).addCallback(function(e){Nwc(c.W,d,e);return e.response}).yg(function(){HL(c.W,d)})};
_.g.nH=function(a,b){var c=this,d=_.se(this.context.Xc.Sf(),30);if(!d||0===d.length)return _.gi(new _.Gc("getUserPrefs requires a namespace.",_.MI(3)));0===_.se(a,3).length&&Voc(a,d);var e=_.oh();this.W.create(e,a);OL(this.O,"OZvrNc");return this.Qa.enqueue(new DKc(a,b)).addCallback(function(f){Nwc(c.W,e,f);return f.response}).yg(function(){HL(c.W,e)})};_.g.NS=function(a){JLc(_.se(this.context.Xc.Sf(),30),a);return _.fi(this.H.then(function(b){return b.Oe(a)}).then(null,KK))};
_.g.Au=function(a){var b=this;return _.fi(this.H.then(function(c){return c.Oe(a)}).then(function(c){return _.lI(b.context.Xc)?hyc(b.context.Cf.Jq,c):c},KK))};_.g.VMa=function(a){return this.V.Gya(a.clone())};_.g.Era=function(a){return this.V.Fya(a.clone())};_.g.pLa=function(a){var b=this;return new jLc(this.context,a,function(c){return b.H.then(function(d){return d.Oe(c)}).then(null,function(d){return KK(d)})})};_.g.qLa=function(a){return this.V.zya(a.clone())};
_.g.r0=function(a){dFc(this.context.Cf,[a])};_.g.R0=function(a){return this.H.then(function(b){return b.Oe(a)}).then(null,KK)};_.g.Do=function(a){if(1!==_.WJ(this.context.Xc))return Promise.reject(Error("dh"));for(var b=_.m(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!c.qc())return Promise.reject(Error("eh"));if(!_.AI(c)&&!c.getItem())return Promise.reject(Error("fh"))}this.context.Cf.Do(a);SFc(this.context.Cf);return Promise.resolve()};_.g.jDa=function(){return this.context.RR().vK()};
_.g.hz=function(a){var b=this;return this.context.hz(a).then(function(c){return c?(b.context.Jj().hz(a),b.context.Ws.CL()):_.Vh(!a)})};_.g.bZ=function(a){HJc(this.context).bZ(a);this.hz(!!a)};_.g.KF=function(){xM(this.context).addCallback(function(a){a&&a.tpa()});this.context.Tha.KF()};_.g.ZY=function(a){a.bPa(this.context)};_.g.Kob=function(a,b,c){for(var d={},e=0;e<c.length;e++)d[b[e]]=c[e][1];SFc(this.context.Cf);a.callback(d)};
_.g.sync=function(){var a=this;return _.Xh([this.context.Saa.promise,this.context.nga.promise]).then(function(){return xM(a.context).then()}).then(function(b){return new _.Uh(function(c,d){b.sync().then(function(){return c()},function(e){return d(e)})})}).then(function(){return a.context.Ws.CL()}).then()};_.g.Xu=function(){xM(this.context).addCallback(function(a){a&&a.dispose()});return tM.prototype.Xu.call(this)};_.g.kca=function(){return this.kb.promise};
var VLc=function(){var a='<div class="'+_.C("la-r")+'">';a=a+'Ein Problem ist aufgetreten. Bitte aktualisieren Sie die Seite.</div><button class="'+(_.C("la-Y-A")+" "+_.C("kc-A")+'" data-target="reload">');return(0,_.D)(a+"Neu laden</button>")};
_.cn({id:_.Jl,callback:function(a){var b=_.unc(a),c=Gpc(a),d=_.x(a.get(_.Hd),_.Pc,10);_.Iic(d,b);_.qj(d,28,c);b=Epc(a,d);a.registerService(_.Kl,b.y$());_.ri(b,"VbxEwf",function(){var e={};_.Bd(_.br.getService(a),new _.aq(new _.$p(VLc,{}),"d",(e.reload=function(){_.aa.window.location.reload()},e),4))});return b}});

_.t();

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

_.WLc=function(a,b){return _.u(a,2,b)};_.XLc=function(a,b){return _.u(a,1,b)};_.YLc=function(a,b){return _.F(a,2,b)};_.ZLc=function(a,b){return _.sj(a,1,b)};_.$Lc=function(a,b){return _.qj(a,1,b)};_.aMc=function(a,b){return _.sj(a,2,b)};_.bMc=function(a,b){return _.F(a,3,b)};

_.t();

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