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

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

_.w();

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


_.w();

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

_.w();

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

_.w();

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

_.w();

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

_.w();

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

_.w();

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

_.w();

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

_.w();

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

_.w();

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

_.w();

}catch(e){_._DumpException(e)}
try{
_.Iub=function(a,b,c,d,e,f,h){return(0,_.I)(_.Rn("a",b,!1)({fillColor:d,mb:c,color:"#000000",ob:!0,vs:e,size:f,Zd:h},a))};_.t("sy12w");

_.w();

}catch(e){_._DumpException(e)}
try{
_.Vyb=function(a){a=parseInt(_.B(a,3)||"0",10);return 100<=a?"over":90<=a?"near":"under"};_.Xyb=function(a,b,c,d){var e=_.Ne.getService(a);a=e.tg(a,c);_.Wyb(a.H.Ek,b,d);e.Zf(a)};_.Wyb=function(a,b,c){var d=new _.Yyb;b.GU&&_.y(d,2,b.GU);b.hG&&0<=b.hG&&_.y(d,1,b.hG);b.quotaType&&_.y(d,3,b.quotaType);_.Zyb(a,d);c&&(b=new _.$yb,_.y(b,1,c),_.azb(a,b))};_.bzb=function(a){return isNaN(a)?0:100<=a?6:95<=a?5:90<=a?4:80<=a?3:70<=a?2:1};_.czb=function(a,b){return!_.T(a,6,!1)||_.T(b,15,!1)};
_.Zyb=function(a,b){b&&(a=a.Zc(),_.J(a,29,b))};_.azb=function(a,b){b&&(a=a.Zc(),_.J(a,38,b))};_.Yyb=function(a){_.K.call(this,a)};_.N(_.Yyb,_.K);_.$yb=function(a){_.K.call(this,a)};_.N(_.$yb,_.K);_.$yb.prototype.Ph=function(){return _.B(this,1)};_.t("sy16o");
_.ezb=function(a,b,c){var d=_.E(a.get(_.JDa),1,""),e=_.Vyb(b);d=new _.gj(d);a:switch(e){case "over":var f="o";break a;case "near":f="u";break a;default:f="m"}return _.lj(_.oj(_.oj(_.oj(_.oj(d,"i",f),"utm_source","drive"),"utm_medium","web"),"utm_campaign",_.dzb(a,e,c)),-1!=parseInt(String(_.C(b,_.$x,2)),10)?"upgrade":"")};
_.dzb=function(a,b,c){switch(c){case "settings":return"settings";case "upload_dialog":return"upload_dialog_oos";case "widget":switch(b){case "over":return"widget_oos";case "near":return"widget_near_quota";default:return"widget_normal"}default:switch(b){case "near":case "over":return"upsell";default:return"manage"}}};
_.fzb=function(a,b,c){if(!b)return"g1_widget_unknown";a=Number(_.B(b,3));return c?isNaN(a)?"g1_settings":100<=a?"g1_settings_oos":90<=a?"g1_settings_ninety":80<=a?"g1_settings_eighty":70<=a?"g1_settings_seventy":"g1_settings_normal":isNaN(a)?"g1_widget_unknown":100<=a?"g1_widget_oos":90<=a?"g1_widget_ninety":80<=a?"g1_widget_eighty":70<=a?"g1_widget_seventy":"g1_widget_normal"};

_.w();

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

var MBb=_.dzb,NBb=_.ezb,OBb=_.fzb;_.dzb=function(a,b,c){return"over"==b&&_.Ol(a.get(_.dc))?"widget_trial":MBb(a,b,c)};_.ezb=function(a,b,c){c=NBb(a,b,c);"over"===_.Vyb(b)&&_.Ol(a.get(_.dc))&&_.oj(c,"eft","1");return c};_.fzb=function(a,b,c){b=OBb(a,b,c);a=_.Ol(a.get(_.dc));return"g1_settings_oos"===b&&a?"g1_settings_trial":"g1_widget_oos"===b&&a?"g1_widget_trial":b};

_.w();

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


_.w();

}catch(e){_._DumpException(e)}
try{
var zub,Cub;zub=[4,5,6,7];_.sB=function(a){_.K.call(this,a)};_.N(_.sB,_.K);_.sB.prototype.Bb=function(){return _.B(this,1)};_.sB.prototype.Dc=function(a){return _.y(this,1,a)};_.sB.prototype.g$=function(){return _.B(this,2)};_.sB.prototype.Vb="JmcaR";_.Aub=function(a){_.K.call(this,a)};_.N(_.Aub,_.K);_.Aub.prototype.O=function(){return _.S(this,1)};_.Aub.prototype.Vb="dvhrqe";_.Bub=function(a){_.K.call(this,a)};_.N(_.Bub,_.K);_.Bub.prototype.ep=function(){return _.B(this,2)};
_.Bub.prototype.G1=function(){return _.B(this,3)};Cub=[5];_.Dub=function(a){_.K.call(this,a)};_.N(_.Dub,_.K);_.Dub.prototype.O=function(){return _.S(this,4)};_.Dub.prototype.setActive=function(a){return _.y(this,4,a)};_.Eub=function(a){_.K.call(this,a,-1,Cub)};_.N(_.Eub,_.K);_.g=_.Eub.prototype;_.g.EZ=function(){return _.B(this,1)};_.g.IT=function(){return _.B(this,3)};_.g.WJ=function(){return _.bk(this,_.Bub,5)};_.g.Wl=function(){return _.B(this,6)};_.g.ur=function(){return _.B(this,7)};
_.g.JQ=function(){return _.B(this,9)};_.g.cu=function(){return _.B(this,10)};_.g.eN=function(){return _.C(this,_.Dub,12)};_.g.Bl=function(){return _.B(this,13)};_.g.NE=function(){return _.B(this,16)};_.g.Hyb=function(){return _.Q(this,16)};_.g.Iz=function(){return _.B(this,17)};_.g.Vb="dzR11e";_.Fub=function(a){_.K.call(this,a,-1,zub)};_.N(_.Fub,_.K);_.Fub.prototype.O=function(){return _.C(this,_.Eub,1)};_.Fub.prototype.fN=function(){return _.C(this,_.sB,8)};
_.Fub.prototype.V=function(){return _.C(this,_.Aub,9)};_.t("sy12s");
_.tB=function(a){_.K.call(this,a,-1,Gub)};_.N(_.tB,_.K);_.tB.prototype.getUser=function(){return _.C(this,_.Jk,1)};_.tB.prototype.getMetadata=function(){return _.C(this,_.Fub,3)};_.tB.prototype.yo=function(){return _.Q(this,3)};var Gub=[2];

_.w();

}catch(e){_._DumpException(e)}
try{
_.rc=function(a){_.ki.call(this,_.Cc);this.error=a};_.N(_.rc,_.ki);_.t("sy12t");
var onb;_.oA=function(a){_.K.call(this,a,-1,onb)};_.N(_.oA,_.K);_.oA.prototype.O=function(){return _.Td(this,1)};_.pA=function(a,b){return _.Qj(a,1,b)};_.oA.prototype.hn=function(){return _.Td(this,2)};_.qA=function(a,b){return _.Qj(a,2,b)};_.oA.prototype.xe=function(){return _.C(this,_.tf,3)};_.rA=function(a,b){return _.J(a,3,b)};_.pnb=function(a,b){return _.y(a,5,b)};onb=[1,2,6,11];

_.w();

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

_.w();

}catch(e){_._DumpException(e)}
try{
_.uB=function(a){return a instanceof _.qc?a:a instanceof _.pc?new _.qc(void 0,a):a instanceof Error?new _.qc(a.message,void 0,a):new _.qc("Not an Error",void 0,Error("sb`"+JSON.stringify(a)))};_.Hub=function(a){return a instanceof Error?_.uB(a).Sg:a instanceof _.qc?a.Sg:a};_.t("sy12v");

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy12x");
_.vB={xL:"jb",Hga:"kb",lU:"lb",kU:"mb"};_.Jub=new Map([[_.vB.xL,1],[_.vB.Hga,2],[_.vB.lU,2],[_.vB.kU,3]]);

_.w();

}catch(e){_._DumpException(e)}
try{
_.eA=function(a){if(Array.isArray(a))return a.map(_.eA).join("");if(_.B(a,2)){if(!a.getId())throw Error("rd");return a.getId()+"/"+_.B(a,2)+","}return""};_.t("sy146");

_.w();

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

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy16i");
/*

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

_.w();

}catch(e){_._DumpException(e)}
try{
var uyb;_.tyb=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")};uyb=function(a){var b=_.paa(_.TEa,function(c){return a==c});if(void 0===b)throw Error("qb`"+a);return b};_.vyb=function(a,b){void 0!==a.name?(this.name=a.name,this.code=_.TEa[a.name]):(this.code=a=a.code,this.name=uyb(a));_.ha.call(this,_.tyb("%s %s",this.name,b))};_.Qf(_.vyb,_.ha);var wyb=function(a,b){_.ki.call(this,a.type,b)};
_.Qf(wyb,_.ki);_.t("sy16j");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.xyb=function(){_.P.call(this);this.H=new FileReader;this.H.onloadstart=(0,_.u)(this.j0,this);this.H.onprogress=(0,_.u)(this.j0,this);this.H.onload=(0,_.u)(this.j0,this);this.H.onabort=(0,_.u)(this.j0,this);this.H.onerror=(0,_.u)(this.j0,this);this.H.onloadend=(0,_.u)(this.j0,this)};_.Qf(_.xyb,_.P);_.g=_.xyb.prototype;_.g.abort=function(){try{this.H.abort()}catch(a){throw new _.vyb(a,"aborting read");}};_.g.$j=function(){return this.H.result};
_.g.getError=function(){return this.H.error&&new _.vyb(this.H.error,"reading file")};_.g.j0=function(a){this.dispatchEvent(new wyb(a,this))};_.g.Za=function(){_.xyb.wb.Za.call(this);delete this.H};

_.w();

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

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy183");
_.QC=function(a){_.K.call(this,a)};_.N(_.QC,_.K);_.QC.prototype.ha=function(){return _.Nj(this,1)};_.QC.prototype.V=function(){return _.Nj(this,2)};_.QC.prototype.O=function(){return _.Nj(this,3)};

_.w();

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

_.w();

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

_.w();

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

_.w();

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

_.w();

}catch(e){_._DumpException(e)}
try{
_.gtb=function(a){_.K.call(this,a)};_.N(_.gtb,_.K);_.gtb.prototype.O=function(){return _.B(this,1)};_.gtb.prototype.Bb=function(){return _.B(this,2)};_.gtb.prototype.Dc=function(a){return _.y(this,2,a)};_.gtb.prototype.V=function(){return _.B(this,3)};_.t("sy18w");
_.itb=function(a){_.K.call(this,a,-1,htb)};_.N(_.itb,_.K);_.itb.prototype.O=function(){return _.Td(this,1)};var htb=[1];
_.ktb=function(a){_.K.call(this,a,-1,jtb)};_.N(_.ktb,_.K);_.ktb.prototype.O=function(){return _.bk(this,_.gtb,1)};var jtb=[1];
_.mtb=function(a){_.K.call(this,a,-1,ltb)};_.N(_.mtb,_.K);_.mtb.prototype.O=function(){return _.bk(this,_.ktb,1)};var ltb=[1];
_.ntb=function(a){_.K.call(this,a)};_.N(_.ntb,_.K);_.ntb.prototype.V=function(){return _.C(this,_.mtb,1)};_.ntb.prototype.O=function(){return _.C(this,_.itb,2)};
_.iB=function(a){_.K.call(this,a,-1,otb)};_.N(_.iB,_.K);_.g=_.iB.prototype;_.g.Bb=function(){return _.B(this,1)};_.g.Dc=function(a){return _.y(this,1,a)};_.g.Bd=function(){return _.bk(this,_.dl,2)};_.g.Nw=function(a){return _.Wj(this,2,a)};_.g.oh=function(a,b){return _.dk(this,2,a,_.dl,b)};_.g.Zj=function(){return _.B(this,3)};_.g.jl=function(){return _.T(this,5,!0)};_.g.S5=function(){return _.C(this,_.ntb,7)};_.g.Hra=function(){return _.S(this,8)};_.g.Wf=function(){return _.B(this,17)};
_.g.sP=function(a){return _.y(this,17,a)};_.g.ef=function(){return _.B(this,12)};_.g.Ei=function(a){return _.y(this,12,a)};_.g.Xn=function(){return _.B(this,15)};_.g.Zja=function(){return _.Td(this,18)};var otb=[2,14,18];

_.w();

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

_.w();

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

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1a5");
_.zD=function(a){_.K.call(this,a)};_.N(_.zD,_.K);_.zD.prototype.getKey=function(){return _.C(this,_.Ub,1)};_.zD.prototype.ht=function(){return _.Q(this,1)};_.zD.prototype.xe=function(){return _.C(this,_.tf,2)};
_.CD=function(a){_.K.call(this,a)};_.N(_.CD,_.K);_.CD.prototype.xe=function(){return _.C(this,_.tf,2)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1a6");
_.yD=function(a){_.K.call(this,a,-1,bDb)};_.N(_.yD,_.K);_.yD.prototype.xe=function(){return _.C(this,_.tf,1)};var bDb=[3];

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1ae");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.SD=function(a,b,c){_.O.call(this);this.Gn=null!=c?(0,_.u)(a,c):a;this.ka=b;this.Ng=(0,_.u)(this.v8a,this);this.O=!1;this.V=0;this.W=this.H=null;this.ha=[]};_.Qf(_.SD,_.O);_.g=_.SD.prototype;_.g.ve=function(a){this.ha=arguments;this.O=!1;this.H?this.W=_.Nf()+this.ka:this.H=_.wi(this.Ng,this.ka)};_.g.stop=function(){this.H&&(_.xi(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.Gn.apply(null,this.ha)))};_.g.Za=function(){this.stop();_.SD.wb.Za.call(this)};_.g.v8a=function(){this.H&&(_.xi(this.H),this.H=null);this.W?(this.H=_.wi(this.Ng,this.W-_.Nf()),this.W=null):this.V?this.O=!0:(this.O=!1,this.Gn.apply(null,this.ha))};

_.w();

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

_.w();

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

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1ct");
_.cG=function(a){_.K.call(this,a)};_.N(_.cG,_.K);_.cG.prototype.getName=function(){return _.B(this,1)};_.cG.prototype.hd=function(a){return _.y(this,1,a)};_.cG.prototype.xe=function(){return _.C(this,_.tf,2)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1cw");
_.dG=function(a){_.K.call(this,a)};_.N(_.dG,_.K);_.g=_.dG.prototype;_.g.Li=function(){return _.B(this,1)};_.g.ui=function(a){return _.y(this,1,a)};_.g.getTitle=function(){return _.B(this,2)};_.g.setTitle=function(a){return _.y(this,2,a)};_.g.xe=function(){return _.C(this,_.tf,3)};_.g.Hp=function(){return _.B(this,4)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1cx");
var NVb;_.eG=function(a){_.K.call(this,a,-1,NVb)};_.N(_.eG,_.K);_.eG.prototype.O=function(){return _.Td(this,1)};_.eG.prototype.hn=function(){return _.Td(this,2)};_.OVb=function(a,b){return _.Qj(a,2,b)};_.eG.prototype.xe=function(){return _.C(this,_.tf,3)};_.PVb=function(a,b){return _.J(a,3,b)};NVb=[1,2];

_.w();

}catch(e){_._DumpException(e)}
try{
_.fG=function(a){_.K.call(this,a)};_.N(_.fG,_.K);_.g=_.fG.prototype;_.g.getId=function(){return _.B(this,1)};_.g.Ob=function(a){return _.y(this,1,a)};_.g.getTitle=function(){return _.B(this,2)};_.g.setTitle=function(a){return _.y(this,2,a)};_.g.getState=function(){return _.B(this,5)};_.g.Kd=function(a){return _.y(this,5,a)};_.g.jt=function(){return _.Q(this,5)};_.t("sy1cy");
_.gG=function(a){_.K.call(this,a,-1,QVb)};_.N(_.gG,_.K);_.gG.prototype.hn=function(){return _.Td(this,1)};_.RVb=function(a,b){return _.Qj(a,1,b)};_.gG.prototype.xe=function(){return _.C(this,_.tf,2)};var QVb=[1,3];

_.w();

}catch(e){_._DumpException(e)}
try{
_.hG=function(a,b){return _.y(a,4,b)};_.SVb=function(a,b){_.y(a,11,b)};_.TVb=function(a,b){return _.y(a,25,b)};_.t("sy1cz");

_.w();

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

_.w();

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

_.w();

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

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1d3");
_.qG=function(a){_.K.call(this,a)};_.N(_.qG,_.K);_.qG.prototype.Cc=function(){return _.B(this,1)};_.QWb=function(a){var b=new _.qG;return _.y(b,1,a)};_.qG.prototype.Li=function(){return _.B(this,2)};_.qG.prototype.ui=function(a){return _.y(this,2,a)};_.qG.prototype.xe=function(){return _.C(this,_.tf,3)};

_.w();

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

_.w();

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

_.w();

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

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

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1iv");
/*

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

_.w();

}catch(e){_._DumpException(e)}
try{
_.vcc=function(a,b,c){_.dj(a.url,function(d){d=d.target;d.tv()?b(d.kl()):c(d.Bb())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)};_.wcc=function(a,b,c,d){return _.E(a,1).split("/").pop()==d?(d=_.B(a,2),Array.isArray(d)?new b(d):c(_.ub(a.Ya()))):null};_.t("sy1im");
_.ycc=function(a){_.K.call(this,a,-1,xcc)};_.N(_.ycc,_.K);var xcc=[2];
_.zcc=function(a){_.K.call(this,a)};_.N(_.zcc,_.K);var Acc=function(){var a=new _.zcc,b=document.documentElement.getAttribute("lang");return _.y(a,5,b)};_.zcc.prototype.Ki=function(){return _.B(this,7)};
_.Bcc=function(a){_.K.call(this,a)};_.N(_.Bcc,_.K);
var Ccc;_.SH=function(a){_.K.call(this,a,31,Ccc)};_.N(_.SH,_.K);_.TH=function(a,b){return _.y(a,8,b)};Ccc=[3,20,27];
var Ecc=function(a){_.K.call(this,a,17,Dcc)};_.N(Ecc,_.K);var Fcc=function(a){var b=Date.now().toString();return _.y(a,4,b)},Gcc=function(a,b){return _.Wj(a,3,b)},Hcc=function(a,b){return _.y(a,14,b)},Dcc=[3,5];
var Jcc=function(a){_.K.call(this,a,6,Icc)};_.N(Jcc,_.K);var Icc=[5];
var Kcc=function(a){_.K.call(this,a)};_.N(Kcc,_.K);
var Lcc=new _.yk(175237375,Kcc);
_.UH=function(a,b,c,d,e,f,h,k,l,p,q){_.P.call(this);var r=this;this.Ka="";this.O=[];this.Jc="";this.Gb=this.Nb=this.ha=!1;this.Tc=this.rb=-1;this.Rb=!1;this.Fa=this.V=null;this.va=0;this.ke=1;this.timeoutMillis=0;this.kb=!1;_.P.call(this);this.Uc=a;this.tc=b||_.Lf;this.ka=new Ecc;this.Dd=d;this.yb=q;this.qe=_.Db(_.cja,0,1);this.Ba=e||null;this.Ha=c||null;this.Ta=h||!1;this.$a=l||null;this.Fd=null;this.withCredentials=!k;this.Bc=f||!1;this.Rd=!this.Bc&&(_.uj.On&&_.Gb(65)||_.uj.Lu&&_.Gb(45)||_.uj.Sw&&
_.Gb(12)||_.Vg()&&0<=_.ig(_.Eia(),12))&&!!_.rf()&&!!_.rf().navigator&&!!_.rf().navigator.sendBeacon;a=_.y(new _.Bcc,1,1);f||(f=Acc(),_.J(a,11,f));_.J(this.ka,1,a);_.y(this.ka,2,this.Uc);this.ma=new _.QH(1E4,3E5,.1);this.H=new _.ui(this.ma.Ya());this.Ma(this.H);_.Be(this.H,"tick",_.pga(Mcc(this,p)),!1,this);this.Pa=new _.ui(6E5);this.Ma(this.Pa);_.Be(this.Pa,"tick",_.pga(Mcc(this,p)),!1,this);this.Ta||this.Pa.start();this.Bc||(_.Be(_.rf(),"beforeunload",this.ta,!1,this),_.Be(_.rf(),"unload",this.ta,
!1,this),_.Be(document,"visibilitychange",function(){"hidden"===document.visibilityState&&r.ta()}),_.Be(document,"pagehide",this.ta,!1,this))};_.N(_.UH,_.P);var Mcc=function(a,b){return b?function(){b().then(a.flush.bind(a))}:a.flush};_.UH.prototype.Za=function(){this.ta();_.P.prototype.Za.call(this)};var Ncc=function(a){a.Ba||(a.Ba=.01>a.qe()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.Ba};
_.UH.prototype.W=function(a){a instanceof _.SH?this.log(a):(a=_.TH(new _.SH,a.jc()),this.log(a))};_.Occ=function(a,b){b?(a.V||(a.V=new _.ycc),b=b.jc(),_.y(a.V,4,b)):a.V&&_.Uj(a.V,4)};_.Pcc=function(a){a.Nb=a.Rd};_.Qcc=function(a,b){a.ma=new _.QH(1>b?1:b,3E5,.1);a.H.setInterval(a.ma.Ya())};
_.UH.prototype.log=function(a){a=a.clone();var b=this.ke++;_.y(a,21,b);this.Ka&&_.y(a,26,this.Ka);if(!_.B(a,1)){b=a;var c=Date.now().toString();_.y(b,1,c)}_.Q(a,15)||_.y(a,15,60*(new Date).getTimezoneOffset());this.V&&(b=this.V.clone(),_.J(a,16,b));for(;1E3<=this.O.length;)this.O.shift(),++this.va;this.O.push(a);this.dispatchEvent(new Rcc(a));this.Ta||this.H.enabled||this.H.start()};
_.UH.prototype.flush=function(a,b){var c=this;if(0===this.O.length)a&&a();else if(this.kb)Scc(this);else{var d=Date.now();if(this.Tc>d&&this.rb<d)b&&b("throttled");else{var e=Hcc(Gcc(Fcc(this.ka.clone()),this.O),this.va);d={};var f=this.tc();f&&(d.Authorization=f);var h=Ncc(this);this.Ha&&(d["X-Goog-AuthUser"]=this.Ha,h=_.Xi(h,"authuser",this.Ha));this.$a&&(d["X-Goog-PageId"]=this.$a,h=_.Xi(h,"pageId",this.$a));if(f&&this.Jc===f)b&&b("stale-auth-token");else if(this.O=[],this.H.enabled&&this.H.stop(),
this.va=0,this.ha)a&&a();else{var k=e.jc(),l;this.Fa&&this.Fa.ou(k.length)&&(l=this.Fa.X6b(k));var p={url:h,body:k,lkb:1,requestHeaders:d,requestType:"POST",withCredentials:this.withCredentials,timeoutMillis:this.timeoutMillis},q=function(z){c.ma.reset();c.H.setInterval(c.ma.Ya());if(z){var A=null;try{var D=JSON.parse(z.replace(")]}'\n",""));A=new Jcc(D)}catch(G){}A&&(z=Number(_.gna(A,1,"-1")),0<z&&(c.rb=Date.now(),c.Tc=c.rb+z),A=_.rb(A,Lcc))&&(A=_.gk(A,1,-1),-1!=A&&(c.Rb||_.Qcc(c,A)))}a&&a()},r=
function(z){var A=_.bk(e,_.SH,3);_.RH(c.ma);c.H.setInterval(c.ma.Ya());401===z&&f&&(c.Jc=f);if(500<=z&&600>z||401===z||0===z)c.O=A.concat(c.O),c.Ta||c.H.enabled||c.H.start();b&&b("net-send-failed",z)},v=function(){c.yb?c.yb.send(p,q,r):c.Dd(p,q,r)};l?l.then(function(z){p.requestHeaders["Content-Encoding"]="gzip";p.requestHeaders["Content-Type"]="application/binary";p.body=z;p.lkb=2;v()},function(){v()}):v()}}}};_.UH.prototype.ta=function(){this.ha||(this.Nb&&Scc(this),this.Gb&&Tcc(this),this.flush())};
var Scc=function(a){Ucc(a,32,10,function(b,c){b=_.Xi(b,"format","json");b=_.rf().navigator.sendBeacon(b,c.jc());a.kb&&!b&&(a.kb=!1);return b})},Tcc=function(a){Ucc(a,6,5,function(b,c){b=_.Vi(b,"format","base64json","p",_.vj(c.jc(),3));_.Cg(new Image,b);return!0})},Ucc=function(a,b,c,d){if(0!==a.O.length){var e=_.Ula(Ncc(a),"format");e=_.Vi(e,"auth",a.tc(),"authuser",a.Ha||"0");for(var f=0;f<c&&a.O.length;++f){var h=a.O.slice(0,b),k=Gcc(Fcc(a.ka.clone()),h);0===f&&Hcc(k,a.va);if(!d(e,k))break;a.O=
a.O.slice(h.length)}a.H.enabled&&a.H.stop();a.va=0}},Rcc=function(){_.ki.call(this,"event-logged",void 0)};_.N(Rcc,_.ki);

_.w();

}catch(e){_._DumpException(e)}
try{
var Vcc=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;q=p=0}function b(r){for(var v=h,z=0;64>z;z+=4)v[z/4]=r[z]<<24|r[z+1]<<16|r[z+2]<<8|r[z+3];for(z=16;80>z;z++)r=v[z-3]^v[z-8]^v[z-14]^v[z-16],v[z]=(r<<1|r>>>31)&4294967295;r=e[0];var A=e[1],D=e[2],G=e[3],H=e[4];for(z=0;80>z;z++){if(40>z)if(20>z){var L=G^A&(D^G);var M=1518500249}else L=A^D^G,M=1859775393;else 60>z?(L=A&D|G&(A|D),M=2400959708):(L=A^D^G,M=3395469782);L=((r<<5|r>>>27)&4294967295)+
L+H+M+v[z]&4294967295;H=G;G=D;D=(A<<30|A>>>2)&4294967295;A=r;r=L}e[0]=e[0]+r&4294967295;e[1]=e[1]+A&4294967295;e[2]=e[2]+D&4294967295;e[3]=e[3]+G&4294967295;e[4]=e[4]+H&4294967295}function c(r,v){if("string"===typeof r){r=unescape(encodeURIComponent(r));for(var z=[],A=0,D=r.length;A<D;++A)z.push(r.charCodeAt(A));r=z}v||(v=r.length);z=0;if(0==p)for(;z+64<v;)b(r.slice(z,z+64)),z+=64,q+=64;for(;z<v;)if(f[p++]=r[z++],q++,64==p)for(p=0,b(f);z+64<v;)b(r.slice(z,z+64)),z+=64,q+=64}function d(){var r=[],
v=8*q;56>p?c(k,56-p):c(k,64-(p-56));for(var z=63;56<=z;z--)f[z]=v&255,v>>>=8;b(f);for(z=v=0;5>z;z++)for(var A=24;0<=A;A-=8)r[v++]=e[z]>>A&255;return r}for(var e=[],f=[],h=[],k=[128],l=1;64>l;++l)k[l]=0;var p,q;a();return{reset:a,update:c,digest:d,digestString:function(){for(var r=d(),v="",z=0;z<r.length;z++)v+="0123456789ABCDEF".charAt(Math.floor(r[z]/16))+"0123456789ABCDEF".charAt(r[z]%16);return v}}};_.t("sy1it");
var Wcc=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("Ne`"+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("Oe`"+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 Ycc=function(a,b,c){var d=String(_.n.location.href);return d&&a&&b?[b,Xcc(Wcc(d),a,c||null)].join(" "):null},Xcc=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],_.Ja(d,function(k){e.push(k)}),Zcc(e.join(" "));var f=[],h=[];_.Ja(c,function(k){h.push(k.key);f.push(k.value)});c=Math.floor((new Date).getTime()/1E3);e=_.qa(f)?[c,b,a]:[f.join(":"),c,b,a];_.Ja(d,function(k){e.push(k)});a=Zcc(e.join(" "));a=[c,a];_.qa(h)||a.push(h.join(""));return a.join("_")},Zcc=function(a){var b=
Vcc();b.update(a);return b.digestString().toLowerCase()};
var $cc={};
var adc,cdc;adc=function(a){return!!$cc.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};_.bdc=function(a){a=void 0===a?!1:a;var b=_.n.__SAPISID||_.n.__APISID||_.n.__3PSAPISID||_.n.__OVERRIDE_SID;adc(a)&&(b=b||_.n.__1PSAPISID);if(b)return!0;var c=new _.ZPa(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID");adc(a)&&(b=b||c.get("__Secure-1PAPISID"));return!!b};cdc=function(a,b,c,d){(a=_.n[a])||(a=(new _.ZPa(document)).get(b));return a?Ycc(a,c,d):null};
_.ddc=function(a,b){b=void 0===b?!1:b;var c=Wcc(String(_.n.location.href)),d=[];if(_.bdc(b)){c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:");var e=c?_.n.__SAPISID:_.n.__APISID;e||(e=new _.ZPa(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?Ycc(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&adc(b)&&((b=cdc("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=cdc("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",
a))&&d.push(a))}return 0==d.length?null:d.join(" ")};

_.w();

}catch(e){_._DumpException(e)}
try{
_.VH=function(a,b){a.H=b;a.ka=0};_.WH=function(a,b){return _.y(a,b,_.pb([]))};_.t("sy1iw");
_.XH=function(a,b,c,d,e,f,h){_.UH.call(this,a,_.ddc,b,_.vcc,c,d,e,void 0,f,h)};_.N(_.XH,_.UH);

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1jp");
_.edc=function(a){_.K.call(this,a)};_.N(_.edc,_.K);_.g=_.edc.prototype;_.g.getKey=function(){return _.B(this,1)};_.g.ht=function(){return _.Q(this,1)};_.g.Ya=function(){return _.B(this,2)};_.g.Jb=function(a){return _.y(this,2,a)};_.g.Ti=function(){return _.Uj(this,2)};_.g.kh=function(){return _.Q(this,2)};
_.YH=function(a){_.K.call(this,a,-1,fdc)};_.N(_.YH,_.K);_.YH.prototype.Mz=function(){return _.B(this,1)};_.YH.prototype.getUrl=function(){return _.B(this,3)};var fdc=[2,4,6];

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1jq");
_.gdc={drive:1,appDataFolder:2,photos:3,androidBackup:4};_.hdc=_.ab(_.gdc);

_.w();

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

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

_.w();

}catch(e){_._DumpException(e)}
try{
_.ZH=function(a,b){a.V.remove(b);return a};_.$H=function(){return"goog_"+_.sia++};_.kdc=function(a,b,c,d,e,f){var h=new _.gj(null,void 0);a&&_.hj(h,a);b&&_.kma(h,b);c&&_.ij(h,c);d&&_.jj(h,d);e&&h.Fi(e);f&&_.kj(h,f);return h};_.aI=function(a){return new _.Rh(function(b){var c=a.length,d=[];if(c)for(var e=function(k,l,p){c--;d[k]=l?{V8:!0,value:p}:{V8:!1,reason:p};0==c&&b(d)},f=0,h;f<a.length;f++)h=a[f],_.Tja(h,_.Db(e,f,!0),_.Db(e,f,!1));else b(d)})};
_.bI=function(a,b){var c=Math.max(a.left,b.left),d=Math.min(a.left+a.width,b.left+b.width);if(c<=d){var e=Math.max(a.top,b.top);a=Math.min(a.top+a.height,b.top+b.height);if(e<=a)return new _.Cq(c,e,d-c,a-e)}return null};_.cI=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};_.cI.prototype.clone=function(){return new _.cI(this.start,this.end)};_.dI=function(a){return a.end-a.start};_.t("sy1lr");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.eI=function(a,b,c){_.O.call(this);this.Gn=null!=c?a.bind(c):a;this.ha=b;this.W=null;this.O=!1;this.V=0;this.H=null};_.N(_.eI,_.O);_.g=_.eI.prototype;_.g.ve=function(a){this.W=arguments;this.H||this.V?this.O=!0:ldc(this)};_.g.stop=function(){this.H&&(_.xi(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,ldc(this))};_.g.Za=function(){_.O.prototype.Za.call(this);this.stop()};
var ldc=function(a){a.H=_.wi(function(){a.H=null;a.O&&!a.V&&(a.O=!1,ldc(a))},a.ha);var b=a.W;a.W=null;a.Gn.apply(null,b)};

_.w();

}catch(e){_._DumpException(e)}
try{
var mdc,pdc;mdc=[3,42];_.ndc=function(a){_.K.call(this,a,-1,mdc)};_.N(_.ndc,_.K);_.ndc.prototype.getMimeType=function(){return _.B(this,27)};_.odc=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};pdc=function(a,b){if(b&&a in b)return a;var c=_.PFa();return c?(c=c.toLowerCase(),a=c+_.zia(a),void 0===b||a in b?a:null):null};_.t("sy1ls");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var qdc=function(a){_.ki.call(this,"visibilitychange");this.hidden=a};_.N(qdc,_.ki);
_.rdc=function(a){_.P.call(this);this.ld=a||_.mh();if(this.Az=this.Qqb())this.H=_.Be(this.ld.Ub(),this.Az,(0,_.u)(this.j9a,this))};_.Qf(_.rdc,_.P);_.g=_.rdc.prototype;_.g.Qqb=_.eda(function(){var a=this.ou(),b="hidden"!=this.mza();if(a){var c;b?c=((_.PFa()||"")+"visibilitychange").toLowerCase():c="visibilitychange";a=c}else a=null;return a});_.g.mza=_.eda(function(){return pdc("hidden",this.ld.Ub())});_.g.zsb=_.eda(function(){return pdc("visibilityState",this.ld.Ub())});_.g.ou=function(){return!!this.mza()};
_.g.xB=function(){return!!this.ld.Ub()[this.mza()]};_.g.j9a=function(){var a=this.ou()?this.ld.Ub()[this.zsb()]:null;a=new qdc(this.xB(),a);this.dispatchEvent(a)};_.g.Za=function(){_.si(this.H);_.rdc.wb.Za.call(this)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1lt");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.fI=function(){this.blockSize=-1;this.blockSize=64;this.H=Array(4);this.W=Array(this.blockSize);this.V=this.O=0;this.reset()};_.Qf(_.fI,_.jdc);_.fI.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 sdc=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};
_.fI.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;)sdc(this,a,f),f+=this.blockSize;if("string"===typeof a)for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.blockSize){sdc(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.blockSize){sdc(this,d);e=0;break}}this.O=e;this.V+=b};
_.fI.prototype.digest=function(){var a=Array((56>this.O?this.blockSize:2*this.blockSize)-this.O);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;var c=8*this.V;for(b=a.length-8;b<a.length;++b)a[b]=c&255,c/=256;this.update(a);a=Array(16);for(b=c=0;4>b;++b)for(var d=0;32>d;d+=8)a[c++]=this.H[b]>>>d&255;return a};

_.w();

}catch(e){_._DumpException(e)}
try{
var tdc;tdc=[2];_.gI=function(a){_.K.call(this,a,-1,tdc)};_.N(_.gI,_.K);_.gI.prototype.Bb=function(){return _.B(this,1)};_.gI.prototype.Dc=function(a){return _.y(this,1,a)};_.gI.prototype.iUa=function(){return _.bk(this,_.m7a,2)};_.gI.prototype.Zj=function(){return _.B(this,3)};_.t("sy1mm");
var udc;_.hI=function(a){_.K.call(this,a,-1,udc)};_.N(_.hI,_.K);_.hI.prototype.O=function(){return _.Td(this,1)};_.hI.prototype.xe=function(){return _.C(this,_.tf,2)};_.vdc=function(a,b){return _.J(a,2,b)};_.hI.prototype.Li=function(){return _.gk(this,3,20)};_.hI.prototype.ui=function(a){return _.y(this,3,a)};_.wdc=function(a,b){return _.y(a,4,b)};udc=[1];

_.w();

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

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1n0");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.xdc=function(a){_.O.call(this);this.O=a;this.H={};this.O.xO((0,_.u)(this.V,this))};_.Qf(_.xdc,_.O);_.zdc=function(a,b){if(-1!=b.indexOf(":"))throw Error("Pe`"+b);if(b in a.H)throw Error("Qe`"+b);var c=new ydc(a,b);return a.H[b]=c};_.xdc.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)}};_.xdc.prototype.Za=function(){_.Ma(this.H,function(a){_.aa(a)});_.aa(this.O);delete this.H;delete this.O};
var ydc=function(a,b){_.O.call(this);this.Pg=a;this.H=b};_.Qf(ydc,_.O);_.g=ydc.prototype;_.g.connect=function(a){a&&a()};_.g.isConnected=function(){return!0};_.g.registerService=function(a,b,c){this.Pg.O.registerService(this.H+":"+a,(0,_.u)(this.uSa,this,b),c)};_.g.xO=function(a){this.O=(0,_.u)(this.uSa,this,a)};_.g.send=function(a,b){if(this.isDisposed())throw Error("Re");this.Pg.O.send(this.H+":"+a,b)};_.g.uSa=function(a,b){this.isDisposed()||a.apply({},Array.prototype.slice.call(arguments,1))};
_.g.Za=function(){this.Pg=this.Pg.H[this.H]=null};

_.w();

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

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var Bdc,kI,Ddc,Cdc;_.jI=function(a,b,c){if("number"===typeof a)var d={name:Cdc(a)};else d=a,a=Ddc(a.name);this.code=a;this.O=d;b="Error "+b+": "+this.getName();c&&(b+=", "+c);_.ha.call(this,b)};_.Qf(_.jI,_.ha);_.jI.prototype.getName=function(){return this.O.name||""};kI={Whb:1,$gb:2,NOT_FOUND_ERR:3,n7a:4,t7a:5,bhb:6,Rhb:7,ABORT_ERR:8,qhb:9,f5b:10,TIMEOUT_ERR:11,nhb:12,INVALID_ACCESS_ERR:13,INVALID_STATE_ERR:14};_.Edc=(_.n.sI||_.n.mL||kI).Whb;_.Fdc=(_.n.sI||_.n.mL||kI).$gb;_.Gdc=(_.n.sI||_.n.mL||kI).NOT_FOUND_ERR;
_.Hdc=(_.n.sI||_.n.mL||kI).n7a;_.Idc=(_.n.sI||_.n.mL||kI).t7a;_.Jdc=(_.n.sI||_.n.mL||kI).bhb;_.Kdc=(_.n.sI||_.n.mL||kI).Rhb;_.Ldc=(_.n.sI||_.n.mL||kI).ABORT_ERR;_.Mdc=(_.n.sI||_.n.mL||kI).qhb;_.Ndc=(_.n.sI||_.n.mL||kI).TIMEOUT_ERR;_.Odc=(_.n.sI||_.n.mL||kI).nhb;_.Pdc=(_.n.DOMException||kI).INVALID_ACCESS_ERR;_.Qdc=(_.n.DOMException||kI).INVALID_STATE_ERR;
Ddc=function(a){switch(a){case "UnknownError":return _.Edc;case "NotFoundError":return _.Gdc;case "ConstraintError":return _.Hdc;case "DataError":return _.Idc;case "TransactionInactiveError":return _.Kdc;case "AbortError":return _.Ldc;case "ReadOnlyError":return _.Mdc;case "TimeoutError":return _.Ndc;case "QuotaExceededError":return _.Odc;case "InvalidAccessError":return _.Pdc;case "InvalidStateError":return _.Qdc;default:return _.Edc}};
Cdc=function(a){switch(a){case _.Edc:return"UnknownError";case _.Gdc:return"NotFoundError";case _.Hdc:return"ConstraintError";case _.Idc:return"DataError";case _.Kdc:return"TransactionInactiveError";case _.Ldc:return"AbortError";case _.Mdc:return"ReadOnlyError";case _.Ndc:return"TimeoutError";case _.Odc:return"QuotaExceededError";case _.Pdc:return"InvalidAccessError";case _.Qdc:return"InvalidStateError";default:return"UnknownError"}};
_.lI=function(a,b){return"error"in a?new _.jI(a.error,b):new _.jI({name:"UnknownError"},b)};_.mI=function(a,b){if("name"in a)return b=b+": "+a.message,new _.jI(a,b);if("code"in a){var c=Cdc(a.code);b=b+": "+a.message;return new _.jI({name:c},b)}return new _.jI({name:"UnknownError"},b)};
_.Rdc=function(a){this.H=a};_.Sdc=_.n.IDBKeyRange||_.n.webkitIDBKeyRange;_.Rdc.prototype.range=function(){return this.H};
var Tdc=function(a){this.H=a};Tdc.prototype.getName=function(){return this.H.name};var Udc=function(a,b,c,d){var e=new _.Xh;try{var f=a.H[b](d)}catch(h){return c+=" with key "+iI(d),e.Jd(_.mI(h,c)),e}f.onsuccess=function(h){e.callback(h.target.result)};f.onerror=function(h){c+=" with key "+iI(d);e.Jd(_.lI(h.target,c))};return e};Tdc.prototype.get=function(a){return Udc(this,"get","getting from index "+this.getName(),a)};
Tdc.prototype.getKey=function(a){return Udc(this,"getKey","getting key from index "+this.getName(),a)};Tdc.prototype.getAll=function(a,b){return _.Vdc(this,"getAll","getting all from index "+this.getName(),a,b)};
_.Vdc=function(a,b,c,d,e){var f;void 0===d?f=void 0:f=d instanceof _.Rdc?d.range():(new _.Rdc(_.Sdc.only(d))).range();var h=new _.Xh;try{var k=a.H[b](f,e)}catch(l){return c+=" for range "+(f?iI(f):"<all>"),h.Jd(_.mI(l,c)),h}k.onsuccess=function(){h.callback(k.result)};k.onerror=function(l){c+=" for range "+(f?iI(f):"<all>");h.Jd(_.lI(l.target,c))};return h};
var Wdc=function(a){this.H=a};Wdc.prototype.getName=function(){return this.H.name};var Xdc=function(a,b,c,d,e){var f=new _.Xh;try{var h=e?a.H[b](d,e):a.H[b](d)}catch(k){return c+=iI(d),e&&(c+=", with key "+iI(e)),f.Jd(_.mI(k,c)),f}h.onsuccess=function(k){f.callback(k.target.result)};h.onerror=function(k){c+=iI(d);e&&(c+=", with key "+iI(e));f.Jd(_.lI(k.target,c))};return f};_.g=Wdc.prototype;_.g.put=function(a,b){return Xdc(this,"put","putting into "+this.getName()+" with value",a,b)};
_.g.add=function(a,b){return Xdc(this,"add","adding into "+this.getName()+" with value ",a,b)};_.g.remove=function(a){var b=new _.Xh;try{var c=this.H["delete"](a instanceof _.Rdc?a.range():a)}catch(e){return c="removing from "+this.getName()+" with key "+iI(a),b.Jd(_.mI(e,c)),b}c.onsuccess=function(){b.callback()};var d=this;c.onerror=function(e){var f="removing from "+d.getName()+" with key "+iI(a);b.Jd(_.lI(e.target,f))};return b};
_.g.get=function(a){var b=new _.Xh;try{var c=this.H.get(a)}catch(e){return c="getting from "+this.getName()+" with key "+iI(a),b.Jd(_.mI(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 "+iI(a);b.Jd(_.lI(e.target,f))};return b};_.g.getAll=function(a,b){return Ydc(this,"getting all from index "+this.getName(),a,b)};
var Ydc=function(a,b,c,d){var e;void 0===c?e=void 0:e=c instanceof _.Rdc?c.range():(new _.Rdc(_.Sdc.only(c))).range();var f=new _.Xh;try{var h=a.H.getAll(e,d)}catch(k){return b+=" for range "+(e?iI(e):"<all>"),f.Jd(_.mI(k,b)),f}h.onsuccess=function(){f.callback(h.result)};h.onerror=function(k){b+=" for range "+(e?iI(e):"<all>");f.Jd(_.lI(k.target,b))};return f};
Wdc.prototype.clear=function(){var a="clearing store "+this.getName(),b=new _.Xh;try{var c=this.H.clear()}catch(d){return b.Jd(_.mI(d,a)),b}c.onsuccess=function(){b.callback()};c.onerror=function(d){b.Jd(_.lI(d.target,a))};return b};Wdc.prototype.getIndex=function(a){try{return new Tdc(this.H.index(a))}catch(b){throw _.mI(b,"getting index "+a);}};
Wdc.prototype.count=function(a){var b=new _.Xh;try{var c=this.H.count(a?a.range():null);c.onsuccess=function(e){b.callback(e.target.result)};var d=this;c.onerror=function(e){b.Jd(_.lI(e.target,d.getName()))}}catch(e){b.Jd(_.mI(e,this.getName()))}return b};
var Zdc=function(a,b){_.P.call(this);this.H=a;this.O=b;this.Cb=new _.Le(this);this.Cb.listen(this.H,"complete",(0,_.u)(this.dispatchEvent,this,"complete"));this.Cb.listen(this.H,"abort",(0,_.u)(this.dispatchEvent,this,"abort"));this.Cb.listen(this.H,"error",this.k9a)};_.Qf(Zdc,_.P);_.g=Zdc.prototype;_.g.k9a=function(a){a.target instanceof _.jI?this.dispatchEvent({type:"error",target:a.target}):this.dispatchEvent({type:"error",target:_.lI(a.target,"in transaction")})};_.g.Dh=function(){return this.H.mode};
_.g.objectStore=function(a){try{return new Wdc(this.H.objectStore(a))}catch(b){throw _.mI(b,"getting object store "+a);}};_.g.commit=function(a){if(this.H.commit||!a)try{this.H.commit()}catch(b){throw _.mI(b,"cannot commit the transaction");}};
_.g.wait=function(){var a=new _.Xh;_.Se(this,"complete",(0,_.u)(a.callback,a));var b=_.Se(this,"abort",function(){_.si(c);a.Jd(new _.jI(_.Ldc,"waiting for transaction to complete"))});var c=_.Se(this,"error",function(e){_.si(b);a.Jd(e.target)});var d=this.O;return a.addCallback(function(){return d})};_.g.abort=function(){this.H.abort()};_.g.Za=function(){Zdc.wb.Za.call(this);this.Cb.dispose()};
var $dc=function(a){_.P.call(this);this.H=a;this.Cb=new _.Le(this);this.Cb.listen(this.H,"abort",(0,_.u)(this.dispatchEvent,this,"abort"));this.Cb.listen(this.H,"error",this.l9a);this.Cb.listen(this.H,"versionchange",this.fob);this.Cb.listen(this.H,"close",(0,_.u)(this.dispatchEvent,this,"close"))};_.Qf($dc,_.P);_.g=$dc.prototype;_.g.Rra=!0;_.g.l9a=function(a){a=(a=a.target)&&a.error;this.dispatchEvent({type:"error",errorCode:a&&a.severity})};
_.g.fob=function(a){this.dispatchEvent(new aec(a.oldVersion,a.newVersion))};_.g.close=function(){this.Rra&&(this.H.close(),this.Rra=!1)};_.g.Eg=function(){return this.Rra};_.g.getName=function(){return this.H.name};_.g.zi=function(){return Number(this.H.version)};_.bec=function(a,b,c){try{return new Wdc(a.H.createObjectStore(b,c))}catch(d){throw _.mI(d,"creating object store "+b);}};
_.cec=function(a,b,c){try{var d=c?a.H.transaction(b,c):a.H.transaction(b);return new Zdc(d,a)}catch(e){throw _.mI(e,"creating transaction");}};$dc.prototype.Za=function(){$dc.wb.Za.call(this);this.Cb.dispose()};var aec=function(a,b){_.ki.call(this,"versionchange");this.oldVersion=a;this.newVersion=b};_.Qf(aec,_.ki);
_.dec=function(){void 0==Bdc&&(Bdc=_.n.indexedDB||_.n.mozIndexedDB||_.n.webkitIndexedDB||_.n.moz_indexedDB);return Bdc};
_.eec=function(a,b,c,d){var e=new _.Xh;b=b?_.dec().open(a,b):_.dec().open(a);b.onsuccess=function(f){f=new $dc(f.target.result);e.callback(f)};b.onerror=function(f){e.Jd(_.lI(f.target,"opening database "+a))};b.onupgradeneeded=function(f){if(c){var h=new $dc(f.target.result);c(new aec(f.oldVersion,f.newVersion),h,new Zdc(f.target.transaction,h))}};b.onblocked=function(f){d&&d(new aec(f.oldVersion,f.newVersion))};return e};

_.w();

}catch(e){_._DumpException(e)}
try{
_.fec=function(a,b){this.ka=a;this.va=b;this.V="https://play.google.com/log?format=json&hasfast=true";this.W=!1;this.ma=_.vcc;this.H=""};_.t("sy1n2");
_.fec.prototype.build=function(){var a=new _.UH(this.ka,this.Ka?this.Ka:_.ddc,this.va,this.ma,this.V,this.W,!1,void 0,void 0,void 0,this.ta?this.ta:void 0);if(this.Fa){var b=this.Fa;_.B(b,1)||_.y(b,1,1);_.J(a.ka,1,b)}if(this.O){b=this.O;var c=_.C(a.ka,_.Bcc,1),d=_.C(c,_.zcc,11);d||(d=new _.zcc);_.y(d,7,b);_.J(c,11,d);_.B(c,1)||_.y(c,1,1);_.J(a.ka,1,c)}this.ha&&(a.Fa=this.ha);this.H&&(a.Ka=this.H);this.Ba&&_.Occ(a,this.Ba);this.Pa&&(b=this.Pa,a.V||(a.V=new _.ycc),_.Qj(a.V,2,b));this.Ha&&(b=this.Ha,
a.Rb=!0,_.Qcc(a,b));return a};

_.w();

}catch(e){_._DumpException(e)}
try{
_.gec=function(a,b,c){a.O[b.getId()]=c;a.H&&c.O(a.H)};_.t("sy1n3");
_.hec=function(a){var b;this.O=(b=void 0===b?!1:b)?null:a;this.H=b?a:null};_.hec.prototype.tA=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=_.TH(new _.SH,a.jc());b(a);return new _.Rh(function(d){c(d,function(){d()})}.bind(this))};
_.iec=function(a){var b;this.O=(b=void 0===b?!1:b)?null:a;this.H=b?a:null;this.O&&_.Pcc(this.O)};_.iec.prototype.tA=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=_.TH(new _.SH,a.jc());b(a);c()};

_.w();

}catch(e){_._DumpException(e)}
try{
var jec=function(a){_.K.call(this,a)};_.N(jec,_.K);jec.prototype.getEmail=function(){return _.E(this,3,"")};jec.prototype.mp=function(){return _.Q(this,3)};_.nI=function(a){return _.C(a,jec,36,1)};_.t("sy1mo");

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1mn");
_.oI=function(a){_.K.call(this,a)};_.N(_.oI,_.K);_.oI.prototype.xe=function(){return _.C(this,_.tf,1)};_.pI=function(a,b){return _.J(a,1,b)};_.oI.prototype.Mg=function(){return _.B(this,4)};_.oI.prototype.toa=function(a){return _.y(this,4,a)};

_.w();

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

_.w();

}catch(e){_._DumpException(e)}
try{
var kec=function(a){_.K.call(this,a)},pec;_.N(kec,_.K);var lec=function(a){_.K.call(this,a)};_.N(lec,_.K);_.qI=function(a){_.K.call(this,a)};_.N(_.qI,_.K);_.qI.prototype.v4=function(a){_.y(this,3,a)};_.qI.prototype.Ll=function(a){return _.J(this,5,a)};_.qI.prototype.getMimeType=function(){return _.B(this,7)};var mec=[2],nec=function(a){_.K.call(this,a,-1,mec)};_.N(nec,_.K);var oec=function(a){_.K.call(this,a)};_.N(oec,_.K);pec=function(a){this.H=a};_.qec=function(a){this.qd=a};
_.qec.prototype.getId=function(){return this.qd};var rec=function(a){_.K.call(this,a)};_.N(rec,_.K);rec.prototype.zi=function(){return _.B(this,1)};var sec=function(a){_.K.call(this,a)};_.N(sec,_.K);
var uec=function(){this.O=this.ha=!1;this.H=null;for(var a=this.W=this.V=0;a<_.gBa.length;a++){var b=_.gBa[a];if(b&&b.chrome&&b.chrome.runtime&&b.chrome.runtime.connect){this.ha=!0;tec(this,b);break}}},tec=function(a,b){a.H=b.chrome.runtime.connect("ciiamoeghmklpofjbocenebdfbgjapaa");a.O=!0;a.H.onDisconnect.addListener(function(){a.O=!1});document.addEventListener("mousemove",function(c){a.V=c.clientX;a.W=c.clientY})};
uec.prototype.tA=function(a){if(this.ha&&this.O){var b=_.C(a,_.Qb,2)||new _.Qb,c=_.C(a,_.Wo,5)||new _.Wo,d=_.C(a,_.qI,3)||new _.qI;a=_.bk(a,_.eza,1);a=_.m(a);for(var e=a.next();!e.done;e=a.next())this.H.postMessage({detail:{impression:e.value.jc(),session_info:b.jc(),session_invariants:c.jc(),client_info:d.jc()}});document.dispatchEvent(new CustomEvent("ripple",{detail:{clientX:this.V,clientY:this.W}}))}};_.t("sy1ms");
var vec=function(){_.Po.call(this)};_.N(vec,_.Po);vec.prototype.sv=function(){return 1==_.B(_.C(this.H,kec,7),1)};var wec=new _.Lo("high_frequency_builder");
var xec=function(a,b,c){a=new _.ui(a);c.Ma(a);var d=new _.Le(c);c.Ma(d);d.listen(a,"tick",b);a.start()};
var yec=function(){_.Po.call(this)};_.N(yec,_.Po);var zec=function(a,b,c){var d=1E3*Date.now();if(0==b){b=new _.Bo;var e=new _.Eya;e=_.y(e,1,d);_.J(b,1,e);_.y(b,3,1);_.J(a.H,8,b);_.y(a.H,12,c);_.y(a.H,13,c);_.y(a.H,4,d);_.y(a.H,3,c)}else 1==b&&(b=new _.Bo,e=new _.Fya,d=_.y(e,1,d),_.J(b,2,d),_.y(b,3,2),_.J(a.H,8,b),_.y(a.H,12,c),_.y(a.H,3,c));return a},Aec=new _.Lo("system_builder");
var Bec=function(a,b){_.O.call(this);this.O=a;this.H=new _.rdc(b);this.Ma(this.H);this.Cb=new _.Le(this);this.Ma(this.Cb);this.H.ou()&&this.Cb.listen(this.H,"visibilitychange",this.V)};_.N(Bec,_.O);Bec.prototype.V=function(){if(this.O.vP()){var a=this.H.xB()?102001:102E3;a=this.O.OF(a,0);this.O.nq(a)}};
var Cec=function(a,b,c){c=void 0===c?!1:c;_.O.call(this);this.H=a;this.O=b;this.Ma(this.O);this.W=c;this.V=null};_.N(Cec,_.O);_.g=Cec.prototype;_.g.nq=function(a){var b=this.H;_.y(a.H,6,b.W);a=a.build();b.H.add(a);b.V=!0;b=this.O;3<=b.H.H.hc()&&b.O.ve();return new pec(a)};_.g.OF=function(a,b){a=zec(Dec(this.H,a),b,this.H.ha++);1==b&&this.H.ka.add(a);return a};_.g.CL=function(){return this.H.O};
_.g.LM=function(a){var b=this.H,c=_.Qo(a,Aec),d=b.ha++,e=_.C(_.C(c.H,_.Bo,8),_.Fya,2),f=1E3*Date.now();_.y(e,2,f);_.y(c.H,13,d);b.ka.remove(_.B(a.H,12))};_.g.FZ=function(){var a=this.O;if(!a.ha||a.H.V){var b=Eec(a.H,691).build();b=Fec(a.H,[b]);a.ka.tA(b)}a.W();this.H.ma=!1;this.V&&(_.aa(this.V),this.V=null)};_.g.GZ=function(){var a=this.H,b=Eec(a,716);Gec(a,b);b=b.build();a.H.add(b);a.va=!0;a.ma=!0;this.O.initialize();this.O.O.ve();this.W&&(this.V=new Bec(this))};_.g.bja=function(){this.O.W();return _.aI(Array.from(this.O.V)).then()};
_.g.vP=function(){var a=this.H;return a.va&&a.ma&&!0};
var Hec=function(a,b,c,d,e){_.O.call(this);this.H=a;this.ta=b;this.ka=c;this.O=new _.eI(this.W,3E3,this);this.V=new Set;this.ha=d;this.ma=e||6E4};_.N(Hec,_.O);Hec.prototype.initialize=function(){xec(this.ma,this.O.ve,this.O);xec(36E5,this.va,this)};Hec.prototype.W=function(){var a=this;if(0!=this.H.H.hc()&&(!this.ha||this.H.V)){var b=Iec(this.H),c=this.ta.tA(b);c&&(_.Wh(c,function(){return void a.V.delete(c)}),this.V.add(c))}};
Hec.prototype.va=function(){var a=this.H,b=Eec(a,1153).build();a.H.add(b);this.O.ve()};
var Jec=function(a){_.O.call(this);this.H=a;this.Ma(this.H)};_.N(Jec,_.O);_.g=Jec.prototype;_.g.nq=function(a){a=this.H.nq(a);this.bja();return a};_.g.OF=function(a,b){return this.H.OF(a,b)};_.g.CL=function(){return this.H.CL()};_.g.LM=function(a){return this.H.LM(a)};_.g.FZ=function(){return this.H.FZ()};_.g.GZ=function(){return this.H.GZ()};_.g.bja=function(){return this.H.bja()};_.g.vP=function(){return this.H.vP()};
var Kec=function(){};Kec.prototype.IQ=function(){return new vec};
var Lec=function(){this.H=[]};Lec.prototype.add=function(a){this.H.push(a)};Lec.prototype.hc=function(){return this.H.length};
var Mec=function(){this.H={}};Mec.prototype.add=function(a){var b=_.B(a.H,12);this.H[b]=a};Mec.prototype.remove=function(a){delete this.H[a]};
var Nec=function(a,b){this.O=a;this.Ba=b;this.ha=1;this.ta=this.W=null;this.ka=new Mec;this.H=new Lec;this.ma=this.va=this.V=!1},Dec=function(a,b){a=_.Qo((new _.Po).initialize(new _.eza,a.Ba),Aec);_.y(a.H,10,b);return a},Iec=function(a){var b=a.H,c=b.H;b.H=[];return Fec(a,c)},Fec=function(a,b){var c=new _.vAa;var d=a.O.W.clone();c=_.J(c,2,d);d=a.O;(d=d.O?d.O.clone():null)&&_.J(c,5,d);var e;d=a.O;for(var f,h=b.length-1;0<=h;h--){var k=_.C(b[h],_.Jo,5);if(k&&_.C(k,_.ndc,1)){k=_.C(k,_.ndc,1);_.Q(k,12)&&
void 0===e&&(e=_.S(k,12));k=_.C(k,lec,20);if(void 0!==k&&void 0===f){f=new sec;var l=_.S(k,2);void 0!==l&&_.y(f,2,l);k=_.S(k,1);void 0!==k&&_.y(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 _.qI),void 0!==e&&_.y(d,6,e),void 0!==f&&_.J(d,13,f);(e=d)&&_.J(c,3,e);a=a.O.ha.clone();_.J(c,4,a);_.Wj(c,1,b);return c},Eec=function(a,b){var c=zec(Dec(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 oec;k=_.y(p,1,k);l=_.B(l.H,10);l=_.y(k,2,l);f.push(l)}d=f}716!=b&&(b=a.ta,_.y(c.H,6,a.W),e=new nec,b=_.y(e,1,b),d&&_.Wj(b,2,d),d=_.Ro(c),_.J(d,3,b));Gec(a,c);return c},Gec=function(a,b){a.W=_.B(b.H,12);a.ta=_.B(_.C(_.C(b.H,_.Bo,8),_.Eya,1),1)};
var Oec=function(){};Oec.prototype.IQ=function(){return new yec};
var Pec=function(){this.H=this.O=null};Pec.prototype.build=function(){null==this.H&&(this.H=new _.Pza);_.To(this.H,Aec,new Oec);_.To(this.H,wec,new Kec);var a=this.H;var b=this.O;if(!_.Q(_.Qec(b),1)){var c=_.Qec(b),d=new _.gAa;_.J(c,1,d)}b=_.C(_.Qec(b),_.gAa,1);a.H=b;b=_.Ra(a.O);for(c=0;c<b.length;c++)b[c].O(a.H);return new Nec(this.O,this.H)};
var Rec=function(){this.W=new _.Qb;this.O=null;this.ha=new rec;_.y(this.ha,1,6);this.H=this.V=null};Rec.prototype.setSessionId=function(a){this.W.setSessionId(a);return this};_.Sec=function(a,b){_.y(a.W,2,b);return a};_.Tec=function(a,b){if(null==a.V){a.V=new _.tAa;var c=_.Qec(a);_.J(c,2,a.V)}_.y(a.V,1,b)};_.Qec=function(a){null==a.O&&(a.O=new _.Wo);return a.O};_.Uec=function(a){null==a.H&&(a.H=new _.qI);return a.H};
_.Vec=function(){this.H=this.ha=null;this.W=new Rec;this.V=null;this.ka=this.ma=!1;this.O=null};_.Wec=function(a,b){a.ha=b;return a};_.Xec=function(a,b){a.H=b;return a};_.Yec=function(a,b){a.V=b;return a};_.Vec.prototype.setSessionId=function(a){this.W.setSessionId(a);return this};_.Zec=function(a,b){_.y(a.W.W,6,b);return a};
_.Vec.prototype.build=function(){var a=new Pec;a.O=this.W;null!=this.V&&(a.H=this.V);a=a.build();if(this.ka){var b=new uec;this.H=this.ha=b}b=new Hec(a,this.ha,this.H,this.ma,this.O);a=new Cec(a,b,!1);this.ka&&(a=new Jec(a));return a};

_.w();

}catch(e){_._DumpException(e)}
try{
_.rI=function(a){return a instanceof Error};_.tI=function(a){return _.T(a,84,!1)};_.t("sy1mg");
_.$ec=function(a){_.K.call(this,a)};_.N(_.$ec,_.K);
_.uI=function(a){_.K.call(this,a)};_.N(_.uI,_.K);_.uI.prototype.getOptions=function(){return _.C(this,_.$ec,1)};_.uI.prototype.Xn=function(){return _.B(this,2)};_.uI.prototype.ud=function(){return _.C(this,_.gf,3)};
_.afc=function(a){_.K.call(this,a,-1,void 0,_.vI)};_.N(_.afc,_.K);_.vI=[[3,4,5,6,7,8,9,10]];
var wI,cfc;wI={};_.bfc=(wI[1]="modifiedDate",wI[2]="modifiedByMeDate",wI[3]="quotaBytesUsed",wI[4]="title",wI[6]="lastViewedByMeDate",wI[10]="createdDate",wI[7]="sharedWithMeDate",wI[9]="starred",wI[11]="recency",wI[5]="relevance",wI[12]="trashedDate",wI[13]="lastViewedByMeDate",wI);cfc={};_.dfc=(cfc[1]="asc",cfc[2]="desc",cfc);
_.efc=new Map([[157,"categoryReferences"],[5,"hidden"]]);
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.ffc=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():_.Nf();this.date=new Date(a)};_.Qf(_.ffc,_.It);_.g=_.ffc.prototype;_.g.clone=function(){var a=new _.ffc(this.date);a.DG=this.DG;a.jV=this.jV;return a};_.g.add=function(a){(a.W||a.V)&&_.Ht.prototype.add.call(this,new _.Gt(a.W,a.V));this.date=new Date(this.date.getTime()+1E3*(a.seconds+60*(a.O+60*(a.H+24*a.ew))))};_.g.getTimezoneOffset=function(){return 0};_.g.getFullYear=_.It.prototype.getUTCFullYear;
_.g.getMonth=_.It.prototype.getUTCMonth;_.g.getDate=_.It.prototype.getUTCDate;_.g.getHours=_.It.prototype.getUTCHours;_.g.getMinutes=_.It.prototype.getUTCMinutes;_.g.getSeconds=_.It.prototype.d8a;_.g.getMilliseconds=_.It.prototype.c8a;_.g.getDay=_.It.prototype.getUTCDay;_.g.setFullYear=_.It.prototype.setUTCFullYear;_.g.setMonth=_.It.prototype.setUTCMonth;_.g.setDate=_.It.prototype.setUTCDate;_.g.setHours=_.It.prototype.VKa;_.g.setMinutes=_.It.prototype.WKa;_.g.setSeconds=_.It.prototype.XKa;
_.g.setMilliseconds=_.It.prototype.e8a;
var gfc,ifc;gfc={};_.hfc=(gfc[1]="0",gfc[2]="1",gfc[3]="2",gfc);ifc={};_.jfc=(ifc[1]="asc",ifc[2]="desc",ifc);
_.kfc=new _.Lo("drive_dataservice_builder");
_.lfc=_.ah&&0>_.ig(_.dh,"533");
_.mfc=new _.qec("drive_dataservice_invariants");
_.nfc=new Map([[[1],1],[[6],7],[[2],2]]);_.ofc=new Map([[[1],3],[[2],4],[[3],5],[[4],6],[[5],7],[[6],8],[[10],12],[[7],9],[[8],10],[[9],11]]);
_.pfc=new Map([[12,function(a){return _.S(a,69)}],[24,function(a){return _.T(a,3,!1)}],[9,function(a){return _.T(a,17,!1)}],[21,function(a){return _.tI(a)}],[13,function(a){return _.S(a,60)}],[2,function(a){return _.T(a,8,!0)}],[6,function(a){return _.T(a,11,!1)}],[14,function(){return!0}],[16,function(a){return _.T(a,56,!1)}],[17,function(a){return _.T(a,57,!1)}],[18,function(a){return _.T(a,54,!1)}],[19,function(a){return _.T(a,53,!1)}],[23,function(){return!0}],[28,function(){return!0}]]);
_.qfc=new Map([[36,function(a){return _.T(a,11,!1)}],[34,function(a){return _.T(a,9,!1)}],[25,function(a){return _.T(a,1,!1)}],[33,function(a){return _.T(a,8,!1)}],[26,function(a){return _.T(a,2,!1)}],[27,function(a){return _.T(a,3,!1)}],[29,function(a){return _.T(a,4,!1)}],[32,function(a){return _.T(a,7,!1)}],[40,function(a){return _.T(a,15,!1)}],[43,function(a){return _.T(a,18,!1)}],[42,function(a){return _.T(a,17,!1)}],[30,function(a){return _.T(a,5,!1)}],[31,function(a){return _.T(a,6,!1)}],[35,
function(a){return _.T(a,10,!1)}],[38,function(a){return _.T(a,13,!1)}],[39,function(a){return _.T(a,14,!1)}],[41,function(a){return _.T(a,16,!1)}]]);_.rfc=new Map([[[1],1],[[2],2],[[3],3],[[4],4]]);
_.sfc=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]]);_.tfc=new Map([[[2],3],[[1],2],[[0],1]]);_.ufc=new Map([[[0],1],[[1],2],[[3],3],[[5],4],[[6],5]]);
_.vfc=new Map([[[_.Fdc],1],[[_.Gdc],2],[[_.Hdc],3],[[_.Idc],4],[[_.Jdc],5],[[_.Kdc],6],[[_.Ldc],7],[[_.Mdc],8],[[_.Ndc],10],[[_.Odc],11],[[_.Pdc],12],[[_.Qdc],13]]);_.wfc=new Map([[[0],1],[[1],2],[[2],3],[[3],4],[[4],5],[[5],6],[[6],7]]);

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1ml");
_.xI=function(a){_.K.call(this,a,-1,xfc)};_.N(_.xI,_.K);_.xI.prototype.Cc=function(){return _.B(this,2)};_.yI=function(a,b){return _.y(a,2,b)};_.g=_.xI.prototype;_.g.nk=function(){return _.T(this,3,!1)};_.g.getItem=function(){return _.C(this,_.dl,4)};_.g.setItem=function(a){return _.J(this,4,a)};_.g.Ac=function(){return _.B(this,7)};_.g.L9=function(){return _.B(this,13)};_.g.eHa=function(a){_.y(this,13,a)};var xfc=[8,17];

_.w();

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

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1mj");
_.aG=function(a){_.K.call(this,a,-1,GVb)};_.N(_.aG,_.K);_.aG.prototype.getId=function(){return _.B(this,1)};_.aG.prototype.Ob=function(a){return _.y(this,1,a)};_.aG.prototype.kv=function(){return _.B(this,2)};var GVb=[5,6,9,10,12,13,15,16];
var HVb;_.bG=function(a){_.K.call(this,a,-1,HVb)};_.N(_.bG,_.K);_.bG.prototype.an=function(){return _.B(this,1)};_.IVb=function(a,b){return _.y(a,1,b)};HVb=[2,4];

_.w();

}catch(e){_._DumpException(e)}
try{
var Bfc;_.BI=function(a){if(a instanceof _.pc)return a;if(_.rI(a)){if(a=_.Hub(a))return a}else a="string"===typeof a?_.JEa(a):_.JEa("Converting an unexpected reason type to drive.ds.Error which should be drive.ds.Error, Error, or string. Found:"+a);_.zI(a,2);_.AI(a,6);return a};_.yfc=function(a){var b=a.lk();a=a.$F();return 15===b||32===b||33===b||401===a};_.zfc=function(){return _.n.WorkerGlobalScope&&self instanceof _.n.WorkerGlobalScope};_.Afc=function(a){_.K.call(this,a)};_.N(_.Afc,_.K);
_.CI=function(a){return _.gk(a,1,0)};_.DI=function(a){return _.C(a,_.Afc,4)};_.zI=function(a,b){return _.y(a,1,b)};_.AI=function(a,b){return _.y(a,2,b)};Bfc=[8,9,10,13,14,27,28,29,31,32,33,34,38];_.EI=function(a){_.K.call(this,a,-1,Bfc)};_.N(_.EI,_.K);_.g=_.EI.prototype;_.g.getId=function(){return _.B(this,1)};_.g.Ob=function(a){return _.y(this,1,a)};_.g.getTitle=function(){return _.B(this,2)};_.g.setTitle=function(a){return _.y(this,2,a)};_.g.He=function(){return _.B(this,3)};
_.g.Ul=function(a){return _.y(this,3,a)};_.g.Ev=function(a){return _.y(this,4,a)};_.g.Uh=function(){return _.S(this,5)};_.g.Mn=function(a){return _.y(this,5,a)};_.g.getMimeType=function(){return _.B(this,6)};_.g.pE=function(a,b){_.Zj(this,8,a,b)};_.g.Wi=function(){return _.B(this,12)};_.g.xe=function(){return _.C(this,_.tf,17)};_.g.zi=function(){return _.B(this,20)};_.g.Ac=function(){return _.B(this,21)};_.FI=function(a,b){return _.y(a,16,b)};_.t("sy1mk");
_.GI=function(a){_.K.call(this,a,-1,Cfc)};_.N(_.GI,_.K);_.GI.prototype.RQ=function(){return _.gk(this,2,100)};_.GI.prototype.NO=function(a){return _.y(this,2,a)};_.GI.prototype.xe=function(){return _.C(this,_.tf,6)};_.GI.prototype.Ac=function(){return _.B(this,8)};var Cfc=[5];
var Dfc;Dfc={};_.Efc=(Dfc[0]="/drive/v2internal",Dfc[1]="/drive/v2internal.corp",Dfc[2]="/drive/v2internal.scary",Dfc[4]="/drive/v2internal.scary",Dfc[5]="/drive/v2beta",Dfc[6]="/drive/v2.1beta",Dfc);
_.Ffc=new Set([0,1,2,3]);
_.Gfc=new Map([[1,"connected"],[2,"unauthenticated/online"],[3,"offline"]]);
_.Hfc=_.y(new _.EI,15,!0);_.Ifc=_.FI(new _.EI,!0);_.Jfc=_.FI(new _.EI,!1);
_.Kfc=new Map([["CacheSize","Number of items currently in the in-memory cache."],["SecondaryFields","List of secondary fields"],["CachedCorpusType","Type of corpus cached (full, partial)."],["InitialChanges","Status of initial catchup changelog requests."],["SdkBackfillEnabled","Whether backfill via Drive SDK is enabled."],["UploadFailureCount","Number of failed uploads."],["UploadSuccessCount","Number of successful uploads."],["UploadTotalCount","Number of initiated uploads."],["InitialViewDataLoaded",
"Whether initial view data was loaded before the initial query."]]);

_.w();

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

_.w();

}catch(e){_._DumpException(e)}
try{
_.Mfc=function(a){a=_.gb(a);return 0===a.length?_.Nha:new _.mg(a,_.Lha)};_.t("sy1n4");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Nfc=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)};_.Qf(_.Nfc,_.jdc);_.Nfc.prototype.reset=function(){this.H.reset();this.H.update(this.O)};_.Nfc.prototype.update=function(a,b){this.H.update(a,b)};
_.Nfc.prototype.digest=function(){var a=this.H.digest();this.H.reset();this.H.update(this.V);this.H.update(a);return this.H.digest()};_.Ofc=function(a,b){a.reset();a.update(b);return a.digest()};
_.Pfc=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()};_.Qf(_.Pfc,_.jdc);_.Pfc.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 Qfc=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};
_.Pfc.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;)Qfc(this,a,d),d+=this.blockSize;if("string"===typeof a)for(;d<b;){if(e[f]=a.charCodeAt(d),++f,++d,f==this.blockSize){Qfc(this,e);f=0;break}}else for(;d<b;)if(e[f]=a[d],++f,++d,f==this.blockSize){Qfc(this,e);f=0;break}}this.O=f;this.V+=b}};
_.Pfc.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;Qfc(this,this.ha);for(c=b=0;5>c;c++)for(var d=24;0<=d;d-=8)a[b]=this.H[c]>>d&255,++b;return a};

_.w();

}catch(e){_._DumpException(e)}
try{
_.HI=function(a,b){return _.y(a,82,b)};_.II=function(a){return _.y(a,3,!0)};_.Rfc=function(a,b){return _.y(a,7,b)};_.t("sy1mh");
_.Sfc=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
*/
_.JI={m_:"Versions",R6:"Metadata",C5:"Data",kU:"Offline"};_.Tfc=new Map([[_.JI.m_,"versionKey"],[_.JI.R6,"k"]]);_.Ufc=new Set([1004]);

_.w();

}catch(e){_._DumpException(e)}
try{
var Yfc;_.Vfc=function(a){var b={};_.Ma(a,function(c,d){b[d.toLowerCase()]=c});return b};_.Wfc=function(a){return(a=a&&_.Vfc(a))&&a["x-guploader-uploadid"]};_.Xfc=function(a){return(a=a&&_.Vfc(a))&&a["x-google-trace"]};Yfc=[6];_.KI=function(a){_.K.call(this,a,-1,Yfc)};_.N(_.KI,_.K);_.LI=function(a,b){return _.y(a,14,b)};_.t("sy1n6");
var Zfc,agc;
_.$fc=function(a,b,c,d,e,f,h,k,l){l=void 0===l?!1:l;if(200===a||204===a||308===a||206===a)return null;e=Zfc(e)||new _.pc;_.y(e,8,!0);k&&(k=_.kj(new _.gj(k),void 0).toString(),_.y(e,19,k));e.$F()||_.y(e,15,a||f);e.getMessage()||_.fq(e,["HTTP status code: "+a,"HTTP status text: "+b,"XHR error code: "+f,"XHR error text: "+h].join(", "));_.B(e,4)||_.gq(e,d);e.lk()||(5===f?_.LI(e,7):0!==a||d?403===a?_.LI(e,22):503===a||429===a?_.LI(e,24):(_.Uj(e,14),_.y(e,10,1),_.y(e,8,!0)):l||_.LI(e,2));e.Dca(_.Wfc(c));e.tca(_.Xfc(c));
return e};Zfc=function(a){if(!_.Ca(a))return null;var b=new _.pc,c=a.error;if(!c)return _.gq(b,JSON.stringify(a)),null;_.y(b,15,c.code);_.fq(b,c.message);a=c.errors&&c.errors[0];if(!a)return b;c=a.reason;var d=agc[c];d?_.y(b,10,d):c&&!d&&_.y(b,10,2);(a=a.debugInfo)&&_.gq(b,a);return b};
agc={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};

_.w();

}catch(e){_._DumpException(e)}
try{
_.bgc=function(a,b){return _.y(a,1,b)};_.cgc=function(a,b){return _.J(a,1,b)};_.dgc=function(a,b){return _.y(a,2,b)};_.egc=function(a,b){return _.J(a,3,b)};_.t("sy1n7");

_.w();

}catch(e){_._DumpException(e)}
try{
_.fgc=function(a){for(var b in a)delete a[b]};_.MI=function(a,b){if(a.H)return a=a.H.responseText,b&&0==a.indexOf(b)&&(a=a.substring(b.length)),(0,_.nla)(a)};_.NI=function(a){return _.T(a,5,!1)};_.ggc=function(a,b){var c=_.C(a.H,_.Gya,9);null==c&&(c=new _.Gya);var d=_.B(b.H,10);d=_.y(c,5,d);b=_.B(b.H,12);_.y(d,2,b);_.J(a.H,9,c)};_.hgc=function(a,b){a=_.Ji(a);b=_.Ji(b);return a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]};
_.igc=function(a){var b=_.vla(a);if("undefined"==typeof b)throw Error("X");var c=new _.nj(null,void 0);a=_.ula(a);for(var d=0;d<b.length;d++){var e=b[d],f=a[d];Array.isArray(f)?_.tma(c,e,f):c.add(e,f)}return c};_.t("sy1n8");

_.w();

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

_.w();

}catch(e){_._DumpException(e)}
try{
_.jgc=function(a,b,c){c&&(a=_.Kg(a));a.length>b&&(a=a.substring(0,b-3)+"...");c&&(a=_.Jg(a));return a};_.kgc=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};_.t("sy1ng");
/*

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

_.w();

}catch(e){_._DumpException(e)}
try{
var mgc,ngc,rgc,vgc,wgc,xgc,Pgc,GJ,Qgc,Rgc,Ygc,tgc,Fhc,sgc,Yhc,Zhc,fic,hic,jic,lic,mic,nic,pic,Fic,Gic,Jic,Kic,Lic,Nic,Oic,Qic,Tic,Igc,Xic,Jgc,Yic,Zic,$ic,kK,mK,bjc,djc,gjc,hjc,ijc,jjc,kjc,ljc,ojc,qjc,rjc,tjc,ujc,Jjc,Ijc,Mjc,Ojc,Pjc,Qjc,Vjc,Yjc,$jc,akc,gkc,fkc,ekc,ckc,dkc,Zgc,okc,pkc,kkc,qkc,lkc,Sgc,rkc,Tgc,Ugc,Vgc,Wgc,Xgc,skc,ukc;_.OI=function(a,b,c){var d=new _.pc,e=_.tka(_.OI);_.y(d,20,e);_.AI(d,a);_.zI(d,b?b:2);c&&_.LI(d,c);return d};
_.PI=function(a){var b;a instanceof _.pc?b=new _.qc(null,a):_.rI(a)?b=a:b=_.n.ErrorEvent&&a instanceof ErrorEvent?a.error instanceof Error?a.error:Error(a.message):"string"===typeof a?Error(a):Error("rb`"+a);b.stack||(b.stack=_.tka(_.PI));return b};_.QI=function(a){throw _.uB(a);};mgc=function(a){return 7===a.lk()||24===a.Dp()&&(a=a.$F(),503===a||429===a)?!0:!1};ngc=function(a,b){return b?b+"("+a+")":a};
_.RI=function(a,b,c){var d={},e=[];b&&e.push("kind");a.Ezb&&e.push("searchResultSource");a.fields.forEach(function(p){if(!_.ogc.includes(p)){var q=_.zdb.get(p);if(q){var r=_.Cdb[p];a.BG&&r&&(q=r);a.jr&&(a.BG?(p=_.Bdb[p])&&(q=p):(p=_.Adb[p])&&(q=p));q.split(",").forEach(function(v){var z=_.Aia(v,"/",1);1<z.length?(d[z[0]]||(d[z[0]]=[]),d[z[0]].push(z[1])):e.push(v)})}}});for(var f={},h=_.m(Object.entries(d)),k=h.next();!k.done;f={v5:f.v5},k=h.next()){var l=_.m(k.value);k=l.next().value;l=l.next().value;
f.v5=[];l.forEach(function(p){return function(q){p.v5.push(q)}}(f));"owners"==k&&b&&f.v5.push("kind");e.push(ngc(f.v5.join(","),k))}return ngc(e.join(","),c)};_.pgc=function(a){var b=new _.So;b.append(_.RI(a,!0));return b.toString()};_.qgc=function(a,b){return a.filter(function(c){return b.includes(c)})};rgc=function(a){a=a.filter(function(b){return!_.zdb.has(b)});if(a.length)throw Error("Sc`"+a.join(", "));};
_.ugc=function(a){if(a){var b=a.getMimeType();b&&_.hG(a,b.toLowerCase());sgc(a,_.bk(a,tgc,58).map(function(c){var d=c.getMimeType();d&&_.y(c,1,d.toLowerCase());return c}))}};vgc=function(a){if(_.Ua(a))return"\r\n";var b="";_.Ma(a,function(c,d){b+=d+": "+c+"\r\n"});return b};wgc=function(a,b){b&&(_.oj(a,"openDrive",!!_.T(b,2,!1)),_.oj(a,"reason",_.B(b,1)||0),_.oj(a,"syncType",_.B(b,3)||0),_.oj(a,"errorRecovery",!!_.T(b,4,!1)))};
xgc=function(a){a=_.fq(_.LI(_.zI(new _.pc,2),39),"Multiple resource key definitions found for itemId "+a);throw _.uB(a);};
Pgc=function(a){if(a instanceof _.SI)return"request access";if(a instanceof _.TI)return"admin migrate to TD";if(a instanceof _.UI)return"authorize app";if(a instanceof _.VI)return"copy item";if(a instanceof _.WI)return"change category links";if(a instanceof _.XI)return"create item";if(a instanceof _.YI)return"create ws";if("undefined"!=typeof _.ZI&&a instanceof _.ZI)return"delete app";if("undefined"!=typeof _.$I&&a instanceof _.$I)return"delete backup";if(a instanceof _.aJ)return"delete item";if("undefined"!=
typeof _.bJ&&a instanceof _.bJ)return"delete permission";if(a instanceof _.cJ)return"delete revision";if(a instanceof _.dJ)return"delete TD";if(a instanceof _.zD)return"delete pref";if(a instanceof _.eJ)return"delete ws";if(a instanceof _.fJ)return"download item";if(a instanceof _.gJ||a instanceof _.hJ)return"empty trash";if(a instanceof _.iJ)return"find by ID";if(a instanceof _.oA)return"find by IDs";if(a instanceof _.ygc)return"item export start";if("undefined"!=typeof _.jJ&&a instanceof _.jJ)return"get app";
if("undefined"!=typeof _.kJ&&a instanceof _.kJ)return"insert app";if("undefined"!=typeof _.lJ&&a instanceof _.lJ)return"insert permission";if(a instanceof _.uI)return a=a.ud(),_.mJ(a)?"quick access item query":_.nJ(a)?"people predict item query":_.oJ(a)?"drive priority query":"item query";if("undefined"!=typeof _.pJ&&a instanceof _.pJ)return"list android backup items request";if(a instanceof _.qJ){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 _.zgc&&a instanceof _.zgc?"list backups":a instanceof _.GI?"list changes":a instanceof _.rJ?"list permissions":"undefined"!=typeof _.sJ&&a instanceof _.sJ?"list revisions":a instanceof _.tJ?"partial download item":a instanceof _.uJ?"people api":a instanceof _.cG?"get published category":"undefined"!=typeof _.vJ&&a instanceof _.vJ?"get remaining changes":a instanceof _.wJ?"remove item":
"undefined"!=typeof _.xJ&&a instanceof _.xJ?"reparent item":a instanceof _.yJ?"restore item":a instanceof _.dG?"list suggested workspace items":a instanceof _.Uz?"list suggested workspaces":"undefined"!=typeof _.zJ&&a instanceof _.zJ?"update app":a instanceof _.AJ?"update category metadata":a instanceof _.EI?"update item":a instanceof _.BJ?"update revision":a instanceof _.CJ?"update TD":a instanceof _.CD?"update pref":a instanceof _.DJ?"update ws":a instanceof _.oI?"get account":a instanceof _.gG?
"get workspace":a instanceof _.Agc?"list activity":a instanceof _.Bgc?"list category metadata":a instanceof _.Cgc?"create TD":"undefined"!=typeof _.Dgc&&a instanceof _.Dgc?"item export cancel":"undefined"!=typeof _.Egc&&a instanceof _.Egc?"item export status":"undefined"!=typeof _.Fgc&&a instanceof _.Fgc?"generate cse token":"undefined"!=typeof _.Ggc&&a instanceof _.Ggc?"get largest change ID":a instanceof _.yD?"list prefs":a instanceof _.EJ?"multipart upload":a instanceof _.Hgc?"list published categories":
a instanceof Igc?"init resumable upload":a instanceof Jgc?"resumable upload chunk":a instanceof _.Kgc?"resumable upload":a instanceof _.eG?"get TD":"undefined"!=typeof _.Lgc&&a instanceof _.Lgc?"move TD preflight":a instanceof _.FJ?"list TDs":"undefined"!=typeof _.Mgc&&a instanceof _.Mgc?"get TD stats":a instanceof _.Ngc?"test connection":"undefined"!=typeof _.Ogc&&a instanceof _.Ogc?"list workspaces":"unknown"};
GJ=function(a,b,c){null!=c&&(Array.isArray(c)?0<c.length&&a.push(b+": "+c.join(", ")):a.push(b+": "+c))};Qgc=function(a){if(a instanceof _.XI||a instanceof _.EJ||a instanceof _.Kgc||a instanceof Igc||a instanceof Jgc)return(new _.HJ).Dc(8);throw Error("ef");};Rgc=function(a){if(a instanceof _.EI){var b=_.Vj(_.Uj(a.clone(),1),17);b=_.fk(b,_.Hfc)}else b=!1;b||(a instanceof _.EI?(a=_.Vj(_.Uj(a.clone(),1),17),b=_.fk(a,_.Ifc)||_.fk(a,_.Jfc)):b=!1);return b?!1:!0};
_.IJ=function(a){return Sgc.includes(a.constructor)?Rgc(a):!1};Ygc=function(a,b){if(Tgc.includes(a.constructor))return!0;if(b){if(_.T(b,54,!1)&&Ugc.includes(a.constructor))return!0;var c=_.DI(b);if(c&&!_.T(c,7,!1)&&Vgc.includes(a.constructor)&&!_.JJ(a)||_.T(b,56,!1)&&_.JJ(a)||_.T(b,57,!1)&&Wgc.includes(a.constructor)||!(!_.T(b,53,!1)||Ugc.includes(a.constructor)||Vgc.includes(a.constructor)||_.JJ(a)||Wgc.includes(a.constructor)||Xgc.includes(a.constructor)))return!0}return!1};
_.QJ=function(a,b,c,d,e){if(_.T(a,89,!1)){if(c&&c.length&&d){c=b.concat(Zgc(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)!==_.B(d,2)&&xgc(h):(a.set(h,_.B(d,2)),b.push(d))}f=b}else f=b;f.length&&(f=_.eA(f),f.length&&(e["X-Goog-Drive-Resource-Keys"]=f))}};_.$gc=function(a){var b=new _.Jk;return _.y(b,1,a)};_.ahc=function(a,b){return _.y(a,7,b)};_.bhc=function(a,b){return _.y(a,8,b)};
_.chc=function(a,b){return _.y(a,11,b)};_.dhc=function(a,b){return _.y(a,1,b)};_.ehc=function(a,b){return _.y(a,4,b)};_.fhc=function(a,b){return _.y(a,5,b)};_.ghc=function(a,b){return _.y(a,6,b)};_.hhc=function(a,b){return _.y(a,7,b)};_.ihc=function(a,b){return _.y(a,8,b)};_.jhc=function(a,b){return _.y(a,9,b)};_.khc=function(a,b){return _.y(a,10,b)};_.lhc=function(a,b){return _.y(a,11,b)};_.mhc=function(a,b){return _.y(a,12,b)};_.nhc=function(a,b){return _.y(a,16,b)};
_.ohc=function(a,b){return _.y(a,17,b)};_.phc=function(a,b){return _.y(a,20,b)};_.qhc=function(a,b){return _.y(a,21,b)};_.rhc=function(a,b){return _.y(a,31,b)};_.shc=function(a,b){return _.y(a,32,b)};_.thc=function(a,b){return _.y(a,33,b)};_.uhc=function(a,b){return _.y(a,42,b)};_.vhc=function(a,b){return _.y(a,43,b)};_.whc=function(a,b){return _.y(a,46,b)};_.xhc=function(a,b){return _.y(a,47,b)};_.yhc=function(a,b){return _.y(a,48,b)};_.RJ=function(a){_.K.call(this,a)};_.N(_.RJ,_.K);
_.zhc=function(a){_.K.call(this,a)};_.N(_.zhc,_.K);_.Ahc=function(a,b){return _.y(a,1,b)};_.Bhc=function(a,b){return _.y(a,2,b)};tgc=function(a){_.K.call(this,a)};_.N(tgc,_.K);tgc.prototype.getMimeType=function(){return _.B(this,1)};tgc.prototype.getUrl=function(){return _.B(this,2)};_.SJ=function(a){_.K.call(this,a)};_.N(_.SJ,_.K);_.SJ.prototype.Ie=function(){return _.B(this,2)};_.SJ.prototype.Ah=function(a){return _.y(this,2,a)};_.SJ.prototype.zh=function(a){return _.y(this,3,a)};
_.Chc=function(a,b){return _.y(a,1,b)};_.Dhc=function(a,b){return _.Wj(a,2,b)};_.Ehc=function(a,b){return _.Wj(a,3,b)};Fhc=[2];_.TJ=function(a){_.K.call(this,a,-1,Fhc)};_.N(_.TJ,_.K);_.TJ.prototype.He=function(){return _.B(this,1)};_.TJ.prototype.Ul=function(a){return _.y(this,1,a)};_.TJ.prototype.vua=function(a,b){return _.Zj(this,2,a,b)};_.UJ=function(a){_.K.call(this,a)};_.N(_.UJ,_.K);_.UJ.prototype.Ie=function(){return _.B(this,1)};_.UJ.prototype.Ah=function(a){return _.y(this,1,a)};
_.UJ.prototype.zh=function(a){return _.y(this,2,a)};_.VJ=function(a,b){return _.Qj(a,2,b)};_.Ghc=function(a,b){_.y(a,8,b)};_.Hhc=function(a,b){return _.Wj(a,15,b)};_.Ihc=function(a,b){return _.J(a,17,b)};_.Jhc=function(a,b){return _.y(a,19,b)};_.Khc=function(a,b){_.y(a,26,b)};_.Lhc=function(a,b){_.y(a,31,b)};_.Mhc=function(a,b){_.y(a,34,b)};_.Nhc=function(a,b){return _.y(a,44,b)};_.Ohc=function(a,b){_.J(a,47,b)};_.Phc=function(a,b){return _.y(a,52,b)};sgc=function(a,b){_.Wj(a,58,b)};
_.Qhc=function(a,b){return _.y(a,72,b)};_.WJ=function(a,b){return _.J(a,84,b)};_.Rhc=function(a,b){_.J(a,85,b)};_.Shc=function(a,b){_.J(a,91,b)};_.Thc=function(a,b){return _.y(a,92,b)};_.Uhc=function(a,b){return _.y(a,93,b)};_.Vhc=function(a,b){_.J(a,95,b)};_.Whc=function(a,b){return _.y(a,136,b)};_.Xhc=function(a){_.K.call(this,a)};_.N(_.Xhc,_.K);_.ZJ=function(a){return _.T(a,2,!1)};Yhc=[3];Zhc=function(a){_.K.call(this,a,-1,Yhc)};_.N(Zhc,_.K);
Zhc.prototype.di=function(){var a=_.B(this,3);this.Ta||(this.Ta={});if(!this.Ta[3]){for(var b=0;b<a.length;b++)a[b]=!!a[b];this.Ta[3]=!0}_.mb(this)&&_.nb(a);return a};var $hc=[3],aic=function(a){_.K.call(this,a,-1,$hc)};_.N(aic,_.K);aic.prototype.di=function(){return _.Td(this,3)};var bic=[3],cic=function(a){_.K.call(this,a,-1,bic)};_.N(cic,_.K);cic.prototype.di=function(){return _.Td(this,3)};_.$J=function(a){_.K.call(this,a)};_.N(_.$J,_.K);_.$J.prototype.Ya=function(){return _.B(this,1)};
_.$J.prototype.Jb=function(a){return _.y(this,1,a)};_.$J.prototype.Ti=function(){return _.Uj(this,1)};_.$J.prototype.kh=function(){return _.Q(this,1)};_.aK=function(a){return _.Mj(a,45,1)};_.mJ=function(a){return _.T(a,47,!1)};_.nJ=function(a){return _.T(a,49,!1)};_.oJ=function(a){return _.T(a,52,!1)};_.bK=function(a){return _.E(a,2,"")};_.dic=function(a,b){return _.Qj(a,27,b)};_.cK=function(a){return _.Mj(a,39,0)};_.dK=function(a){return _.T(a,40,!1)};
_.eic=function(a){return _.Ht.prototype.XO.call(a,!0)+"T"+_.Pg(a.getHours(),2)+":"+_.Pg(a.getMinutes(),2)+":"+_.Pg(a.getSeconds(),2)+a.d$()};fic=function(a,b){return _.Vdc(a,"getAllKeys","getting all keys index "+a.getName(),b,void 0)};_.gic=function(a,b){try{a.H.deleteObjectStore(b)}catch(c){throw _.mI(c,"deleting object store "+b);}};hic=function(){var a=new _.Vec;a.O=12E4;a.ma=!0;return a};_.iic=function(a){_.K.call(this,a)};_.N(_.iic,_.K);jic=[3,4,10,18,19,28];
_.XI=function(a){_.K.call(this,a,-1,jic)};_.N(_.XI,_.K);_.g=_.XI.prototype;_.g.getMimeType=function(){return _.B(this,1)};_.g.getTitle=function(){return _.B(this,2)};_.g.setTitle=function(a){return _.y(this,2,a)};_.g.pE=function(a,b){_.Zj(this,3,a,b)};_.g.xe=function(){return _.C(this,_.tf,7)};_.g.aj=function(){return _.B(this,9)};_.g.Ac=function(){return _.B(this,14)};_.g.Ez=function(){return _.C(this,_.iic,15)};_.g.J1=function(){return _.B(this,21)};_.g.Cc=function(){return _.B(this,23)};
_.g.$k=function(){return _.B(this,33)};_.eK=function(a,b){return _.y(a,1,b)};_.fK=function(a,b){return _.Qj(a,3,b)};_.kic=function(a,b){return _.y(a,12,b)};_.aJ=function(a){_.K.call(this,a)};_.N(_.aJ,_.K);_.aJ.prototype.getId=function(){return _.B(this,1)};_.aJ.prototype.Ob=function(a){return _.y(this,1,a)};_.aJ.prototype.xe=function(){return _.C(this,_.tf,3)};_.dJ=function(a){_.K.call(this,a)};_.N(_.dJ,_.K);_.dJ.prototype.getId=function(){return _.B(this,1)};
_.dJ.prototype.Ob=function(a){return _.y(this,1,a)};_.dJ.prototype.xe=function(){return _.C(this,_.tf,2)};lic=[7,8];_.CJ=function(a){_.K.call(this,a,-1,lic)};_.N(_.CJ,_.K);_.g=_.CJ.prototype;_.g.getId=function(){return _.B(this,1)};_.g.Ob=function(a){return _.y(this,1,a)};_.g.getTitle=function(){return _.B(this,2)};_.g.setTitle=function(a){return _.y(this,2,a)};_.g.xe=function(){return _.C(this,_.tf,4)};_.FJ=function(a){_.K.call(this,a)};_.N(_.FJ,_.K);
_.FJ.prototype.getOptions=function(){return _.C(this,_.$ec,1)};_.FJ.prototype.Xn=function(){return _.B(this,2)};_.FJ.prototype.ud=function(){return _.C(this,_.hI,3)};mic=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};nic=null;_.oic=function(a){if(_.Cma)return _.n.atob(a);var b="";_.Ema(a,function(c){b+=String.fromCharCode(c)});return b};pic=function(){this.O=0;this.H=[]};_.g=pic.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=qic(this,a);return this.H[a]};_.g.set=function(a,b){a=qic(this,a);this.H[a]=b};_.g.hc=function(){return this.H.length};_.g.vc=function(){return 0==this.H.length};_.g.clear=function(){this.O=this.H.length=0};_.g.zg=function(){var a=this.hc(),b=this.hc(),c=[];for(a=this.hc()-a;a<b;a++)c.push(this.get(a));return c};_.g.nf=function(){for(var a=[],b=this.hc(),c=0;c<b;c++)a[c]=c;return a};_.g.Be=function(a){return a<this.hc()};
_.g.Aq=function(a){for(var b=this.hc(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};var qic=function(a,b){if(b>=a.H.length)throw Error("ha");return 40>a.H.length?b:(a.O+Number(b))%40},ric=function(a){_.K.call(this,a)};_.N(ric,_.K);_.sic=function(a){_.K.call(this,a)};_.N(_.sic,_.K);_.sic.prototype.ef=function(){return _.B(this,1)};_.sic.prototype.Ei=function(a){return _.y(this,1,a)};_.sic.prototype.Bb=function(){return _.B(this,4)};_.sic.prototype.Dc=function(a){return _.y(this,4,a)};
var tic=function(a){_.K.call(this,a)};_.N(tic,_.K);tic.prototype.Wn=function(){return _.B(this,5)};var uic=function(a,b){_.y(a,6,b)},vic=function(a){_.K.call(this,a)};_.N(vic,_.K);_.g=vic.prototype;_.g.Sfb=function(a){_.y(this,1,a)};_.g.cNb=function(a){_.y(this,2,a)};_.g.py=function(){return _.S(this,3)};_.g.Tfb=function(a){_.y(this,3,a)};_.g.KMb=function(a){_.y(this,4,a)};var wic=function(a){_.K.call(this,a)};_.N(wic,_.K);wic.prototype.py=function(){return _.S(this,2)};
var xic=function(a,b){return _.y(a,2,b)},yic=function(a,b){_.y(a,3,b)};wic.prototype.mB=function(){return _.B(this,6)};var zic=function(a,b){return _.y(a,8,b)},Aic=function(a){_.K.call(this,a)};_.N(Aic,_.K);var Bic=function(a){_.K.call(this,a)};_.N(Bic,_.K);var Cic=function(a,b){_.y(a,4,b)},Dic=function(a){_.K.call(this,a)};_.N(Dic,_.K);Dic.prototype.ud=function(){return _.C(this,_.sic,1)};Dic.prototype.getState=function(){return _.C(this,tic,2)};Dic.prototype.Kd=function(a){return _.J(this,2,a)};
Dic.prototype.jt=function(){return _.Q(this,2)};var Eic=function(a){_.K.call(this,a)};_.N(Eic,_.K);Eic.prototype.getEnvironment=function(){return _.B(this,2)};Eic.prototype.setEnvironment=function(a){return _.y(this,2,a)};_.ogc=[42,1005,20,50,18,1003,1002];Fic=[73,71];_.gK=function(a){_.K.call(this,a)};_.N(_.gK,_.K);_.gK.prototype.getId=function(){return _.B(this,1)};_.gK.prototype.Ob=function(a){return _.y(this,1,a)};_.gK.prototype.getMimeType=function(){return _.B(this,2)};
_.gK.prototype.TF=function(){return _.B(this,8)};Gic=[22];_.HJ=function(a){_.K.call(this,a,-1,Gic)};_.N(_.HJ,_.K);_.g=_.HJ.prototype;_.g.Bb=function(){return _.B(this,1)};_.g.Dc=function(a){return _.y(this,1,a)};_.g.getItem=function(){return _.C(this,_.dl,2)};_.g.setItem=function(a){return _.J(this,2,a)};_.g.Zj=function(){return _.B(this,3)};_.g.Cc=function(){return _.B(this,5)};_.Hic=function(a,b){return _.y(a,5,b)};_.g=_.HJ.prototype;_.g.SJ=function(){return _.B(this,7)};
_.g.Dca=function(a){return _.y(this,7,a)};_.g.gfa=function(a){_.y(this,9,a)};_.g.tLa=function(a){_.y(this,10,a)};_.g.YM=function(){return _.B(this,16)};_.g.tca=function(a){return _.y(this,16,a)};var Iic=function(a){_.ki.call(this,a);this.connectionState=_.Jub.get(a)};_.N(Iic,_.ki);Jic=function(a){var b=new _.Xh;a.listen("loadend",_.Db(function(c,d){var e=d.$j(),f=d.getError();null==e||f?c.Jd(f):c.callback(e);d.dispose()},b,a));return b};_.SI=function(a){_.K.call(this,a)};_.N(_.SI,_.K);
_.SI.prototype.Cc=function(){return _.B(this,1)};_.TI=function(a){_.K.call(this,a)};_.N(_.TI,_.K);_.TI.prototype.getId=function(){return _.B(this,1)};_.TI.prototype.Ob=function(a){return _.y(this,1,a)};_.TI.prototype.Ik=function(){return _.B(this,2)};_.UI=function(a){_.K.call(this,a)};_.N(_.UI,_.K);_.UI.prototype.Ch=function(){return _.B(this,1)};_.UI.prototype.Cc=function(){return _.B(this,2)};_.UI.prototype.xe=function(){return _.C(this,_.tf,4)};Kic=[3,7];_.VI=function(a){_.K.call(this,a,-1,Kic)};
_.N(_.VI,_.K);_.g=_.VI.prototype;_.g.getId=function(){return _.B(this,1)};_.g.Ob=function(a){return _.y(this,1,a)};_.g.getTitle=function(){return _.B(this,2)};_.g.setTitle=function(a){return _.y(this,2,a)};_.g.pE=function(a,b){_.Zj(this,3,a,b)};_.g.xe=function(){return _.C(this,_.tf,5)};_.YI=function(a){_.K.call(this,a)};_.N(_.YI,_.K);_.YI.prototype.getTitle=function(){return _.B(this,1)};_.YI.prototype.setTitle=function(a){return _.y(this,1,a)};_.YI.prototype.xe=function(){return _.C(this,_.tf,2)};
_.cJ=function(a){_.K.call(this,a)};_.N(_.cJ,_.K);_.cJ.prototype.Cc=function(){return _.B(this,1)};_.cJ.prototype.xe=function(){return _.C(this,_.tf,3)};_.eJ=function(a){_.K.call(this,a)};_.N(_.eJ,_.K);_.eJ.prototype.getId=function(){return _.B(this,1)};_.eJ.prototype.Ob=function(a){return _.y(this,1,a)};_.eJ.prototype.xe=function(){return _.C(this,_.tf,3)};_.gJ=function(a){_.K.call(this,a)};_.N(_.gJ,_.K);_.gJ.prototype.xe=function(){return _.C(this,_.tf,1)};_.wJ=function(a){_.K.call(this,a)};
_.N(_.wJ,_.K);_.g=_.wJ.prototype;_.g.getId=function(){return _.B(this,1)};_.g.Ob=function(a){return _.y(this,1,a)};_.g.getParent=function(){return _.B(this,2)};_.g.Fg=function(a){return _.y(this,2,a)};_.g.xe=function(){return _.C(this,_.tf,3)};_.yJ=function(a){_.K.call(this,a)};_.N(_.yJ,_.K);_.g=_.yJ.prototype;_.g.getId=function(){return _.B(this,1)};_.g.Ob=function(a){return _.y(this,1,a)};_.g.getParent=function(){return _.B(this,2)};_.g.Fg=function(a){return _.y(this,2,a)};
_.g.xe=function(){return _.C(this,_.tf,3)};_.BJ=function(a){_.K.call(this,a)};_.N(_.BJ,_.K);_.BJ.prototype.Cc=function(){return _.B(this,1)};_.BJ.prototype.xe=function(){return _.C(this,_.tf,4)};_.DJ=function(a){_.K.call(this,a)};_.N(_.DJ,_.K);_.g=_.DJ.prototype;_.g.getId=function(){return _.B(this,1)};_.g.Ob=function(a){return _.y(this,1,a)};_.g.getTitle=function(){return _.B(this,2)};_.g.setTitle=function(a){return _.y(this,2,a)};_.g.getState=function(){return _.B(this,3)};
_.g.Kd=function(a){return _.y(this,3,a)};_.g.jt=function(){return _.Q(this,3)};_.g.xe=function(){return _.C(this,_.tf,5)};Lic=[2,3];_.WI=function(a){_.K.call(this,a,-1,Lic)};_.N(_.WI,_.K);_.WI.prototype.Ac=function(){return _.B(this,1)};_.WI.prototype.xe=function(){return _.C(this,_.tf,4)};_.Mic={1:"default",2:"teamDrive",3:"default,allTeamDrives"};Nic=[3,4];_.qJ=function(a){_.K.call(this,a,-1,Nic)};_.N(_.qJ,_.K);_.qJ.prototype.getType=function(){return _.B(this,1)};
_.qJ.prototype.xe=function(){return _.C(this,_.tf,2)};Oic=[1];_.uJ=function(a){_.K.call(this,a,-1,Oic)};_.N(_.uJ,_.K);_.uJ.prototype.hn=function(){return _.Td(this,1)};_.Pic=function(a){_.K.call(this,a)};_.N(_.Pic,_.K);_.g=_.Pic.prototype;_.g.getKey=function(){return _.B(this,1)};_.g.ht=function(){return _.Q(this,1)};_.g.Ya=function(){return _.B(this,2)};_.g.Jb=function(a){return _.y(this,2,a)};_.g.Ti=function(){return _.Uj(this,2)};_.g.kh=function(){return _.Q(this,2)};
_.g.He=function(){return _.B(this,3)};_.g.Ul=function(a){return _.y(this,3,a)};_.g.getType=function(){return _.B(this,4)};Qic=[1];_.Ric=function(a){_.K.call(this,a,-1,Qic)};_.N(_.Ric,_.K);_.Sic=function(){var a=void 0===a?1E3:a;this.O=new _.nl;this.H=new _.nl;this.startTime=Date.now();this.V=!1;this.W=Math.ceil(a/2);this.ha=Math.floor(a/2)};_.Uic=function(a){var b=a.O.zg();a.V&&b.push(Tic("...","...","...","..."));_.za(b,a.H.zg());return b};
_.Vic=function(a){var b=[];a=_.Uic(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")};_.Sic.prototype.info=function(a,b){_.hK(this,a,b,"info")};_.Sic.prototype.config=function(a,b){_.hK(this,a,b,"config")};_.Sic.prototype.log=function(a,b,c){if(!nic){nic={};for(var d=0,e;e=_.yka[d];d++)nic[e.value]=e,nic[e.name]=e}_.hK(this,a,b,c)};
_.hK=function(a,b,c,d){a.H.hc()>=a.ha&&(a.V=!0,_.ol(a.H));var e=Date.now()-a.startTime;b=Tic(b,c,d,1E3<e?(e/1E3).toFixed(1)+"s":e+"ms");a.O.hc()<a.W?a.O.enqueue(b):a.H.enqueue(b)};Tic=function(a,b,c,d){var e={};return e.logName=a,e.message=b,e.level=c,e.totalTime=d,e};_.Agc=function(a,b,c){this.request=a;this.pageSize=b;this.pageToken=c};_.Cgc=function(a){this.request=a;this.requestId=_.Rg()};
_.Wic=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};_.EJ=function(a,b,c,d){this.request=a;this.file=b;this.iQ=void 0===c?null:c;this.metadata=d};_.Kgc=function(a,b,c,d){this.request=a;this.file=b;this.iQ=void 0===c?null:c;this.metadata=d};Igc=function(a,b){this.request=a;this.metadata=b};Xic=function(a,b,c){this.O=a;this.H=b;this.V=c};
Jgc=function(a,b,c,d,e,f,h){this.W=a;this.blob=b;this.H=c;this.O=d;this.V=e;this.contentType=f;this.revisionId=h};_.Ngc=function(){this.H=_.uf(new _.tf,312)};Yic=function(){};_.Bgc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};_.Hgc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};Zic=function(a,b){this.H=a;this.O=b};$ic=function(a){_.ki.call(this,"Fb");this.H=a};_.N($ic,_.ki);$ic.prototype.We=function(){return this.H};_.iK=function(a){a.supportsTeamDrives=!0};
_.ajc=function(a){this.O=new Set;this.H=[].concat(_.od(_.Td(a,27)));this.initialize(a)};_.ajc.prototype.initialize=function(a){var b=_.qgc(this.H,_.Td(a,28));if(0<b.length)throw Error("Te`"+b.join(","));this.H.push(21);this.H.push(70);this.H.push(83);this.H.push(87);_.NI(_.nI(a))||(this.H.push(45),this.H.push(25),this.H.push(35),this.H.push(96),this.H.push(1004),this.H.push(28),this.H.push(189),this.H.push(190));_.Ea(this.H);this.H.sort();rgc(this.H)};_.jK=function(a){return[].concat(_.od(a.H))};
kK=function(a){return"'"+a.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"};_.lK=function(a,b,c){0!==b.length&&(a.NI.length&&a.append(" "+(c||"and")+" "),a.append(b))};mK=function(a,b,c,d){if(c){var e=[];(void 0===d?0:d)&&e.push("not");e.push(kK(c));e.push("in");e.push(b);_.lK(a,e.join(" "))}};_.nK=function(a,b,c,d){d=void 0===d?"and":d;if(null!=c){var e=[];e.push(b);e.push("=");e.push((!!c).toString());_.lK(a,e.join(" "),d)}};
bjc=function(a,b,c){if(b.length){var d=[];d.push(c?"not (":"(");d.push(b.join(" or "));d.push(")");_.lK(a,d.join(""))}};_.cjc=function(a){var b=new _.ffc;b.setTime(a);return b};djc=function(a,b){b=_.Td(b,33)[0];if(null!=b){var c=[];c.push("teamDriveId");c.push("=");c.push(kK(b));_.lK(a,c.join(" "))}};_.ejc=function(a){a=_.bk(a,_.$J,25);if(null==a||0==a.length)return"";for(var b=[],c=0;c<a.length;c++)b.push(a[c].Ya());return b.join(",")};
_.fjc=function(a){a=a.oB();return null==a||0==a.length?"":a.map(function(b){b=_.B(b,1);if(0==b)throw Error("Ue");return _.hdc[b]}).join(",")};gjc=function(a,b){if(a.length){var c=new _.So;a=_.m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=[];e.push(b?"shortcutDetails.targetMimeType":"mimeType");e.push("contains");e.push(kK(d.Ya()));_.lK(c,e.join(" "),"or")}return c.toString()}return""};
hjc=function(a,b,c){if(a.length){var d=[];b&&d.push("not");d.push(c?"shortcutDetails.targetMimeType":"mimeType");d.push("in");a=a.map(function(e){return kK(e.Ya())});d.push(a.join(", "));return d.join(" ")}return""};ijc=function(a){if(_.S(a,2))return"any";switch(a.Ya()){case 0:return"mentions";case 1:return"suggestions";case 2:return"todos";default:return""}};jjc=function(a){switch(a){case 1:return"<=";case 2:return"<";case 3:return"=";case 4:return">";case 5:return">=";default:return""}};
kjc=function(a,b,c){if(null!=_.B(c,2)){var d=jjc(_.B(c,1));c=kK(_.eic(_.cjc(_.B(c,2)||0)));_.lK(a,[b,d,c].join(" "))}};ljc=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""};
_.mjc=function(a){for(var b=new _.So,c=_.bk(a,_.Cl,4),d=0;d<c.length;d++){var e=c[d],f=e.Ya();if(f){var h=_.B(e,1),k=_.T(e,3,!1),l=[];k&&1==h&&l.push("not");l.push("title");l.push(1==h?"contains":k?"!=":"=");l.push(kK(f));_.lK(b,l.join(" "))}}for(var p=_.bk(a,_.Bl,5),q=0;q<p.length;q++){var r=p[q],v=r.Ya();if(v){var z=[];_.T(r,2,!1)&&z.push("not");z.push("fullText");z.push("contains");z.push(kK(v));_.lK(b,z.join(" "))}}var A=_.Gl(a);if(A&&0!=A.length){for(var D=[],G=[],H=[],L=[],M=[],R=[],ba=0;ba<
A.length;ba++){var ka=A[ba];ka.Ya()&&(1===_.Mj(ka,3,0)?_.S(ka,4)?G.push(ka):D.push(ka):_.S(ka,4)?_.T(ka,2,!1)?R.push(ka):M.push(ka):_.T(ka,2,!1)?L.push(ka):H.push(ka))}var ja=gjc(D,!1),ya=gjc(G,!0),fa=hjc(H,!1,!1),Va=hjc(L,!0,!1),Ka=hjc(M,!1,!0),ob=hjc(R,!0,!0),Ya=new _.So;if(fa||Ka||ja||ya)_.lK(Ya,fa,"or"),_.lK(Ya,Ka,"or"),_.lK(Ya,ja,"or"),_.lK(Ya,ya,"or");Ya.NI.length&&_.lK(b,"("+Ya.toString()+")","and");var yb=new _.So;if(Va||ob)_.lK(yb,Va,"and"),_.lK(yb,ob,"and");yb.NI.length&&_.lK(b,"("+yb.toString()+
")","and")}for(var Zb=_.bk(a,_.yl,7),Fc=0;Fc<Zb.length;Fc++)kjc(b,"modifiedDate",Zb[Fc]);for(var Zd=_.bk(a,_.yl,8),Gd=0;Gd<Zd.length;Gd++)kjc(b,"lastViewedByMeDate",Zd[Gd]);_.nK(b,"trashed",a.Uh());_.nK(b,"explicitlyTrashed",_.S(a,17));_.nK(b,"starred",_.S(a,10));_.nK(b,"hidden",_.S(a,11));for(var qd=_.Hl(a),kf=0;kf<qd.length;kf++){var ud=qd[kf];mK(b,"parents",ud.Ya(),_.T(ud,2,!1))}for(var Eb=_.bk(a,_.jf,13),oe=0;oe<Eb.length;oe++){var ng=Eb[oe];mK(b,"owners",ng.Ya(),_.T(ng,2,!1))}for(var ye=_.bk(a,
_.jf,14),ii=0;ii<ye.length;ii++){var Pf=ye[ii];mK(b,"writers",Pf.Ya(),_.T(Pf,2,!1))}for(var pi=_.bk(a,_.jf,15),Ig=0;Ig<pi.length;Ig++){var jm=pi[Ig];mK(b,"readers",jm.Ya(),_.T(jm,2,!1))}_.S(a,16)&&_.lK(b,"sharedWithMe");_.nK(b,"unparented",_.S(a,34));for(var bf=_.bk(a,_.vl,35)||[],Oe=_.m(bf),Xg=Oe.next();!Xg.done;Xg=Oe.next())mK(b,"ancestors",Xg.value.Ya(),!1);for(var qi=_.bk(a,_.vl,38)||[],mj=_.m(qi),km=mj.next();!km.done;km=mj.next())mK(b,"descendants",km.value.Ya(),!1);for(var Sn=_.bk(a,_.Al,37)||
[],lm=_.m(Sn),Ci=lm.next();!Ci.done;Ci=lm.next())mK(b,"folderFeatures",Ci.value.Ya(),!1);for(var Jm=_.Td(a,39),Aj=_.m(Jm),zg=Aj.next();!zg.done;zg=Aj.next()){var Bj=zg.value,lk=[];lk.push("templateData.description");lk.push("contains");lk.push(kK(Bj));_.lK(b,lk.join(" "))}for(var Cj=_.Td(a,40),Mi=0;Mi<Cj.length;Mi++){var mk=[];0==Mi&&mk.push("(");mk.push(kK(Cj[Mi]));mk.push("in");mk.push("templateData.categories");Mi==Cj.length-1&&mk.push(")");_.lK(b,mk.join(" "),0==Mi?"and":"or")}var Rj=_.B(a,41);
if(null!=Rj){var Ni=[];Ni.push("templateData.galleryState");Ni.push("=");Ni.push(kK(_.hfc[Rj]||""));_.lK(b,Ni.join(" "))}var aj=_.B(a,42);if(null!=aj){var Lh=[];Lh.push("visibility");Lh.push("=");Lh.push(kK(ljc(aj)));_.lK(b,Lh.join(" "))}for(var Rk=_.bk(a,_.ul,44),Dj=0;Dj<Rk.length;++Dj){var Ej=Rk[Dj];mK(b,"actionItems",ijc(Ej),_.T(Ej,3,!1))}if(_.Q(a,50)){var Sj=[];Sj.push("pairedDocType");var Tj=_.T(a,50,!1)?"!=":"=";Sj.push(Tj);Sj.push(kK("NONE"));_.lK(b,Sj.join(" "))}mK(b,"workspaceIds",a.Hp(),
!1);for(var Km=_.bk(a,_.wl,57),nk=0;nk<Km.length;nk++){var ok=[];0==nk&&ok.push("(");ok.push(kK(Km[nk].Ya()));ok.push("in");ok.push("approvals");nk==Km.length-1&&ok.push(")");_.lK(b,ok.join(" "),0==nk?"and":"or")}if(_.Q(a,58)){var xf=a.Fq(),Fj=xf.Ya(),Lm=_.T(xf,2,!1);if(Fj){var Mm=[];Lm&&Mm.push("not");Mm.push("creator");Mm.push("=");Mm.push(kK(Fj));_.lK(b,Mm.join(" "))}}var pn=_.C(a,_.Noa,59);if(pn)for(var Oi=_.m(_.bk(pn,_.Koa,1)),pk=Oi.next();!pk.done;pk=Oi.next()){var yc=pk.value;mK(b,"categoryMetadata",
yc.an());for(var qk=_.m(yc.Pk()),gh=qk.next();!gh.done;gh=qk.next()){var Tg=gh.value,Ve=_.B(Tg,1),Nm=_.Kj(Tg,_.xl[0]);if(10==Nm){_.C(Tg,_.Boa,10);var Om=_.S(Tg,15);(void 0===Om?0:Om)?_.lK(b,Ve+" is null"):_.lK(b,"not ("+Ve+" is null)")}else{var qh=new _.So,bj=void 0;switch(Nm){case 3:bj=_.C(Tg,Zhc,3);for(var pl=_.m(bj.di()),Mh=pl.next();!Mh.done;Mh=pl.next())_.nK(qh,Ve,Mh.value,"or");break;case 14:for(var qn=bj=_.C(Tg,_.uoa,14),Tn=new Map([[1,"="],[2,">"],[3,"<"]]),rn=_.m(qn.di()),Sk=rn.next();!Sk.done;Sk=
rn.next()){var Tk=Sk.value,Ho=Tn.get(_.B(qn,2));if(!Ho)throw Error("Ve");var yq=[Ve,Ho,kK(Tk.getYear()+"-"+Tk.getMonth()+"-"+Tk.getDay())];_.lK(qh,yq.join(" "),"or")}break;case 8:for(var Yo=bj=_.C(Tg,_.Aoa,8),Nq=new Map([[1,"="],[2,">"],[3,"<"]]),fj=_.m(Yo.di()),ym=fj.next();!ym.done;ym=fj.next()){var Op=ym.value,Pp=Nq.get(_.B(Yo,2));if(!Pp)throw Error("Ve");_.lK(qh,[Ve,Pp,Op].join(" "),"or")}break;case 9:for(var Kr=bj=_.C(Tg,aic,9),dx=new Map([[1,"in"]]),Oq=_.m(Kr.di()),Lr=Oq.next();!Lr.done;Lr=
Oq.next()){var VA=Lr.value,tD=dx.get(_.B(Kr,2));if(!tD)throw Error("Ve");_.lK(qh,[VA,tD,Ve].join(" "),"or")}break;case 6:for(var WA=bj=_.C(Tg,_.Foa,6),XA=new Map([[1,"="]]),Ky=_.m(WA.di()),Pq=Ky.next();!Pq.done;Pq=Ky.next()){var Mr=Pq.value,ex=XA.get(_.B(WA,2));if(!ex)throw Error("Ve");_.lK(qh,[Ve,ex,kK(Mr)].join(" "),"or")}break;case 7:for(var nO=bj=_.C(Tg,_.Doa,7),RZ=new Map([[1,"in"]]),KJ=_.m(nO.di()),uD=KJ.next();!uD.done;uD=KJ.next()){var LJ=uD.value,oO=RZ.get(_.B(nO,2));if(!oO)throw Error("Ve");
_.lK(qh,[kK(LJ),oO,Ve].join(" "),"or")}break;case 4:for(var vD=bj=_.C(Tg,_.Hoa,4),fx=new Map([[1,"="],[2,"contains"],[3,"starts with"]]),xv=_.m(vD.di()),zl=xv.next();!zl.done;zl=xv.next()){var gx=zl.value,Zo=fx.get(_.B(vD,2));if(!Zo)throw Error("Ve");_.lK(qh,[Ve,Zo,kK(gx)].join(" "),"or")}break;case 5:for(var MJ=bj=_.C(Tg,cic,5),pO=new Map([[1,"in"]]),YA=_.m(MJ.di()),vi=YA.next();!vi.done;vi=YA.next()){var oG=vi.value,yv=pO.get(_.B(MJ,2));if(!yv)throw Error("Ve");_.lK(qh,[kK(oG),yv,Ve].join(" "),
"or")}break;case 12:for(var Zt=bj=_.C(Tg,_.yoa,12),SZ=new Map([[1,"="]]),TZ=_.m(Zt.di()),wD=TZ.next();!wD.done;wD=TZ.next()){var Mg=wD.value,UZ=SZ.get(_.B(Zt,2));if(!UZ)throw Error("Ve");_.lK(qh,[Ve,UZ,kK(Mg)].join(" "),"or")}break;case 11:for(var Ly=bj=_.C(Tg,_.woa,11),Zm=new Map([[1,"in"]]),ZA=_.m(Ly.di()),$o=ZA.next();!$o.done;$o=ZA.next()){var qO=$o.value,xD=Zm.get(_.B(Ly,2));if(!xD)throw Error("Ve");_.lK(qh,[kK(qO),xD,Ve].join(" "),"or")}}_.S(Tg,15)?_.lK(b,"not ("+qh+")"):_.lK(b,1<bj.di().length?
"("+qh+")":""+qh)}}}null!=_.S(a,60)&&_.nK(b,"linkShareMetadata.securityUpdateEligible",_.S(a,60));var TS=_.S(a,65);if(null!=TS){var rO=[];rO.push("clientEncryptionDetails.encryptionState");rO.push("=");rO.push(kK(TS?"encrypted":"unencrypted"));_.lK(b,rO.join(" "))}var Bn=_.bk(a,_.jf,68);if(Bn.length){for(var NJ=[],K7=[],US=_.m(Bn),VZ=US.next();!VZ.done;VZ=US.next()){var WZ=VZ.value,$A="sharedFrom = "+kK(WZ.Ya());_.T(WZ,2,!1)?K7.push($A):NJ.push($A)}bjc(b,NJ,!1);bjc(b,K7,!0)}var hx=_.bk(a,_.jf,67);
if(hx.length){for(var OJ=[],XZ=[],sO=_.m(hx),pG=sO.next();!pG.done;pG=sO.next()){var YZ=pG.value,PJ="sharedTo = "+kK(YZ.Ya());_.T(YZ,2,!1)?XZ.push(PJ):OJ.push(PJ)}bjc(b,OJ,!1);bjc(b,XZ,!0)}null!=_.S(a,69)&&_.nK(b,"linkShareMetadata.securityUpdateEnabled",_.S(a,69));null!=_.S(a,72)&&_.nK(b,"canAcceptOwnership",_.S(a,72));if(_.S(a,73)){var wha=(new _.mf).Jb("application/vnd.google-apps.shortcut");_.nK(b,"impactedByMultiparentingMigration",!0);_.lK(b,hjc([wha],!1,!1))}1==_.aK(a)&&djc(b,a);return b.toString()};
_.njc=function(a){var b=new _.So(_.mjc(a));_.mJ(a)?_.lK(b,"isQuickAccessRequest"):_.nJ(a)?_.lK(b,"isPeoplePredictRequest"):_.oJ(a)&&_.lK(b,"isDrivePriorityRequest");var c=a.zc();if(c){var d=[];d.push("sortBy");d.push(_.bfc[c.getType()]);d.push(_.jfc[c.uf()]);_.S(c,3)&&d.push("foldersFirst");_.lK(b,d.join(" "))}_.nK(b,"domainSearch",_.S(a,18));_.nK(b,"offline",_.S(a,19));_.bk(a,_.$J,25).length&&(c=[],c.push("sources"),c.push("contains"),c.push(_.ejc(a)),_.lK(b,c.join(" ")));a.oB().length&&(c=[],c.push("spaces"),
c.push("contains"),c.push(_.fjc(a)),_.lK(b,c.join(" ")));if(c=_.aK(a))d=[],d.push("corpora"),d.push("="),d.push(kK(_.Mic[c])),_.lK(b,d.join(" "));_.T(a,66,!0)||_.nK(b,"includeItemsFromAllDrives",_.T(a,66,!0));1!=_.aK(a)&&djc(b,a);_.T(a,48,!1)&&_.lK(b,"cachedOnly");return b.toString()};_.JJ=function(a){if(a instanceof _.uI)a=a.ud();else if(!a)return!1;return a instanceof _.Uz||a instanceof _.dG||"undefined"!=typeof _.oK&&a instanceof _.oK||a instanceof _.gf&&(_.mJ(a)||_.nJ(a)||_.oJ(a))};
ojc=function(){_.Po.call(this);this.V=this.O=null;this.ka=!1;this.ha=null};_.N(ojc,_.Po);_.pjc=function(a){!a.ka&&a.V&&(a.V(),a.ka=!0)};qjc=function(a,b){a.V||(a.V=b)};ojc.prototype.Yj=function(){_.pjc(this);(0,this.ha)()};rjc=function(a,b){a.ha||(a.ha=b)};_.pK=function(a){if(!a.O){a.O=new Dic;var b=_.Ro(a);_.J(b,56,a.O)}return a.O};ojc.prototype.getState=function(){var a=_.pK(this).getState();a||(a=new tic,_.pK(this).Kd(a));return a};
var sjc=function(a,b){var c=new ric;_.y(c,1,b);a=_.Ro(a);_.J(a,12,c)};ojc.prototype.ma=function(){var a=_.C(_.pK(this),vic,4);if(!a){a=new vic;var b=_.pK(this);_.J(b,4,a)}return a};tjc=function(a){var b=_.C(_.pK(a),wic,8);b||(b=new wic,a=_.pK(a),_.J(a,8,b));return b};ujc=function(a){var b=_.C(_.pK(a),Bic,19);b||(b=new Bic,a=_.pK(a),_.J(a,19,b));return b};_.vjc=function(a,b){a=void 0===a?1:a;b=void 0===b?!1:b;_.P.call(this);this.H=!1;this.connectionState=b?1:a;this.O=b?!0:1===a;this.V=b};
_.N(_.vjc,_.P);_.g=_.vjc.prototype;_.g.isConnected=function(){return!this.H&&1===this.connectionState};_.g.Il=function(){return 1===this.connectionState||2===this.connectionState};_.g.We=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.lU:_.vB.Hga;else 1===a?(b=_.vB.xL,this.O=!0):3===a&&(b=_.vB.kU);if(b)return b=new Iic(b),this.connectionState=a,this.H=!1,this.dispatchEvent(b),!0}return!1};
var wjc=function(a,b){this.userId=a;this.H=b;this.db=null},yjc=function(a,b){a.H.info("drive.ds.sync.logging.ImpressionPersister","Persisting offline impressions.");return xjc(a,function(c){return c.count().then(function(d){return 1E3>d?a.add(c,b):a.handleError(Error("Ye"))},function(d){return a.handleError(d)})},"readwrite")};wjc.prototype.add=function(a,b){var c=this,d={};return a.add((d.userId=this.userId,d.Czb=b.toJSON(),d)).then(null,function(e){c.handleError(e)})};
var zjc=function(a){return new _.Rh(function(b){var c=new Map;xjc(a,function(d){return fic(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={Dqa:f.Dqa},k=h.next()){var l=_.m(k.value);k=l.next().value;l=l.next().value;f.Dqa=k;l.then(function(p){return function(q){q&&c.set(p.Dqa,new _.vAa(q.Czb))}}(f))}return _.aI([].concat(_.od(e.values()))).then(function(){return b(c)})})})})},Ajc=function(a,b){return xjc(a,
function(c){return c.remove(b)},"readwrite")},xjc=function(a,b,c){c=void 0===c?"readonly":c;return Bjc(a).then(function(d){try{var e=_.cec(d,["OfflineImpressions"],c).objectStore("OfflineImpressions");return b(e)}catch(f){return a.handleError(f?_.PI(f):void 0)}},function(d){return a.handleError(d)})},Bjc=function(a){return a.db?_.Sh(a.db):_.eec("GoogleDriveDsImpressions",2,function(b,c){c.H.objectStoreNames.contains("OfflineImpressions")&&_.gic(c,"OfflineImpressions");b=_.bec(c,"OfflineImpressions",
{autoIncrement:!0});try{b.H.createIndex("userId","userId",void 0)}catch(d){throw _.mI(d,"creating new index userId with key path userId");}},function(){return a.handleError(Error("Ze"))}).then(function(b){return a.db=b},function(b){return _.Th(_.PI(b))})};wjc.prototype.handleError=function(a){a||(a=Error("$e"));_.hK(this.H,"drive.ds.sync.logging.ImpressionPersister",a.message,"severe");return _.Sh()};
_.Cjc=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;_.P.call(this);this.V=b;this.O=null;this.H=b?!1:a};_.N(_.Cjc,_.P);_.Cjc.prototype.We=function(){return this.H};_.Cjc.prototype.Ll=function(a){var b=this.H!==a;!this.V&&b&&(this.H=a,this.dispatchEvent(new $ic(a)))};_.Cjc.prototype.Oy=function(a){this.O=a};
var Ejc=function(a,b,c,d,e,f){_.P.call(this);var h=this;this.V=a;this.H=b;this.connectionState=c;this.O=d;this.Lb=new _.Le(this);this.Lb.listen(b,"Fb",function(k){k.We()||Djc(h)});this.Lb.listen(c,[_.vB.xL,_.vB.lU],function(){return void Djc(h)});this.W=e;f.then(function(){return Djc(h)})};_.N(Ejc,_.P);Ejc.prototype.tA=function(a){return(this.H.We()||this.connectionState.We())&&this.H.O?yjc(this.O,a):this.V.tA(a)};
var Djc=function(a){return a.H.O?zjc(a.O).then(function(b){b.forEach(function(c,d){a.V.tA(c).then(function(){return Fjc(a,d)},function(){a.log("Unable to send offline impression batch "+d+".")})})}):Promise.resolve()},Fjc=function(a,b){a.log("Sent offline impression batch "+b+".");a.dispatchEvent("Gb");return Ajc(a.O,b).then(function(){a.log("Removed offline impression batch "+b+".")},function(){a.log("Unable to remove offline impression batch "+b+".")})};
Ejc.prototype.log=function(a){this.W.info("drive.ds.sync.logging.ClearcutOfflineTransport",a)};var Gjc=function(){};Gjc.prototype.IQ=function(){return new ojc};var Hjc=function(){this.H=new Eic};Hjc.prototype.O=function(a){_.J(a,13,this.H)};Hjc.prototype.setEnvironment=function(a){this.H.setEnvironment(a);return this};
Jjc=function(a,b,c,d){this.V=b;this.connectionState=c;this.hw=d;this.O=this.H=null;this.client=_.qK(_.sfc,_.cK(a));this.W=_.B(a,94);this.ka=_.qK(_.wfc,_.Mj(a.$f(),8,0));this.owa=_.qK(_.tfc,_.Mj(a.$f(),9,2));this.ma=_.T(a,10,!1);this.lu=_.NI(_.nI(a));this.wBa=_.dK(a);this.ha=Ijc(a);this.buildLabel=a.Ki()};Ijc=function(a){var b=[].concat(_.od(_.pfc.keys())),c=[].concat(_.od(_.qfc.keys())),d=_.DI(a);return b.filter(function(e){return _.pfc.get(e)(a)}).concat(c.filter(function(e){return d&&_.qfc.get(e)(d)}))};
_.qK=function(a,b){a=_.m(a);for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;if(c.includes(b))return d}return 0};Jjc.prototype.Wn=function(a){return null==a?0:a?2:1};var Kjc=function(a){if(a.O)return a.O.H("aU7Ts")};
Jjc.prototype.Bb=function(a){return a instanceof _.iB||"undefined"!=typeof _.rK&&a instanceof _.rK||"undefined"!=typeof _.sK&&a instanceof _.sK||"undefined"!=typeof _.tK&&a instanceof _.tK?a.Bb():"undefined"!=typeof _.uK&&a instanceof _.uK||"undefined"!=typeof _.vK&&a instanceof _.vK||"undefined"!=typeof _.wK&&a instanceof _.wK||"undefined"!=typeof _.xK&&a instanceof _.xK||"undefined"!=typeof _.yK&&a instanceof _.yK?a.response?a.response.Bb():null:null};Jjc.prototype.Ki=function(){return this.buildLabel};
var Ljc=function(a){return a.V.We()||a.connectionState.We()?2:1};Jjc.prototype.getEnvironment=function(){return this.hw};Mjc=function(a,b){this.H=a;var c=new _.Tya;_.Uya(c,b.ha);a=this.H.CL();var d=_.Uec(a);_.J(d,10,c);(c=b.Ki())&&_.Tec(a,c);this.H.GZ();this.O=b};
_.Njc=function(a,b,c){var d=_.Qo(a.H.OF(b,c),_.kfc);sjc(d,Ljc(a.O));b=Kjc(a.O);"boolean"===typeof b&&uic(d.getState(),b);1===c&&qjc(d,function(){return void a.H.LM(d)});rjc(d,function(){var e=a.O;e=e.H?e.H.Od():void 0;var f=d.getState();_.y(f,1,e);a.H.nq(d)});return d};
Ojc=function(a){var b=new _.Pza,c=new Hjc;_.y(c.H,1,a.client);_.y(c.H,8,a.W);_.y(c.H,3,a.ka);_.y(c.H,4,a.owa);_.y(c.H,5,a.ma);_.y(c.H,6,a.lu);_.y(c.H,7,a.wBa);a=c.setEnvironment(a.getEnvironment());_.gec(b,_.mfc,a);_.To(b,_.kfc,new Gjc);return b};
Pjc=function(a,b,c,d,e,f,h,k){k=void 0===k?!1:k;var l=new _.XH(906,b,void 0,_.zfc());l.ha=!1;var p=new _.hec(l);b=new Date;l=_.Zec(_.Yec(_.Xec(hic(),new _.iec(l)),Ojc(c)),109).setSessionId(b.getTime()+"_"+_.Rg());if(k){a=new Ejc(p,d,e,new wjc(a,f),f,h);_.Wec(l,a);d=l.build();_.Sec(d.CL(),1E3*b.getTime());var q=new Mjc(d,c);(new _.Le).listen(a,"Gb",function(){_.Njc(q,106008,0).Yj()});return q}_.Wec(l,p);a=l.build();_.Sec(a.CL(),1E3*b.getTime());return new Mjc(a,c)};
Qjc=function(a,b){this.V=a;this.W=b};Qjc.prototype.O=function(a,b){this.V&&_.Rjc(this)&&(a=_.Njc(this.V,a,0),b&&_.ggc(a,b),a.Yj())};_.zK=function(a,b){if(a.V&&_.Rjc(a)){a=_.Njc(a.V,106018,0);var c=_.C(_.pK(a),Aic,15);if(!c){c=new Aic;var d=_.pK(a);_.J(d,15,c)}c=_.y(c,1,1);_.y(c,2,b);a.Yj()}};Qjc.prototype.H=function(a,b){return this.V&&_.Rjc(this)?(a=_.Njc(this.V,a,1),b&&_.ggc(a,b),a):null};_.Rjc=function(a){return!(!a.V||!a.V.H.vP())};
_.Sjc=function(a,b,c,d,e,f){var h=_.S(a,59),k=_.CI(_.nI(a)).toString(),l=_.bK(_.nI(a));f=new Jjc(a,b,c,f);a=h?Pjc(l,k,f,b,c,d,e,_.T(a,17,!1)):null;return new Qjc(a,f)};_.iJ=function(a){_.K.call(this,a)};_.N(_.iJ,_.K);_.Tjc=function(a){_.K.call(this,a)};_.N(_.Tjc,_.K);_.Tjc.prototype.getId=function(){return _.B(this,1)};_.Tjc.prototype.Ob=function(a){return _.y(this,1,a)};_.Tjc.prototype.xe=function(){return _.C(this,_.tf,2)};_.rJ=function(a){_.K.call(this,a)};_.N(_.rJ,_.K);
_.rJ.prototype.Xn=function(){return _.B(this,2)};_.rJ.prototype.ud=function(){return _.C(this,_.Tjc,3)};_.hJ=function(a){_.K.call(this,a)};_.N(_.hJ,_.K);_.hJ.prototype.ud=function(){return _.C(this,_.gJ,1)};_.hJ.prototype.Kca=function(a){return _.y(this,2,a)};_.fJ=function(a){_.K.call(this,a)};_.N(_.fJ,_.K);_.fJ.prototype.getId=function(){return _.B(this,1)};_.fJ.prototype.Ob=function(a){return _.y(this,1,a)};_.Ujc=function(a,b){return _.y(a,2,b)};_.tJ=function(a){_.K.call(this,a)};_.N(_.tJ,_.K);
_.tJ.prototype.ud=function(){return _.C(this,_.fJ,1)};Vjc=[2];_.AJ=function(a){_.K.call(this,a,-1,Vjc)};_.N(_.AJ,_.K);_.AJ.prototype.Cc=function(){return _.B(this,1)};_.AJ.prototype.DV=function(){return _.bk(this,_.bG,2)};_.AJ.prototype.xe=function(){return _.C(this,_.tf,3)};_.Wjc=function(a){_.K.call(this,a)};_.N(_.Wjc,_.K);_.Wjc.prototype.mk=function(){return _.B(this,1)};_.Xjc=function(a){var b=new _.Wjc;return _.y(b,1,a)};Yjc=[1];_.ygc=function(a){_.K.call(this,a,-1,Yjc)};_.N(_.ygc,_.K);
_.Zjc=function(){this.H={}};$jc=function(a,b,c){if(a.H[b])throw Error("af");a.H[b]=c};_.Zjc.prototype.notify=function(a,b){for(var c=0;c<a.length;c++)if(this.H[a[c]])try{this.H[a[c]](b)}catch(d){_.n.setTimeout(function(){throw d;},0)}};akc=function(a,b){for(var c=0;c<b.length;c++)delete a.H[b[c]]};_.bkc=function(a,b){this.H=a;this.V=b;this.O=_.Efc[_.Mj(a.$f(),8,0)];this.W=_.Efc[_.Mj(a.$f(),51,5)];this.nonce=_.Rg()};
_.bkc.prototype.qc=function(a,b){if(b.MN)ckc(this,a,b),dkc(this,a,b);else if(11===a.Vm){if(b.VIb){var c=b.xD||_.E(this.H.$f(),37,"");_.oj(a.uri,"key",c)}ckc(this,a,b);ekc(this,a,b)}else switch(a.uri=fkc(this,a.Vm,a.uri),a.Vm){case 1:ekc(this,a,b);ckc(this,a,b);break;case 0:b.lu||_.NI(_.nI(this.H))||(b.Oib?_.oj(a.uri,"dsNonce",_.Rg()):_.T(this.H,83,!1)&&_.oj(a.uri,"dsNonce",this.nonce));ekc(this,a,b);dkc(this,a,b);ckc(this,a,b);break;case 2:case 3:case 4:case 5:ekc(this,a,b);dkc(this,a,b);ckc(this,
a,b);break;case 8:case 9:case 10:case 13:case 12:case 7:ekc(this,a,b);dkc(this,a,b);break;default:throw Error("bf`"+a.Vm);}};gkc=function(a,b){var c=fkc(a,b,new _.gj);if(!c.H)throw Error("df");return _.jj(_.ij(_.hj(new _.gj,c.O),c.H),c.W).Fi(_.Ffc.has(b)?"/batch"+a.O:"/batch")};
fkc=function(a,b,c){var d=_.B(a.H.$f(),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=_.E(a.H.$f(),62,"");break;case 8:a=_.B(a.H.$f(),53);break;case 9:a=_.B(a.H.$f(),56);break;case 10:a=_.B(a.H.$f(),22);break;case 13:a=_.B(a.H.$f(),55);break;case 12:a=_.B(a.H.$f(),43);break;default:throw Error("bf`"+b);}a&&a.endsWith("/")&&(a=a.slice(0,-1));c=c.toString();if(!c)return new _.gj(a);
_.Id(c,"/")&&(c=c.slice(1));return new _.gj(a+"/"+c)};ekc=function(a,b,c){a=_.nI(a.H);c.lu||_.NI(a)||(c=[{key:"u",value:_.bK(a)}],b.headers.authorization=_.ddc(c)||"",c=_.CI(a),0<=c&&(b.headers["x-goog-authuser"]=String(c)))};
ckc=function(a,b,c){var d=_.nI(a.H),e=a.H.$f(),f=c.u5a||!!_.B(e,13);c=c.v5a||_.T(e,14,!1);var h=11===b.Vm;f&&((f=_.B(e,13))&&_.Id(f,"email:")?_.oj(b.uri,"trace",f):f&&"trace:true"===f?_.oj(b.uri,"$trace","true"):f?_.oj(b.uri,"trace","token:"+f):_.oj(b.uri,"trace","email:"+d.getEmail().replace(/(@|\+).*$/,"")),h||_.oj(b.uri,"trace.deb","genoa:3:all,driveService:3:all"+(2===_.Mj(e,9,2)?"":",cospel:3:all,DriveService:3:all")));c&&!h&&a.V&&a.V.O(b.headers,b.method,b.uri.toString())};
dkc=function(a,b,c){c.lu||_.NI(_.nI(a.H))?_.oj(b.uri,"key",_.E(a.H.$f(),36,"")):(a=c.xD||_.E(a.H.$f(),37,""),_.oj(b.uri,"key",a))};_.hkc=function(a,b){_.QH.call(this,a?a:500,b?b:6E5)};_.N(_.hkc,_.QH);_.ikc=function(a,b){this.O=b;this.H=new Map;this.dla(_.bk(a,_.Dl,91))};_.ikc.prototype.dla=function(a){a=_.m(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;b=c.getId();c=_.B(c,2);if(!b||!c)break;var d=_.jkc(this,b);if(d){d!==c&&xgc(b);break}this.H.set(b,c)}};
Zgc=function(a,b){return[].concat(_.od(new Set(b))).map(function(c){var d=(new _.Dl).Ob(c);a.H.has(c)?_.El(d,a.H.get(c)):a.O&&(c=a.O.H(c))&&_.El(d,_.kl(c));return d}).filter(function(c){return _.Q(c,2)})};_.jkc=function(a,b){return a.H.has(b)?String(a.H.get(b)):a.O&&(a=a.O.H(b))&&_.Q(a,140)?_.kl(a):null};_.AK=function(a,b,c,d){this.state=a;this.ma=b;this.ka=c;this.Fd=d;this.ha=this.O=this.timeout=this.W=null;this.V=!1;this.H=null};_.AK.prototype.getState=function(){return this.state};
_.AK.prototype.rM=function(a){var b=this;if(this.W)return this.W;var c=_.Vh();this.W=c.promise.then(function(){return _.Xjc(1)},function(d){d=_.uB(d).Sg;var e=0;2===d.Dp()?e=3:_.yfc(d)&&(e=2);return _.Xjc(e)});a&&this.W.then(function(d){3===d.mk()&&_.zK(b.Fd,186469046)});this.H&&(a=_.B(ujc(this.H),4)||0,Cic(ujc(this.H),a+1));setTimeout(function(){b.W=null},5E3);kkc(this,c);return this.W};_.nkc=function(a,b){lkc(a,3)&&_.mkc(a,b)};_.AK.prototype.reset=function(){this.O=null;okc(this)};
okc=function(a){a.timeout&&(clearTimeout(a.timeout),a.timeout=null)};_.mkc=function(a,b){if(!a.O&&!a.V){a.H=a.Fd.H(106025);if(a.H){var c=ujc(a.H);var d=!(!a.state.isConnected()&&a.state.Il());c=_.y(c,1,d);c=_.y(c,2,a.state.O);_.y(c,5,!!b)}a.O=new _.hkc(5E3,6E4);pkc(a)}};pkc=function(a){okc(a);kkc(a);a.O&&(a.timeout=setTimeout(function(){return void pkc(a)},a.O.Ya()),_.RH(a.O))};
kkc=function(a,b){_.Wh((a.ha?a.ha():_.Sh()).then(null,function(){return null}),function(){if(a.H){var c=_.B(ujc(a.H),3)||0,d=ujc(a.H);_.y(d,3,c+1)}qkc(a,b)})};qkc=function(a,b){a.log("Checking connection state.");var c=a.ma.then(function(d){return d.Ue(new _.Ngc)}).then(null,function(d){d=_.uB(d);_.yfc(d.Sg)&&lkc(a,2);return _.Th(d)});b?b.resolve(c):c.then(null,function(){return null})};_.AK.prototype.log=function(a){this.ka.info("drive.ds.sync.connection.StateManager",a)};
lkc=function(a,b){return!a.V&&a.state.update(b)?(a.log("Connection status: "+_.Gfc.get(b)),!0):!1};Sgc=[_.SI,_.UI,_.TI,_.WI,_.VI,_.XI,_.YI,_.aJ,_.cJ,_.dJ,_.eJ,_.gJ,_.hJ,_.wJ,_.yJ,_.AJ,_.EI,_.BJ,_.CJ,_.DJ,_.Cgc,_.EJ];rkc=[_.GI];Tgc=[_.cG,_.Hgc];Ugc=[_.rJ,_.oI,_.yD,_.FJ];Vgc=[_.uI,_.iJ,_.oA,_.GI,_.Bgc];Wgc=[_.FJ,_.eG];Xgc=[_.fJ,_.ygc,_.qJ,_.tJ,_.uJ,_.Agc,_.EJ,Jgc,Igc];
skc=function(a){return a instanceof _.uI||a instanceof _.FJ||"undefined"!=typeof _.BK&&a instanceof _.BK||a instanceof _.CJ||a instanceof _.dJ||a instanceof _.XI||a instanceof _.aJ||a instanceof _.EI&&_.IJ(a)};_.tkc=function(a,b){this.O=b;this.H={};this.hj=new pic;b=_.RI({fields:_.Td(a,28),jr:_.NI(_.nI(a))});this.Jb("SecondaryFields",b);this.Jb("SdkBackfillEnabled",!!_.T(a,45,!1)+" (Include corpus cache: "+!!_.T(a,46,!1)+")")};_.tkc.prototype.Jb=function(a,b){this.H[a]=ukc(a,b)};
var vkc=function(a,b){var c=a.H[b];c||(c=ukc(b,0,2),a.H[b]=c);c.Jb(String(Number(c.Ya())+1))};_.tkc.prototype.Ez=function(a){var b=_.Ra(this.H);this.O&&b.push(ukc("CacheSize",this.O.Od()));b.push(ukc("InitialViewDataLoaded",a));a=new _.Ric;_.Wj(a,1,b);return _.bi(a)};ukc=function(a,b,c){var d=new _.Pic;_.y(d,1,a);_.y(d,4,c||1);d.Jb(String(b));d.Ul(_.Kfc.get(a));return d};
_.wkc=function(a,b,c){var d=new _.afc;_.y(d,2,"Pending...");b instanceof _.uI?_.ck(d,3,_.vI[0],b):b instanceof _.FJ?_.ck(d,4,_.vI[0],b):"undefined"!=typeof _.BK&&b instanceof _.BK?_.ck(d,5,_.vI[0],b):b instanceof _.CJ?_.ck(d,6,_.vI[0],b):b instanceof _.dJ?_.ck(d,7,_.vI[0],b):b instanceof _.XI?_.ck(d,8,_.vI[0],b):b instanceof _.aJ?_.ck(d,9,_.vI[0],b):b instanceof _.EI&&_.ck(d,10,_.vI[0],b);var e=Pgc(b),f=[];if(b instanceof _.TI)GJ(f,"ID",b.getId()),GJ(f,"Parent ID",b.Ik());else if(b instanceof _.dJ)GJ(f,
"TD ID",b.getId());else if(b instanceof _.uI)b=_.njc(b.ud()),GJ(f,"Query",b);else if(b instanceof _.FJ)GJ(f,"Query","All");else if(b instanceof _.CJ)GJ(f,"TD ID",b.getId()),GJ(f,"Title",b.getTitle()),GJ(f,"Theme Image ID",_.B(b,3));else if(b instanceof _.XI)GJ(f,"MimeType",b.getMimeType()),GJ(f,"Title",b.getTitle()),GJ(f,"Parents",_.Td(b,3)),GJ(f,"Convert",_.S(b,8)),GJ(f,"Request ID",b.aj()),GJ(f,"Parent Request IDs",_.Td(b,10)),GJ(f,"Revision Item ID",_.B(b,12)),GJ(f,"Pinned",_.S(b,8));else if(b instanceof
_.YI)GJ(f,"Title",b.getTitle());else if(b instanceof _.aJ)GJ(f,"ID",b.getId());else if(b instanceof _.eJ)GJ(f,"WS ID",b.getId());else if(b instanceof _.EI){if(GJ(f,"ID",b.getId()),GJ(f,"Title",b.getTitle()),GJ(f,"Description",b.He()),GJ(f,"Starred",_.S(b,4)),GJ(f,"Trashed",b.Uh()),GJ(f,"MimeType",b.getMimeType()),GJ(f,"Parents",_.Td(b,8)),GJ(f,"Parents to add",_.Td(b,9)),GJ(f,"Parents to remove",_.Td(b,10)),GJ(f,"Restricted",_.S(b,11)),GJ(f,"Folder Color",b.Wi()),GJ(f,"Update Last Viewed",_.S(b,15)),
GJ(f,"Subscribed",_.S(b,16)),GJ(f,"Available Offline",_.S(b,18)),GJ(f,"Wksp to add",_.Td(b,31)),GJ(f,"Wksp to remove",_.Td(b,32)),b=_.C(b,_.$k,25))GJ(f,"Read Only",_.S(b,1)),GJ(f,"Reason",_.B(b,2))}else b instanceof _.DJ?(GJ(f,"WS ID",b.getId()),GJ(f,"Title",b.getTitle()),GJ(f,"State",b.getState())):b instanceof _.Cgc&&GJ(f,"Title",b.request.getTitle());_.y(d,1,"Request: "+e+(c?" ("+c+")":"")+"\n"+f.join("\n"));a.hj.add(d);return d};
_.xkc=function(a,b){for(var c=new _.So,d=0;d<b.length&&20>d;d++){var e=b[d];c.append(e.getId()+":"+_.jgc(e.getTitle()||"",20)+"\n")}20<b.length&&c.append(b.length-20+" more item(s)");_.y(a,2,c.toString()||"Done.")};_.tkc.prototype.bR=function(){return this.hj.zg()};_.t("sy1nb");
_.CK=function(a){_.K.call(this,a)};_.N(_.CK,_.K);_.CK.prototype.od=function(){return _.C(this,_.iB,1)};_.ykc=function(a,b){return _.J(a,1,b)};_.CK.prototype.Xn=function(){return _.B(this,3)};
_.zkc=function(a,b,c){_.ki.call(this,"Lb");this.requestId=a;this.progress=b;this.totalBytes=c};_.N(_.zkc,_.ki);
_.Akc=function(a,b){this.O=a;this.V=b;this.H=null};
var DK=function(a){_.P.call(this);this.name=a};_.N(DK,_.P);_.g=DK.prototype;_.g.Q3=function(){};_.g.VDa=function(){};_.g.E_a=function(){};_.g.sLa=function(){};_.g.D_a=function(){};_.g.PF=function(){this.dispatchEvent(new _.ki("Mb"))};_.g.toString=function(){return this.name+": "+this.max(Infinity)};
var Bkc=function(a,b){DK.call(this,"Online");var c=this;this.O=a;this.H=b;this.Qc=new _.Le(this);this.Ma(this.Qc);this.Qc.listen(this.O,"Fb",function(d){d.We()||c.PF()});this.Qc.listen(this.H,"nb",this.PF)};_.N(Bkc,DK);Bkc.prototype.max=function(){var a=this.O.We(),b=this.H.wB();return!a&&b?Infinity:0};Bkc.prototype.Q3=function(){this.PF()};
var Ckc=function(a){DK.call(this,"Online");var b=this;this.connectionState=a;this.Qc=new _.Le(this);this.Ma(this.Qc);this.Qc.listen(this.connectionState,[_.vB.xL,_.vB.Hga,_.vB.lU],function(){return b.PF()})};_.N(Ckc,DK);Ckc.prototype.max=function(){return this.connectionState.isConnected()?Infinity:0};Ckc.prototype.Q3=function(){this.PF()};
_.Dkc=function(a,b){this.H=a;this.O=b};_.Ekc=function(a){return a.H instanceof _.AK?new Ckc(a.H.getState()):new Bkc(a.O,a.H)};_.Dkc.prototype.Hj=function(){return this.H instanceof _.AK?this.H.getState():this.O};
var Gkc;_.Fkc=function(a,b,c){this.uK=c;this.O=!0;this.V=0;this.H=new _.QH(a,b,.5)};Gkc=function(a){return a.H.O+a.V};
_.EK=function(a,b){DK.call(this,"Backoff");this.H=a;this.O=b};_.N(_.EK,DK);_.EK.prototype.max=function(){return this.H.O?Infinity:0};_.EK.prototype.sLa=function(){var a=this.H;a.V=0;a.H.reset()};_.EK.prototype.D_a=function(a){var b=this;Hkc(a)&&this.H.O&&(this.H.O=!1,a=this.H.H.Ya(),this.log("Stopping new requests for "+a+" ms."),_.n.setTimeout(function(){b.log("Backoff complete, allowing requests.");b.H.O=!0;b.PF()},a),_.RH(this.H.H))};
var Hkc=function(a){var b;return(a=null===(b=_.ia(a.CD))||void 0===b?void 0:b.response)?mgc(_.Hub(a)):!1};_.EK.prototype.log=function(a){this.O.info("drive.ds.network.queue.BackoffState",a)};
_.Ikc=function(a,b){DK.call(this,"Batch");this.O=a;this.V=b;this.H=null};_.N(_.Ikc,DK);_.Ikc.prototype.max=function(a){return a>=this.O?this.O:null!=this.H?this.V<=Date.now()-this.H?this.O:0:0};_.Ikc.prototype.Q3=function(a){a>=this.O?this.PF():null==this.H&&Jkc(this)};_.Ikc.prototype.VDa=function(a,b){0<b?Jkc(this):this.H=null};var Jkc=function(a){a.H=Date.now()-1;_.n.setTimeout(a.PF.bind(a),a.V)};
_.FK=function(){this.hj=[]};_.g=_.FK.prototype;_.g.add=function(a,b){b?this.hj.unshift(a):this.hj.push(a);return!0};_.g.Sra=function(a){return _.Ba(this.hj,0,a)};_.g.Od=function(){return this.hj.length};_.g.cancel=function(a){return _.va(this.hj,function(b){return b.Bv.config.requestId===a?(b.oe.resolve(Qgc(b.Bv.request)),!0):!1})};_.g.bK=function(){return _.fg(this.hj,function(a){return _.IJ(a.Bv.request)})};
var Kkc=function(){DK.call(this,"Immediate")};_.N(Kkc,DK);Kkc.prototype.max=function(){return Infinity};Kkc.prototype.Q3=function(){this.PF()};
var Lkc=function(){DK.call(this,"One Request")};_.N(Lkc,DK);Lkc.prototype.max=function(){return 1};
_.GK=function(a){DK.call(this,"Parallel");this.limit=a;this.H=0};_.N(_.GK,DK);_.GK.prototype.max=function(){return Math.max(0,this.limit-this.H)};_.GK.prototype.Q3=function(){this.H<this.limit&&this.PF()};_.GK.prototype.VDa=function(a){this.H+=a.length};_.GK.prototype.E_a=function(a){this.H-=a.length;this.H<this.limit&&this.PF()};
var Mkc=function(){_.P.apply(this,arguments)};_.N(Mkc,_.P);var Okc=function(a,b){a.dispatchEvent(new Nkc(b))};Mkc.prototype.O=function(){};var Nkc=function(a){_.ki.call(this,"Nb");this.request=a};_.N(Nkc,_.ki);
_.HK=function(a,b,c,d,e,f){_.P.call(this);var h=this;this.ha=a;this.V=b;this.H=c;this.buckets=d;this.O=e;this.ma=0;this.W=new Map;this.Qc=new _.Le(this);this.Ma(this.Qc);for(a=0;a<this.H.length;a++)this.Qc.listen(this.H[a],"Mb",this.AZa);for(a=0;a<this.O.length;a++)this.Qc.listen(this.O[a],"Nb",function(k){Pkc(h,!0,k.request)});this.ka=_.wt("drive.ds.network.queue.Queue [%s]",f)};_.N(_.HK,_.P);_.HK.prototype.add=function(a){return Pkc(this,!1,{Bv:a,oe:_.Vh(),CD:[]})};
_.HK.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};_.HK.prototype.bK=function(){return this.V.bK()?!0:this.buckets.some(function(a){return a.bK()})};
var Pkc=function(a,b,c){if(!a.buckets.some(function(f){return f.add(c,b)}))return a=_.fq(new _.pc,"No queue bucket accepted request."),_.Th(_.uB(a));for(var d=Qkc(a),e=0;e<a.H.length;e++)a.H[e].Q3(d);return c.oe.promise};_.g=_.HK.prototype;
_.g.AZa=function(){var a=Qkc(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].Sra(b);0<c.length&&(this.log("Executing "+c.length+"/"+a+" requests. States: {"+this.H.join(", ")+"}"),this.execute(c))}};
_.g.execute=function(a){var b=this,c=String(this.ma++);this.W.set(c,a);for(var d=this.V.execute(a),e=0;e<a.length;e++)d[e].then(this.Cub.bind(this,a[e]),this.Bub.bind(this,a[e]));e=Qkc(this);for(var f=0;f<this.H.length;f++)this.H[f].VDa(a,e);_.Wh(_.aI(d).then(this.Aub.bind(this,a)),function(){b.W.delete(c)});_.n.setTimeout(this.AZa.bind(this),0)};
_.g.Cub=function(a,b){var c=a.Bv.config;this.log(Pgc(a.Bv.request)+" request completed successfully. xd4: "+!(!c||!c.MN));this.H.forEach(function(d){return d.sLa()});this.O.forEach(function(d){return d.O(a)});a.oe.resolve(b)};
_.g.Bub=function(a,b){b=_.uB(b);this.log(Pgc(a.Bv.request)+(" request failed with error: "+b.ha+"."));a.CD.push({response:b,HPb:Date.now()});for(var c=0;c<this.H.length;c++)this.H[c].D_a(a);a.Bv.config.QDa||!this.O.some(function(d){return d.intercept(a)})?a.oe.reject(b):this.log(Pgc(a.Bv.request)+" encountered an error, but was intercepted to be retried.")};_.g.Aub=function(a){Qkc(this);for(var b=0;b<this.H.length;b++)this.H[b].E_a(a)};
var Qkc=function(a){for(var b=0,c=0;c<a.buckets.length;c++)if(a.buckets[c].Od()){b=a.buckets[c].Od();break}return b};_.HK.prototype.log=function(a){this.ha.info(this.ka,a)};
_.Rkc=function(a,b,c,d){Mkc.call(this);this.V=b;this.ka=c;this.W=d;this.H=new Map;this.ha=_.gk(a,21,1E3);this.ta=_.gk(a,1,1);this.ma=function(){return new _.Fkc(_.gk(a,63,1E3),_.gk(a,64,3E5),_.gk(a,65,10))}};_.N(_.Rkc,Mkc);
_.Rkc.prototype.intercept=function(a){var b=a.CD.length,c=0<b&&_.ia(a.CD).response||null;if(c){c=_.BI(c);if(2===c.Dp())return Skc(this,a);if(_.yfc(c))return 2>=b?(Okc(this,a),a=!0):a=!1,a;var d=c.lk();if(3===d||31===d||13===d||9===d)return Tkc(this,a,b);if(mgc(c))return b=Gkc(this.V),c=this.V,Gkc(c)<c.uK?(this.log("Backoff number "+b+" for a User Rate Limit error."),Okc(this,a),a=!0):(this.log("Done retrying User Rate Limit errors after "+(b+" backoffs.")),a=!1),a}return!1};
var Skc=function(a,b){var c=Ukc(a,b),d=Gkc(c);if(Gkc(c)<c.uK)return a.log("Retry "+(d+1)+" for a failed request due to an offline error."),a.ka.We()?(d=c.H.Ya(),_.n.setTimeout(function(){return Okc(a,b)},d),_.RH(c.H)):(_.n.setTimeout(function(){return Okc(a,b)}),c.V++),!0;a.H.delete(b);return!1},Ukc=function(a,b){a.H.has(b)||a.H.set(b,a.ma());return a.H.get(b)},Tkc=function(a,b,c){var d=a.ta;if(c<=d)return a.log("Retry number "+(c+1)+" for a retryable error."),_.n.setTimeout(function(){return Okc(a,
b)},a.ha*Math.pow(2,c)),!0;a.log("Done retrying retriable requests after "+d+" retries.");return!1};_.Rkc.prototype.O=function(a){this.H.delete(a)};_.Rkc.prototype.log=function(a){this.W.info("drive.ds.network.queue.RetryInterceptor",a)};
var Vkc=function(a){try{if("undefined"!==typeof FileReaderSync&&_.zfc()){var b=new FileReaderSync;return Promise.resolve(b.readAsDataURL(a))}var c=new _.xyb,d=Jic(c);c.H.readAsDataURL(a);return d.then()}catch(e){return Promise.reject(new _.vyb(_.PI(e),"reading data"))}},Wkc=function(a){return Vkc(a.size?a.slice(0,1):a).then(function(){return null},function(b){return b.name})};
var Xkc=function(a,b,c,d,e,f,h){this.Ha=a;this.H=b;this.Ka=c;this.W=d;this.Pa=e;this.request=f;this.config=h;this.O=this.ta=this.progress=0;this.Fa=this.va=this.ha=null;this.oe=_.Vh();this.finished=!1;this.Ba=this.yu=0;this.ka=null;this.ma=!1;this.V=null;a=f.request.Ez();a=_.zfc()&&a?_.B(a,1):null;this.fileSize="number"===typeof a?a:f.file.size;this.requestId=h.requestId;this.sO="progress_"+this.requestId;h.sO=this.sO;this.ma=!!f.metadata};
Xkc.prototype.log=function(a){this.Ka.info("drive.ds.sync.request.ResumableUpload",a)};Xkc.prototype.start=function(){var a=this,b=new Igc(this.request.request,this.request.metadata),c=Ykc(this);this.Ha.then(function(d){return d.Ue(b,c)}).then(function(d){a.ha=d.O;a.va=d.H;a.Fa=d.V;Zkc(a)},function(d){return void a.oe.reject(d)});return _.Wh(this.oe.promise.then(function(d){$kc(a,d);return d},function(d){d=_.uB(d);$kc(a,d.Sg);return _.Th(d)}),function(){akc(a.H,[a.sO])})};
var Ykc=function(a){var b=_.$a(a.config);$jc(a.H,a.sO,mic(function(){return void a.H.notify([a.requestId],0)}));return b};Xkc.prototype.cancel=function(){return this.finished?!1:(this.finished=!0,this.oe.resolve(Qgc(this.request)),!0)};
var Zkc=function(a){a.finished||(a.log("Uploading chunk "+a.Ba+" for "+a.ha+"."),alc(a,4))},alc=function(a,b){blc(a).then(function(c){if(c){var d=clc(a,c.blob.size);a.Ha.then(function(f){return f.Ue(c,d)}).then(function(f){a.V=null;var h=c.blob.size;a.progress+=a.O;a.ta+=h;a.Ba++;f.SJ()&&(a.va=f.SJ());f.YM()&&(a.Fa=f.YM());a.progress<a.fileSize?Zkc(a):a.oe.resolve(f)},function(f){if(d.QDa)a.cancel();else{var h=_.BI(f);h.TAa()||h.Uka()||a.ma?dlc(a,b,h,!1):Wkc(c.blob).then(function(k){k=k?_.UEa.get(k)||
25:38;_.LI(h,k);k=38===h.Dp();var l=38!==h.Dp()&&25!==h.Dp();dlc(a,b,h,k,l)},function(){})}})}else{var e=_.uB(_.LI(_.fq(new _.pc,"Could not read more of the file. Read "+a.progress+"/"+a.fileSize+" bytes."),5));a.oe.reject(e)}})},dlc=function(a,b,c,d,e){e=void 0===e?!1:e;var f=4-b;c.gfa(f);!e&&0<b?(a.yu++,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+"."));alc(a,b)},a.Pa*Math.pow(1.5,f))):a.oe.reject(_.uB(c))},blc=function(a,b){return a.ma&&a.V?_.Sh(a.V):elc(a,b).then(function(c){if(!c)return null;if(a.ma&&0<a.fileSize&&0===c.size)return blc(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 Jgc(a.ha,c,a.ta,a.ta+c.size-1,a.finished,a.request.request.getMimeType(),_.B(a.request.request,
12)||void 0);return a.V})},elc=function(a,b){a.O=b?b:Math.min(a.fileSize-a.progress,a.W);b=a.progress;return a.request.iQ?a.request.iQ(b,a.O):_.Sh(_.lgc(a.request.file,b,b+a.O))},clc=function(a,b){var c=_.$a(a.config);c.sQa=!0;var d=a.progress/a.fileSize,e=b/a.fileSize;akc(a.H,[a.sO]);$jc(a.H,a.sO,function(f){a.H.notify([a.requestId],Math.min(d+e*f,1))});return c},$kc=function(a,b){b.tLa(3);b.gfa(a.yu);b.SJ()||b.Dca(a.va);b.YM()||b.tca(a.Fa)};
_.flc=function(a,b,c,d,e){this.ha=a;this.V=b;this.H=c;this.W=d;this.O=e};_.flc.prototype.create=function(a,b){return new Xkc(this.ha,this.V,this.H,this.W,this.O,a,b)};
_.glc=function(a){this.O=a;this.H={}};_.glc.prototype.execute=function(a){for(var b=[],c=0;c<a.length;c++)if(a[c].Bv.request instanceof _.Kgc)b.push(hlc(this,a[c].Bv));else{var d=_.fq(new _.pc,"ResumableUploadExecutor only supports ResumableUploadRequests.");b.push(Promise.reject(_.uB(d)))}return b};_.glc.prototype.cancel=function(a){return!!this.H[a]&&this.H[a].cancel()};_.glc.prototype.bK=function(){return!_.Ua(this.H)};
var hlc=function(a,b){var c=a.O.create(b.request,b.config),d=c.start(),e=b.config.requestId;a.H[e]=c;return _.Wh(d,function(){delete a.H[e]})};
_.ilc=function(a,b){return new _.HK(b,a,[new Kkc],[new _.FK],[],"immediate")};_.jlc=function(a,b,c,d,e){return new _.HK(e,a,[_.Ekc(d),new _.EK(c,e),new Lkc],[new _.FK],[new _.Rkc(b,c,d.Hj(),e)],"connected")};_.klc=function(a,b,c,d,e,f,h){h=void 0===h?_.gk(b,10,50):h;return new _.HK(e,a,[_.Ekc(d),new _.Ikc(h,_.gk(b,12,10)),new _.GK(3*h),new _.EK(c,e)],[new _.FK],[new _.Rkc(b,c,d.Hj(),e)],f)};_.llc=function(a,b,c){b=_.gk(b,46,1);return new _.HK(c,a,[new _.GK(b)],[new _.FK],[],"resumable_upload")};
_.mlc=function(a,b,c,d,e,f,h,k){this.kI=a;this.ma=b;this.V=c;this.H=d;this.W=e;this.ha=f;this.ka=h;this.O=k};_.mlc.prototype.Ue=function(a,b){return nlc(this,a,b).then(null,function(c){c=_.uB(c);var d=c.Sg;Rgc(a)||_.hq(d);return _.Th(c)})};
var nlc=function(a,b,c){c=void 0===c?{}:c;var d=a.kI.validate(b);if(d)return _.Th(_.uB(d));var e=a.ma.translate(b);e instanceof _.pc?d=void 0:Array.isArray(e)?(d=e.map(function(f){return a.V.execute(a,f,c)}).filter(function(f){return!!f}),d=0<d.length?Promise.all(d):void 0):d=a.V.execute(a,e,c)||void 0;return _.Sh(d).then(function(){if(e instanceof _.pc)return _.Th(_.uB(e));if(Array.isArray(e)){var f=e.map(function(h){return olc(a,b,h,c)});return _.aI(f)}return olc(a,b,e,c)},function(f){return _.Th(_.uB(f))})},
olc=function(a,b,c,d){var e=plc(a,c);if(!e)return b=_.LI(_.fq(new _.pc,"Failed to choose a queue for server request."),18),_.Th(_.uB(b));if(b instanceof _.fJ||b instanceof _.tJ)d.Oib=!0;if(e===a.H[7]||e===a.H[8])d.MN=!0;d=e.add({request:c,config:d});(_.IJ(b)||_.IJ(c))&&_.Wh(d,function(){var f=a.W;f.O()||(f.H&&(f.H.resolve(),f.H=null),f.V())});b=a.ha.apply(c,d);d.then(function(f){a.ka.apply(c,f)},function(){});return b};_.mlc.prototype.cancel=function(a){return _.Pa(this.H,function(b){return b.cancel(a)})};
var plc=function(a,b){var c,d=!1;b instanceof _.iJ?d=!(null===(c=_.C(b,_.oA,2))||void 0===c||!_.S(c,7)):b instanceof _.oA?d=!!_.S(b,7):b instanceof _.uI&&(d=(d=b.ud())&&!!_.S(d,46));return(b instanceof _.Ngc||b instanceof _.YH&&_.S(b,9))&&a.H[1]?a.H[1]:b instanceof _.Kgc&&a.H[5]?a.H[5]:d&&Ygc(b,a.O)&&a.H[7]?a.H[7]:Ygc(b,a.O)&&a.H[8]?a.H[8]:d&&(b instanceof _.iJ||b instanceof _.oA)&&a.H[6]?a.H[6]:(d||rkc.includes(b.constructor))&&a.H[3]?a.H[3]:Sgc.includes(b.constructor)&&a.H[4]?a.H[4]:a.H[2]||a.H[1]};
var qlc=function(a){this.H=a};qlc.prototype.build=function(a,b){var c="====="+_.Rg()+"=====",d=a[0].Vm,e=b.every(function(l){return l.MN});if(e){var f=d;var h={"content-type":"text/plain; charset=UTF-8"};d="POST";var k=gkc(this.H,a[0].Vm);_.oj(k,"$ct",'multipart/mixed; boundary="'+c+'"')}else f=rlc[d],h=slc[d]||{},h["content-type"]=_.wt('multipart/mixed; boundary="%s"',c),d=tlc[d],k=new _.gj("");a=ulc(this,a,b,c,e);return{Vm:f,body:a,headers:h,method:d,uri:k}};
var ulc=function(a,b,c,d,e){for(var f=vgc(vlc[b[0].Vm]||{}),h="",k=0;k<b.length;k++){e&&ekc(a.H,b[k],c[k]);var l=b[k],p=a.H,q=l,r=c[k];q.uri=fkc(p,q.Vm,q.uri);switch(q.Vm){case 0:case 5:dkc(p,q,r);ckc(p,q,r);break;case 2:ekc(p,q,r);dkc(p,q,r);var v=q,z=_.B(p.H.$f(),57);v.headers.host=_.sj(z).H;v.headers.origin=_.n.location.origin?_.n.location.origin:_.n.location.protocol+"//"+_.n.location.host;ckc(p,q,r);break;case 12:case 10:case 13:break;case 8:case 7:throw Error("cf`"+q.Vm);default:throw Error("bf`"+
q.Vm);}p=l;q=p.uri.clone();_.hj(q,"");_.ij(q,"");_.jj(q,null);l=f+"\r\n"+(p.method+" "+q+" HTTP/1.1\r\n")+vgc(l.headers)+"\r\n"+(l.body?l.body+"\r\n":"");h+="--"+d+"\r\n";h+=l}return h+("--"+d+"--\r\n")},wlc={},rlc=(wlc[0]=1,wlc[2]=3,wlc),xlc={},tlc=(xlc[0]="POST",xlc[2]="PUT",xlc[12]="POST",xlc),ylc={},zlc={},slc=(zlc[2]=(ylc["x-goog-upload-protocol"]="batch",ylc),zlc),Alc={},Blc={},Clc={},Dlc={},vlc=(Dlc[0]=(Alc["content-type"]="application/http",Alc["content-transfer-encoding"]="binary",Alc),Dlc[12]=
(Blc["content-type"]="application/http",Blc["content-transfer-encoding"]="binary",Blc),Dlc[2]=(Clc["content-type"]="application/http",Clc),Dlc);
var Elc=/^HTTP\/1\.1 (\d+) ([\w ]+)/,Flc=/^multipart\/mixed; boundary="?([^"]+)"?$/;
var Glc=function(a,b,c,d,e){this.V=a;this.W=b;this.ha=c;this.H=d;this.O=e;this.hj=new Map};Glc.prototype.add=function(a,b){var c="DEFAULT";b.MN&&(c=gkc(this.V,a.Vm).toString());this.hj.has(c)||this.hj.set(c,[]);c=this.hj.get(c);if(1<=c.length&&!b.MN&&!rlc[a.Vm])return a=_.fq(new _.pc,"Unsupported batch API: "+a.Vm),_.Th(_.uB(a));var d=_.Vh();c.push({request:a,config:b,oe:d});return d.promise};
Glc.prototype.send=function(){var a=this;this.hj.forEach(function(b,c){try{Hlc(a,b)}catch(f){var d=_.gq(_.fq(new _.pc,"Error executing XHR: "+f.message),f.stack),e=_.uB(d);b.forEach(function(h){h.oe.reject(e)});a.hj.delete(c)}})};
var Hlc=function(a,b){if(1===b.length){var c=b[0];if(!c.config.tBa&&!c.config.MN){var d=!1;if(rlc[c.request.Vm]){var e={Vm:c.request.Vm,headers:{},method:c.request.method,uri:c.request.uri.clone()};a.V.qc(e,c.config);2E3<e.uri.toString().length&&(d=!0)}if(!d){Ilc(a,c);return}}}Jlc(a,b)},Ilc=function(a,b){var c=b.oe;a.W.Zg(b.request,b.config).then(function(d){c.resolve(d);Klc(a,b)},function(d){a.handleError(b,d);c.reject(_.uB(d))})},Jlc=function(a,b){var c=[],d=[];b.forEach(function(e){c.push(e.request);
d.push(e.config)});a.W.Zg(a.ha.build(c,d),{tBa:!0,MN:d.every(function(e){return e.MN})}).then(function(e){e.headers=_.Vfc(e.headers);var f=Flc.exec(e.headers["content-type"]);var h=f&&f[1]?"--"+f[1]:null;if(!h)throw new _.qc("Could not extract batch boundary.",_.LI(_.gq(new _.pc,JSON.stringify(e)),14));f=h+"\r\n";h=e.text.split(h+"--");if(2===h.length&&_.Id(_.nia(h[0]),f)&&_.ie(h[1]))h=_.nia(h[0]).substring(f.length);else throw new _.qc("Could not parse batch response; did not begin and end with boundary.",
_.LI(_.gq(new _.pc,JSON.stringify(e)),15));f=h.split(f);h=c.length===f.length;for(var k=[],l=0;l<f.length;l++){var p=h?c[l]:void 0,q=k,r=q.push;var v=void 0;var z,A=e.headers,D=f[l],G=p&&p.uri,H=D.split("\r\n\r\n");if(2>H.length)v=new _.qc("Individual batch response contained too few parts.",_.LI(_.gq(new _.pc,D),17));else{var L=H[1].split("\r\n");if(z=Elc.exec(L[0])){p=_.Ug(z[1]);z=z[2];L.shift();A=_.$a(A);for(var M=Object,R=M.assign,ba={},ka=0;ka<L.length;ka++){var ja=_.Aia(L[ka],":",1);ja&&2===
ja.length&&(ba[(0,_.hg)(ja[0])]=(0,_.hg)(ja[1]))}L=_.Vfc(ba);R.call(M,A,L);try{v=_.ie(_.Qg(H[2]))?void 0:JSON.parse(H[2])}catch(ya){}v=(p=_.$fc(p,z,A,D,v,void 0,void 0,G&&G.toString()))?_.uB(p):{headers:A,text:D,json:v||void 0}}else v=new _.qc("Could not extract HTTP status code and text.",_.LI(_.gq(new _.pc,D),16))}r.call(q,v)}return k}).then(null,function(e){e=_.uB(e);return _.idc(e,b.length)}).then(function(e){for(var f=!1,h=0;h<b.length;h++){var k=b[h].oe,l=e[h];l instanceof _.pc||l instanceof
_.qc?(l=_.uB(l),f||(f=a.handleError(b[h],l)),k.reject(l)):k.resolve(l)}f||Klc(a,b[0])})},Klc=function(a,b){var c=b.request.Vm;b=!b.config.lu&&_.pa(Llc,c);if(a.H){if(a=a.H,c=b?1:2,!a.state.isConnected()||b)c=lkc(a,c),b&&c&&a.reset(),a.H&&c&&(b||!a.state.O)&&(a.H.Yj(),a.H=null)}else a.O&&b&&a.O.va()};
Glc.prototype.handleError=function(a,b){a=_.Hub(b);if(2===a.Dp()){if(this.H)return _.nkc(this.H),!0}else if(_.yfc(a)){if(this.H){a=this.H;if(b=!a.V)b=a.state,b=!b.V&&b.isConnected()?b.H=!0:!1;b&&_.mkc(a);return!0}if(this.O)return this.O.ta(),!0}return!1};var Llc=[0,2,4,7,8];
var Mlc=function(){_.cj.apply(this,arguments)};_.N(Mlc,_.cj);Mlc.prototype.getAllResponseHeaders=function(){return _.nia(_.cj.prototype.getAllResponseHeaders.call(this))};
var Nlc=function(a,b){this.W=a;this.V=b;this.O={};this.H={}};_.g=Nlc.prototype;_.g.Zg=function(a,b){try{this.W.qc(a,b);var c=new Mlc;c.pC=!0;var d=b.requestId||"",e=_.Vh();c.listen("complete",this.m9a.bind(this,c,e,d,b.tBa,4===a.Vm));d&&b.sO&&!b.MN&&(this.O[d]=c,this.H[d]=b,c.Gb=!0,c.listen("uploadprogress",(0,_.u)(this.iyb,this,b)),b.sQa||c.listen("downloadprogress",(0,_.u)(this.kub,this,b)));c.send(a.uri,a.method,a.body,a.headers);return e.promise}catch(f){return _.Th(_.uB(f))}};
_.g.cancel=function(a){var b=this.O[a];a=this.H[a];return b&&b.isActive()?(a.QDa=!0,b.abort(),!0):!1};_.g.m9a=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;c&&(delete this.O[c],delete this.H[c]);c={headers:_.hma(a),text:a.kl()};if(!d)try{c.json=_.MI(a)}catch(f){}d=_.$fc(a.Bb(),_.ema(a),c.headers,c.text,c.json,a.O,_.ima(a),String(a.ta),e);a.dispose();d?b.reject(_.uB(d)):b.resolve(c)};_.g.iyb=function(a,b){b.lengthComputable&&this.V.notify([a.sO],a.sQa?b.loaded/b.total:b.loaded/b.total/2)};
_.g.kub=function(a,b){b.lengthComputable&&this.V.notify([a.sO],b.loaded/b.total/2+.5)};
_.Olc=function(a,b,c,d,e,f,h){this.O=a;this.va=b;this.Ba=c;this.ta=d;this.ma=e;this.ha=f;this.H=h;this.V=[];this.ka=new qlc(this.O);this.W=new Nlc(this.O,this.va)};_.g=_.Olc.prototype;
_.g.execute=function(a){for(var b=[],c=[],d=0;d<a.length;d++){var e=a[d].Bv;this.V.push(e);b.push(this.Ba.BE(e,a[d].CD));c.push(skc(e.request)?_.wkc(this.ma,e.request):void 0)}if(this.H&&this.H.V){var f=Promise.reject(_.uB(_.$fc(0,"",{},"",void 0,-99)));return a.map(function(){return f})}var h=new Glc(this.O,this.W,this.ka,this.H||void 0,this.ha||void 0);d=[];e={};for(var k=0;k<a.length;e={tqa:e.tqa},k++){e.tqa=a[k].Bv.config;var l=b[k].then(function(p){return function(q){return h.add(q,p.tqa)}}(e));
d.push(l)}Promise.allSettled(b).then(function(){h.send()});b=[];for(e=0;e<a.length;e++)k=a[e].Bv,l=d[e].then(this.wmb.bind(this,k.request,c[e],a[e].CD)).then(null,function(p){return Promise.reject(_.uB(p))}),l.then(this.uLa.bind(this,k),this.uLa.bind(this,k)),b.push(l);return b};_.g.wmb=function(a,b,c,d){a=this.ta.BE(a,d,c);b&&(c=a.Bd?a.Bd():[],_.xkc(b,c));return a};_.g.cancel=function(a){return this.W.cancel(a)};_.g.bK=function(){return this.V.some(function(a){return _.IJ(a.request)})};
_.g.uLa=function(a){_.ua(this.V,a)};
_.Plc=function(){};_.Plc.prototype.execute=function(){return null};
var Qlc;Qlc=function(a){this.H=a};_.IK=function(a,b){if(!_.Ca(b))throw new _.qc("Expected an object, but got a "+_.ega(b)+".",_.OI(11,void 0,8));var c=b.kind;if(!c)throw new _.qc("Expected 'kind' parameter in response: "+JSON.stringify(b),_.OI(11,void 0,21));if(!a.includes(c))throw new _.qc("Expected "+a.join(" or ")+" but got a "+c+".",_.OI(11,void 0,9));};_.JK=function(a){return null!=a?(new Date(a)).getTime():void 0};
_.Rlc=function(a){var b=null!=a.canDelete?a.canDelete:a.canDeleteTeamDrive;var c=_.dhc(new _.Yk,a.canAddChildren);c=_.y(c,18,a.canChangeTeamDriveBackground);c=_.y(c,2,a.canComment);c=_.y(c,3,a.canCopy);b=_.mhc(_.hhc(_.nhc(_.ohc(_.phc(_.lhc(_.khc(_.ghc(_.fhc(_.ehc(c,b),a.canDownload),a.canEdit),a.canManageMembers),a.canManageVisitors),a.canMoveItemIntoTeamDrive),a.canMoveTeamDriveItem),a.canReadTeamDrive),a.canRemoveChildren),a.canRename);b=_.y(b,13,a.canRenameTeamDrive);b=_.qhc(_.jhc(_.ihc(b,a.canShare),
a.canTrash),a.canUntrash);b=_.y(b,27,a.canModifyContentRestriction);b=_.y(b,26,a.canShareOutsideDomain);b=_.thc(_.shc(_.rhc(_.y(b,30,a.canMoveItemWithinTeamDrive),a.canMoveItemOutOfTeamDrive),a.canMoveChildrenWithinTeamDrive),a.canMoveChildrenOutOfTeamDrive);b=_.y(b,34,a.canDeleteChildren);b=_.y(b,35,a.canTrashChildren);b=_.y(b,36,a.canRequestApproval);b=_.y(b,37,a.canReadCategoryMetadata);b=_.y(b,38,a.canEditCategoryMetadata);b=_.y(b,39,a.canChangeCategoryReferences);b=_.y(b,49,a.canSetMissingRequiredFields);
b=_.y(b,40,a.canAddMyDriveParent);b=_.y(b,41,a.canRemoveMyDriveParent);b=_.vhc(_.uhc(b,a.canShareChildFiles),a.canShareChildFolders);b=_.y(b,44,a.canRead);b=_.yhc(_.xhc(_.whc(_.y(b,45,a.canMoveItemWithinDrive),a.canMoveItemOutOfDrive),a.canMoveChildrenWithinDrive),a.canAddFolderFromAnotherDrive);b=_.y(b,50,a.canChangeSecurityUpdateEnabled);b=_.y(b,51,a.canRemoveSecureLinkUpdateForAllFiles);b=_.y(b,52,a.canCreateDecryptedCopy);b=_.y(b,53,a.canCreateEncryptedCopy);b=_.y(b,54,void 0===a.canAddEncryptedChildren?
a.canAddChildren:a.canAddEncryptedChildren);return _.y(b,55,a.canBlockOwner)};_.KK=function(a,b){_.IK(["drive#user"],b);var c=_.bhc(_.chc(_.$gc(1).Ob(b.permissionId),b.id).hd(b.displayName),b.emailAddress);b.picture&&c.Ln(b.picture.url);_.tI(a.H)&&_.bhc(c,b.emailAddressFromAccount||b.emailAddress);_.ahc(c,a.Of(b.id));_.y(c,9,b.domain);return c};Qlc.prototype.Of=function(a){if(a)return _.bK(_.nI(this.H))==a};
var Slc,Ylc,mmc,Vlc,cmc,bmc,dmc,fmc,hmc,Ulc,jmc,imc,kmc,lmc,omc,pmc,nmc,emc;Slc=function(a,b){this.H=a;this.O=b};
_.Wlc=function(a,b,c){var d=new _.CK,e=new _.iB,f=e.Nw;_.IK(["drive#fileList","drive#file"],b);var h=[];if("drive#file"==b.kind)(a=_.Tlc(a,b))&&h.push(a);else if("drive#fileList"==b.kind)for(var k=b.items||[],l=0;l<k.length;l++){var p=_.Tlc(a,k[l]);h.push(p)}e=f.call(e,h);e=_.y(e,8,b.incompleteSearch);if("drive#fileList"==b.kind){_.IK(["drive#fileList"],b);if(h=b.spellResponse){f=[];var q=h.spellCorrections;for(h=0;h<q.length;h++){k=q[h].spellFragments;a=[];for(l=0;l<k.length;l++){p=k[l];var r=(new _.gtb).Dc(Ulc[p.status]);
r=_.y(r,1,p.original);p=_.y(r,3,p.correction);a.push(p)}k=new _.ktb;a=_.Wj(k,1,a);f.push(a)}q=new _.mtb;_.Wj(q,1,f)}if((f=b.suggestedNlpQueries)&&0<f.length){var v=new _.itb;_.Qj(v,1,f)}q||v?(f=new _.ntb,q&&_.J(f,1,q),v&&_.J(f,2,v),v=f):v=null;_.J(e,7,v);v=Vlc(b);_.Qj(e,18,v)}d=_.ykc(d,e);c=_.Xfc(c);c=_.y(d,2,c);b.nextPageToken&&_.y(c,3,b.nextPageToken);return c};
Ylc=function(a,b,c,d,e){_.IK(["drive#adminFile","drive#file","drive#revision"],b);var f=_.Hic(new _.HJ,c);"drive#adminFile"==b.kind?(_.IK(["drive#adminFile"],b),c=(new _.dl).Ob(b.id),b.parentId&&_.VJ(c,[b.parentId]),_.Qhc(c,b.teamDriveId),f.setItem(c),_.Hic(f,c.getId())):"drive#file"==b.kind?(b=_.Tlc(a,b),f.setItem(b),c||_.Hic(f,b.getId())):"drive#revision"==b.kind&&(b=_.Xlc(a,b),_.J(f,4,b));f.Dca(_.Wfc(d));f.tca(_.Xfc(d));(d=(d=d&&_.Vfc(d))&&d["x-server-object-version"])&&e&&(e=(new _.gK).Ob(d),
_.J(f,4,e));f.Dc(1);return f};_.Zlc=function(a,b){return _.Hic(new _.HJ,a).Dc(1).Dca(_.Wfc(b)).tca(_.Xfc(b))};_.amc=function(a,b,c,d){d||_.IK(["drive#permissionList"],b);var e=[];b=b[c]||[];for(c=0;c<b.length;c++){var f=_.$lc(a,b[c],d);f&&e.push(f)}return e};
_.$lc=function(a,b,c){c||_.IK(["drive#permission"],b);c=_.ahc(_.chc(_.$gc(bmc[b.type]).Ob(b.id),b.userId),a.H.Of(b.userId));c=_.y(c,4,b.withLink);c=_.bhc(c.hd(b.name).Ln(b.photoLink),b.emailAddress);c=_.y(c,9,b.domain);c=_.y(c,10,b.deleted);c=_.y(c,12,b.audienceId);c=_.y(c,13,b.customerId);c.getId()||c.Ob(b.type+"|"+(b.domain||"")+"|"+b.withLink);_.tI(a.O)&&c.hd(b.nameIfNotUser);a=cmc[b.role];2==a&&b.additionalRoles&&"commenter"==b.additionalRoles[0]?a=4:2==a&&"published"==b.view&&(a=6);_.y(c,6,a);
return c};
_.Tlc=function(a,b){_.IK(["drive#file"],b);var c=b.title,d=(new _.dl).Ob(b.id),e=[];if(b&&b.parents)for(var f=b.parents,h=0;h<f.length;h++)e.push(f[h].id);c=_.Nhc(_.Jhc(_.hG(_.VJ(d,e).setTitle(c),b.mimeType),b.alternateLink),b.hasThumbnail);null!=b.thumbnailVersion&&_.y(c,90,Number(b.thumbnailVersion));_.y(c,21,b.iconLink);c.Ul(b.description);_.Khc(c,b.explicitlyTrashed);_.y(c,22,b.shared);null!=b.quotaBytesUsed&&_.y(c,28,Number(b.quotaBytesUsed));null!=b.fileSize&&_.y(c,14,Number(b.fileSize));_.y(c,
30,b.copyable);b.labels&&(d=b.labels,c.Ev(d.starred),_.y(c,6,d.hidden),c.Mn(d.trashed),_.Ghc(c,d.restricted),_.y(c,9,d.viewed));_.y(c,10,_.JK(b.createdDate));_.y(c,69,_.JK(b.serverCreatedDate));_.SVb(c,_.JK(b.modifiedDate));_.y(c,12,_.JK(b.modifiedByMeDate));_.y(c,13,_.JK(b.lastViewedByMeDate));_.y(c,23,_.JK(b.sharedWithMeDate));_.y(c,62,_.JK(b.subscribedDate));_.y(c,70,_.JK(b.recency));b.recencyReason&&_.y(c,71,dmc[b.recencyReason]||0);d=[];if(b&&b.owners)for(e=b.owners,f=0;f<e.length;f++)(h=_.KK(a.H,
e[f]))&&d.push(h);_.Hhc(c,d);b.lastModifyingUser&&(d=_.KK(a.H,b.lastModifyingUser),_.Ihc(c,d));b.userPermission&&_.TVb(c,cmc[b.userPermission.role]);b.imageMediaMetadata&&(e=b.imageMediaMetadata,d=(new _.SJ).Ah(e.width).zh(e.height),d=_.y(d,4,e.rotation),e.date&&(e=e.date,f=new _.ffc,f.setMilliseconds(0),emc.parse(e,f),_.y(d,1,f.getTime())),_.J(c,27,d));null!=b.folderColor&&_.Mhc(c,Number(b.folderColor));_.Lhc(c,b.subscribed);_.y(c,45,b.fileExtension);_.Qj(c,50,b.folderFeatures);_.y(c,36,b.flaggedForAbuse);
_.y(c,53,b.gplusMedia);_.y(c,46,b.primarySyncParentId||void 0);_.y(c,35,b.hasChildFolders);b.source&&(_.y(c,42,b.source.client_service_id),_.y(c,43,b.source.value));b.sharingUser&&(d=_.KK(a.H,b.sharingUser),_.Ohc(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],_.gdc[h]&&(h=_.df(new _.cf,_.gdc[h]),e.push(h));c.xA(e)}_.y(c,63,b.ownedByMe);_.y(c,29,b.shareable);b.sourceAppId&&_.y(c,61,b.sourceAppId);_.y(c,74,b.changed);
null!=b.recursiveFileSize&&_.y(c,77,Number(b.recursiveFileSize));null!=b.recursiveFileCount&&_.y(c,79,Number(b.recursiveFileCount));if(b.actionItems){d=b.actionItems;e=[];for(f=0;f<d.length;f++)if(h=d[f],h.id&&h.type){var k=(new _.Tna).Ob(h.id);h=_.y(k,2,fmc[h.type]);e.push(h)}_.Wj(c,83,e)}b.capabilities&&_.WJ(c,_.Rlc(b.capabilities));b.permissionsSummary&&_.Rhc(c,_.gmc(a,b.permissionsSummary));b.headRevisionId&&_.y(c,78,b.headRevisionId);b.templateData&&(d=b.templateData,e=(new _.TJ).Ul(d.description),
e=_.y(e,3,hmc[d.galleryState]),d=_.Qj(e,2,d.category),_.J(c,86,d));_.Qhc(c,b.teamDriveId);_.y(c,76,b.hasAugmentedPermissions);_.y(c,137,b.ancestorHasAugmentedPermissions);b.creator&&(d=_.KK(a.H,b.creator),_.Shc(c,d));_.Thc(c,b.primaryDomainName);_.Uhc(c,b.organizationDisplayName);_.y(c,94,b.passivelySubscribed);b.trashingUser&&_.Vhc(c,_.KK(a.H,b.trashingUser));c.Kca(_.JK(b.trashedDate));b.version&&_.y(c,75,Number(b.version));_.y(c,98,b.hasVisitorPermissions);_.y(c,102,b.hasAppsScriptAddOn);(d=b.pairedDocType)&&
_.y(c,101,imc[d]);b.videoMediaMetadata&&(d=b.videoMediaMetadata,e=(new _.UJ).Ah(d.width).zh(d.height),d.durationMillis&&_.y(e,3,Number(d.durationMillis)),_.J(c,103,e));_.Qj(c,104,b.detectors);_.y(c,108,b.containsUnsubscribedChildren);if(b.contentRestrictions){d=[];e=_.m(b.contentRestrictions);for(f=e.next();!f.done;f=e.next())f=f.value,f=_.Bhc(_.Ahc(new _.$k,f.readOnly),f.reason),d.push(f);_.Wj(c,125,d)}if(d=b.publishingInfo)_.y(c,118,d.published),_.y(c,119,d.publishedUrl);_.Qj(c,120,b.workspaceIds);
b.approvalMetadata&&b.approvalMetadata.approvalVersion&&_.y(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 _.Vna).Ob(f.approvalId).Dc(jmc[f.status]),d.push(f);_.Wj(c,127,d)}b.shortcutDetails&&(d=b.shortcutDetails,e=new _.eoa,e=_.y(e,1,d.targetId),e=_.y(e,3,d.targetMimeType),e=_.y(e,6,d.canRequestAccessToTarget),d.targetLookupStatus&&_.y(e,4,kmc[d.targetLookupStatus]||
0),d.targetFile&&(d=_.Tlc(a,d.targetFile),_.J(e,5,d)),_.J(c,132,e));b.clientEncryptionDetails&&(d=b.clientEncryptionDetails,e=new _.RJ,e=_.y(e,1,lmc[d.encryptionState]),d.decryptionMetadata&&(d=mmc(d.decryptionMetadata),_.J(e,2,d)),_.J(c,138,e));b.linkShareMetadata&&(d=b.linkShareMetadata,e=new _.Wna,e=_.y(e,2,d.securityUpdateEligible),e=_.y(e,3,d.securityUpdateEnabled),d=_.y(e,5,d.securityUpdateExplicitlySet),_.J(c,139,d));_.y(c,140,b.resourceKey);_.Qj(c,135,b.authorizedAppIds);_.Whc(c,b.customerId);
_.y(c,144,b.abuseIsAppealable);b.abuseNoticeReason&&_.y(c,145,nmc[b.abuseNoticeReason]);_.ugc(c);_.tI(a.O)&&_.Phc(c,5);return c};
_.Xlc=function(a,b){_.IK(["drive#revision"],b);var c=(new _.gK).Ob(b.id);c=_.y(c,2,b.mimeType);c=_.y(c,3,_.JK(b.modifiedDate));c=_.y(c,4,b.pinned);c=_.y(c,5,b.downloadUrl);c=_.y(c,7,b.originalFilename);null!=b.fileSize&&_.y(c,8,Number(b.fileSize));b.lastModifyingUser&&(a=_.KK(a.H,b.lastModifyingUser),_.J(c,9,a));b.decryptionMetadata&&(b=mmc(b.decryptionMetadata),_.J(c,10,b));return c};
_.gmc=function(a,b){a=_.Ehc(_.Dhc(_.Chc(new _.$na,b.entryCount),_.amc(a,b,"visibility",!0)),_.amc(a,b,"selectPermissions",!0));a=_.y(a,4,b.memberCount);a=_.y(a,5,b.userEntryCount);return _.y(a,6,b.groupEntryCount)};mmc=function(a){var b=a.wrappedKey;var c=new _.zhc;b=b?_.oic(b):void 0;c=_.y(c,1,b);c=_.y(c,2,Number(a.kaclsId));c=_.y(c,5,a.kaclsName);c=_.y(c,3,omc[a.aes256GcmChunkSize]);c=_.y(c,6,pmc[a.keyFormat]);return _.y(c,4,a.jwt)};
Vlc=function(a){_.IK(["drive#fileList"],a);var b=[];(a.items||[]).forEach(function(c){var d=c.id;!d||"1"!=c.searchResultSource&&"3"!=c.searchResultSource||b.push(d)});return b};cmc={fileOrganizer:7,organizer:5,owner:1,reader:2,writer:3};bmc={anyone:4,audience:5,domain:3,group:2,user:1};dmc={createdByMe:1,modifiedByMe:2,modified:3,viewedByMe:4};fmc={MENTION:0,SUGGESTION:1,ASSIGNMENT:2};hmc={UNAVAILABLE:1,AVAILABLE:2,PENDING:3};Ulc={CORRECT:1,INCORRECT:2,SUSPICIOUS:3};
jmc={IN_PROGRESS:1,APPROVED:2,CANCELLED:3};imc={docs:1,sheets:2,slides:3};kmc={ok:1,notFound:2,permissionDenied:3};lmc={unencrypted:1,encrypted:2};omc={unset:0,"default":1,small:2,size16kb:3};pmc={unsetKeyFormat:0,tinkKeyset:1,tinkAesGcmKey:2};nmc={UNKNOWN_REASON:0,ACCESSIBLE_ONLY_TO_OWNER:1,ACCESSIBLE_ONLY_TO_OWNING_CUSTOMER:2,SUSPICIOUS_OTHER:3,SUSPICIOUS_PHISHING:4,SUSPICIOUS_MALWARE:5};emc=new _.rWa("yyyy:MM:dd HH:mm:ss");
var tmc;_.qmc=function(a){this.V=new Qlc(a);this.mF=new Slc(this.V,a)};_.qmc.prototype.BE=function(a,b,c){c=void 0===c?[]:c;try{return rmc(this,a,b,c)}catch(d){_.QI(d)}};
var rmc=function(a,b,c,d){var e=a.ha(b,c);if(e)return e;if(b instanceof _.XI)return _.smc(a,b,c);if(b instanceof _.fJ)return tmc(0,c,d);if(b instanceof _.oA||b instanceof _.iJ){if(!c.json)throw _.LK();return _.Wlc(a.mF,c.json,c.headers)}if(b instanceof _.EJ)return _.smc(a,b,c);if("undefined"!=typeof _.Fgc&&b instanceof _.Fgc){if(!c.json)throw _.LK();a=c.json;return new _.Wic(a.fileId,a.jwt,Number(a.currentKaclsId),a.currentKaclsName,a.customerId)}if("undefined"!=typeof _.umc&&b instanceof _.umc){if(!c.json)throw _.LK();
return _.Xlc(a.mF,c.json)}if(b instanceof _.tJ)return tmc(b.ud(),c,d);if(b instanceof Jgc){if(b.V){if(!c.json)throw _.LK();a=Ylc(a.mF,c.json,null,c.headers,!!b.revisionId)}else a=_.Zlc(null,c.headers);return a}if(b instanceof Igc){a=_.Vfc(c.headers);b=a.location;if(!b)throw a=_.LI(new _.pc,10),new _.qc("No upload session URI included.",a);return new Xic(b,_.Wfc(a),_.Xfc(a))}if(b instanceof _.Ngc)return new Yic;throw new _.qc("FromXhrConverter: Unsupported request type.",new _.pc);};
_.qmc.prototype.ha=function(){return null};tmc=function(a,b,c){return"base64"===b.headers["x-goog-safety-encoding"]?new Zic(_.Naa(b.text),c.length):new Zic(new Uint8Array(_.xma(b.text)),c.length)};_.smc=function(a,b,c){if(!c.json){if(b instanceof _.EI)return _.Zlc(_.vmc(b));throw _.LK();}var d=!1;b instanceof _.EJ&&(d=!!_.B(b.request,12));return Ylc(a.mF,c.json,_.vmc(b),c.headers,d)};_.LK=function(){var a=_.LI(new _.pc,11);return new _.qc("FromXhrConverter: JSON required, but none found",a)};
_.vmc=function(a){return a.getId?a.getId():a.Cc?a.Cc():null};
var zmc,Amc,Cmc,wmc,Dmc,xmc;
zmc=function(a,b){var c={};_.ie(_.Qg(a.getTitle()))||(_.B(a,12)?c.originalFilename=a.getTitle():c.title=a.getTitle());if(a.getMimeType()&&(c.mimeType=a.getMimeType(),a.Cc()&&_.efa(a.getMimeType())&&b)){var d=b.e$(),e=b.O(),f={encryptionState:"encrypted"},h={};f.decryptionMetadata=(h.wrappedKey=_.vj(b.V()),h.kaclsId=b.ha(),h.aes256GcmChunkSize=wmc[d?d.O():0],h.keyFormat=xmc[e?e.O():0],h);c.clientEncryptionDetails=f}_.ymc(c,_.Td(a,3));(b=a.Cc())&&(c.id=b);_.B(a,16)&&(c.embeddingParent=_.B(a,16));a.J1()&&
(c.shortcutDetails={},c.shortcutDetails.targetId=a.J1());"number"===typeof _.B(a,26)&&(c.modifiedDate=_.eic(_.cjc(_.B(a,26)||0)));return c};_.ymc=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)}}};Amc={};_.Bmc=(Amc[1]="active",Amc[2]="archived",Amc);Cmc={};wmc=(Cmc[0]="unset",Cmc[1]="default",Cmc[2]="small",Cmc[3]="size16kb",Cmc);Dmc={};xmc=(Dmc[0]="unsetKeyFormat",Dmc[1]="tinkKeyset",Dmc[2]="tinkAesGcmKey",Dmc);
var Gmc=function(a,b,c){return(a.iQ?a.iQ(0,a.file.size):Promise.resolve(a.file)).then(function(d){return Vkc(d)}).then(function(d){return Emc(a,b,d,c)},Fmc)},Emc=function(a,b,c,d){var e=!!_.B(a.request,12),f="files";e&&(f+="/"+_.B(a.request,12));f=new _.gj(f);_.oj(f,"uploadType","multipart");_.oj(f,"supportsTeamDrives",!0);_.oj(f,"pinned",!!_.T(a.request,13,!1));null!=_.S(a.request,8)&&_.oj(f,"convert",_.S(a.request,8));_.oj(f,"fields",_.pgc({fields:_.jK(b).filter(function(q){return 194!=q}),jr:!1}));
wgc(f,a.request.xe());var h=zmc(a.request,a.metadata),k=_.Rg();b={};b=(b["content-type"]=_.wt('multipart/related; boundary="%s"',k),b);var l=c.indexOf(",");c=0<=l?c.substring(l+1):"";h=JSON.stringify(h);l={};l=(l["content-type"]="application/json; charset=UTF-8",l);var p={};p=(p["content-transfer-encoding"]="base64",p);a.request.getMimeType()&&(p["content-type"]=a.request.getMimeType());_.QJ(d,_.bk(a.request,_.Dl,28),[],null,b);a="--"+k;a=a+"\r\n"+vgc(l)+"\r\n"+h+"\r\n"+a+"\r\n"+vgc(p)+"\r\n"+c+"\r\n"+
a+"--";return{Vm:2,headers:b,method:e?"PUT":"POST",uri:f,body:a}},Fmc=function(a){if(a instanceof _.vyb){var b=new _.pc;_.fq(b,"fs.Error: "+a.message);a=(a=a.name)?_.UEa.get(a)||25:38;_.LI(b,a);b=_.uB(b)}else b=_.PI(a);return Promise.reject(b)};
_.MK=function(a,b,c,d){this.H=a;this.Og=b;this.O=c;this.Fd=d;this.ka=_.DI(a)||new _.Afc};_.MK.prototype.BE=function(a,b){try{return a.request instanceof _.EJ?Gmc(a.request,this.Og,this.H):Promise.resolve(this.V(a.request,a.config,b))}catch(c){return c instanceof _.qc?a=c.Sg:(a=new _.pc,_.fq(a,"Error converting XHR: "+c.message),_.gq(a,c.stack),_.LI(a,4)),Promise.reject(a)}};
_.MK.prototype.V=function(a,b,c){var d=0,e,f={},h="GET",k={},l=!1,p=!1;if(a instanceof _.XI){h=(e=!!_.B(a,12))?"PUT":"POST";var q="files";e&&(q+="/"+_.B(a,12),k.pinned=!!_.T(a,13,!1));null!=_.S(a,8)&&(k.convert=_.S(a,8));k.fields=_.pgc({fields:this.Mg(c),jr:_.NI(_.nI(this.H)),BG:_.tI(this.H)});e=zmc(a);f["content-type"]="application/json";var r=a.xe();p=!0;_.iK(k);_.Hmc(this.H,k);_.QJ(this.H,_.bk(a,_.Dl,28),_.Td(a,3).concat([_.B(a,16),a.J1(),a.Cc()]),this.O,f)}else if(a instanceof _.fJ||a instanceof
_.tJ)a instanceof _.tJ?(l=a.ud(),_.Q(a,2)&&(q="bytes="+_.B(a,2)+"-",_.Q(a,3)&&(q+=_.B(a,3)),f.range=q)):l=a,q="files/"+l.getId(),_.B(l,2)&&(k.revisionId=_.B(l,2)),k.alt="media",f["X-Goog-Encode-Response-If-Executable"]="base64",_.QJ(this.H,[_.El((new _.Dl).Ob(l.getId()),_.B(l,3))],[l.getId()],this.O,f),p=l=!0;else if(a instanceof _.iJ||a instanceof _.oA){if(a instanceof _.iJ)q=_.B(a,1),a=_.C(a,_.oA,2);else if(a instanceof _.oA)q=0,_.zK(this.Fd,190196159);else throw Error("ag");p=a.hn()[q];q="files/"+
p;r=_.wa(this.Mg(c),this.Mg(c,a.O()));_.Ea(r);k.fields=_.pgc({fields:r,jr:_.NI(_.nI(this.H)),BG:_.tI(this.H)});_.iK(k);_.Imc(this.H,k);_.Jmc(this.H,k);this.W(p,k);r=a.xe();p=!0;_.S(a,7)&&(b.tBa=!0);_.QJ(this.H,_.bk(a,_.Dl,11),a.hn(),this.O,f)}else if("undefined"!=typeof _.Fgc&&a instanceof _.Fgc)q="files/generateCseToken",a.id&&(k.fileId=a.id),k.role=a.role,r=a.H;else if("undefined"!=typeof _.umc&&a instanceof _.umc)k.fields="kind,id,modifiedDate,originalFilename,fileSize,mimeType,decryptionMetadata(wrappedKey,kaclsId,aes256GcmChunkSize,jwt,keyFormat)",
q="files/"+a.id+"/revisions/"+a.revisionId,p=l=!0;else if(a instanceof Jgc){d=4;h="PUT";q=a.W;a.contentType&&(f["content-type"]=a.contentType);if(a.O>=a.H){var v=a.H;b=a.O;f["content-range"]=a.V?_.wt("bytes %d-%d/%d",v,b,b+1):_.wt("bytes %d-%d/*",v,b)}v=a.blob;p=!0}else a instanceof Igc?(d=2,h=(e=!!_.B(a.request,12))?"PUT":"POST",q="files",e&&(q+="/"+_.B(a.request,12)),k.uploadType="resumable",k.pinned=!!_.T(a.request,13,!1),null!=_.S(a.request,8)&&(k.convert=_.S(a.request,8)),k.fields=_.pgc({fields:this.Mg(c).filter(function(z){return 194!=
z}),jr:_.NI(_.nI(this.H)),BG:_.tI(this.H)}),_.iK(k),e=zmc(a.request,a.metadata),f["content-type"]="application/json",null!=a.request.getMimeType()&&(f["x-upload-content-type"]=a.request.getMimeType()),_.QJ(this.H,[],_.Td(a.request,3),this.O,f),r=a.request.xe(),p=!0):a instanceof _.Ngc?(q="about",k.fields="kind",r=a.H,p=!0):_.Kmc(a);p&&_.Lmc(c,k);0!=d||l||r&&_.B(r,1)||_.zK(this.Fd,74438989);return _.Mmc(this,d,q,k,f,h,r,e,v)};
_.Mmc=function(a,b,c,d,e,f,h,k,l){c=new _.gj(c);[10,12,13].includes(b)||wgc(c,h);_.T(a.ka,11,!1)&&(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,_.pj(c,a,h);return{Vm:b,headers:e,method:f,uri:c,body:k?JSON.stringify(k):l}};_.Imc=function(a,b){_.T(a.$f(),23,!1)&&(b.includePermissionsForView="published")};_.MK.prototype.W=function(){};
_.Jmc=function(a,b){_.T(a,14,!1)&&(b.useLegacyDomainPermissionBehavior=!1)};_.Hmc=function(a,b){_.T(a,3,!1)&&(b.enforceSingleParent=!0)};_.Lmc=function(a,b){a&&a.length?(b.retryCount=a.length,b.msSinceLastAttempt=Date.now()-_.ia(a).HPb):b.retryCount=0};_.MK.prototype.Mg=function(a,b){b||(b=_.jK(this.Og));0<a.length&&(b=b.slice(0),_.jaa(b,function(c){return Fic.includes(c)}));return b};_.Kmc=function(a){var b=_.LI(new _.pc,4);throw new _.qc("ToXhrConverter: Unsupported request type: "+Pgc(a),b);};
_.NK=function(a,b,c,d,e,f){_.P.call(this);var h=this;this.O=a;this.V=b;this.Ba=c;this.W=d;this.va=e;this.ta=f;this.hj={};this.ha={};this.Fd=null;_.De(this,function(){h.jG()})};_.N(_.NK,_.P);_.NK.prototype.nQ=function(){return _.$H()};
_.NK.prototype.upload=function(a,b,c,d){vkc(this.V,"UploadTotalCount");var e=a.aj();if(e&&this.hj[e])throw new _.qc("Upload requested with a duplicate request ID.");var f=_.Td(a,10);if(f&&f.length){if(1!==f.length)throw new _.qc("Multi-parented uploads are not supported.");var h=this.hj[f[0]];if(!h)throw new _.qc("The parent upload request must precede this request.");}!_.B(a,26)&&b&&b.lastModified&&_.y(a,26,b.lastModified);e||(e=this.nQ(),_.y(a,9,e));a=a.clone();f=Nmc(this,e);this.hj[e]={request:a,
file:b,og:f,MM:!1,yu:0,success:!1,xE:!1,children:[],metadata:c,fla:void 0,iQ:d};h?Omc(this,e,h):this.ka(e);return f.Wm()};
var Nmc=function(a,b){var c=new _.Xh;c.hg(_.Db(a.Fa,b),_.Db(a.Ha,b),a);return c},Omc=function(a,b,c,d){var e=a.hj[b];c.children.push(b);_.Ea(c.children);c.og.then(function(f){if(1===f.Bb()&&(f=f.Cc(),_.Td(e.request,3).push(f),_.WH(e.request,10),!c.xE||d)){a.ka(b);return}a.log('[Cancel] Upload of "'+e.request.getTitle()+'" was cancelled due to parent upload cancellation.');a.cancel(b)},function(f){e.og.Jd(_.rI(f)?f:Error(f))})};
_.NK.prototype.Fa=function(a,b){vkc(this.V,"UploadSuccessCount");a=this.hj[a];a.success=1===b.Bb();(b=a.fla)&&!a.xE&&(xic(zic(tjc(b),a.yu),!0),b.Yj())};_.NK.prototype.Ha=function(a,b){var c=_.C(this.O,_.KI,58);c&&_.T(c,1,!1)&&(this.ha[a]=b);vkc(this.V,"UploadFailureCount");c=this.hj[a];(a=c.fla)&&!c.xE&&(xic(zic(tjc(a),c.yu),!1),b=(c=b&&b.Sg)&&c.lk(),c=c&&c.Dp(),b?yic(tjc(a),Pmc.get(b)||13):c&&yic(tjc(a),Qmc.get(c)||0),a.Yj())};
_.NK.prototype.ka=function(a){var b=this.hj[a];if(!b.MM){b.MM=!0;a=this.hj[a];var c=a.request,d=_.C(this.O,_.KI,58);d&&_.T(d,4,!1)&&(d=c.getTitle().match(Rmc))&&(!d[1]||a.yu<Number(d[1].substr(1)))&&(c=c.clone(),_.sa(_.Td(c,3),"$#@! Invalid parent ID."));a=c;c=(c=b.request.Ez())?_.B(c,1)||0:0;var e=b.file&&b.file.size||c;c=this.O.$f();d=_.gk(c,33,1048576);d=b.file&&b.file&&e>d?2:b.file?1:3;if(this.ta&&3!==d){var f=this.ta.H(106012);if(f){b.fla=f;f=tjc(f);f=_.y(f,1,2===d?2:1);f=_.y(f,4,!!b.metadata);
var h=!!_.B(a,12);f=_.y(f,5,h);e=_.y(f,6,e);c=_.gk(c,32,1073741824);_.y(e,7,c)}}switch(d){case 2:b.file&&Smc(this,new _.Kgc(a,b.file,b.iQ,b.metadata),b.og,a.aj());break;case 1:b.file&&(c=b.og,d=b.file,e=b.metadata,b=b.iQ,f=_.C(this.O,_.Xhc,2),Smc(this,new _.EJ(a,d,b,f&&_.ZJ(f)?e:void 0),c,a.aj()));break;case 3:Smc(this,a,b.og,a.aj());break;default:throw new _.qc("Upload type ${uploadType} not supported.");}}};
var Smc=function(a,b,c,d){$jc(a.Ba,d,a.ma.bind(a,d));_.Wh(a.W.then(function(e){return e.Ue(b,{requestId:d})}).then(null,function(e){return Tmc(a,b,e)}),function(){akc(a.Ba,[d])}).then(c.callback,c.Jd,c)},Tmc=function(a,b,c){var d=_.uB(c),e=b instanceof _.EJ&&b.request.Cc()||"";c=d.Sg;if(e&&8===c.lk()){a.log("Create failed with 409 Conflict, re-querying: "+e);var f=_.qA(new _.oA,[e]);return _.ci(a.W.then(function(h){return h.Ue(f)}).then(function(h){h=h.od().Bd()[0];var k=b.request;if(h&&!h.Uh()&&
(h.getMimeType()||"").replace(/\s/g,"")===(k.getMimeType()||"").replace(/\s/g,"")&&h.getTitle()===k.getTitle())return a.log("Matching item found for: "+e),_.Hic((new _.HJ).setItem(h),e).Dc(1);a.log("No matching item found for: "+e);return _.Th(d)}))}return _.di(d)};_.g=_.NK.prototype;
_.g.cancel=function(a){var b=this,c=this.hj[a];if(c&&(!c.xE||0!==c.children.length))if(c.xE=!0,c.og.ag())this.log('[Cancel] Response for "'+c.request.getTitle()+'" already received. Cannot cancel.'+(c.children.length?" Attempting to cancel children.":"")),_.Ja(c.children,this.cancel,this);else{var d=c.fla;d&&(yic(xic(zic(tjc(d),c.yu),!1),2),d.Yj());var e=_.Vh();c.MM?this.W.then(function(f){return void e.resolve(f.cancel(a))}):(c.MM=!0,c.og.callback(Qgc(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.jG=function(){var a=this;_.Ma(this.hj,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.hj[f]){var h=[];do{h.push(f);var k=(_.Td(b.hj[f].request,10)||[])[0];if(k){var l=b.hj[k];if(l.success||!l.og.ag()||e[k])break;else if(!c.has(k)){e[f]=new _.qc("Unable to retry request due to failed parent upload.");break}}f=k}while(f);_.la(h,function(p){var q=b.hj[p];q.yu++;if(!e[p])if(!q.og.ag()||q.success)e[p]=new _.qc("Unable to retry request.");else{var r=(_.Td(q.request,10)||[])[0];e[r]instanceof _.qc?
e[p]=e[r]:(q.og=Nmc(b,p),q.MM=!1,q.xE=!1,(r=r?b.hj[r]:null)?Omc(b,p,r,!0):d.push(p),e[p]=q.og.Wm())}})}else e[f]=new _.qc("Retry request with unknown ID.")});a=a.map(function(f){f=e[f];return f instanceof _.Xh?f:_.di(f)});_.Ja(d,this.ka,this);return a};_.g.log=function(){this.isDisposed()};_.g.ud=function(a){return this.hj[a]};var Rmc=/^uploadTestFailMe(\.[1-9])?$/,Qmc=new Map([[2,12],[5,1],[27,3],[29,4],[30,5],[31,6],[35,7],[36,8],[37,9],[38,10],[25,11]]),Pmc=new Map([[3,14]]);

_.w();

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

_.w();

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

_.w();

}catch(e){_._DumpException(e)}
try{
var Umc;Umc=[1];_.OK=function(a){_.K.call(this,a,-1,Umc)};_.N(_.OK,_.K);_.OK.prototype.O=function(){return _.Td(this,1)};_.t("sy1nd");
var Vmc;_.PK=function(a){_.K.call(this,a,-1,Vmc)};_.N(_.PK,_.K);_.PK.prototype.Bb=function(){return _.B(this,1)};_.PK.prototype.Dc=function(a){return _.y(this,1,a)};_.PK.prototype.mj=function(){return _.bk(this,_.dl,2)};_.Wmc=function(a,b){return _.Wj(a,2,b)};_.PK.prototype.yq=function(a,b){return _.dk(this,2,a,_.dl,b)};_.PK.prototype.Wf=function(){return _.B(this,4)};_.Xmc=function(a,b){return _.y(a,4,b)};Vmc=[2];

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1nc");
_.UVb=function(a){_.K.call(this,a)};_.N(_.UVb,_.K);_.UVb.prototype.Li=function(){return _.B(this,3)};_.UVb.prototype.ui=function(a){return _.y(this,3,a)};_.UVb.prototype.xe=function(){return _.C(this,_.tf,5)};_.UVb.prototype.getCustomer=function(){return _.B(this,6)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.QK=function(a,b){_.y(a,1,b)};_.t("sy1nh");

_.w();

}catch(e){_._DumpException(e)}
try{
_.Zmc=function(a){return _.ue(a).Mg(_.T(a.get(_.ep),19,!1)?Ymc:_.se)};_.t("sy1nj");
var Ymc=[9,42,41,44,38,20,21,16,12,3,10,11,18,14,32,1,67,68,210,7,24,25,159,154,158,155,55,4,83,19,2,6,27];

_.w();

}catch(e){_._DumpException(e)}
try{
var $mc,anc,bnc,cnc,dnc,enc,fnc,hnc,inc,jnc,knc,lnc,nnc,onc,pnc,qnc,rnc,TK,wnc,xnc,UK,VK,ync,znc,Bnc,Cnc,Dnc,Enc,Fnc,Hnc,Inc,Jnc,Knc,Lnc,Mnc,Nnc,Pnc,Rnc,Ync,$nc,coc,doc,goc,joc,ZK,koc,loc,moc,noc,ooc,poc,qoc,toc,soc,woc,yoc,Aoc,Coc,Goc,Ioc,Joc,Koc,Loc,Moc,Noc,Roc,Toc,Uoc,Voc,RK,Woc,Xoc,tnc,snc,unc,vnc,oqc,pqc,cL,eL,sqc,Gqc,Jqc,Kqc,Lqc,Oqc,roc,lrc,mrc,nrc,orc,qrc,rrc,src,trc,fL,urc,gL,vrc,wrc,xrc,yrc,zrc,Arc,Brc,Crc,Drc,Erc,Frc,Grc,hL,Prc,Yrc,Wsc,Xsc,Zsc,$sc,otc,ptc,wtc,Gtc,Ytc,duc,kuc,muc,ruc,xuc,
Ouc,Puc,Suc,Uuc,dvc,pvc,rvc,svc,yvc,zvc,Avc,Foc,Bvc,wwc,Unc,xwc,Awc,LAc,MAc,NAc,OAc,PAc,QAc,RAc,SAc,TAc,UAc;$mc=function(a){a={Title:a.getTitle(),Type:a.getMimeType(),Parents:_.Td(a,3),Convert:_.S(a,8),ID:a.aj()};var b=[];_.Ma(a,function(c,d){c&&b.push(d+": "+c)});return b.join("; ")};
anc=function(a){var b=[];b.push($mc(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.yu&&b.push("# of retries by client: "+a.yu);var d="";a.MM?a.og.ag()?a.og.hg(function(){d="Completed successfully."},function(e){d=e instanceof _.Yh?"Canceled.":"Completed with failure. See attachment."}):d="In progress.":d="Not yet executed.";b.push("State: "+
d);return b.join("\n")};
bnc=function(a,b,c,d,e,f){var h=_.wt("Drive Upload Report: %d/%d failed",_.Qa(f),_.Qa(e));a=a.$f();d.push("Batch query interval: "+_.gk(a,12,10)+"ms");d.push("Max resumable upload chunk size: "+_.gk(a,32,1073741824)/1024/1024+" MiB");d.push("Max batch upload file size: "+_.gk(a,33,1048576)/1024/1024+" MiB");d.push("Max files in an upload batch: "+_.gk(a,35,10)+" files");d.push("Max files in a non-upload batch: "+_.gk(a,10,50)+" files");d=d.join("\n");var k=[],l=[];_.Ma(e,function(p){l.push(anc(p))});k.push({name:"AllUploadRequests.txt",
content:l.join("\n---------\n")});k.push({name:"DataserviceLogs.txt",content:_.Vic(b)});_.Ma(f,function(p,q){var r=k.push;q=e[q].request;q=_.wt('ErrorResponseFor"%s"(ID:%s).txt',q.getTitle()||"",q.aj()||"");var v=p.Sg;v=v?_.B(v,4):"No detail.";r.call(k,{name:q,content:p.toString()+"\n"+v})});return{title:h,description:d,XP:k,xd:152391,S8:c,d0:361003}};cnc=function(a){return Array.prototype.concat.apply([],arguments)};dnc=function(a,b,c){c=_.Ga(a,b,c);return 0>c?(_.Ba(a,-(c+1),0,b),!0):!1};
enc=function(a){return String.fromCharCode(10>a?48+a:87+a)};fnc=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]=enc(d>>4);b[2*c+3]=enc(d&15)}return b.join("")};hnc=function(a,b){var c=new _.OK,d=new Set;if(6===a){a=_.m(b);for(b=a.next();!b.done;b=a.next())(b=b.value)?(b=_.l7a.get(b.hv()))&&d.add(b):d.add(1);0===d.size&&d.add(0)}gnc(c,[].concat(_.od(d)));return c};
inc=function(a){var b=[],c={};a=_.m(a);for(var d=a.next();!d.done;c={Hea:c.Hea},d=a.next())if(d=d.value){c.Hea=new Map;[].concat(_.od(_.el(d)),[d.xm(),d.Pt(),d.Fq()]).forEach(function(p){return function(q){q&&p.Hea.set(RK(q),q)}}(c));for(var e=[],f=_.m(c.Hea.values()),h=f.next();!h.done;h=f.next())if(h=h.value){var k=h.getName(),l=h.getEmail();e.push(RK(h)+"-"+((k?k.length:k)+"-")+((l?l.length:l)+"-")+_.Lk(h))}b.push(d.getId()+","+d.hv()+","+(e.length?e.join(","):"-"))}return b.length?"People: "+
b.join("|"):""};jnc=function(a){var b=new _.So;b.append("kind,largestChangeId,nextPageToken,");b.append("items(deleted,fileId,id,kind,");b.append(_.RI(a,!0,"file"));a.c7&&(b.append(",teamDriveId,teamDrive("),b.append(a.c7),b.append(")"));b.append(")");return b.toString()};knc=function(a){var b=new _.So;b.append("kind,nextPageToken,items(");b.append(_.RI(a,!0));b.append("),incompleteSearch");a.c7&&(b.append(","),b.append(a.c7));return b.toString()};
lnc=function(a,b){for(var c=0;c<b.length;c++){var d=a,e=b[c],f=d.getCapabilities(),h=_.C(d,_.RJ,138),k=_.C(d,_.$k,111),l=_.C(d,_.SJ,27),p=_.jl(d),q=d.Pf(),r=d.yg(),v=_.C(d,_.UJ,103);switch(e){case 227:_.Uj(d,144);break;case 228:_.Uj(d,145);break;case 74:_.Xj(d,83);break;case 188:_.Uj(d,137);break;case 149:_.WH(d,128);break;case 148:_.Xj(d,127);break;case 138:_.Uj(d,126);break;case 184:_.WH(d,135);break;case 76:f&&_.Uj(f,1);break;case 223:f&&_.Uj(f,54);break;case 208:f&&_.Uj(f,48);break;case 185:f&&
_.Uj(f,40);break;case 224:f&&_.Uj(f,55);break;case 213:f&&_.Uj(f,50);break;case 156:f&&_.Uj(f,39);break;case 61:f&&_.Uj(f,2);break;case 216:f&&_.Uj(f,52);break;case 217:f&&_.Uj(f,53);break;case 77:f&&_.Uj(f,4);break;case 134:f&&_.Uj(f,34);break;case 147:f&&_.Uj(f,38);break;case 81:f&&_.Uj(f,10);break;case 82:f&&_.Uj(f,11);break;case 114:f&&_.Uj(f,27);break;case 133:f&&_.Uj(f,33);break;case 202:f&&_.Uj(f,47);break;case 132:f&&_.Uj(f,32);break;case 101:f&&_.Uj(f,20);break;case 201:f&&_.Uj(f,46);break;
case 131:f&&_.Uj(f,31);break;case 200:f&&_.Uj(f,45);break;case 130:f&&_.Uj(f,30);break;case 93:f&&_.Uj(f,17);break;case 191:f&&_.Uj(f,44);break;case 146:f&&_.Uj(f,37);break;case 90:f&&_.Uj(f,16);break;case 78:f&&_.Uj(f,7);break;case 186:f&&_.Uj(f,41);break;case 222:f&&_.Uj(f,51);break;case 85:f&&_.Uj(f,12);break;case 137:f&&_.Uj(f,36);break;case 209:f&&_.Uj(f,49);break;case 79:f&&_.Uj(f,8);break;case 189:f&&_.Uj(f,42);break;case 190:f&&_.Uj(f,43);break;case 80:f&&_.Uj(f,9);break;case 135:f&&_.Uj(f,
35);break;case 102:f&&_.Uj(f,21);break;case 69:_.Uj(d,74);break;case 194:h&&_.Vj(h,2);break;case 193:h&&_.Uj(h,1);break;case 1004:_.Uj(d,108);break;case 136:_.Xj(d,125);break;case 115:k&&_.Uj(k,1);break;case 116:k&&_.Uj(k,2);break;case 34:_.Uj(d,30);f&&_.Uj(f,3);break;case 9:_.Uj(d,10);break;case 91:_.Vj(d,91);break;case 43:_.Uj(d,42);_.Uj(d,43);break;case 187:_.Uj(d,136);break;case 26:_.Uj(d,24);break;case 108:_.WH(d,104);break;case 41:_.Uj(d,40);f&&_.Uj(f,5);break;case 42:_.Uj(d,41);break;case 1005:_.Xj(d,
117);break;case 59:f&&_.Uj(f,6);break;case 28:_.Uj(d,26);break;case 44:_.Uj(d,45);break;case 13:_.Uj(d,14);break;case 48:_.Uj(d,36);break;case 38:_.Uj(d,34);break;case 49:_.WH(d,50);break;case 51:_.Uj(d,53);break;case 104:_.Uj(d,102);break;case 39:_.Uj(d,35);break;case 87:_.Uj(d,76);break;case 100:_.Uj(d,98);break;case 72:_.Uj(d,78);break;case 5:_.Uj(d,6);break;case 20:_.Uj(d,21);break;case 21:break;case 29:l&&_.Uj(l,1);break;case 31:l&&_.Uj(l,3);break;case 92:l&&_.Uj(l,4);break;case 30:l&&_.Uj(l,
2);break;case 16:_.Vj(d,17);break;case 12:_.Uj(d,13);break;case 211:p&&_.Uj(p,2);break;case 212:p&&_.Uj(p,3);break;case 220:p&&_.Uj(p,5);break;case 157:r&&_.Xj(r,8);break;case 3:_.Uj(d,4);break;case 11:_.Uj(d,12);break;case 10:_.Uj(d,11);break;case 50:_.Uj(d,49);_.Uj(d,51);_.Vj(d,81);break;case 18:_.Uj(d,19);break;case 95:_.Uj(d,93);break;case 58:_.Uj(d,63);break;case 14:_.Xj(d,15);break;case 103:_.Uj(d,101);break;case 1:_.WH(d,2);break;case 96:_.Uj(d,94);break;case 1003:_.Xj(d,107);break;case 75:_.Vj(d,
85);break;case 94:_.Uj(d,92);break;case 45:_.Uj(d,46);break;case 124:_.Uj(d,118);break;case 125:_.Uj(d,119);break;case 1002:_.Vj(d,100);break;case 32:_.Uj(d,28);break;case 67:_.Uj(d,70);break;case 68:_.Uj(d,71);break;case 73:_.Uj(d,79);break;case 71:_.Uj(d,77);break;case 221:r&&_.Uj(r,9);break;case 210:_.Uj(d,140);break;case 7:_.Uj(d,8);break;case 122:_.Vj(d,109);break;case 66:_.Uj(d,69);break;case 33:_.Uj(d,29);break;case 24:_.Uj(d,22);break;case 25:_.Uj(d,23);break;case 46:_.Vj(d,47);break;case 192:q&&
_.Uj(q,6);break;case 159:q&&_.Vj(q,5);break;case 154:q&&_.Uj(q,1);break;case 158:q&&_.Uj(q,4);break;case 155:q&&_.Uj(q,3);break;case 52:_.WH(d,56);break;case 56:_.Uj(d,61);break;case 55:_.Xj(d,60);break;case 4:_.Uj(d,5);break;case 35:_.Uj(d,31);break;case 57:_.Uj(d,62);break;case 83:_.Uj(d,72);break;case 84:_.Vj(d,86);break;case 19:_.Uj(d,20);_.Uj(d,44);_.Uj(d,90);break;case 2:_.Uj(d,3);break;case 6:_.Uj(d,7);break;case 98:_.Uj(d,96);break;case 97:_.Vj(d,95);break;case 27:_.Uj(d,25);break;case 70:_.Uj(d,
75);break;case 107:v&&_.Uj(v,3);break;case 106:v&&_.Uj(v,2);break;case 105:v&&_.Uj(v,1);break;case 8:_.Uj(d,9);break;case 126:_.WH(d,120);break;default:throw Error("Pc`"+e);}}};nnc=function(a,b){if(0!=a.length){var c=new Set([].concat(_.od(a),_.od(mnc)));a=[].concat(_.od(_.zdb.keys())).filter(function(e){return!c.has(e)});for(var d=0;d<b.length;d++)lnc(b[d],a)}};
onc=function(a,b){var c=a.getCapabilities()||new _.Yk,d=_.C(a,_.RJ,138),e=_.C(a,_.$k,111),f=_.C(a,_.SJ,27),h=_.jl(a),k=a.Pf(),l=a.yg(),p=_.C(a,_.UJ,103);switch(b){case 227:return null!=_.S(a,144);case 228:return null!=_.B(a,145);case 74:return 0<a.Zt().length;case 188:return null!=_.S(a,137);case 149:return 0<_.Td(a,128).length;case 148:return 0<a.Cya().length;case 138:return null!=a.a9();case 184:return 0<_.Td(a,135).length;case 76:return null!=_.Zk(c);case 223:return null!=_.S(c,54);case 208:return null!=
_.S(c,48);case 185:return null!=_.S(c,40);case 224:return null!=_.S(c,55);case 213:return null!=_.S(c,50);case 156:return null!=_.S(c,39);case 61:return null!=_.S(c,2);case 216:return null!=_.S(c,52);case 217:return null!=_.S(c,53);case 77:return null!=_.S(c,4);case 134:return null!=_.S(c,34);case 147:return null!=_.S(c,38);case 81:return null!=_.S(c,10);case 82:return null!=_.S(c,11);case 114:return null!=_.S(c,27);case 133:return null!=_.S(c,33);case 202:return null!=_.S(c,47);case 132:return null!=
_.S(c,32);case 101:return null!=_.S(c,20);case 201:return null!=_.S(c,46);case 131:return null!=_.S(c,31);case 200:return null!=_.S(c,45);case 130:return null!=_.S(c,30);case 93:return null!=_.S(c,17);case 191:return null!=_.S(c,44);case 146:return null!=_.S(c,37);case 90:return null!=_.qe(c);case 78:return null!=_.S(c,7);case 186:return null!=_.S(c,41);case 222:return null!=_.S(c,51);case 85:return null!=_.S(c,12);case 137:return null!=_.S(c,36);case 209:return null!=_.S(c,49);case 79:return null!=
_.S(c,8);case 189:return null!=_.S(c,42);case 190:return null!=_.S(c,43);case 80:return null!=_.S(c,9);case 135:return null!=_.S(c,35);case 102:return null!=_.S(c,21);case 69:return null!=_.S(a,74);case 194:return null!=d&&null!=_.C(d,_.zhc,2);case 193:return null!=d&&null!=_.B(d,1);case 1004:return null!=_.S(a,108);case 136:return 0<a.W0().length;case 115:return null!=e&&null!=_.S(e,1);case 116:return null!=e&&null!=_.B(e,2);case 34:return null!=_.S(a,30)||null!=_.S(c,3);case 9:return null!=a.QC();
case 91:return null!=a.Fq();case 43:return null!=_.B(a,42)||null!=_.B(a,43);case 187:return null!=a.$k();case 26:return null!=a.He();case 108:return 0<_.Td(a,104).length;case 41:return null!=_.S(c,5);case 42:return null!=_.B(a,41);case 1005:return 0<_.il(a).length;case 59:return null!=_.S(c,6);case 28:return null!=a.MI();case 44:return null!=_.B(a,45);case 13:return null!=a.TF();case 48:return null!=_.S(a,36);case 38:return null!=a.Wi();case 49:return 0<_.Td(a,50).length;case 51:return null!=_.S(a,
53);case 104:return null!=_.S(a,102);case 39:return null!=a.Qja();case 87:return null!=_.fl(a);case 100:return null!=_.S(a,98);case 72:return null!=_.B(a,78);case 5:return null!=_.S(a,6);case 20:return null!=a.Ve();case 21:return null!=a.getId();case 29:return!(!f||null==_.B(f,1));case 31:return!(!f||null==_.B(f,3));case 92:return!(!f||null==_.B(f,4));case 30:return!(!f||null==f.Ie());case 16:return null!=a.xm();case 12:return null!=a.ez();case 211:return null!=h&&null!=_.S(h,2);case 212:return null!=
h&&null!=_.S(h,3);case 220:return null!=h&&null!=_.S(h,5);case 157:return!(!l||!_.bk(l,_.cl,8));case 3:return null!=a.getMimeType();case 11:return null!=a.hB();case 10:return null!=a.wq();case 50:return null!=_.S(a,49)||null!=_.S(a,51)||null!=a.Om();case 18:return null!=a.gq();case 14:return 0<_.el(a).length;case 95:return null!=a.Pl();case 58:return null!=_.S(a,63);case 103:return null!=_.B(a,101);case 1:return 0<a.kk().length;case 96:return null!=_.S(a,94);case 1003:return 0<_.hl(a).length;case 75:return null!=
a.Wv();case 94:return null!=a.mN();case 45:return null!=a.uw();case 124:return null!=_.S(a,118);case 125:return null!=_.B(a,119);case 1002:return null!=_.gl(a);case 32:return null!=a.Pu();case 67:return null!=a.QJ();case 68:return null!=_.B(a,71);case 73:return null!=_.B(a,79);case 71:return null!=a.A1();case 221:return null!=l&&null!=_.S(l,9);case 210:return null!=_.kl(a);case 7:return null!=a.N6();case 122:return null!=_.SK(a);case 66:return null!=_.B(a,69);case 33:return null!=_.S(a,29);case 24:return null!=
a.Fj();case 25:return null!=a.oy();case 46:return null!=a.Pt();case 192:return null!=k&&null!=_.S(k,6);case 159:return null!=k&&null!=_.Xd(k);case 154:return null!=k&&null!=_.B(k,1);case 158:return null!=k&&null!=_.$d(k);case 155:return null!=k&&null!=_.B(k,3);case 52:return 0<_.Td(a,56).length;case 55:return 0<a.oB().length;case 56:return null!=_.B(a,61);case 4:return null!=a.UA();case 35:return null!=_.S(a,31);case 57:return null!=_.B(a,62);case 83:return null!=a.Ac();case 84:return null!=_.C(a,
_.TJ,86);case 2:return null!=a.getTitle();case 19:return null!=a.Px()||null!=_.S(a,44)||null!=_.B(a,90);case 6:return null!=a.Uh();case 98:return null!=a.Xv();case 97:return null!=a.fD();case 27:return null!=a.$o();case 70:return null!=a.zi();case 107:return null!=p&&null!=_.B(p,3);case 106:return null!=p&&null!=_.B(p,2);case 105:return null!=p&&null!=p.Ie();case 8:return null!=_.S(a,9);case 126:return 0<_.Td(a,120).length;default:throw Error("Qc`"+b);}};
pnc=function(a,b){return b.every(function(c){return onc(a,c)})};qnc=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)})};rnc=function(a,b){var c=new Set(b.concat(_.ogc));return a.filter(function(d){return!c.has(d)})};
TK=function(a,b,c){b=b.clone();var d=b.getCapabilities();c.forEach(function(e){if(onc(b,e))if(_.Ddb.has(e)){if(d){var f=a.getCapabilities()||new _.Yk;_.WJ(a,f);switch(e){case 76:_.dhc(f,_.Zk(d));break;case 223:var h=_.S(d,54);_.y(f,54,h);break;case 208:_.yhc(f,_.S(d,48));break;case 185:var k=_.S(d,40);_.y(f,40,k);break;case 224:var l=_.S(d,55);_.y(f,55,l);break;case 213:var p=_.S(d,50);_.y(f,50,p);break;case 156:var q=_.S(d,39);_.y(f,39,q);break;case 61:var r=_.S(d,2);_.y(f,2,r);break;case 216:var v=
_.S(d,52);_.y(f,52,v);break;case 217:var z=_.S(d,53);_.y(f,53,z);break;case 77:_.ehc(f,_.S(d,4));break;case 134:var A=_.S(d,34);_.y(f,34,A);break;case 147:var D=_.S(d,38);_.y(f,38,D);break;case 81:_.khc(f,_.S(d,10));break;case 82:_.lhc(f,_.S(d,11));break;case 114:var G=_.S(d,27);_.y(f,27,G);break;case 133:_.thc(f,_.S(d,33));break;case 202:_.xhc(f,_.S(d,47));_.shc(f,_.S(d,32));break;case 132:_.shc(f,_.S(d,32));break;case 101:_.phc(f,_.S(d,20));break;case 201:_.whc(f,_.S(d,46));break;case 131:_.rhc(f,
_.S(d,31));break;case 200:var H=_.S(d,45);_.y(f,45,H);break;case 130:var L=_.S(d,30);_.y(f,30,L);break;case 93:_.ohc(f,_.S(d,17));break;case 191:var M=_.S(d,44);_.y(f,44,M);break;case 146:var R=_.S(d,37);_.y(f,37,R);break;case 90:_.nhc(f,_.qe(d));break;case 78:_.hhc(f,_.S(d,7));break;case 186:var ba=_.S(d,41);_.y(f,41,ba);break;case 222:var ka=_.S(d,51);_.y(f,51,ka);break;case 85:_.mhc(f,_.S(d,12));break;case 137:var ja=_.S(d,36);_.y(f,36,ja);break;case 209:var ya=_.S(d,49);_.y(f,49,ya);break;case 79:_.ihc(f,
_.S(d,8));break;case 189:_.uhc(f,_.S(d,42));break;case 190:_.vhc(f,_.S(d,43));break;case 80:_.jhc(f,_.S(d,9));break;case 135:var fa=_.S(d,35);_.y(f,35,fa);break;case 102:_.qhc(f,_.S(d,21));break;case 34:var Va=_.S(b,30);_.y(a,30,Va);var Ka=_.S(d,3);_.y(f,3,Ka);break;case 41:var ob=_.S(b,40);_.y(a,40,ob);_.fhc(f,_.S(d,5));break;case 59:_.ghc(f,_.S(d,6))}}}else if(_.Edb.has(e)){var Ya=_.C(b,_.RJ,138);if(Ya){var yb=_.C(a,_.RJ,138)||new _.RJ;_.J(a,138,yb);switch(e){case 194:var Zb=_.C(Ya,_.zhc,2);_.J(yb,
2,Zb);break;case 193:var Fc=_.B(Ya,1);_.y(yb,1,Fc)}}}else if(_.Fdb.has(e)){var Zd=_.C(b,_.$k,111);if(Zd){var Gd=_.C(a,_.$k,111)||new _.$k;_.J(a,111,Gd);switch(e){case 115:_.Ahc(Gd,_.S(Zd,1));break;case 116:_.Bhc(Gd,_.B(Zd,2))}}}else if(_.Gdb.has(e)){var qd=_.C(b,_.SJ,27);if(qd){var kf=_.C(a,_.SJ,27)||new _.SJ;_.J(a,27,kf);switch(e){case 29:var ud=_.B(qd,1);_.y(kf,1,ud);break;case 31:kf.zh(_.B(qd,3));break;case 92:var Eb=_.B(qd,4);_.y(kf,4,Eb);break;case 30:kf.Ah(qd.Ie())}}}else if(_.Hdb.has(e)){var oe=
_.jl(b);if(oe){var ng=_.jl(a)||new _.Wna;_.J(a,139,ng);switch(e){case 211:var ye=_.S(oe,2);_.y(ng,2,ye);break;case 212:var ii=_.S(oe,3);_.y(ng,3,ii);break;case 220:var Pf=_.S(oe,5);_.y(ng,5,Pf)}}}else if(_.Idb.has(e)){var pi=b.Pf();if(pi){var Ig=a.Pf()||new _.eoa;_.J(a,132,Ig);switch(e){case 192:var jm=_.S(pi,6);_.y(Ig,6,jm);break;case 159:var bf=_.Xd(pi);_.J(Ig,5,bf);break;case 154:var Oe=_.B(pi,1);_.y(Ig,1,Oe);break;case 158:var Xg=_.$d(pi);_.y(Ig,4,Xg);break;case 155:var qi=_.B(pi,3);_.y(Ig,3,
qi)}}}else if(_.Jdb.has(e)){var mj=b.yg();switch(e){case 157:if(mj){var km=a.yg()||new _.coa;snc(a,km);tnc(km,_.bk(mj,_.cl,8))}break;case 221:if(mj){var Sn=a.yg()||new _.coa;snc(a,Sn);var lm=_.S(mj,9);_.y(Sn,9,lm)}}}else if(_.Kdb.has(e)){var Ci=_.C(b,_.UJ,103);if(Ci){var Jm=_.C(a,_.UJ,103)||new _.UJ;_.J(a,103,Jm);switch(e){case 107:var Aj=_.B(Ci,3);_.y(Jm,3,Aj);break;case 106:Jm.zh(_.B(Ci,2));break;case 105:Jm.Ah(Ci.Ie())}}}else switch(e){case 227:var zg=_.S(b,144);_.y(a,144,zg);break;case 228:var Bj=
_.B(b,145);_.y(a,145,Bj);break;case 74:var lk=b.Zt();_.Wj(a,83,lk);break;case 188:var Cj=_.S(b,137);_.y(a,137,Cj);break;case 149:var Mi=_.Td(b,128);_.Qj(a,128,Mi);break;case 148:var mk=b.Cya();_.Wj(a,127,mk);break;case 138:var Rj=b.a9();_.y(a,126,Rj);break;case 184:var Ni=_.Td(b,135);_.Qj(a,135,Ni);break;case 69:var aj=_.S(b,74);_.y(a,74,aj);break;case 1004:var Lh=_.S(b,108);_.y(a,108,Lh);break;case 136:var Rk=b.W0();_.Wj(a,125,Rk);break;case 9:var Dj=b.QC();_.y(a,10,Dj);break;case 91:_.Shc(a,b.Fq());
break;case 43:var Ej=_.B(b,42);_.y(a,42,Ej);var Sj=_.B(b,43);_.y(a,43,Sj);break;case 187:_.Whc(a,b.$k());break;case 26:a.Ul(b.He());break;case 108:var Tj=_.Td(b,104);_.Qj(a,104,Tj);break;case 42:var Km=_.B(b,41);_.y(a,41,Km);break;case 1005:var nk=_.il(b);_.Wj(a,117,nk);break;case 28:_.Khc(a,b.MI());break;case 44:var ok=_.B(b,45);_.y(a,45,ok);break;case 13:var xf=b.TF();_.y(a,14,xf);break;case 48:var Fj=_.S(b,36);_.y(a,36,Fj);break;case 38:_.Mhc(a,b.Wi());break;case 49:var Lm=_.Td(b,50);_.Qj(a,50,
Lm);break;case 51:var Mm=_.S(b,53);_.y(a,53,Mm);break;case 104:var pn=_.S(b,102);_.y(a,102,pn);break;case 39:var Oi=b.Qja();_.y(a,35,Oi);break;case 87:var pk=_.fl(b);_.y(a,76,pk);break;case 100:var yc=_.S(b,98);_.y(a,98,yc);break;case 72:var qk=_.B(b,78);_.y(a,78,qk);break;case 5:var gh=_.S(b,6);_.y(a,6,gh);break;case 20:var Tg=b.Ve();_.y(a,21,Tg);break;case 21:a.Ob(b.getId());break;case 16:_.Ihc(a,b.xm());break;case 12:var Ve=b.ez();_.y(a,13,Ve);break;case 3:_.hG(a,b.getMimeType());break;case 11:var Nm=
b.hB();_.y(a,12,Nm);break;case 10:_.SVb(a,b.wq());break;case 50:var Om=_.S(b,49);_.y(a,49,Om);var qh=_.S(b,51);_.y(a,51,qh);var bj=b.Om();_.J(a,81,bj);break;case 95:_.Uhc(a,b.Pl());break;case 18:_.Jhc(a,b.gq());break;case 58:var pl=_.S(b,63);_.y(a,63,pl);break;case 14:_.Hhc(a,_.el(b));break;case 1:_.VJ(a,b.kk());break;case 96:var Mh=_.S(b,94);_.y(a,94,Mh);break;case 103:var qn=_.B(b,101);_.y(a,101,qn);break;case 1003:unc(a,_.hl(b));break;case 75:_.Rhc(a,b.Wv());break;case 94:_.Thc(a,b.mN());break;
case 45:var Tn=b.uw();_.y(a,46,Tn);break;case 124:var rn=_.S(b,118);_.y(a,118,rn);break;case 125:var Sk=_.B(b,119);_.y(a,119,Sk);break;case 1002:var Tk=_.gl(b);_.J(a,100,Tk);break;case 32:var Ho=b.Pu();_.y(a,28,Ho);break;case 67:var yq=b.QJ();_.y(a,70,yq);break;case 68:var Yo=_.B(b,71);_.y(a,71,Yo);break;case 73:var Nq=_.B(b,79);_.y(a,79,Nq);break;case 71:var fj=b.A1();_.y(a,77,fj);break;case 210:var ym=_.kl(b);_.y(a,140,ym);break;case 7:_.Ghc(a,b.N6());break;case 122:vnc(a,_.SK(b));break;case 66:var Op=
_.B(b,69);_.y(a,69,Op);break;case 33:var Pp=_.S(b,29);_.y(a,29,Pp);break;case 24:var Kr=b.Fj();_.y(a,22,Kr);break;case 25:var dx=b.oy();_.y(a,23,dx);break;case 46:_.Ohc(a,b.Pt());break;case 52:var Oq=_.Td(b,56);_.Qj(a,56,Oq);break;case 56:var Lr=_.B(b,61);_.y(a,61,Lr);break;case 55:a.xA(b.oB());break;case 4:a.Ev(b.UA());break;case 35:_.Lhc(a,_.S(b,31));break;case 57:var VA=_.B(b,62);_.y(a,62,VA);break;case 83:_.Qhc(a,b.Ac());break;case 84:var tD=_.C(b,_.TJ,86);_.J(a,86,tD);break;case 98:a.Kca(b.Xv());
break;case 97:_.Vhc(a,b.fD());break;case 19:var WA=b.Px();_.y(a,20,WA);_.Nhc(a,_.S(b,44));var XA=_.B(b,90);_.y(a,90,XA);break;case 2:a.setTitle(b.getTitle());break;case 6:a.Mn(b.Uh());break;case 27:_.TVb(a,b.$o());break;case 70:var Ky=b.zi();_.y(a,75,Ky);break;case 8:var Pq=_.S(b,9);_.y(a,9,Pq);break;case 126:var Mr=_.Td(b,120);_.Qj(a,120,Mr);break;default:throw Error("Rc`"+e);}})};wnc=function(a,b){var c=_.rz[a];return b.filter(function(d){return!c||!c.has(d)})};
xnc=function(a,b,c){a=wnc(c,a);return qnc(b,a,_.ogc)};UK=function(a){return a?"application/vnd.google-apps.shortcut"===a.getMimeType():!1};VK=function(a,b){b=void 0===b?!1:b;if(!a)return!1;var c=a.getMimeType();return b&&UK(a)?(a=a.Pf(),!!a&&"application/vnd.google-apps.folder"===_.B(a,3)):"application/vnd.google-apps.folder"===c};ync=function(a){var b=a&&a.getId()||null;a&&UK(a)&&(a=(a=a.Pf())&&_.B(a,1))&&(b=a);return b};znc=function(a){return!!_.S(a,31)&&!_.S(a,94)};
Bnc=function(a){return Anc.some(function(b){return onc(a,b)})};Cnc=function(a){return a.filter(function(b){return b}).some(function(b){return[4,5,2].includes(b.hv())})};Dnc=function(a){return Cnc(a.filter(function(b){return b}).map(function(b){return b.getItem()}))};
Enc=function(a,b){var c={};a=_.Na(a,function(d){return!!d});b=_.Na(b,function(d){return!!d});_.Ma(a,function(d,e){var f=b[e];f?_.fk(d,f)||(d=_.n7a(4).setItem(f),c[e]=d):(d=_.n7a(2).setItem(d),c[e]=d)});_.Ma(b,function(d,e){a[e]||(d=_.n7a(1).setItem(d),c[e]=d)});return c};Fnc=function(a,b){return _.Qa(a)!==_.Qa(b)||!_.Ua(Enc(a,b))};_.Gnc=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};
Hnc=function(a,b){var c=_.Vfc(b||{}),d=new Map;a.forEach(function(e){d.set(e,c[e]||null)});return d};Inc=function(a,b){return 0<=b?!a||a<=b:!0};Jnc=function(a,b){if(b){var c=[];_.S(b,3)&&c.push("folder");var d=_.tcc()&&4===b.getType()?"title_natural":_.bfc[b.getType()];b=_.dfc[b.uf()];d&&(b&&(d+=" "+b),c.push(d));c.length&&(a.orderBy=c.join(","))}};Knc=function(a,b){var c=a.Om();c||(c=new _.Xna,b&&_.J(a,81,c));return c};
Lnc=function(a){if(VK(a))_.QK(Knc(a,!0),!0);else if(VK(a,!0)){var b=a.Pf();if(b=b&&_.Xd(b))_.QK(Knc(b,!0),!0),_.QK(Knc(a,!0),!0)}};Mnc=function(a){return!!a.Om()&&!VK(a)};Nnc=function(a){var b=[];_.Ja(a,function(c){if(3!=c.hv()){var d=c;if(null!=_.S(d,49)||null!=_.S(d,51)||null!=d.Om())c=c.clone(),_.Uj(c,49),_.Uj(c,51),_.Vj(c,81);b.push(c)}});return b};
Pnc=function(a){for(var b=0;b<a.length;b++){var c=a[b];c&&c instanceof _.K?a[b]=c.jc():c&&c instanceof _.rK?a[b]=c.jc(function(d){return d?d.jc():null}):c&&c instanceof Onc&&(a[b]=c.jc())}};Rnc=function(a){var b=a.slice(0),c=new Set(b);Qnc.forEach(function(d){c.has(d)||b.push(d)});b.sort();return b};
Ync=function(a,b,c){var d=_.C(a,Snc,66);if(d){var e=_.B(d,1),f=_.dK(a);a=_.CI(_.nI(a));e=new _.gj(e);var h=new _.gj(window.location);var k=h.O+"://"+h.H;null!=h.W&&(k+=":"+h.W);h=_.vj(k,3);_.oj(e,"co",h);h=e.Ne();!f&&0<a&&(h+="u/"+a+"/");e.Fi(h+"_/dataservice/cacheproxy");f=_.B(d,5)||"";if(_.hgc(window.location.href,e.toString())&&f)return e=Rnc(c),c=_.B(d,6),b="#"+b+"_",d=new _.fI,d.update(e.join(",")),b+=_.odc(d.digest()),c&&(b+="&jobset="+c),b=_.Cy(f+"?"+b),_.n.SharedWorker?(c=new SharedWorker(_.Sga(b),
void 0),b=new Tnc(c.port),c.port.start()):b=new Tnc(new Worker(_.Sga(b),void 0)),new Unc(new Vnc(b,!0),1,f,e);c=e.toString();b="cpiframe_"+_.$H();c=_.uh("IFRAME",{name:b,id:b,src:c});c.style.cssText=_.Mha(_.Mfc(_.Wf("display: none;")));document.body.appendChild(c);c=_.kdc(e.O,void 0,e.H,e.W).toString();return new Unc(new Vnc(Wnc(window.frames[b],c),!0),0,e.toString())}b=new Xnc;return new Unc(new Vnc(b.O,!1),2,"inline",c,new Vnc(b.H,!1))};
$nc=function(a){var b=new Znc;if(a instanceof _.SI)_.ck(b,16,WK[0],a);else if(a instanceof _.TI)_.ck(b,1,WK[0],a);else if(a instanceof _.UI)_.ck(b,2,WK[0],a);else if(a instanceof _.XK)_.ck(b,17,WK[0],a);else if(a instanceof _.XI)_.ck(b,3,WK[0],a);else if(a instanceof _.BK)_.ck(b,4,WK[0],a);else if(a instanceof _.VI)_.ck(b,5,WK[0],a);else if(a instanceof _.aJ)_.ck(b,6,WK[0],a);else if(a instanceof _.cJ)_.ck(b,7,WK[0],a);else if(a instanceof _.dJ)_.ck(b,8,WK[0],a);else if(a instanceof _.gJ)_.ck(b,9,
WK[0],a);else if(a instanceof _.wJ)_.ck(b,10,WK[0],a);else if(a instanceof _.xJ)_.ck(b,11,WK[0],a);else if(a instanceof _.yJ)_.ck(b,12,WK[0],a);else if(a instanceof _.EI)_.ck(b,13,WK[0],a);else if(a instanceof _.BJ)_.ck(b,14,WK[0],a);else if(a instanceof _.CJ)_.ck(b,15,WK[0],a);else throw new _.qc("Unsupported request type");return b};
coc=function(a){a=a.map(function(c){var d=new aoc;if(c instanceof _.SI)_.ck(d,6,YK[0],c);else if(c instanceof _.XK)_.ck(d,7,YK[0],c);else if(c instanceof _.aJ)_.ck(d,1,YK[0],c);else if(c instanceof _.wJ)_.ck(d,2,YK[0],c);else if(c instanceof _.xJ)_.ck(d,3,YK[0],c);else if(c instanceof _.EI)_.ck(d,4,YK[0],c);else if(c instanceof _.CJ)_.ck(d,5,YK[0],c);else throw new _.qc("Unsupported request type");return d});var b=new boc;_.Wj(b,1,a);return b};
doc=function(a){return _.bk(a,aoc,1).map(function(b){return _.C(b,_.SI,6)||_.C(b,_.aJ,1)||_.C(b,_.wJ,2)||_.C(b,_.xJ,3)||_.C(b,_.EI,4)||_.C(b,_.CJ,5)||_.C(b,_.XK,7)})};goc=function(a){var b=new eoc;if(a instanceof _.zD)_.ck(b,1,foc[0],a);else if(a instanceof _.CD)_.ck(b,2,foc[0],a);else throw new _.qc("Unsupported request type");return b};
joc=function(a){var b=new hoc;if(a instanceof _.YI)_.ck(b,1,ioc[0],a);else if(a instanceof _.eJ)_.ck(b,2,ioc[0],a);else if(a instanceof _.DJ)_.ck(b,3,ioc[0],a);else throw new _.qc("Unsupported request type");return b};ZK=function(a,b,c){return b?new c(JSON.parse(a)):a};koc=function(a){a={t:a.title,d:a.description,c:a.xd,fi:a.S8,dti:a.d0,a:a.XP?a.XP.map(function(b){return JSON.stringify({n:b.name,c:b.content,ct:b.contentType,ec:b.B8})}):void 0};return JSON.stringify(a)};
loc=function(a){a=JSON.parse(a);return{title:a.t,description:a.d,xd:a.c,S8:a.fi,d0:a.dti,XP:a.a?a.a.map(function(b){b=JSON.parse(b);return{name:b.n,content:b.c,contentType:b.ct,B8:b.ec}}):void 0}};moc=function(a,b,c){a=a?1:2;a=_.ed(_.dd(new _.cd,12),a);var d=(new _.gf).Mn(!0);d=_.y(d,17,!0);a=_.hf(d,a);c&&_.Il(a,c);c=new _.$ec;b&&_.bgc(c,b);return _.cgc(_.egc(new _.uI,a),c)};noc=function(a){return a.map(function(b){return b.getItem()})};
ooc=function(a){var b={};a.forEach(function(c){b[c.getId()]=c.getItem()});return b};poc=function(a,b){var c=new _.gj(_.E(b,16,"")+"/open"),d=a.getId();UK(a)&&(d=ync(a));_.oj(c,"id",d);_.oj(c,"authuser",_.CI(_.nI(b)));_.T(b,89,!1)&&_.Q(a,140)&&_.oj(c,"resourcekey",_.kl(a));return c.toString()};
qoc=function(a){_.Of("drive.DebugUtil.printFindById",function(c){a.QM(c).then(function(d){window.console.log(JSON.stringify(d))})});_.Of("drive.DebugUtil.getLogs",function(){return _.Vic(a.Sf())});_.Of("drive.DebugUtil.printLogs",function(){window.console.log(_.Vic(a.Sf()))});_.Of("drive.DebugUtil.printRequestHistory",function(){a.bR().then(function(c){c.forEach(function(d){window.console.log(_.B(d,1));window.console.log(_.B(d,2))})})});_.Of("drive.DebugUtil.getState",function(){return a.getState()});
var b=a.La();b&&_.T(b,1,!1)&&(_.Of("drive.DebugUtil.getContext",function(){return a.getContext()}),_.Of("drive.DebugUtil.setOffline",function(c){return void a.Ll(c)}))};toc=function(a,b){b.info("drive.ds.sync.api.Dump","Requesting dump stats.");b=new _.tf;_.uf(b,305);_.vf(b,!0);_.y(b,3,2);var c=new _.yD;_.J(c,1,b);roc(c,[7]);a=a.then(function(d){return d.Ue(c)}).then(soc);return _.ci(a)};
soc=function(a){a=_.bk(a,_.mp,3);var b=new uoc;a.forEach(function(c){var d=c.getKey();"corpusSize"===(d&&_.B(d,2))&&(c=_.Ug(c.Ya()),_.y(b,3,c))});return"number"===typeof _.B(b,3)?b:null};woc=function(a,b){var c=voc(a.um,b.Cc());if(c){var d=c.getItem(),e=d.Wv();if(e){var f=e.eR(),h=_.va(f,function(k){return k.getId()===_.B(b,2)});_.Dhc(e,f);h||(f=_.bk(e,_.Jk,3),_.va(f,function(k){return k.getId()===_.B(b,2)}),_.Ehc(e,f));_.Chc(e,(_.B(e,1)||1)-1);a.ql([d],c.H)}}};
yoc=function(a,b,c){if(b=voc(a.um,b.Cc())){var d=b.getItem(),e=d.Wv();if(e){if(1===c.getType()||2===c.getType()){var f=_.bk(e,_.Jk,3);f.push(c);_.Ha(f,xoc);_.Ehc(e,f)}else f=e.eR(),f.push(c),_.Ha(f,xoc),_.Dhc(e,f);_.Chc(e,(_.B(e,1)||0)+1);a.ql([d],b.H)}}};Aoc=function(a){return a.map(function(b){var c=new _.Bub;c=_.y(c,3,zoc[b.serviceName]);return _.y(c,2,Number(b.bytesUsed))})};
Coc=function(a){return(a.quotaBytesByService||[]).reduce(function(b,c){return Boc.has(c.serviceName)?b+Number(c.bytesUsed):b},0)};
Goc=function(a){var b=a.json.exportJob,c=Doc[b.status]||0,d=Number(a.json.percentDone),e=b.items?b.items.length:0;a=a.json.numFetchedFiles||0;var f=0,h=0,k=_.ef(b.archives||[],function(l){f=f+Number(l.sizeOfContents)||0;h=h+Number(l.compressedSize)||0;return l.storagePath});b=_.ef(b.failedItemInfos||[],function(l){var p=_.hG((new _.dl).Ob(l.docId).setTitle(l.title),l.mediaType);p=(new _.Eoc).setItem(p);p=_.y(p,3,l.relativePath);return _.y(p,4,l.cause)});return new Foc(c,d,k,f,h,e,a,b)};
Ioc=function(a){var b={},c=a.getKey(),d=c&&_.B(c,2);b.key=d;b.value=a.Ya();(a=c&&_.np(c))&&(b.namespace=Hoc[a]);return b};Joc=function(a){for(var b=[],c=0;c<a.length;c++)b.push(Hoc[a[c]]);return b};Koc=function(a){return"kind,defaultAppIds,items("+a+")"};Loc=function(a,b){return _.T(b,93,!1)?a+",adminSecureLinkSetting":a};Moc=function(a,b){var c;return(null===(c=_.DI(b))||void 0===c?0:_.T(c,16,!1))?a+",individual_quota_bytes_total,individual_quota_bytes_used_aggregate":a};
Noc=function(){var a=!(!_.n.IDBObjectStore||!_.n.IDBObjectStore.prototype.getAll);return!!(_.n.indexedDB||_.n.mozIndexedDB||_.n.webkitIndexedDB||_.n.moz_indexedDB)&&a};
Roc=function(a,b){var c,d;b=b.clone();if(null===(c=_.DI(b))||void 0===c?0:_.T(c,17,!1))null===(d=_.DI(b))||void 0===d?void 0:_.y(d,15,!0);_.y(b,75,1<_.n.devicePixelRatio);var e=b;var f=_.T(e,61,!1),h=_.DI(e),k=!!h&&_.T(h,10,!1);if(_.NI(_.nI(e))||!f&&!k)_.y(e,61,!1),_.Vj(e,66),h&&_.y(h,10,!1),e=!1;else{if(f){_.n.SharedWorker||(f=!1);var l=_.C(e,Snc,66);l&&_.B(l,1)||(f=!1);_.dK(e)&&!_.T(e,52,!1)&&(f=!1)}f?h&&_.y(h,10,!1):(_.y(e,61,!1),_.Vj(e,66));e=f||k}if(e)return e=_.T(b,61,!1)?3:5,a=new $K(a,b,e),
new Ooc(a);e=_.NI(_.nI(b))?2:1;a=new aL(a,b,e,void 0,void 0,void 0);return _.NI(_.nI(b))?new Poc(a):new Qoc(a)};Toc=function(a){return _.ue(a).Mg(_.T(a.get(_.ep),19,!1)?Soc:_.CVa)};Uoc=function(a,b){a.push(b>>>0&255);a.push(b>>>8&255);a.push(b>>>16&255);a.push(b>>>24&255)};Voc=function(a,b){return _.Wj(a,1,b)};RK=function(a){return _.B(a,11)};Woc=[1];Xoc=function(a){_.K.call(this,a,-1,Woc)};_.N(Xoc,_.K);Xoc.prototype.Xga=function(a){_.dk(this,1,a,_.Jk,void 0)};
var Yoc=function(a){var b=new Xoc;return _.Wj(b,1,a)},Zoc=function(a,b){return _.J(a,1,b)},$oc=function(a,b){_.Wj(a,2,b)},apc=function(a,b){_.J(a,6,b)},bpc=function(a,b){return _.ck(a,3,_.Nk[0],b)},cpc=function(a){_.K.call(this,a)};_.N(cpc,_.K);var dpc=function(a){_.K.call(this,a)};_.N(dpc,_.K);var epc=function(a){_.K.call(this,a)};_.N(epc,_.K);var fpc=function(a){_.K.call(this,a)};_.N(fpc,_.K);var gpc=function(a){_.K.call(this,a)};_.N(gpc,_.K);var hpc=function(a){_.K.call(this,a)};_.N(hpc,_.K);
var ipc=function(a){_.K.call(this,a)};_.N(ipc,_.K);var jpc=function(a){_.K.call(this,a)};_.N(jpc,_.K);var kpc=function(a){_.K.call(this,a)};_.N(kpc,_.K);var lpc=function(a){_.K.call(this,a)};_.N(lpc,_.K);var mpc=function(a){_.K.call(this,a)};_.N(mpc,_.K);var npc=function(a){_.K.call(this,a)};_.N(npc,_.K);var opc=function(a){_.K.call(this,a)};_.N(opc,_.K);var ppc=function(a){_.K.call(this,a)};_.N(ppc,_.K);
var qpc=function(a,b){_.Wj(a,1,b)},rpc=function(a,b){return _.y(a,2,b)},spc=function(a,b){return _.J(a,3,b)},tpc=function(a,b){return _.y(a,4,b)},upc=[[1,2,3,4]],vpc=function(a){_.K.call(this,a,-1,void 0,upc)};_.N(vpc,_.K);var wpc=function(a,b){_.Wj(a,1,b)},xpc=function(a,b){return _.J(a,2,b)},ypc=[[1]],zpc=function(a){_.K.call(this,a,-1,void 0,ypc)};_.N(zpc,_.K);
var Apc=function(a,b){_.Wj(a,1,b)},Bpc=function(a,b){return _.J(a,4,b)},Cpc=function(a,b){_.J(a,5,b)},Dpc=function(a,b){_.Wj(a,2,b)},Epc=function(a,b){_.Wj(a,4,b)},Fpc=function(a,b){return _.J(a,5,b)},Gpc=[[1,2]],Hpc=function(a){_.K.call(this,a,-1,void 0,Gpc)};_.N(Hpc,_.K);var Ipc=function(a,b){_.Wj(a,1,b)},Jpc=function(a,b){return _.J(a,2,b)},Kpc=[[1]],Lpc=function(a){_.K.call(this,a,-1,void 0,Kpc)};_.N(Lpc,_.K);
var Mpc=function(a,b){_.Wj(a,2,b)},Npc=function(a){var b=new _.Vk;return _.Wj(b,3,a)},Opc=[[1,2]],Ppc=function(a){_.K.call(this,a,-1,void 0,Opc)};_.N(Ppc,_.K);Ppc.prototype.Bg=function(a){return _.ck(this,1,Opc[0],a)};var Qpc=[1],Rpc=function(a){_.K.call(this,a,-1,Qpc)};_.N(Rpc,_.K);Rpc.prototype.Hp=function(){return _.B(this,2)};var Spc=function(a,b){_.Wj(a,1,b)},Tpc=function(a,b){return _.y(a,2,b)},Upc=function(a,b){return _.J(a,3,b)},Vpc=[[1]],Wpc=function(a){_.K.call(this,a,-1,void 0,Vpc)};
_.N(Wpc,_.K);var Xpc=[2],Ypc=function(a){_.K.call(this,a,-1,Xpc)};_.N(Ypc,_.K);var Zpc=function(a,b){_.Wj(a,2,b)},$pc=function(a,b){return _.J(a,3,b)},aqc=[[1]],bqc=function(a){_.K.call(this,a,-1,void 0,aqc)};_.N(bqc,_.K);bqc.prototype.Bg=function(a){return _.ck(this,1,aqc[0],a)};var cqc=function(a,b){_.Wj(a,1,b)},dqc=function(a,b){return _.Wj(a,2,b)},eqc=[[1,2]],fqc=function(a){_.K.call(this,a,-1,void 0,eqc)};_.N(fqc,_.K);
var gqc=function(a,b){_.Wj(a,1,b)},hqc=function(a,b){return _.J(a,2,b)},iqc=[[1]],jqc=function(a){_.K.call(this,a,-1,void 0,iqc)};_.N(jqc,_.K);var kqc=function(a,b){return _.J(a,1,b)},lqc=function(a,b){return _.y(a,2,b)},mqc=function(a,b){return _.y(a,3,b)},nqc=function(a){_.K.call(this,a)};_.N(nqc,_.K);tnc=function(a,b){_.Wj(a,8,b)};snc=function(a,b){return _.J(a,73,b)};unc=function(a,b){_.Wj(a,107,b)};_.SK=function(a){return _.C(a,nqc,109)};vnc=function(a,b){_.J(a,109,b)};
oqc=function(a){var b=new _.rk;var c=_.B(a,1);null!=c&&_.wk(b,1,c);c=_.B(a,2);null!=c&&_.wk(b,2,c);return _.tk(b)};pqc=function(a){_.K.call(this,a)};_.N(pqc,_.K);var Snc=function(a){_.K.call(this,a)};_.N(Snc,_.K);var qqc=[11],rqc=function(a){_.K.call(this,a,-1,qqc)};_.N(rqc,_.K);var bL=function(a){_.K.call(this,a)};_.N(bL,_.K);bL.prototype.getKey=function(){return _.B(this,2)};bL.prototype.ht=function(){return _.Q(this,2)};cL=function(a){return _.E(a,4,"en")};
_.dL=function(a){return _.C(a,rqc,34,1)};eL=function(a,b,c){if(b.length!=c.length)return!0;for(a=0;a<b.length;a++)if(!_.fk(b[a]||void 0,c[a]||void 0))return!0;return!1};sqc=function(a,b){return _.y(a,5,b)};_.wqc=function(a,b){return _.y(a,2,b)};_.xqc=function(a,b){return _.y(a,3,b)};_.yqc=function(a,b){return _.y(a,1,b)};_.zqc=function(a,b){return _.y(a,2,b)};_.Aqc=function(a,b){return _.Wj(a,5,b)};_.Bqc=function(a,b){return _.y(a,6,b)};_.Cqc=function(a,b){return _.y(a,7,b)};
_.Dqc=function(a,b){return _.y(a,8,b)};_.Eqc=function(a,b){return _.y(a,10,b)};_.Fqc=function(a,b){return _.y(a,15,b)};Gqc=[2];_.Hqc=function(a){_.K.call(this,a,-1,Gqc)};_.N(_.Hqc,_.K);_.Hqc.prototype.Ph=function(){return _.B(this,1)};_.Iqc=function(a,b){return _.J(a,1,b)};Jqc=function(a,b){return _.y(a,2,b)};Kqc=function(a,b){return _.y(a,3,b)};Lqc=function(a,b){_.Wj(a,4,b)};_.Mqc=function(a,b){_.J(a,8,b)};_.Nqc=function(a,b){_.J(a,9,b)};Oqc=function(a){_.K.call(this,a)};_.N(Oqc,_.K);
Oqc.prototype.Ya=function(){return _.Nj(this,1)};Oqc.prototype.Jb=function(a){return _.Yj(this,1,a,0)};roc=function(a,b){_.Qj(a,3,b)};_.Pqc=function(a){_.K.call(this,a)};_.N(_.Pqc,_.K);_.Pqc.prototype.getId=function(){return _.B(this,1)};_.Pqc.prototype.Ob=function(a){return _.y(this,1,a)};_.Pqc.prototype.Ie=function(){return _.B(this,4)};_.Pqc.prototype.Ah=function(a){return _.y(this,4,a)};_.BK=function(a){_.K.call(this,a)};_.N(_.BK,_.K);_.BK.prototype.getTitle=function(){return _.B(this,1)};
_.BK.prototype.setTitle=function(a){return _.y(this,1,a)};_.BK.prototype.xe=function(){return _.C(this,_.tf,2)};var Qqc=function(a,b){return _.Qj(a,9,b)},Rqc=function(a,b){return _.Qj(a,10,b)},Sqc=function(a,b){return _.y(a,36,b)},Tqc=function(a,b){return _.Wj(a,38,b)},Uqc=function(a,b){return _.y(a,2,b)},Vqc=function(a,b){return _.J(a,3,b)},Wqc=function(a){_.K.call(this,a)};_.N(Wqc,_.K);var Xqc=function(a){_.K.call(this,a)};_.N(Xqc,_.K);var Yqc=function(a){_.K.call(this,a)};_.N(Yqc,_.K);
var Zqc=function(a){_.K.call(this,a)};_.N(Zqc,_.K);var $qc=function(a){_.K.call(this,a)};_.N($qc,_.K);var arc=function(a){_.K.call(this,a)};_.N(arc,_.K);arc.prototype.py=function(){return _.S(this,1)};arc.prototype.Wn=function(){return _.B(this,5)};arc.prototype.Nm=function(){return _.B(this,6)};arc.prototype.Bt=function(a){return _.y(this,6,a)};
var brc=function(a,b){return _.y(a,1,b)},crc=function(a,b){return _.y(a,3,b)},drc=function(a,b){return _.y(a,4,b)},erc=function(a,b){_.y(a,7,b)},frc=function(a){_.K.call(this,a)};_.N(frc,_.K);frc.prototype.py=function(){return _.S(this,2)};var grc=function(a,b){_.y(a,1,b)},hrc=function(a){_.K.call(this,a)};_.N(hrc,_.K);hrc.prototype.Nm=function(){return _.B(this,3)};hrc.prototype.Bt=function(a){return _.y(this,3,a)};hrc.prototype.Wn=function(){return _.B(this,4)};
var irc=function(a){_.K.call(this,a)};_.N(irc,_.K);var jrc=[1,3,5],krc=function(a){_.K.call(this,a,-1,jrc)};_.N(krc,_.K);krc.prototype.QE=function(){return _.Td(this,1)};krc.prototype.py=function(){return _.S(this,2)};krc.prototype.Wn=function(){return _.B(this,7)};lrc=function(a,b){_.y(a,2,b)};mrc=function(a,b){_.Zj(a,5,b,void 0)};nrc=function(a,b){_.y(a,6,b)};orc=function(a,b){_.y(a,7,b)};_.prc=function(a,b){_.J(a,2,b)};qrc=function(a,b,c){_.hK(a,b,c,"warning")};rrc=function(a){return[].concat(_.od(a.O))};
src=function(a){return a.H.concat([].concat(_.od(a.O)))};trc=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(_.od(c))};fL=function(a){var b=_.pK(a).ud();b||(b=new _.sic,a=_.pK(a),_.J(a,1,b));return b};urc=function(a){var b=_.C(_.pK(a),krc,3);b||(b=new krc,a=_.pK(a),_.J(a,3,b));return b};gL=function(a){var b=_.C(_.pK(a),arc,16);b||(b=new arc,a=_.pK(a),_.J(a,16,b));return b};
vrc=function(a){var b=_.C(_.pK(a),Yqc,7);b||(b=new Yqc,a=_.pK(a),_.J(a,7,b));return b};wrc=function(a){var b=_.C(_.pK(a),$qc,12);b||(b=new $qc,a=_.pK(a),_.J(a,12,b));return b};xrc=function(a){var b=_.C(_.pK(a),frc,17);b||(b=new frc,a=_.pK(a),_.J(a,17,b));return b};
yrc=function(a){if(a instanceof _.hI)return 2;if(a instanceof _.eG)return 10;if(a instanceof _.gf)return _.mJ(a)?3:_.nJ(a)?7:_.oJ(a)?8:1;if(a instanceof _.oA)return 9;if(a instanceof _.qG)return 11;if(a instanceof _.uJ)return 15;if(a instanceof _.oI)return 6;if(a instanceof _.qJ){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 _.yD)return 4;if(a instanceof _.Wz)return 12;if(a instanceof _.gG)return 13}return 0};
zrc=function(a){var b=null;a instanceof _.iB||"undefined"!=typeof _.rK&&a instanceof _.rK||"undefined"!=typeof _.sK&&a instanceof _.sK?b=a.ef()||0:"undefined"!=typeof _.uK&&a instanceof _.uK||"undefined"!=typeof _.vK&&a instanceof _.vK||"undefined"!=typeof _.wK&&a instanceof _.wK||"undefined"!=typeof _.xK&&a instanceof _.xK||"undefined"!=typeof _.yK&&a instanceof _.yK?b=a.Qe:"undefined"!=typeof _.tK&&a instanceof _.tK&&(b=a.ef());return b||0};
Arc=function(a,b,c){return a.V&&_.Rjc(a)?(a=_.Njc(a.V,b,0),c&&_.ggc(a,c),a):null};Brc=function(a){a.V&&_.Rjc(a)&&(a=a.V,a.H.vP()&&a.H.FZ())};Crc=function(a){var b=new _.iJ;return _.y(b,1,a)};Drc=function(a,b){return _.J(a,2,b)};Erc=function(a,b){return _.J(a,1,b)};Frc=function(a,b){a.ha=b};Grc=[2];hL=function(a){_.K.call(this,a,-1,Grc)};_.N(hL,_.K);hL.prototype.Bb=function(){return _.B(this,1)};hL.prototype.Dc=function(a){return _.y(this,1,a)};hL.prototype.Xga=function(a){_.dk(this,2,a,_.Jk,void 0)};
hL.prototype.Zj=function(){return _.B(this,3)};var Hrc=[2],Irc=function(a){_.K.call(this,a,-1,Hrc)};_.N(Irc,_.K);Irc.prototype.Bb=function(){return _.B(this,1)};Irc.prototype.Dc=function(a){return _.y(this,1,a)};Irc.prototype.Zj=function(){return _.B(this,3)};
var Jrc=function(a){return a.H?a.H.promise:a.O()?(a.H=new _.Cn,a.H.promise):null},Krc=function(a){var b=[];a.hj.forEach(function(c){(c=c.Bv.config.timestamp)&&b.push(c)});return b},Lrc=function(a){var b=[];a.W.forEach(function(c){c.forEach(function(d){(d=d.Bv.config.timestamp)&&b.push(d)})});a.buckets.forEach(function(c){_.za(b,Krc(c))});return b},gnc=function(a,b){return _.Qj(a,1,b)},Mrc=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},Nrc=function(a,b){if(!(a instanceof b.constructor))throw Error("ea");var c=_.vb(a,!0);b=_.vb(b,!0);var d=[],e=0,f=c.length>b.length?c.length:b.length;a.constructor.messageId&&(d[0]=a.constructor.messageId,e=1);for(;e<f;e++)_.dna(c[e],b[e])||(d[e]=b[e]);return new a.constructor(d)},Orc={SUCCESS:1,p5b:2,oXb:3,XSb:4,C5b:5,U_b:6,L_b:7,ETb:8,n4b:9,C4b:10,o5b:11,iVb:12,NUb:13,oYb:14,IWb:15,RUb:16,QUb:17,WUb:18,TUb:19,UUb:20,
T4b:21,y5b:22,l0b:23,r_b:24,xTb:25,PERMISSION_DENIED:26,GZb:27,JTb:28,ITb:29,INTERRUPTED:30,L0b:31,e1b:32,xVb:33,DVb:34,u4b:35,KVb:36,JWb:37,CVb:38,K_b:39,qUb:40,G0b:41,g1b:42,l4b:43,bUb:44,pUb:45,GWb:46,BZb:47,I_b:48,c0b:49,H0b:50,e4b:51,OUb:52,m4b:53,k4b:54,hUb:55,eUb:56,VVb:57,$Zb:58,I0b:59,aZb:60,x2b:61,l3b:62,S3b:63,DYb:64,t_b:65,F5b:66,MVb:67,KWb:68,n5b:69,IYb:70,HTb:71,UTb:72,t3b:73,T3b:74,P3b:75,N3b:76,h3b:190,M3b:191,u3b:192,A3b:126,w3b:128,x3b:129,y3b:130,z3b:131,B3b:132,C3b:133,G2b:127,
D2b:134,E2b:135,I2b:136,J2b:137,K2b:138,F2b:194,H2b:195,L2b:196,C2b:197,k3b:189,w2b:139,y2b:140,M2b:141,N2b:142,Z2b:143,b3b:144,c3b:145,d3b:146,e3b:147,f3b:148,g3b:149,j3b:150,p3b:151,r3b:152,s3b:153,v3b:154,D3b:155,F3b:156,G3b:157,H3b:158,I3b:159,J3b:160,K3b:161,O3b:162,R3b:163,U3b:164,z2b:165,A2b:166,B2b:167,u2b:168,v2b:169,Q2b:170,O2b:171,P2b:172,R2b:173,S2b:174,T2b:175,U2b:176,V2b:177,W2b:178,X2b:179,Y2b:180,$2b:181,a3b:182,i3b:106,q3b:183,E3b:184,L3b:185,m3b:186,n3b:187,o3b:188,Q3b:244,F0b:77,
s5b:78,x5b:79,OZb:80,tYb:81,vYb:82,UVb:83,FWb:84,HZb:85,M4b:86,BVb:87,KYb:88,JYb:89,X3b:90,V3b:91,W3b:92,t5b:93,DUb:94,CUb:95,zUb:96,BUb:97,AUb:98,E5b:99,f2b:100,ZUb:101,SUb:102,XUb:103,VUb:104,YUb:105,LWb:107,z4b:108,$1b:109,h5b:110,OWb:111,NWb:112,fZb:113,gZb:114,k1b:115,iUb:116,nZb:117,dWb:118,u5b:119,Q_b:120,R_b:121,pYb:193,PUb:122,rVb:123,sYb:124,m_b:125,LYb:198,Q0b:199,AYb:200,ASb:201,GYb:202,EYb:203,KTb:204,c6b:205,uZb:206,wUb:207,N_b:208,f1b:209,b2b:210,aTb:211,dZb:212,kZb:213,p4b:214,o4b:215,
CYb:216,nYb:217,BYb:218,OVb:219,D4b:220,PVb:221,bZb:222,w4b:223,O5b:224,x_b:225,v4b:226,tVb:227,tZb:228,TVb:229,sUb:230,K4b:231,o_b:232,FILE_TOO_LARGE:233,HYb:234,NVb:235,CWb:236,b1b:237,u_b:238,lSb:239,tUb:240,B_b:241,m2b:242,zVb:243,ySb:245,wYb:246,e0b:247,uYb:248,NZb:249,s_b:250,HWb:251,vXb:252,eZb:253,fUb:254,MWb:255,D5b:256,hXb:257,XZb:258,r1b:259,P0b:260,SYb:261,dVb:262,AVb:263,wTb:264,FZb:265,B5b:266,pSb:267,oTb:268,nTb:269,J_b:270,kSb:271},iL=function(a,b){_.ki.call(this,"Ea");this.error=
a;this.H=b};_.N(iL,_.ki);Prc={v5b:0,YZb:1,n0b:2,a0b:3,NYb:4,YSb:5,ZZb:6,b0b:7,VXb:8,vTb:9,Z_b:10};_.jL=function(a,b,c,d,e,f){_.P.call(this);var h=this;this.V=a;this.va=b;this.Fa=c;this.request=e;this.Ba=f;this.H=[];this.items=[];this.ha=!0;this.O=!1;this.suggestionSessionId=null;this.Ha=d;this.status=6;this.ka=gnc(new _.OK,[1]);this.limit=e.Li();this.Qe=0;_.De(this,function(){h.O=!1;h.H=[]});_.v7a++};_.N(_.jL,_.P);_.g=_.jL.prototype;_.g.xi=function(){return String(_.Da(this))};_.g.isActive=function(){return this.O};
_.g.activate=function(){this.O=!0;_.qa(this.items)&&6===this.Bb()&&this.Rj()||Qrc(this)};_.g.ud=function(){return this.request};_.g.Li=function(){return this.limit};_.g.Bb=function(){return this.status};_.g.Mq=function(){return this.ka};_.g.Rj=function(){return this.ha};_.g.vr=function(){var a=_.u7a().Fz(this.H,this.items),b=(new _.gI).Dc(this.Bb());a=_.Wj(b,2,a);this.H=this.items;return a};_.g.Fr=function(a){this.O&&(this.limit+=a||50,this.Ha(this.xi(),this.limit))};
var Rrc=function(a,b){return a.Bb()!==b.Bb()||eL(_.u7a(),a.items,b.Bd())},Src=function(a,b){a.items=b.Bd();a.status=b.Bb();_.tI(a.Ba)&&(a.ka=hnc(a.status,a.items));a.ha=b.jl();a.Qe=b.ef()};_.jL.prototype.qB=function(a){this.dispatchEvent(new _.rc(new _.qc("Error occurred running a query after "+a.H+" retries.",a.error)))};_.jL.prototype.hW=function(){this.dispatchEvent(new _.ki(_.SEa))};
_.jL.prototype.xu=function(a,b){var c=this;b+="\n\n\nQuery:\n"+kL(this.V,this.ud());return _.ci(this.va.then(function(d){return d.NKb(a,b,c.ud(),c.Li(),c.items)}))};
var Qrc=function(a){a.isActive()&&(a.log("Livelist "+a.xi()+" returning "+a.items.length+". Status: "+(_.ab(Orc)[a.Bb()]+". Datasource: ")+(_.ab(Prc)[a.Qe]+". Query: ")+(kL(a.V,a.request)+" ")+inc(a.items)),Trc(a,a.items,a.request),a.dispatchEvent(new _.ki(_.Dc,a)))},Trc=function(a,b,c){if(_.mJ(c))c="quick access";else if(_.nJ(c))c="people predict";else if(_.oJ(c))c="drive priority";else return;b=b.map(function(d){return d.getId()}).join(", ");a.log("Livelist "+a.xi()+" returning "+a.items.length+
" for "+(c+": "+b))};_.jL.prototype.refresh=function(){};_.jL.prototype.log=function(a){this.Fa.info(this.W,a)};_.jL.prototype.Za=function(){_.w7a++;_.P.prototype.Za.call(this)};var Urc=function(){this.map={};this.status=6;this.Qe=null};_.g=Urc.prototype;_.g.Bb=function(){return this.status};_.g.Dc=function(a){this.status=a};_.g.ef=function(){return this.Qe};_.g.Ei=function(a){this.Qe=a};_.g.eq=function(){return this.map};var Vrc=function(a,b){a.map=b};
Urc.prototype.jc=function(a){var b=[];_.Ma(this.map,function(c,d){b.push({k:d,v:c?a(c):null})});return JSON.stringify({s:this.status,d:this.Qe,me:b})};var Wrc=function(a,b,c){c=JSON.parse(c);a.Dc(c.s);a.Ei(c.d);var d={};c.me.forEach(function(e){d[e.k]=e.v?b(e.v):null});a.map=d},Xrc=function(){Urc.apply(this,arguments)};_.N(Xrc,Urc);_.rK=function(){Urc.apply(this,arguments)};_.N(_.rK,Urc);Yrc=[2,6];_.sK=function(a){_.K.call(this,a,-1,Yrc)};_.N(_.sK,_.K);_.g=_.sK.prototype;
_.g.Bb=function(){return _.B(this,1)};_.g.Dc=function(a){return _.y(this,1,a)};_.g.Bd=function(){return _.bk(this,_.dl,2)};_.g.Nw=function(a){return _.Wj(this,2,a)};_.g.oh=function(a,b){return _.dk(this,2,a,_.dl,b)};_.g.Zj=function(){return _.B(this,3)};_.g.jl=function(){return _.T(this,4,!0)};var Zrc=function(a,b){return _.Wj(a,6,b)};_.sK.prototype.Wf=function(){return _.B(this,10)};_.sK.prototype.sP=function(a){return _.y(this,10,a)};_.sK.prototype.ef=function(){return _.B(this,9)};
_.sK.prototype.Ei=function(a){return _.y(this,9,a)};var mnc=[1004,1005,1002,1003],Anc=[1002,1003,1005],lL=function(a,b,c,d,e,f){_.P.call(this);var h=this;this.V=a;this.ka=b;this.ha=c;this.ma=d;this.ta=e;this.request=f;this.O=!1;this.H={};this.items={};this.status=6;this.W=gnc(new _.OK,[1]);this.log("Creating find by ids live map: "+this.request.hn().join(", "));_.De(this,function(){h.O=!1;h.H=[]});_.fkb++};_.N(lL,_.P);_.g=lL.prototype;_.g.xi=function(){return String(_.Da(this))};
_.g.activate=function(){this.O=!0;_.Ua(this.items)&&6===this.status||$rc(this)};_.g.ud=function(){return this.request};_.g.getData=function(){this.H=this.items;var a=new _.rK;_.tI(this.V)?a.Dc(Cnc(Object.values(this.items))?6:this.status):a.Dc(this.status);a.map=this.items;return a};_.g.vr=function(){var a=Enc(this.H,this.items),b=new Xrc;b.Dc(this.status);b.map=a;this.H=this.items;return b};_.g.Bb=function(){return this.status};_.g.Mq=function(){return this.W};
_.g.dT=function(a){asc(a);var b=this.request;this.request=a;this.ta(this.xi(),b,a)};_.g.update=function(a){var b=this;0<=_.oa(this.ud().hn(),"root")?this.ma.addCallback(function(c){var d=a.eq()[c];d&&(_.Wa(a.map,c),a.map.root=d);bsc(b,a)}):bsc(this,a)};var bsc=function(a,b){if(a.status!==b.Bb()||Fnc(a.items,b.eq()))a.status=b.Bb(),a.items=b.eq(),_.tI(a.V)&&(a.W=hnc(a.status,Object.values(a.items))),$rc(a)};
lL.prototype.qB=function(a){this.dispatchEvent(new _.rc(new _.qc("Error occurred running a find-by-IDs query after "+a.H+" retries.",a.error)))};lL.prototype.hW=function(){this.dispatchEvent(new _.ki(_.SEa))};var $rc=function(a){a.O&&(a.log("Livelist "+a.xi()+" returning "+(Object.values(a.items).length+". Status: ")+(_.ab(Orc)[a.Bb()]+". Query: ")+(kL(a.ka,a.request)+" ")+inc(Object.values(a.items))),a.dispatchEvent(new _.ki(_.Dc,a)))};
lL.prototype.log=function(a){this.ha.info("drive.ds.sync.IdViewCacheLiveMap",a)};lL.prototype.Za=function(){_.gkb++;_.P.prototype.Za.call(this)};var csc=[1,2],dsc=function(a){_.K.call(this,a,-1,csc)};_.N(dsc,_.K);_.esc=function(a){_.K.call(this,a)};_.N(_.esc,_.K);_.esc.prototype.Bb=function(){return _.B(this,1)};_.esc.prototype.Dc=function(a){return _.y(this,1,a)};_.esc.prototype.jn=function(){return _.C(this,_.fG,2)};var fsc=function(a){_.ki.call(this,a)};_.N(fsc,_.ki);
var gsc=[5,7,9],hsc=function(a){_.K.call(this,a,-1,gsc)};_.N(hsc,_.K);_.g=hsc.prototype;_.g.getUser=function(){return _.C(this,_.Jk,1)};_.g.NA=function(a){_.y(this,2,a)};_.g.setBooleanValue=function(a){return _.y(this,3,a)};_.g.setTextValue=function(a){return _.y(this,4,a)};_.g.Goa=function(a){return _.Qj(this,5,a)};_.g.addTextValues=function(a,b){return _.Zj(this,5,a,b)};_.g.setSelectionValue=function(a){return _.y(this,6,a)};_.g.Coa=function(a){return _.Qj(this,7,a)};
_.g.addSelectionValues=function(a,b){return _.Zj(this,7,a,b)};_.g.setIntegerValue=function(a){return _.y(this,8,a)};_.g.uoa=function(a){return _.Qj(this,9,a)};_.g.addIntegerValues=function(a,b){return _.Zj(this,9,a,b)};var isc=[7,10,12,16,13,3],nL=function(a){_.K.call(this,a,-1,isc)};_.N(nL,_.K);var oL=function(a){return _.B(a,4)};_.g=nL.prototype;_.g.NA=function(a){_.y(this,4,a)};_.g.setBooleanValue=function(a){return _.y(this,5,a)};_.g.H8a=function(){return _.B(this,6)};
_.g.setTextValue=function(a){return _.y(this,6,a)};_.g.Goa=function(a){return _.Qj(this,7,a)};_.g.addTextValues=function(a,b){return _.Zj(this,7,a,b)};_.g.F8a=function(){return _.B(this,8)};_.g.setLongTextValue=function(a){return _.y(this,8,a)};_.g.G8a=function(){return _.B(this,9)};_.g.setSelectionValue=function(a){return _.y(this,9,a)};_.g.mLa=function(){return _.Td(this,10)};_.g.Coa=function(a){return _.Qj(this,10,a)};_.g.addSelectionValues=function(a,b){return _.Zj(this,10,a,b)};
_.g.E8a=function(){return _.B(this,11)};_.g.setIntegerValue=function(a){return _.y(this,11,a)};_.g.uoa=function(a){return _.Qj(this,12,a)};_.g.addIntegerValues=function(a,b){return _.Zj(this,12,a,b)};_.g.I8a=function(){return _.C(this,_.Jk,15)};_.g.setUserValue=function(a){return _.J(this,15,a)};_.g.FVa=function(){return _.bk(this,_.Jk,16)};var jsc=function(a,b){_.Wj(a,16,b)};nL.prototype.addUserValues=function(a,b){return _.dk(this,16,a,_.Jk,b)};nL.prototype.O=function(){return _.B(this,17)};
nL.prototype.setDateStringValue=function(a){return _.y(this,17,a)};nL.prototype.V=function(){return _.Q(this,17)};var ksc=function(a,b){_.Wj(a,13,b)};nL.prototype.getId=function(){return _.B(this,14)};nL.prototype.Ob=function(a){return _.y(this,14,a)};nL.prototype.getName=function(){return _.B(this,1)};nL.prototype.hd=function(a){return _.y(this,1,a)};var lsc=[2],pL=function(a){_.K.call(this,a,-1,lsc)};_.N(pL,_.K);pL.prototype.getName=function(){return _.B(this,1)};
pL.prototype.hd=function(a){return _.y(this,1,a)};pL.prototype.O=function(){return _.bk(this,nL,2)};var msc=function(a,b){_.Wj(a,2,b)};pL.prototype.Cc=function(){return _.B(this,3)};var nsc=function(a,b){return _.y(a,3,b)},osc=function(a){_.K.call(this,a)};_.N(osc,_.K);osc.prototype.O=function(){return _.C(this,_.QC,1)};osc.prototype.V=function(){return _.C(this,_.QC,2)};osc.prototype.ha=function(){return _.C(this,_.QC,3)};var psc=function(a){_.K.call(this,a)};_.N(psc,_.K);
psc.prototype.V=function(){return _.S(this,1)};psc.prototype.O=function(){return _.S(this,3)};psc.prototype.ha=function(){return _.S(this,4)};var qL=[[13,19,12,11,10,15,14,9,8,18,17,16]],qsc=function(a){_.K.call(this,a)};_.N(qsc,_.K);qsc.prototype.O=function(){return _.S(this,1)};qsc.prototype.V=function(){return _.S(this,2)};var rsc=function(a){_.K.call(this,a)};_.N(rsc,_.K);rsc.prototype.O=function(){return _.B(this,4)};var ssc=function(a){_.K.call(this,a)};_.N(ssc,_.K);
ssc.prototype.V=function(){return _.B(this,1)};ssc.prototype.O=function(){return _.B(this,2)};var tsc=function(a){_.K.call(this,a)};_.N(tsc,_.K);tsc.prototype.V=function(){return _.B(this,1)};tsc.prototype.O=function(){return _.B(this,2)};var usc=function(a){_.K.call(this,a)};_.N(usc,_.K);var vsc=[1],wsc=function(a){_.K.call(this,a)};_.N(wsc,_.K);wsc.prototype.O=function(){return _.S(this,1)};wsc.prototype.V=function(){return _.S(this,2)};var xsc=function(a){_.K.call(this,a)};_.N(xsc,_.K);_.g=xsc.prototype;
_.g.W8a=function(){return _.S(this,1)};_.g.X8a=function(){return _.S(this,2)};_.g.T8a=function(){return _.C(this,osc,3)};_.g.Y8a=function(){return _.Q(this,3)};_.g.V8a=function(){return _.C(this,osc,4)};_.g.$8a=function(){return _.Q(this,4)};_.g.U8a=function(){return _.B(this,5)};_.g.Z8a=function(){return _.Q(this,5)};var ysc=function(a){_.K.call(this,a)};_.N(ysc,_.K);_.g=ysc.prototype;_.g.getLabel=function(){return _.B(this,1)};_.g.Kp=function(){return _.Q(this,1)};
_.g.Ya=function(){return _.B(this,2)};_.g.Jb=function(a){return _.y(this,2,a)};_.g.Ti=function(){return _.Uj(this,2)};_.g.kh=function(){return _.Q(this,2)};_.g.He=function(){return _.B(this,5)};_.g.Ul=function(a){return _.y(this,5,a)};_.g.S8a=function(){return _.Q(this,5)};_.g.getCapabilities=function(){return _.C(this,wsc,3)};_.g.R8a=function(){return _.C(this,xsc,4)};var zsc=function(a){_.K.call(this,a,-1,vsc)};_.N(zsc,_.K);zsc.prototype.O=function(){return _.bk(this,ysc,1)};
var Asc=function(a,b){_.Wj(a,1,b)},Bsc=function(a){_.K.call(this,a)};_.N(Bsc,_.K);Bsc.prototype.O=function(){return _.B(this,1)};Bsc.prototype.jW=function(){return _.Q(this,1)};Bsc.prototype.getOptions=function(){return _.C(this,zsc,2)};var Csc=function(a){_.K.call(this,a)};_.N(Csc,_.K);Csc.prototype.jW=function(){return _.Q(this,1)};Csc.prototype.getOptions=function(){return _.C(this,tsc,2)};var Dsc=function(a){_.K.call(this,a)};_.N(Dsc,_.K);var Esc=function(a){_.K.call(this,a)};_.N(Esc,_.K);
Esc.prototype.jW=function(){return _.Q(this,1)};Esc.prototype.getOptions=function(){return _.C(this,Dsc,2)};var rL=[[3,4,5,6,7,8,9,10,11,12]],Fsc=function(a){_.K.call(this,a,-1,void 0,rL)};_.N(Fsc,_.K);_.g=Fsc.prototype;_.g.Ica=function(a){return _.ck(this,3,rL[0],a)};_.g.N3a=function(a){return _.ck(this,4,rL[0],a)};_.g.b3a=function(a){return _.ck(this,5,rL[0],a)};_.g.a3a=function(a){return _.ck(this,6,rL[0],a)};_.g.O2a=function(a){return _.ck(this,7,rL[0],a)};
_.g.A3a=function(a){return _.ck(this,8,rL[0],a)};_.g.z3a=function(a){return _.ck(this,9,rL[0],a)};_.g.S3a=function(a){return _.ck(this,10,rL[0],a)};_.g.Ioa=function(a){return _.ck(this,11,rL[0],a)};_.g.qoa=function(a){return _.ck(this,12,rL[0],a)};var Gsc=function(a){_.K.call(this,a)};_.N(Gsc,_.K);var Hsc=function(a){_.K.call(this,a)};_.N(Hsc,_.K);Hsc.prototype.O=function(){return _.B(this,1)};Hsc.prototype.jW=function(){return _.Q(this,1)};
Hsc.prototype.getOptions=function(){return _.C(this,Gsc,2)};var Isc=function(a){_.K.call(this,a,-1,void 0,qL)};_.N(Isc,_.K);_.g=Isc.prototype;_.g.getId=function(){return _.B(this,1)};_.g.Ob=function(a){return _.y(this,1,a)};_.g.L8a=function(){return _.B(this,2)};_.g.te=function(){return _.B(this,4)};_.g.K8a=function(){return _.C(this,psc,5)};_.g.getCapabilities=function(){return _.C(this,qsc,6)};_.g.Q8a=function(){return _.B(this,7)};_.g.O2a=function(a){return _.ck(this,13,qL[0],a)};
_.g.J8a=function(){return _.C(this,rsc,19)};_.g.qoa=function(a){return _.ck(this,19,qL[0],a)};_.g.a3a=function(a){return _.ck(this,12,qL[0],a)};_.g.b3a=function(a){return _.ck(this,11,qL[0],a)};_.g.Hrb=function(){return _.C(this,ssc,10)};_.g.M8a=function(){return _.C(this,Bsc,15)};_.g.z3a=function(a){return _.ck(this,15,qL[0],a)};_.g.N8a=function(){return _.C(this,zsc,14)};_.g.A3a=function(a){return _.ck(this,14,qL[0],a)};_.g.N3a=function(a){return _.ck(this,9,qL[0],a)};
_.g.O8a=function(){return _.C(this,tsc,8)};_.g.Ica=function(a){return _.ck(this,8,qL[0],a)};_.g.P8a=function(){return _.C(this,Hsc,18)};_.g.Ioa=function(a){return _.ck(this,18,qL[0],a)};_.g.S3a=function(a){return _.ck(this,17,qL[0],a)};var Jsc=[5],Ksc=function(a){_.K.call(this,a)};_.N(Ksc,_.K);Ksc.prototype.ha=function(){return _.S(this,1)};Ksc.prototype.O=function(){return _.S(this,2)};Ksc.prototype.ka=function(){return _.S(this,3)};Ksc.prototype.V=function(){return _.S(this,4)};
var sL=function(a){_.K.call(this,a,-1,Jsc)};_.N(sL,_.K);sL.prototype.getName=function(){return _.B(this,1)};sL.prototype.hd=function(a){return _.y(this,1,a)};sL.prototype.an=function(){return _.B(this,2)};var Lsc=function(a,b){return _.y(a,2,b)};sL.prototype.V=function(){return _.B(this,14)};var Msc=function(a,b){return _.y(a,14,b)};_.g=sL.prototype;_.g.getTitle=function(){return _.B(this,3)};_.g.setTitle=function(a){return _.y(this,3,a)};_.g.He=function(){return _.B(this,4)};
_.g.Ul=function(a){return _.y(this,4,a)};_.g.a9a=function(){return _.B(this,15)};_.g.Pk=function(){return _.bk(this,Isc,5)};var Nsc=function(a,b){return _.Wj(a,5,b)},Osc=function(a,b){_.J(a,6,b)},Psc=function(a,b){_.J(a,7,b)},Qsc=function(a,b){_.J(a,8,b)},Rsc=function(a,b){return _.y(a,9,b)},Ssc=function(a,b){return _.y(a,10,b)},Tsc=function(a,b){return _.y(a,11,b)};sL.prototype.O=function(){return _.C(this,psc,12)};var Usc=function(a,b){_.J(a,12,b)};
sL.prototype.getCapabilities=function(){return _.C(this,Ksc,13)};var Vsc=function(a,b){_.J(a,13,b)};sL.prototype.getCustomer=function(){return _.B(this,16)};Wsc=function(a,b){return _.y(a,16,b)};Xsc=[3];_.tL=function(a){_.K.call(this,a,-1,Xsc)};_.N(_.tL,_.K);_.tL.prototype.getType=function(){return _.B(this,1)};_.tL.prototype.Cc=function(){return _.B(this,2)};_.XK=function(a){_.K.call(this,a)};_.N(_.XK,_.K);_.XK.prototype.getId=function(){return _.B(this,1)};
_.XK.prototype.Ob=function(a){return _.y(this,1,a)};_.XK.prototype.xe=function(){return _.C(this,_.tf,3)};_.Ysc=function(a){_.K.call(this,a)};_.N(_.Ysc,_.K);_.Ysc.prototype.getFeature=function(){return _.B(this,1)};Zsc=[1];_.oK=function(a){_.K.call(this,a,-1,Zsc)};_.N(_.oK,_.K);$sc=[2,3,8];_.xJ=function(a){_.K.call(this,a,-1,$sc)};_.N(_.xJ,_.K);_.xJ.prototype.getId=function(){return _.B(this,1)};_.xJ.prototype.Ob=function(a){return _.y(this,1,a)};
_.xJ.prototype.xe=function(){return _.C(this,_.tf,4)};_.xJ.prototype.Ac=function(){return _.B(this,5)};var atc=function(a){_.K.call(this,a)};_.N(atc,_.K);var btc=[1,2,4],ctc=function(a){_.K.call(this,a)};_.N(ctc,_.K);ctc.prototype.getType=function(){return _.B(this,1)};var dtc=function(a){var b=new ctc;return _.y(b,1,a)},etc=function(a,b){return _.J(a,2,b)};ctc.prototype.ny=function(){return _.B(this,3)};ctc.prototype.Py=function(a){return _.y(this,3,a)};
ctc.prototype.Mi=function(){return _.B(this,4)};ctc.prototype.setPosition=function(a){return _.y(this,4,a)};var ftc=[2],gtc=function(a){_.K.call(this,a,-1,ftc)};_.N(gtc,_.K);gtc.prototype.Bb=function(){return _.B(this,1)};gtc.prototype.Dc=function(a){return _.y(this,1,a)};var htc=[2],uL=function(a){_.K.call(this,a,-1,htc)};_.N(uL,_.K);uL.prototype.Bb=function(){return _.B(this,1)};uL.prototype.Dc=function(a){return _.y(this,1,a)};uL.prototype.O=function(){return _.bk(this,pL,2)};
var itc=function(a,b){return _.Wj(a,2,b)};uL.prototype.Zj=function(){return _.B(this,3)};var jtc=function(a){_.K.call(this,a)};_.N(jtc,_.K);jtc.prototype.Bb=function(){return _.B(this,1)};jtc.prototype.Dc=function(a){return _.y(this,1,a)};var ktc=function(a,b){return _.J(a,2,b)},ltc={0:"UNSPECIFIED_FEEDBACK",1:"IMPLICIT_REJECT",2:"NOT_HELPFUL_RIGHT_NOW"},mtc=function(a){_.K.call(this,a)};_.N(mtc,_.K);mtc.prototype.He=function(){return _.E(this,1)};mtc.prototype.Ul=function(a){return _.jk(this,1,a)};
mtc.prototype.getUrl=function(){return _.E(this,2)};_.ntc=function(a){_.K.call(this,a)};_.N(_.ntc,_.K);_.ntc.prototype.getType=function(){return _.Mj(this,1,0)};_.ntc.prototype.getContext=function(){return _.C(this,mtc,2)};otc=[1];ptc=[2,4];_.qtc=function(a){_.K.call(this,a,-1,ptc)};_.N(_.qtc,_.K);_.qtc.prototype.getLabel=function(){return _.E(this,1)};_.qtc.prototype.getTitle=function(){return _.E(this,3)};_.qtc.prototype.setTitle=function(a){return _.jk(this,3,a)};
_.rtc=function(a){_.K.call(this,a,-1,otc)};_.N(_.rtc,_.K);_.stc=[[2,3,4]];_.vL=function(a){_.K.call(this,a)};_.N(_.vL,_.K);_.vL.prototype.te=function(){return _.E(this,3)};_.vL.prototype.Ln=function(a){return _.jk(this,4,a)};_.ttc=function(a){_.K.call(this,a)};_.N(_.ttc,_.K);_.utc=function(a){_.K.call(this,a,-1,void 0,_.stc)};_.N(_.utc,_.K);var vtc=function(a){_.K.call(this,a)};_.N(vtc,_.K);wtc=[3,5];_.wL=[[8,9,10,11,12,13,14]];_.xtc=function(a){_.K.call(this,a)};_.N(_.xtc,_.K);
_.ytc=function(a){_.K.call(this,a,-1,wtc,_.wL)};_.N(_.ytc,_.K);_.ytc.prototype.Bb=function(){return _.Mj(this,6,0)};_.ytc.prototype.Dc=function(a){return _.kk(this,6,a)};var ztc=function(a){_.K.call(this,a)};_.N(ztc,_.K);var Atc=function(a){_.K.call(this,a)};_.N(Atc,_.K);var Btc=function(a){_.K.call(this,a)};_.N(Btc,_.K);var Ctc=[1],Dtc=function(a){_.K.call(this,a,-1,Ctc)};_.N(Dtc,_.K);var Etc=function(a){_.K.call(this,a)};_.N(Etc,_.K);var Ftc=function(a){_.K.call(this,a)};_.N(Ftc,_.K);Gtc=[7];
_.Htc=[[1,2,3]];_.Itc=function(a){_.K.call(this,a)};_.N(_.Itc,_.K);_.Jtc=function(a){_.K.call(this,a)};_.N(_.Jtc,_.K);_.Ktc=function(a){_.K.call(this,a)};_.N(_.Ktc,_.K);_.Ltc=function(a){_.K.call(this,a,-1,Gtc,_.Htc)};_.N(_.Ltc,_.K);_.Mtc=function(a){_.K.call(this,a)};_.N(_.Mtc,_.K);_.Mtc.prototype.getName=function(){return _.E(this,1)};_.Mtc.prototype.hd=function(a){return _.jk(this,1,a)};var Ntc=function(a){_.K.call(this,a)};_.N(Ntc,_.K);Ntc.prototype.getName=function(){return _.E(this,1)};
Ntc.prototype.hd=function(a){return _.jk(this,1,a)};Ntc.prototype.getTitle=function(){return _.E(this,2)};Ntc.prototype.setTitle=function(a){return _.jk(this,2,a)};var Otc=[[1,4]],Ptc=function(a){_.K.call(this,a,-1,void 0,Otc)};_.N(Ptc,_.K);Ptc.prototype.getUser=function(){return _.C(this,_.utc,1)};var Qtc=[[8,9,10]],Rtc=function(a){_.K.call(this,a)};_.N(Rtc,_.K);var Stc=function(a){_.K.call(this,a)};_.N(Stc,_.K);Stc.prototype.getType=function(){return _.Mj(this,6,0)};
var Ttc=function(a){_.K.call(this,a)};_.N(Ttc,_.K);_.Utc=function(a){_.K.call(this,a,-1,void 0,Qtc)};_.N(_.Utc,_.K);_.g=_.Utc.prototype;_.g.getName=function(){return _.E(this,1)};_.g.hd=function(a){return _.jk(this,1,a)};_.g.getTitle=function(){return _.E(this,2)};_.g.setTitle=function(a){return _.jk(this,2,a)};_.g.getFile=function(){return _.C(this,Rtc,3)};_.g.Fja=function(){return _.C(this,Stc,9)};_.g.pUa=function(){return _.C(this,Ttc,10)};_.g.zi=function(){return _.gk(this,5)};
_.g.getMimeType=function(){return _.E(this,6)};_.g.XC=function(){return _.C(this,Ptc,7)};var Vtc=function(a){_.K.call(this,a)};_.N(Vtc,_.K);var Wtc=[[8,9,10]],Xtc=function(a){_.K.call(this,a,-1,void 0,Wtc)};_.N(Xtc,_.K);_.g=Xtc.prototype;_.g.getName=function(){return _.E(this,1)};_.g.hd=function(a){return _.jk(this,1,a)};_.g.getTitle=function(){return _.E(this,2)};_.g.setTitle=function(a){return _.jk(this,2,a)};_.g.getFile=function(){return _.C(this,Rtc,3)};
_.g.Fja=function(){return _.C(this,Stc,9)};_.g.pUa=function(){return _.C(this,Ttc,10)};Ytc=[[1,3]];_.xL=function(a){_.K.call(this,a,-1,void 0,Ytc)};_.N(_.xL,_.K);_.xL.prototype.$h=function(){return _.C(this,Xtc,1)};_.Ztc=[[1,2,3]];_.$tc=function(a){_.K.call(this,a)};_.N(_.$tc,_.K);_.auc=function(a){_.K.call(this,a,-1,void 0,_.Ztc)};_.N(_.auc,_.K);var buc=function(a){_.K.call(this,a)};_.N(buc,_.K);var cuc=function(a){_.K.call(this,a)};_.N(cuc,_.K);duc=[2,3];_.euc=function(a){_.K.call(this,a,-1,duc)};
_.N(_.euc,_.K);_.euc.prototype.getType=function(){return _.Mj(this,1,0)};_.fuc=function(a){_.K.call(this,a)};_.N(_.fuc,_.K);_.fuc.prototype.getType=function(){return _.Mj(this,1,0)};var guc=function(a){_.K.call(this,a)};_.N(guc,_.K);guc.prototype.getType=function(){return _.Mj(this,1,0)};var huc=function(a){_.K.call(this,a)};_.N(huc,_.K);_.iuc=function(a){_.K.call(this,a)};_.N(_.iuc,_.K);_.iuc.prototype.O=function(){return _.T(this,1)};var juc=function(a){_.K.call(this,a)};_.N(juc,_.K);kuc=[1,2,4];
_.luc=function(a){_.K.call(this,a)};_.N(_.luc,_.K);muc=[1,2];_.nuc=function(a){_.K.call(this,a)};_.N(_.nuc,_.K);_.nuc.prototype.getParent=function(){return _.C(this,_.xL,1)};_.nuc.prototype.Fg=function(a){return _.J(this,1,a)};_.ouc=function(a){_.K.call(this,a,-1,muc)};_.N(_.ouc,_.K);_.puc=function(a){_.K.call(this,a,-1,kuc)};_.N(_.puc,_.K);_.yL=function(a){_.K.call(this,a)};_.N(_.yL,_.K);_.yL.prototype.getEmail=function(){return _.E(this,1)};_.yL.prototype.getTitle=function(){return _.E(this,2)};
_.yL.prototype.setTitle=function(a){return _.jk(this,2,a)};_.zL=[[2,3,4,5]];_.AL=function(a){_.K.call(this,a,-1,void 0,_.zL)};_.N(_.AL,_.K);_.AL.prototype.wf=function(){return _.Mj(this,1,0)};_.AL.prototype.getUser=function(){return _.C(this,_.utc,2)};var quc=function(a){_.K.call(this,a)};_.N(quc,_.K);ruc=[1,2,3,4];_.suc=function(a){_.K.call(this,a,-1,ruc)};_.N(_.suc,_.K);_.tuc=function(a){_.K.call(this,a)};_.N(_.tuc,_.K);_.uuc=function(a){_.K.call(this,a)};_.N(_.uuc,_.K);
_.vuc=function(a){_.K.call(this,a)};_.N(_.vuc,_.K);_.wuc=function(a){_.K.call(this,a)};_.N(_.wuc,_.K);_.wuc.prototype.getType=function(){return _.Mj(this,1,0)};xuc=[1];_.yuc=function(a){_.K.call(this,a)};_.N(_.yuc,_.K);_.yuc.prototype.getFeature=function(){return _.Mj(this,1,0)};_.zuc=function(a){_.K.call(this,a,-1,xuc)};_.N(_.zuc,_.K);var Auc=function(a){_.K.call(this,a)};_.N(Auc,_.K);var Buc=function(a){_.K.call(this,a)};_.N(Buc,_.K);var Cuc=function(a){_.K.call(this,a)};_.N(Cuc,_.K);
Cuc.prototype.getType=function(){return _.Mj(this,1,0)};_.BL=[[1,2,3,4,5,6,7,8,9,10,11,12,13,18,15,16,19,20,21]];_.CL=function(a){_.K.call(this,a,-1,void 0,_.BL)};_.N(_.CL,_.K);_.CL.prototype.Rz=function(){return _.C(this,Cuc,10)};_.Duc=function(a){_.K.call(this,a)};_.N(_.Duc,_.K);var Euc=function(a){_.K.call(this,a)};_.N(Euc,_.K);_.Fuc=function(a){_.K.call(this,a)};_.N(_.Fuc,_.K);_.Guc=function(a){_.K.call(this,a)};_.N(_.Guc,_.K);_.Guc.prototype.getType=function(){return _.Mj(this,1,0)};
_.Huc=[[1,2,3,4,5]];_.Iuc=function(a){_.K.call(this,a,-1,void 0,_.Huc)};_.N(_.Iuc,_.K);_.Iuc.prototype.getUser=function(){return _.C(this,_.utc,1)};var Juc=function(a){_.K.call(this,a)};_.N(Juc,_.K);Juc.prototype.getType=function(){return _.Mj(this,2,0)};Juc.prototype.Ch=function(){return _.E(this,1)};_.Kuc=function(a){_.K.call(this,a)};_.N(_.Kuc,_.K);_.g=_.Kuc.prototype;_.g.getName=function(){return _.E(this,1)};_.g.hd=function(a){return _.jk(this,1,a)};_.g.getTitle=function(){return _.E(this,2)};
_.g.setTitle=function(a){return _.jk(this,2,a)};_.g.Na=function(){return _.C(this,_.Utc,3)};_.Luc=function(a){_.K.call(this,a)};_.N(_.Luc,_.K);_.Luc.prototype.getParent=function(){return _.C(this,_.Utc,4)};_.Luc.prototype.Fg=function(a){return _.J(this,4,a)};_.Muc=[[1,5,3]];_.Nuc=function(a){_.K.call(this,a,-1,void 0,_.Muc)};_.N(_.Nuc,_.K);_.Nuc.prototype.$h=function(){return _.C(this,_.Utc,1)};Ouc=function(a,b){return new _.Rdc(_.Sdc.bound(a,b,void 0,void 0))};
Puc=function(){var a=new _.Xh,b=_.dec().deleteDatabase("GoogleDriveDs");b.onsuccess=function(){a.callback()};b.onerror=function(c){a.Jd(_.lI(c.target,"deleting database GoogleDriveDs"))};b.onblocked=function(){};return a};_.Quc=function(a){_.K.call(this,a)};_.N(_.Quc,_.K);_.Quc.prototype.Cp=function(){return _.B(this,1)};_.Quc.prototype.Od=function(){return _.B(this,2)};_.Quc.prototype.setSize=function(a){return _.y(this,2,a)};_.Quc.prototype.getUrl=function(){return _.B(this,3)};
_.Ruc=function(a){_.K.call(this,a)};_.N(_.Ruc,_.K);_.Ruc.prototype.getType=function(){return _.B(this,1)};Suc=[2,3];_.Tuc=function(a){_.K.call(this,a,-1,Suc)};_.N(_.Tuc,_.K);Uuc=[4,5,6,17,18,24];_.DL=function(a){_.K.call(this,a,-1,Uuc)};_.N(_.DL,_.K);_.DL.prototype.getId=function(){return _.B(this,1)};_.DL.prototype.Ob=function(a){return _.y(this,1,a)};_.DL.prototype.getName=function(){return _.B(this,2)};_.DL.prototype.hd=function(a){return _.y(this,2,a)};
var Vuc=function(a,b){return _.Qj(a,4,b)},Wuc=function(a,b){return _.Qj(a,5,b)};_.DL.prototype.LQ=function(){return _.B(this,8)};_.DL.prototype.getType=function(){return _.B(this,23)};var uoc=function(a){_.K.call(this,a)};_.N(uoc,_.K);var Xuc=[3],EL=function(a){_.K.call(this,a,-1,Xuc)};_.N(EL,_.K);EL.prototype.hq=function(){return _.B(this,1)};var Yuc=function(a,b){return _.y(a,1,b)};EL.prototype.getTitle=function(){return _.B(this,2)};EL.prototype.setTitle=function(a){return _.y(this,2,a)};
EL.prototype.Bd=function(){return _.bk(this,_.dl,3)};var Zuc=function(a,b){return _.Wj(a,3,b)};EL.prototype.oh=function(a,b){return _.dk(this,3,a,_.dl,b)};EL.prototype.V=function(){return _.B(this,4)};var $uc=function(a,b){return _.y(a,4,b)};EL.prototype.O=function(){return _.C(this,_.Mk,5)};var avc=function(a,b){return _.J(a,5,b)},bvc=[2],FL=function(a){_.K.call(this,a,-1,bvc)};_.N(FL,_.K);FL.prototype.Bb=function(){return _.B(this,1)};FL.prototype.Dc=function(a){return _.y(this,1,a)};
FL.prototype.nl=function(){return _.bk(this,EL,2)};var cvc=function(a,b){return _.Wj(a,2,b)};FL.prototype.Wf=function(){return _.B(this,4)};dvc=function(a,b){return _.y(a,4,b)};_.tK=function(a){_.K.call(this,a)};_.N(_.tK,_.K);_.g=_.tK.prototype;_.g.Bb=function(){return _.B(this,1)};_.g.Dc=function(a){return _.y(this,1,a)};_.g.JT=function(){return _.Oj(this,2,void 0,_.fG)};_.g.Zj=function(){return _.B(this,3)};_.g.ef=function(){return _.B(this,5)};_.g.Ei=function(a){return _.y(this,5,a)};
var evc=[1],YK=[[1,2,3,4,5,6,7]],aoc=function(a){_.K.call(this,a,-1,void 0,YK)};_.N(aoc,_.K);var boc=function(a){_.K.call(this,a,-1,evc)};_.N(boc,_.K);var GL=function(a){_.K.call(this,a)};_.N(GL,_.K);GL.prototype.getQuery=function(){return _.C(this,_.gf,1,1)};var fvc=function(a,b){return _.J(a,1,b)};GL.prototype.Xn=function(){return _.B(this,4)};var gvc=function(a,b){return _.J(a,5,b)},hvc=[1,2,5,7,9,10,12,14],HL=function(a){_.K.call(this,a,-1,hvc)};_.N(HL,_.K);
HL.prototype.Bd=function(){return _.bk(this,_.dl,1)};var ivc=function(a,b){return _.Wj(a,1,b)};HL.prototype.oh=function(a,b){return _.dk(this,1,a,_.dl,b)};HL.prototype.Xga=function(a){_.dk(this,2,a,_.Jk,void 0)};var jvc=function(a,b){return _.y(a,3,b)};HL.prototype.Yn=function(){return _.B(this,4)};HL.prototype.Cu=function(a){return _.y(this,4,a)};var kvc=function(a,b){return _.Wj(a,5,b)};HL.prototype.hv=function(){return _.S(this,6)};var lvc=function(a,b){return _.y(a,6,b)};
HL.prototype.Cf=function(){return _.C(this,_.tB,8)};var mvc=function(a,b){return _.Qj(a,12,b)};HL.prototype.Wn=function(){return _.Mj(this,13,0)};var nvc=function(a,b){return _.y(a,13,b)},ovc={zTb:0,yTb:1,mZb:2,x4b:3,A4b:4},WK=[[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]],Znc=function(a){_.K.call(this,a,-1,void 0,WK)};_.N(Znc,_.K);var foc=[[1,2]],eoc=function(a){_.K.call(this,a,-1,void 0,foc)};_.N(eoc,_.K);var ioc=[[1,2,3]],hoc=function(a){_.K.call(this,a,-1,void 0,ioc)};_.N(hoc,_.K);
_.IL=function(a){_.K.call(this,a)};_.N(_.IL,_.K);_.IL.prototype.mY=function(a){_.J(this,1,a)};_.IL.prototype.xr=function(){return _.C(this,_.Yx,2)};_.IL.prototype.wF=function(a){_.J(this,2,a)};pvc=[[5,6]];_.qvc=function(a){_.K.call(this,a,-1,void 0,pvc)};_.N(_.qvc,_.K);_.qvc.prototype.Ph=function(){return _.C(this,Juc,2)};_.qvc.prototype.O=function(a){_.ck(this,5,pvc[0],a)};rvc=[3,4,5];svc=[[6,7]];_.tvc=function(a){_.K.call(this,a,-1,rvc,svc)};_.N(_.tvc,_.K);
_.tvc.prototype.O=function(a){_.ck(this,6,svc[0],a)};var uvc=[1],vvc=function(a){_.K.call(this,a,-1,uvc)};_.N(vvc,_.K);vvc.prototype.my=function(){return _.E(this,2)};var wvc=function(a,b){return 1<a?2===b:a===b},xvc=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("Se");},JL=function(a,b,c,d,e){this.item=a;this.count=void 0===b?0:b;this.H=void 0===c?1:c;this.V=d;this.O=e};_.g=JL.prototype;
_.g.clone=function(){return new JL(this.item.clone(),this.count,this.H,this.V,this.O)};_.g.getId=function(){return this.item.getId()};_.g.hc=function(){return this.count};_.g.getItem=function(){return this.item};_.g.setItem=function(a){this.item=a;return this};_.g.Ry=function(a){this.H=a};_.g.equals=function(a){return this.count===a.hc()&&this.H===a.H&&this.V===a.V&&this.O===a.O&&_.fk(this.item,a.getItem())};yvc=function(a,b){a.O=b;return a};
_.uK=function(a,b,c){this.response=a;this.Qe=void 0===b?0:b;this.L_=void 0===c?null:c};_.Dgc=function(a){this.H=a;this.type=1};zvc=function(){};Avc=function(a){this.H=a};_.Egc=function(a){this.H=a;this.type=0};Foc=function(a,b,c,d,e,f,h,k){this.status=a;this.O=b;this.V=c;this.ka=d;this.ha=e;this.fA=f;this.H=h;this.W=k};_.wK=function(a,b,c){this.response=a;this.Qe=void 0===b?0:b;this.L_=void 0===c?null:c};_.Lgc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};
_.Ogc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};_.xK=function(a,b,c){this.response=a;this.Qe=void 0===b?0:b;this.L_=void 0===c?null:c};_.yK=function(a,b,c,d){this.response=a;this.pageToken=void 0===b?"":b;this.H=void 0===c?!1:c;this.Qe=void 0===d?0:d};_.vK=function(a,b,c,d){this.response=a;this.pageToken=void 0===b?"":b;this.H=void 0===c?!1:c;this.Qe=void 0===d?0:d};Bvc=function(a){_.vK.call(this,a,void 0,void 0,void 0);this.L2a=new _.Cn};_.N(Bvc,_.vK);
var Cvc=function(a,b){this.response=a;this.pageToken=void 0===b?"":b},Dvc=function(a){return[].concat(_.od(new Set(a.map(function(b){return _.efc.get(b)}).filter(function(b){return b})))).join(",")},KL=function(a,b,c){b=void 0===b?[]:b;c=void 0===c?!1:c;b=[].concat(_.od(b));b=Dvc(b);var d=_.tI(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":
_.T(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";_.T(a,77,!1)&&(c+=",canChangeCategoryReferences");
_.T(a,93,!1)&&(c+=",canRemoveSecureLinkUpdateForAllFiles",d+=",removeSecureLinkUpdateForAllFiles");return(b.length?d+","+b:d)+",capabilities("+c+")"},Evc=function(a,b){b=void 0===b?[]:b;return"kind,nextPageToken,items("+KL(a,b,!1)+")"},LL=function(a){return a instanceof _.dl?null!=a.getId()&&a.getId()==a.Ac():null!=a.Cc()&&a.Cc()==a.Ac()},Fvc=function(a,b,c){c=void 0===c?[]:c;var d=a.clone(),e=b.yg();null!=e&&snc(a,e.clone());if((e=b.getCapabilities())&&null!=_.S(e,13)){var f=a.getCapabilities()||
new _.Yk,h=_.S(e,13);_.y(f,13,h);_.WJ(a,f)}e&&null!=_.S(e,18)&&(f=a.getCapabilities()||new _.Yk,e=_.S(e,18),_.y(f,18,e),_.WJ(a,f));TK(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.yg()&&TK(a,d,c)},Gvc=function(a,b,c){c=void 0===c?[]:c;if(!b||!LL(a)&&!LL(b))return a;if(2==a.hv()){c=_.B(a,82);var d=b.clone();Fvc(d,a);_.Phc(d,b.hv());_.HI(d,c);return d}a=a.clone();Fvc(a,b,c);return a},Hvc=function(a){return(a=a?a.yg():null)&&_.S(a,7)||!1},
Ivc=function(a,b){this.V=a;this.items={};this.fields=new Set;this.H={};this.O=new Set;this.W=new Set(b)},Jvc=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]={}})},Lvc=function(a,b,c){b.every(function(d){return LL(d)})?Kvc(b,c,a.H,a.O):b.every(function(d){return!LL(d)})&&Kvc(b,c,a.items,a.fields)},Kvc=function(a,b,c,d){var e=_.qgc(b,[].concat(_.od(d)));0!==e.length&&a.forEach(function(f){e.forEach(function(h){var k=
c[h][f.getId()];k&&TK(f,k,[h])})})};Ivc.prototype.update=function(a,b,c){b&&LL(b)?Mvc(a,b,this.H,this.O,c):Mvc(a,b,this.items,this.fields,c)};Ivc.prototype.vJ=function(a){var b=this;_.Ma(this.items,function(c,d){_.Wa(b.items[d],a)});_.Ma(this.H,function(c,d){_.Wa(b.H[d],a)})};var Mvc=function(a,b,c,d,e){_.Ma(c,function(f,h){h=Number(h);if(e.includes(h))if(f[a]&&!b)_.Wa(f,a);else if(b&&pnc(b,[h])){var k=new _.dl;k.Ob(b.getId());TK(k,b,[h]);f[a]=k}});b&&lnc(b,[].concat(_.od(d)))};
Ivc.prototype.clear=function(){var a=this;_.Ma(this.items,function(b,c){a.items[c]={}});_.Ma(this.H,function(b,c){a.H[c]={}})};Ivc.prototype.log=function(a){this.V.info("drive.ds.sync.cache.FieldsCache",a)};var Nvc=function(a,b,c){var d=this;this.pt=b;this.uv=c;this.Ld=new Map;this.rootId="";a.addCallback(function(e){d.rootId=e})};_.g=Nvc.prototype;_.g.iy=function(){return this.Ld};
_.g.qk=function(a){var b=new Map;a=_.m(a.hn());for(var c=a.next();!c.done;c=a.next())c=c.value,this.Ld.has(c)&&b.set(c,this.Ld.get(c).getItem());return b};_.g.query=function(a,b){var c=[];if(Ovc(a)){for(var d=_.m(this.Ld.values()),e=d.next();!e.done;e=d.next())e=e.value,ML(this.pt,a,e.getItem())&&(void 0===b||wvc(e.H,b))&&c.push(e);this.uv.sort(a,c)}return c};_.g.get=function(a){return this.Ld.get(a)||null};
_.g.getAll=function(a){var b=[];a=_.m(a);for(var c=a.next();!c.done;c=a.next())(c=this.Ld.get(c.value))&&b.push(c);return b};_.g.update=function(a){a.H?(a.H.count++,a.O&&a.O.count--,Pvc(this,a.H)?(this.Ld.delete(a.id),a.H.count--):this.Ld.set(a.id,a.H)):(this.Ld.delete(a.id),a.O.count--)};var Pvc=function(a,b){return 1<b.hc()||wvc(b.H,2)||b.getItem().MI()||Mnc(b.getItem())?!1:"root"!==b.getId()&&b.getId()!==a.rootId};
Nvc.prototype.vJ=function(){for(var a=_.m(this.Ld.values()),b=a.next();!b.done;b=a.next())b=b.value,Pvc(this,b)&&(this.Ld.delete(b.getId()),b.count--)};var Qvc=function(a,b,c,d){this.Og=a;this.W=b;this.O=c;this.V=d},voc=function(a,b){return(b=a.O.get(b))?(b=b.clone(),Lvc(a.V,[b.getItem()],src(a.Og)),b):null};Qvc.prototype.H=function(a){return(a=voc(this,a))?a.getItem():null};
var Rvc=function(a,b){var c={};b.forEach(function(d){var e=voc(a,d);e&&(c[d]=e)});return c},Svc=function(a,b){return _.Oa(Rvc(a,b),function(c){return c.getItem()})},Tvc=function(a,b){b=OL(a.W,b);return a.O.query(b).map(function(c){return c.clone()})};Qvc.prototype.query=function(a){return Tvc(this,a).map(function(b){return b.getItem()})};Qvc.prototype.Od=function(){return this.O.iy().size};
var Uvc=function(a){var b=new Set;a=_.m(a.O.iy().values());for(var c=a.next();!c.done;c=a.next()){c=c.value.getItem();for(var d=_.m(_.el(c)),e=d.next();!e.done;e=d.next())e=e.value,b.add(e.getId()||RK(e));(d=c.xm())&&b.add(d.getId()||RK(d));(d=c.Pt())&&b.add(d.getId()||RK(d));(d=c.Fq())&&b.add(d.getId()||RK(d));(c=c.fD())&&b.add(c.getId()||RK(c))}return b.size},Vvc=function(a){var b=new _.So;_.nK(b,"hidden",_.S(a,4));a=_.S(a,6);null!=a&&_.nK(b,"canRemoveSecureLinkUpdateForAllFiles",a);return b.toString()},
Wvc=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}},Xvc=function(a){var b=_.tcc(),c={};b&&(c.numeric=b);this.H=_.ucc(a,c)};Xvc.prototype.compare=function(a,b,c){b=Yvc(b);c=Yvc(c);a=a.zc();var d=Wvc(a);if(a&&d){d=Zvc(this,a);var e=4===a.getType()?this.H:_.Fa;return $vc(a,d,e,b,c)}return _.Fa(b.getId(),c.getId())};
Xvc.prototype.sort=function(a,b,c){a=a.zc();var d=Wvc(a);a&&d&&(d=Zvc(this,a),d=awc(b,d),_.Ha(b,bwc(this,a,d)));c&&0<c&&_.Ba(b,c,b.length-c)};
var Yvc=function(a){return a instanceof _.dl?a:a.getItem()},Zvc=function(a,b){b=Wvc(b);return _.u(a.O,a,b,_.Fa)},awc=function(a,b){var c={};a.forEach(function(d){d=Yvc(d);var e=d.getId();c[e]=b(d)});return c},bwc=function(a,b,c){return function(d,e){var f=4===b.getType()?a.H:_.Fa;d=Yvc(d);e=Yvc(e);return $vc(b,function(h){return c[h.getId()]},f,d,e)}},$vc=function(a,b,c,d,e){var f=1===a.uf()?1:-1;if(_.S(a,3)){a=VK(d,!0);var h=VK(e,!0);a=a===h?0:a?-1:1}else a=0;return a||f*(c(b(d),b(e))||_.Fa(d.getId(),
e.getId()))};Xvc.prototype.O=function(a,b,c){for(var d=cwc(a[0],c),e=1;e<a.length;e++){var f=cwc(a[e],c);d=1===b(f,d)?f:d}return d};
var cwc=function(a,b){switch(a){case 21:return b.getId()||"";case 3:return b.getMimeType()||"";case 4:return b.UA()||!1;case 12:return b.ez()||0;case 11:return b.hB()||0;case 10:return b.wq()||0;case 2:return(b.getTitle()||"").toLowerCase();case 25:return b.oy()||0;case 57:return _.B(b,62)||0;case 32:return b.Pu()||0;case 9:return b.QC()||0;case 67:return b.QJ()||0;case 98:return b.Xv()||0;default:return""}},dwc=function(a,b){this.fields=a;this.rootId="";this.fields.sort();this.H=b;this.jr=_.NI(_.nI(b));
a=_.DI(b);this.V=!(!a||!_.T(a,1,!1));this.O=!(!a||!_.T(a,8,!1))};dwc.prototype.Cu=function(a){this.rootId=a||""};
var OL=function(a,b,c){b=b.clone();"root"===b.getId()&&b.Ob(a.rootId);_.Hl(b).filter(function(d){return"root"===d.Ya()}).forEach(function(d){return d.Jb(a.rootId)});_.of(b,_.Gl(b).map(function(d){d.Jb(d.Ya().toLowerCase());return d}));c&&_.Fl(b,a.fields);b.O().sort();return b},kL=function(a,b,c){if(b instanceof _.gf){b=OL(a,b);var d=_.njc(b)}else if(b instanceof _.oA)d=b.hn().sort().join(","),_.T(b,5,!1)&&(d+="|cachedOnly");else{if(b instanceof _.hI)return d=Vvc(b),d+"|tdList";if(b instanceof _.eG)return d=
b.hn().sort().join(","),b.O().length&&(d+="|"+Dvc(b.O())),d+"|tdMap";throw Error("We");}return 3===c?d:d+"|"+ewc(a,b.O(),2===c)},ewc=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(_.od(e)).filter(function(h){return f.has(h)}).forEach(function(h){e.delete(h);f.delete(h)});f.size&&(d=d+" - "+_.RI({fields:[].concat(_.od(f)),jr:a.jr}));e.size&&(d=d+" + "+_.RI({fields:[].concat(_.od(e)),jr:a.jr}));
return d};dwc.prototype.equals=function(a,b,c){var d;c&&(d=3);return kL(this,a,d)===kL(this,b,d)};
var asc=function(a){if(!a.hn().every(function(b){return!_.ie(b)}))throw new _.qc("Invalid ids for FindByIdsRequest");},gwc=function(a,b,c){if(_.nJ(b))throw new _.qc("Did not expect a PeoplePredict request. Use peoplePredictQuery() for PeoplePredict requests. ");fwc(a,b,c)},fwc=function(a,b,c){var d;a.O||(d=_.OI(3));if(b.getId())throw new _.qc("Use findByIds() for find by id queries.",d?d:_.OI(3));if(!b.Li()||0>=b.Li())throw new _.qc("A positive limit is required on an ItemQueryRequest.",d?d:_.OI(3));
_.Td(b,33);a.V&&c||(d=a.fields.slice(),c&&(d=d.concat(c)),hwc(a,d,b.O()));if(c=(c=b.zc())&&Wvc(c))d=b.O().length?b.O():a.fields,hwc(a,d,c);if(_.mJ(b)){if(a.jr)throw new _.qc("User must be authenticated for a Quick Access request.");if(!iwc(a)&&20<b.Li())throw new _.qc("Limit must be in the range [1, 20].");c=2===_.aK(b);d=_.Td(b,33).length;if(c&&1!==d||d&&!c)throw new _.qc("A Team Drive Quick Access request must specify the Team Drive corpora and a single Team Drive id.");c=_.Xj(_.Uj(_.Uj(_.Uj(_.WH(_.Uj(_.Vj(_.WH(b.clone(),
1),30),32),33),45),47),48),6);d=new _.gf;if(!_.fk(c,d))throw new _.qc("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: "+Nrc(d,c));}if(_.oJ(b)){if(a.jr)throw new _.qc("User must be authenticated for a DrivePriority request.");if(2===_.aK(b))throw new _.qc("Team Drive corpora is not valid for a Drive Priority request.");a=_.Uj(_.Uj(_.Uj(_.Vj(_.WH(b.clone(),1),30),32),45),52);
b=new _.gf;if(!_.fk(a,b))throw new _.qc("Some fields specified are not valid for a Drive Priority request. Valid: field, request_descriptor, limit, corpora and is_drive_priority_request. Extra: "+Nrc(b,a));}},jwc=function(a,b,c){if(!_.nJ(b))throw new _.qc("Expected a PeoplePredict request.");fwc(a,b,c);if(a.jr)throw new _.qc("User must be authenticated for a People Predict request.");if(2===_.aK(b))throw new _.qc("Team Drive corpora is not valid for a People Predict request.");a=_.Uj(_.Uj(_.Uj(_.Vj(_.WH(b.clone(),
1),30),32),45),49);b=new _.gf;if(!_.fk(a,b))throw new _.qc("Some fields specified are not valid for a People Predict request. Valid: field, request_descriptor, limit, corpora and is_people_predict_request. Extra: "+Nrc(b,a));},hwc=function(a,b,c){var d;a.O||(d=_.OI(3));if(!qnc(b,c,_.ogc)){var e=_.RI({fields:c,jr:a.jr}),f=_.RI({fields:b,jr:a.jr});a=_.RI({fields:rnc(c,b),jr:a.jr});throw new _.qc("Requested field was not previously specified. Needed "+e+", but had "+(f+". Missing: "+a+"."),d?d:_.OI(3));
}},iwc=function(a){return 200<=_.cK(a.H)&&300>_.cK(a.H)},kwc=function(a){var b=new Set;a=_.m(_.Gl(a));for(var c=a.next();!c.done;c=a.next())switch(_.zOa(c.value.Ya())){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(_.od(b))},lwc=function(a){switch(_.cK(a)){case 3:case 12:case 204:return"GOOGLE_DOCS";
case 4:case 13:case 207:return"GOOGLE_SHEETS";case 5:case 14:case 205:case 208:return"GOOGLE_SLIDES";case 6:case 203:return"GOOGLE_FORMS";case 232:return"GOOGLE_MEET";case 8:case 201:return"GOOGLE_SITES";case 229:case 216:return"GOOGLE_CLASSROOM";case 202:case 1:case 9:return"GOOGLE_DRIVE";case 228:return"GOOGLE_GMAIL";case 236:return"GOOGLE_CHAT";default:return"UNSPECIFIED_APPLICATION"}},mwc=function(a){_.O.call(this);this.H=a};_.Qf(mwc,_.O);_.g=mwc.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.xO=function(a){this.H.addCallback(function(b){b.xO(a)})};_.g.send=function(a,b){this.H.addCallback(function(c){c.send(a,b)})};_.g.Za=function(){this.cancel();mwc.wb.Za.call(this)};var Tnc=function(a){_.Iy.call(this);this.H=a;this.V=_.Be(this.H,"message",this.Enb,!1,this)};_.Qf(Tnc,_.Iy);_.g=Tnc.prototype;_.g.Fd=null;
_.g.send=function(a,b){var c=[];b=this.Zxa(c,b);a={serviceName:a,payload:b,"--goog.messaging.PortChannel":!0};_.lfc&&(a=(0,_.zi)(a));this.H.postMessage(a,c)};_.g.Enb=function(a){a=a.De;var b=a.data;if(_.lfc)try{b=JSON.parse(b)}catch(e){return}if(_.Ca(b)&&b["--goog.messaging.PortChannel"]&&"serviceName"in b&&"payload"in b){var c=b.serviceName;b=b.payload;var d=this.getService(c,b);d&&(b=this.O(c,this.oBa(a.ports||[],b),d.aEa),null!=b&&d.callback(b))}};
_.g.Zxa=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,_.u)(this.Zxa,this,a)):b&&b.constructor==Object?_.Oa(b,function(c,d){c=this.Zxa(a,c);return"_port"==d?{type:"escaped",val:c}:c},this):b};
_.g.oBa=function(a,b){return Array.isArray(b)?b.map((0,_.u)(this.oBa,this,a)):b&&b.constructor==Object?b._port&&"real"==b._port.type?a[b._port.index]:_.Oa(b,function(c,d){return this.oBa(a,"_port"==d?c.val:c)},this):b};_.g.Za=function(){_.si(this.V);"[object MessagePort]"==Object.prototype.toString.call(this.H)?this.H.close():"[object Worker]"==Object.prototype.toString.call(this.H)&&this.H.terminate();delete this.H;Tnc.wb.Za.call(this)};
var Wnc=function(a,b){if("*"==b)return new mwc(_.di(Error("Xe")));var c=new _.ui(50),d=_.Db(_.aa,c),e=new _.Xh(d);_.Zh(e,d);c.start();_.Be(c,"tick",function(){var f=new MessageChannel,h=function(){f.port1.removeEventListener("message",h,!0);c.isDisposed()||e.callback(new Tnc(f.port1))};f.port1.start();f.port1.addEventListener("message",h,!0);a.postMessage({"--goog.messaging.PortChannel":!0},b,[f.port2])});return new mwc(e)},nwc=function(a){_.O.call(this);this.H=new _.xdc(a);this.V={};this.O=_.zdc(this.H,
"private");this.W=_.zdc(this.H,"public");this.O.registerService("mics",(0,_.u)(this.Xkb,this),!0)};_.Qf(nwc,_.O);_.g=nwc.prototype;_.g.gEb=0;_.g.Za=function(){_.aa(this.H);delete this.H;delete this.W;delete this.O};_.g.send=function(a,b,c){var d=this.gEb++;this.V[d]=c;c={signature:d};c.data=b;this.W.send(a,c)};_.g.Xkb=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,_.u)(this.Wkb,this,b),!0)};
_.g.Wkb=function(a,b){a=a(b.data);var c=b.signature;_.Sh(a).then((0,_.u)(function(d){var e={};e.data=d;e.signature=c;this.O&&this.O.send("mics",e)},this))};var owc=function(a,b){_.O.call(this);this.W=b;this.started=!1;this.H=new _.xdc(a);this.Ma(this.H);this.O=new nwc(_.zdc(this.H,"direct"));this.Ma(this.O)};_.N(owc,_.O);owc.prototype.registerService=function(a,b){this.O.registerService(a,b)};owc.prototype.send=function(a,b,c){this.O.send(a,b||{},function(d){return(c||_.Lf)(d)})};
var Vnc=function(a,b){owc.call(this,a,b);this.V=new nwc(_.zdc(this.H,"passthrough"));this.Ma(this.V)};_.N(Vnc,owc);var PL=function(a,b,c){a.V.registerService(b,function(d){return c(d)})},QL=function(a,b,c,d){a.V.send(b,c||{},d||_.Lf)};Vnc.prototype.start=function(){this.started||(this.started=!0)};var Qnc=[],pwc=function(){_.Iy.call(this);this.H=null};_.N(pwc,_.Iy);pwc.prototype.send=function(a,b){_.k8a(this.H,a,b)};
var Xnc=function(){this.O=new pwc;this.H=new pwc;var a=this.O;a.H||(a.H=this.H);a=this.H;a.H||(a.H=this.O)},qwc=function(a,b,c,d){this.clientId=a;this.method=b;this.args=c;this.requestId=d||null;this.jc=null},rwc=function(a,b){b=void 0===b?!1:b;null==a.jc&&(a.jc=b)&&Pnc(a.args);return{c:a.clientId,m:a.method,a:a.args,req:a.requestId,s:a.jc}},swc=function(a){var b=new qwc(a.c,a.m,a.a,a.req);b.jc=a.s;return b},twc=function(a,b,c){this.data=b?void 0:a;this.error=b;this.H=c;this.jc=null},uwc=function(a,
b){b=void 0===b?!1:b;null==a.jc&&a.data&&(a.jc=b)&&Pnc(a.data);return{d:a.data,err:a.error&&b?a.error.jc():a.error,uid:a.H,s:b}},vwc=function(a){var b=a.s,c=a.err&&b?new _.pc(JSON.parse(a.err)):a.err;a=new twc(c?void 0:a.d,c,a.uid);c||(a.jc=b);return a},Onc=function(a,b){this.H=a;this.CD=b};Onc.prototype.get=function(){for(var a={},b=0;b<this.H.length;b++)a[this.H[b]]=this.CD[b];return a};
Onc.prototype.jc=function(){for(var a={},b={},c=0;c<this.CD.length;c++){var d=this.CD[c],e=this.H[c];d instanceof Error?b[e]=_.BI(d).jc():a[e]=d.jc()}return{r:a,e:b}};wwc=function(a,b){if(b){var c=[],d=[];_.Ma(a.r,function(e,f){c.push(f);d.push(new _.HJ(JSON.parse(e)))});_.Ma(a.e,function(e,f){c.push(f);e=new _.pc(JSON.parse(e));d.push(_.PI(e))});return new Onc(c,d)}return a};Unc=function(a,b,c,d,e){this.channel=a;this.H=b;this.endpoint=c;this.V=d;this.O=e};
xwc={jSb:0,ESb:1,yYb:3,P5b:5,ihb:6,0:"ACCOUNT",1:"APPS",3:"ITEMS",5:"USER_PREFS",6:"PEOPLE"};_.ZI=function(a){_.K.call(this,a)};_.N(_.ZI,_.K);_.ZI.prototype.Ch=function(){return _.B(this,1)};_.ZI.prototype.xe=function(){return _.C(this,_.tf,3)};_.bJ=function(a){_.K.call(this,a)};_.N(_.bJ,_.K);_.bJ.prototype.Cc=function(){return _.B(this,1)};_.bJ.prototype.xe=function(){return _.C(this,_.tf,3)};_.jJ=function(a){_.K.call(this,a)};_.N(_.jJ,_.K);_.jJ.prototype.Ch=function(){return _.B(this,1)};
_.jJ.prototype.xe=function(){return _.C(this,_.tf,2)};_.kJ=function(a){_.K.call(this,a)};_.N(_.kJ,_.K);_.kJ.prototype.Ch=function(){return _.B(this,1)};_.kJ.prototype.xe=function(){return _.C(this,_.tf,2)};_.lJ=function(a){_.K.call(this,a)};_.N(_.lJ,_.K);_.g=_.lJ.prototype;_.g.Cc=function(){return _.B(this,1)};_.g.wf=function(){return _.B(this,2)};_.g.getType=function(){return _.B(this,3)};_.g.Ya=function(){return _.B(this,4)};_.g.Jb=function(a){return _.y(this,4,a)};
_.g.Ti=function(){return _.Uj(this,4)};_.g.kh=function(){return _.Q(this,4)};_.g.xe=function(){return _.C(this,_.tf,7)};_.sJ=function(a){_.K.call(this,a)};_.N(_.sJ,_.K);_.sJ.prototype.Cc=function(){return _.B(this,1)};_.sJ.prototype.xe=function(){return _.C(this,_.tf,2)};_.sJ.prototype.Li=function(){return _.gk(this,3,1E3)};_.sJ.prototype.ui=function(a){return _.y(this,3,a)};_.vJ=function(a){_.K.call(this,a)};_.N(_.vJ,_.K);_.vJ.prototype.xe=function(){return _.C(this,_.tf,1)};
var ywc=function(){var a=new _.vJ,b=_.uf(new _.tf,301);return _.J(a,1,b)};_.vJ.prototype.Ac=function(){return _.B(this,3)};_.Mgc=function(a){_.K.call(this,a)};_.N(_.Mgc,_.K);_.Mgc.prototype.Ac=function(){return _.B(this,1)};_.zJ=function(a){_.K.call(this,a)};_.N(_.zJ,_.K);_.zJ.prototype.Ch=function(){return _.B(this,1)};_.zJ.prototype.xe=function(){return _.C(this,_.tf,4)};var zwc=function(a){_.K.call(this,a)};_.N(zwc,_.K);Awc=function(a,b){return _.y(a,1,b)};_.$I=function(a){_.K.call(this,a)};
_.N(_.$I,_.K);_.$I.prototype.getId=function(){return _.B(this,1)};_.$I.prototype.Ob=function(a){return _.y(this,1,a)};_.pJ=function(a){_.K.call(this,a)};_.N(_.pJ,_.K);_.pJ.prototype.getId=function(){return _.B(this,1)};_.pJ.prototype.Ob=function(a){return _.y(this,1,a)};_.zgc=function(a){_.K.call(this,a)};_.N(_.zgc,_.K);var Bwc=function(a,b,c){_.P.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};_.N(Bwc,_.P);Bwc.prototype.wB=function(){return this.O};
Bwc.prototype.gQ=function(){var a=this;if(this.W)return this.W;var b=_.Vh();this.W=b.promise;_.n.setTimeout(function(){a.W=null},5E3);Cwc(this,b);return b.promise};Bwc.prototype.ta=function(){!0===this.O&&(this.log("Became unauthenticated."),this.O=!1,this.V=!0,Dwc(this))};Bwc.prototype.va=function(){!1===this.O&&(this.log("Became authenticated."),this.O=!0,this.H=null,this.V=!1,this.timeout&&(_.n.clearTimeout(this.timeout),this.timeout=null),this.dispatchEvent(new fsc("nb")))};
var Ewc=function(a,b){a.ha=b},Dwc=function(a){a.H||(a.H=new _.hkc(5E3),a.timeout=_.n.setTimeout(function(){return Fwc(a)},a.H.Ya()))},Fwc=function(a){Cwc(a);a.H&&(_.RH(a.H),a.timeout=_.n.setTimeout(function(){return Fwc(a)},a.H.Ya()))},Cwc=function(a,b){var c=_.Sh();a.ha&&(c=a.ha());c.then(function(){return Gwc(a,b)})},Gwc=function(a,b){a.log("Checking authentication state.");var c=a.Ba.then(function(d){return d.Ue(new _.Ngc)});b?c.then(function(){b.resolve(Awc(new zwc,1))},function(d){var e=_.uB(d).Sg;
d=0;_.yfc(e)?(a.log("Checked authentication state: unauthenticated."),d=2):(a.log("Checked authentication state: error occurred."),_.hq(e),_.y(e,21,"Checked authentication state: error occurred."),a.ka(e));e=new zwc;Awc(e,d);b.resolve(e)}):c.then(null,function(d){d=_.uB(d);_.yfc(d.Sg)&&a.V&&(a.dispatchEvent(new fsc("ob")),a.V=!1)})};Bwc.prototype.log=function(a){this.ma.info("drive.ds.sync.auth.StateManager",a)};
var Hwc=function(a){return _.C(a,_.uI,3)||_.C(a,_.FJ,4)||_.C(a,_.BK,5)||_.C(a,_.CJ,6)||_.C(a,_.dJ,7)||_.C(a,_.XI,8)||_.C(a,_.aJ,9)||_.C(a,_.EI,10)},Iwc=function(a){_.K.call(this,a)};_.N(Iwc,_.K);_.g=Iwc.prototype;_.g.getId=function(){return _.B(this,1)};_.g.Ob=function(a){return _.y(this,1,a)};_.g.Mz=function(){return _.B(this,3)};_.g.Ne=function(){return _.B(this,4)};_.g.Fi=function(a){return _.y(this,4,a)};var Jwc=function(a){this.Fd=a;this.H=new Map;this.O=this.Fd.W};
Jwc.prototype.create=function(a,b){if(0!=yrc(b)){var c=this.Fd.H(106001);if(c){var d=yrc(b),e=fL(c);_.y(e,2,d);d=fL(c);e=null;if(b instanceof _.qG||b instanceof _.oA||b instanceof _.gf||b instanceof _.qJ||b instanceof _.yD||b instanceof _.eG||b instanceof _.hI||b instanceof _.oI||b instanceof _.gG||b instanceof _.Wz)e=b.xe();e=e&&_.T(e,2,!1);_.y(d,7,"boolean"==typeof e?e:void 0);d=fL(c);b=b instanceof _.gf?0<_.Hl(b).length:void 0;_.y(d,8,b);this.H.set(a,c)}}};
var Kwc=function(a,b,c){if(a=a.H.get(b))a=fL(a),_.y(a,5,c)},Lwc=function(a,b,c){(a=a.H.get(b))&&_.S(fL(a),8)&&(a=fL(a),_.y(a,9,c))},Mwc=function(a,b,c,d,e){var f=a.H.get(b);f&&(fL(f).Dc(c),fL(f).Ei(d),null!=e&&(c=fL(f),_.y(c,6,e)),f.Yj(),a.H.delete(b))},Nwc=function(a,b,c){var d=a.H.get(b);if(d){var e=a.O.Bb(c);c=zrc(c);if(1==e||2==c)e=_.qK(_.ofc,c),d=fL(d),d=3==e||8==e?!_.S(d,5):0!=e?_.Lfc.has(e):null,Mwc(a,b,1,e,d)}},Owc=function(a,b,c){var d=a.O.Bb(c);d=_.qK(_.nfc,d||22);var e=zrc(c);e=_.qK(_.ofc,
e);Mwc(a,b,d,e,"undefined"!=typeof _.uK&&c instanceof _.uK||"undefined"!=typeof _.wK&&c instanceof _.wK||"undefined"!=typeof _.xK&&c instanceof _.xK?c.L_:null)},RL=function(a,b,c){c=void 0===c?3:c;var d=a.H.get(b);d&&(fL(d).Dc(c),d.Yj(),a.H.delete(b))},Pwc=[2,4],SL=function(a){_.K.call(this,a,-1,Pwc)};_.N(SL,_.K);SL.prototype.Bb=function(){return _.B(this,1)};SL.prototype.Dc=function(a){return _.y(this,1,a)};SL.prototype.Zj=function(){return _.B(this,3)};
var Qwc=[4,9],Rwc=function(a){_.K.call(this,a,-1,Qwc)};_.N(Rwc,_.K);_.g=Rwc.prototype;_.g.Bb=function(){return _.B(this,1)};_.g.Dc=function(a){return _.y(this,1,a)};_.g.WUa=function(){return _.B(this,2)};_.g.pLa=function(){return _.B(this,3)};_.g.wrb=function(){return _.bk(this,_.xI,4)};var Swc={w5b:0,X_b:1,$_b:2,Y_b:4,FYb:5,SVb:6,MYb:7,m0b:8},Twc=function(a){_.K.call(this,a)};_.N(Twc,_.K);Twc.prototype.getUrl=function(){return _.B(this,1)};var TL=function(a){_.K.call(this,a)};_.N(TL,_.K);
var Uwc=function(a,b){return _.y(a,1,b)};TL.prototype.getName=function(){return _.B(this,2)};TL.prototype.hd=function(a){return _.y(this,2,a)};TL.prototype.getEmail=function(){return _.B(this,3)};var Vwc=function(a,b){return _.y(a,3,b)};TL.prototype.mp=function(){return _.Q(this,3)};var Wwc=[1],Xwc=function(a){_.K.call(this,a,-1,Wwc)};_.N(Xwc,_.K);var Ywc=function(a,b){return _.Wj(a,1,b)},Zwc=function(a){_.K.call(this,a)};_.N(Zwc,_.K);_.g=Zwc.prototype;_.g.Cc=function(){return _.B(this,1)};
_.g.Bb=function(){return _.B(this,2)};_.g.Dc=function(a){return _.y(this,2,a)};_.g.getError=function(){return _.C(this,_.pc,3)};_.g.Re=function(a){return _.J(this,3,a)};_.g.$n=function(){return _.Q(this,3)};var $wc=[2],UL=function(a){_.K.call(this,a,-1,$wc)};_.N(UL,_.K);UL.prototype.Bb=function(){return _.B(this,1)};UL.prototype.Dc=function(a){return _.y(this,1,a)};UL.prototype.nl=function(){return _.bk(this,_.fG,2)};var axc=function(a,b){return _.Wj(a,2,b)};
UL.prototype.Zj=function(){return _.B(this,3)};var bxc=[1],cxc=function(a){_.K.call(this,a,-1,bxc)};_.N(cxc,_.K);var dxc=function(a,b){return _.Qj(a,1,b)},exc=function(a,b){this.O=a|0;this.H=b|0};exc.prototype.equals=function(a){return this===a?!0:a instanceof exc?this.O===a.O&&this.H===a.H:!1};exc.prototype.Gc=function(){return 31*this.O+17*this.H|0};
var fxc=function(a,b){return new exc(a,b)},gxc=function(a,b){b=~b;a?a=~a+1:b+=1;return fxc(a,b)},hxc=function(a){var b="-"===a[0];a=a.slice(b?3:2);return(b?gxc:fxc)(parseInt(a.slice(-8),16),parseInt(a.slice(-16,-8)||"",16))},ixc=function(){this.H=this.W=this.O=this.V=null},jxc=function(a,b,c){this.id=a;this.O=b;this.H=c},kxc=function(a,b){return new jxc((a?a:b).getId(),a,b)},VL=function(a){return new jxc(a.getId(),null,a)},lxc=function(a){this.W=a;this.O=new Map;this.V=new Set;this.enabled=!0;this.error=
null;this.started=!1},WL=function(a,b,c){if(a.started)throw Error("ff");c={Eo: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)}},XL=function(a,b){if(!a.started)throw Error("gf");if(!a.enabled)throw Error("hf`"+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.Eo.delete(b);if(0===e.Eo.size)try{e.callback()}catch(f){throw a.enabled=
!1,a.error=f?_.PI(f):null,f;}}}};lxc.prototype.H=function(a){return this.V.has(a)};lxc.prototype.start=function(){this.started=!0};lxc.prototype.log=function(a){this.W.info("drive.ds.MilestoneManager",a)};var mxc=function(){_.P.call(this);this.H=Date.now()};_.N(mxc,_.P);mxc.prototype.hF=function(){this.H=Date.now();this.dispatchEvent("Hb")};var nxc=function(a,b){this.pt=a;this.uv=b;this.bH=!0;this.S7=!1;this.Qe=0},YL=function(a,b){(a.bH=b)||a.vJ()};_.g=nxc.prototype;
_.g.zka=function(a,b){if(5===this.vE(a))throw Error("jf");for(var c=[],d=_.m(this.iy()),e=d.next();!e.done;e=d.next())e=e.value,ML(this.pt,a,e.getItem())&&c.push(e);this.uv.sort(a,c,b);return c};_.g.Od=function(){return this.iy().length};_.g.qk=function(a){var b=this.zka(a,void 0);b=noc(b);var c=new _.iB;c.Nw(b);c.Dc(this.JN(a)?6:1);return c};_.g.update=function(a){var b=this.rs(a.O),c=this.rs(a.H);if(!b&&!c)return!1;b&&this.mJ(a.O);c&&this.sR(a.H);return!0};
_.g.vE=function(a){return this.bH&&this.S7?Ovc(a)?1:5:5};_.g.$W=function(){this.S7=!0};_.g.rs=function(a){return!!a&&this.bH};_.g.Ei=function(a){this.Qe=a};_.g.ef=function(){return this.Qe};var ZL=function(a,b,c,d,e,f){f=void 0===f?"":f;nxc.call(this,a,b);var h=this;this.W=c;this.nextPageToken=f;this.Ld=[];this.O={};this.request=OL(c,d,!0);this.H=!e;oxc(this,e);this.V=function(k,l){return h.uv.compare(h.request,k,l)}};_.N(ZL,nxc);_.g=ZL.prototype;_.g.ud=function(){return this.request};
_.g.sR=function(a){var b=this.O[a.getId()];b&&this.mJ(b);dnc(this.Ld,a,this.V);this.O[a.getId()]=a;a.count++;this.Ld.length>this.request.Li()&&(this.mJ(_.ia(this.Ld)),this.H=!1)};_.g.mJ=function(a){var b=this.Ld,c=_.Ga(b,a,this.V);0<=c&&_.ta(b,c);_.Wa(this.O,a.getId());a.count--};_.g.vJ=function(){this.Ld.forEach(function(a){a.count--});this.Ld=[];this.O={}};_.g.iy=function(){return this.Ld};
_.g.vE=function(a){var b;if(b=this.W.equals(this.request,a,!0))a=a.O(),b=this.request.O(),b=qnc(b,a,_.ogc);return b?this.H?1:6:5};_.g.zka=function(a,b){if(5===this.vE(a))throw Error("jf");b=b?Math.min(b,this.Ld.length):this.Ld.length;return _.Aa(this.Ld,0,b)};_.g.rs=function(a){if(!nxc.prototype.rs.call(this,a)||!ML(this.pt,this.request,a.getItem()))return!1;if(this.H||_.T(this.request,48,!1))return!0;var b=_.ia(this.Ld);return!!b&&0>=this.V(a,b)};_.g.JN=function(){return this.H?!1:!0};
_.g.getType=function(){return"CacheHintCorpusCache"};_.g.ql=function(a,b){var c=this,d=_.ia(this.Ld);!this.H&&d&&_.na(a,function(e){return e.getId()===d.getId()})&&(b?(this.mJ(d),oxc(this,_.ia(a))):this.H=!0);_.Ja(a,function(e){c.update(VL(e))})};var oxc=function(a,b){b&&ML(a.pt,a.request,b.getItem())&&a.sR(b)};ZL.prototype.my=function(){return this.nextPageToken};var $L=function(a,b){nxc.call(this,a,b);this.Ld=new Map};_.N($L,nxc);$L.prototype.sR=function(a){this.Ld.set(a.getId(),a);a.count++};
$L.prototype.mJ=function(a){this.Ld.delete(a.getId());a.count--};$L.prototype.vJ=function(){for(var a=_.m(this.Ld.values()),b=a.next();!b.done;b=a.next())b.value.count--;this.Ld=new Map};$L.prototype.iy=function(){return Array.from(this.Ld.values())};var pxc=function(a,b){$L.call(this,a,b);this.$W()};_.N(pxc,$L);_.g=pxc.prototype;
_.g.vE=function(a){var b=this,c=$L.prototype.vE.call(this,a);if(5===c)return c;if(0<_.Td(a,33).length)return 5;a=_.Hl(a);return 0<a.length?a.every(function(d){return(d=b.Ld.get(d.Ya()))&&!d.getItem().Ac()&&d.O})?1:5:5};_.g.rs=function(a){return $L.prototype.rs.call(this,a)&&!(null===a||void 0===a?0:a.getItem().Ac())};_.g.zka=function(a,b){for(var c=[],d=_.m(this.iy()),e=d.next();!e.done;e=d.next())e=e.value,ML(this.pt,a,e.getItem())&&c.push(e);this.uv.sort(a,c,b);return c};_.g.ud=function(){return new _.gf};
_.g.getType=function(){return"MyDriveCorpusCache"};_.g.JN=function(){return!1};var qxc=function(a){return[].concat(_.od(a.Ld.values())).filter(function(b){return b.O}).map(function(b){return b.getId()})},aM=function(a,b,c,d){$L.call(this,a,b);var e=this;this.H=d;WL(c,["aU7Ts","BNEDtc"],function(){return e.$W()})};_.N(aM,$L);
aM.prototype.vE=function(a){var b=this,c=$L.prototype.vE.call(this,a);if(5==c)return c;if(0<_.Td(a,33).length)return 5;a=_.Hl(a);return 0<a.length&&!a.every(function(d){d=b.Ld.get(d.Ya());return null!=d&&!d.getItem().Ac()&&znc(d.getItem())&&!_.S(d.getItem(),108)})?5:1};aM.prototype.rs=function(a){return $L.prototype.rs.call(this,a)&&rxc(this,a.getItem())};var rxc=function(a,b){if(_.S(b,31)||!a.S7)return!0;var c=a.H();return b.kk().some(function(d){var e=a.Ld.get(d);return d==c||null!=e&&znc(e.getItem())})};
aM.prototype.$W=function(){$L.prototype.$W.call(this);for(var a=_.m(this.Ld),b=a.next();!b.done;b=a.next()){var c=_.m(b.value);b=c.next().value;c=c.next().value;rxc(this,c.getItem())||(c.count--,this.Ld.delete(b))}};aM.prototype.ud=function(){return new _.gf};aM.prototype.getType=function(){return"SubscribedCorpusCache"};aM.prototype.JN=function(){return!1};var sxc=/^[\x00-\x7F]*$/,txc=function(){this.rootId=""};txc.prototype.Cu=function(a){this.rootId=a||""};
var Ovc=function(a){return uxc(a)&&0==_.Td(a,40).length&&void 0==_.B(a,41)},uxc=function(a){var b=!0;_.bk(a,_.jf,13).forEach(function(d){"me"!=d.Ya()&&(b=!1)});var c=a.zc();c=!c||5!=c.getType();return 0==_.bk(a,_.Bl,5).length&&0==_.bk(a,_.jf,14).length&&0==_.bk(a,_.jf,15).length&&!_.Q(a,58)&&!_.S(a,18)&&!_.S(a,34)&&0==_.bk(a,_.vl,35).length&&0==_.bk(a,_.vl,38).length&&c&&b&&0==_.Td(a,39).length&&!_.B(a,42)&&0==_.bk(a,_.ul,44).length&&!_.mJ(a)&&!_.nJ(a)&&!_.oJ(a)&&0==_.bk(a,_.wl,57).length&&vxc(a)&&
!_.C(a,_.Noa,59)&&null==_.S(a,60)&&0==_.bk(a,_.jf,68).length&&0==_.bk(a,_.jf,67).length&&null==_.S(a,69)&&!_.S(a,73)},vxc=function(a){return _.bk(a,_.Cl,4).every(function(b){b=b.Ya();return!b||!b.includes("*")&&sxc.test(b)})};txc.prototype.K8=function(a,b){var c=this;return b.filter(function(d){return ML(c,a,d)})};
var ML=function(a,b,c){var d;if(d=!!c)d=c.getId()!=a.rootId&&!LL(c);if(d){d=!0;var e=_.bk(b,_.Cl,4);if(vxc(b))for(var f=0;f<e.length&&d;f++){var h=e[f];if(h.Ya()){var k=_.T(h,3,!1),l=(c.getTitle()||"").toLowerCase(),p=h.Ya().toLowerCase();if(2==_.B(h,1))l=p==l,d=d&&(k?!l:l);else{h=[];if(0<=p.indexOf("-"))for(var q=/\w*-[\w-]*/,r=_.m(p.match(q)||[]),v=r.next();!v.done;v=r.next())h.push(v.value),p=p.replace(q,"");h.push.apply(h,_.od(p.split(/\b/)));for(p=0;p<h.length&&d;p++)q=h[p],r=!0,0!=(0,_.hg)(q).length&&
(0==q.replace(/\./g,"").length&&(r=!1),q=!!l.match(r?new RegExp("(^|[^\\w])"+_.Ng(q)+"($|[^\\w])|(^|[ ])"+_.Ng(q)):new RegExp(_.Ng(q))),d=d&&(k?!q:q))}}}else d=!0}if(d){l=_.Gl(b);e=d=0;k=f=!1;l=_.m(l);for(h=l.next();!h.done;h=l.next())h=h.value,h.Ya()&&(q=c.getMimeType()||"",_.S(h,4)&&(q=(p=c.Pf())&&_.B(p,3)||""),p=_.T(h,2,!1),r=h.Ya(),_.JJ(b)&&(r=r.toLowerCase(),q=q.toLowerCase()),h=0===_.Mj(h,3,0)?r===q:q.includes(r),p?(e++,k=k||h):(d++,f=f||h));d=d&&!f||e&&k?!1:!0}if(d)for(d=!0,e=_.bk(b,_.yl,7),
e=_.m(e),f=e.next();!f.done;f=e.next())f=f.value,k=c.wq(),d=d&&wxc(k,f);if(d)for(d=!0,e=_.bk(b,_.yl,8),e=_.m(e),f=e.next();!f.done;f=e.next())f=f.value,k=c.ez(),d=d&&wxc(k,f);d&&(d=b.Uh(),e=(e=_.aK(b))&&(2==e||3==e),d=null==d||d==!!c.Uh()&&(!d||1==c.$o()||!!e));d&&(d=null==_.S(b,10)||_.S(b,10)==!!c.UA());d&&(d=null==_.S(b,11)||_.S(b,11)==!!_.S(c,6));if(d)a:{d=_.Hl(b);d=_.m(d);for(e=d.next();!e.done;e=d.next())if(e=e.value,e.Ya()&&(f="root"==e.Ya()&&a.rootId||e.Ya(),f=c.kk().includes(f),_.T(e,2,!1)?
f:!f)){d=!1;break a}d=!0}if(a=d)a:{a=_.bk(b,_.jf,13);a=_.m(a);for(d=a.next();!d.done;d=a.next())if(d=d.value,"me"==d.Ya()&&(e=1==c.$o(),_.T(d,2,!1)?e:!e)){a=!1;break a}a=!0}a&&(a=null==_.S(b,16)||(_.S(b,16)?null!=c.oy():!0));a&&(a=_.S(b,17),d=(d=_.aK(b))&&(2==d||3==d),a=null==a||a==!!c.MI()&&(!a||1==c.$o()||!!d));a&&(a=Knc(c),a=null==_.S(b,19)||_.S(b,19)==!!_.al(a));a&&(a=!0);if(a=a&&xxc(b,c)&&yxc(b,c))a=_.Td(b,33),a=!a.length||a.includes(c.Ac()||"");if(a=a&&zxc(b,c))_.B(b,41)?(a=_.C(c,_.TJ,86),a=
null!=a&&_.B(b,41)==_.B(a,3)):a=!0;if(a=a&&Axc(b,c))a=_.aK(b),1==a?(a=_.S(c,31),a=!!_.Hl(b).length||!!_.bk(b,_.vl,35).length||1==_.S(b,18)||_.mJ(b)||_.nJ(b)||_.oJ(b)||!!b.Hp()||null==a||a):a=2==a?!!c.Ac():!0;a&&(a=_.mJ(b)?!!_.gl(c)&&!c.Uh():!0);a&&(a=_.nJ(b)?!!_.hl(c).length&&!c.Uh():!0);a&&(a=_.oJ(b)?!!_.il(c).length&&!c.Uh():!0);a&&(a=_.Q(b,50)?_.T(b,50,!1)?_.Q(c,101)&&0!==_.B(c,101):!_.Q(c,101):!0);a&&(a=b.Hp(),a=!a||_.Td(c,120).includes(a));a&&(c=_.C(c,_.RJ,138),null==_.S(b,65)||null==c?a=!0:
(c=2==_.B(c,1),a=_.S(b,65)==c));return a},wxc=function(a,b){if(null!=_.B(b,2))switch(_.B(b,1)){case 1:return a<=_.B(b,2);case 2:return a<_.B(b,2);case 3:return a==_.B(b,2);case 4:return a>_.B(b,2);case 5:return a>=_.B(b,2);default:return!1}return!0},xxc=function(a,b){var c=_.cb(_.Td(b,56));a=_.bk(a,_.$J,25);return 0==a.length?!0:a.every(function(d){return c[d.Ya()]})},yxc=function(a,b){if(0==a.oB().length)return!0;var c=_.cb(b.oB().map(function(d){return _.B(d,1)}));a=_.cb(a.oB().map(function(d){return _.B(d,
1)}));return _.Pa(a,function(d,e){return c[e]})},zxc=function(a,b){var c=_.cb(_.Td(b,50));a=_.bk(a,_.Al,37);return 0==a.length?!0:a.every(function(d){return c[d.Ya()]})},Axc=function(a,b){if(_.Td(a,40).length){if(b=_.C(b,_.TJ,86)){var c=_.cb(_.Td(b,2));return _.Td(a,40).some(function(d){return c[d]})}return!1}return!0},bM=function(a,b,c,d){d=void 0===d?5E3:d;$L.call(this,a,b);this.teamDriveId=c;this.limit=d};_.N(bM,$L);_.g=bM.prototype;
_.g.vE=function(a){var b=this,c=$L.prototype.vE.call(this,a);if(5==c)return c;c=_.Hl(a);var d=c.every(function(e){var f=e.Ya();return(null!=b.Ld.get(f)||b.teamDriveId==f)&&!_.T(e,2,!1)});if(0<c.length&&d)return 1;a=_.Td(a,33);return 0!=a.length&&a.includes(this.teamDriveId)?1:5};_.g.rs=function(a){return $L.prototype.rs.call(this,a)&&!!a&&a.getItem().Ac()==this.teamDriveId&&!LL(a.getItem())};_.g.JN=function(){return!1};_.g.ud=function(){var a=new _.gf;_.Jl(a,[this.teamDriveId]);_.Kl(a,2);return a};
_.g.Ac=function(){return this.teamDriveId};_.g.getType=function(){return"TeamDriveCorpusCache: "+this.teamDriveId};var Bxc=function(a,b){this.W=a;this.ka=b;this.ha=[];this.O=this.H=null;this.V=[];a=new _.gf;_.y(a,48,!0);b=new _.cd;_.dd(b,11);_.ed(b,2);_.hf(a,b);this.ma=OL(this.W,a,!0)};Bxc.prototype.add=function(a){a instanceof aM?this.H=a:a instanceof pxc?this.O=a:a instanceof ZL?(this.log("Adding new cache hint for "+kL(this.W,a.ud(),2)),this.ha.push(a)):a instanceof bM&&this.V.push(a)};
Bxc.prototype.remove=function(a){var b=this;if(a instanceof aM)this.H&&(YL(this.H,!1),this.H=null);else if(a instanceof pxc)this.O&&(YL(this.O,!1),this.O=null);else if(a instanceof ZL){var c=_.ma(this.ha,function(d){return b.W.equals(d.ud(),a.ud())});0<=c&&(YL(this.ha[c],!1),_.ta(this.ha,c))}else a instanceof bM&&(c=_.ma(this.V,function(d){return b.W.equals(d.ud(),a.ud())}),0<=c&&(YL(this.V[c],!1),_.ta(this.V,c)))};
var Cxc=function(a){var b=[];a.H&&b.push(a.H);a.O&&b.push(a.O);_.za(b,_.xa(a.ha));_.za(b,_.xa(a.V));return b},Dxc=function(a,b){b=void 0===b?!1:b;return a.ha.filter(function(c){return a.H&&b?(c=c.ud().clone(),_.Uj(c,32),_.Xj(c,26),!_.fk(a.ma,c)):!0})};Bxc.prototype.ZV=function(){return _.xa(this.V)};var Exc=function(a,b){return _.fg(a.V,function(c){return c.Ac()===b})},Fxc=function(a,b){return Dxc(a).find(function(c){return a.W.equals(c.ud(),OL(a.W,b,!0))})};
Bxc.prototype.log=function(a,b){this.ka.log("drive.ds.sync.cache.CorpusCacheList",a,void 0===b?"info":b)};var Gxc=function(a,b){_.ki.call(this,"Ib");this.ids=a;this.error=b};_.N(Gxc,_.ki);Gxc.prototype.getError=function(){return this.error};Gxc.prototype.H=function(){return this.ids};var Hxc=function(a){_.ki.call(this,"Jb");this.people=a};_.N(Hxc,_.ki);Hxc.prototype.getPeople=function(){return this.people};var Ixc=function(a){_.ki.call(this,"Kb");this.people=a};_.N(Ixc,_.ki);
Ixc.prototype.getPeople=function(){return this.people};var Kxc=function(a,b,c){c=void 0===c?0:c;this.person=a;this.Qe=c;this.V=this.W=null;this.O=!1;this.H=new Set(b?[b]:[]);6===c&&(this.O=!0);Jxc(this)};Kxc.prototype.ef=function(){return this.Qe};
var Lxc=function(a){return 0===a.Qe?1:2===a.Qe||(1===a.Qe||4===a.Qe)&&(a.person.mp()||a.O)?3:2},Mxc=function(a,b,c){if(_.B(b,1)!==_.B(a.person.clone(),1))return!1;6===c&&(a.O=!0);var d=Lxc(a),e=a.ef();if(4===c?0:1===e?1===c:5===e||6===e||2===e||4===e?0!==c&&e!==c:1)return b=Vwc(b.clone(),a.getEmail(b)),e=!_.fk(a.person,b),a.person=b,a.Qe=c,Jxc(a),e||d!==Lxc(a);if(4===c)return a.Qe=c,Jxc(a),d!==Lxc(a);c=b;return!a.person.getEmail()&&c.getEmail()?(Vwc(a.person,a.getEmail(b)),!0):!1};
Kxc.prototype.getEmail=function(a){var b=this.person.getEmail();a=a.getEmail();return!a&&b&&0!==b.length?b:a};var Jxc=function(a){1===a.Qe?(a.W=Date.now(),a.V=null):4===a.Qe&&(a.V=Date.now())},Oxc=function(a,b,c,d){_.P.call(this);var e=this;this.O=a;this.V=b;this.W=c;this.ha=d;this.H=[];this.ka=new _.eI(function(){return Nxc(e)},100,this)};_.N(Oxc,_.P);Oxc.prototype.Zg=function(a){a&&_.tI(this.O)&&(this.H.includes(a)||this.H.push(a),this.ka.ve())};
var Nxc=function(a){a.ha.then(function(){for(;a.H.length;){var b=a.H.splice(0,50);a.log("Querying for people. Size: "+b.length+". Pending: "+(a.H.length+" "+b));a.sendRequest(b)}})};Oxc.prototype.sendRequest=function(a){var b=this;return this.W.then(function(c){var d=c.Ue;var e=new _.uJ;e=_.Qj(e,1,a);return d.call(c,e)}).then(function(c){c=_.bk(c,TL,1);b.dispatchEvent(new Hxc(c))},function(c){c=_.uB(c);b.dispatchEvent(new Gxc(a,c))})};
Oxc.prototype.log=function(a){this.V.info("drive.ds.sync.query.PeopleQueryRunner",a)};
var Rxc=function(a,b,c,d,e){_.P.call(this);var f=this;this.H=new Map;this.O=new Set;this.V=new Map;this.Qc=new _.Le(this);this.Ma(this.Qc);this.ka=b;this.ha=d;this.ta=_.gk(_.C(a,pqc,85)||new pqc,1,864E5);this.W=new Oxc(a,b,c,e);this.ma=new _.SD(function(){var h,k=null===(h=f.ha)||void 0===h?void 0:Arc(h,106015);if(k){h=_.C(_.pK(k),Zqc,11);if(!h){h=new Zqc;var l=_.pK(k);_.J(l,11,h)}h=_.y(h,1,f.H.size);_.y(h,2,f.O.size);k.Yj()}},500,this);this.Qc.listen(this.W,"Jb",function(h){h=h.getPeople();Pxc(f,
h,1);f.ma.ve()});this.Qc.listen(this.W,"Ib",function(h){Qxc(f,h)})};_.N(Rxc,_.P);Rxc.prototype.get=function(a){var b=this.H.get(a);return b?(Sxc(this,b)&&Txc(this,a),b):null};var Txc=function(a,b){if(!b)return Promise.resolve();if(a.V.has(b))return a.V.get(b).promise;a.W.Zg(b);var c=new _.Cn;a.V.set(b,c);return c.promise};Rxc.prototype.Sb=function(a){var b=this;return Uxc(this,a)?Promise.resolve(this.H.get(a)):Txc(this,a).then(function(){return b.H.get(a)})};
Rxc.prototype.vc=function(){return 0===this.H.size};Rxc.prototype.clear=function(){this.log("Clearing the PeopleCache.");this.H.clear();this.O.clear()};
var Vxc=function(a){return[].concat(_.od(a.H.values())).filter(function(b){return 3===Lxc(b)&&4!==b.ef()}).map(function(b){return b.person.clone()})},Wxc=function(a,b){return(a=a.H.get(b))?[].concat(_.od(a.H)):[]},Xxc=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(_.od(e.H)).length&&(a.H.delete(d),a.O.delete(d)))}},Pxc=function(a,b,c){if(![1,2].includes(c))throw Error("kf");0!==b.length&&(a.log("Importing "+b.length+" from "+
(Object.keys(Swc)[c]+".")),Yxc(a,b,c))},$xc=function(a,b,c,d){0!==b.length&&Zxc(a,b,c,void 0===d?0:d)},Uxc=function(a,b){b=a.H.get(b);return!(!b||3!==Lxc(b)||Sxc(a,b))},Zxc=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=_.B(f,1),k=a.H.get(h);if(k)Mxc(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&&Txc(k,_.B(f,1));l=new Kxc(f,p,l);k.H.set(_.B(f,1),l)}e&&1===d&&(f.getName()?a.O.delete(h):a.O.add(h))}return e},Sxc=function(a,
b){switch(b.ef()){case 1:return Date.now()-Number(b.W)>a.ta;case 4:return 1E3<Date.now()-Number(b.V);default:return!0}};Rxc.prototype.log=function(a,b){this.ka.log("drive.ds.sync.cache.PeopleCache",a,void 0===b?"info":b)};
var Qxc=function(a,b){b=b.H().map(function(c){var d=a.H.get(c);return d?d.person.clone():Uwc(new TL,c)});Yxc(a,b,4)},Yxc=function(a,b,c){for(var d=_.m(b),e=d.next();!e.done;e=d.next()){e=_.B(e.value,1);var f=a.V.get(e);f&&(f.resolve(),a.V.delete(e))}Zxc(a,b,void 0,c)&&a.dispatchEvent(new Ixc(b))},ayc=function(a,b,c,d,e,f){_.P.call(this);var h=this;this.Qc=new _.Le(this);this.Ma(this.Qc);this.H=new Rxc(a,b,c,e,f);this.O=_.DI(a)||new _.Afc;this.Qc.listen(this.H,"Kb",function(k){return h.dispatchEvent(k)})};
_.N(ayc,_.P);ayc.prototype.dP=function(a){var b=this;if(a.H){var c=a.H.getItem(),d=byc(this,[c]).map(function(e){return cyc(b,e)});$xc(this.H,d,a.H.getId(),this.ef(_.B(c,82)))}a.O&&Xxc(this.H,a.id,dyc(this,a))};ayc.prototype.ef=function(a){return _.Sfc.get(a)||0};
var dyc=function(a,b){var c=eyc(a,b.O),d=eyc(a,b.H);return c.filter(function(e){return!d.includes(e)})},eyc=function(a,b){return b?fyc(a,[b.getItem()]):[]},hyc=function(a,b){b=b.getUser();$xc(a.H,[cyc(a,b)],"ACCOUNT");gyc(a,b)},jyc=function(a,b){var c=_.bk(b,_.gK,2).map(function(d){var e=_.C(d,_.Jk,9,1);return a.H.Sb(RK(e)).then(function(){return void iyc(a,[e])})});return Promise.all(c).then(function(){return b})},kyc=function(a,b){iyc(a,byc(a,b))},iyc=function(a,b){b=_.m(b);for(var c=b.next();!c.done;c=
b.next())c=c.value,RK(c)&&gyc(a,c)},lyc=function(a,b,c){for(var d=new Set,e=_.m(b),f=e.next();!f.done;f=e.next())f=f.value,RK(f)&&(d.add(RK(f)),$xc(a.H,[cyc(a,f)],c));return Promise.all([].concat(_.od(d)).map(function(h){return a.H.Sb(h)})).then(function(){return iyc(a,b)})},nyc=function(a,b){return fyc(a,[b]).some(function(c){return!myc(a,c)})},myc=function(a,b){return Uxc(a.H,b)},fyc=function(a,b){var c=new Set;a=byc(a,b);a=_.m(a);for(b=a.next();!b.done;b=a.next())(b=RK(b.value))&&c.add(b);return[].concat(_.od(c))},
byc=function(a,b){return b.map(function(c){var d=c.Wv();d=d?[].concat(_.od(d.eR()),_.od(_.bk(d,_.Jk,3))):[];var e=c.Pf();e=(e=e&&_.Xd(e))?byc(a,[e]):[];return[].concat(_.od(_.el(c)),[c.xm(),c.Pt(),c.Fq(),c.fD()],_.od(d),_.od(e))}).flat().filter(function(c){return c&&!!RK(c)})};ayc.prototype.Hd=function(a){return Wxc(this.H,a).filter(function(b){return"ACCOUNT"!==b})};
var oyc=function(a){return Ywc(new Xwc,Vxc(a.H))},pyc=function(a,b){return b.map(function(c){c=c.clone();var d=byc(a,[c]);d=_.m(d);for(var e=d.next();!e.done;e=d.next())e=e.value,_.Uj(e,3),_.Uj(e,8),_.Uj(e,5);return c})},ryc=function(a,b){return b.some(function(c){return qyc(a,c)})},qyc=function(a,b){return byc(a,[b]).some(function(c){return _.Q(c,3)||c.mp()||_.Q(c,5)})},gyc=function(a,b){var c=a.H.get(RK(b));if(c){a=c.person.clone();var d=_.bhc(b.hd(a.getName()),a.getEmail());c=Lxc(c);_.y(d,16,c);
(a=_.C(a,Twc,4))&&b.Ln(a.getUrl())}},cyc=function(a,b){var c=RK(b);c=Vwc(Uwc(new TL,c).hd(b.getName()),b.getEmail());var d=new Twc;var e=_.B(b,5);d=_.y(d,1,e);c=_.J(c,4,d);_.T(a.O,9,!1)&&(_.Uj(b,3),_.Uj(b,8),_.Uj(b,5));return c},syc=function(){this.suggestionSessionId=this.W=null;this.V=[];this.incompleteSearch=!1;this.O=[];this.H=!0};syc.prototype.Wf=function(){return this.suggestionSessionId};syc.prototype.zza=function(){return this.O};syc.prototype.vc=function(){return this.H};
var tyc=function(a){if(!a)return null;a=a.split("/");return 2>a.length?null:a[1]},uyc=function(a,b){a=tyc(a);b=tyc(b);return!(!a||!b||a!==b)},vyc=function(a){return a.Cc()+"_"+tyc(a.getName())},wyc=function(a,b){var c=_.Td(a,1).map(function(d,e){return b[Number(e)].value.L2a.promise});return Promise.allSettled(c).then(function(d){return _.Td(a,1).map(function(e,f){e=e.toString();var h=new Zwc;e=_.y(h,1,e);f=d[Number(f)];"fulfilled"===f.status?e.Dc(1):(e.Dc(3),e.Re(f.reason.Sg));return e})})},cM=function(a,
b){_.O.call(this);this.O=a;this.request=b;this.Ay=new Set;this.status=6;this.V=new Map;this.Qe=0};_.N(cM,_.O);_.g=cM.prototype;_.g.ji=function(a){var b=this;this.Ay.add(a);return this.resize().then(function(){return b.uO(a)})};_.g.dk=function(a){this.Ay.delete(a);0===this.Ay.size&&this.dispose()};_.g.ef=function(){return this.Qe};_.g.Ei=function(a){this.Qe=a};
_.g.lD=function(a,b,c){var d=this;c=void 0===c?1:c;var e=!1;a.forEach(function(f){e=d.Ju(f,c)||e});b||(e=1!==this.status||e,this.status=1);return e?this.IX():_.Sh([])};_.g.IX=function(){for(var a=[],b=_.m(this.Ay.values()),c=b.next();!c.done;c=b.next())a.push(this.uO(c.value));return _.Uh(a)};
_.g.HX=function(a){this.status=3;for(var b=[],c={},d=_.m(this.Ay.values()),e=d.next();!e.done;c={xqa:c.xqa},e=d.next())c.xqa=e.value,b.push(this.O.then(function(f){return function(h){return void h.HX(f.xqa,a)}}(c)));return _.Uh(b)};_.g.iA=function(){for(var a=this,b=[],c={},d=_.m(this.Ay.values()),e=d.next();!e.done;c={yqa:c.yqa},e=d.next())c.yqa=e.value,b.push(this.O.then(function(f){return function(h){return void h.iA(f.yqa)}}(c)));return _.Uh(b).then(function(){a.Ei(0===a.ef()?1:6)})};
_.g.resize=function(){var a=this;return this.O.then(function(b){var c=0;a.Ay.forEach(function(d){d=b.mka(d);c=Math.max(c,d.Li?d.Li()||0:0)});a.ffa(c)})};var xyc=function(a,b){return b?a.V.get(a.Uja(b))||null:null};_.g=cM.prototype;_.g.$H=function(a,b){var c=xyc(this,a);b=xvc(c,b);this.V.set(this.Uja(a),b)};_.g.Uja=function(a){return a};_.g.qLa=function(){return[]};_.g.uO=function(a){var b=this;return this.O.then(function(c){return void c.uO(a,b.qk())})};_.g.removeItem=function(){};
var dM=function(a,b){_.P.call(this);this.request=a;this.pageToken="";this.H=this.O=!1;this.data=[];this.limit=0;this.W=b};_.N(dM,_.P);var yyc=function(a){return!a.O||""!==a.pageToken};dM.prototype.Zg=function(a){this.limit=void 0===a?1E5:a;return!this.H&&this.data.length<=this.limit&&yyc(this)?zyc(this):_.Sh()};
var zyc=function(a){a.O=!0;a.H=!0;var b=a.Vha(a.request,a.limit-a.data.length,a.pageToken);return a.W(b).then(function(c){return Ayc(a,c)},function(c){return a.handleError(c)})},Ayc=function(a,b){a.H=!1;a.pageToken=a.gka(b);b=a.xja(b);b.forEach(function(c){return a.data.push(c)});a.U5(b);return a.data.length<a.limit&&yyc(a)?_.Uh([_.Sh(b),zyc(a)]).then(function(c){return c[0].concat(c[1])}):_.Sh(b)};
dM.prototype.handleError=function(a){this.H=!1;a=_.BI(a);var b=new iL(a);this.rLa(b);this.dispatchEvent(b);return _.Th(a)};dM.prototype.U5=function(){};dM.prototype.rLa=function(){};var Byc=function(a,b,c){dM.call(this,c,function(d){return a.then(function(e){return e.Ue(d)}).Gg(function(e){return void _.QI(e)})});this.V=b};_.N(Byc,dM);_.g=Byc.prototype;_.g.Vha=function(a,b,c){a=a.clone();a.ui(b);return new _.Bgc(a,c)};_.g.gka=function(a){return a.pageToken||""};_.g.xja=function(a){return a.response.O()};
_.g.U5=function(a){this.V.lD(a,!1,1)};_.g.rLa=function(a){this.V.qB(this.request,a)};var Cyc=function(a,b,c,d){cM.call(this,a,d.clone());this.ha=b;this.W=c;this.data=[];this.H=null};_.N(Cyc,cM);_.g=Cyc.prototype;_.g.refresh=function(){this.iA();this.H=new Byc(this.ha,this.W,this.request);return this.H.Zg(this.request.Li()||100)};_.g.Cp=function(a){return this.data.find(function(b){return uyc(b.getName(),a)})};
_.g.ffa=function(a){this.H&&a===this.request.Li()||(this.request.ui(a),this.H?this.H.Zg(a):this.refresh())};_.g.qk=function(){var a=this,b=itc((new uL).Dc(this.status),this.data.filter(function(c){return a.W.oCa(c)}).map(function(c){return c.clone()}));return new _.vK(b,void 0,void 0,this.ef())};_.g.lD=function(a,b,c){var d=this;a=a.filter(function(e){return e.Cc()===d.request.Cc()});return cM.prototype.lD.call(this,a,b,c)};
_.g.Ju=function(a,b){b=void 0===b?1:b;if(!Inc(xyc(this,a.getName()),b))return!1;var c=-1===b?0:this.data.length,d=this.data.findIndex(function(e){return uyc(e.getName(),a.getName())});-1<d&&(this.data.splice(d,1),c=d);this.data.splice(c,0,a);this.$H(a.getName(),b);return!0};_.g.removeItem=function(a){_.va(this.data,function(b){return uyc(b.getName(),a)})&&(this.V.delete(this.Uja(a)),this.IX())};_.g.Uja=function(a){return tyc(a)};_.g.$H=function(a,b){this.Cp(a)&&cM.prototype.$H.call(this,a,b)};
_.g.qLa=function(a){var b=this;return a instanceof _.AJ&&a.Cc()===this.request.Cc()?a.DV().map(function(c){return b.Cp(c.an())}).filter(function(c){return!!c}).map(function(c){return c.clone()}):[]};var eM=function(){this.H=new Map};eM.prototype.ji=function(a,b){var c=this.getKey(b),d=this.H.get(c),e=!d;d||(d=this.Xha(b),this.H.set(c,d));d.ji(a);return e};var Dyc=function(a,b,c){var d=a.getKey(c),e=a.H.get(d),f=!e;e||(e=a.xwa(c),a.H.set(d,e));e.ji(b);return f};
eM.prototype.dk=function(a,b){var c=this.H.get(this.getKey(b));c&&(c.dk(a),c.isDisposed()&&this.H.delete(this.getKey(b)))};var Eyc=function(a,b,c){var d=a.H.get(a.getKey(c));d&&(d.dk(b),d.isDisposed()&&a.H.delete(a.getKey(c)))},Fyc=function(a,b){return a.H.get(b)};eM.prototype.lD=function(a,b,c){var d=this;c=void 0===c?1:c;var e=a.filter(function(f){return d.oCa(f)});this.H.forEach(function(f){f.lD(e,b,c)})};eM.prototype.removeItem=function(a,b){b=b?this.H.get(b):null;(b?[b]:this.H).forEach(function(c){c.removeItem(a)})};
var Gyc=function(a,b){a=Array.from(a.H.values()).map(function(c){return c.qLa(b)});return[].concat.apply([],_.od(a))};eM.prototype.$H=function(a,b){this.H.forEach(function(c){c.$H(a,b)})};eM.prototype.oCa=function(){return!0};eM.prototype.qB=function(a,b){(a=this.H.get(this.getKey(a)))&&a.HX(b)};eM.prototype.A2=function(a,b,c,d){var e=this.getKey(b),f=this.H.get(e);f||(f=this.Xha(b),f.Ei(c),this.H.set(e,f),this.lD(a,d))};var Hyc=function(){this.V=new Set;this.O=0;this.H=[]},Iyc=function(a,b){a.V.add(b)};
Hyc.prototype.W=function(a){this.V.delete(a)};var Jyc=function(a,b){var c;if(c=b instanceof _.dl)c=b.Xv(),c=!!(b.Uh()&&c&&c<=Math.max.apply(Math,_.od([a.O].concat(_.od(a.H)))));if(c)return!0;b=b instanceof _.dl?b.getId():b;return a.V.has(b)},Kyc=function(a,b){return _.va(a.H,function(c){return c===b})&&b>a.O?(a.O=b,!0):!1};Hyc.prototype.K8=function(a){var b=this;return a.filter(function(c){return!Jyc(b,c)})};var Lyc=function(a,b){this.H=new Map;this.V=a;this.W=b;this.O=new Hyc};_.N(Lyc,eM);
var Myc=function(a,b){Iyc(a.O,vyc(b));(a=Fyc(a,b.Cc()))&&a.IX()};_.g=Lyc.prototype;_.g.getKey=function(a){return a.Cc()};_.g.Xha=function(a){return new Cyc(this.V,this.W,this,a)};_.g.xwa=function(a){return new Cyc(this.V,this.W,this,a)};_.g.Qo=function(a){a=_.m(a);for(var b=a.next();!b.done;b=a.next())(b=b.value.getItem())&&(b=Fyc(this,b.getId()))&&b.refresh()};_.g.oCa=function(a){return!Jyc(this.O,vyc(a))};
var Nyc=function(a,b){this.O=a;this.H=b},Oyc=function(a,b){b=_.QWb(b);var c=new Byc(a.O,a.H,b);new Promise(function(d,e){return c.Zg(100).then(d,e)})},Pyc=function(){this.Ld={}},fM=function(a,b){Qyc(a,"subscribed");b&&Qyc(a,b);return a.Ld[b||"subscribed"].oe.promise},Qyc=function(a,b){a.Ld[b]||(a.Ld[b]={count:0,yR:[],P0a:[],oe:_.Vh()});a.Ld[b].count++},Syc=function(a,b){b&&!Ryc(a,b)||Ryc(a,"subscribed")},Ryc=function(a,b){if(!a.Ld[b])return!1;a.Ld[b].count--;0===a.Ld[b].count&&(a.Ld[b].oe.resolve({items:a.Ld[b].yR,
KJb:a.Ld[b].P0a}),_.Wa(a.Ld,b));return!0};Pyc.prototype.Qo=function(a,b){var c=this,d=b||"subscribed";a.forEach(function(e){var f=e.Ac();f&&f===e.Cc()&&c.Ld[f]&&c.Ld[f].P0a.push(e);c.Ld[d]&&c.Ld[d].yR.push(e)})};var Tyc=function(a,b,c){dM.call(this,a,c);this.V=b};_.N(Tyc,dM);Tyc.prototype.Vha=function(a,b){return a.clone().ui(b)};Tyc.prototype.gka=function(){return""};Tyc.prototype.xja=function(a){return[a]};Tyc.prototype.U5=function(a){this.V(a)};
var Uyc=function(a,b,c,d){cM.call(this,a,d.clone());this.ha=b;this.H=this.PS=null;this.W=c};_.N(Uyc,cM);Uyc.prototype.refresh=function(){var a=this;this.iA();this.H=new Tyc(this.request,this.W,function(b){return a.ha.then(function(c){return c.Ue(b)})});return this.H.Zg(this.request.Li()||0)};Uyc.prototype.ffa=function(a){1===this.status||this.H&&a===this.request.Li()||(this.request.ui(a),this.H?this.H.Zg(a):this.refresh())};
Uyc.prototype.qk=function(){if(this.PS)return this.PS;var a=new FL;a.Dc(this.status);return a};Uyc.prototype.Ju=function(a){this.PS=a;return!0};var Vyc=function(a,b,c){this.H=new Map;this.O=a;this.W=b;this.V=c};_.N(Vyc,eM);_.g=Vyc.prototype;_.g.log=function(a){this.V.info("drive.ds.sync.cache.SuggestedWorkspaceCacheManager",a)};_.g.getKey=function(a){return a.toString()};_.g.Xha=function(a){var b=this;return new Uyc(this.O,this.W,function(c){b.lD(c,!1)},a)};_.g.xwa=function(){throw Error("lf");};
_.g.A2=function(a,b,c,d){var e=a[0].nl();this.log("Initialized "+e.length+" suggested workspaces: "+e.map(function(f){return f.hq()}).join(", "));eM.prototype.A2.call(this,a,b,c,d)};var Wyc=function(a,b,c,d){_.P.call(this);this.request=a;this.Ba=b;this.ta=c;this.va=d;this.ma=0;this.oe=null;this.O=new Set};_.N(Wyc,_.P);
Wyc.prototype.Zg=function(){var a=this;if(this.oe)return this.oe.promise;this.oe=_.Vh();for(var b={},c=_.m(this.W(this.request)),d=c.next();!d.done;b={Mqa:b.Mqa,pea:b.pea},d=c.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;b.pea=d;b.Mqa=e;this.ma++;this.Ba.then(function(f){return function(h){return h.Ue(f.Mqa)}}(b)).then(function(f){return function(h){var k=f.pea;a.V(h);Xyc(a,k)}}(b),function(f){return function(h){return void a.handleError(f.pea,h)}}(b))}return this.oe.promise};
var Xyc=function(a,b){a.O.add(b);a.O.size===a.ma?(a.ha(a.request),a.dispatchEvent("Da"),a.oe.resolve()):a.dispatchEvent("Aa")};Wyc.prototype.handleError=function(a,b){b=_.uB(b);var c=b.Sg;5===c.Xs()||4===c.lk()?(this.va.info("drive.ds.sync.query.SimpleFindByIdsRunner","Deleting "+a+" due to: "+b.message),this.ka(a),Xyc(this,a)):(a=new iL(c,_.gk(this.ta.$f(),1,1)),this.dispatchEvent(a),this.oe.reject(b))};
var Yyc=function(a){var b=new _.fG;b.Ob(a);return b},Zyc=function(a,b,c,d,e){Wyc.call(this,a.clone(),c,d,e);this.H=b};_.N(Zyc,Wyc);Zyc.prototype.W=function(a){var b=new Map;a.hn().forEach(function(c){var d=_.RVb(a.clone(),[c]);b.set(c,d)});return b};Zyc.prototype.V=function(a){var b=[];a.JT().forEach(function(c){b.push(c)});this.H(b,!0)};Zyc.prototype.ha=function(){this.H([],!1)};Zyc.prototype.ka=function(a){this.H([Yyc(a)],!0)};
var $yc=function(a,b,c,d,e,f){cM.call(this,a,f.clone());this.ma=b;this.W=c;this.ka=d;this.ha=e;this.Wk={};this.H=null};_.N($yc,cM);$yc.prototype.refresh=function(){this.H=new Zyc(this.request,this.ha,this.ma,this.W,this.ka);return this.H.Zg()};$yc.prototype.ffa=function(){this.H||this.refresh()};$yc.prototype.qk=function(){var a=new _.tK;a.Dc(this.status);_.Ma(this.Wk,function(b,c){a.JT().set(c,b||new _.fG)});a.Ei(this.ef());return a};
$yc.prototype.Ju=function(a){var b=a.getId();if(_.fk(a,Yyc(a.getId()))){if(this.Wk[b])return delete this.Wk[b],!0}else if(0<=this.request.hn().indexOf(b))return this.Wk[b]=a,!0;return!1};var azc=function(a,b){a=a.getState();return null==a||b.getState()==a},bzc=function(a,b,c){dM.call(this,a,c);this.V=b};_.N(bzc,dM);bzc.prototype.Vha=function(a,b,c){a=a.clone();a.ui(b);return new _.Ogc(a,c)};bzc.prototype.gka=function(a){return a.pageToken||""};bzc.prototype.xja=function(a){return a.response.nl()};
bzc.prototype.U5=function(a){this.V(a)};var czc=function(a){this.H=_.ucc(a,{numeric:!0})};czc.prototype.O=function(a,b,c){var d=b.getTitle()||"",e=c.getTitle()||"",f;d!==e?f=this.H(d,e)*(a?1:-1):f=_.Fa(b.getId(),c.getId())*(a?1:-1);return f};czc.prototype.V=function(a,b,c){var d=_.B(b,4),e=_.B(c,4),f;d!==e?f=_.Fa(d,e)*(a?1:-1):f=_.Fa(b.getId(),c.getId())*(a?1:-1);return f};
var dzc=function(a,b,c,d,e){cM.call(this,a,e.clone());this.ha=b;this.Wk=[];this.H=null;this.W=d;a=new czc(c);b=(c=this.request.ww())?c.getType():0;c=c?c.uf():0;this.ka=1===b?a.O.bind(a,2!==c):a.V.bind(a,1===c)};_.N(dzc,cM);dzc.prototype.refresh=function(){var a=this;this.iA();this.H=new bzc(this.request,this.W,function(b){return a.ha.then(function(c){return c.Ue(b)})});return this.H.Zg(this.request.Li()||0)};
dzc.prototype.ffa=function(a){1===this.status||this.H&&a===this.request.Li()||(this.request.ui(a),this.H?this.H.Zg(a):this.refresh())};dzc.prototype.qk=function(){var a=new UL;a.Dc(this.status);axc(a,this.Wk.map(function(b){return b.clone()}));return new _.yK(a,void 0,1!==this.status&&yyc(this.H),this.ef())};dzc.prototype.Ju=function(a){var b=_.va(this.Wk,function(c){return c.getId()===a.getId()});return a&&azc(this.request,a)&&!_.fk(a,Yyc(a.getId()))?dnc(this.Wk,a,this.ka):b};
var ezc=function(a,b,c,d){this.H=new Map;this.V=a;this.ha=b;this.W=c;this.O=d};_.N(ezc,eM);_.g=ezc.prototype;_.g.log=function(a){this.W.info("drive.ds.sync.cache.WorkspaceCacheManager",a)};_.g.getKey=function(a){return a.toString()};_.g.Xha=function(a){var b=this;return new dzc(this.V,this.ha,cL(_.nI(this.O)),function(c){return void b.lD(c,!1)},a)};_.g.xwa=function(a){var b=this;return new $yc(this.V,this.ha,this.O,this.W,function(c,d){return b.lD(c,d)},a)};
_.g.A2=function(a,b,c,d){this.log("Initialized "+a.length+" items for workspaces: "+a.map(function(e){return e.getId()}).join(", "));eM.prototype.A2.call(this,a,b,c,d)};
var fzc=function(a,b){b=void 0===b?!1:b;var c=a.getMimeType();UK(a)&&(c=(c=a.Pf())?_.B(c,3):"");VK(a)&&(a.Wi()&&(c+="+"+String(a.Wi())),a.Fj()&&(c+="+shared"));return _.WTa(c,b?"32":"16")},gzc=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("&")},hzc=function(a,b){var c=_.S(a,44),d=a.Pf();if(d){if(1!==_.$d(d))return null;c=(c=_.Xd(d))?_.S(c,44):!0}if(!c)return null;c={};d=a.getId();UK(a)&&(d=ync(a));
d=[_.E(b,65,"https://lh3.google.com"),"u",_.CI(_.nI(b)),"d",d].join("/");d+="={size}";_.T(b,89,!1)&&_.Q(a,140)&&(c.resourcekey=_.kl(a));return d=gzc(d,c)},izc=function(a){this.H=a},kzc=function(a,b,c){if(c.includes(20)&&c.includes(3)){var d=fzc(b,_.T(a.H,75,!1));_.y(b,21,d)}c.includes(18)&&_.Jhc(b,poc(b,a.H));c.includes(19)&&(d=hzc(b,a.H),_.y(b,20,d));jzc(a,b,c);if(UK(b)){if(d=(d=b.Pf())&&_.Xd(d)){if(c.includes(20)&&c.includes(3)){var e=fzc(d,_.T(a.H,75,!1));_.y(d,21,e)}c.includes(18)&&_.Jhc(d,poc(d,
a.H));c.includes(19)&&(e=hzc(d,a.H),_.y(d,20,e));jzc(a,d,c)}_.Nhc(b,!!b.Px())}},jzc=function(a,b,c){var d=c.includes(41);c=c.includes(42);if(d||c){var e=b.getMimeType();e&&(e=!VK(b)&&!UK(b)&&!_.Hd(e)&&(!b.N6()||2!==b.$o()),d&&_.y(b,40,e),e&&c&&(a=a.H,d=b.getId(),UK(b)&&(d=ync(b)),c=new _.gj(_.E(a,16,"")+"/uc"),_.oj(c,"id",d),_.oj(c,"authuser",_.CI(_.nI(a))),_.oj(c,"export","download"),_.T(a,89,!1)&&_.Q(b,140)&&_.oj(c,"resourcekey",_.kl(b)),_.y(b,41,c.toString())))}},lzc=function(a,b){this.fia="";
this.startTime=b||new Date;this.zda=a;this.E$=fnc(a)};lzc.prototype.clone=function(){return new lzc(this.zda,this.startTime)};var mzc=function(){this.H=null;this.yY=[]},nzc=function(a){return _.ef(a.yY,function(b){return _.$a(b)})};mzc.prototype.qN=function(){return this.H};
mzc.prototype.O=function(a,b,c){if(this.H){var d=this.H;if(!a["X-Google-DapperTraceInfo"]){var e=new ixc;e.V=hxc(d.E$);var f=_.Rg().substring(0,8);d=fnc(f);f=(new Iwc).Ob(f);f=_.y(f,2,d);b=_.y(f,3,b).Fi(c);this.yY.push(b);e.O=hxc(d);e.H=fxc(808464432,808464432);e.W=41;b=String.fromCharCode;c=b.apply;d=new _.rk;if(e.V){f=e.V.O>>>0;var h=e.V.H>>>0;_.sk(d,1,1);var k=d.O;Uoc(k,f);Uoc(k,h)}e.O&&(f=e.O.O>>>0,h=e.O.H>>>0,_.sk(d,2,1),k=d.O,Uoc(k,f),Uoc(k,h));f=e.W;null!=f&&(_.sk(d,3,5),Uoc(d.O,f));e.H&&(f=
e.H.O>>>0,e=e.H.H>>>0,_.sk(d,4,1),h=d.O,Uoc(h,f),Uoc(h,e));e=_.tk(d);a["X-Google-DapperTraceInfo"]=_.n.btoa(c.call(b,null,e))}}};var ozc=function(){this.Db=[];this.O=this.H=0};ozc.prototype.discard=function(a){for(var b=this.H,c=this.O,d=this.Db,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 pzc=function(a,b){if(!c)var c=b.length;for(var d=a.H,e=a.O,f=a.Db,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},qzc=function(a){this.key=a;this.H=new _.Pfc;this.O=new _.Nfc(new _.Pfc,_.xma(a))};qzc.prototype.encrypt=function(a){for(var b=[],c=0;16>c;c++)b[c]=Math.floor(256*Math.random());b=Mrc(b);c=rzc(this,a);return b.concat(c,szc(this,b,a,!0))};
var tzc=function(a,b){var c=szc(a,b.substring(0,16),b.substring(36),!1);b=b.substring(16,36);a=rzc(a,c);if(b!==a)throw Error("mf");return c},rzc=function(a,b){a=_.Ofc(a.O,_.kgc(b));return Mrc(a)},szc=function(a,b,c,d){a.H.reset();a.H.update(b);a.H.update(a.key);b=new ozc;a=a.H.digest();if(!e)var e=a.length;for(var f=b.Db,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=_.kgc(c.substring(8192*
e,8192*(e+1))),pzc(b,a),d+=Mrc(a);return d}d=[];for(e=0;e<c.length/8192;e++){a=c.substring(8192*e,8192*(e+1));f=_.n.Uint8Array?new Uint8Array(a.length):Array(a.length);for(h=0;h<a.length;h++)f[h]=a.charCodeAt(h)&255;a=f;pzc(b,a);d.push(a)}if(d.length){for(c=0;c<d.length-1;c++)if(8192!==d[c].length)throw Error("nf");c=8192*(d.length-1)+d[d.length-1].length;b=Array(c);for(a=e=0;e<c;)f=uzc(d,e++),128>f?b[a++]=String.fromCharCode(f):191<f&&224>f?(h=uzc(d,e++),b[a++]=String.fromCharCode((f&31)<<6|h&63)):
239<f&&365>f?(h=uzc(d,e++),k=uzc(d,e++),l=uzc(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=uzc(d,e++),k=uzc(d,e++),b[a++]=String.fromCharCode((f&15)<<12|(h&63)<<6|k&63));b.length=a;d=b.join("")}else d="";return d},uzc=function(a,b){return a[Math.floor(b/8192)][b%8192]},vzc=function(a,b,c){this.data=a;this.CYa=b;this.H=c;this.isEncrypted=!1};vzc.prototype.getData=function(){return this.data};
vzc.prototype.Nm=function(){return this.CYa};var wzc=function(a,b,c,d){this.O=a;this.H=_.Vh();this.So=!1;this.V=_.E(b,7,"");this.W=_.gk(_.dL(b),6,2E7);this.BG=_.tI(b);this.ha=_.gk(_.dL(b),12,0);this.ka=c;this.Fd=d||null};wzc.prototype.initialize=function(){var a=this;this.So||(this.So=!0,this.O.initialize().then(function(){a.H.resolve()},function(b){a.H.reject(b)}));return _.ci(this.H.promise)};
wzc.prototype.eB=function(a){if(a instanceof _.tB)return 0;if(a instanceof SL)return 1;if(a instanceof dsc)return 5;if(a instanceof HL)return 3;if(a instanceof Xwc)return 6;throw new _.qc("Unsupported dataShard in getDataType");};var xzc=function(a){if(0==a)return _.tB;if(1==a)return SL;if(5==a)return dsc;if(3==a)return HL;if(6==a)return Xwc;throw new _.qc("Unsupported dataType:"+a+" in getDataTypeCtor");};wzc.prototype.Wn=function(a){if(a instanceof HL)return a.Wn()};
wzc.prototype.Nm=function(a){if(a instanceof HL)return a.Bd().length};wzc.prototype.hv=function(a){if(a instanceof HL)return a=a.hv(),null!=a?a:void 0};
var Czc=function(a,b,c,d){if(0==c.length)return _.Sh();for(var e=a.eB(c[0]),f=_.m(c),h=f.next();!h.done;h=f.next())a.eB(h.value);var k=a.Wn(c[0]),l=0;3==e&&yzc(a,c);var p=!!b;return zzc(a,c).then(function(q){if(p){var r=a.Fd?a.Fd.H(106023,d):null;l=q.reduce(function(z,A){(A=A.Nm())&&(z+=A);return z},0);var v=Azc(a,b,q.map(function(z){return z.getData()})).then(function(z){if(z.length!=q.length)return _.Th(Error("of"));z=_.m(z.entries());for(var A=z.next();!A.done;A=z.next()){var D=_.m(A.value);A=
D.next().value;D=D.next().value;A=q[A];A.data=D;A.isEncrypted=!0}return q});r&&(erc(drc(crc(gL(r),_.qK(_.ufc,e)),_.qK(_.rfc,k)),!0),v.then(function(){var z=l;brc(gL(r),!0).Bt(z);r.Yj()},function(){var z=l;brc(gL(r),!1).Bt(z);r.Yj()}));return v}return q}).then(function(q){return a.H.promise.then(function(){return Bzc(a.O,q,e,k,p,d)})})},zzc=function(a,b){return new _.Rh(function(c,d){var e=!1,f=[];b.forEach(function(l){if(!e){var p=l.jc();p.length>a.W?e=!0:f.push(new vzc(p,a.Nm(l),a.hv(l)))}});if(e){var h=
Error("pf"),k=new _.pc;_.zI(k,2);_.LI(k,23);_.y(k,21,h.message);_.hq(k);a.ka(k);d(h)}c(f)})},yzc=function(a,b){a.Wn(b[0]);for(var c=_.m(b),d=c.next();!d.done;d=c.next())a.Wn(d.value);a.BG||Dzc(b);if(a.ha)for(a=a.ha,c=b.length-1;0<=c;c--)if(b[c].Wn()){d=[];for(var e=b[c].Bd();e.length>a;){var f=_.Ba(e,a-1,a);f=ivc(new HL,f);d.push(f)}ivc(b[c],e);d.length&&_.Db(_.Ba,b,c+1,0).apply(null,d)}},gM=function(a,b,c,d,e,f){var h=_.Vh(),k;_.Wh(a.H.promise.then(function(){return Ezc(a.O,c,d,e)}).then(function(l){var p=
l.map(function(r){return r.data}),q=new _.Xh;if(l[0]&&l[0].z0){if(k=a.Fd?a.Fd.H(106022,f):null)erc(drc(crc(gL(k),_.qK(_.ufc,c)),_.qK(_.rfc,d)),!0),q.Wm().then(function(r){var v=k;r=void 0!=r;brc(gL(v),r);_.pjc(v)});Fzc(a,q,b,p)}else q.callback(p);return _.Sh(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 (xzc(c))(JSON.parse(r)),q+=a.Nm(r),p.push(r);3==c&&(a.BG||Gzc(p),Hzc(p));k&&gL(k).Bt(q)}h.resolve(p)}),function(){k&&k.Yj()}).Gg(h.reject,
h);return h.promise},Dzc=function(a){if(a.length){for(var b=0;b<a.length;b++)if(_.bk(a[b],_.Jk,2).length)return;b=new Map;for(var c=new Map,d=_.m(a),e=d.next();!e.done;e=d.next()){e=e.value.Bd()||[];e=_.m(e);for(var f=e.next();!f.done;f=e.next())if(f=f.value,_.Hhc(f,Izc(_.el(f),b,c)),_.Ihc(f,Izc([f.xm()],b,c)[0]),_.Ohc(f,Izc([f.Pt()],b,c)[0]),_.Shc(f,Izc([f.Fq()],b,c)[0]),_.Vhc(f,Izc([f.fD()],b,c)[0]),f=f.Wv())_.Dhc(f,Izc(f.eR(),b,c)),_.Ehc(f,Izc(_.bk(f,_.Jk,3),b,c))}var h=[];b.forEach(function(k){h.push(k)});
_.Wj(a[0],2,h)}},Izc=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)?_.fk(f,b.get(e))?d.push(c.get(e)):d.push(f):(b.set(e,f.clone()),f=new _.Jk,f.Ob(e),c.set(e,f),d.push(f))):d.push(f)}return d},Gzc=function(a){var b=new Map,c=new Map;a[0]&&_.bk(a[0],_.Jk,2)&&_.bk(a[0],_.Jk,2).forEach(function(h){b.set(h.getId(),h);h=(new _.Jk).Ob(h.getId());c.set(h.getId(),h)});if(b.size){a=_.m(a);for(var d=a.next();!d.done;d=
a.next()){d=d.value;var e=d.Bd()||[];e=_.m(e);for(var f=e.next();!f.done;f=e.next())if(f=f.value,_.Hhc(f,Jzc(_.el(f),b,c)),_.Ihc(f,Jzc([f.xm()],b,c)[0]),_.Ohc(f,Jzc([f.Pt()],b,c)[0]),_.Shc(f,Jzc([f.Fq()],b,c)[0]),_.Vhc(f,Jzc([f.fD()],b,c)[0]),f=f.Wv())_.Dhc(f,Jzc(f.eR(),b,c)),_.Ehc(f,Jzc(_.bk(f,_.Jk,3),b,c));_.Xj(d,2)}}},Jzc=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();_.fk(c.get(f),e)?d.push(b.get(f).clone()):d.push(e)}else d.push(e);
return d},Hzc=function(a){for(var b={},c=1;c<a.length;b={Yda:b.Yda},c++)if(!a[c].Wn()){for(var d=0,e=c;e<a.length&&!a[e].Wn();e++)d++;e=a[c-1];d=_.Ba(a,c,d);b.Yda=e.Bd();d.forEach(function(f){return function(h){_.za(f.Yda,h.Bd())}}(b));ivc(e,b.Yda)}},Azc=function(a,b,c){if(!_.zfc()&&a.V){var d=new Worker(_.Sga(_.Cy(a.V)),void 0),e=new _.Xh;d.addEventListener("message",function(k){d.terminate();e.callback(k.data)},!1);d.addEventListener("error",function(k){d.terminate();e.Jd(Error(String(k)))},!1);
c=dxc(new cxc,c);d.postMessage({command:"encrypt",data:{request:c.jc(),key:b}});return e}try{a=[];var f=new qzc(b);for(b=0;b<c.length;b++)a.push(f.encrypt(c[b]));var h=_.bi(a)}catch(k){h=_.di(k)}return h},Fzc=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(!_.zfc()&&a.V){var f=new Worker(_.Sga(_.Cy(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 qzc(c);for(c=0;c<d.length;c++)a.push(tzc(h,d[c]));b.callback(a)}catch(k){b.callback(void 0)}},Kzc=/^[\w]+$/,Lzc=function(a,b,c){return[a.kv(),a.clientId,b?"#":hM(a)].join(":")+":"+(c||"")},Mzc=function(a,b,c){this.global=void 0===c?!1:c;a.match(Kzc);this.key=a;this.value=b};Mzc.prototype.getKey=function(){return this.key};Mzc.prototype.Ya=function(){return this.value};
var Nzc=function(a,b){return{k:Lzc(b,a.global,a.key),v:a.value}},Ozc=function(a,b){a=Lzc(a,b);return Ouc(a+"A",a+"z")},Pzc=function(a,b){this.H=a;this.O=b},Qzc=function(a){return a?new Pzc(a.versionKey,a.versionChangeTimestamp):null},Rzc=function(a,b){return a+":"+b},Szc=function(a,b,c,d,e){this.data=a;this.index=b;this.size=c;this.timestamp=d;this.z0=void 0===e?null:e},Tzc=function(a){return{data:a.data,index:a.index,size:a.size,timestamp:a.timestamp,e:a.z0}},Uzc=function(a,b,c,d){a=hM(a)+"_"+b;
3===b&&(a+="_"+d);return a+=_.wt(":%02d",c)},Vzc=function(a,b,c,d){c=Uzc(a,b,void 0===c?0:c,d);a=hM(a)+"_"+b;3===b&&(a+="_"+d);return Ouc(c,a+":a")},Wzc=function(a){var b=hM(a)+"_";a=hM(a)+"_A";return Ouc(b,a)},Xzc=function(a){return a?new Szc(a.data,a.index,a.size,a.timestamp,a.e):null},Yzc=function(a,b,c,d,e,f){f=void 0===f?Date.now():f;this.userId=a;this.clientId=b;this.W=c;this.V=d;this.O=null;this.ha=this.ka=!1;this.ma=void 0;this.fields=_.xa(e);_.Ha(this.fields);_.Ea(this.fields);this.H=f};
Yzc.prototype.kv=function(){return this.userId};Yzc.prototype.Mg=function(){return _.xa(this.fields)};
var hM=function(a){if(!a.O){var b=new _.fI;b.update([a.userId,a.clientId,a.W,a.V].join(":"));b.update(a.fields);a.O=_.odc(b.digest())}return a.O},Zzc=function(a){return{versionKey:hM(a),versionInfo:{u:a.userId,c:a.clientId,pv:a.W,phk:a.V,f:a.fields},lastAccessedTimestamp:a.H}},$zc=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 Yzc(c.u,c.c,c.pv,c.phk,c.f,a.lastAccessedTimestamp);b?a.O=d:hM(a)!==d&&(a=null);return a},iM=function(a,
b,c,d){c=void 0===c?null:c;d=void 0===d?!1:d;_.O.call(this);var e=this;this.Fd=b;this.W=c;this.readOnly=d;this.H=this.version=null;this.Ba=!1;this.va=!0;this.V=null;this.ka=!1;this.O="";this.ma=null;this.Pa=a.then(function(f){e.version=f});this.Lb=new _.Le(this);this.Ma(this.Lb)};_.N(iM,_.O);iM.prototype.initialize=function(){return aAc(this)};
var aAc=function(a,b){a.V||(a.V=_.Vh(),a.Pa.then(function(){b?(a.va=!1,bAc(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)"),_.eec("GoogleDriveDs",2,a.Fa.bind(a),a.ta.bind(a)).hg(a.Ka.bind(a),a.ta.bind(a)),_.yi(2E4).then(a.Ha.bind(a)))},function(c){a.V.reject(new _.qc("Database version error",void 0,_.rI(c)?c:void 0))}));return a.V.promise},bAc=function(a,b){a.H=b;a.Lb.listen(a.H,"close",
a.ha.bind(a,"Browser closing database"));a.Lb.listen(a.H,"versionchange",a.ha.bind(a,"Database version change detected, closing"))};iM.prototype.Fa=function(a,b){this.log("Upgrading GoogleDriveDs to version "+a.newVersion);this.Ba=!0;_.Ja(b.H.objectStoreNames,function(c){return _.gic(b,c)});_.Ma(_.JI,function(c){var d=_.Tfc.get(c);_.bec(b,c,d?{keyPath:d}:void 0)})};
iM.prototype.ta=function(a){var b;a&&a instanceof _.jI&&"InvalidStateError"==a.getName()&&_.uj.Lu?b=Error("qf"):_.rI(a)&&(b=a);this.ha("Unable to open database GoogleDriveDs (version 2)");this.V.reject(b);cAc(this,!1)};iM.prototype.Ka=function(a){this.ka?a.dispose():(bAc(this,a),this.Ma(this.H),this.readOnly||dAc(this).then(null,function(){}),this.log("Initialized database GoogleDriveDs"),this.V.resolve(),cAc(this,!0))};
var cAc=function(a,b){if(a.ma){var c=a.ma,d=_.C(_.pK(c),Wqc,5);d||(d=new Wqc,c=_.pK(c),_.J(c,5,d));d=_.y(d,1,2);c=a.zi().W;d=_.y(d,2,c);c=a.zi().ka;d=_.y(d,5,c);b=_.y(d,3,b);b=_.y(b,4,a.Ba);d=a.zi().ma;_.y(b,6,d);a.ma.Yj();a.ma=null}};iM.prototype.Ha=function(){this.H||this.Nf()||(this.ha("Opening database GoogleDriveDs timed out."),this.ta(Error("rf")))};iM.prototype.ha=function(a){this.log(a);this.ka||(this.ka=!0,this.O="Database disabled: "+a,this.H&&this.va&&this.H.close())};iM.prototype.Nf=function(){return this.ka};
var eAc=function(a){return a.ka?a.O:null};iM.prototype.zi=function(){return this.version};
var jM=function(a,b,c){c=void 0===c?"readonly":c;if(a.readOnly&&"readonly"!=c)return null;a=a.H;try{return _.cec(a,[b],c)}catch(d){return null}},dAc=function(a){var b=_.JI.m_,c=jM(a,b,"readwrite");if(!c)return _.Th(Error("sf"));c.objectStore(b).put(Zzc(a.zi()));return _.Sh(c.wait()).then(function(){})},fAc=function(a){if(!a.H)return _.Th(Error("tf"));if(a.Nf())return _.Th(Error(a.O));var b=_.JI.m_,c=jM(a,b,"readwrite");if(!c)return _.Th(Error("uf"));b=c.objectStore(b);return _.Sh(b.remove(hM(a.zi())))},
gAc=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=Xzc(e.value))&&(d[e.index]=e);if(!d[0])return b.reject(Error("vf")),0;a=d[0].timestamp;if(!a)return b.reject(Error("wf")),0;e=d[0].size;if(!e)return b.reject(Error("xf")),0;if(e>d.length)return b.reject(Error("yf`"+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("zf`"+e)),0;if(c&&a<c)return b.reject(Error("Af`"+a+"`"+c)),d.length>
e?e:null;if(d.length>e)return b.resolve(d.slice(0,e)),e;b.resolve(d);return null},Ezc=function(a,b,c,d){if(!a.H||3==b&&void 0==c)return _.Th(Error("Bf"));if(a.Nf())return _.Th(Error(a.O));var e=Vzc(a.zi(),b,0,c),f=_.JI.C5,h=jM(a,f);if(!h)return _.Th(Error("Cf"));e=h.objectStore(f).getAll(e);var k=_.Vh();e.hg(function(l){l=gAc(l,k,d);a.readOnly||null==l||hAc(a,b,c,l).then(null,function(){})},k.reject);return k.promise},Bzc=function(a,b,c,d,e,f){if(a.H){if(a.Nf())return _.Th(Error(a.O));if(100<b.length||
3==c&&void 0==d)return _.Th(Error("Df"))}else return _.Th(Error("Ef"));var h=Date.now(),k=b.length,l=b.map(function(v,z){return{key:Uzc(a.zi(),c,z,d),data:new Szc(v.getData(),z,k,h,e),metadata:v}}),p=_.JI.C5;b=jM(a,p,"readwrite");if(!b)return _.Th(Error("Ff"));p=b.objectStore(p);var q={};l=_.m(l);for(var r=l.next();!r.done;q={qea:q.qea},r=l.next())r=r.value,q.qea=iAc(a,c,d,r.metadata,f),p.put(Tzc(r.data),r.key).then(function(v){return function(){var z=v.qea;z&&(brc(gL(z),!0),z.Yj())}}(q),function(v){return function(z){var A=
v.qea,D=z instanceof _.jI?z.code:_.Edc;A&&a.W&&(z=brc(gL(A),!1),D=_.qK(_.vfc,D),_.y(z,2,D),A.Yj())}}(q));return _.Sh(b.wait()).then(function(){})},iAc=function(a,b,c,d,e){if(a.W){var f=a.W.W;if(a=a.W.H(106019,e))b=drc(crc(gL(a),_.qK(_.ufc,b)),_.qK(_.rfc,c)),f=f.Wn(d.H),f=_.y(b,5,f),erc(f,d.isEncrypted),void 0!=d.Nm()&&gL(a).Bt(d.Nm());return a}return null},hAc=function(a,b,c,d){d=void 0===d?0:d;if(a.H){if(a.Nf())return _.Th(Error(a.O));if(3==b&&void 0==c)return _.Th(Error("Gf"))}else return _.Th(Error("Hf"));
b=Vzc(a.zi(),b,d,c);c=_.JI.C5;a=jM(a,c,"readwrite");if(!a)return _.Th(Error("If"));a.objectStore(c).remove(b);return _.Sh(a.wait()).then(function(){})},jAc=function(a){if(!a.H)return _.Th(Error("Jf"));if(a.Nf())return _.Th(Error(a.O));var b=Wzc(a.zi()),c=_.JI.C5;a=jM(a,c,"readwrite");if(!a)return _.Th(Error("Kf"));a.objectStore(c).remove(b);return _.Sh(a.wait()).then(function(){})};
iM.prototype.getMetadata=function(a){if(this.H){if(this.Nf())return _.Th(Error(this.O));if(a&&0==a.length)return _.Th(Error("Lf"))}else return _.Th(Error("Mf"));var b=this.zi(),c=_.JI.R6,d=jM(this,c);if(!d)return _.Th(Error("Nf"));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(_.Sh(c.get(Lzc(b,e.global,e.key))));c=_.Uh(d)}else c=_.Uh([c.getAll(Ozc(b,!1)).then(),c.getAll(Ozc(b,!0)).then()]).then(function(f){var h=_.m(f);f=h.next().value;h=h.next().value;
return cnc(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]===hM(b))){h=k[0]!==b.kv()||k[1]!==String(b.clientId)?void 0:new Mzc(k[3],h.v,l);break a}}h=void 0}return h})})};
var kAc=function(a,b){if(a.H){if(a.Nf())return _.Th(Error(a.O));if(0==b.length)return _.Th(Error("Of"))}else return _.Th(Error("Pf"));var c=_.JI.R6,d=jM(a,c,"readwrite");if(!d)return _.Th(Error("Qf"));c=d.objectStore(c);d=[];b=_.m(b);for(var e=b.next();!e.done;e=b.next())d.push(c.put(Nzc(e.value,a.zi())).then());return _.Uh(d).then(function(){})},lAc=function(a,b){b=void 0===b?!1:b;if(a.H){if(a.Nf())return _.Th(Error(a.O))}else return _.Th(Error("Sf"));var c=a.zi(),d=_.JI.R6;a=jM(a,d,"readwrite");
if(!a)return _.Th(Error("Tf"));d=a.objectStore(d);a=[];a.push(d.remove(Ozc(c,!1)).then());b&&a.push(d.remove(Ozc(c,!0)).then());return _.Uh(a).then(function(){})},mAc=function(a){if(!a.H)return _.Th(Error("Uf"));if(a.Nf())return _.Th(Error(a.O));var b=Rzc(a.zi().kv(),a.zi().clientId),c=_.JI.kU;a=jM(a,c);if(!a)return _.Th(Error("Vf"));c=a.objectStore(c);return _.Sh(c.get(b)).then(function(d){return Qzc(d)})},nAc=function(a,b){b=void 0===b?!1:b;if(!a.H)return _.Th(Error("Wf"));if(a.Nf())return _.Th(Error(a.O));
var c=a.zi(),d=Rzc(c.kv(),c.clientId);b=new Pzc(hM(c),b?Date.now():void 0);c=_.JI.kU;a=jM(a,c,"readwrite");if(!a)return _.Th(Error("Xf"));a.objectStore(c).put({versionKey:b.H,versionChangeTimestamp:b.O},d);return _.Sh(a.wait())};iM.prototype.Ll=function(a){var b=this;return this.H?this.Nf()?_.Th(Error(this.O)):mAc(this).then(function(c){var d=hM(b.zi());if(c)if(a){if(!c.O&&d==c.H&&d!=hM(a))return nAc(b,!0);if(c.O&&d==hM(a))return nAc(b)}else{if(d!=c.H)return nAc(b)}else if(!a)return nAc(b)}):_.Th(Error("Yf"))};
var oAc=function(a){if(!a.H)return _.Th(Error("Zf"));if(a.Nf())return _.Th(Error(a.O));var b=a.zi(),c=Rzc(b.kv(),b.clientId);return mAc(a).then(function(d){if(d){d=_.JI.kU;var e=jM(a,d,"readwrite");if(e)return e.objectStore(d).remove(c).then()}})};
iM.prototype.clear=function(a){var b=this;a=void 0===a?!1:a;return this.H?this.Nf()?_.Th(Error(this.O)):mAc(this).then(function(c){var d=c&&c.H==hM(b.zi());return d&&!a?!1:(c&&d?oAc(b):_.Sh()).then(function(){return _.Uh([lAc(b,a),jAc(b),fAc(b)]).then(function(){return!0},function(){return!1})},function(){return!1})}):_.Th(Error("$f"))};iM.prototype.close=function(){this.ha("Closing database")};iM.prototype.log=function(a){this.Fd.info("drive.ds.sync.storage.VersionedDb",a)};
var pAc=function(a){if(1>=a.zi())return!1;var b=a.H.objectStoreNames;return _.Ra(_.JI).every(function(c){return b&&b.contains(c)})},qAc=function(){var a=_.Vh();_.eec("GoogleDriveDs").hg(function(b){b?pAc(b)?a.resolve(b):(b.close(),_.Sh(Puc()).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},rAc=function(a,b,c){var d=_.Vh();a?_.cec(a,[_.JI.m_],"readonly").objectStore(_.JI.m_).getAll().hg(function(e){e=
_.Ra(e).map(function(f){return $zc(f)}).filter(function(f){return null!=f});d.resolve(e.filter(function(f){return(!b||f.kv()==b)&&(!c||f.clientId==c)}))},d.reject):d.resolve([]);return d.promise},sAc=function(a,b,c){var d=_.Vh();qAc().then(function(e){if(e){var f=_.JI.kU;_.cec(e,[f],"readonly").objectStore(f).get(a+":"+b).then(function(h){return Qzc(h)}).then(function(h){if(h){var k=0;"number"==typeof c&&"number"==typeof h.O&&(k=c+h.O-Date.now());var l=_.JI.m_,p=_.cec(e,[l],"readonly");p.objectStore(l).get(h.H).then(function(q){(q=
$zc(q))?(q.ka=!0,0>k?q.ha=!0:0<k&&(q.ma=k),d.resolve(q)):d.resolve(null)});_.Zh(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},tAc=function(a,b,c){var d=_.Vh(),e=new iM(_.Sh(a),b);aAc(e,c).then(function(){return d.resolve(e)},d.reject);return d.promise},uAc=function(a,b,c,d,e){e=void 0===e?!1:e;var f=[];a.forEach(function(h){var k=tAc(h,b,c);f.push(k.then(function(l){return l.clear(e)}).then(function(l){return l?
h:void 0}))});_.Uh(f).then(function(h){var k=[];h.forEach(function(l){l&&(k.push(l),b.info("drive.ds.sync.storage.VersionedDb","Cleared version: "+hM(l)))});d.resolve(k)})},vAc=function(a,b,c){var d=Date.now()-12096E5,e=_.Vh();qAc().then(function(f){f?(_.Wh(e.promise,function(){f.close()}),rAc(f,a,b).then(function(h){return h.filter(function(k){return k.H<d})},function(){return[]}).then(function(h){uAc(h,c,f,e)})):e.resolve([])});return e.promise},wAc=function(a,b,c){var d=_.Vh();qAc().then(function(e){e?
(_.Wh(d.promise,function(){e.close()}),rAc(e,a,b).then(function(f){uAc(f,c,e,d,!0)})):d.resolve([])});return d.promise},xAc=function(a,b,c,d){if(a.length){var e=_.JI.C5,f=a.shift(),h=Uzc(f,3,0,1);try{_.cec(c,[e],"readonly").objectStore(e).get(h).then(function(k){(k=Xzc(k))&&(!k.z0||k.z0&&d.has(f.V))?b.resolve(f):xAc(a,b,c,d)},function(){return b.resolve(null)})}catch(k){b.resolve(null)}}else b.resolve(null)},yAc=function(a,b,c,d,e,f,h){var k=_.Vh();qAc().then(function(l){l?(_.Wh(k.promise,function(){l.close()}),
rAc(l,a,b).then(function(p){return p.filter(function(q){return(!h||h!=hM(q))&&q.W==c&&q.H>=e&&xnc(d.filter(function(r){return!_.Ufc.has(r)}),q.Mg(),b)})},function(){return[]}).then(function(p){p.length?(p.sort(function(q,r){return r.H-q.H}),xAc(p,k,l,new Set(f))):k.resolve(null)})):k.resolve(null)});return k.promise},zAc={key:"rid",global:!0},AAc={key:"ooi",global:!0},BAc={key:"rtds",global:!1},CAc={key:"dct",global:!1},DAc={key:"pc",global:!1},EAc=function(a){this.H=new _.Rh(function(b){a?a.initialize().then(function(){return b(a)},
function(){return b(null)}):b(null)})};EAc.prototype.get=function(a){return this.H.then(function(b){if(b&&!b.Nf())return b.getMetadata([a]).then(function(c){return(c=c[0])?c.Ya():void 0},function(){})})};EAc.prototype.set=function(a,b){return this.H.then(function(c){return c&&!c.Nf()?kAc(c,[new Mzc(a.key,b,a.global)]).then(function(){return!0},function(){return!1}):!1})};EAc.prototype.Yn=function(){return this.get(zAc).then(function(a){return a?a:null})};
EAc.prototype.Cu=function(a){return this.set(zAc,a)};var FAc=function(a){return a.get(AAc).then(function(b){return"boolean"===typeof b?b:null})};EAc.prototype.Oy=function(a){return this.set(AAc,a)};var GAc=function(a){return a.get(DAc).then(function(b){return"boolean"===typeof b?b:null})},HAc=function(a){return a.get(BAc).then(function(b){return Array.isArray(b)?b:null})},IAc=function(a){return a.get(CAc).then(function(b){return"number"===typeof b?b:null})},JAc=function(){this.hj=[]};_.N(JAc,_.FK);
JAc.prototype.add=function(a,b){var c=a.Bv.request;return c instanceof _.EJ&&_.B(c.request,12)?_.FK.prototype.add.call(this,a,b):!1};JAc.prototype.Sra=function(a){return this.hj.splice(0,Math.min(a,1))};var KAc=function(a,b){this.hj=[];this.H=b};_.N(KAc,_.FK);KAc.prototype.add=function(a,b){return a.Bv.request instanceof _.EJ?!1:_.FK.prototype.add.call(this,a,b)};
KAc.prototype.Sra=function(a){for(var b=[],c=[],d={},e=0,f=0;f<this.hj.length&&b.length<a;f++){var h=this.hj[f],k=h.Bv.request;k instanceof _.ZI||k instanceof _.kJ||k instanceof _.zJ?k="app|"+k.Ch():k instanceof _.UI||k instanceof _.VI||k instanceof _.aJ||k instanceof _.EI?k="item|"+(k instanceof _.UI?k.Cc():k.getId()):k instanceof _.bJ||k instanceof _.lJ?k="item|"+k.Cc():k instanceof _.cJ||k instanceof _.BJ?k="item|"+k.Cc():k instanceof _.CD||k instanceof _.zD?(k=k instanceof _.CD?_.C(k,_.mp,1).getKey():
k.getKey(),k="pref|"+_.B(k,2)+"|"+_.np(k)):k=k instanceof _.dJ?"td|"+k.getId():null;var l=h.Bv.request;if(l instanceof _.XI)l=!!_.S(l,8);else if(l instanceof _.VI){l=this.H.H(l.getId());var p;if(p=!!l)p=!!(l&&l.getMimeType()&&_.Ldb.has(l.getMimeType()));l=p}else l=!1;if(k&&d[k]||l&&5===e)break;b.push(h);c.unshift(f);k&&(d[k]=!0);l&&e++}for(a=0;a<c.length;a++)_.ta(this.hj,c[a]);return b};
LAc=function(a,b,c,d,e,f,h,k,l){a=a.$f();h=new _.flc(k,h,d,_.gk(a,32,1073741824),_.gk(a,21,1E3));h=new _.glc(h);k=new _.Fkc(_.gk(a,59,2E3),_.gk(a,60,2E4),_.gk(a,61,6));c=new _.Dkc(l?l:c,l?void 0:e);e={};e[1]=_.ilc(b,d);e[2]=_.jlc(b,a,k,c,d);e[3]=_.klc(b,a,k,c,d,"batch");l=_.gk(a,10,50);f=new _.HK(d,b,[_.Ekc(c),new _.Ikc(l,_.gk(a,11,100)),new _.GK(l),new _.EK(k,d)],[new KAc(a,f),new JAc,new _.FK],[new _.Rkc(a,k,c.Hj(),d)],"mutation");return e[4]=f,e[5]=_.llc(h,a,d),e[6]=_.klc(b,a,k,c,d,"find_by_ids_batch"),
e[7]=_.klc(b,a,k,c,d,"xd4_batch"),e[8]=_.klc(b,a,k,c,d,"xd4_batch_one",1),e};MAc=function(a){return a.nextPageToken?a.nextPageToken:a.continuationToken?a.continuationToken:""};NAc=function(a){var b={};return b.parentId=a.Ik(),b};OAc=function(a){var b={};_.ie(_.Qg(a.getTitle()))||(b.title=a.getTitle());_.ymc(b,_.Td(a,3));_.S(a,8)&&(b.description="",a={},b.labels=(a.starred=!1,a));return b};
PAc=function(a){var b={};null!=a.getTitle()&&(b.title=a.getTitle());null!=_.B(a,3)&&(b.workspaceToken=_.B(a,3));return b};QAc=function(a){var b={};b.sourceIds=_.Td(a.request,1);b.destinationFolderId=_.B(a.request,2);a.pageToken&&(b.continuationToken=a.pageToken);return b};
RAc=function(a){var b={},c={};_.ie(_.Qg(a.getTitle()))||(b.title=a.getTitle());null!=a.He()&&(b.description=a.He());null!=_.S(a,4)&&(c.starred=_.S(a,4));null!=a.Uh()&&(c.trashed=a.Uh());_.ie(_.Qg(a.getMimeType()))||(b.mimeType=a.getMimeType());"number"===typeof _.B(a,7)&&(b.modifiedDate=_.eic(_.cjc(_.B(a,7)||0)));null!=_.S(a,11)&&(c.restricted=_.S(a,11));_.Qa(c)&&(b.labels=c);null!=a.Wi()&&(b.folderColor=a.Wi());null!=_.S(a,16)&&(b.subscribed=_.S(a,16));null!=_.S(a,40)&&(c={},b.linkShareMetadata=
(c.securityUpdateEnabled=_.S(a,40),c));if(c=_.C(a,_.$k,25)){b.contentRestrictions=[];var d={};null!=_.S(c,1)&&(d.readOnly=_.S(c,1));null!=_.B(c,2)&&(d.reason=_.B(c,2));b.contentRestrictions.push(d)}_.ymc(b,_.Td(a,8));return b};SAc=function(a){var b={};null!=_.S(a,3)&&(b.pinned=_.S(a,3));return b};
TAc=function(a){var b={};null!=a.getTitle()&&(b.name=a.getTitle());if(null!=_.B(a,3))b.backgroundImageId=_.B(a,3);else{var c=_.B(a,6);null!=c&&(c=c.toString(16),b.colorRgb="#"+(0,_.Og)("0",6-c.length)+c);c=_.C(a,_.Pqc,9);if(null!=c){a={};var d=c.getId();d&&(a.id=d);d=_.B(c,2);"number"===typeof d&&(a.xCoordinate=d);d=_.B(c,3);"number"===typeof d&&(a.yCoordinate=d);(c=c.Ie())&&(a.width=c);b.backgroundImageFile=a}}return b};
UAc=function(a){var b={};null!=a.getTitle()&&(b.title=a.getTitle());null!=a.getState()&&(a=_.Bmc[a.getState()])&&(b.state=a);return b};_.VAc=function(a){_.K.call(this,a)};_.N(_.VAc,_.K);_.VAc.prototype.O=function(){return _.B(this,1)};var WAc=function(a){_.K.call(this,a)};_.N(WAc,_.K);WAc.prototype.O=function(){return _.S(this,1)};WAc.prototype.V=function(){return _.B(this,2)};_.kM=function(a){_.K.call(this,a)};_.N(_.kM,_.K);_.g=_.kM.prototype;_.g.getId=function(){return _.B(this,1)};
_.g.Ob=function(a){return _.y(this,1,a)};_.g.getTitle=function(){return _.B(this,2)};_.g.setTitle=function(a){return _.y(this,2,a)};_.g.Ura=function(){return _.B(this,3)};_.g.$y=function(){return _.B(this,4)};_.g.j$=function(){return _.C(this,WAc,6)};_.g.Mqb=function(){return _.C(this,_.VAc,7)};_.g.uUa=function(){return _.B(this,8)};_.g.Tra=function(){return _.S(this,9)};_.lM=function(a){_.K.call(this,a)};_.N(_.lM,_.K);_.g=_.lM.prototype;_.g.getType=function(){return _.B(this,1)};
_.g.getId=function(){return _.B(this,2)};_.g.Ob=function(a){return _.y(this,2,a)};_.g.getTitle=function(){return _.B(this,3)};_.g.setTitle=function(a){return _.y(this,3,a)};_.g.Od=function(){return _.B(this,5)};_.g.setSize=function(a){return _.y(this,5,a)};_.g.n9a=function(){return _.B(this,6)};_.XAc=function(a,b){return _.y(a,6,b)};_.lM.prototype.He=function(){return _.B(this,8)};_.lM.prototype.Ul=function(a){return _.y(this,8,a)};_.lM.prototype.O=function(){return _.S(this,9)};var Soc=[90,59,75];
_.t("sy1na");
var YAc=function(a){_.K.call(this,a)};_.N(YAc,_.K);
var ZAc=function(a){_.K.call(this,a)};_.N(ZAc,_.K);ZAc.prototype.getType=function(){return _.B(this,1)};var $Ac=function(a){var b=new ZAc;return _.y(b,1,a)},aBc=function(a,b){return _.J(a,2,b)};ZAc.prototype.ny=function(){return _.B(this,3)};ZAc.prototype.Py=function(a){return _.y(this,3,a)};ZAc.prototype.Mi=function(){return _.B(this,4)};ZAc.prototype.setPosition=function(a){return _.y(this,4,a)};
var mM=function(a){_.K.call(this,a)};_.N(mM,_.K);mM.prototype.getType=function(){return _.B(this,1)};var bBc=function(a){var b=new mM;return _.y(b,1,a)};mM.prototype.jn=function(){return _.C(this,EL,2)};var cBc=function(a,b){return _.J(a,2,b)};mM.prototype.ny=function(){return _.B(this,3)};mM.prototype.Py=function(a){return _.y(this,3,a)};mM.prototype.Mi=function(){return _.B(this,4)};mM.prototype.setPosition=function(a){return _.y(this,4,a)};
var nM=function(a){_.K.call(this,a)};_.N(nM,_.K);nM.prototype.getType=function(){return _.B(this,1)};var dBc=function(a){var b=new nM;return _.y(b,1,a)};nM.prototype.jn=function(){return _.C(this,_.fG,2)};var eBc=function(a,b){return _.J(a,2,b)};nM.prototype.ny=function(){return _.B(this,3)};nM.prototype.Py=function(a){return _.y(this,3,a)};nM.prototype.Mi=function(){return _.B(this,4)};nM.prototype.setPosition=function(a){return _.y(this,4,a)};
var fBc=function(a){_.K.call(this,a)};_.N(fBc,_.K);fBc.prototype.Bb=function(){return _.B(this,1)};fBc.prototype.Dc=function(a){return _.y(this,1,a)};fBc.prototype.sr=function(){return _.C(this,_.DL,2)};
var hBc=function(a){_.K.call(this,a,-1,gBc)};_.N(hBc,_.K);hBc.prototype.Bb=function(){return _.B(this,1)};hBc.prototype.Dc=function(a){return _.y(this,1,a)};hBc.prototype.Zj=function(){return _.B(this,3)};var gBc=[2];
var iBc=function(a){_.K.call(this,a)};_.N(iBc,_.K);iBc.prototype.od=function(){return _.C(this,hL,1)};iBc.prototype.Xn=function(){return _.B(this,2)};
var jBc=function(a){_.K.call(this,a)};_.N(jBc,_.K);_.g=jBc.prototype;_.g.Bb=function(){return _.B(this,1)};_.g.Dc=function(a){return _.y(this,1,a)};_.g.sr=function(){return _.C(this,_.DL,2)};_.g.Zj=function(){return _.B(this,3)};_.g.Ch=function(){return _.B(this,4)};
var oM=function(a){_.K.call(this,a)};_.N(oM,_.K);oM.prototype.Bb=function(){return _.B(this,1)};oM.prototype.Dc=function(a){return _.y(this,1,a)};oM.prototype.Zj=function(){return _.B(this,3)};
var kBc=function(a){_.K.call(this,a)};_.N(kBc,_.K);_.g=kBc.prototype;_.g.Bb=function(){return _.B(this,1)};_.g.Dc=function(a){return _.y(this,1,a)};_.g.Zj=function(){return _.B(this,2)};_.g.vLa=function(){return _.C(this,_.mp,3)};_.g.getKey=function(){return _.C(this,_.Ub,4)};_.g.ht=function(){return _.Q(this,4)};
var mBc=function(a){_.K.call(this,a,-1,void 0,lBc)};_.N(mBc,_.K);mBc.prototype.getKey=function(){return _.B(this,1)};mBc.prototype.ht=function(){return _.Q(this,1)};var oBc=function(a){_.K.call(this,a,-1,nBc)};_.N(oBc,_.K);var lBc=[[2,4,6,10],[3,5,7,8,9]],nBc=[1];
var pBc=function(a){_.K.call(this,a)};_.N(pBc,_.K);
var pM=function(a){_.K.call(this,a,-1,qBc)};_.N(pM,_.K);pM.prototype.Bb=function(){return _.B(this,1)};pM.prototype.Dc=function(a){return _.y(this,1,a)};pM.prototype.O=function(){return _.bk(this,sL,2)};var rBc=function(a,b){return _.Wj(a,2,b)};pM.prototype.Zj=function(){return _.B(this,3)};var qBc=[2];
var sBc=function(a){_.K.call(this,a)};_.N(sBc,_.K);sBc.prototype.Bb=function(){return _.B(this,1)};sBc.prototype.Dc=function(a){return _.y(this,1,a)};sBc.prototype.O=function(){return _.C(this,sL,2)};sBc.prototype.Zj=function(){return _.B(this,3)};
var tBc=function(a){_.K.call(this,a)};_.N(tBc,_.K);tBc.prototype.my=function(){return _.B(this,2)};
var vBc=function(a){_.K.call(this,a,-1,uBc)};_.N(vBc,_.K);vBc.prototype.Bb=function(){return _.B(this,1)};vBc.prototype.Dc=function(a){return _.y(this,1,a)};vBc.prototype.mj=function(){return _.bk(this,_.m7a,2)};vBc.prototype.yq=function(a,b){return _.dk(this,2,a,_.m7a,b)};var uBc=[2];
var xBc=function(a){_.K.call(this,a,-1,wBc)};_.N(xBc,_.K);xBc.prototype.Bb=function(){return _.B(this,1)};xBc.prototype.Dc=function(a){return _.y(this,1,a)};xBc.prototype.nl=function(){return _.bk(this,mM,2)};var wBc=[2];
_.zBc=function(a){_.K.call(this,a,-1,yBc)};_.N(_.zBc,_.K);var yBc=[1];
var qM=function(a){_.K.call(this,a,-1,ABc)},DBc,EBc;_.N(qM,_.K);qM.prototype.Xn=function(){return _.B(this,1)};var BBc=function(a,b){return _.y(a,1,b)},CBc=function(a,b){return _.y(a,2,b)};qM.prototype.Bb=function(){return _.B(this,3)};qM.prototype.Dc=function(a){return _.y(this,3,a)};DBc=function(a,b){return _.y(a,4,b)};EBc=function(a,b){return _.Wj(a,5,b)};_.FBc=function(a){_.K.call(this,a)};_.N(_.FBc,_.K);_.FBc.prototype.hc=function(){return _.B(this,2)};_.HBc=function(a){_.K.call(this,a,-1,GBc)};
_.N(_.HBc,_.K);var IBc=function(a,b){return _.y(a,1,b)},JBc=function(a,b){return _.y(a,2,b)},KBc=function(a,b){return _.Wj(a,3,b)},ABc=[5],GBc=[3];
_.rM=function(a){_.K.call(this,a,-1,LBc)};_.N(_.rM,_.K);_.rM.prototype.DV=function(){return _.bk(this,_.bG,2)};_.rM.prototype.xe=function(){return _.C(this,_.tf,3)};var LBc=[1,2];
_.sM=function(a){_.K.call(this,a)};_.N(_.sM,_.K);_.sM.prototype.Bb=function(){return _.B(this,1)};_.sM.prototype.Dc=function(a){return _.y(this,1,a)};_.sM.prototype.Cf=function(){return _.C(this,_.tB,2)};_.MBc=function(a,b){return _.J(a,2,b)};_.sM.prototype.Zj=function(){return _.B(this,3)};
var NBc=function(a){_.K.call(this,a)};_.N(NBc,_.K);NBc.prototype.Bb=function(){return _.B(this,1)};NBc.prototype.Dc=function(a){return _.y(this,1,a)};
var PBc=function(a){_.K.call(this,a,-1,OBc)};_.N(PBc,_.K);PBc.prototype.Bb=function(){return _.B(this,1)};PBc.prototype.Dc=function(a){return _.y(this,1,a)};PBc.prototype.nl=function(){return _.bk(this,nM,2)};var OBc=[2];
var QBc=function(a){_.K.call(this,a)};_.N(QBc,_.K);QBc.prototype.getType=function(){return _.B(this,1)};var RBc=function(a){var b=new QBc;return _.y(b,1,a)};QBc.prototype.ny=function(){return _.B(this,3)};QBc.prototype.Py=function(a){return _.y(this,3,a)};QBc.prototype.Mi=function(){return _.B(this,4)};QBc.prototype.setPosition=function(a){return _.y(this,4,a)};
var TBc=function(a){_.K.call(this,a,-1,SBc)};_.N(TBc,_.K);TBc.prototype.Bb=function(){return _.B(this,1)};TBc.prototype.Dc=function(a){return _.y(this,1,a)};TBc.prototype.Zj=function(){return _.B(this,3)};var SBc=[2];
_.UBc=function(a){_.K.call(this,a)};_.N(_.UBc,_.K);_.UBc.prototype.getId=function(){return _.B(this,1)};_.UBc.prototype.Ob=function(a){return _.y(this,1,a)};_.UBc.prototype.xe=function(){return _.C(this,_.tf,4)};
var WBc=function(a){_.K.call(this,a,-1,VBc)};_.N(WBc,_.K);WBc.prototype.Bb=function(){return _.B(this,1)};WBc.prototype.Dc=function(a){return _.y(this,1,a)};WBc.prototype.Zj=function(){return _.B(this,3)};var VBc=[2];
_.tM=function(a){_.K.call(this,a)};_.N(_.tM,_.K);_.tM.prototype.getType=function(){return _.B(this,1)};var XBc=function(a){var b=new _.tM;return _.y(b,1,a)},YBc=function(a,b){return _.J(a,2,b)};_.tM.prototype.ny=function(){return _.B(this,3)};_.tM.prototype.Py=function(a){return _.y(this,3,a)};_.tM.prototype.Mi=function(){return _.B(this,4)};_.tM.prototype.setPosition=function(a){return _.y(this,4,a)};
_.Eoc=function(a){_.K.call(this,a)};_.N(_.Eoc,_.K);_.g=_.Eoc.prototype;_.g.getItem=function(){return _.C(this,_.dl,1)};_.g.setItem=function(a){return _.J(this,1,a)};_.g.getError=function(){return _.C(this,_.pc,2)};_.g.Re=function(a){return _.J(this,2,a)};_.g.$n=function(){return _.Q(this,2)};_.g.Xs=function(){return _.B(this,4)};
var $Bc=function(a){_.K.call(this,a,-1,ZBc)};_.N($Bc,_.K);var ZBc=[2,4];
var bCc=function(a){_.K.call(this,a,-1,aCc)};_.N(bCc,_.K);var aCc=[1];
var dCc=function(a){_.K.call(this,a,-1,cCc)};_.N(dCc,_.K);dCc.prototype.Bb=function(){return _.B(this,1)};dCc.prototype.Dc=function(a){return _.y(this,1,a)};dCc.prototype.Zj=function(){return _.B(this,3)};var cCc=[2];
var fCc=function(a){_.K.call(this,a,-1,eCc)};_.N(fCc,_.K);fCc.prototype.Bb=function(){return _.B(this,1)};fCc.prototype.Dc=function(a){return _.y(this,1,a)};fCc.prototype.Zj=function(){return _.B(this,3)};var eCc=[2];
var gCc=function(a){_.K.call(this,a)};_.N(gCc,_.K);
var iCc=function(a){_.K.call(this,a,-1,hCc)};_.N(iCc,_.K);iCc.prototype.O=function(){return _.B(this,2)};var jCc=function(a,b){_.y(a,2,b)},hCc=[1];
var kCc=function(a){_.ki.call(this,"Ob");this.dataType=a};_.N(kCc,_.ki);
var lCc=function(a,b){_.ki.call(this,"Pb");this.jOa=a;this.yta=b};_.N(lCc,_.ki);
var mCc=function(){};_.g=mCc.prototype;_.g.AM=function(a,b){return etc(dtc(1),a).setPosition(b)};_.g.zM=function(a,b){return etc(dtc(2).setPosition(b),a)};_.g.CE=function(a,b,c){return etc(dtc(3).Py(b).setPosition(c),a)};_.g.oQ=function(a,b){return etc(dtc(4),a).setPosition(b)};_.g.$M=function(a){return _.C(a,pL,2)};
var nCc=function(){_.yy.call(this,new mCc,function(a){return a&&a.getName()})};_.N(nCc,_.yy);
var uM=function(a,b,c){c=void 0===c?50:c;_.P.call(this);var d=this;this.W=a;this.connectionState=b;this.limit=c;this.active=!1;this.status=6;this.va=gnc(new _.OK,[1]);this.ha=this.H=!1;this.Qc=new _.Le(this);this.Ma(this.Qc);_.De(this,function(){d.active=!1;d.Qc.removeAll()})};_.N(uM,_.P);_.g=uM.prototype;_.g.xi=function(){return String(_.Da(this))};_.g.We=function(){return this.W.We()||this.connectionState.We()};
_.g.activate=function(){var a=this;this.active||(this.active=!0,this.Qc.listen(this.W,"Fb",function(){return void a.Tt()}),this.Qc.listen(this.connectionState,[].concat(_.od(Object.values(_.vB))),function(){return void a.Tt()}),this.W.We()?this.Qc.ad(this.W,"Fb",function(b){b.We()||(a.UG(),a.dispatchEvent(new _.ki(_.mq)))}):this.connectionState.We()?this.Qc.ad(this.connectionState,[_.vB.xL,_.vB.lU],function(){a.UG();a.dispatchEvent(new _.ki(_.mq))}):(this.UG(),this.dispatchEvent(new _.ki(_.mq))))};
_.g.UG=function(){};_.g.Fr=function(a){var b=this;if(this.Rj()){var c=this.limit;this.limit+=a||50;this.hc()>c&&this.Tt();this.W.We()?this.Qc.ad(this.W,"Fb",function(d){d.We()||b.$O()}):this.$O()}};_.g.EL=function(){this.We()&&!this.H?this.status=2:this.status=this.H?1:6};_.g.Bb=function(){return this.status};_.g.Mq=function(){return this.va};_.g.handleError=function(a){this.dispatchEvent(new _.rc(a))};_.g.hW=function(){this.dispatchEvent(new _.ki(_.SEa))};_.g.Rj=function(){return!this.H||this.ha};
_.g.refresh=function(){this.H=this.active=!1;this.status=6;this.Qc.removeAll();this.activate()};_.g.$O=function(){};
var oCc=function(a,b,c,d,e){uM.call(this,a,b,e.Li()||void 0);this.ka=c;this.request=e;this.O=[];this.data=[];this.changed=!1;this.V=new nCc;this.ma=d};_.N(oCc,uM);_.g=oCc.prototype;_.g.UG=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.ki(_.Dc,this))};_.g.getData=function(){return itc(new uL,this.data).Dc(this.status)};_.g.vr=function(){var a=this.V.Fz(this.O,this.data);this.O=this.data;var b=(new gtc).Dc(this.status);return _.Wj(b,2,a)};
_.g.$O=function(){this.ma(this.xi(),this.limit)};_.g.Tt=function(){if(this.active){var a=this.status;this.EL();if(this.changed||a!==this.status)this.changed=!1,pCc(this)}};_.g.hc=function(){return this.data.length};_.g.ud=function(){return this.request};_.g.update=function(a){var b=a.response;if(this.status!==b.Bb()||eL(0,this.data,b.O()))this.H=!0,this.status=b.Bb(),this.data=b.O(),this.ha=a.H,pCc(this)};
var pCc=function(a){a.log("Livelist "+a.xi()+" returning "+a.data.length+" for "+(a.request.Cc()+". Status: ")+(_.ab(Orc)[a.Bb()]+"."));a.dispatchEvent(new _.ki(_.Dc,a))};oCc.prototype.qB=function(a){this.dispatchEvent(new _.rc(new _.qc("Error occurred running a category metadata query after "+a.H+" retries.",a.error)))};oCc.prototype.log=function(a){this.ka.info("drive.ds.sync.CategoryMetadataLiveList",a)};
var qCc=function(a,b,c,d,e,f,h){_.jL.call(this,a,b,c,e,f,d);this.Fd=h;this.W="drive.ds.sync.ViewCacheLiveList";this.ta=null;this.ma=void 0};_.N(qCc,_.jL);qCc.prototype.getData=function(){this.H=this.items;var a=sqc((new _.iB).Dc(this.Bb()).Nw(this.items),this.Rj());a=_.J(a,7,this.ta).sP(this.suggestionSessionId).Ei(this.Qe);return _.Qj(a,18,this.ma)};
qCc.prototype.update=function(a){if(Rrc(this,a)&&(Src(this,a),this.ta=a.S5(),this.suggestionSessionId=a.Wf(),this.ma=a.Zja(),Qrc(this),this.suggestionSessionId&&iwc(this.V)&&(a=this.Fd.H(106027)))){var b=_.C(_.pK(a),irc,20);if(!b){b=new irc;var c=_.pK(a);_.J(c,20,b)}_.y(b,1,this.suggestionSessionId);a.Yj()}};
var rCc=function(a,b){var c={};a=_.Na(a,function(d){return!!d});b=_.Na(b,function(d){return!!d});_.Ma(a,function(d,e){var f=b[e];f?_.fk(d,f)||(d=eBc(dBc(4),f),c[e]=d):(d=eBc(dBc(2),d),c[e]=d)});_.Ma(b,function(d,e){a[e]||(d=eBc(dBc(1),d),c[e]=d)});return c},sCc=function(a,b){return _.Qa(a)!==_.Qa(b)||!_.Ua(rCc(a,b))};
var tCc=function(a,b){_.P.call(this);this.request=b;this.active=!1;this.status=6;this.H={};this.data={}};_.N(tCc,_.P);_.g=tCc.prototype;_.g.activate=function(){this.active||(this.active=!0,_.Ua(this.data)&&6===this.status||this.dispatchEvent(new _.ki(_.Dc,this)))};_.g.Bb=function(){return this.status};_.g.Mq=function(){return new _.OK};_.g.getData=function(){this.H=this.data;var a=(new _.tK).Dc(this.status);_.Ma(this.data,function(b,c){a.JT().set(c,b||new _.fG)});return a};
_.g.vr=function(){var a=rCc(this.H,this.data);this.H=this.data;var b=(new NBc).Dc(this.status);_.Ma(a,function(c,d){_.Oj(b,2,void 0,nM).set(d,c)});return b};_.g.dT=function(){throw Error("bg");};_.g.xi=function(){return String(_.Da(this))};_.g.ud=function(){return this.request};_.g.update=function(a){var b={};a.JT().forEach(function(c,d){c||(c=Yyc(d));b[d]=c});if(this.status!==a.Bb()||sCc(this.H,b))this.status=a.Bb(),this.data=b,this.active&&this.dispatchEvent(new _.ki(_.Dc,this))};
_.g.qB=function(a){this.dispatchEvent(new _.rc(new _.qc("Error occurred running a Workspace find by id after "+a.H+" retries.",a.error)))};_.g.hW=function(){this.dispatchEvent(new _.ki(_.SEa))};
var uCc=function(a,b,c,d,e,f){_.jL.call(this,a,b,c,d,e,f);this.ma=[];this.W="drive.ds.sync.PeoplePredictLiveList"};_.N(uCc,_.jL);uCc.prototype.getData=function(){this.H=this.items;var a=(new _.sK).Dc(this.Bb()).Nw(this.items);var b=this.Rj();a=_.y(a,4,b);return Zrc(a,this.ma).sP(this.suggestionSessionId).Ei(this.Qe)};uCc.prototype.update=function(a){Rrc(this,a)&&(Src(this,a),this.ma=_.bk(a,_.Jk,6),this.suggestionSessionId=a.Wf(),Qrc(this))};
var vCc=function(){};_.g=vCc.prototype;_.g.AM=function(a,b){return cBc(bBc(1),a).setPosition(b)};_.g.zM=function(a,b){return cBc(bBc(2).setPosition(b),a)};_.g.CE=function(a,b,c){return cBc(bBc(3).Py(b).setPosition(c),a)};_.g.oQ=function(a,b){return cBc(bBc(4),a).setPosition(b)};_.g.$M=function(a){return a.jn()};
var wCc=function(){_.yy.call(this,new vCc,function(a){return a&&a.hq()})};_.N(wCc,_.yy);
var xCc=function(a,b,c){uM.call(this,a.Hj(),a.mk(),b.Li()||10);this.request=b;this.O=[];this.data=[];this.changed=!1;this.V=new wCc;this.suggestionSessionId=null;this.ka=c};_.N(xCc,uM);_.g=xCc.prototype;_.g.UG=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.ki(_.Dc,this))};_.g.getData=function(){this.O=this.data;return dvc(cvc((new FL).Dc(this.status),this.data.slice(0)),this.suggestionSessionId)};
_.g.vr=function(){var a=this.V.Fz(this.O,this.data);this.O=this.data;var b=(new xBc).Dc(this.status);return _.Wj(b,2,a)};_.g.$O=function(){};_.g.Tt=function(){var a=this.status;this.EL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ki(_.Dc,this))};_.g.hc=function(){return this.data.length};_.g.ud=function(){return this.request};
_.g.update=function(a){if(this.status!==a.Bb()||eL(0,this.data,a.nl())){this.changed=this.H=!0;this.data=a.nl();if(a=a.Wf())this.suggestionSessionId=a;this.Tt()}};_.g.refresh=function(){this.ka()};_.g.qB=function(a){this.dispatchEvent(new _.rc(new _.qc("Error occurred running a Suggested Workspace query after "+(a.H+" retries."),a.error)))};
var yCc=function(a,b,c){_.P.call(this);var d=this;this.request=a;this.ka=b;this.ha=c;this.V=[];this.items=[];this.H=!1;this.status=6;this.W=gnc(new _.OK,[1]);this.O=!0;this.limit=a.Li();_.De(this,function(){d.H=!1;d.V=[]})};_.N(yCc,_.P);_.g=yCc.prototype;_.g.xi=function(){return String(_.Da(this))};_.g.activate=function(){this.H=!0;_.qa(this.items)&&6===this.status&&this.O||this.dispatchEvent(new _.ki(_.Dc,this))};_.g.ud=function(){return this.request};_.g.Bb=function(){return this.status};
_.g.Mq=function(){return this.W};_.g.Rj=function(){return this.O};_.g.getData=function(){this.V=this.items;return sqc((new _.iB).Dc(this.status).Nw(this.items),this.O)};_.g.vr=function(){var a=_.u7a().Fz(this.V,this.items),b=(new _.gI).Dc(this.status);a=_.Wj(b,2,a);this.V=this.items;return a};_.g.Fr=function(a){this.H&&(this.limit+=a||20,this.ka.FF(this.xi(),this.limit))};
_.g.update=function(a){if(this.status!==a.Bb()||eL(_.u7a(),this.items,a.Bd()))this.items=a.Bd(),this.status=a.Bb(),_.tI(this.ha)&&(this.W=hnc(this.status,this.items)),this.O=a.jl(),this.H&&this.dispatchEvent(new _.ki(_.Dc,this))};_.g.qB=function(a){this.dispatchEvent(new _.rc(new _.qc("Error occurred running a Team Drive query after "+a.H+" retries.",a.error)))};_.g.hW=function(){this.dispatchEvent(new _.ki(_.SEa))};_.g.xu=function(){throw Error("cg");};_.g.refresh=function(){};
var zCc=function(a,b,c){_.P.call(this);var d=this;this.context=a;this.ha=b;this.request=c;this.V=!1;this.O={};this.H={};this.status=6;this.W=gnc(new _.OK,[1]);this.context.Sf().info("drive.ds.sync.TeamDriveLiveMap","Creating TD find by ids live map: "+this.request.hn().join(", "));_.De(this,function(){d.V=!1;d.O=[]})};_.N(zCc,_.P);_.g=zCc.prototype;_.g.xi=function(){return String(_.Da(this))};
_.g.activate=function(){this.V=!0;(0<Object.values(this.H).length||6!==this.status)&&this.dispatchEvent(new _.ki(_.Dc,this))};_.g.ud=function(){return this.request};_.g.getData=function(){this.O=this.H;var a=new _.rK;a.Dc(this.status);a.map=this.H;return a};_.g.vr=function(){var a=Enc(this.O,this.H),b=new Xrc;b.Dc(this.status);b.map=a;this.O=this.H;return b};_.g.Bb=function(){return this.status};_.g.Mq=function(){return this.W};
_.g.dT=function(a){var b=this.request;this.request=a;this.ha.SY(this.xi(),b,a)};_.g.update=function(a){if(this.status!==a.Bb()||Fnc(this.H,a.eq()))this.status=a.Bb(),this.H=a.eq(),_.tI(this.context.Nc)&&(this.W=hnc(this.status,Object.values(this.H))),this.V&&this.dispatchEvent(new _.ki(_.Dc,this))};_.g.qB=function(a){this.dispatchEvent(new _.rc(new _.qc("Error occurred running a team drive find-by-IDs query after "+a.H+" retries.",a.error)))};_.g.hW=function(){this.dispatchEvent(new _.ki(_.SEa))};
var ACc=function(){};_.g=ACc.prototype;_.g.AM=function(a,b){return eBc(dBc(1),a).setPosition(b)};_.g.zM=function(a,b){return eBc(dBc(2).setPosition(b),a)};_.g.CE=function(a,b,c){return eBc(dBc(3).Py(b).setPosition(c),a)};_.g.oQ=function(a,b){return eBc(dBc(4),a).setPosition(b)};_.g.$M=function(a){return a.jn()};
var BCc=function(){_.yy.call(this,new ACc,function(a){return a&&a.getId()})};_.N(BCc,_.yy);
var CCc=function(a,b,c){uM.call(this,a.Hj(),a.mk(),b.Li()||10);this.request=b;this.ka=c;this.O=[];this.data=[];this.changed=!1;this.V=new BCc};_.N(CCc,uM);_.g=CCc.prototype;_.g.UG=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.ki(_.Dc,this))};_.g.getData=function(){this.O=this.data;return axc((new UL).Dc(this.status),this.data.slice(0))};_.g.vr=function(){var a=this.V.Fz(this.O,this.data);this.O=this.data;var b=(new PBc).Dc(this.status);return _.Wj(b,2,a)};
_.g.$O=function(){this.ka.FF(this.xi(),this.limit)};_.g.Tt=function(){var a=this.status;this.EL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ki(_.Dc,this))};_.g.hc=function(){return this.data.length};_.g.ud=function(){return this.request};_.g.update=function(a){var b=a.response;if(this.status!==b.Bb()||eL(0,this.data,b.nl()))this.H=!0,this.status=b.Bb(),this.data=b.nl(),this.ha=a.H,this.dispatchEvent(new _.ki(_.Dc,this))};
_.g.qB=function(a){this.dispatchEvent(new _.rc(new _.qc("Error occurred running a Workspace query after "+a.H+" retries.",a.error)))};
var DCc=function(a,b){this.context=a;this.ha=b;this.H={};this.ka={};this.ma={};this.V=null;this.W=a.vf;this.O=this.context.lfa;this.ta=this.context.V5};_.g=DCc.prototype;_.g.ywa=function(a){var b=this,c=new qCc(this.context.Fm,this.context.bQ,this.context.Sf(),this.context.Nc,function(d,e){b.FF(d,e)},a,this.context.Rk());this.ji(c);_.De(c,function(){b.dk(c)});return c};
_.g.Bwa=function(a){var b=this,c=new uCc(this.context.Fm,this.context.bQ,this.context.Sf(),function(d,e){b.FF(d,e)},a,this.context.Nc);this.ji(c);_.De(c,function(){b.dk(c)});return c};_.g.vwa=function(a){var b=this,c=new lL(this.context.Nc,this.context.Fm,this.context.Sf(),this.context.HZ,this.SY.bind(this),a);this.ji(c);_.De(c,function(){b.dk(c)});return c};_.g.Ewa=function(a){var b=this,c=new yCc(a,this,this.context.Nc);this.ji(c);_.De(c,function(){b.dk(c)});return c};
_.g.Fwa=function(a){var b=this,c=new zCc(this.context,this,a);this.ji(c);_.De(c,function(){b.dk(c)});return c};_.g.Iwa=function(a){var b=this,c=new CCc(this.context,a,this);this.ji(c);_.De(c,function(){b.dk(c)});return c};_.g.Cwa=function(a){var b=this,c=new xCc(this.context,a,function(){if(a instanceof _.Uz){var d=ECc(b.context);Fyc(d,d.getKey(a)).refresh()}});this.ji(c);_.De(c,function(){b.dk(c)});return c};
_.g.Jwa=function(a){var b=this,c=new tCc(this.context,a);this.ji(c);_.De(c,function(){b.dk(c)});return c};_.g.qwa=function(a){var b=this,c=new oCc(this.context.Hj(),this.context.mk(),this.context.Sf(),function(d,e){b.FF(d,e)},a);this.ji(c);_.De(c,function(){b.dk(c)});return c};
_.g.ji=function(a){var b=a.xi();this.H[b]=a;this.ha.create(b,a.ud());if(a.ud()instanceof _.Wz)a=this.O.ji(b,a.ud());else if(a.ud()instanceof _.gG)a=Dyc(this.O,b,a.ud());else if(a.ud()instanceof _.Uz)a=ECc(this.context).ji(b,a.ud());else if(a.ud()instanceof _.qG)a=this.ta.ji(b,a.ud());else{var c=a.ud(),d=kL(this.context.Fm,c,2);this.log("Registering LiveList "+a.xi()+" "+d);a=this.W.ji(b,c)}"boolean"===typeof a&&Kwc(this.ha,b,a)};
_.g.dk=function(a){if(a.ud()instanceof _.Wz)this.O.dk(a.xi(),a.ud());else if(a.ud()instanceof _.gG)Eyc(this.O,a.xi(),a.ud());else if(a.ud()instanceof _.Uz)ECc(this.context).dk(a.xi(),a.ud());else if(a.ud()instanceof _.qG)this.ta.dk(a.xi(),a.ud());else{var b=a.ud(),c=kL(this.context.Fm,b,2);this.log("Unregistering LiveList "+a.xi()+" "+c);this.W.dk(a.xi(),b)}RL(this.ha,a.xi(),4);delete this.H[a.xi()]};_.g.SY=function(a,b,c){this.W.dk(a,b);this.W.ji(a,c)};
_.g.FF=function(a,b){var c=FCc(this,a).ud();c.ui(b);c instanceof _.Wz?this.O.ji(a,c):c instanceof _.gG?Dyc(this.O,a,c):c instanceof _.qG?this.ta.ji(a,c):this.W.ji(a,c)};_.g.uO=function(a,b){var c=this.H[a]&&this.H[a].ud();c&&(c instanceof _.gf?nnc(c.O(),b.Bd().filter(function(d){return!LL(d)})):c instanceof _.oA&&nnc(c.O(),Object.values(b.eq()).filter(function(d){return d&&!LL(d)})));this.ka[a]=b;this.V||(this.V=_.wi(this.O8,50,this))};
_.g.HX=function(a,b){this.ma[a]=b;this.V||(this.V=_.wi(this.O8,50,this))};_.g.iA=function(a){(a=this.H[a])&&a.hW()};_.g.O8=function(){_.xi(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&&(Nwc(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])RL(this.ha,a,3),d.qB(c)};
_.g.mka=function(a){return FCc(this,a).ud()};var FCc=function(a,b){if(!a.H[b])throw Error("dg`"+b);return a.H[b]};DCc.prototype.log=function(a,b){this.context.Sf().log("drive.ds.sync.cache.LocalLiveRequestManager",a,void 0===b?"info":b)};
var vM=function(a,b){_.P.call(this);this.O=a;this.request=b;this.oe=_.Vh();this.complete=!1;this.H=""};_.N(vM,_.P);vM.prototype.start=function(){var a=this;this.O.then(function(b){return b.Ue(a.request)}).then(this.W.bind(this)).Gg(this.handleError.bind(this));return this.oe.promise};vM.prototype.W=function(a){this.H=a.H;this.dispatchEvent(new lCc(0,this.H));GCc(this)};
var GCc=function(a){_.n.setTimeout(function(){a.O.then(function(b){return b.Ue(new _.Egc(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 $Bc;c=_.Qj(c,2,b.V);c=_.y(c,3,a.H);c=_.y(c,5,b.ka);c=_.y(c,6,b.ha);c=_.y(c,7,b.fA);c=_.y(c,8,b.H);b=_.Wj(c,4,b.W);a.oe.resolve(b)}else b=_.AI(_.gq(_.fq(new _.pc,"Export failed for request "+a.H+": "+b.status),JSON.stringify(b)),8),a.handleError(b);a.dispose()}else a.dispatchEvent(new lCc(b.O,
a.H)),GCc(a)}).Gg(function(b){a.handleError(b)})},5E3)};vM.prototype.cancel=function(){var a=this;this.O.then(function(b){return b.Ue(new _.Dgc(a.H))}).then(this.V.bind(this)).Gg(this.handleError.bind(this))};vM.prototype.V=function(){if(!this.complete){var a=new $Bc;a=_.y(a,3,this.H);a=_.y(a,1,!0);this.oe.resolve(a);this.complete=!0;this.dispose()}};vM.prototype.handleError=function(a){this.complete=!0;this.oe.reject(_.PI(a));this.dispose()};
var HCc=function(){_.ki.call(this,"VbxEwf")};_.N(HCc,_.ki);
var ICc=function(a,b){this.context=a;this.H=null;this.uc=b||null};_.g=ICc.prototype;_.g.La=function(){return _.C(this.context.Nc,_.KI,58)};_.g.getContext=function(){return this.context};_.g.Ez=function(){return this.context.OA.Ez(this.H)};_.g.Sf=function(){return this.context.Sf()};_.g.QM=function(a){return _.bi(this.context.vf.um.H(a))};_.g.bR=function(){return _.bi(this.context.OA.bR())};
_.g.P4=function(a,b,c){var d=new _.Xh;if(_.C(a,_.uI,3)||_.C(a,_.FJ,4)||_.C(a,_.BK,5)||_.C(a,_.CJ,6)||_.C(a,_.dJ,7)||_.C(a,_.XI,8)||_.C(a,_.aJ,9)||_.C(a,_.EI,10)){var e=Hwc(a);this.context.Qm().then(function(f){return f.Ue(e,{u5a:b,v5a:c})}).then(this.o9a.bind(this,d),d.Jd,d);return d}throw Error("eg");};
_.g.o9a=function(a,b){var c=[],d="";if(b instanceof _.CK){c=b.od().Bd();var e=_.B(b,2);d=b.Xn()}else if(b instanceof _.HJ)b.getItem()&&c.push(b.getItem()),e=b.YM();else throw Error("fg");a.callback({items:c,fia:e,pageToken:d})};_.g.wpa=function(){var a=this.context.Nc,b=a.$f();a="email:"+_.nI(a).getEmail().replace(/@.*$/,"");_.y(b,13,a)};_.g.Gha=function(){this.context.Ls.fS();var a=this.context.Nc;wAc(_.bK(_.nI(a)),_.cK(a),this.context.Sf()).Gg(function(){})};
_.g.Z8=function(){return _.Efc[_.Mj(this.context.Nc.$f(),8,0)]};_.g.eda=function(){this.context.QF.H=new lzc(_.Rg().substring(0,8))};_.g.MS=function(){var a=this.context.QF.qN(),b=null;a&&(b=nzc(this.context.QF),b={traceId:a,spanRecs:b});a=this.context.QF;a.H=null;a.yY=[];return _.bi(b)};_.g.qN=function(){return _.bi(this.context.QF.qN())};
_.g.getState=function(a){var b=this.context.Mj,c=b.H.bind(b);b={};b.b=this.context.Nc.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.vf.um.Od();c=this.context.vf.Qs;var d=c.H;d&&(b.cs_sutd=d.S7,b.cs_ss=d.Od());b.cs_ch=Dxc(c).length;b.cs_td=c.ZV().length;(c=this.context.W5)&&(b.t_cps=c.nsb().join(","));b.t_id=JCc(this.context);var e=
[];KCc(this.context.aR()).forEach(function(f,h){e.push(h+":"+f.join(";"))});b.t_ct=e.join(",");b.n_a=this.context.az?this.context.mk().isConnected():this.context.zI.wB();b.n_o=this.context.az?this.context.mk().We():this.context.Hj().We();b.n_csm=!!this.context.az;a&&(b.csw_cc=_.Qa(a.channels),b.csw_ac=a.O,b.csw_mcc=a.H);return _.bi(JSON.stringify(b))};_.g.Woa=function(){this.uc&&(this.uc.dispatchEvent(new HCc),this.uc.Eu())};
_.g.Ll=function(a){var b=this.context.az;b&&a!==b.V&&(b.V=a,b.reset(),a?b.state.update(3):_.mkc(b))};
var NCc=function(a,b){this.context=a;this.Og=b;this.H=_.qgc(_.jK(this.Og),LCc);this.O=_.qgc(_.jK(this.Og),MCc)};
NCc.prototype.ql=function(a){var b=this,c=this.context.TP.Cf().Cf(),d=(c=c?c.getUser():null)?c.getId():null,e={};a.forEach(function(h){_.ugc(h);var k=h.getId(),l=b.context.Yn();_.Phc(h,3);_.HI(h,5);var p=Knc(h,!0);h.getCapabilities()||_.WJ(h,new _.Yk);_.S(p,2)&&((p=h.kk())&&p.length?_.y(h,46,p[0]):(_.VJ(h,[l]),_.y(h,46,l)),l=h.wq(),_.y(h,12,l),l=new _.Jk,l.Ob(d),_.y(l,6,1),_.ahc(l,!0),_.Ihc(h,l),_.Hhc(h,[l]),_.TVb(h,1));e[k]=h});a=Object.keys(e);c=this.context.vf;var f=Rvc(c.um,a);_.Ma(f,function(h,
k){TK(h.getItem(),e[k],b.H);(b.context.Hj().We()||b.context.mk().We()||3===h.getItem().hv())&&TK(h.getItem(),e[k],b.O);_.Wa(e,k)});_.Ma(e,function(h){_.al(h.Om())&&(f[h.getId()]=new JL(h))});OCc(c,Object.values(f))};
var PCc=function(a,b){var c=[];b.forEach(function(d){c.push(d.getItem())});a.ql(c)},QCc=function(a){a=a.context.vf;var b=new _.gf;b.Ll(!0);b=Tvc(a.um,b);for(var c=[],d=[],e=0;e<b.length;e++){var f=b[e].getItem();if(3===f.hv()){var h=new _.xI;_.yI(h,f.getId());_.II(h);d.push(h)}else h=new _.Xna,_.QK(h,!1),_.y(h,2,!1),_.J(f,81,h),c.push(b[e])}OCc(a,c);a.Qo(d)},LCc=[50],MCc=[12,11,10,67,68];
var RCc=function(a){this.context=a;this.H=null;this.V=!1;this.O=new NCc(a,a.Og)};_.g=RCc.prototype;_.g.iY=function(a){this.H=a;this.V=!1;if(a){if(this.H){a=this.q9a.bind(this);var b=this.p9a.bind(this);this.log("Querying all offline items.");this.H.rV().hg(a,b);this.V||(this.H.v_((0,_.u)(this.Zvb,this)),this.V=!0)}}else QCc(this.O)};_.g.q9a=function(a){this.log("Processing all offline item(s): "+a.length);this.O.ql(a);XL(this.context.Mj,"GZTDpc")};_.g.p9a=function(){this.log("Error fetching offline items.")};
_.g.Zvb=function(a){this.log("Handling offline change(s): "+a.length);PCc(this.O,a)};_.g.log=function(a){this.context.Sf().info("drive.ds.sync.offline.LocalDataService",a)};
var wM=function(a){_.P.call(this);this.context=a;this.Ba="drive.ds.sync.BaseItemService";this.Qc=new _.Le(this);this.ma=null;this.Ta=this.va=!1;var b=new RCc(a);this.context.ha=b;this.Fa=new ICc(a,this);qoc(this.Fa);(b=_.C(a.Nc,_.KI,58))&&_.T(b,1,!1);this.Ma(this.Qc);this.O=this.context.Mj;this.W=a.ifa;this.V=new DCc(a,this.W);a=this.context;b=this.V;a.W=b;a.O.resolve(b);this.eRa()};_.N(wM,_.P);_.g=wM.prototype;_.g.eRa=function(){};
_.g.initialize=function(){var a=this;if(!this.ma){this.ma=_.Vh();var b=this.context.Rk().H(106E3);this.ma.promise.then(function(){b&&b.Yj()},function(){_.zK(a.context.Rk(),181008852)});var c=_.dK(this.context.Nc)?"(coldstart) ":"";this.context.Sf().info(this.Ba,"Initializing "+c+"with client build: "+this.context.Nc.Ki());this.Qc.listen(this.context,_.Cc,this.Btb);this.Qc.listen(this.context.zI,["nb","ob"],function(d){return void a.dispatchEvent(d)});this.Qc.listen(this.context.mk(),[].concat(_.od(Object.values(_.vB))),
function(d){return void a.dispatchEvent(d)});this.$a();this.O.start();XL(this.O,"NSockf")}return this.ma.promise};_.g.XVa=function(){this.context.Sf().info(this.Ba,"Ready to process requests.");this.va||(this.va=!0,this.ma.resolve())};_.g.Btb=function(a){var b=a.error,c=b.Sg;c&&3===c.getType()&&!this.va?(this.va=!0,this.ma.reject(b)):this.dispatchEvent(a)};_.g.FY=function(){throw xM("teamDriveQuery");};_.g.mda=function(){throw xM("teamDriveFindByIds");};
_.g.ppa=function(){throw xM("teamDriveMovePreflight");};_.g.aFa=function(){throw xM("peoplePredictQuery");};_.g.query=function(a){gwc(this.context.Fm,a,rrc(this.context.Og));this.hF();var b=a.clone();b=this.V.ywa(b);this.Ta||(a=a.xe(),a&&121===_.B(a,1)||(this.Ta=!0,this.Qc.listen(b,_.Dc,this.wLa)));return b};_.g.wLa=function(a){a=a.currentTarget;if(1===a.Bb()){var b=this.O.H("W6J7De");this.Fa.H=b;this.Qc.Wc(a,_.Dc,this.wLa)}};_.g.Cq=function(a){this.hF();asc(a);return this.V.vwa(a.clone())};
_.g.tua=function(){throw xM("activityQuery");};_.g.hva=function(){throw xM("backupsQuery");};_.g.NFa=function(){throw xM("refreshBackups");};_.g.sV=function(){throw xM("getAndroidBackupItems");};_.g.h8=function(){throw xM("deleteBackup");};_.g.dFa=function(){throw xM("permissionQuery");};_.g.Q$=function(){throw xM("insertPermission");};_.g.i8=function(){throw xM("deletePermission");};_.g.wd=function(){throw xM("mutate");};_.g.WN=function(){throw xM("mutateWorkspace");};
_.g.pz=function(){throw xM("bulkMutate");};_.g.uwa=function(){throw xM("createFileUploader");};_.g.tRa=function(a){return new vM(this.context.Qm(),a)};_.g.tr=function(a){if(3===a.getType())return _.ci(this.context.Qm().then(function(b){return b.Ue(a)}).then(null,_.QI));throw xM("getApps with type "+a.getType());};_.g.sr=function(){throw xM("getApp");};_.g.S$=function(){throw xM("installApp");};_.g.g8=function(){throw xM("deleteApp");};_.g.aT=function(){throw xM("updateApp");};
_.g.uN=function(){throw xM("getUserAccount");};_.g.SG=function(){throw xM("getUserPrefs");};_.g.WR=function(){throw xM("mutateUserPref");};_.g.iu=function(){throw xM("getRevisions");};_.g.WAa=function(){return!1};_.g.Ll=function(a){this.context.az?a?_.nkc(this.context.az,!0):this.context.mk().We()&&this.context.az.rM(!0).then(null,function(){}):this.context.Hj().Ll(a)};_.g.Oy=function(){throw xM("setOfflineOptIn");};_.g.iY=function(){throw xM("setLocalItemService");};_.g.hF=function(){};
_.g.YR=function(){this.context.YR();this.context.Rk().O(106006)};_.g.q9=function(){return this.Fa};_.g.gY=function(){};_.g.wB=function(){return this.context.zI.wB()};_.g.gQ=function(){return _.T(this.context.Nc.$f(),52,!1)?_.Sh(Awc(new zwc,0)):this.context.zI.gQ()};_.g.isConnected=function(){return 1===this.context.mk().get()};_.g.B7=function(){var a=this.context.az;return a?a.rM():_.Sh(_.Xjc(0))};_.g.sync=function(){throw xM("sync");};_.g.Eu=function(){return this.context.Eu()};
_.g.iba=function(){throw xM("offlineDataLoaded");};_.g.wna=function(a){return this.context.Qm().then(function(b){return b.Ue(a)}).then(function(b){return b})};_.g.Jva=function(){throw xM("categoryMetadataQuery");};_.g.A7=function(){throw xM("changeCategoryLinks");};_.g.cP=function(){throw xM("updateCategoryMetadata");};_.g.xFa=function(){throw xM("publishedCategoriesQuery");};_.g.yFa=function(){throw xM("publishedCategoryQuery");};_.g.$Ja=function(){throw xM("workspaceFindByIdsRequest");};
_.g.jqa=function(){throw xM("workspaceQueryRequest");};_.g.oIa=function(){throw xM("suggestedWorkspaceItemQueryRequest");};_.g.pIa=function(){throw xM("suggestedWorkspaceQueryRequest");};_.g.s_=function(){throw xM("addCacheHint");};_.g.Z_=function(){throw xM("createUserFeedback");};_.g.Qo=function(){throw xM("handleChanges");};var xM=function(a){return new _.qc(a+" is unsupported",_.OI(3))};
var Poc=function(a){wM.call(this,a);this.Ba="drive.ds.sync.AnonymousItemService";a.Cu("")};_.N(Poc,wM);Poc.prototype.$a=function(){WL(this.O,["NSockf"],this.XVa.bind(this))};
var SCc=new Set([1,2,4,5,6]),TCc=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.Qe=0};TCc.prototype.Cf=function(){var a=new _.sM;a.Dc(this.status);this.H&&_.MBc(a,UCc(this));return a};
var VCc=function(a,b,c,d){d=void 0===d?!1:d;var e=SCc.has(c);if(1===a.status&&!e)return!1;a.Qe=c;var f=a.status;c=!a.H;if(_.tI(a.O)){var h=(h=b&&b.getUser())&&RK(h);h=!(!h||!myc(a.ka,h));a.status=h&&e||d?1:6}f=!_.fk(a.H,b)||(_.tI(a.O)?a.status!==f:6===a.status&&e);a.H=b.clone();_.tI(a.O)||(a.status=e||d?1:6);c&&(XL(a.ha,"toquGd"),a.W.info("drive.ds.sync.account.InMemoryAccountCache","Account loaded from "+(e?"server":"cache")));f&&a.V.update(0);return f};TCc.prototype.ef=function(){return this.Qe};
var UCc=function(a){return a.H?a.H.clone():null};
var WCc=function(a){_.P.call(this);this.ha=a;this.Qe=0};_.N(WCc,_.P);var XCc=function(a){a=a.clone();var b=function(c){return c.toLowerCase()};Vuc(a,_.Td(a,4).map(b));Wuc(a,_.Td(a,5).map(b));return a};_.g=WCc.prototype;_.g.tr=function(){};_.g.put=function(){};_.g.remove=function(){};_.g.cQ=function(){};_.g.kD=function(){return 0!==this.Qe};_.g.ef=function(){return this.Qe};
var YCc=new Set([1,2,4,5,6]),ZCc=function(a,b,c){WCc.call(this,b);this.W=a;this.V=c;this.H={};this.O=[];this.status=6;this.So=!1};_.N(ZCc,WCc);ZCc.prototype.tr=function(){var a=new SL;if(!_.Ua(this.H)){_.Qj(a,4,this.O);var b=[];_.Ma(this.H,function(c){b.push(c.clone())});_.Wj(a,2,b)}a.Dc(this.status);return a};ZCc.prototype.put=function(a){this.H[a.getId()]=XCc(a);this.V.update(1);this.dispatchEvent(new _.ki("Qb",this))};ZCc.prototype.remove=function(a){_.Wa(this.H,a)&&this.V.update(1)};
ZCc.prototype.cQ=function(a,b,c){c=void 0===c?!1:c;var d=!YCc.has(b);1===this.status&&d||(this.Qe=b,$Cc(this,a,!d||c),d||this.V.update(1),this.So||(this.So=!0,this.W.info("drive.ds.sync.appsettings.InMemoryAppSettingsCache","Apps initialized."),XL(this.ha,"nVUlO")))};
var $Cc=function(a,b,c){var d=!1,e=c?1:6;d=e!==a.status;a.status=e;e=_.Td(b,4);if(!d)if(e.length!==a.O.length)d=!0;else{var f=e.concat(a.O);_.Ea(f);d=f.length!==a.O.length}a.O=e;var h=_.$a(a.H);_.fgc(a.H);b=_.bk(b,_.DL,2);d||(d=b.length!==_.Qa(h));b.forEach(function(k){var l=XCc(k);a.H[k.getId()]=l;d||(k=h[k.getId()],d=!k||!_.fk(l,k))});a.W.info("drive.ds.sync.appsettings.InMemoryAppSettingsCache",(c?"Fresh":"Stale")+" apps loaded: "+b.length);d&&a.dispatchEvent(new _.ki("Qb",a))};
var yM=function(a){_.O.call(this);this.context=a;this.Ay=new Set;this.Ap=6;this.JBa=!0;this.Qe=0;this.Qc=new _.Le(this);this.Ma(this.Qc)};_.N(yM,_.O);_.g=yM.prototype;_.g.ji=function(a){this.rQa(a);this.Ay.add(a);this.resize(!0);this.uO(a)};_.g.rQa=function(){};_.g.dk=function(a){this.Ay.delete(a);0!=this.Ay.size||this.gYa()?this.resize(!1):this.dispose()};_.g.ef=function(){return this.Qe};_.g.Ei=function(a){this.Qe=a};_.g.VB=function(a){this.JBa=!1;this.Ap=a};_.g.EJ=function(){return this.Ap};
_.g.refresh=function(){};_.g.qk=function(){};
var bDc=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)}}aDc(a.context.vf,d,b);d.forEach(function(k){kzc(a.context.ALa,k,b);if(k.Ac()){var l=k.getCapabilities();LL(k)?l&&(_.mhc(l,_.S(l,13)),_.jhc(l,!1),_.qhc(l,!1)):VK(k)?(l&&_.y(l,3,!1),_.y(k,30,!1)):l&&(_.uhc(l,!1),_.vhc(l,!1))}k.getCapabilities()||_.WJ(k,
new _.Yk)})};yM.prototype.resize=function(){};yM.prototype.ud=function(){};yM.prototype.ql=function(a,b){var c=this,d=!1;a.forEach(function(e){e=VL(e);d=c.Ju(e,!0)||d});b||(1!=this.EJ()&&(d=!0),this.VB(1));d&&this.IX()};var cDc=function(a,b){var c=!1;b.forEach(function(d){c=a.Ju(d)||c});c&&a.IX();return c};_.g=yM.prototype;_.g.update=function(a){return cDc(this,[a])};_.g.Ju=function(){};_.g.IX=function(){var a=this;this.qQa();this.Ay.forEach(function(b){a.uO(b)})};_.g.qQa=function(){};
_.g.uO=function(a){var b=dDc(this.context).mka(a);this.sXa(b)||(b=this.qk(b),dDc(this.context).uO(a,b))};_.g.HX=function(a){var b=this;this.VB(3);this.Ay.forEach(function(c){dDc(b.context).HX(c,a)})};_.g.iA=function(){var a=this;this.Ay.forEach(function(b){dDc(a.context).iA(b)});this.Ei(0==this.ef()?1:6)};_.g.gYa=function(){return!1};_.g.sXa=function(){return!1};
var eDc=function(a){_.ki.call(this,"Ba");this.id=a};_.N(eDc,_.ki);
var fDc=function(a,b,c,d){d=void 0===d?!1:d;_.P.call(this);this.request=a;this.context=b;this.QJa=d;this.oe=null;this.items={};this.W=[];this.V=[];this.H=null;this.originalRequest=c||a;this.O=new Set};_.N(fDc,_.P);
fDc.prototype.Zg=function(){var a=this;if(this.oe)return this.oe.promise;this.oe=_.Vh();for(var b={},c=_.m(this.request.hn().entries()),d=c.next();!d.done;b={Nqa:b.Nqa,hea:b.hea,zqa:b.zqa},d=c.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;b.zqa=e;b.Nqa=Drc(Crc(d),this.request);b.hea=void 0;this.QJa&&(b.hea={QJa:!0});this.context.Qm().then(function(f){return function(h){return h.Ue(f.Nqa,f.hea)}}(b)).then(function(f){return void gDc(a,f)},function(f){return function(h){var k=f.zqa;h=
_.uB(h);5===h.Sg.Xs()||4===h.Sg.lk()?(a.context.Sf().info("drive.ds.sync.query.ViewCacheFindByIdsRunner","Deleting "+k+" due to: "+h.message),a.V.push(k),hDc(a)):a.handleError(h)}}(b))}return this.oe.promise};var gDc=function(a,b){b.od().Bd().forEach(function(c){_.HI(c,1);a.W.push(c)});hDc(a)},hDc=function(a){a.H||(a.H=_.n.setTimeout(a.ha.bind(a),10))};
fDc.prototype.ha=function(){_.n.clearTimeout(this.H);this.H=null;iDc(this);jDc(this);this.O.size===this.request.hn().length?(this.context.vf.ql([],1,this.originalRequest,!1),this.dispatchEvent("Da"),this.oe.resolve(this.items)):this.dispatchEvent("Aa")};
var iDc=function(a){var b=a.W;a.W=[];b=a.context.kfa.K8(b);if(_.NI(_.nI(a.context.Nc))){var c=a.context.vf.um;_.Ja(b,function(d){var e=c.H(d.getId());e&&_.VJ(d,e.kk())})}b.forEach(function(d){a.O.add(d.getId());a.items[d.getId()]=d});a.context.vf.ql(b,1,a.originalRequest,!0)},jDc=function(a){var b=a.V;a.V=[];b.forEach(function(c){var d=_.II(_.yI(new _.xI,c));a.context.vf.Qo([d]);a.O.add(c);a.items[c]=null;a.dispatchEvent(new eDc(c))})};
fDc.prototype.handleError=function(a){var b=new iL(a.Sg,_.gk(this.context.Nc.$f(),1,1));this.context.vf.qB(this.request,b);this.dispatchEvent(b);this.oe.reject(a)};
var kDc=function(a,b,c,d){yM.call(this,a);this.Og=b;this.request=c;this.Ld={};this.H=null;this.O=_.DI(a.Nc)||new _.Afc;d&&this.ql(d,!0)};_.N(kDc,yM);
kDc.prototype.refresh=function(){var a=this;if(this.H)return this.H.promise;this.Ap=6;if(_.T(this.request,5,!1))return this.VB(1),_.Sh();var b=!this.JBa&&_.T(this.O,3,!1)?!1:!qnc(_.jK(this.Og),this.request.O()),c=[],d=this.context.Yn();this.request.hn().forEach(function(h){if("root"!==h&&h!==d){var k=a.Ld[h],l=k&&k.getItem();if(k=!k||l&&1!==l.hv()||b)l=l&&l.Om(),k=!(l&&_.S(l,2));k&&c.push(h)}});if(0===c.length)return this.ql([],!1),_.Sh();this.H=_.Vh();this.H.promise.then(function(){a.H=null},function(){a.H=
null});var e=this.request.clone();_.qA(e,c);var f=new fDc(e,this.context,this.request);this.context.Hj().We()?(this.Qc.listen(this.context.Hj(),"Fb",function(h){h.We()||(a.Qc.Wc(a.context.Hj(),"Fb"),lDc(a,f,a.H))}),this.Ap=0<Object.values(this.Ld).length?1:2):(this.context.mk().We()&&(this.Ap=0<Object.values(this.Ld).length?1:2),lDc(this,f,this.H));return this.H.promise};var lDc=function(a,b,c){a.Qc.listen(b,"Ba",function(d){a.Ld[d.id]=null});a.iA();b.Zg().then(function(){c.resolve()},c.reject)};
_.g=kDc.prototype;_.g.Dha=function(a){var b=this;if(this.context.Fm.equals(a,this.request,!0)){if(qnc(_.jK(this.Og),a.O()))return!0;if(qnc(this.request.O(),a.O(),_.jK(this.Og))){if(this.JBa)return!0;if(_.T(this.O,5,!1)&&_.T(this.O,3,!1))return this.request.hn().every(function(c){return(c=b.Ld[c])&&_.S(c.getItem(),31)})}}return!1};
_.g.qk=function(a){var b=new _.rK;_.tI(this.context.Nc)?b.Dc(Dnc(Object.values(this.Ld))?6:this.Ap):b.Dc(this.Ap);b.Ei(this.ef());Vrc(b,_.Oa(this.Ld,function(c){return c?c.getItem():null}));bDc(this,a.O(),b.eq());return b};_.g.resize=function(){};_.g.ud=function(){return this.request};_.g.Ju=function(a){var b=this.rs(a.O),c=this.rs(a.H);if(b||c)c?(this.Ld[a.id]=a.H,a.H.count++,b&&a.O.count--):(this.Ld[a.id]=null,a.O.count--);else return!1;return!0};
_.g.rs=function(a){return!!a&&_.pa(this.request.hn(),a.getId())};
var mDc=function(a,b){_.ki.call(this,a);this.changes=b};_.N(mDc,_.ki);
var nDc=function(a){var b=new syc;if(a.Wf()){var c=a.Wf();b.H=!1;b.suggestionSessionId=c}a instanceof _.sK&&_.bk(a,_.Jk,6).length?(a=_.bk(a,_.Jk,6),b.H=!1,b.V=a):a instanceof _.iB&&(a.S5()||a.Hra()||a.Zja().length)&&(c=a.S5(),b.H=!1,b.W=c,c=a.Hra()||!1,b.H=!1,b.incompleteSearch=c,a=a.Zja(),b.H=!1,b.O=a);return b};
var zM=function(a,b,c,d,e){e=void 0===e?"":e;_.P.call(this);this.context=a;this.request=b;this.nextPageToken=e;this.W=0;this.va=!1;this.V=[];this.O=!1;this.ka=0;this.Ka=a.Sf();this.Ba=new Set;this.ma=c||!1;this.Ha=d||!1;this.Fa=this.uFa(b);this.ha=new syc};_.N(zM,_.P);var oDc=function(a){return!a.va||""!==a.nextPageToken},qDc=function(a,b){a.W=b;return a.V.length<a.W&&!a.O&&oDc(a)?pDc(a):_.bi()};zM.prototype.hc=function(){return this.V.length};zM.prototype.H=function(){return this.V.slice()};
var pDc=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 _.Xh;d.addCallback(function(f){return void rDc(a,c,f)});var e=_.dgc(_.egc(new _.uI,a.Fa),c);b=_.bgc(new _.$ec,b);a.Ha&&_.y(b,10,!0);_.cgc(e,b);a.va=!0;a.O=!0;a.context.Qm().then(function(f){return f.Ue(e)}).then(a.ta.bind(a,d),a.handleError.bind(a,d,b));return d};
zM.prototype.ta=function(a,b){this.O=!1;if(b instanceof _.sK)var c=b;else c=b.od(),this.nextPageToken=b.Xn()||"";this.ha=nDc(c);this.ha.vc()||this.dispatchEvent("Ca");a.callback(c.Bd())};
zM.prototype.handleError=function(a,b,c){c=_.uB(c);this.O=!1;if(5===c.Sg.Xs())a.callback([]);else{if(10===c.Sg.Xs()&&(_.bgc(b,Math.ceil(_.gk(b,1,1E3)/2-2E-15)),1<_.gk(b,1,1E3))){var d=_.cgc(_.dgc(_.egc(new _.uI,this.Fa),this.nextPageToken),b);this.O=!0;this.context.Qm().then(function(e){return e.Ue(d)}).then(this.ta.bind(this,a),this.handleError.bind(this,a,b));return}b=new iL(c.Sg,_.gk(this.context.Nc.$f(),1,1));this.xLa(b);this.dispatchEvent(b);a.Jd(c)}};
var rDc=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: ")+(_.njc(a.request)+" paginationToken: ")+b;b=_.hq(_.fq(_.AI(_.zI(new _.pc,2),9),f));a.context.dispatchEvent(new _.rc(new _.qc(f,b)));break}d.add(f.getId())}f=c.filter(function(h){var k=a.Ba.has(h.getId());a.Ba.add(h.getId());return!k});a.ka+=c.length-f.length;c=_.m(f);for(b=c.next();!b.done;b=c.next())_.HI(b.value,
a.ma?2:1);c=[];b=_.m(a.N0a(f));for(f=b.next();!f.done;f=b.next())f=f.value,a.V.push(f.getId()),f=_.yI(new _.xI,f.getId()).setItem(f),c.push(f);c.length&&a.dispatchEvent(new mDc("Aa",c));if(a.V.length<a.W&&a.nextPageToken)return pDc(a);a.dispatchEvent("Da")};_.g=zM.prototype;_.g.N0a=function(a){return a};_.g.xLa=function(){};_.g.ud=function(){return this.request};_.g.uFa=function(a){a=a.clone();this.ma&&_.y(a,46,!0);return a};_.g.log=function(a){this.Ka.info("drive.ds.sync.query.QueryRunner",a)};
var sDc=function(a,b,c,d){zM.call(this,a,b,void 0,c,d)};_.N(sDc,zM);sDc.prototype.N0a=function(a){a=this.context.kfa.K8(a);this.context.vf.ql(a,1,this.request,oDc(this));return a};sDc.prototype.xLa=function(a){this.context.vf.qB(this.request,a)};sDc.prototype.uFa=function(a){var b=a=zM.prototype.uFa.call(this,a),c=_.Hl(b);0===_.Td(b,33).length&&1===c.length&&(c=this.context.vf.um.H(c[0].Ya()))&&(c=c.Ac())&&(_.Jl(b,[c]),_.Kl(b,2));tDc(this,a);return a};
var tDc=function(a,b){if(_.Hl(b).some(function(d){return(d=a.context.vf.um.H(d.Ya()))&&_.S(d,108)})){var c=b.xe();c||(c=new _.tf,_.Il(b,c));_.uf(c,937)}};
var uDc=function(a,b,c,d){this.context=a;this.Og=b;this.W=d;this.yna=0;this.H=c},yDc=function(a,b){if(b){a.log("Processing potential rejoin for TD: "+b);var c=_.Kl(_.Fl(_.Jl(new _.gf,[b]),_.jK(a.Og)),1),d=_.uf(new _.tf,306);_.Il(c,d);vDc(a);c=new sDc(a.context,c);qDc(c,5E3).addCallback(a.V.bind(a,c));wDc(a);xDc(a,b)}},wDc=function(a){var b=_.Ra(a.H);b=b.filter(function(d){return d instanceof kDc});var c=new Set;b.forEach(function(d){d.ud().hn().forEach(function(e){a.W.get(e)||c.add(e)})});b=_.uf(new _.tf,
310);a.log("Re-querying missing find-by-ids :"+c.size);a.wO([].concat(_.od(c)),b)},xDc=function(a,b){var c=[];(a.context.vf.DFa.mQ[b||"subscribed"]||[]).forEach(function(d){_.Ma(a.H,function(e){_.fk(e.ud(),d)&&c.push(e)})});_.Ea(c);0<c.length&&(vDc(a),c.forEach(function(d){d=kL(a.context.Fm,d.ud(),3);a.log("Refreshing "+b+" cache: "+d)}),_.Wh(_.Uh(c.map(function(d){return d.refresh().Gg(_.Lf)})),a.O.bind(a)))};
uDc.prototype.wO=function(a,b,c,d,e){c=void 0===c?!1:c;a=a.filter(function(f){return!_.ie(f)});if(0===a.length)return _.Sh({});a=_.y(_.pA(_.qA(new _.oA,a),d||_.jK(this.Og)),7,!0);_.rA(a,b);e&&e.length&&_.Wj(a,11,e);vDc(this);b=new fDc(a,this.context,void 0,c);return _.Wh(b.Zg(),this.V.bind(this,b))};uDc.prototype.V=function(a){a.dispose();this.O()};var vDc=function(a){a.yna++;a.context.Ls.setActive(!1)};uDc.prototype.O=function(){this.yna--;0===this.yna&&this.context.Ls.setActive(!0)};
uDc.prototype.log=function(a){this.context.Sf().info("drive.ds.sync.cache.CacheRefresher",a)};
var zDc=function(a,b,c){_.O.call(this);this.context=a;this.H=b;this.request=c;this.O=this.oe=null;a=new _.tf;_.vf(a,!1);_.uf(a,305);_.Il(this.request,a);this.Qc=new _.Le(this);this.Ma(this.Qc)};_.N(zDc,_.O);
zDc.prototype.Zg=function(){if(!this.oe){this.oe=_.Vh();if(_.T(this.request,48,!1))return this.H.Ei(9),this.oe.resolve(this.H),this.oe.promise;this.O=new zM(this.context,this.request,!0);this.Qc.listen(this.O,"Aa",this.W);this.Qc.listen(this.O,"Da",this.V.bind(this));this.Qc.listen(this.O,"Ea",this.oe.reject.bind(this.oe));qDc(this.O,this.request.Li())}return this.oe.promise};zDc.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(VL(new JL(b)))};
zDc.prototype.V=function(){this.H instanceof ZL?this.H.H=!oDc(this.O):oDc(this.O)&&YL(this.H,!1);this.H.Ei(5);this.oe.resolve(this.H)};
var BDc=function(a,b){_.ki.call(this,ADc);this.cache=a;this.changes=b};_.N(BDc,_.ki);var ADc="Rb";
var CDc=function(a,b){return new _.Rh(function(c,d){b.then(function(e){for(var f=new Map,h=_.m(a.iy()),k=h.next();!k.done;k=h.next()){k=k.value;var l=k.getId();Lnc(k.getItem());f.set(l,yvc(new JL(k.getItem()),k.O))}h=_.m(e.items);for(k=h.next();!k.done;k=h.next())k=k.value,l=k.Cc(),l=f.get(l)||null,k.nk()?l&&a.update(new jxc(l.getId(),l,null)):(k=k.getItem(),Lnc(k),a.update(kxc(l,yvc(new JL(k),null===l||void 0===l?void 0:l.O))));a.$W();c(e.KJb)},d)})};
var DDc=function(a,b){_.O.call(this);this.context=a;this.Og=b};_.N(DDc,_.O);
DDc.prototype.Zg=function(a){this.log("Running initial view populator (IVDP).");try{var b=new HL(JSON.parse(a))}catch(q){this.handleError("Error parsing initial view dump.",_.PI(q));return}a=_.nI(this.context.Nc);if(!_.NI(a)){var c=b.Cf();if(c){var d=c.getUser();d&&d.getId()===_.E(a,6,"")&&VCc(this.context.TP,c,4)}(a=b.Yn())&&this.context.Cu(a,6)}var e=_.B(b,3)||void 0;e&&EDc(this.context,e,!0);if((a=_.bk(b,_.mp,9))&&a.length){c=(c=this.context.Nc.$f())&&_.Td(c,30)||[];var f=new Set(c);a.forEach(function(q){(q=
(q=q.getKey())&&_.np(q))&&f.add(q)});this.context.bE.cQ(a,4,[].concat(_.od(f.values())))}a=b.Bd();a.forEach(function(q){_.ugc(q);_.HI(q,6)});if(c=_.bk(b,GL,5)[0])if(b=this.context.Fm,xnc(_.jK(this.Og),c.getQuery().O(),_.cK(this.context.Nc)))if((d=c.getQuery().zc())&&4===d.getType()&&!_.tcc())this.handleError("Invalid initial view data, natural sort unsupported");else{if(0<a.length){d=OL(b,c.getQuery());var h=_.B(c,2)||void 0;d.ui(h);h=a.map(function(q){return new JL(q,void 0,1,e)});var k=_.C(c,_.dl,
3);if(k&&_.B(c,2)){var l=h[h.length-1];_.HI(k,6);if(!_.fk(k,l.getItem())){this.handleError("Invalid last item in initial view data.");return}}c=(k=_.DI(this.context.Nc))&&_.T(k,2,!1)&&c.Xn()||"";var p=new ZL(this.context.pt,this.context.uv,this.context.Fm,d,l,c);p.Ei(4);h.forEach(function(q){p.update(VL(q))});FDc(this.context.vf,p);l=p.ud();this.log("Imported "+a.length+" initial view items (IVDP) into a cache\n                hint corpus cache. Query: "+kL(b,l));b=new _.uI;_.egc(b,l);l=_.wkc(this.context.OA,
b,"IVDP");_.xkc(l,a);XL(this.context.Mj,"W6J7De")}}else this.handleError("Invalid initial view data, fields: "+ewc(b,c.getQuery().O()));else this.handleError("No initial query found")};DDc.prototype.handleError=function(a,b){var c=b?void 0:_.hq(_.AI(_.zI(new _.pc,2),6));b=new _.qc(a,c,b);this.context.qJ(b.Sg);this.log("Initial view dump population failed. Message: "+a);XL(this.context.Mj,"DEJoH")};DDc.prototype.log=function(a){this.context.Sf().info("drive.ds.sync.cache.InitialViewPopulator",a)};
var GDc=function(a){_.P.call(this);this.context=a;this.W="drive.ds.sync.cache.CorpusCachePopulator";this.V=0;this.O=new aM(a.pt,a.uv,a.Mj,function(){return a.Yn()});this.H=this.context.Nc;this.ta=new pxc(a.pt,a.uv)};_.N(GDc,_.P);
var HDc=function(a,b){var c=_.gk(a.H,31,2E4);("number"===typeof _.B(b,3)?_.B(b,3):c+1)>c?(YL(a.O,!1),b="partialCorpus",a.log("Too many subscribed items; skipping subscribed cache.")):(b="fullCorpus",a.log("Caching all subscribed items."));a.context.OA.Jb("CachedCorpusType",b)};GDc.prototype.log=function(a,b){this.context.Sf().log(this.W,a,b||"info")};var IDc=function(a,b){0===a.V&&(a.V=b)};
var JDc=function(a,b){var c;if(c=!!b&&!!b.yg())a=_.S(a,4),c=null==a||!!_.S(b.yg(),7)==a;return c};
var KDc=function(a,b){_.P.call(this);this.context=a;this.request=b;this.V=[];this.nextPageToken="";this.H=this.O=!1};_.N(KDc,_.P);KDc.prototype.Zg=function(){return this.H||this.O&&""===this.nextPageToken?_.bi():LDc(this)};KDc.prototype.hc=function(){return this.V.length};
var LDc=function(a){a.O=!0;a.H=!0;var b=Uqc(Vqc(new _.FJ,a.request),a.nextPageToken),c=_.wkc(a.context.OA,b);return _.ci(a.context.Qm().then(function(d){return d.Ue(b)}).then(function(d){var e=d.od().Bd();a.nextPageToken=d.Xn()||"";MDc(a,c,e)},function(d){return void a.handleError(d)}))},MDc=function(a,b,c){_.xkc(b,c);for(b=0;b<c.length;b++)_.HI(c[b],1);a.context.vf.ql(c,1,a.request,!a.O||""!==a.nextPageToken);var d=[];_.Ja(c,function(e){this.V.push(e.getId());e=_.yI(new _.xI,e.getId()).setItem(e);
d.push(e)},a);d.length&&a.dispatchEvent(new mDc("Aa",d));a.nextPageToken?LDc(a):(a.H=!1,a.dispatchEvent("Da"))};KDc.prototype.handleError=function(a){this.H=!1;a=new iL(_.BI(a),_.gk(this.context.Nc.$f(),1,1));this.dispatchEvent(a)};KDc.prototype.ud=function(){return this.request};
var NDc=function(a){this.H=_.ucc(a,{numeric:!0})};NDc.prototype.sort=function(a){_.Ha(a,this.compare.bind(this))};NDc.prototype.compare=function(a,b){a=a.getItem();b=b.getItem();var c=this.H(a.getTitle(),b.getTitle());return 0===c?_.Fa(a.getId(),b.getId()):c};
var ODc=function(a,b,c,d){d=void 0===d?!1:d;yM.call(this,a);this.Og=b;this.Ld=[];this.oe=null;this.request=c.clone();this.zv=new KDc(a,this.request);this.wOb=new NDc(cL(_.nI(a.Nc)));this.UBa=null!=_.S(this.request,6);_.De(this,this.Glb,this);d&&(this.oe=_.Vh(),this.oe.resolve())};_.N(ODc,yM);_.g=ODc.prototype;_.g.refresh=function(){3===this.Ap&&(this.Ap=6,this.oe=null);return this.gca()};_.g.isInitialized=function(){return!!this.oe};
_.g.gca=function(){var a=this;if(this.isInitialized())return this.oe.promise;this.oe=_.Vh();this.context.Hj().We()?this.Qc.listen(this.context.Hj(),"Fb",function(b){b.We()||(a.Qc.Wc(a.context.Hj(),"Fb"),a.iA(),a.zv.Zg().hg(a.oe.resolve,a.oe.reject,a.oe))}):this.context.mk().We()?this.Qc.ad(this.context.mk(),[_.vB.xL,_.vB.lU],function(){a.iA();a.zv.Zg().hg(a.oe.resolve,a.oe.reject,a.oe)}):(this.iA(),this.zv.Zg().hg(this.oe.resolve,this.oe.reject,this.oe));return this.oe.promise};_.g.resize=function(){};
_.g.ud=function(){return this.request};_.g.iy=function(){return this.Ld};_.g.Dha=function(a){return this.context.Fm.equals(a,this.request)};_.g.qk=function(a){a=a.Li();this.wOb.sort(this.Ld);var b=noc(_.Aa(this.Ld,0,Math.min(a,this.Ld.length)));bDc(this,src(this.Og),b);var c=new _.iB;c.Nw(b);c.Dc(this.$va(a));c.Ei(this.ef());sqc(c,a<this.Ld.length||!(this.context.Hj().We()||this.context.mk().We())&&1!==this.Ap);return c};
_.g.$va=function(a){return 1===this.Ap||a<=this.Ld.length?1:this.context.Hj().We()||this.context.mk().We()?0<this.Ld.length?1:2:6};_.g.ql=function(a,b){this.isInitialized()&&yM.prototype.ql.call(this,a,b)};_.g.Ju=function(a,b){b=void 0===b?!1:b;if(!this.isInitialized())return!1;var c=a.id,d=_.na(this.Ld,function(h){return h.getId()===c}),e=!!d;b=this.rs(a.H,b);var f=a.O;d&&(f=d,e=!0);if(e||b)e?b?this.wJa(f,a.H):this.mJ(f):this.sR(a.H);else return!1;return!0};_.g.sR=function(a){this.Ld.push(a);a.count++};
_.g.mJ=function(a){_.ua(this.Ld,a);a.count--};_.g.hya=function(a){return _.oa(this.Ld,a)};_.g.wJa=function(a,b){this.Ld[this.hya(a)]=b;b.count++;a.count--};_.g.rs=function(a,b){b=void 0===b?!1:b;if(!a)return!1;if(this.UBa&&null!=_.S(this.request,6)){if(b)return!0;var c=a.getId();b=!!this.Ld.find(function(d){return c===d.getId()},this);a=LL(a.getItem())&&JDc(this.request,a.getItem());return b&&a}return LL(a.getItem())&&JDc(this.request,a.getItem())};_.g.Glb=function(){this.Ld.forEach(function(a){a.count--})};
_.g.gYa=function(){return!0};_.g.getType=function(){return"TeamDriveViewCache"};_.g.Od=function(){return this.Ld.length};_.g.$W=function(){this.Ap=1};
var PDc=function(a){this.H=a},QDc=function(a,b,c,d,e){if(0===e||null===b){var f=new tBc;_.y(f,2,b);_.y(f,1,d);return _.Sh(f)}var h=ywc();_.y(h,2,b);c&&_.y(h,3,c);return a.H.then(function(k){return k.Ue(h)}).then(function(k){var l,p=null!==(l=k.my())&&void 0!==l?l:null;k=d+_.B(k,1);return QDc(a,p,c,k,e-1)})};
var RDc=function(a,b){GDc.call(this,a);this.Og=b;this.ha=void 0;this.ka=null;this.ma=!1;this.yD=void 0;this.W="drive.ds.sync.cache.LocalDumpPopulator"};_.N(RDc,GDc);RDc.prototype.handleError=function(){this.log("Local dump population failed.");XL(this.context.Mj,"mrK8ic")};
RDc.prototype.Zg=function(){var a=this;if(this.ka)return this.ka;if(this.context.tQ){var b=new _.Xh;this.ka=b;this.initialize().then(function(){var c=_.bk(_.dL(a.H),bL,11);c=c[0]&&c[0].getKey()||"";return SDc(a,a.context.tQ,c,4)}).Gg(function(c){if(_.T(a.H,8,!0))return TDc(a);throw c;}).then(function(){_.tI(a.H)||a.context.vf.tq.H.clear();XL(a.context.Mj,"zaOY7");b.callback()},function(c){IDc(a,8);a.handleError();b.Jd(c)});return b}this.handleError();return _.di(Error("gg"))};
RDc.prototype.initialize=function(){var a=this;return _.Sh(this.context.tQ.initialize()).then(function(){if(!_.dK(a.H)){var b=_.gk(_.dL(a.H),7,432E6);b&&(a.ha=Date.now()-b);return new _.Rh(function(c,d){GAc(a.context.sD).then(function(e){e?c():d(Error("hg"))})})}})};
var SDc=function(a,b,c,d){return _.Rf(a,function f(){var h=this,k;return _.Gf(f,function(l){return 1==l.H?(k=h.ha,UDc(h,b,c,k),VDc(h,b,c,k),WDc(h,b,c,k),_.Af(l,XDc(h,b,c,k),2)):_.Af(l,Promise.all([YDc(h,b,c,d,k),ZDc(h,b,c,d,k),$Dc(h,b,c,d,k),aEc(h,b,c,d,k)]),0)})})},UDc=function(a,b,c,d){var e=function(){return a.log("Failed to load account from storage.")};gM(b,c,0,void 0,d,a.yD).then(function(f){f[0]?VCc(a.context.TP,f[0],a.ef(),_.dK(a.H)):e()},function(){return e()})},VDc=function(a,b,c,d){var e=
function(){return a.log("Failed to load apps from storage.")};gM(b,c,1,void 0,d,a.yD).then(function(f){f[0]?a.context.IZ.cQ(f[0],a.ef(),_.dK(a.H)):e()},function(){return e()})},WDc=function(a,b,c,d){var e=function(){return a.log("Failed to load user prefs from storage.")};gM(b,c,5,void 0,d,a.yD).then(function(f){if(f[0]){f=f[0];var h=_.bk(f,_.mp,1);h.length&&a.context.bE.cQ(h,a.ef(),_.Td(f,2),_.dK(a.H))}else e()},function(){return e()})},YDc=function(a,b,c,d,e){var f=new _.Cn;gM(b,c,3,1,e,a.yD).then(function(h){return bEc(a,
h[0])}).then(function(h){if(h){b!==a.context.tQ||xnc(_.Td(h,12),_.jK(a.Og),_.cK(a.H))||(a.log("Disabling dump updater due to inconsistent fields.","warning"),a.context.Ls.fS());var k=_.B(h,3);if(!k||0>k)throw Error("kg");a.context.Cu(h.Yn(),d);k=_.B(h,3);"number"===typeof k&&EDc(a.context,Number(k));_.dK(a.H)&&(a.log("Coldstart: Firing INITIAL_CHANGES_PROCESSED."),a.context.cDa());a.ql(h,d);f.resolve()}else f.reject("Failed to load cache hints from storage.")},f.reject,f);return f.promise},ZDc=function(a,
b,c,d,e){var f=new _.Cn;gM(b,c,3,2,e,a.yD).then(function(h){h[0]?(a.ql(h[0],d),f.resolve()):f.reject(Error("ig"))},function(h){return f.reject(h)});return f.promise},$Dc=function(a,b,c,d,e){var f=new _.Cn;gM(b,c,3,4,e,a.yD).then(function(h){h.forEach(function(k){a.ql(k,d)});f.resolve()},function(h){return f.reject(h)});return f.promise},aEc=function(a,b,c,d,e){var f=new _.Cn;gM(b,c,3,3,e,a.yD).then(function(h){h.length?h.forEach(function(k){a.ql(k,d)}):XL(a.context.Mj,"rVezo");f.resolve()},function(h){return f.reject(h)});
return f.promise},XDc=function(a,b,c,d){var e=new _.Cn;gM(b,c,6,void 0,d,a.yD).then(function(f){f=_.m(f);for(var h=f.next();!h.done;h=f.next())h=h.value,_.bk(h,TL,1).length&&(a.log("Importing "+_.bk(h,TL,1).length+" people into the PeopleCache."),h=_.bk(h,TL,1),Pxc(a.context.vf.tq.H,h,2));e.resolve()},function(f){return e.reject(f)});return e.promise},bEc=function(a,b){var c=_.B(b,3);if(c&&!_.dK(a.H)){var d=new PDc(a.context.Qm()),e=_.gk(_.dL(a.H),13,5);return QDc(d,c,null,0,e).then(function(f){return _.Q(f,
2)?(a.log("Encrypted dump too stale."),a.context.Rk().O(106007),IDc(a,9),null):b},function(){return b})}return _.Sh(b)},TDc=function(a){var b=hM(a.context.FL.zi()),c=_.bk(_.dL(a.H),bL,11).filter(function(d){return d.ht()});return yAc(_.bK(_.nI(a.H)),_.cK(a.H),_.gk(_.dL(a.H),10,0)||0,_.jK(a.Og),a.ha||0,c.map(function(d){return _.B(d,1)}),b).then(function(d){if(d){var e=c.find(function(k){return d.V===_.B(k,1)}),f=new iM(_.Sh(d),a.context.Sf(),null,!0),h=new wzc(f,a.H,function(k){a.context.qJ(k)});
h.initialize();a.ma=!0;return SDc(a,h,e?e.getKey():null,8).then(function(){return f.getMetadata([DAc])}).then(function(k){k[0]?(k=k[0].Ya(),k=a.context.sD.set(DAc,k)):k=Promise.resolve();return k}).then(function(){f.close()})}return _.Th(Error("jg"))})},fEc=function(a,b,c){switch(b.Wn()){case 1:return cEc(a,b,c);case 2:var d;b=_.C(b,uoc,11);if(!b)throw Error("lg");HDc(a,b);(b=a.O.bH?a.O:(null===(d=_.DI(a.H))||void 0===d?0:_.T(d,17,!1))?a.ta:null)?(b.Ei(a.ef()),a=[{cache:b,changes:fM(a.context.qz,
null)}]):a=[];return a;case 3:return dEc(a,b);case 4:return eEc(a,b);default:return null}},cEc=function(a,b,c){var d=[];_.bk(b,GL,5).forEach(function(e){var f=void 0,h=_.C(e,_.dl,3);h&&(_.ugc(h),_.S(a.H,67)&&lnc(h,Anc),_.HI(h,c),f=new JL(h));var k=e.getQuery();if(!_.T(k,48,!1)||_.bk(a.H,_.gf,44).some(function(l){if(!_.T(l,48,!1))return!1;l=OL(a.context.Fm,l,!0);return _.fk(l,k)}))e=new ZL(a.context.pt,a.context.uv,a.context.Fm,k,f),e.Ei(a.ef()),d.push({cache:e,changes:fM(a.context.qz,null)})});return d},
eEc=function(a,b){return _.bk(b,GL,5).map(function(c){c=new ODc(a.context,a.Og,_.C(c,_.hI,5),!0);c.Ei(a.ef());return{cache:c,changes:fM(a.context.qz,null)}})},dEc=function(a,b){var c=_.Td(_.bk(b,GL,5)[0].getQuery(),33)[0],d=_.B(b,3)||void 0;b=fM(a.context.qz,c);AM(a.context).addCallback(function(f){f.Dua(c,d)});var e=new bM(a.context.pt,a.context.uv,c);e.Ei(a.ef());return[{cache:e,changes:b}]};
RDc.prototype.ql=function(a,b){var c=this,d=fEc(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;_.ugc(h);_.S(this.H,67)&&lnc(h,Anc);_.HI(h,b);_.tI(this.H)||this.context.vf.tq.H.vc()||kyc(this.context.vf.tq,[h]);f=new JL(h);_.Td(a,14).includes(h.getId())&&yvc(f,!0);for(h=0;h<d.length;h++)d[h].cache.update(VL(f))}d.forEach(function(k){var l=k.cache;c.dispatchEvent(new BDc(l,k.changes));c.log("Imported "+l.Od()+" items into the "+l.getType());var p=null;
l instanceof bM&&(p=l.Ac());c.context.N$.promise.then(function(){Syc(c.context.qz,p)})});1===a.Wn()&&XL(this.context.Mj,"ZA9qG")}else this.log("Ignoring corpus cache for "+a.Wn()+".")};RDc.prototype.ef=function(){return this.ma?7:3};
var gEc=function(a){_.O.call(this);this.context=a};_.N(gEc,_.O);gEc.prototype.Zg=function(a){try{hEc(this,new mBc(JSON.parse(a)))}catch(b){this.handleError("Error parsing prefetched request.",b)}};
var hEc=function(a,b){a.log("Running prefetched request populator for "+b.getKey()+".");switch(b.getKey()){case 1:case 3:iEc(a,b);break;case 4:jEc(a,b);break;case 6:kEc(a,b);break;case 2:lEc(a,b);break;case 7:mEc(a,b);break;case 5:_.bk(_.C(b,oBc,7),mBc,1).forEach(function(c){hEc(a,c)});break;default:a.handleError("Unsupported prefetched request.")}},iEc=function(a,b){var c=_.C(b,_.gf,2);b=JSON.parse(_.B(b,3)||"{}");var d=new _.uI;_.egc(d,c);b=a.context.aR().Wra.BE(d,{headers:{},text:"",json:b}).od();
nEc(a,c,b)},kEc=function(a,b){nEc(a,_.C(b,_.gf,2),_.C(b,_.iB,9))},nEc=function(a,b,c){for(var d=c.Bd(),e=_.m(d),f=e.next();!f.done;f=e.next())_.HI(f.value,7);c=nDc(c);a=a.context.vf;b=OL(a.context.Fm,b);e=BM(a,b);a.log("Initializing cache with "+d.length+" items for key '"+e+"'");f=a.O[e];f||(f=new CM(a.context,b),f.Ei(2),a.O[e]=f);c.vc()||f.Vra(c);a.ql(d,1,b)},lEc=function(a,b){b=_.C(b,_.Sz,5);var c=a.context.Nc.$f();c=c&&_.Td(c,30)||[];var d=new Set(c);_.bk(b,_.mp,3).forEach(function(e){(e=(e=e.getKey())&&
_.np(e))&&d.add(e)});a.context.bE.cQ(_.bk(b,_.mp,3),2,[].concat(_.od(d.values())))},jEc=function(a,b){a.context.lfa.A2(_.C(b,UL,8).nl(),_.C(b,_.Wz,6),2,!1)},mEc=function(a,b){var c=_.C(b,_.Uz,10);b=JSON.parse(_.B(b,3)||"{}");b=a.context.aR().Wra.BE(c,{headers:{},text:"",json:b});ECc(a.context).A2([b],c,2,!1)};gEc.prototype.handleError=function(a,b){var c=b?void 0:_.hq(_.AI(_.zI(new _.pc,2),6));this.context.dispatchEvent(new _.rc(new _.qc(a,c,b)));this.log("Prefetched request population failed.")};
gEc.prototype.log=function(a){this.context.Sf().info("drive.ds.sync.cache.PrefetchedRequestPopulator",a)};
var DM=function(a){GDc.call(this,a);this.ha=[];this.ka=[];this.W="drive.ds.sync.cache.SdkCachePopulator";this.va=Math.ceil(1.1*_.gk(a.Nc,31,2E4))};_.N(DM,GDc);DM.prototype.Zg=function(){if(!_.T(this.H,45,!1))return IDc(this,5),this.handleError(),_.di(Error("mg"));this.log("Drive SDK cache population initiated.");return this.context.EUa().addCallback(this.Fa,this).addCallback(this.Ba,this).Rg(this.handleError,this)};
DM.prototype.Fa=function(){var a=this;XL(this.context.Mj,"L6uQWd");AM(this.context).addCallback(function(b){b.Eda()});if(_.T(this.H,46,!1))return toc(this.context.Qm(),this.context.Sf()).addCallback(function(b){if(!b)throw IDc(a,4),Error("ng");HDc(a,b)});this.log("Subscribed corpus cache population disabled.");YL(this.O,!1);return _.bi()};
DM.prototype.Ba=function(){this.context.cDa();var a=new _.Xh;if(this.O.bH){this.log("Starting subscribed corpus cache population.");var b=this.O.ud();b.ui(this.va);this.O.Ei(5);oEc(this,this.O,b)}b=_.bk(this.H,_.gf,44);b=_.m(b);for(var c=b.next();!c.done;c=b.next())c=new ZL(this.context.pt,this.context.uv,this.context.Fm,c.value),c.Ei(5),oEc(this,c,c.ud()),c=kL(this.context.Fm,c.ud()),this.log("Starting "+c+" cache hint corpus cache population.");_.Uh(this.ka).then(a.callback,this.ma.bind(this,a),
a);return a};var oEc=function(a,b,c){var d=fM(a.context.qz,null);b=new zDc(a.context,b,c);a.ha.push(b);b=_.Wh(b.Zg().then(function(e){!e.bH&&e instanceof aM&&(a.log("Subscribed corpus cache disabled, too many backfill items."),a.context.OA.Jb("CachedCorpusType","errorUncachedCorpus"));a.dispatchEvent(new BDc(e,d))}),function(){a.context.N$.promise.then(function(){Syc(a.context.qz,null)})});a.ka.push(b)};
DM.prototype.ma=function(a,b){for(var c=_.m(this.ha),d=c.next();!d.done;d=c.next())d.value.dispose();IDc(this,7);c=b;b instanceof iL?c=_.PI(b.error):_.rI(b)||(c=Error("og`"+b));a.Jd(c)};DM.prototype.handleError=function(){this.log("Drive SDK cache population failed.");XL(this.context.Mj,"Gv4zef")};DM.prototype.ef=function(){return 5};
var pEc=function(a,b){_.O.call(this);this.context=a;this.V=b;this.Qc=new _.Le(this);this.impression=null;this.W=[];this.Ma(this.Qc);this.H=new RDc(this.context,this.context.Og);this.Ma(this.H);this.O=new DM(this.context);this.Ma(this.O)};_.N(pEc,_.O);
pEc.prototype.Zg=function(){var a=this;this.log("Corpus cache population initiated.");this.impression=this.context.Rk().H(106002);_.n._DRIVE_dsp&&qEc(this);_.n._DRIVE_dspc=function(c){qEc(a,c)};fM(this.context.qz,null);_.T(this.context.Nc,24,!1)&&!_.dK(this.context.Nc)&&(_.n._DRIVE_ivd||null===_.n._DRIVE_ivd?rEc(this):_.n._DRIVE_ivdc=function(){rEc(a)});var b=this.context.tQ;if(b)return this.Qc.listen(this.H,ADc,this.ha),this.Qc.listen(this.O,ADc,this.ha),(!_.T(this.context.Nc,10,!1)&&_.S(this.context.Nc,
69)?this.context.xX.promise:Promise.resolve()).then(function(){return b.initialize().then(function(){a.log("Dump storage initialized.");a.impression&&(a.H.yD=a.impression);return a.H.Zg().hg(function(){return sEc(a,a.H.ef())},function(){tEc(a,a.H.ef(),a.H.V);return _.dK(a.context.Nc)?a.handleError(Error("pg")):a.O.Zg().then(function(){return sEc(a,a.O.ef())},function(c){tEc(a,a.O.ef(),a.O.V);return a.handleError(c)})})},function(c){a.handleError(_.rI(c)?c:void 0,!0)})});this.handleError(void 0,!0)};
var qEc=function(a,b){var c=new gEc(a.context);(_.n._DRIVE_dsp||[]).filter(function(d,e){return d&&[,!0,!0,!0,!0,,!0,!0][e]&&(!b||e===b)}).forEach(function(d){c.Zg(d)});c.dispose()};pEc.prototype.ha=function(a){var b=a.cache;this.log("Cache populated: "+b.getType());this.W.push(uEc(this,b,a.changes))};
var sEc=function(a,b){Syc(a.context.qz,null);XL(a.context.Mj,"L6uQWd");AM(a.context).addCallback(function(c){c.Eda()});return Promise.all(a.W).then(function(){vEc(a,b)})},vEc=function(a,b){if(!a.isDisposed()){_.dK(a.context.Nc)||wEc(a.V,_.bk(a.context.Nc,_.gf,44));a.log("Corpus cache population complete.");var c=a.context.Mj;c.H("mrK8ic")?c.H("Gv4zef")||a.context.Ls.dDa():GAc(a.context.sD).then(function(d){d&&a.context.Ls.dDa()},function(){});XL(c,"rVezo");XL(c,"BNEDtc");a.impression&&(b=_.qK(_.ofc,
b),mrc(urc(a.impression),b),lrc(urc(a.impression),!0),nrc(urc(a.impression),Uvc(a.V.um)),orc(urc(a.impression),a.context.vf.Wn()),a.impression.Yj());a.dispose()}},tEc=function(a,b,c){a.impression&&(b=_.qK(_.ofc,b),mrc(urc(a.impression),b),a=urc(a.impression),_.Zj(a,3,c,void 0))};
pEc.prototype.handleError=function(a,b){b=void 0===b?!1:b;Syc(this.context.qz,null);var c=this.context.Mj;XL(c,"L6uQWd");AM(this.context).addCallback(function(d){d.Eda()});XL(c,"mrK8ic");XL(c,"Gv4zef");XL(c,"rVezo");XL(c,"BNEDtc");this.context.OA.Jb("CachedCorpusType","partialCorpus");c=!!this.H.context.tQ||_.T(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 _.qc(b,void 0,c),c=a.Sg,_.zI(c,_.dK(this.context.Nc)?3:1),_.AI(c,
6),_.fq(c,b),_.hq(c),this.context.dispatchEvent(new _.rc(a))):this.log("Corpus population skipped");this.impression&&(lrc(urc(this.impression),!1),this.impression.Yj());this.dispose()};var uEc=function(a,b,c){return CDc(b,c).then(function(d){d.some(function(e){return b instanceof bM&&e.nk()&&e.Cc()===b.Ac()})||FDc(a.V,b,d)},function(){return a.handleError(Error("qg"))})},rEc=function(a){if(_.n._DRIVE_ivd){var b=new DDc(a.context,a.context.Og);a.Ma(b);b.Zg(_.n._DRIVE_ivd)}else XL(a.context.Mj,"DEJoH")};
pEc.prototype.log=function(a){this.context.Sf().info("drive.ds.sync.cache.CorpusCachePopulatorManager",a)};
var xEc=function(){$L.apply(this,arguments)};_.N(xEc,$L);xEc.prototype.rs=function(a){var b;if(b=$L.prototype.rs.call(this,a))a=a&&a.getItem()&&a.getItem().Om(),b=!(!a||!_.S(a,3));return b};xEc.prototype.ud=function(){};xEc.prototype.getType=function(){};xEc.prototype.JN=function(){};
var yEc=function(a,b){this.context=a;this.H=b;this.mQ={}},AEc=function(a,b){if(!_.mJ(b)){var c=_.Td(b,33);if(1===c.length)zEc(a,c[0],b);else{c=_.Hl(b);if(1===c.length&&!_.T(c[0],2,!1)){var d=c[0].Ya();c=a.H.get(d);if(!c){c=a.context.vf.yI;var e=_.uf(new _.tf,310);c.wO([d],e).then(function(f){if((f=f[d])&&f.Ac()){var h=f.getCapabilities();h&&_.qe(h)&&(f=f.Ac(),zEc(a,f,b))}else zEc(a,null,b)});return}if(c.getItem().Ac()&&_.qe(c.getItem().getCapabilities())){c=c.getItem().Ac();zEc(a,c,b);return}}zEc(a,
null,b)}}},zEc=function(a,b,c){if(b){var d=a.H.get(b);if(d&&!LL(d.getItem()))return}d=b||"subscribed";a.mQ[d]||(a.mQ[d]=[]);a.mQ[d].push(c);b&&(AM(a.context).addCallback(function(e){e.Dua(b)}),BEc(a.context.AIa,b))},CEc=function(a,b){if(!_.mJ(b)){var c={},d;for(d in a.mQ){c.wT=d;for(var e=0;e<a.mQ[c.wT].length;e++)if(_.fk(b,a.mQ[c.wT][e])){_.ta(a.mQ[c.wT],e);"subscribed"!==c.wT&&AM(a.context).addCallback(function(f){return function(h){h.fGa(f.wT,!1)}}(c));return}c={wT:c.wT}}}};
var DEc=function(){this.H=new Map;this.O=[];this.V=[]};
DEc.prototype.update=function(a){var b=this,c=a.id,d=a.O;a=a.H;var e=(d||a).getItem();UK(e)&&(a?(e=a.getItem().Pf())&&_.B(e,1)&&(1===_.$d(e)||3===_.$d(e))&&(e=_.B(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&&!_.fk(a.getItem(),d.getItem()))&&this.H.get(c).forEach(function(f){b.V.push(f)})};
var EEc=function(a){return a.V.filter(function(b){return!a.O.includes(b)})},FEc=function(a){a.O=[];a.V=[]};
var GEc=function(a,b){Wyc.call(this,a.clone(),b.Qm(),b.Nc,b.Sf());this.context=b};_.N(GEc,Wyc);GEc.prototype.W=function(a){var b=new Map;a.hn().forEach(function(c){var d=_.OVb(a.clone(),[c]);b.set(c,d)});return b};GEc.prototype.V=function(a){a=a.Bd()[0];this.context.vf.ql([a],1,void 0,!0,this.request.O())};GEc.prototype.ha=function(a){this.context.vf.ql([],1,a,!1,this.request.O())};GEc.prototype.ka=function(a){a=_.II(_.yI(new _.xI,a));this.context.vf.Qo([a])};
var HEc=function(a,b,c,d){yM.call(this,a);this.Og=b;this.request=c;this.Ld={};d&&this.ql(d,!0)};_.N(HEc,yM);_.g=HEc.prototype;
_.g.refresh=function(){var a=this;this.Ap=6;var b=KL(this.context.Nc)!==KL(this.context.Nc,this.request.O()),c=[];this.request.hn().forEach(function(h){var k=a.Ld[h];k&&k.getItem().yg()&&!b||c.push(h)});if(0===c.length)return this.ql([],!1),_.Sh();var d=this.request.clone();_.OVb(d,c);var e=new GEc(d,this.context),f=_.Vh();this.context.Hj().We()?(this.Qc.listen(this.context.Hj(),"Fb",function(h){h.We()||(a.Qc.Wc(a.context.Hj(),"Fb"),a.iA(),e.Zg().then(f.resolve,f.reject,f))}),this.Ap=0<_.Qa(this.Ld)?
1:2):(this.context.mk().We()&&(this.Ap=0<_.Qa(this.Ld)?1:2),this.iA(),e.Zg().then(f.resolve,f.reject,f));return f.promise};_.g.Dha=function(a){return this.context.Fm.equals(a,this.request)&&qnc(_.jK(this.Og),a.O())};_.g.qk=function(a){var b=new _.rK;b.Dc(this.Ap);b.Ei(this.ef());Vrc(b,_.Oa(this.Ld,function(c){return c?c.getItem():null}));bDc(this,a.O(),b.eq());return b};_.g.resize=function(){};_.g.ud=function(){return this.request};
_.g.Ju=function(a){var b=this.rs(a.O),c=this.rs(a.H);if(b||c)c?(this.Ld[a.id]=a.H,a.H.count++,b&&a.O.count--):(this.Ld[a.id]=null,a.O.count--);else return!1;return!0};_.g.rs=function(a){return!!a&&this.request.hn().includes(a.getId())};
var CM=function(a,b,c,d,e){yM.call(this,a);var f=this;this.V=0;this.Ld=[];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.zv=new sDc(this.context,this.request,!1,e);b=this.request.zc()&&Wvc(this.request.zc());var h=this.context.uv;this.H=b?function(k,l){return h.compare(f.request,k,l)}:null;this.UBa=!b||!Ovc(this.request)||_.NI(_.nI(a.Nc));this.Fa=uxc(this.request);
c&&this.ql(c,!d);this.va=_.gk(a.Nc.$f(),16,36E5);_.JJ(this.request)&&this.Qc.listen(this.context.Rga,"Hb",this.Ha);_.De(this,function(){_.aa(f.zv);f.clear()})};_.N(CM,yM);CM.prototype.refresh=function(){return IEc(this,!1)};var IEc=function(a,b){a.Ap=6;if(_.T(a.request,48,!1))return a.Ap=1,_.Sh();if(_.JJ(a.request)){var c=JEc,d=a.context.Rga.H;d=Math.max(Date.now()-d,a.va);c(a,Math.min(d,2592E5))}return KEc(a,b)};
CM.prototype.initialize=function(){return this.count>=this.request.Li()||1===this.Ap?_.Sh():this.refresh()};CM.prototype.clear=function(){LEc(this)};var LEc=function(a){a.Ld.forEach(function(b){b.count--});a.count=0;a.Ld=[];a.O.clear()},JEc=function(a,b){_.n.clearTimeout(a.Ba);a.Ba=_.n.setTimeout(function(){return IEc(a,!0)},b)};CM.prototype.Ha=function(){Date.now()-this.ta>this.va&&JEc(this,0)};
var KEc=function(a,b){a.zv&&(a.Qc.Wc(a.zv,"Ca",a.Vra),a.Qc.Wc(a.zv,"Da",a.yLa),a.zv.dispose());var c=a.request.xe();c&&_.vf(c,!1);a.zv=new sDc(a.context,a.request,b);a.V=0;a.Qc.listen(a.zv,"Ca",function(){return a.Vra(a.zv.ha)});a.Qc.listen(a.zv,"Da",a.yLa);return a.gca()};
CM.prototype.gca=function(){var a=this,b=_.Vh();this.context.Hj().We()?this.Qc.listen(this.context.Hj(),"Fb",function(c){c.We()||(a.Qc.Wc(a.context.Hj(),"Fb"),MEc(a,b))}):this.context.mk().We()?this.Qc.ad(this.context.mk(),[_.vB.xL,_.vB.lU],function(){MEc(a,b)}):MEc(this,b);return b.promise};var MEc=function(a,b){a.iA();var c=a.request.Li()+a.V;_.ika(qDc(a.zv,c).hg(b.resolve,b.reject,b),function(){return a.ta=Date.now()})};_.g=CM.prototype;
_.g.resize=function(a){var b=0;for(var c=_.m(new Set([].concat(_.od(this.Ay)))),d=c.next();!d.done;d=c.next())d=d.value,d=dDc(this.context).mka(d),b=Math.max(b,d.Li());_.JJ(this.request)?(this.request.ui(b),2!==this.ef()&&!this.zv.O&&(b>this.count||a)?this.refresh():this.vJ()):this.request.Li()!==b&&(this.request.ui(b),b>this.count?this.gca():this.vJ())};_.g.ud=function(){return this.request};_.g.Dha=function(a){return this.context.Fm.equals(a,this.request)};
_.g.qk=function(a){var b=a.Li(),c,d=!1;if(_.nJ(this.request)){var e=this.Ld.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=_.hl(k.getItem()).filter(function(l){return h.includes(_.C(l,_.Jk,1).getId())});k=k.clone();unc(k.getItem(),d);e[c]=k}e=e.filter(function(l){return _.hl(l.getItem()).length})}d=Dnc(e);c=new _.sK;_.y(c,4,!1);Zrc(c,f)}else e=this.Ld.slice(0,b),c=new _.iB,sqc(c,b<this.Ld.length||!(this.context.Hj().We()||
this.context.mk().We())&&1!==this.Ap),_.J(c,7,this.ka),_.y(c,8,this.incompleteSearch),_.Qj(c,18,this.ha),d=Dnc(e);e=noc(e);bDc(this,a.O(),e);c.Nw(e);c.Dc(d?6:this.$va(b));c.Ei(this.ef());c.sP(this.suggestionSessionId);return c};_.g.$va=function(a){return 1===this.Ap||a<=this.count?1:this.context.Hj().We()||this.context.mk().We()?0<this.Ld.length?1:2:6};_.g.Vra=function(a){this.ka=a.W;this.incompleteSearch=a.incompleteSearch;this.ha=a.zza();this.W=a.V;this.suggestionSessionId=a.Wf()};
_.g.yLa=function(){var a=this.request.Li()-this.count;0<a&&oDc(this.zv)&&(this.V+=a,this.gca())};_.g.ql=function(a,b){_.JJ(this.request)&&LEc(this);var c=!1;a=_.m(a);for(var d=a.next();!d.done;d=a.next())d=VL(d.value),c=this.Ju(d,!0)||c;b||(1!==this.Ap&&(c=!0),this.Ap=1);if(a=this.H){a:{a=this.Ld;d=this.H||_.Fa;for(var e=1;e<a.length;e++)if(0<d(a[e-1],a[e])){a=!1;break a}a=!0}a=!a}a&&(this.Hn("ViewCache unsorted after import"),this.context.uv.sort(this.request,this.Ld));c&&(this.IX(),NEc(this,b))};
var NEc=function(a,b){_.Hl(a.request).length&&a.Ld.length&&a.context.HZ.then(function(c){var d=Arc(a.context.Rk(),106024,a.ma);if(d){var e=_.Hl(a.request)[0].Ya(),f=_.C(_.pK(d),hrc,18);if(!f){f=new hrc;var h=_.pK(d);_.J(h,18,f)}f=_.y(f,1,!b);c=_.y(f,2,c===e).Bt(a.Ld.length);e=a.context.vf.Wn();_.y(c,4,e);a.ma=d;d.Yj()}})};_.g=CM.prototype;
_.g.Ju=function(a,b){var c=this.O.get(a.id),d=!!c,e=this.rs(a.H,b),f=a.O;c&&(d?a.O&&a.O!==c&&this.Hn("Updating different wrapper from the existing one"):this.Hn("Updating existing item but old wrapper did not match"),f=c,d=!0);if(d||e)if(d)e?this.wJa(f,a.H):(this.mJ(f),_.JJ(this.request)&&JEc(this,0));else{if(_.JJ(this.request)&&!b)return!1;this.sR(a.H)}else return!1;return!0};_.g.sR=function(a){this.H?dnc(this.Ld,a,this.H):this.Ld.push(a);a.count++;OEc(a)&&this.count++;this.O.set(a.getId(),a)};
_.g.mJ=function(a){if(this.H){var b=this.Ld,c=_.Ga(b,a,this.H);0<=c&&_.ta(b,c)}else _.ua(this.Ld,a);a.count--;OEc(a)&&this.count--;this.O.delete(a.getId())};_.g.hya=function(a){return this.H?_.Ga(this.Ld,a,this.H):_.oa(this.Ld,a)};_.g.wJa=function(a,b){this.H&&0!==this.H(a,b)?(this.mJ(a),this.sR(b)):(this.Ld[this.hya(a)]=b,b.count++,OEc(b)&&this.count++,a.count--,OEc(a)&&this.count--,this.O.delete(a.getId()),this.O.set(b.getId(),b))};
_.g.rs=function(a,b){if(!a)return!1;if(this.UBa&&!_.JJ(this.request)){if(b)return!0;if(!this.Fa){var c=a.getId();b=!!this.Ld.find(function(e){return c===e.getId()},this);a=ML(this.context.pt,this.request,a.getItem());return b&&a}}if(!ML(this.context.pt,this.request,a.getItem()))return!1;var d=1.2*this.request.Li();if(1===this.Ap||!this.H||wvc(a.H,2)||this.count<d||b||Mnc(a.getItem()))return!0;b=0===this.Ld.length?null:this.Ld[this.Ld.length-1];return!!b&&0>=this.H(a,b)};
_.g.vJ=function(){if(1!==this.Ap&&!this.context.Hj().We()&&!this.context.mk().We()){var a=1.2*this.request.Li();if(!(a>=this.count||this.zv&&a>=this.zv.hc())){a=this.count-this.request.Li();for(var b=this.Ld.length-1;0<=b&&0<a;b--){var c=this.Ld[b];wvc(c.H,2)||Mnc(c.getItem())||(c.count--,OEc(c)&&this.count--,this.O.delete(c.getId()),_.ta(this.Ld,b),a--)}KEc(this,!1)}}};_.g.Hn=function(a){var b=new _.pc;_.zI(b,2);_.AI(b,6);_.hq(b);this.context.dispatchEvent(new _.rc(new _.qc(a,b)))};
var OEc=function(a){return!wvc(a.H,2)&&3!==a.getItem().hv()};CM.prototype.rQa=function(a){var b=this,c=_.Hl(this.request);c.length&&(c=c.some(function(d){return(d=b.context.vf.um.H(d.Ya()))&&_.S(d,108)}),Lwc(this.context.ifa,a,c))};CM.prototype.qQa=function(){this.vJ()};CM.prototype.sXa=function(a){return 1!==this.Ap&&a.Li()>this.count&&this.zv.O};
var EM=function(a,b){var c;_.O.call(this);var d=this;this.O={};this.W=new DEc;this.Qc=new _.Le(this);this.Ma(this.Qc);this.context=a;this.Og=b;this.Qs=new Bxc(a.Fm,a.Sf());if(null===(c=_.DI(this.context.Nc))||void 0===c?0:_.T(c,15,!1))b=new pxc(a.pt,a.uv),this.Qs.add(b),a.jfa.promise.then(function(){var e,f,h,k;null===(f=null===(e=d.Qs)||void 0===e?void 0:e.O)||void 0===f?void 0:YL(f,!(null===(k=null===(h=d.Qs)||void 0===h?void 0:h.H)||void 0===k?0:k.bH))});this.H=new Nvc(a.HZ,a.pt,a.uv);_.S(a.Nc,
60)&&(this.va=new xEc(a.pt,a.uv));this.V=new Ivc(a.Sf(),_.jK(this.Og));PEc(this,_.Td(this.context.Nc,28));this.um=new Qvc(this.Og,this.context.Fm,this.H,this.V);this.context.Rk().W.H=this.um;this.yI=new uDc(this.context,this.Og,this.O,this.H);this.DFa=new yEc(this.context,this.H);this.ka=new pEc(this.context,this);_.De(this.ka,function(){d.ka=null});this.ta=_.qgc(_.jK(this.Og),QEc);WL(this.context.Mj,["NSockf"],function(){return d.initialize()});WL(this.context.Mj,["NSockf","jroI5d"],function(){var e=
d.context.Nc;if(_.C(e,_.dl,12))e=_.C(e,_.dl,12);else{var f=_.ahc(_.chc(new _.Jk,_.bK(_.nI(e))),!0);f=_.y(f,6,1);var h=_.E(_.nI(e),6,"");h&&f.Ob(h);f=_.TVb(_.Hhc(_.Ihc(_.hG((new _.dl).Ob(d.context.Yn()).setTitle(_.E(e,38,"My Drive")),"application/vnd.google-apps.folder").Mn(!1),f),[f]),1);f=_.y(f,29,!0);f=_.y(f,63,!0);e=_.dhc(new _.Yk,_.T(e,6,!0));e=_.y(e,2,!1);e=_.WJ(f,_.qhc(_.jhc(_.ihc(_.mhc(_.nhc(_.lhc(_.khc(_.hhc(_.ghc(_.fhc(_.ehc(_.y(e,3,!1),!1),!1),!0),!0),!1),!1),!1),!1),!1),!1),!1))}d.ql([e],
1);XL(d.context.Mj,"hVFf7")});this.ha=_.Vh();WL(this.context.Mj,["BNEDtc"],function(){d.ha.resolve()});this.tq=new ayc(this.context.Nc,this.context.Sf(),a.Qm(),a.ifa,this.context.Rk(),this.context.xX.promise);_.tI(this.context.Nc)&&this.Qc.listen(this.tq,"Kb",this.ma);this.zLa=new _.ikc(this.context.Nc,this.um)};_.N(EM,_.O);
EM.prototype.ma=function(a){var b=a.getPeople();this.log("Handling PeopleCache updated with "+b.length+".");var c=new Set;a=new Set;b=_.m(b);for(var d=b.next();!d.done;d=b.next()){d=_.B(d.value,1);for(var e=this.tq.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.tq.H.get(d),e=!(!d||1!==d.ef()&&4!==d.ef()||3===Lxc(d));e&&a.add(h)}b=[];c=_.m(c);for(h=c.next();!h.done;h=c.next())h=h.value,(d=this.H.get(h))?(h=d.getItem().clone(),REc(this,h),b.push(kxc(d,new JL(h,
void 0,1)))):this.log("b/154479164 Unexpected missing wrapper for "+h+".","warning");SEc(this,b,[]);this.context.Ls.update(6);a.size&&this.yI.wO([].concat(_.od(a)),_.uf(new _.tf,311))};EM.prototype.initialize=function(){this.ka.Zg()};
EM.prototype.ji=function(a,b){if(b instanceof _.gf)b=OL(this.context.Fm,b),TEc(this,b.O()),AEc(this.DFa,b),b=UEc(this,b),b.cache.ji(a);else if(b instanceof _.oA)b=VEc(this,b),TEc(this,b.O()),b=WEc(this,b),b.cache.ji(a);else if(b instanceof _.hI){var c=BM(this,b),d=this.O[c];d?(3==d.EJ()?(this.log(c+" | TeamDriveQueryRequest backed by refreshing existing cache"),d.refresh()):this.log(c+" | TeamDriveQueryRequest backed by existing view cache"),b={cache:d,sv:!1}):(this.log(c+" | ItemQueryRequest backed by new cache"),
d=new ODc(this.context,this.Og,b),d.refresh().Gg(_.Lf),this.O[c]=d,b={cache:d,sv:!0});b.cache.ji(a)}else if(b instanceof _.eG)c=b.O(),d=this.V,Jvc(d,d.H,d.O,c),b=WEc(this,b),b.cache.ji(a);else throw Error("rg");return b.sv};EM.prototype.dk=function(a,b){if(b instanceof _.gf)b=OL(this.context.Fm,b),CEc(this.DFa,b);else if(b instanceof _.oA)b=VEc(this,b);else if(!(b instanceof _.hI||b instanceof _.eG))throw Error("rg");b=BM(this,b);var c=this.O[b];c&&(c.dk(a),c.isDisposed()&&delete this.O[b])};
var BM=function(a,b){return kL(a.context.Fm,b,2)},UEc=function(a,b){var c=BM(a,b),d=a.O[c];if(d)return 3==d.EJ()?(a.log(c+" | ItemQueryRequest backed by refreshing existing cache"),d.refresh()):a.log(c+" | ItemQueryRequest backed by existing view cache"),{cache:d,sv:!1};d=[];for(var e=5,f,h,k=Cxc(a.Qs),l=0;l<k.length;l++){var p=k[l];e=p.vE(b);if(5!=e){f=1==e?void 0:b.Li();d=p.zka(b,f);f=p.ef();h=p instanceof ZL?p.my():"";a.log(c+" | ItemQueryRequest backed by "+p.getType()+" | size "+(p.Od()+" | initial "+
d.length));break}}5==e&&a.log(c+" | ItemQueryRequest backed by new cache");if(a.context.Hj().We()||a.context.mk().We())d=d.concat(a.H.query(b,1)),_.Ea(d,void 0,function(q){return q.getId()}),e=(e=a.Qs.H)&&e.S7&&5!=e.vE(b)?e.vE(b):6,a.log("Offline: Populate with "+d.length+" initial items(s)");d=new CM(a.context,b,d,1==e,h);f&&d.Ei(f);d.ql(a.H.query(b,2),1!=e);d.initialize().Gg(function(q){q=_.BI(q);_.hq(q);a.context.dispatchEvent(new _.rc(new _.qc("Error during view cache init",q)))});a.O[c]=d;return{cache:d,
sv:!0}},WEc=function(a,b){var c=BM(a,b),d=!1,e=a.O[c];if(e&&e.Dha(b))a.log("FindByIdsRequest backed by existing query cache: "+c);else{var f=a.H.getAll(b.hn()),h;b instanceof _.oA?h=new kDc(a.context,a.Og,b,f):h=new HEc(a.context,a.Og,b,f);f.length&&h.Ei(8);h.refresh().Gg(_.Lf);b=h;d=!0;a.O[c]=b;e?(XEc(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,sv:d}};
EM.prototype.ZV=function(){return Object.values(this.O).filter(function(a){return a.ud()instanceof _.hI})};
EM.prototype.f1a=function(a){for(var b=_.uf(new _.tf,309),c=[],d=_.m(Object.entries(this.V.items)),e=d.next();!e.done;e=d.next()){var f=_.m(e.value);e=f.next().value;f=f.next().value;f=_.m(Object.entries(f));for(var h=f.next();!h.done;h=f.next()){h=_.m(h.value);var k=h.next().value;h.next();if(k===a){c.push(Number(e));break}}}c.length&&(d=ewc(this.context.Fm,c,!0),this.log("Refreshing "+a+" for secondary fields: "+d+"."),this.yI.wO([a],b,!1,c))};
var aDc=function(a,b,c){c&&c.length&&Lvc(a.V,b,c);_.tI(a.context.Nc)&&kyc(a.tq,b)},FDc=function(a,b,c){var d,e,f;if(b instanceof ODc){var h=BM(a,b.ud());if(a.O[h]){a.log(h+" | Cache already exists, ignoring persisted data");return}}b instanceof nxc&&a.Qs.remove(b);h=new Map;var k=a.H.iy(),l=new Map(k);k=[];for(var p=_.m(b.iy()),q=p.next();!q.done;q=p.next()){q=q.value;var r=q.getId(),v=a.H.get(r);if(v){var z=v.getItem().hv();(null===(d=_.DI(a.context.Nc))||void 0===d?0:_.T(d,15,!1))&&!0===q.O&&yvc(v,
q.O);3==z||4==z?h.set(q.getId(),q.getItem()):v!=q&&k.push(new jxc(q.getId(),q,v));l.delete(r)}else{r=VL(q);if(null===(e=_.DI(a.context.Nc))||void 0===e?0:_.T(e,15,!1))null===(f=a.Qs.O)||void 0===f?void 0:f.update(r);a.H.update(r);a.W.update(r);_.tI(a.context.Nc)&&a.tq.dP(r)}_.tI(a.context.Nc)&&REc(a,q.getItem())}l=_.m(l.values());for(q=l.next();!q.done;q=l.next())k.push(VL(q.value));k=_.m(k);for(l=k.next();!l.done;l=k.next())b.update(l.value);b instanceof ODc?(k=BM(a,b.ud()),a.O[k]=b):a.Qs.add(b);
k=[];h=_.m(h.values());for(l=h.next();!l.done;l=h.next())l=l.value,p=new _.xI,_.yI(p,l.getId()),p.setItem(l),k.push(p);a.Qo(k);a.log("Merged cache: "+b.getType());b instanceof bM&&c.forEach(function(A){YEc(a.context.Xra,A)});a.context.Ls.update(3)},XEc=function(a,b){(new Set([].concat(_.od(a.Ay)))).forEach(function(c){b.ji(c);a.dk(c)})};
EM.prototype.ql=function(a,b,c,d,e){var f=this,h;e||(e=c?[].concat(_.od(c.O().filter(function(D){return!_.jK(f.Og).includes(D)}))):[]);c&&c instanceof _.gf&&_.JJ(c)&&ZEc(this,a,c);for(var k=[],l=[],p=0;p<a.length;p++){var q=a[p],r=new JL(q,void 0,b),v=this.H.get(q.getId()),z=v?v.getItem():null,A=$Ec(this,v,r);if(null!=A)r.Ry(A),aFc(this,z,q),Lnc(q),q=Gvc(q,z,e),r.setItem(q);else if(null!=v)r=v,q=z;else continue;_.tI(this.context.Nc)&&REc(this,q);!v||bFc(this,z,q,e)?(l.push(kxc(v,r)),k.push(r)):k.push(v)}a=
null;if(c){if(c instanceof _.gf){if(null===(h=_.DI(this.context.Nc))||void 0===h?0:_.T(h,15,!1))a=_.Hl(c),1==a.length&&(a=a[0].Ya(),(a=this.H.get(a))&&!a.O&&yvc(a,!d));(a=Fxc(this.Qs,c))&&a.ql(k,!!d)}c=BM(this,c);(a=this.O[c])&&a.ql(k,!!d)}0<l.length&&(_.tI(this.context.Nc)&&l.forEach(function(D){return f.tq.dP(D)}),SEc(this,l,e,a?[a]:[]),cFc(this,k));dDc(this.context).O8()};
var REc=function(a,b){nyc(a.tq,b)||5!=b.hv()||_.Phc(b,1)},bFc=function(a,b,c,d){(b=b?_.Uj(b.clone(),82):null)&&aDc(a,[b],d);c=_.Uj(c.clone(),82);aDc(a,[c],[]);return!_.fk(b,c)},ZEc=function(a,b,c){dFc(a,b,c);b.forEach(function(d,e){var f=a.um.H(d.getId());f&&(TK(f,d,[1002]),TK(f,d,[1003]),TK(f,d,[1005]),b[e]=f);_.mJ(c)&&0<_.Td(c,33).length&&_.Qhc(d,_.Td(c,33)[0])})},dFc=function(a,b,c){var d;_.mJ(c)?d="quick access":_.nJ(c)?d="people predict":_.oJ(c)&&(d="drive priority");c=b.map(function(e){return e.getId()}).join(", ");
a.log("Got "+b.length+" items for "+d+": "+c)},OCc=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.H)||c.set(d.H,[]),c.get(d.H).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.ql(noc(d),b)};EM.prototype.dla=function(a){this.zLa.dla(a)};
EM.prototype.Qo=function(a){for(var b=this,c=[],d=0;d<a.length;d++){var e=a[d],f=e.nk()?null:e.getItem(),h=e.Cc(),k=(h=this.H.get(h))?h.getItem():null,l=null;if(f){l=new JL(f,void 0,void 0,_.B(e,1)||void 0);var p=$Ec(this,h,l);if(null==p)continue;l.Ry(p);aFc(this,k,f);_.T(e,5,!1)&&lnc(f,Anc);Lnc(f);f=Gvc(f,k);l.setItem(f);_.tI(this.context.Nc)&&REc(this,f)}if(k&&!f||f&&bFc(this,k,f,[]))this.context.AIa.qy(e),c.push(kxc(h,l))}_.tI(this.context.Nc)&&c.forEach(function(q){return b.tq.dP(q)});SEc(this,
c,[])};var aFc=function(a,b,c){b&&!c.Om()&&TK(c,b,a.ta);var d=b?b.Pf():null,e=c.Pf();e=e?_.Xd(e):null;d&&e&&aFc(a,_.Xd(d),e);b&&!_.gl(c)&&TK(c,b,[1002]);b&&!_.hl(c).length&&TK(c,b,[1003]);b&&!_.il(c).length&&TK(c,b,[1005]);b&&null==c.A1()&&TK(c,b,[71]);b&&null==_.B(c,79)&&TK(c,b,[73]);b&&_.S(b,31)&&!_.S(c,31)&&(lnc(c,Anc),a.log("Cleared Item Suggest data for "+b.getId()+"."))};
EM.prototype.qB=function(a,b){if(a instanceof _.gf||a instanceof _.oA||a instanceof _.hI)a=BM(this,a),(a=this.O[a])&&a.HX(b);else throw Error("rg");};var $Ec=function(a,b,c){var d=c.getItem();if(Jyc(a.context.kfa,d))return null;if(b){a=b.H;var e=c.H;if(!(0<=e?!a||a<=e:1))return null;a=b.getItem();if(3!=a.hv()&&!LL(a)&&!LL(d)&&a.Ac()==d.Ac())if(a.zi()&&d.zi()){if(a.zi()>d.zi())return null}else if(b.V&&c.V){if(b.V>c.V)return null}else if(a.wq()>d.wq())return null}return xvc(b&&b.H,c.H)};
EM.prototype.$H=function(a,b){(a=this.H.get(a))&&a.Ry(xvc(a.H,b))};
var SEc=function(a,b,c,d){d=void 0===d?[]:d;var e;if(null===(e=_.DI(a.context.Nc))||void 0===e?0:_.T(e,15,!1))for(var f=_.m(b),h=f.next();!h.done;h=f.next())h=h.value,h.O&&h.H&&yvc(h.H,h.O.O);h=_.m(b);for(f=h.next();!f.done;f=h.next())f=f.value,a.V.update(f.id,f.H?f.H.getItem():null,c);c=Object.values(a.O);d=_.m(d);for(h=d.next();!h.done;h=d.next())_.ua(c,h.value);d=_.m(c);for(h=d.next();!h.done;h=d.next())cDc(h.value,b);h=Cxc(a.Qs);d=0;c=_.m(h);for(h=c.next();!h.done;h=c.next()){f=h.value;var k=
!1,l=_.m(b);for(h=l.next();!h.done;h=l.next())f.update(h.value)&&(k=!0);k&&d++;f instanceof bM&&f.Od()>=1.2*f.limit&&eFc(a.context.AIa,f.Ac(),!1)}b=_.m(b);for(h=b.next();!h.done;h=b.next())h=h.value,_.S(a.context.Nc,60)&&a.va.update(h),a.H.update(h),a.H.get(h.id)||a.V.vJ(h.id),a.W.update(h);0<d&&a.context.Ls.Uma(d);fFc(a)},fFc=function(a){var b=a.W.O.slice(0),c=EEc(a.W);FEc(a.W);if(b.length){a.log("Refreshing shortcuts with unknown targets: "+b.join(", "));var d=new _.tf;_.uf(d,308);a.yI.wO(b,d,!0)}if(c.length){a.log("Updating locally stale shortcuts: "+
c.join(", "));b=Rvc(a.um,c);var e=[];Object.values(b).forEach(function(f){var h=f.getItem().Pf(),k=_.B(h,1);if(k=a.um.H(k))_.J(h,5,k),_.y(h,4,1),e.push(f)});OCc(a,e)}},gFc=function(a){dDc(a.context).O8();a.H.vJ()},VEc=function(a,b){_.Ha(b.O());var c=_.oa(b.hn(),"root");if(0>c)return b;b=b.clone();b.hn()[c]=a.context.Yn();return b},PEc=function(a,b){var c;null!==(c=_.DI(a.context.Nc))&&void 0!==c&&_.T(c,1,!1)||(b=trc(a.Og,b),a=a.V,Jvc(a,a.items,a.fields,b))},TEc=function(a,b){var c;if(null===(c=_.DI(a.context.Nc))||
void 0===c?0:_.T(c,1,!1))b=trc(a.Og,b),a=a.V,Jvc(a,a.items,a.fields,b)},cFc=function(a,b){a.ha.promise.then(function(){var c=b.filter(function(e){return 4==e.getItem().hv()});if(c.length){c=c.map(function(e){return e.getId()});a.log("Refreshing "+c.length+" partial items. "+c);var d=_.uf(new _.tf,311);a.yI.wO(c,d)}})},wEc=function(a,b){a.ha.promise.then(function(){b.forEach(function(c){if(!Fxc(a.Qs,c)){a.log("Adding new cache hint for "+BM(a,c));var d=new ZL(a.context.pt,a.context.uv,a.context.Fm,
c);c=new zDc(a.context,d,c);var e=fM(a.context.qz,null);_.Wh(c.Zg().then(function(){CDc(d,e).then(function(f){FDc(a,d,f)})}),function(){Syc(a.context.qz,null)})}})})};EM.prototype.Wn=function(){var a=this.Qs.H;return a&&a.bH?1:2};EM.prototype.log=function(a,b){this.context.Sf().log("drive.ds.sync.cache.CacheManager",a,void 0===b?"info":b)};var QEc=[50];
var iFc=function(a){_.O.call(this);var b=this;this.context=a;this.H=[];this.V=new _.nl;this.O=new Map;this.ka=-1;this.ha=0;var c=_.Vh();this.va=c.promise;HAc(this.context.sD).then(function(d){b.H=d||[];c.resolve();hFc(b)},function(){return c.resolve()});WL(this.context.Mj,["rVezo"],(0,_.u)(this.W,this))};_.N(iFc,_.O);
var BEc=function(a,b){_.T(a.context.Nc,46,!1)&&a.va.then(function(){if(a.H[0]!==b){_.ua(a.H,b);for(Hvc(a.context.vf.um.H(b))?a.log(b,"Hidden TD, not tracking in recency list"):_.Ba(a.H,0,0,b);a.H.length>2*_.gk(a.context.Nc,47,5);)a.H.pop();a.context.sD.set(BAc,a.H)}a.context.vf.Qs.ZV().length+a.O.size<_.gk(a.context.Nc,47,5)&&(hFc(a),a.W())})},jFc=function(a,b){_.ua(a.H,b)&&a.context.sD.set(BAc,a.H)};
iFc.prototype.qy=function(a){YEc(this.context.Xra,a);if(LL(a)){var b=a.Ac();a.nk()?eFc(this,b,!0):(a=a.getItem(),Hvc(a)&&jFc(this,b))}};var eFc=function(a,b,c){jFc(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.vf.Qs;for(var e=d.ZV(),f=0;f<e.length;f++){var h=e[f];if(h.Ac()===b){a.log(b,"Cache removed");d.remove(h);a.context.Ls.update(3);break}}AM(a.context).addCallback(function(k){k.fGa(b,c)});a.W()};
iFc.prototype.W=function(){if(this.context.Mj.H("rVezo")){var a=this.context.vf.Qs;kFc(this);for(var b={};this.V.hc()&&!(this.ha>=_.gk(this.context.Nc,47,5));){var c=_.ol(this.V);this.ha++;Exc(a,c)||this.O.has(c)||(this.O.set(c,null),b.Gea=new _.Mgc,_.y(b.Gea,1,c),this.context.Qm().then(function(d){return function(e){return e.Ue(d.Gea)}}(b)).then(this.ta.bind(this,c),this.ma.bind(this,c)));b={Gea:b.Gea}}}};
var hFc=function(a){a.H&&a.H.length&&(a.ha=0,a.V.clear(),a.H.forEach(function(b){a.V.enqueue(b)}))},kFc=function(a){_.n.clearTimeout(a.ka);a.ka=_.n.setTimeout(function(){hFc(a);a.W()},36E5)};iFc.prototype.ta=function(a,b){var c=_.B(b,1);c&&c>_.gk(this.context.Nc,48,1E3)?(this.log(a,"Too large to backfill: "+_.B(b,1)),lFc(this,a,!1)):mFc(this,a)};
iFc.prototype.ma=function(a,b){(b=_.BI(b).lk())&&4===b?(this.log(a,"Non-existent or inaccessible, removing from cache"),a=_.II(_.Rfc(_.yI(new _.xI,a),a)),this.context.vf.Qo([a])):mFc(this,a)};
var mFc=function(a,b){var c=new bM(a.context.pt,a.context.uv,b),d=c.ud().clone();d.ui(_.gk(a.context.Nc,48,1E3));d=new zDc(a.context,c,d);a.O.set(b,d);a.log(b,"Backfill started");var e=fM(a.context.qz,b);AM(a.context).addCallback(function(f){f.Dua(b)});_.Wh(d.Zg().then(function(){nFc(a,b,c,e)},function(){a.log(b,"Backfill failed");a.ha--;lFc(a,b,!0)}),function(){Syc(a.context.qz,b)})},nFc=function(a,b,c,d){c.bH?(c.$W(),CDc(c,d).then(function(e){a.log(b,"Backfill complete, size: "+c.Od());FDc(a.context.vf,
c,e);lFc(a,b,!1)},function(){a.log(b,"Backfill changes failed");lFc(a,b,!0)})):(a.log(b,"Backfill exceeded size limit"),lFc(a,b,!0))},lFc=function(a,b,c){var d=a.O.get(b);d&&d.dispose();a.O.delete(b);c&&AM(a.context).addCallback(function(e){e.fGa(b,!1)});a.W();0<a.O.size||a.context.vf.Qs.ZV().map(function(e){return e.Ac()}).filter(function(e){return!a.H.includes(e)}).forEach(function(e){eFc(a,e,!0)})};
iFc.prototype.log=function(a,b){this.context.Sf().info("drive.ds.sync.cache.TeamDriveCacheManager",a+" | "+b)};
var oFc=function(){_.O.apply(this,arguments)};_.N(oFc,_.O);
var rFc=function(a,b){b=pFc(b);var c=a.getItem(),d=qFc(c.getCapabilities());b.O3.forEach(function(e){_.TVb(e.getItem(),c.$o());_.WJ(e.getItem(),d.clone())});return b},uFc=function(a,b,c){var d=sFc(c);c=c.find(function(e){return e.getId()===b.getId()});c={kK:c?c:new JL(b),children:[]};tFc(a,d,c);return c},sFc=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().kk()),e=d.next();!e.done;e=d.next())e=e.value,b[e]||(b[e]=[]),b[e].push(c)}return b},tFc=
function(a,b,c){var d=c.kK.getItem();(b[d.getId()]||[]).forEach(function(e){c.children.push(tFc(a,b,{kK:e,parent:c,children:[]}))});return c},wFc=function(a,b){b=b.children.filter(function(l){return!_.fl(l.kK.getItem())});for(var c=new Map,d=[];b.length;){var e=b.pop(),f=e.kK.getItem();if(!c.has(f.getId())){_.TVb(f,a.$o());vFc(a,f,e.parent?e.parent.kK.getItem():void 0);for(var h=_.m(e.children),k=h.next();!k.done;k=h.next())k=k.value,_.fl(k.kK.getItem())||b.push(k);c.set(f.getId(),!0);d.push(e.kK)}}return d},
xFc=function(a){a=a.children.filter(function(h){return!_.fl(h.kK.getItem())});for(var b=new Map,c=[];a.length;){var d=a.pop(),e=d.kK.getItem();if(!b.has(e.getId())){c.push(_.II(_.yI(new _.xI,e.getId())));d=_.m(d.children);for(var f=d.next();!f.done;f=d.next())f=f.value,_.fl(f.kK.getItem())||a.push(f);b.set(e.getId(),!0)}}return c},pFc=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();_.fl(e)||_.S(e,137)?c.push(e):b.push(d)}return{qQ:c,O3:b}},qFc=
function(a){a=a.clone();var b=null!=_.S(a,34)?_.S(a,34):_.S(a,7),c=null!=_.S(a,35)?_.S(a,35):_.S(a,7);_.y(a,45,c);_.whc(a,b);_.y(a,30,c);_.rhc(a,b);_.xhc(a,c);_.shc(a,c);_.thc(a,b);_.ehc(a,b);_.jhc(a,c);_.phc(a,b);_.ohc(a,_.S(a,7));_.ihc(a,_.S(a,10)||_.S(a,11));_.qhc(a,_.Zk(a));_.Uj(a,18);_.Uj(a,13);_.Uj(a,10);_.uhc(a,_.S(a,42));_.vhc(a,_.S(a,43));_.yhc(a,_.S(a,48));return a},vFc=function(a,b,c){var d=a.getCapabilities(),e=b.getCapabilities(),f=_.S(d,30);_.y(e,30,f);_.rhc(e,_.S(d,31));_.xhc(e,_.S(d,
47));_.shc(e,_.S(d,32));_.thc(e,_.S(d,33));_.ehc(e,_.S(d,4));_.jhc(e,_.S(d,9));_.qhc(e,_.S(d,21));_.phc(e,_.S(d,20));_.ohc(e,_.S(d,17));_.dhc(e,_.Zk(d));_.hhc(e,_.S(d,7));_.khc(e,_.S(d,10));_.lhc(e,_.S(d,11));f=_.S(d,45);_.y(e,45,f);_.whc(e,_.S(d,46));_.yhc(e,_.S(d,48));a=_.fl(a);_.y(b,137,a);c&&(c=c.getCapabilities(),VK(b)?(_.ihc(e,_.S(c,43)),_.vhc(e,_.S(c,43)),_.uhc(e,_.S(c,42))):_.ihc(e,_.S(c,42)))};
var yFc=function(a){this.context=a;this.V=new oFc;this.O=_.uf(new _.tf,306);this.H=a.vf},YEc=function(a,b){if(LL(b))b.nk()?zFc(a,b):AFc(a,b);else if(_.T(a.context.Nc,86,!1)){var c=b.Cc(),d=a.H.um.H(c);var e=d&&d.Ac();var f=b.getItem()&&b.getItem().Ac();if(!d||!e||!VK(b.getItem()||d)||f&&f!==e)e=!1;else if(e=!!_.fl(d),!b.nk()){var h=b.getItem();f=_.fl(d)!==_.fl(h);h=h.$o()!==d.$o();e=f||e&&h}if(e)if(b.nk()){if(b=BFc(a,d.Ac()),d=a.V,e=(new _.dl).Ob(c),b=(b=uFc(d,e,b))?xFc(b):[],a.context.vf.Qo(b),a.log(c,
"SD shared folder delete | Removed "+b.length+" item(s)"),a=Arc(a.context.Rk(),106009))c=vrc(a),_.y(c,2,b.length),a.Yj()}else if(c=b.getItem(),d=BFc(a,c.Ac()),e=a.V,c=b.getItem(),c=(d=uFc(e,c,d))?wFc(c,d):[],OCc(a.context.vf,c),a.log(b.Cc(),"SD shared folder update | Updated "+c.length+" item(s)"),a=Arc(a.context.Rk(),106010))b=vrc(a),_.y(b,1,c.length),a.Yj()}},zFc=function(a,b){var c=b.Cc();b=BFc(a,c);b=pFc(b);var d=_.ef(b.O3,function(e){return _.II(_.yI(new _.xI,e.getId()))});a.context.vf.Qo(d);
a.H.yI.wO(b.qQ.map(function(e){return e.getId()}),a.O,void 0,void 0,b.qQ.map(function(e){return _.El((new _.Dl).Ob(e.getId()),_.kl(e))}));a.log(c,"SD delete | Remove "+d.length+" item(s), "+(b.qQ.length+" divergent items"));if(a=Arc(a.context.Rk(),106016))c=wrc(a),_.y(c,1,b.qQ.length),_.y(c,2,b.O3.length),a.Yj()},AFc=function(a,b){var c=b.Cc(),d=BFc(a,c),e=a.H.um.H(c);b=rFc(b,d);OCc(a.context.vf,b.O3);a.H.yI.wO(b.qQ.map(function(h){return h.getId()}),a.O,void 0,void 0,b.qQ.map(function(h){return _.El((new _.Dl).Ob(h.getId()),
_.kl(h))}));a.log(c,"SD update | Update "+b.O3.length+" item(s), "+(b.qQ.length+" divergent items"));if(d=Arc(a.context.Rk(),106017)){var f=wrc(d);_.y(f,1,b.qQ.length);_.y(f,2,b.O3.length);d.Yj()}e||yDc(a.H.yI,c)},BFc=function(a,b){var c=new _.gf;_.Jl(c,[b]);_.Kl(c,2);return Tvc(a.H.um,c)};yFc.prototype.log=function(a,b){this.context.Sf().info("drive.ds.sync.change.TdChangeProcessor",a+": "+b)};
var CFc=function(a,b,c){this.H=a;this.V=b;this.qJ=c};
CFc.prototype.Uw=function(a,b){var c=this;if(a.DV().length){var d=Fyc(this.H,a.Cc());if(d){var e=d?Gyc(this.H,a):[];for(var f={},h=_.m(a.DV()),k=h.next();!k.done;f={qL:f.qL},k=h.next())if(k=k.value,f.qL=DFc(e,k.an(),a.Cc()),_.S(k,3))Myc(this.H,f.qL),_.Wh(b,function(r){return function(){c.H.O.W(vyc(r.qL))}}(f));else{for(var l=_.m(_.bk(k,_.aG,2)),p=l.next();!p.done;p=l.next())EFc(this,f.qL,p.value);k=_.m(_.Td(k,4));for(l=k.next();!l.done;l=k.next())FFc(f.qL,l.value);this.H.lD([f.qL],!1,-1);b.then(function(r){return function(){return void c.H.$H(r.qL.getName(),
-2)}}(f),function(r){return function(){c.H.$H(r.qL.getName(),-2)}}(f))}e=this.od(d.qk().response)}}e=e?e:this.od();var q=e.L2a;b.then(function(r){q.resolve(r)},function(r){q.reject(_.uB(r));c.handleError(a.Cc(),r)});return e};CFc.prototype.od=function(a){a=void 0===a?new uL:a;return new Bvc(a.Dc(1))};var DFc=function(a,b,c){var d=a.find(function(e){return uyc(e.getName(),b)});d||(d=nsc((new pL).hd(b),c),a.push(d));return d};
CFc.prototype.handleError=function(a,b){Oyc(this.V,a);a=_.BI(b);_.y(a,21,"Server error updating metadata after optimistic application.");this.qJ(a)};
var EFc=function(a,b,c){var d=b.O().find(function(e){return e.getId()===c.getId()});d||(d=new nL,d.Ob(c.getId()),msc(b,b.O().concat([d])),GFc(d,c));if(1===oL(d))d.setBooleanValue(_.S(c,3));else if(12===oL(d))d.setDateStringValue(_.B(c,17));else if(2===oL(d))d.setTextValue(_.B(c,4));else if(3===oL(d))_.Td(c,6).length?d.Goa(_.Td(c,6)):_.Td(c,5).length&&(a=_.Td(d,7).concat(_.Td(c,5)),d.Goa(a));else if(4===oL(d))d.setLongTextValue(_.B(c,7));else if(5===oL(d))d.setSelectionValue(_.B(c,8));else if(6===
oL(d))_.Td(c,10).length?d.Coa(_.Td(c,10)):_.Td(c,9).length&&(a=d.mLa().concat(_.Td(c,9)),d.Coa(a));else if(7===oL(d))d.setIntegerValue(_.B(c,11));else if(8===oL(d))_.Td(c,13).length?d.uoa(_.Td(c,13)):_.Td(c,12).length&&(a=_.Td(d,12).concat(_.Td(c,12)),d.uoa(a));else if(10===oL(d))d.setUserValue(a.O(_.B(c,14)));else if(11===oL(d))_.Td(c,16).length?jsc(d,_.Td(c,16).map(a.O)):_.Td(c,15).length&&jsc(d,d.FVa().concat(_.Td(c,15).map(a.O)));else throw d="Optimistic Applier: Unsupported value type "+(oL(d)+
"."),new _.qc(d,new _.pc);},FFc=function(a,b){if(a=a.O().find(function(c){return c.getId()===b}))if(1===oL(a))_.Uj(a,5);else if(12===oL(a))_.Uj(a,17);else if(2===oL(a))_.Uj(a,6);else if(3===oL(a))_.WH(a,7);else if(4===oL(a))_.Uj(a,8);else if(5===oL(a))_.Uj(a,9);else if(6===oL(a))_.WH(a,10);else if(7===oL(a))_.Uj(a,11);else if(8===oL(a))_.WH(a,12);else if(10===oL(a))_.Vj(a,15);else if(11===oL(a))_.Xj(a,16);else throw a="Optimistic Applier: Unsupported value type "+(oL(a)+"."),new _.qc(a,new _.pc);
},GFc=function(a,b){_.Q(b,3)?a.NA(1):_.Q(b,17)?a.NA(12):_.Q(b,4)?a.NA(2):_.Td(b,6).length||_.Td(b,5).length?a.NA(3):_.Q(b,7)?a.NA(4):_.Q(b,8)?a.NA(5):_.Td(b,10).length||_.Td(b,9).length?a.NA(6):_.Q(b,11)?a.NA(7):_.Td(b,13).length||_.Td(b,12).length?a.NA(8):_.Q(b,14)?a.NA(10):(_.Td(b,16).length||_.Td(b,15).length)&&a.NA(11)};CFc.prototype.O=function(a){return _.bhc(_.$gc(1),a)};
var HFc=function(a,b,c,d,e,f,h,k,l){this.H=a;this.ha=b;this.va=c;this.O=d;this.ka=e;this.Og=f;this.W=0;this.V=k;this.ma=l;this.Ba=h};HFc.prototype.apply=function(a,b){var c=this;if(!_.IJ(a))return b;var d=null;a instanceof _.aJ?d=IFc(this,a,b):a instanceof _.hJ?d=JFc(this,a,b):a instanceof _.EI?d=this.Uw(a,b):a instanceof _.WI?d=KFc(this,a,b):a instanceof _.AJ&&(d=this.va.Uw(a,b));d&&(this.W++,this.ha.setActive(!1),_.Wh(b,function(){c.W--;0==c.W&&c.ha.setActive(!0)}));return d?_.Sh(d):b};
var IFc=function(a,b,c){Iyc(a.O,b.getId());var d=a.H.um.H(b.getId());_.Wh(c.then(function(){return void a.ma("VMiG2e")},a.ta.bind(a,b.getId(),d)),a.O.W.bind(a.O,b.getId()));c.then(null,function(e){e=_.BI(e);_.y(e,21,"Server error deleting item after optimistic application.");a.V(e)});return(new _.HJ).Dc(1)},JFc=function(a,b,c){var d=_.B(b,2);d&&a.O.H.push(d);c.then(function(){d&&Kyc(a.O,d)&&_.Wh(LFc(a,d,new _.hkc(1E4,3E5),Date.now()+72E5,5),function(){return void a.ma("VMiG2e")})},function(){d&&_.ua(a.O.H,
d)});c.then(null,function(e){e=_.BI(e);_.y(e,21,"Server error emptying trash after optimistic application.");a.V(e)});return(new _.HJ).Dc(1)},LFc=function(a,b,c,d,e){if(Date.now()>d||0>=e)return _.Sh();var f=_.Vh(),h=c.Ya();_.RH(c);setTimeout(function(){a.ka.then(function(k){var l=_.uf(new _.tf,1425);l=moc(!0,1,l);return k.Ue(l).then(function(p){if(p=p.od())if(p=p.Bd()[0],!p||(p.Xv()||0)>b){f.resolve();return}_.Wh(LFc(a,b,c,d,e),function(){return void f.resolve()})},function(){return _.Wh(LFc(a,b,
c,d,e-1),function(){return void f.resolve()})})})},h);return f.promise},KFc=function(a,b,c){var d=b.Ac(),e=a.H.um.H(d);if(!e)return null;e=e.clone();aDc(a.H,[e],[157]);var f=e.yg();MFc(f,_.bk(b,_.cl,2));NFc(f,_.bk(b,_.cl,3));a.H.ql([e],-1,void 0,void 0,[157]);_.Wh(c,function(){a.H.$H(d,-2)}).then(function(h){a.H.ql([_.C(h,_.dl,2)],1,void 0,void 0,[157])},null);c.then(null,function(h){h=_.BI(h);_.y(h,21,"Server error updating item after optimistic application.");a.V(h)});return ktc(new jtc,e).Dc(1)},
MFc=function(a,b){var c={};b=_.m(b);for(var d=b.next();!d.done;c={xea:c.xea},d=b.next())c.xea=d.value,_.bk(a,_.cl,8).some(function(e){return function(f){return f.an()==e.xea.an()}}(c))||_.dk(a,8,c.xea,_.cl,void 0)},NFc=function(a,b){var c=b.map(function(d){return d.an()});b=_.bk(a,_.cl,8).filter(function(d){return!c.includes(d.an())});tnc(a,b)};
HFc.prototype.Uw=function(a,b){var c=this,d=this.H.um.H(a.getId());if(!d||d.Ac()&&0==a.Uh()||null!=_.S(a,40))return null;var e=_.Td(a,10),f=_.Td(a,9);if(0<e.length&&0<f.length&&(e=Object.values(Svc(this.H.um,e.concat(f))).map(function(k){return k.Ac()||"root"}),_.Ea(e),1<e.length))return null;var h=d.clone();OFc(this,a,h);this.H.ql([h],-1,void 0,void 0,rrc(this.Og));b.then(function(){return c.H.$H(a.getId(),-2)},function(){c.H.$H(a.getId(),-2);c.ta(a.getId(),d)});b.then(null,function(k){k=_.BI(k);
if(63==k.lk()){var l=h.getId();_.y(k,22,l);_.y(k,23,f[0])}_.y(k,21,"Server error updating item after optimistic application.");c.V(k)});return _.Hic((new _.HJ).setItem(h),h.getId()).Dc(1)};
var OFc=function(a,b,c){null!=b.He()&&c.Ul(b.He());null!=b.Wi()&&_.Mhc(c,b.Wi());null!=b.getMimeType()&&_.hG(c,b.getMimeType());null!=_.B(b,7)&&_.SVb(c,_.B(b,7));null!=_.S(b,11)&&_.Ghc(c,_.S(b,11));null!=_.S(b,4)&&c.Ev(_.S(b,4));null!=_.S(b,16)&&_.Lhc(c,_.S(b,16));null!=b.getTitle()&&c.setTitle(b.getTitle());null!=b.Uh()&&(c.Mn(b.Uh()),_.Khc(c,b.Uh()));null!=_.S(b,18)&&_.QK(Knc(c,!0),_.S(b,18));_.Td(b,8).length&&_.VJ(c,_.Td(b,8));if(_.Td(b,9).length){var d=new Set(c.kk());_.Td(b,9).forEach(function(p){return d.add(p)});
_.VJ(c,[].concat(_.od(d)))}if(_.Td(b,10).length){var e=new Set(c.kk());_.Td(b,10).forEach(function(p){return e.delete(p)});_.VJ(c,[].concat(_.od(e)));var f=c.uw();f&&_.Td(b,10).includes(f)&&_.Uj(c,46)}if(!c.uw()){var h=a.Ba();f=c.kk().find(function(p){var q=a.H.um.H(p);return q&&!!q.uw()||p==h});_.y(c,46,f||void 0)}c.kk().length&&(f=a.H.um.H(c.kk()[0]))&&_.Qhc(c,f.Ac());if(f=_.C(b,_.$k,25)){var k=_.C(c,_.$k,111)||new _.$k;null!=_.S(f,1)&&_.Ahc(k,_.S(f,1));null!=_.B(f,2)&&_.Bhc(k,_.B(f,2));_.J(c,111,
k)}var l=_.Td(c,120);_.Td(b,31).forEach(function(p){l.includes(p)||l.push(p)});_.Td(b,32).forEach(function(p){_.ua(l,p)});_.Qj(c,120,l)};HFc.prototype.ta=function(a,b){var c=this,d=_.qA(new _.oA,[a]);this.ka.then(function(e){return e.Ue(d)}).then(function(e){e=e.od().Bd()[0];c.H.ql([e.clone()],1)},function(){b&&c.H.ql([b.clone()],1)})};
var PFc=function(a){this.H=a};_.N(PFc,_.Plc);PFc.prototype.execute=function(a,b,c){var d=_.Plc.prototype.execute.call(this,a,b,c);if(d)return d;if(c.QJa||b instanceof _.uI&&_.JJ(b.ud()))if(c=Jrc(this.H))return c;return b instanceof _.hJ?(c=_.uf(new _.tf,1424),a.Ue(moc(!1,1,c)).then(function(e){(e=e.od())&&(e=e.Bd()[0])&&_.Q(e,96)&&b.Kca(e.Xv())},function(){})):null};
var xoc=function(a,b){return[QFc,RFc,SFc,TFc].reduce(function(c,d){var e;0!==c?e=c:e=_.Fa(d(a),d(b));return e},0)},QFc=function(a){return UFc[a.wf()]},RFc=function(a){return VFc[a.getType()]},SFc=function(a){return a.getName()||""},TFc=function(a){return a.getId()||""},FM={},UFc=(FM[5]=0,FM[7]=1,FM[1]=2,FM[3]=3,FM[4]=4,FM[2]=5,FM[6]=6,FM),WFc={},VFc=(WFc[1]=0,WFc[2]=1,WFc[3]=2,WFc[4]=3,WFc);
var XFc=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.Og=l};
XFc.prototype.apply=function(a,b){var c=this;if(!(b instanceof _.HJ&&8===b.Bb()))if(a instanceof _.VI||a instanceof _.XI||a instanceof _.Cgc||a instanceof _.EI||a instanceof _.CJ||a instanceof _.Kgc||a instanceof _.EJ||a instanceof _.XK){var d=_.HI(b.getItem().clone(),9);this.H.ql([d],1);kzc(this.ta,b.getItem(),_.jK(this.Og))}else a instanceof _.aJ?(b=_.II(_.yI(new _.xI,a.getId())),this.H.Qo([b])):a instanceof _.dJ?(b=_.II(_.Rfc(_.yI(new _.xI,a.getId()),a.getId())),this.H.Qo([b]),YEc(this.ma,b)):
a instanceof _.hJ?(b=moc(!0).ud(),b=this.H.um.query(b).map(function(e){return _.II(_.yI(new _.xI,e.getId()))}),this.H.Qo(b)):a instanceof _.ZI?this.O.remove(a.Ch()):a instanceof _.kJ||a instanceof _.zJ?this.O.put(b.sr()):a instanceof _.bJ?woc(this.H,a):a instanceof _.zD?this.W.remove(a.getKey()):a instanceof _.lJ?yoc(this.H,a,_.C(b,_.Jk,2)):a instanceof _.CD?this.W.put(b.vLa()):a instanceof _.YI||a instanceof _.DJ?this.ha.lD([b.jn()],!1):a instanceof _.eJ?this.ha.lD([Yyc(a.getId())],!1):a instanceof
_.Bgc?this.V.lD(b.response.O(),!1,1):a instanceof _.AJ?(a.DV().filter(function(e){return _.S(e,3)}).forEach(function(e){return c.V.removeItem(e.an()||"",a.Cc())}),Oyc(this.ka,a.Cc()),this.H.f1a(a.Cc())):a instanceof _.oK&&_.bk(a,_.Ysc,1).forEach(function(e){switch(e.getFeature()){case 3:case 1:switch(e=_.C(e,_.tL,2),e.getType()){case 1:case 2:if(e=c.H.um.H(e.Cc())){var f=new _.xI;f=_.y(f,5,!0);e=_.yI(f,e.getId()).setItem(e.clone());c.H.Qo([e])}}}})};
var YFc=function(a){this.H=a};
YFc.prototype.translate=function(a){if(a instanceof _.wJ){var b=this.H.H(a.getId());if(!b)return new _.pc;var c=(new _.EI).Ob(a.getId());if(b.Ac()){var d=b.getCapabilities();_.qe(d)||_.S(d,9)?c.Mn(!0):_.FI(c,!1)}else d=a.getParent(),1===b.$o()?c.Mn(!0):d?(b=this.H.H(d),!b||_.S(b.getCapabilities(),7)?Rqc(c,[d]):_.FI(c,!1)):_.FI(c,!1);return c}if(a instanceof _.xJ)return Tqc(Sqc(Rqc(Qqc((new _.EI).Ob(a.getId()),_.Td(a,2)),_.Td(a,3)),_.S(a,6)),_.bk(a,_.Dl,8));if(a instanceof _.yJ){b=this.H.H(a.getId());
if(!b)return new _.pc;c=(new _.EI).Ob(a.getId());b.Ac()?(d=b.getCapabilities(),_.qe(d)||_.S(d,9)?c.Mn(!1):_.FI(c,!0)):(d=a.getParent(),1===b.$o()?c.Mn(!1):d?(b=this.H.H(d),!b||_.Zk(b.getCapabilities())?Qqc(c,[d]):_.FI(c,!0)):_.FI(c,!0));return c}if(a instanceof _.BK)return new _.Cgc(a);if(a instanceof _.rM)return _.Td(a,1).map(function(f){var h=new _.AJ;f=_.y(h,1,f);h=a.DV();f=_.Wj(f,2,h);h=a.xe();return _.J(f,3,h)});if(a instanceof _.gJ){c=moc(!1,1).ud();var e=0;this.H.query(c).forEach(function(f){(f=
f.Xv())&&(e=Math.max(e,f))});return Erc(new _.hJ,a).Kca(e)}return a};
var ZFc=function(){};ZFc.prototype.validate=function(a){var b=null;a instanceof _.pJ?(a=a.getId()||"",_.ie(a)&&(b="Tried to request backup with no id.")):a instanceof _.$I&&(a=a.getId()||"",_.ie(a)&&(b="Tried to delete backup with no id."));return b?_.BI(b):null};
var $Fc=function(a,b){this.H=a;this.O=b},dGc=function(a,b){_.IK(["drive#about"],b);var c=new _.sM,d=new _.tB;if(b.user){var e=_.KK(a.H,b.user);_.J(d,1,e)}a=aGc(a,b);a=Kqc(Jqc(_.Iqc(new _.Fub,a),b.rootFolderId),b.domainSharingPolicy);b.gsuiteSubscriptionInfo&&(e=b.gsuiteSubscriptionInfo,_.Mqc(a,_.xqc(_.wqc((new _.sB).Dc(bGc[e.status]),Number(e.trialMillisRemaining)),_.JK(e.trialEndTime))));b.teamDashboardCapabilities&&(e=b.teamDashboardCapabilities,_.Nqc(a,_.zqc(_.yqc(new _.Aub,e.canAdministerTeam),
e.canManageInvites)));b.importFormats&&Lqc(a,b.importFormats.map(function(f){var h=new _.Hqc;h=_.y(h,1,f.source);return _.Qj(h,2,f.targets)}));b.adminSecureLinkSetting&&_.y(a,10,cGc[b.adminSecureLinkSetting]);_.J(d,3,a);_.MBc(c,d);b=b.largestChangeId;null!=b&&_.y(c,4,Number(b));return c},aGc=function(a,b){var c;var d=new _.Eub;d=_.y(d,1,Number(b.quotaBytesTotal));d=_.y(d,2,Number(b.quotaBytesUsed));d=_.y(d,3,Number(b.quotaBytesUsedAggregate));d=_.y(d,4,Number(b.quotaBytesUsedInTrash));d=_.Dqc(_.Cqc(_.Bqc(_.Aqc(d,
Aoc(b.quotaBytesByService||[])),eGc[b.quotaType]),Number(b.quotaBytesTotal)),"-1"===b.quotaBytesTotal?-1:Math.max(Number(b.quotaBytesTotal)-Number(b.quotaBytesUsedAggregate),0));var e=Number(b.quotaBytesUsedAggregate)-Coc(b);d=_.y(d,9,e);d=_.Eqc(d,Number(b.quotaBytesUsedAggregate));d=_.y(d,11,Number(b.quotaBytesUsedInTrash));d=_.y(d,13,_.Gnc(Number(b.quotaBytesUsedAggregate),Number(b.quotaBytesTotal)));d=_.Fqc(d,fGc[b.quotaStatus]||0);if(b.graceQuotaInfo&&b.graceQuotaInfo.endDate){e=new _.Dub;var f=
_.T3a(new Date(b.graceQuotaInfo.endDate));e=_.J(e,1,f);e=_.y(e,2,Number(b.graceQuotaInfo.additionalQuotaBytes));_.J(d,12,e)}(null===(c=_.DI(a.O))||void 0===c?0:_.T(c,16,!1))?(a=_.y(d,16,Number(b.individualQuotaBytesTotal)),a=_.y(a,17,_.Gnc(Number(b.individualQuotaBytesUsedAggregate),Number(b.individualQuotaBytesTotal))),b=_.y(a,9,Number(b.individualQuotaBytesUsedAggregate))):b=d;return b},fGc={softLimitExceeded:2,hardLimitExceeded:3,underLimit:1},Boc=new Set(["POOLED_STORAGE","FAMILY"]),bGc={isInTrial:1,
hasPaidContract:2,noSubscription:3,trialExpired:4},zoc={DRIVE:1,FAMILY:4,GMAIL:2,PHOTOS:3,POOLED_STORAGE:5},eGc={LIMITED:1,UNLIMITED:2,POOLED:3},cGc={unknown:0,requireLessSecureLinks:1,removeLessSecureLinks:2,userCanChoose:3};
var gGc={TYPE_UNSPECIFIED:0,MOBILE:1,SYNC_CLIENT:2,APP:3},hGc={TYPE_UNSPECIFIED:0,MY_DRIVE_ROOT:1,SHARED_DRIVE_ROOT:2,STANDARD_FOLDER:3},iGc={TYPE_UNSPECIFIED:0,USER_DELETION:1,TRASH_AUTO_PURGE:2,MULTIPARENTING_MIGRATION:4},jGc={TYPE_UNSPECIFIED:0,TRASH:1,PERMANENT_DELETE:2},kGc={TYPE_UNSPECIFIED:0,UNTRASH:1,REVIVE:2},lGc={ROLE_UNSPECIFIED:0,OWNER:1,ORGANIZER:2,FILE_ORGANIZER:3,EDITOR:4,COMMENTER:5,VIEWER:6,PUBLISHED_VIEWER:7},mGc={SUBTYPE_UNSPECIFIED:0,ADDED:1,DELETED:2,REPLY_ADDED:3,REPLY_DELETED:4,
RESOLVED:5,REOPENED:6},nGc={SUBTYPE_UNSPECIFIED:0,ADDED:1,DELETED:2,REPLY_ADDED:3,REPLY_DELETED:4,RESOLVED:5,REOPENED:6,REASSIGNED:7},oGc={SUBTYPE_UNSPECIFIED:0,ADDED:1,DELETED:2,REPLY_ADDED:3,REPLY_DELETED:4,ACCEPTED:7,REJECTED:8,ACCEPT_DELETED:9,REJECT_DELETED:10},pGc={TYPE_UNSPECIFIED:0,FLAGGED:1,CLEARED:2},qGc={TYPE_UNSPECIFIED:0,LOADED_FOR_VIEW:1,VIEWED_MORE_CONTENT:2,OPEN_WITH_APP_INITIATED:3},rGc={DOMAIN_VISIBILITY_UNKNOWN:0,DOMAIN_VISIBILITY_CONSUMER:1,DOMAIN_VISIBILITY_SAME_DOMAIN:2,DOMAIN_VISIBILITY_ALL_DOMAINS:3,
DOMAIN_VISIBILITY_RESTRICTED:4},sGc={NAMED_PARTY_UNKNOWN:0,NAMED_PARTY_UNNAMED:1,NAMED_PARTY_NAMED:2},tGc={TYPE_UNSPECIFIED:0,DOWNLOADED:1,DOWNLOAD_INITIATED:2,PRINT_INITIATED:3},uGc={UNSPECIFIED_REFERENCE_TYPE:0,LINK:1,DISCUSS:2},vGc={FEATURE_UNSPECIFIED:0,SHARING_OUTSIDE_DOMAIN:1,DIRECT_SHARING:2,ITEM_DUPLICATION:3,DRIVE_FILE_STREAM:4},wGc={RESTRICTION_UNSPECIFIED:0,UNRESTRICTED:1,FULLY_RESTRICTED:2},xGc={STATUS_UNSPECIFIED:0,IN_PROGRESS:1,COMPLETED:2,CANCELLED:3},yGc={DECISION_UNSPECIFIED:0,APPROVED:1,
DECLINED:2},zGc={TYPE_UNSPECIFIED:0,LABEL_ADDED:1,LABEL_REMOVED:2,LABEL_FIELD_VALUE_CHANGED:3},AGc={PUBLISH_MODE_UNSPECIFIED:0,NONE:1,FIXED:2,AUTO:3},BGc={REASON_UNSPECIFIED:0,ORPHAN_REPARENTED:1},IGc=function(a){return a.map(function(b){var c=new _.tvc;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;switch(d){case "primaryActionDetail":d=CGc(e);_.J(c,2,d);break;case "actors":d=DGc(e);_.Wj(c,3,d);break;case "actions":d=EGc(e);_.Wj(c,
4,d);break;case "targets":d=FGc(e);_.Wj(c,5,d);break;case "timestamp":c.O(GGc(e));break;case "timeRange":d=HGc(e),_.ck(c,7,svc[0],d)}}return c})},EGc=function(a){return a.map(function(b){var c=new _.qvc;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;switch(d){case "detail":d=CGc(e);_.J(c,1,d);break;case "source":d=new Juc;e=_.m(Object.entries(e));for(var f=e.next();!f.done;f=e.next()){var h=_.m(f.value);f=h.next().value;h=h.next().value;
switch(f){case "type":_.kk(d,2,gGc[h]);break;case "appId":_.jk(d,1,h)}}_.J(c,2,d);break;case "actor":d=JGc(e);_.J(c,3,d);break;case "target":d=KGc(e);_.J(c,4,d);break;case "timestamp":c.O(GGc(e));break;case "timeRange":d=HGc(e),_.ck(c,6,pvc[0],d)}}return c})},FGc=function(a){return a.map(function(b){return KGc(b)})},MGc=function(a){return a.map(function(b){return LGc(b)})},NGc=function(a){return a.map(function(b){var c=new _.nuc;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=
_.m(d.value);d=e.next().value;e=e.next().value;switch(d){case "parent":c.Fg(LGc(e));break;case "shortcut":d=LGc(e),_.J(c,2,d)}}return c})},KGc=function(a){var b=new _.Nuc;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "driveItem":c=OGc(d);_.ck(b,1,_.Muc[0],c);break;case "drive":c=new _.Kuc;d=_.m(Object.entries(d));for(var e=d.next();!e.done;e=d.next()){var f=_.m(e.value);e=f.next().value;f=f.next().value;switch(e){case "name":c.hd(f);
break;case "title":c.setTitle(f);break;case "root":e=OGc(f),_.J(c,3,e)}}_.ck(b,5,_.Muc[0],c);break;case "fileComment":c=new _.Luc;d=_.m(Object.entries(d));for(e=d.next();!e.done;e=d.next())switch(f=_.m(e.value),e=f.next().value,f=f.next().value,e){case "legacyCommentId":_.jk(c,1,f);break;case "legacyDiscussionId":_.jk(c,2,f);break;case "linkToDiscussion":_.jk(c,3,f);break;case "parent":c.Fg(OGc(f))}_.ck(b,3,_.Muc[0],c)}}return b},LGc=function(a){var b=new _.xL;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=
a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "driveItem":c=new Xtc;d=_.m(Object.entries(d));for(var e=d.next();!e.done;e=d.next()){var f=_.m(e.value);e=f.next().value;f=f.next().value;switch(e){case "name":c.hd(f);break;case "title":c.setTitle(f);break;case "driveFile":e=c;f=new Vtc;_.ck(e,8,Wtc[0],f);break;case "driveFolder":e=PGc(f);_.ck(c,9,Wtc[0],e);break;case "driveShortcut":e=QGc(f),_.ck(c,10,Wtc[0],e)}}_.ck(b,1,Ytc[0],c);break;case "drive":c=RGc(d),_.ck(b,3,
Ytc[0],c)}}return b},OGc=function(a){var b=new _.Utc;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "name":b.hd(d);break;case "title":b.setTitle(d);break;case "mimeType":_.jk(b,6,d);break;case "version":_.ik(b,5,d);break;case "owner":c=new Ptc;d=_.m(Object.entries(d));for(var e=d.next();!e.done;e=d.next()){var f=_.m(e.value);e=f.next().value;f=f.next().value;switch(e){case "domain":e=SGc(f);_.J(c,3,e);break;case "user":e=
GM(f);_.ck(c,1,Otc[0],e);break;case "drive":e=RGc(f),_.ck(c,4,Otc[0],e)}}_.J(b,7,c);break;case "driveFile":c=new Vtc;_.ck(b,8,Qtc[0],c);break;case "driveFolder":c=PGc(d);_.ck(b,9,Qtc[0],c);break;case "driveShortcut":c=QGc(d),_.ck(b,10,Qtc[0],c)}}return b},RGc=function(a){var b=new Ntc;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "name":b.hd(d);break;case "title":b.setTitle(d)}}return b},PGc=function(a){var b=new Stc;
a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "type":_.kk(b,6,hGc[d])}}return b},QGc=function(a){var b=new Ttc;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "targetName":_.jk(b,1,d);break;case "targetMimeType":_.jk(b,2,d)}}return b},DGc=function(a){return a.map(function(b){return JGc(b)})},JGc=function(a){var b=new _.Iuc;a=_.m(Object.entries(a));
for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "user":c=GM(d);_.ck(b,1,_.Huc[0],c);break;case "anonymous":c=new Euc;_.ck(b,2,_.Huc[0],c);break;case "impersonation":c=new _.Fuc;d=_.m(Object.entries(d));for(var e=d.next();!e.done;e=d.next()){var f=_.m(e.value);e=f.next().value;f=f.next().value;switch(e){case "impersonatedUser":e=GM(f),_.J(c,1,e)}}_.ck(b,3,_.Huc[0],c);break;case "system":c=new _.Guc;d=_.m(Object.entries(d));for(e=d.next();!e.done;e=
d.next())switch(f=_.m(e.value),e=f.next().value,f=f.next().value,e){case "type":_.kk(c,1,iGc[f])}_.ck(b,4,_.Huc[0],c);break;case "administrator":c=new _.Duc,_.ck(b,5,_.Huc[0],c)}}return b},TGc=function(a){return a.map(function(b){return GM(b)})},GM=function(a){var b=new _.utc;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "knownUser":c=new _.vL;d=_.m(Object.entries(d));for(var e=d.next();!e.done;e=d.next()){var f=
_.m(e.value);e=f.next().value;f=f.next().value;switch(e){case "personName":_.jk(c,1,f);break;case "isCurrentUser":_.hk(c,2,f);break;case "displayName":_.jk(c,3,f);break;case "photoUrl":c.Ln(f)}}_.ck(b,2,_.stc[0],c);break;case "unknownUser":c=new vtc;_.ck(b,4,_.stc[0],c);break;case "deletedUser":c=new _.ttc,_.ck(b,3,_.stc[0],c)}}return b},GGc=function(a){var b=(new Date(a)).getTime();a=Math.floor(b/1E3);b=b%1E3*1E6;return _.S3a((new _.Yx).setSeconds(a),b)},HGc=function(a){var b=new _.IL;a=_.m(Object.entries(a));
for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "startTime":b.mY(GGc(d));break;case "endTime":b.wF(GGc(d))}}return b},SGc=function(a){var b=new _.Mtc;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "name":b.hd(d);break;case "legacyId":_.jk(b,3,d);break;case "audienceDisplayName":_.jk(b,4,d)}}return b},CGc=function(a){for(var b=new _.CL,c=_.m(Object.entries(a)),
d=c.next();!d.done;d=c.next()){var e=_.m(d.value),f=e.next().value,h=e.next().value;switch(f){case "create":for(var k=new _.auc,l=_.m(Object.entries(h)),p=l.next();!p.done;p=l.next()){var q=_.m(p.value),r=q.next().value,v=q.next().value;switch(r){case "new":var z=k,A=new buc;_.ck(z,1,_.Ztc[0],A);break;case "upload":var D=k,G=new cuc;_.ck(D,2,_.Ztc[0],G);break;case "copy":for(var H=v,L=new _.$tc,M=_.m(Object.entries(H)),R=M.next();!R.done;R=M.next()){var ba=_.m(R.value),ka=ba.next().value,ja=ba.next().value;
switch(ka){case "originalObject":var ya=LGc(ja);_.J(L,1,ya)}}_.ck(k,3,_.Ztc[0],L)}}_.ck(b,1,_.BL[0],k);break;case "edit":var fa=new huc;_.ck(b,2,_.BL[0],fa);break;case "move":for(var Va=new _.puc,Ka=_.m(Object.entries(h)),ob=Ka.next();!ob.done;ob=Ka.next()){var Ya=_.m(ob.value),yb=Ya.next().value,Zb=Ya.next().value;switch(yb){case "addedParents":var Fc=MGc(Zb);_.Wj(Va,1,Fc);break;case "removedParents":var Zd=MGc(Zb);_.Wj(Va,2,Zd);break;case "fromOwnershipTransfer":_.hk(Va,3,Zb);break;case "reparents":var Gd=
Zb.map(UGc);_.Wj(Va,4,Gd);break;case "multiparentingMigration":for(var qd=Zb,kf=new _.ouc,ud=_.m(Object.entries(qd)),Eb=ud.next();!Eb.done;Eb=ud.next()){var oe=_.m(Eb.value),ng=oe.next().value,ye=oe.next().value;switch(ng){case "removedParents":var ii=MGc(ye);_.Wj(kf,2,ii);break;case "migratedParents":var Pf=NGc(ye);_.Wj(kf,1,Pf)}}_.J(Va,5,kf)}}_.ck(b,3,_.BL[0],Va);break;case "rename":for(var pi=new _.vuc,Ig=_.m(Object.entries(h)),jm=Ig.next();!jm.done;jm=Ig.next()){var bf=_.m(jm.value),Oe=bf.next().value,
Xg=bf.next().value;switch(Oe){case "oldTitle":_.jk(pi,1,Xg);break;case "newTitle":_.jk(pi,2,Xg)}}_.ck(b,4,_.BL[0],pi);break;case "delete":for(var qi=new _.fuc,mj=_.m(Object.entries(h)),km=mj.next();!km.done;km=mj.next()){var Sn=_.m(km.value),lm=Sn.next().value,Ci=Sn.next().value;switch(lm){case "type":_.kk(qi,1,jGc[Ci])}}_.ck(b,5,_.BL[0],qi);break;case "restore":for(var Jm=new _.wuc,Aj=_.m(Object.entries(h)),zg=Aj.next();!zg.done;zg=Aj.next()){var Bj=_.m(zg.value),lk=Bj.next().value,Cj=Bj.next().value;
switch(lk){case "type":_.kk(Jm,1,kGc[Cj])}}_.ck(b,6,_.BL[0],Jm);break;case "permissionChange":for(var Mi=new _.suc,mk=_.m(Object.entries(h)),Rj=mk.next();!Rj.done;Rj=mk.next()){var Ni=_.m(Rj.value),aj=Ni.next().value,Lh=Ni.next().value;switch(aj){case "addedPermissions":var Rk=VGc(Lh);_.Wj(Mi,1,Rk);break;case "removedPermissions":var Dj=VGc(Lh);_.Wj(Mi,2,Dj);break;case "resharedPermissions":var Ej=VGc(Lh);_.Wj(Mi,3,Ej);break;case "otherActivePermissions":var Sj=VGc(Lh);_.Wj(Mi,4,Sj)}}_.ck(b,7,_.BL[0],
Mi);break;case "comment":for(var Tj=new _.Ltc,Km=_.m(Object.entries(h)),nk=Km.next();!nk.done;nk=Km.next()){var ok=_.m(nk.value),xf=ok.next().value,Fj=ok.next().value;switch(xf){case "post":for(var Lm=Fj,Mm=new _.Itc,pn=_.m(Object.entries(Lm)),Oi=pn.next();!Oi.done;Oi=pn.next()){var pk=_.m(Oi.value),yc=pk.next().value,qk=pk.next().value;switch(yc){case "subtype":_.kk(Mm,1,mGc[qk])}}_.ck(Tj,1,_.Htc[0],Mm);break;case "assignment":for(var gh=Fj,Tg=new _.Jtc,Ve=_.m(Object.entries(gh)),Nm=Ve.next();!Nm.done;Nm=
Ve.next()){var Om=_.m(Nm.value),qh=Om.next().value,bj=Om.next().value;switch(qh){case "subtype":_.kk(Tg,1,nGc[bj]);break;case "assignedUser":var pl=GM(bj);_.J(Tg,7,pl)}}_.ck(Tj,2,_.Htc[0],Tg);break;case "suggestion":for(var Mh=Fj,qn=new _.Ktc,Tn=_.m(Object.entries(Mh)),rn=Tn.next();!rn.done;rn=Tn.next()){var Sk=_.m(rn.value),Tk=Sk.next().value,Ho=Sk.next().value;switch(Tk){case "subtype":_.kk(qn,1,oGc[Ho])}}_.ck(Tj,3,_.Htc[0],qn);break;case "mentionedUsers":var yq=TGc(Fj);_.Wj(Tj,7,yq)}}_.ck(b,8,
_.BL[0],Tj);break;case "dlpChange":for(var Yo=new _.euc,Nq=_.m(Object.entries(h)),fj=Nq.next();!fj.done;fj=Nq.next()){var ym=_.m(fj.value),Op=ym.next().value,Pp=ym.next().value;switch(Op){case "type":_.kk(Yo,1,pGc[Pp])}}_.ck(b,9,_.BL[0],Yo);break;case "view":for(var Kr=new Cuc,dx=_.m(Object.entries(h)),Oq=dx.next();!Oq.done;Oq=dx.next()){var Lr=_.m(Oq.value),VA=Lr.next().value,tD=Lr.next().value;switch(VA){case "type":_.kk(Kr,1,qGc[tD]);break;case "viewHistoryVisibility":for(var WA=tD,XA=new Buc,
Ky=_.m(Object.entries(WA)),Pq=Ky.next();!Pq.done;Pq=Ky.next()){var Mr=_.m(Pq.value),ex=Mr.next().value,nO=Mr.next().value;switch(ex){case "domainPolicyVisibilityState":_.kk(XA,1,rGc[nO]);break;case "namedPartyState":_.kk(XA,2,sGc[nO])}}_.J(Kr,2,XA)}}_.ck(b,10,_.BL[0],Kr);break;case "download":for(var RZ=new guc,KJ=_.m(Object.entries(h)),uD=KJ.next();!uD.done;uD=KJ.next()){var LJ=_.m(uD.value),oO=LJ.next().value,vD=LJ.next().value;switch(oO){case "type":_.kk(RZ,1,tGc[vD])}}_.ck(b,11,_.BL[0],RZ);break;
case "reference":for(var fx=new _.ntc,xv=_.m(Object.entries(h)),zl=xv.next();!zl.done;zl=xv.next()){var gx=_.m(zl.value),Zo=gx.next().value,MJ=gx.next().value;switch(Zo){case "type":_.kk(fx,1,uGc[MJ]);break;case "context":for(var pO=MJ,YA=new mtc,vi=_.m(Object.entries(pO)),oG=vi.next();!oG.done;oG=vi.next()){var yv=_.m(oG.value),Zt=yv.next().value,SZ=yv.next().value;switch(Zt){case "description":YA.Ul(SZ);break;case "url":_.jk(YA,2,SZ)}}_.J(fx,2,YA)}}_.ck(b,12,_.BL[0],fx);break;case "settingsChange":for(var TZ=
new _.zuc,wD=_.m(Object.entries(h)),Mg=wD.next();!Mg.done;Mg=wD.next()){var UZ=_.m(Mg.value),Ly=UZ.next().value,Zm=UZ.next().value;switch(Ly){case "restrictionChanges":var ZA=WGc(Zm);_.Wj(TZ,1,ZA)}}_.ck(b,13,_.BL[0],TZ);break;case "approvalChange":for(var $o=new _.ytc,qO=_.m(Object.entries(h)),xD=qO.next();!xD.done;xD=qO.next()){var TS=_.m(xD.value),rO=TS.next().value,Bn=TS.next().value;switch(rO){case "approvalName":_.jk($o,2,Bn);break;case "approvalEventNames":_.Qj($o,3,Bn);break;case "initiator":var NJ=
GM(Bn);_.J($o,4,NJ);break;case "reviewers":var K7=TGc(Bn);_.Wj($o,5,K7);break;case "status":$o.Dc(xGc[Bn]);break;case "dueTime":var US=GGc(Bn);_.J($o,7,US);break;case "approvalRequested":var VZ=$o,WZ=new ztc;_.ck(VZ,8,_.wL[0],WZ);break;case "approvalCancelled":var $A=$o,hx=new Atc;_.ck($A,9,_.wL[0],hx);break;case "reviewerResponded":for(var OJ=Bn,XZ=new _.xtc,sO=_.m(Object.entries(OJ)),pG=sO.next();!pG.done;pG=sO.next()){var YZ=_.m(pG.value),PJ=YZ.next().value,wha=YZ.next().value;switch(PJ){case "reviewerDecision":_.kk(XZ,
1,yGc[wha])}}_.ck($o,10,_.wL[0],XZ);break;case "commentAdded":var kza=$o,tia=new Btc;_.ck(kza,11,_.wL[0],tia);break;case "reviewersChanged":for(var fB=Bn,kx=new Dtc,XJ=_.m(Object.entries(fB)),AD=XJ.next();!AD.done;AD=XJ.next()){var qT=_.m(AD.value),rT=qT.next().value,uia=qT.next().value;switch(rT){case "reviewerChanges":var lza=XGc(uia);_.Wj(kx,1,lza)}}_.ck($o,12,_.wL[0],kx);break;case "dueTimeChanged":for(var l8=Bn,q_=new Ftc,Wzb=_.m(Object.entries(l8)),rZa=Wzb.next();!rZa.done;rZa=Wzb.next()){var mza=
_.m(rZa.value),Xzb=mza.next().value,tqc=mza.next().value;switch(Xzb){case "oldDueTime":var Yzb=GGc(tqc);_.J(q_,1,Yzb)}}_.ck($o,13,_.wL[0],q_)}}_.ck(b,18,_.BL[0],$o);break;case "lock":var sZa=new juc;_.ck(b,15,_.BL[0],sZa);break;case "unlock":var BD=new Auc;_.ck(b,16,_.BL[0],BD);break;case "appliedLabelChange":for(var tZa=new _.rtc,uZa=_.m(Object.entries(h)),nza=uZa.next();!nza.done;nza=uZa.next()){var vZa=_.m(nza.value),Zzb=vZa.next().value,$zb=vZa.next().value;switch(Zzb){case "changes":var wZa=
YGc($zb);_.Wj(tZa,1,wZa)}}_.ck(b,19,_.BL[0],tZa);break;case "publishChange":for(var oza=new _.uuc,xZa=_.m(Object.entries(h)),pza=xZa.next();!pza.done;pza=xZa.next()){var aAb=_.m(pza.value),via=aAb.next().value,wia=aAb.next().value;switch(via){case "oldPublishState":var sT=ZGc(wia);_.J(oza,1,sT);break;case "newPublishState":var uqc=ZGc(wia);_.J(oza,2,uqc)}}_.ck(b,20,_.BL[0],oza);break;case "linkShareMetadataChange":for(var bAb=new _.iuc,cAb=_.m(Object.entries(h)),qza=cAb.next();!qza.done;qza=cAb.next()){var YJ=
_.m(qza.value),vqc=YJ.next().value,yZa=YJ.next().value;switch(vqc){case "securityUpdateEnabled":_.hk(bAb,1,yZa)}}_.ck(b,21,_.BL[0],bAb)}}return b},UGc=function(a){var b=new _.luc;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "reason":_.kk(b,1,BGc[d])}}return b},VGc=function(a){return a.map(function(b){var c=new _.AL;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=_.m(d.value);d=e.next().value;
e=e.next().value;switch(d){case "role":_.kk(c,1,lGc[e]);break;case "user":d=GM(e);_.ck(c,2,_.zL[0],d);break;case "group":d=new _.yL;e=_.m(Object.entries(e));for(var f=e.next();!f.done;f=e.next()){var h=_.m(f.value);f=h.next().value;h=h.next().value;switch(f){case "email":_.jk(d,1,h);break;case "title":d.setTitle(h)}}_.ck(c,3,_.zL[0],d);break;case "domain":d=SGc(e);_.ck(c,4,_.zL[0],d);break;case "anyone":d=new quc;_.ck(c,5,_.zL[0],d);break;case "allowDiscovery":_.hk(c,6,e)}}return c})},WGc=function(a){return a.map(function(b){var c=
new _.yuc;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;switch(d){case "feature":_.kk(c,1,vGc[e]);break;case "newRestriction":_.kk(c,2,wGc[e])}}return c})},XGc=function(a){return a.map(function(b){var c=new Etc;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;switch(d){case "removedReviewer":d=GM(e);_.J(c,3,d);break;case "addedReviewer":d=GM(e),_.J(c,4,d)}}return c})},
YGc=function(a){return a.map(function(b){var c=new _.qtc;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;switch(d){case "label":_.jk(c,1,e);break;case "types":d=$Gc(e),_.Qj(c,2,d)}}return c})},$Gc=function(a){return a.map(function(b){return zGc[b]})},ZGc=function(a){var b=new _.tuc;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "publishMode":_.kk(b,
1,AGc[d]);break;case "signinRequired":_.hk(b,2,d);break;case "publishedTime":c=GGc(d),_.J(b,3,c)}}return b};
var bHc=function(a,b){var c=new jBc;b=_.y(c,4,b);a&&"drive#app"==a.kind&&(a=aHc(a),_.J(b,2,a));return b},aHc=function(a){_.IK(["drive#app"],a);var b=(new _.DL).Ob(a.id);b=_.y(b,3,a.useByDefault).hd(a.name);b=_.y(b,7,a.openUrlTemplate);b=Wuc(Vuc(b,a.primaryMimeTypes),a.secondaryMimeTypes);b=_.y(b,8,a.createUrl);b=_.y(b,9,a.createInFolderTemplate);b=_.y(b,10,a.objectType);b=_.y(b,11,a.supportsCreate);b=_.y(b,12,a.supportsImport);b=_.y(b,13,a.supportsMultiOpen);b=_.y(b,27,a.supportsOfflineCreate);b=
_.y(b,14,a.installed);b=_.y(b,15,a.authorized);b=_.y(b,16,a.productUrl);b=_.Qj(b,17,a.primaryFileExtensions);b=_.Qj(b,18,a.secondaryFileExtensions);b=_.y(b,19,a.shortDescription);b=_.y(b,20,a.longDescription);b=_.y(b,21,a.productId);b=_.y(b,22,a.removable);b=_.y(b,23,cHc[a.type]);b=_.y(b,25,a.hasAppData);b=_.y(b,26,a.appDataQuotaBytesUsed);b=_.y(b,28,a.requiresAuthorizationBeforeOpenWith);b=_.y(b,30,a.hasDriveWideScope);b=_.y(b,31,a.driveSource);b=_.y(b,32,a.driveBranded);b=_.y(b,33,a.hidden);b=_.y(b,
34,a.supportsMobileBrowser);b=_.y(b,35,a.supportsTeamDrives);b=_.y(b,36,a.hasGsmListing);for(var c=a.icons||[],d=[],e=0;e<c.length;e++){var f=d,h=f.push,k=c[e],l=new _.Quc;l=_.y(l,3,k.iconUrl).setSize(k.size);k.category&&_.y(l,1,dHc[k.category]);h.call(f,l)}_.Wj(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 _.Tuc;d=c.absoluteScore;null!=d&&_.y(a,1,Number(d));d=eHc(c.mimeTypeScores||[]);_.Wj(a,2,d);c=eHc(c.fileExtensionScores||[]);
_.Wj(a,3,c);_.J(b,29,a);return b},eHc=function(a){for(var b=[],c=0;c<a.length;c++){var d=new _.Ruc;d=_.y(d,1,a[c].type);d=_.y(d,2,Number(a[c].score));b.push(d)}return b},cHc={WEB_ONLY:1,WEB_AND_CHROME_EXTENSION:2,CHROME_EXTENSION_ONLY:3},dHc={application:1,document:2,documentShared:3};
var gHc=function(a){var b=new fCc;if(!a.backups)return b;a=a.backups.map(function(c){var d=(new _.kM).Ob(c.id).setTitle(c.title);d=_.y(d,3,_.JK(c.updateTime));d=_.y(d,4,fHc[c.backupSource]);d=_.y(d,5,c.iconUri);d=_.y(d,8,_.JK(c.expiryTime));d=_.y(d,9,"boolean"===typeof c.hasGoogleoneBackup?c.hasGoogleoneBackup:!1);if(1===d.$y()){var e=new WAc;e=_.y(e,1,c.whatsappOngoingBackupEnabled);c=_.y(e,2,c.whatsappPhoneNumber);_.J(d,6,c)}else 2===d.$y()&&(e=new _.VAc,e=_.y(e,1,c.deviceName),e=_.y(e,2,c.deviceModelName),
e=_.y(e,3,c.shouldIncludeSpecialSyncItems),c=_.y(e,4,c.deviceAndroidId),_.J(d,7,c));return d});_.Wj(b,2,a);return b},iHc=function(a){var b=new bCc;if(!a.backupItems)return b;a=a.backupItems.map(function(c){var d=(new _.lM).Ob(c.id);d=_.y(d,1,hHc[c.type]).setTitle(c.title);d=_.y(d,4,c.iconUri);d=_.XAc(d.setSize(c.size),_.JK(c.updateTime));d=_.y(d,7,c.hasCustomBehavior).Ul(c.description);return _.y(d,9,c.ongoingSyncEnabled)});_.Wj(b,1,a);return b},fHc={BACKUP_SOURCE_UNSPECIFIED:0,BACKUP_SOURCE_WHATSAPP:1,
BACKUP_SOURCE_ANDROID:2},hHc={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 jHc=function(a,b){this.H=a;this.O=b};
var kHc={read:2,write:3,comment:4},lHc=function(a,b,c){var d=c.itemId;c=c.driveItem;d=_.hG((new _.dl).Ob(d).setTitle(c.title),c.mimeType);c.userCapabilities&&_.WJ(d,_.Rlc(c.userCapabilities));_.jK(b).includes(19)&&_.Nhc(d,!0);kzc(a,d,_.jK(b));_.Phc(d,4);return d},nHc=function(a,b,c){var d=[];(c.item||[]).forEach(function(e){if(e.driveItem){var f=new _.aoa;f=_.y(f,2,mHc(e));e=lHc(a,b,e);e=_.J(e,100,f);d.push(e)}});c=(new _.iB).Nw(d).sP(c.suggestionSessionId);return _.ykc(new _.CK,c)},pHc=function(a,
b,c){var d=[],e=[];(c.item||[]).forEach(function(f){if(f.person){var h=f.itemId,k=oHc(f.person).Ob(h);(f.childItem||[]).forEach(function(l){e.some(function(r){return r.getId()===h})||e.push(k);var p=l.itemId,q=d.find(function(r){return r.getId()===p});q||(q=lHc(a,b,l),d.push(q));l=mqc(lqc(kqc(new _.Yna,k.clone()),mHc(l)),l.url);_.dk(q,107,l,_.Yna,void 0)})}});return Zrc((new _.sK).Nw(d),e).sP(c.suggestionSessionId)},oHc=function(a){return _.bhc((new _.Jk).Ob(a.id).hd(a.displayName),a.emailAddress).Ln(a.photoUrl)},
rHc=function(a,b,c){var d=[];(c.item||[]).forEach(function(e){if(e.driveItem){var f=lHc(a,b,e);e=qHc(e);f=_.Wj(f,117,e);d.push(f)}});c=(new _.iB).Nw(d).sP(c.suggestionSessionId);return _.ykc(new _.CK,c)},qHc=function(a){var b=a.action;return b?b.map(function(c){var d=new _.Fna,e=sHc(c);e&&_.ck(d,2,_.Nk[0],e);(e=tHc(c))&&bpc(d,e);(e=uHc(c))&&_.ck(d,4,_.Nk[0],e);(e=vHc(c))&&_.ck(d,5,_.Nk[0],e);(e=wHc(c))&&_.ck(d,6,_.Nk[0],e);(e=xHc(c))&&_.ck(d,7,_.Nk[0],e);(e=yHc(c))&&_.ck(d,8,_.Nk[0],e);(e=zHc(c))&&
_.ck(d,9,_.Nk[0],e);(e=AHc(c))&&_.ck(d,10,_.Nk[0],e);(c=BHc(c))&&_.ck(d,11,_.Nk[0],c);return d}):(a=HM(a),a=Npc([a]),[bpc(new _.Fna,a)])},DHc=function(a){return(a.justification||[]).map(function(b){return CHc(b)})},HM=function(a){return(a=a.justification)?CHc(a):null},CHc=function(a){var b=Zoc(new _.Mk,EHc(a.displayText)),c=a.primaryPerson,d=a.allPeople;c?(c=oHc(c),_.ck(b,3,_.Ena[0],c),$oc(b,[c])):d?(c=(d.person||[]).map(function(e){return oHc(e)}),d=Yoc(c),_.ck(b,4,_.Ena[0],d),$oc(b,c)):(c=(a.person||
[]).map(function(e){return oHc(e)}),c.length&&(d=Yoc(c),_.ck(b,4,_.Ena[0],d),$oc(b,c)));_.y(b,5,_.JK(a.eventTime));apc(b,EHc(a.justificationDescription));return b},EHc=function(a){if(!a)return null;a=a.textSegment||[];return Voc(new _.Cna,a.map(function(b){var c=(new _.Hk).nh(b.text),d=b.link;if(d){var e=new _.Ik;d=_.y(e,1,d.url)}else d=null;c=_.J(c,2,d);c=_.y(c,3,b.bold);return _.y(c,4,b.italic)}))},sHc=function(a){a=a.documentDocosAction;if(!a)return null;var b=Bpc(new _.Lna,HM(a));Apc(b,(a.subAction||
[]).map(function(c){var d=new _.Nna;c.reply?(c=new _.Hna,_.ck(d,1,_.Mna[0],c)):c.resolve?(c=new jpc,_.ck(d,2,_.Mna[0],c)):c.reassign?(c=new hpc,_.ck(d,3,_.Mna[0],c)):c.acceptSuggestion?(c=new cpc,_.ck(d,4,_.Mna[0],c)):c.rejectSuggestion?(c=new ipc,_.ck(d,5,_.Mna[0],c)):c.openThread&&(c=new _.Gna,_.ck(d,6,_.Mna[0],c));return d}));_.y(b,2,a.discussionId);_.y(b,3,a.postId);Cpc(b,EHc(a.anchorText));return b},uHc=function(a){a=a.documentShareAction;if(!a)return null;var b=Fpc(new _.Qk,HM(a));Epc(b,(a.subAction||
[]).map(function(c){var d=new Hpc;c.suggestedShare?(c=new npc,_.ck(d,1,Gpc[0],c)):c.responseToRequest&&(c=new kpc,_.ck(d,2,Gpc[0],c));return d}));Dpc(b,(a.sharee||[]).map(function(c){return oHc(c)}));_.y(b,3,kHc[a.shareeRole]);return b},tHc=function(a){a=a.documentViewAction;if(!a)return null;var b=Npc(DHc(a));Mpc(b,(a.subAction||[]).map(function(c){var d=new Ppc;c.open?d.Bg(new epc):c.reviewEdits&&(c=new lpc,_.ck(d,2,Opc[0],c));return d}));return b},vHc=function(a){a=a.emailViewAction;if(!a)return null;
var b=$pc(new Ypc,HM(a));Zpc(b,(a.subAction||[]).map(function(c){var d=new bqc;c.openEmail&&d.Bg(new fpc);return d}));return b},wHc=function(a){a=a.calendarEventAction;if(!a)return null;var b=tpc(spc(rpc(new _.Ok,a.eventId),HM(a)),a.guestCount);qpc(b,(a.subAction||[]).map(function(c){var d=new vpc;if(c.viewCalendarEvent){var e=new opc;_.ck(d,1,upc[0],e)}c.shareWithAttendees&&(e=new mpc,_.ck(d,2,upc[0],e));c.present&&(e=new gpc,_.ck(d,3,upc[0],e));c.openDocument&&(c=new epc,_.ck(d,4,upc[0],c));return d}));
return b},xHc=function(a){a=a.documentWorkspaceAction;if(!a)return null;var b=Upc(Tpc(new Rpc,a.workspaceId),HM(a));Spc(b,(a.subAction||[]).map(function(c){var d=new Wpc;c.addToWorkspace&&(c=new dpc,_.ck(d,1,Vpc[0],c));return d}));return b},yHc=function(a){a=a.documentTopicAction;if(!a)return null;var b=Jpc(new _.Uk,HM(a));Ipc(b,(a.subAction||[]).map(function(c){var d=new Lpc;c.openDocument&&(c=new epc,_.ck(d,1,Kpc[0],c));return d}));return b},zHc=function(a){a=a.popularDocumentAction;if(!a)return null;
var b=hqc(new _.Xk,HM(a));gqc(b,(a.subAction||[]).map(function(c){var d=new jqc;c.openDocument&&(c=new epc,_.ck(d,1,iqc[0],c));return d}));return b},AHc=function(a){a=a.collaboratorActivityAction;if(!a)return null;var b=xpc(new _.Pk,HM(a));wpc(b,(a.subAction||[]).map(function(c){var d=new zpc;c.openDocument&&(c=new epc,_.ck(d,1,ypc[0],c));return d}));return b},BHc=function(a){a=a.formResponseAction;if(!a)return null;var b=dqc(new _.Wk,DHc(a));cqc(b,(a.subAction||[]).map(function(c){var d=new fqc;
c.openDocument?(c=new epc,_.ck(d,1,eqc[0],c)):c.viewResponses&&(c=new ppc,_.ck(d,2,eqc[0],c));return d}));return b},mHc=function(a){a=((a.justification||{}).displayText||{}).textSegment||[];return 0<a.length?(a[0]||{}).text||"":""};
var FHc=function(a,b){this.H=a;this.O=b},HHc=function(a,b,c){_.IK(["drive#categoryMetadataList"],c);var d=new uL,e=Object.values(c.categoryMetadata||{});itc(d,e.map(function(f){return GHc(a,f,b.Cc())}));d.Dc(1);return new _.vK(d,MAc(c))},JHc=function(a,b){var c=new pM;rBc(c,(b.categories||[]).map(function(d){return IHc(a,d)}));c.Dc(1);return new Cvc(c,MAc(b))},GHc=function(a,b,c){_.IK(["drive#categoryMetadata"],b);c=nsc((new pL).hd(b.categoryName),c);b=Object.values(b.attributeValues||[]);msc(c,b.map(function(d){return KHc(a,
d)}).filter(function(d){return d}));return c},IHc=function(a,b){var c,d=Wsc(Nsc(Tsc(Ssc(Rsc(Msc(Lsc((new sL).hd(b.name),b.categoryName),b.latestName).setTitle(b.title).Ul(b.description),_.JK(b.createTime)),_.JK(b.updateTime)),_.JK(b.publishTime)),(null!==(c=b.attributes)&&void 0!==c?c:[]).map(function(e){var f=e.type;var h=(new Isc).Ob(e.id);h=_.y(h,2,e.queryGuid);h=_.y(h,3,e.helpText);h=_.y(h,4,e.displayName);if(e.attributeDisplayHints){var k=LHc(e.attributeDisplayHints);_.J(h,5,k)}if(e.capabilities){k=
e.capabilities;var l=new qsc;l=_.y(l,1,k.canSearch);k=_.y(l,2,k.canWrite);_.J(h,6,k)}_.y(h,7,MHc[f]);e=e[NHc(f)+"Options"];return OHc(a,h,f,e)?h:null}).filter(function(e){return e})),b.customer);b.createdBy&&Osc(d,PHc(b.createdBy));b.updatedBy&&Psc(d,PHc(b.updatedBy));b.publishedBy&&Qsc(d,PHc(b.publishedBy));b.displayHints&&Usc(d,LHc(b.displayHints));b.capabilities&&Vsc(d,QHc(b.capabilities));b.learnMoreUri&&_.y(d,15,b.learnMoreUri);return d},KHc=function(a,b){_.IK(["drive#categoryAttributeValue"],
b);var c=(new nL).Ob(b.id);if(b.userScoped)b=Object.values(b.userScoped),ksc(c,b.map(function(d){_.IK(["drive#userScopedAttributeValue"],d);var e=new hsc,f=_.KK(a.H,d.scopedUser);e=_.J(e,1,f);return a.Jb(e,d)?e:null}).filter(function(d){return d})),c.NA(9);else if(!a.Jb(c,b))return null;return c},LHc=function(a){var b=new psc;b=_.y(b,1,a.disabled);b=_.y(b,2,a.hidden);b=_.y(b,3,a.activatedInAllDrives);return _.y(b,4,!!a.required)},QHc=function(a){var b=new Ksc;b=_.y(b,1,a.canSearch);b=_.y(b,2,a.canApply);
b=_.y(b,4,a.canRemove);return _.y(b,3,a.canManageSharedDriveActivation)},OHc=function(a,b,c,d){return RHc(a,function(){SHc(a)[c](b,d)},c,b)},THc=function(a){a=void 0===a?{}:a;var b=new tsc;b=_.y(b,1,a.minSize);return _.y(b,2,a.maxSize)},VHc=function(a){var b=new zsc;Asc(b,(a.choices||[]).map(function(c){var d=new ysc;d=_.y(d,1,c.label).Jb(c.value);c.description&&d.Ul(c.description);if(c.capabilities){var e=c.capabilities;var f=new wsc;f=_.y(f,1,e.canSearch);e=_.y(f,2,e.canSelect);_.J(d,3,e)}c.displayHints&&
(c=c.displayHints,e=new xsc,e=_.y(e,1,c.disabled),e=_.y(e,2,c.hidden),c.badgePriority&&_.y(e,5,c.badgePriority),c.badgeColors&&(f=UHc(c.badgeColors),_.J(e,3,f)),c.darkBadgeColors&&(c=UHc(c.darkBadgeColors),_.J(e,4,c)),_.J(d,4,e));return d}));return b},UHc=function(a){var b=new osc;var c=WHc(a.backgroundColor);b=_.J(b,1,c);c=WHc(a.foregroundColor);b=_.J(b,2,c);a=WHc(a.soloColor);return _.J(b,3,a)},WHc=function(a){var b=new _.QC;b=_.Yj(b,1,a.red,0);b=_.Yj(b,2,a.green,0);b=_.Yj(b,3,a.blue,0);a.alpha&&
(a=(new Oqc).Jb(a.alpha),_.J(b,4,a));return b},XHc=function(a){var b=new Dsc;b=_.y(b,1,a.showThousandsSeparator);b=_.y(b,2,a.minValue);return _.y(b,3,a.maxValue)},YHc=function(a){var b=(new _.soa).setYear(a.year).setMonth(a.month);return _.y(b,3,a.day)};FHc.prototype.Jb=function(a,b){var c=this,d=b.valueType.replace(/([A-Z])/g,"_$1").toLowerCase().toUpperCase();a.NA(MHc[d]);return RHc(this,function(){ZHc(c)[d](a,b[b.valueType])},b.valueType)};
var RHc=function(a,b,c,d){try{b()}catch(e){if(e instanceof TypeError&&!(d instanceof Fsc))return qrc(a.O,"drive.ds.response.MetadataParser","Response Parser: Error parsing type "+c+"."),!1;throw e;}return!0},PHc=function(a){return _.$gc(1).Ob(a.personName.split("/")[1])},NHc=function(a){return a.toLowerCase().replace(/_([a-z])/g,function(b,c){return c.toUpperCase()})},SHc=function(a){return{BOOLEAN:function(b,c){var d=b.O2a;var e=new usc;e=_.y(e,1,c.trueLabel);c=_.y(e,2,c.falseLabel);return d.call(b,
c)},TEXT:function(b,c){return b.Ica(THc(c))},TEXT_LIST:function(b,c){var d=b.N3a;var e=new Csc;e=_.y(e,1,c.maxEntries);c=THc(c.options);c=_.J(e,2,c);return d.call(b,c)},LONG_TEXT:function(b,c){var d=new ssc;d=_.y(d,1,c.minSize);c=_.y(d,2,c.maxSize);return _.ck(b,10,qL[0],c)},SELECTION:function(b,c){return b.A3a(VHc(c))},SELECTION_LIST:function(b,c){var d=b.z3a;var e=new Bsc;e=_.y(e,1,c.maxEntries);c=VHc(c.options);c=_.J(e,2,c);return d.call(b,c)},INTEGER:function(b,c){return b.b3a(XHc(c))},INTEGER_LIST:function(b,
c){var d=b.a3a;var e=new Esc;e=_.y(e,1,c.maxEntries);c=XHc(c.options);c=_.J(e,2,c);return d.call(b,c)},USER:function(b){return b.S3a(new Gsc)},USER_LIST:function(b,c){var d=b.Ioa,e=new Hsc;c=_.y(e,1,c.maxEntries);e=new Gsc;c=_.J(c,2,e);return d.call(b,c)},DATE:function(b,c){var d=b.qoa;var e=new rsc;e=_.y(e,4,c.dateFormat);var f=YHc(c.minValue);e=_.J(e,2,f);c=YHc(c.maxValue);c=_.J(e,3,c);return d.call(b,c)},USER_SCOPED:function(b,c){var d=new Fsc;d=_.y(d,1,c.canReadCollaboratorValues);var e=c.subtype;
_.y(d,2,MHc[e]);c=c[NHc(e)+"Options"];OHc(a,d,e,c);return _.ck(b,16,qL[0],d)}}},ZHc=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.Goa(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.Coa(c)},INTEGER:function(b,c){return b.setIntegerValue(parseInt(c,10))},INTEGER_LIST:function(b,c){return b.uoa(c.map(function(d){return parseInt(d,
10)}))},USER:function(b,c){return b.setUserValue(_.KK(a.H,c))},USER_LIST:function(b,c){jsc(b,c.map(function(d){return _.KK(a.H,d)}))},DATE_STRING:function(b,c){return b.setDateStringValue(c)}}},MHc={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 $Hc=function(a){a=a.personResponse;return Ywc(new Xwc,a.map(function(b){var c=b.person;b=Uwc(new TL,b.personId);var d=b.hd,e=c;e=void 0===e?{}:e;e=e.metadata;b=d.call(b,e?e.bestDisplayName.displayName:"");d=c;d=void 0===d?{}:d;d=d.email;b=Vwc(b,d?d[0].value:"");c=void 0===c?{}:c;c=c.photo?c.photo[0]:null;d=new Twc;c=_.y(d,1,c&&!c.isDefault?c.url:null);return _.J(b,4,c)}))};
var aIc=function(a){this.H=a},cIc=function(a,b){_.IK(["drive#teamDriveList","drive#driveList"],b);return(b.items||[]).map(function(c){return bIc(a,c)})},bIc=function(a,b){_.IK(["drive#teamDrive","drive#drive"],b);var c=new _.coa,d=b.colorRgb;d=d?parseInt(d.substring(1),16):0;_.y(c,2,d);_.y(c,1,b.backgroundImageLink);_.y(c,3,b.trusted);_.y(c,5,b.backgroundImageGridViewLink);_.y(c,6,b.backgroundImageListViewLink);_.y(c,7,b.hidden);_.y(c,9,b.removeSecureLinkUpdateForAllFiles);(d=b.categoryReferences)&&
tnc(c,d.map(function(e){_.IK(["drive#driveCategoryReference"],e);var f=new _.cl;return _.y(f,1,e.category)}));c=_.Whc(_.Uhc(_.Thc(_.Phc(_.Qhc(snc(_.hG((new _.dl).Ob(b.id).setTitle(b.name),"application/vnd.google-apps.folder"),c),b.id),2),b.primaryDomainName),b.organizationDisplayName),b.customerId);b.capabilities&&(d=_.nhc(_.Rlc(b.capabilities),!0),_.WJ(c,d));b.permissionsSummary&&_.Rhc(c,_.gmc(a.H,b.permissionsSummary));b.restrictions&&vnc(c,dIc(b.restrictions));return c},dIc=function(a){var b=new nqc;
b=_.y(b,1,a.copyRequiresWriterPermission);b=_.y(b,2,a.disallowDriveFileStream);b=_.y(b,3,a.domainUsersOnly);return _.y(b,4,a.teamMembersOnly)};
var eIc={DRIVE_FE:2,DRIVE_BE:4,EXPLORER:1,GENERAL:3,PSYNCHO:5,SLACK:6,DRIVE_BE_EX:7,DRIVE_SHARING:9,TEAMKIT:10},Hoc=_.ab(eIc);
var fIc=function(a){_.IK(["drive#setting"],a);var b=new _.Ub;b=_.y(b,2,a.key);b=_.y(b,1,eIc[a.namespace]);return _.BBa(new _.mp,b).Jb(a.value)};
var hIc=function(a){_.IK(["drive#workspaceList"],a);var b=a.items||[];b=axc(new UL,b.map(function(c){return gIc(c)}));return new _.yK(b,MAc(a))},gIc=function(a){_.IK(["drive#workspace"],a);var b=(new _.fG).Ob(a.id).setTitle(a.title);b=_.y(b,3,_.JK(a.createdDate));return _.y(b,4,_.JK(a.modifiedDate)).Kd(iIc[a.state])},jIc=function(a,b,c){var d=c.item||[];return _.Xmc(_.Wmc(new _.PK,d.map(function(e){return lHc(a,b,e)})),c.suggestionSessionId)},lIc=function(a,b,c){var d=c.item||[];return dvc(cvc(new FL,
d.map(function(e){return kIc(a,b,e)})),c.suggestionSessionId)},kIc=function(a,b,c){var d=c.driveWorkspace,e=c.childItem||[];return avc(Zuc($uc(Yuc(new EL,c.predictionId).setTitle(d&&d.title),d&&d.workspaceToken),e.map(function(f){return lHc(a,b,f)})),HM(c))},mIc=function(a){var b=new _.esc;a.kind&&(a=gIc(a),_.J(b,2,a));b.Dc(1);return b},iIc={active:1,archived:2};
var Doc={QUEUED:1,COUNTING:3,BUILDING:2,SUCCEEDED:4,FAILED:5};
var nIc=function(a,b,c,d){_.qmc.call(this,b);this.Og=a;this.ka=c;this.O=d;this.W=null;this.ma=new $Fc(this.V,b);this.H=new aIc(this.mF);this.ta=new jHc(this.mF,this.H)};_.N(nIc,_.qmc);var oIc=function(a){a.W||(a.W=new FHc(a.V,a.ka));return a.W};
nIc.prototype.ha=function(a,b){if(a instanceof _.SI)var c=_.Zlc(_.vmc(a));else{if(a instanceof _.TI)var d=_.smc(this,a,b);else{if(a instanceof _.Bgc)var e=pIc(this,a.request,b);else{if(a instanceof _.UI)var f=_.smc(this,a,b);else{if(a instanceof _.WI){if(!b.json)throw _.LK();var h=ktc((new jtc).Dc(1),bIc(this.H,b.json))}else{if(a instanceof _.VI)var k=_.smc(this,a,b);else{if(a instanceof _.oK)var l=new atc;else{if(a instanceof _.YI)var p=qIc(a,b);else{if(a instanceof _.ZI)var q=bHc(void 0,a.Ch());
else{if(a instanceof _.$I)var r=new gCc;else{if(a instanceof _.aJ)var v=_.Zlc(_.vmc(a));else{if(a instanceof _.bJ)var z=new oM;else{if(a instanceof _.cJ)var A=_.Zlc(_.vmc(a));else{if(a instanceof _.dJ)var D=_.Zlc(_.vmc(a));else{if(a instanceof _.zD){var G=new kBc,H=a.getKey();var L=_.J(G,4,H)}else{if(a instanceof _.eJ)var M=qIc(a,b);else{if(a instanceof _.hJ)var R=_.Zlc(_.vmc(a));else{if(a instanceof _.ygc){if(!b.json)throw _.LK();var ba=new Avc(b.json.exportJob.id)}else{if(a instanceof _.jJ){if(!b.json)throw _.LK();
var ka=b.json,ja=new fBc,ya=aHc(ka);var fa=_.J(ja,2,ya).Dc(1)}else{if(a instanceof _.kJ)var Va=rIc(a,b);else{if(a instanceof _.lJ){if(!b.json)throw _.LK();var Ka=(new oM).Dc(1),ob=_.$lc(this.mF,b.json);var Ya=_.J(Ka,2,ob)}else{if(a instanceof _.uI)a:{if(!b.json)throw _.LK();if(a instanceof _.uI){var yb=a.ud();if(yb&&_.mJ(yb)){var Zb=nHc(this.O,this.Og,b.json);break a}if(yb&&_.nJ(yb)){Zb=pHc(this.O,this.Og,b.json);break a}if(yb&&_.oJ(yb)){Zb=rHc(this.O,this.Og,b.json);break a}}Zb=_.Wlc(this.mF,b.json,
b.headers)}else{if(a instanceof _.pJ){if(!b.json)throw _.LK();var Fc=iHc(b.json)}else{if(a instanceof _.qJ){if(!b.json)throw _.LK();var Zd=b.json;_.IK(["drive#appList"],Zd);for(var Gd=new SL,qd=[],kf=Zd.items||[],ud=0;ud<kf.length;ud++)qd.push(aHc(kf[ud]));var Eb=_.Wj(Gd,2,qd);var oe=_.Qj(Eb,4,Zd.defaultAppIds).Dc(1)}else{if(a instanceof _.zgc){if(!b.json)throw _.LK();var ng=gHc(b.json)}else{if(a instanceof _.GI)var ye=sIc(this,b);else{if(a instanceof _.rJ){if(!b.json)throw _.LK();var ii=new iBc,
Pf=this.mF,pi=b.json,Ig=new hL,jm=_.amc(Pf,pi,"items");var bf=_.Wj(Ig,2,jm);var Oe=_.J(ii,1,bf);var Xg=_.y(Oe,2,MAc(b.json))}else{if(a instanceof _.sJ){if(!b.json)throw _.LK();var qi=this.mF,mj=b.json,km=new Irc;_.IK(["drive#revisionList"],mj);for(var Sn=[],lm=mj.items||[],Ci=0;Ci<lm.length;Ci++){var Jm=_.Xlc(qi,lm[Ci]);Sn.push(Jm)}var Aj=_.Wj(km,2,Sn)}else{if(a instanceof _.YH)var zg=tIc(a,b);else{if(a instanceof _.uJ){if(!b.json)throw _.LK();var Bj=$Hc(b.json)}else{if(a instanceof _.Hgc){if(!b.json)throw _.LK();
var lk=JHc(oIc(this),b.json)}else{if(a instanceof _.cG){if(!b.json)throw _.LK();var Cj=oIc(this),Mi=b.json,mk=new sBc,Rj=IHc(Cj,Mi);var Ni=_.J(mk,2,Rj).Dc(1)}else{if(a instanceof _.vJ){if(!b.json)throw _.LK();var aj=b.json;_.IK(["drive#remainingCount"],aj);var Lh=new tBc,Rk=aj.nextPageToken;null!=Rk&&_.y(Lh,2,Number(Rk));_.y(Lh,1,Number(aj.remainingCount));var Dj=Lh}else{if(a instanceof _.eG){if(!b.json)throw _.LK();var Ej=(new _.iB).Nw([bIc(this.H,b.json)])}else{if(a instanceof _.FJ){if(!b.json)throw _.LK();
var Sj=(new _.iB).Nw(cIc(this.H,b.json)),Tj=_.ykc(new _.CK,Sj);var Km=_.y(Tj,3,MAc(b.json))}else{if(a instanceof _.zJ)var nk=rIc(a,b);else{if(a instanceof _.AJ)var ok=pIc(this,a,b);else{if(a instanceof _.EI)var xf=_.smc(this,a,b);else{if(a instanceof _.BJ)var Fj=_.smc(this,a,b);else{if(a instanceof _.CJ)var Lm=uIc(this,b);else{if(a instanceof _.CD){if(!b.json)throw _.LK();var Mm=fIc(b.json),pn=new kBc;var Oi=_.J(pn,3,Mm);var pk=Mm.getKey();var yc=_.J(Oi,4,pk)}else{if(a instanceof _.DJ)var qk=qIc(a,
b);else{if(a instanceof _.oI){if(!b.json)throw _.LK();var gh=dGc(this.ma,b.json)}else{if(a instanceof _.gG){if(!b.json)throw _.LK();var Tg=gIc(b.json),Ve=new _.tK;Ve.JT().set(Tg.getId(),Tg);var Nm=Ve}else{if(a instanceof _.Agc){if(!b.json)throw _.LK();for(var Om=b.json,qh=new vvc,bj=_.m(Object.entries(Om)),pl=bj.next();!pl.done;pl=bj.next()){var Mh=_.m(pl.value),qn=Mh.next().value,Tn=Mh.next().value;switch(qn){case "nextPageToken":_.jk(qh,2,Tn);break;case "activities":var rn=IGc(Tn);_.Wj(qh,1,rn)}}var Sk=
qh}else{if(a instanceof _.Cgc)var Tk=uIc(this,b);else{if("undefined"!=typeof _.Ggc&&a instanceof _.Ggc)var Ho=sIc(this,b);else{if(a instanceof _.Dgc){if(!b.json)throw _.LK();var yq=new zvc}else{if(a instanceof _.Egc){if(!b.json)throw _.LK();var Yo=Goc(b)}else{if(a instanceof _.yD){if(!b.json)throw _.LK();var Nq=b.json,fj=new _.Sz;_.IK(["drive#settingList"],Nq);for(var ym=[],Op=Nq.items||[],Pp=0;Pp<Op.length;Pp++){var Kr=fIc(Op[Pp]);Kr&&ym.push(Kr)}var dx=_.ikb(fj,ym)}else{if(a instanceof _.Uz){if(!b.json)throw _.LK();
var Oq=lIc(this.O,this.Og,b.json).Dc(1)}else{if(a instanceof _.dG){if(!b.json)throw _.LK();var Lr=jIc(this.O,this.Og,b.json)}else{if(a instanceof _.Mgc){if(!b.json)throw _.LK();var VA=b.json;_.IK(["drive#teamDrive"],VA);var tD=VA.recursiveFolderCount,WA=VA.recursiveFileCount,XA=new YAc;var Ky=_.y(XA,1,WA);var Pq=_.y(Ky,2,tD)}else{if(a instanceof _.Lgc)var Mr=vIc(b);else{if(a instanceof _.Ogc){if(!b.json)throw _.LK();var ex=hIc(b.json)}else ex=a instanceof _.XK?uIc(this,b):null;Mr=ex}Pq=Mr}Lr=Pq}Oq=
Lr}dx=Oq}Yo=dx}yq=Yo}Ho=yq}Tk=Ho}Sk=Tk}Nm=Sk}gh=Nm}qk=gh}yc=qk}Lm=yc}Fj=Lm}xf=Fj}ok=xf}nk=ok}Km=nk}Ej=Km}Dj=Ej}Ni=Dj}lk=Ni}Bj=lk}zg=Bj}Aj=zg}Xg=Aj}ye=Xg}ng=ye}oe=ng}Fc=oe}Zb=Fc}Ya=Zb}Va=Ya}fa=Va}ba=fa}R=ba}M=R}L=M}D=L}A=D}z=A}v=z}r=v}q=r}p=q}l=p}k=l}h=k}f=h}e=f}d=e}c=d}return c};
var qIc=function(a,b){if(!b.json){if(a instanceof _.eJ)return mIc({});throw _.LK();}return mIc(b.json)},uIc=function(a,b){if(!b.json)throw _.LK();a=bIc(a.H,b.json);return(new _.HJ).Dc(1).setItem(a)},pIc=function(a,b,c){if(!c.json)throw _.LK();return HHc(oIc(a),b,c.json)},rIc=function(a,b){if(!b.json)throw _.LK();return bHc(b.json,a.Ch())},sIc=function(a,b){if(!b.json)throw _.LK();a=a.ta;var c=b.json;_.IK(["drive#about","drive#changeList"],c);b=new Rwc;var d=c.nextPageToken;null!=d&&_.y(b,2,Number(d));
d=c.largestChangeId;null!=d&&_.y(b,3,Number(d));if("drive#changeList"==c.kind){_.IK(["drive#changeList"],c);d=[];c=c.items||[];for(var e=0;e<c.length;e++){var f=a,h=c[e];_.IK(["drive#change"],h);var k=new _.xI;k=_.y(k,1,Number(h.id));h.teamDriveId?(_.Rfc(k,h.teamDriveId),_.yI(k,h.teamDriveId)):_.yI(k,h.fileId);h.file?k.setItem(_.Tlc(f.H,h.file)):h.teamDrive&&k.setItem(bIc(f.O,h.teamDrive));h.deleted&&!k.getItem()&&_.II(k);d.push(k)}_.Wj(b,4,d)}return b},vIc=function(a){var b,c;if(!a.json)throw _.LK();
a=a.json;var d=a.result&&a.result.status;d=d&&wIc[d];var e=null!==(c=a.result&&(null===(b=a.result.sourceResults)||void 0===b?void 0:b.map(function(f){var h,k;return KBc(JBc(IBc(new _.HBc,f.sourceId),f.fileCount),null!==(k=null===(h=f.unmovableFileReasons)||void 0===h?void 0:h.map(function(l){var p=new _.FBc;p=_.y(p,1,l.unmovableReason);return _.y(p,2,l.count)}))&&void 0!==k?k:[])})))&&void 0!==c?c:[];return EBc(DBc(CBc(BBc(new qM,MAc(a)),a.processedFileCount).Dc(d),a.result&&a.result.validationToken),
e)},tIc=function(a,b){var c=new iCc;if(_.Td(a,6).length){var d=[];Hnc(_.Td(a,6),b.headers).forEach(function(e,f){var h=new _.edc;e=_.y(h,1,f).Jb(e);d.push(e)});_.Wj(c,1,d)}jCc(c,b.json?JSON.stringify(b.json):b.text);return c},wIc={movable:1,deadlineExceeded:2,exceedsSourceLimit:3,exceedsDestinationDepthLimit:4,exceedsDestinationSizeLimit:5,tooManyUnmovableFiles:6,tooHighProportionUnmovableFiles:7};
var yIc=function(a){var b=new _.So;if(a=a.getState()){var c=[];c.push("state");c.push("=");c.push(xIc[a]);_.lK(b,c.join(" "))}return b.toString()},zIc={},xIc=(zIc[1]="active",zIc[2]="archived",zIc);
var AIc=function(a,b,c,d){_.MK.call(this,b,c,a.zLa,d);this.ma=a;this.ha=new dwc(_.jK(c),b)};_.N(AIc,_.MK);
AIc.prototype.V=function(a,b,c){var d=this;try{return _.MK.prototype.V.call(this,a,b,c)}catch(M){}var e=0,f={},h="GET",k={},l=!1,p=!1;if(a instanceof _.TI){h="POST";var q="admin/files/"+a.getId()+"/migrateToTeamDrive";_.S(a,3)&&(k.useDomainAdminAccess=!0);k.fields="kind,id,parentId,teamDriveId";k.fileId=a.getId();_.Q(a,4)&&(k.preFlightValidationToken=_.B(a,4));var r=NAc(a);f["content-type"]="application/json";l=p=!0}else if(a instanceof _.UI){h="POST";q="files/"+a.Cc()+"/authorize";k.appId=a.Ch();
_.S(a,3)&&(k.propagate=!0);var v=a.xe();p=!0;_.iK(k);_.QJ(this.H,[],[a.Cc()],this.O,f)}else if(a instanceof _.XK)q="drives/"+a.getId(),h="PUT",r={},r=(r.removeSecureLinkUpdateForAllFiles=_.T(a,2,!1),r),f["content-type"]="application/json",k.fields=KL(this.H,[],!0),v=a.xe(),p=!0;else if(a instanceof _.Cgc)h="POST",q="teamdrives/"+a.requestId,k.fields=KL(this.H),r={},r=(r.name=a.request.getTitle(),r),f["content-type"]="application/json",v=a.request.xe(),p=!0;else if(a instanceof _.YI)h="POST",q="workspaces",
k.fields="kind,id,title,createdDate,modifiedDate,state",r=PAc(a),f["content-type"]="application/json",v=a.xe(),p=!0;else if(a instanceof _.VI)h="POST",q="files/"+a.getId()+"/copy",k.fields=_.pgc({fields:this.Mg(c),jr:_.NI(_.nI(this.H)),BG:_.tI(this.H)}),k.convert=_.T(a,4,!1),r=OAc(a),f["content-type"]="application/json",v=a.xe(),a=_.Td(a,3).concat([a.getId()]),_.QJ(this.H,[],a,this.O,f),p=!0,_.iK(k),_.Hmc(this.H,k);else if(a instanceof _.ZI)h="DELETE",q="apps/"+a.Ch(),k.appId=a.Ch(),k.deleteAppData=
!!_.S(a,2),v=a.xe(),p=!0;else if(a instanceof _.$I)h="DELETE",q="backups/"+a.getId(),e=9;else if(a instanceof _.aJ)h="DELETE",q="files/"+a.getId(),v=a.xe(),p=!0,_.iK(k),_.Hmc(this.H,k),_.QJ(this.H,[],[a.getId()],this.O,f);else if(a instanceof _.bJ)h="DELETE",q="files/"+a.Cc()+"/permissions/"+_.B(a,2),v=a.xe(),p=!0,_.iK(k);else if(a instanceof _.cJ)h="DELETE",q="files/"+a.Cc()+"/revisions/"+_.B(a,2),v=a.xe(),p=!0,_.QJ(this.H,[],[a.Cc()],this.O,f);else if(a instanceof _.dJ)h="DELETE",q="teamdrives/"+
a.getId(),v=a.xe(),p=!0;else if(a instanceof _.zD)h="DELETE",v=a.getKey(),q="settings/"+_.B(v,2),_.np(v)&&(k.namespace=Hoc[_.np(v)]),v=a.xe(),p=!0;else if(a instanceof _.eJ)h="DELETE",q="workspaces/"+a.getId(),v=a.xe(),p=!0;else if(a instanceof _.hJ)h="DELETE",q="files/trash",v=a.ud().xe(),p=!0,_.Hmc(this.H,k);else if(a instanceof _.jJ)q="apps/"+a.Ch(),v=a.xe(),p=!0,k.fields="kind,id,useByDefault,name,openUrlTemplate,primaryMimeTypes,secondaryMimeTypes,createUrl,createInFolderTemplate,objectType,supportsCreate,supportsImport,supportsMultiOpen,supportsOfflineCreate,installed,authorized,productUrl,primaryFileExtensions,secondaryFileExtensions,shortDescription,longDescription,productId,removable,icons(iconUrl,size,category),type,chromeExtensionIds,requiresAuthorizationBeforeOpenWith,hasDriveWideScope,driveBranded,driveSource,supportsMobileBrowser,supportsTeamDrives,hasGsmListing";
else if(a instanceof _.pJ)q="backups/"+a.getId()+"/items",e=9,k.languageCode=cL(_.nI(this.H));else if(a instanceof _.kJ)h="POST",q="apps",k.appId=a.Ch(),v=a.xe(),p=!0;else if(a instanceof _.lJ)h="POST",q="files/"+a.Cc()+"/permissions",k.fields=_.tI(this.H)?"kind,type,id,userId,nameIfNotUser,emailAddress,withLink,role,additionalRoles,deleted,view,audienceId,customerId":"kind,type,id,userId,name,emailAddress,withLink,photoLink,role,additionalRoles,deleted,view,audienceId,customerId",k.emailMessage=
_.B(a,5)||"",k.sendNotificationEmail=!_.T(a,6,!1),r={},1==a.wf()?r.role="owner":3==a.wf()?r.role="writer":4==a.wf()?(r.role="reader",r.additionalRoles=["commenter"]):2==a.wf()&&(r.role="reader"),1==a.getType()?r.type="user":2==a.getType()?r.type="group":3==a.getType()?r.type="domain":4==a.getType()?r.type="anyone":5==a.getType()&&(r.type="audience"),a.Ya()&&(r.value=a.Ya()),r.withLink=!_.T(a,8,!1),f["content-type"]="application/json",v=a.xe(),p=!0,_.iK(k);else if(a instanceof _.ygc)e=8,h="POST",q=
"/v1/exports",f["content-type"]="application/json",r=_.Td(a,1).map(function(M){if(_.T(d.H,89,!1)){var R=_.jkc(d.O,M);if(null!==R)return{id:M,resource_key:{resource_key:R}}}return{id:M}}),r={archiveFormat:null,archivePrefix:_.B(a,2),conversions:null,items:r,locale:null};else if(a instanceof _.uI||a instanceof _.oK||a instanceof _.Uz||a instanceof _.dG)if(b=a instanceof _.uI?a.ud():a,_.JJ(b)){e=10;h="POST";q="/v1/items";f["content-type"]="application/json";r={};var z=9==_.cK(this.H)?"WEB_MOBILE":"WEB_DESKTOP",
A={};A.applicationType=lwc(this.H);A.platformType=z;A.languageCode=cL(_.nI(this.H));A.timeZone=(new _.Ht).d$();A.requestType="LIVE_REQUEST";a instanceof _.uI&&(z=a.getOptions())&&_.T(z,10,!1)&&(A.requestType="BACKGROUND_REQUEST");b instanceof _.gf?_.mJ(b)?(iwc(this.ha)?(A.scenarioType="ONE_PICK",this.Fd.O(106026)):A.scenarioType="QUICK_ACCESS",2==_.aK(b)&&(iwc(this.ha)||(A.scenarioType="QUICK_ACCESS_FOR_SHARED_DRIVE"),r.contextFeature={type:"DRIVE_TEAM_DRIVE_ROOT_ID",stringValue:_.Td(b,33)[0]}),_.Gl(b).length&&
(r.itemType=kwc(b))):_.nJ(b)?A.scenarioType="DRIVE_PEOPLE_WITH_ACTIONS":_.oJ(b)&&(A.scenarioType="DRIVE_PRIORITY"):b instanceof _.oK?(q="/v1/userfeedback",r.userFeedback=_.bk(b,_.Ysc,1).map(function(M){var R=_.C(M,_.tL,2),ba={},ka={};ka.feedbackType=ltc[R.getType()];ba.item=ka;ba.clientInfo=A;switch(M.getFeature()){case 1:A.scenarioType="DRIVE_PRIORITY";ka.itemId=R.Cc();break;case 3:A.scenarioType="QUICK_ACCESS";ka.itemId=R.Cc();break;case 2:A.scenarioType="DRIVE_WORKSPACES",ka.itemId=R.Cc(),ka.childItem=
_.bk(R,_.tL,3).map(function(ja){var ya={};ya.itemId=ja.Cc();return ya})}return ba})):b instanceof _.Uz?A.scenarioType="DRIVE_WORKSPACES":b instanceof _.dG?(A.scenarioType="ITEMS_FOR_DRIVE_WORKSPACE",r.contextFeature=[{type:"GENERIC_TITLE",stringValue:b.getTitle()||""},{type:"DRIVE_WORKSPACE_ID",stringValue:b.Hp()||""},{type:"DRIVE_EMPTY_WORKSPACE",boolValue:_.S(b,5)}]):_.Kmc(a);b instanceof _.oK||(r.maxSuggestions=b.Li(),r.clientInfo=A)}else{v=b.xe();p=!0;q="files";k.q=_.mjc(b);z=[];var D;(D=_.DI(this.H))&&
_.T(D,4,!1)?(D=_.wa(this.Mg(c),this.Mg(c,b.O())),_.Ea(D)):D=_.xa(this.Mg(c));var G=void 0,H=!1;0<_.bk(b,_.Bl,5).length&&(G=_.B(this.H.$f(),50),H=!0);k.fields=knc({fields:D,jr:_.NI(_.nI(this.H)),c7:G||void 0,BG:_.tI(this.H),Ezb:H});k.appDataFilter="NO_APP_DATA";0<_.bk(b,_.$J,25).length&&(k.sources=_.ejc(b));0<b.oB().length&&(k.spaces=_.fjc(b));a.Xn()&&(k.pageToken=a.Xn());(a=a.getOptions())&&_.gk(a,1,1E3)&&(k.maxResults=_.gk(a,1,1E3));_.T(b,36,!1)&&(k.includeUnsubscribed=!0);_.B(b,43)&&(k.rawUserQuery=
_.B(b,43));_.iK(k);k.includeItemsFromAllDrives=_.T(b,66,!0);0<_.Td(b,33).length&&2==_.aK(b)&&(a=_.Td(b,33)[0],k.teamDriveId=a,z.push(a));k.corpora=_.Mic[_.aK(b)];_.S(b,18)&&(_.Wa(k,"corpora"),k.corpus="DOMAIN");a=_.Hl(b);D=_.bk(b,_.vl,35);G=_.bk(b,_.vl,38);z=z.concat(a.filter(function(M){return!_.T(M,2,!1)}).map(function(M){return M.Ya()})).concat(D.map(function(M){return M.Ya()})).concat(G.map(function(M){return M.Ya()}));_.QJ(this.H,_.bk(b,_.Dl,63),z,this.O,f);Jnc(k,b.zc());_.Imc(this.H,k);_.Jmc(this.H,
k);_.C(b,_.xea,64)&&(a=oqc(_.C(b,_.xea,64)),a=_.qb(a,4),k.searchSessionData=a)}else if(a instanceof _.qJ){q="apps";switch(a.getType()){case 1:k.fields=BIc;break;case 2:k.fields=CIc;break;case 4:k.fields=DIc;break;case 3:e=5,q="apps",k.fields="items(icons[category='application'],icons(size,iconUrl),id,name,openUrlTemplate,primaryFileExtensions,primaryMimeTypes,productId,rankingInfo,secondaryFileExtensions,secondaryMimeTypes,kind),kind",k.appQueryScope="all_webstore",b.lu=!0}k.languageCode=cL(_.nI(this.H));
0<_.Td(a,3).length&&(k.appFilterExtensions=_.Td(a,3).join(","));0<_.Td(a,4).length&&(k.appFilterMimeTypes=_.Td(a,4).join(","));v=a.xe();p=!0}else if(a instanceof _.zgc)q="backups",e=9,k.languageCode=cL(_.nI(this.H));else if(a instanceof _.GI)q="changes",k.includeDeleted=_.T(a,3,!0),k.includeSubscribed=_.T(a,4,!0),k.maxResults=a.RQ(),k.startChangeId=_.B(a,1),k.fields=jnc({fields:this.Mg(c),c7:KL(this.H,_.Td(a,5)),jr:_.NI(_.nI(this.H)),BG:_.tI(this.H)}),k.appDataFilter="NO_APP_DATA",a.Ac()||(k.filters=
"DRIVE_DATASERVICE"),v=_.Td(this.H.$f(),31),v.length&&(k.spaces=_.ef(v,function(M){return _.hdc[M]}).join(",")),_.iK(k),k.includeCorpusRemovals=!0,k.includeItemsFromAllDrives=!0,a.Ac()&&(k.teamDriveId=a.Ac()),v=a.xe(),p=!0;else if(a instanceof _.rJ)b=a.ud(),q="files/"+b.getId()+"/permissions",k.fields=_.tI(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.Xn()&&(k.pageToken=a.Xn()),_.B(a,1)&&(k.maxResults=_.B(a,1)),v=b.xe(),p=!0,_.iK(k),_.Imc(this.H,k),_.Jmc(this.H,k),_.QJ(this.H,[],[b.getId()],this.O,f);else if(a instanceof _.sJ)k.fields=_.tI(this.H)?"kind,items(kind,id,mimeType,modifiedDate,pinned,downloadUrl,originalFilename,fileSize,lastModifyingUser(kind,id,permissionId,emailAddressFromAccount,domain))":"kind,items(kind,id,mimeType,modifiedDate,pinned,downloadUrl,originalFilename,fileSize,lastModifyingUser(kind,displayName,picture,permissionId,emailAddress))",
k.maxResults=a.Li(),q="files/"+a.Cc()+"/revisions",v=a.xe(),p=!0,_.QJ(this.H,[],[a.Cc()],this.O,f);else if(a instanceof _.eG)q="teamdrives/"+a.hn()[0],k.fields=KL(this.H,a.O()),v=a.xe(),p=!0;else if(a instanceof _.Lgc)h="POST",q="admin/files/migrateToTeamDrivePreFlight",_.S(a.request,3)&&(k.useDomainAdminAccess=!0),r=QAc(a),f["content-type"]="application/json",p=l=!0,_.QJ(this.H,[],_.Td(a.request,1),this.O,f);else if(a instanceof _.FJ)v=a.ud(),q="teamdrives",k.fields=Evc(this.H,v.O()),k.q=Vvc(v),
a.Xn()&&(k.pageToken=a.Xn()),(v=(v=a.getOptions())&&_.gk(v,1,1E3))&&(k.maxResults=v),v=a.ud().xe(),p=!0;else if(a instanceof _.Mgc)q="teamdrives/"+a.Ac(),k.fields="kind,id,recursiveFileCount,recursiveFolderCount",p=l=!0;else if(a instanceof _.zJ)h="PUT",q="apps/"+a.Ch(),k.appId=a.Ch(),r={},r.useByDefault=_.S(a,2),_.S(a,3)&&(r.hasAppData=!1),f["content-type"]="application/json",v=a.xe(),p=!0;else if(a instanceof _.EI)h="PUT",q="files/"+a.getId(),k.fields=_.pgc({fields:this.Mg(c),jr:_.NI(_.nI(this.H)),
BG:_.tI(this.H)}),k.modifiedDateBehavior="DRIVE_UI",k.updateViewedDate=!!_.S(a,15),k.fileId=a.getId(),_.Td(a,9).length&&(k.addParents=_.Td(a,9).join(",")),_.Td(a,10).length&&(k.removeParents=_.Td(a,10).join(",")),_.Td(a,31).length&&(k.addWorkspaces=_.Td(a,31).join(",")),_.Td(a,32).length&&(k.removeWorkspaces=_.Td(a,32).join(",")),null!=_.S(a,24)&&(k.confirmed=_.S(a,24)),k.languageCode=cL(_.nI(this.H)),r=RAc(a),f["content-type"]="application/json",v=a.xe(),p=!0,_.iK(k),this.W(a.getId(),k),_.S(a,36)?
k.bypassMultiparentingCheck=!0:_.Hmc(this.H,k),b=_.Td(a,9).concat(_.Td(a,10)),b.push(a.getId()),_.QJ(this.H,_.bk(a,_.Dl,38),b,this.O,f);else if(a instanceof _.BJ)h="PUT",q="files/"+a.Cc()+"/revisions/"+_.B(a,2),r=SAc(a),f["content-type"]="application/json",v=a.xe(),_.QJ(this.H,[],[a.Cc()],this.O,f);else if(a instanceof _.CJ)q="teamdrives/"+a.getId(),null!=_.S(a,15)?(h="POST",q+="/"+(_.S(a,15)?"hide":"unhide")):(h="PUT",r=TAc(a),f["content-type"]="application/json"),k.fields=KL(this.H),v=a.xe(),p=
!0;else if(a instanceof _.DJ)h="PUT",q="workspaces/"+a.getId(),k.fields="kind,id,title,createdDate,modifiedDate,state",r=UAc(a),f["content-type"]="application/json",v=a.xe(),p=!0;else if(a instanceof _.CD)h="PUT",r=_.C(a,_.mp,1),v=r.getKey(),q="settings/"+_.B(v,2),(v=_.np(v))&&(k.namespace=Hoc[v]),r=Ioc(r),f["content-type"]="application/json",v=a.xe(),p=!0;else if(a instanceof _.oI)q="about",k.fields=_.tI(this.H)?"kind,user(kind,id,permissionId,emailAddressFromAccount,domain),quotaBytesTotal,quotaBytesUsed,quotaBytesUsedAggregate,quotaBytesUsedInTrash,quotaBytesByService,quotaType,rootFolderId,domainSharingPolicy,largestChangeId,importFormats,gsuiteSubscriptionInfo(trialMillisRemaining,trialEndTime,status),teamDashboardCapabilities(canAdministerTeam,canManageInvites),graceQuotaInfo,quotaStatus":
"kind,user,quotaBytesTotal,quotaBytesUsed,quotaBytesUsedAggregate,quotaBytesUsedInTrash,quotaBytesByService,quotaType,rootFolderId,domainSharingPolicy,largestChangeId,importFormats,gsuiteSubscriptionInfo(trialMillisRemaining,trialEndTime,status),teamDashboardCapabilities(canAdministerTeam,canManageInvites),graceQuotaInfo,quotaStatus",k.fields=Loc(k.fields,this.H),k.fields=Moc(k.fields,this.H),v=a.xe(),p=!0;else if(a instanceof _.YH){e=11;h=a.Mz();q=a.getUrl();var L=_.B(a,5)||"";_.bk(a,_.edc,2).forEach(function(M){f[M.getKey()]=
M.Ya()});_.bk(a,_.edc,4).forEach(function(M){k[M.getKey()]=M.Ya()});_.S(a,7)&&(b.VIb=!0);_.S(a,8)&&(b.lu=!0);_.S(a,9)&&(b.QDa=!0)}else a instanceof _.Bgc?(b=a.request.Cc(),q="files/"+b+"/listCategoryMetadata",v=a.request.xe(),a.pageToken&&(k.pageToken=a.pageToken),a.request.Li()&&(k.maxResults=a.request.Li()),k.fields="kind,nextPageToken,categoryMetadata",_.QJ(this.H,[],[b],this.O,f)):a instanceof _.AJ?(f["content-type"]="application/json",h="POST",b=a.Cc(),q="files/"+b+"/updateCategoryMetadata",
v=a.xe(),r={categoryMetadata:a.DV().map(function(M){var R=_.bk(M,_.aG,2).map(function(ka){return{id:ka.getId(),userId:ka.kv(),setBooleanValue:_.S(ka,3),setTextValue:_.B(ka,4),setTextValues:_.Td(ka,6),addTextValues:_.Td(ka,5),setLongTextValue:_.B(ka,7),setSelectionValue:_.B(ka,8),setSelectionValues:_.Td(ka,10),addSelectionValues:_.Td(ka,9),setIntegerValue:_.B(ka,11),setIntegerValues:_.Td(ka,13),addIntegerValues:_.Td(ka,12),setUserValue:_.B(ka,14),setUserValues:_.Td(ka,16),addUserValues:_.Td(ka,15),
setDateStringValue:_.B(ka,17)}}),ba={categoryName:M.an()};R.length?ba.categoryAttributeValueDeltas=R:_.Td(M,4).length?ba.revertAttributeIds=_.Td(M,4):_.S(M,3)&&(ba.removeCategory=_.S(M,3));return ba})},_.QJ(this.H,[],[b],this.O,f)):a instanceof _.uJ?(e=13,q=_.NI(_.nI(this.H))?"/v2/people/public":"/v2/people",k.person_id=a.hn(),k["request_mask.include_container"]=["PROFILE","DOMAIN_PROFILE"],k["request_mask.include_field.paths"]=["person.metadata.best_display_name","person.photo","person.email"],k["merged_person_source_options.included_profile_states"]=
["DASHER_ADMIN_DISABLED"],_.NI(_.nI(this.H))||(k["core_id_params.enable_private_names"]=!0)):a instanceof _.Hgc?(e=12,q="/v1/categories/-/published",f["content-type"]="application/json",a.pageToken&&(k.pageToken=a.pageToken),a.request.Li()&&(k.maxResults=a.request.Li()),a.request.getCustomer()&&(k.customer=a.request.getCustomer()),k.$outputDefaults=!0,k.languageCode=cL(_.nI(this.H))):a instanceof _.cG?(e=12,q="/v1/"+a.getName(),f["content-type"]="application/json",k.$outputDefaults=!0,k.languageCode=
cL(_.nI(this.H))):a instanceof _.WI?(f["content-type"]="application/json",h="POST",q="drives/"+a.Ac()+"/changeCategoryReferences",v=a.xe(),p=!0,k.fields=KL(this.H,[157],!0),r={},b=_.bk(a,_.cl,2),b.length&&(r.addCategoryReferences=b.map(function(M){return{category:M.an()}})),a=_.bk(a,_.cl,3),a.length&&(r.removeCategoryReferences=a.map(function(M){return M.an()}))):a instanceof _.gG?(q="workspaces/"+a.hn()[0],k.fields="kind,id,title,createdDate,modifiedDate,state",v=a.xe(),p=!0):a instanceof _.Agc?
(e=7,h="POST",q="/v2/activity:query",f["content-type"]="application/json",r={},r.pageSize=a.pageSize,a.pageToken&&(r.pageToken=a.pageToken),b="items/"+a.request.getId(),_.T(a.request,2,!1)?r.ancestorName=b:r.itemName=b,r.consolidationStrategy={legacy:{}},(a=_.DI(this.H))&&_.T(a,13,!1)&&(r.filter="actor.type_case:(USER IMPERSONATION ADMINISTRATOR SYSTEM) actor.system.type:MULTIPARENTING_MIGRATION")):a instanceof _.Dgc?(e=8,h="POST",q="/v1/exports/"+a.H+":cancel"):a instanceof _.Egc?(e=8,q="/v1/exports/"+
a.H):"undefined"!=typeof _.Ggc&&a instanceof _.Ggc?(q="changes",k.fields="kind,largestChangeId",_.iK(k),k.includeItemsFromAllDrives=!0,a.teamDriveId&&(k.teamDriveId=a.teamDriveId),v=a.H,p=!0):a instanceof _.yD?(q="settings",v=_.Td(a,3),k.namespace=Joc(v),v=a.xe(),p=!0):a instanceof _.Ogc?(q="workspaces",k.fields="kind,nextPageToken,items(kind,id,title,createdDate,modifiedDate,state)",a.pageToken&&(k.pageToken=a.pageToken),a.request.Li()&&(k.maxResults=a.request.Li()),k.q=yIc(a.request),(v=a.request.ww())&&
1==v.getType()&&(k.orderBy="title"),v=a.request.xe(),p=!0):a instanceof _.vJ?(q="changes/getRemainingCount",k.pageToken=_.B(a,2),_.Q(a,3)&&(k.supportsTeamDrives=!0,k.includeItemsFromAllDrives=!0,k.teamDriveId=a.Ac()),v=a.xe()):a instanceof _.SI?(f["content-type"]="application/json",h="POST",q="files/"+a.Cc()+"/sendAccessRequest",r={},l=!0):_.Kmc(a);p&&_.Lmc(c,k);0!=e||l||v&&_.B(v,1)||_.zK(this.Fd,74438989);return _.Mmc(this,e,q,k,f,h,v,r,L)};
AIc.prototype.W=function(a,b){a=this.ma.um.H(a);b.expectedParentIds=a?a.kk().join(","):[]};
var BIc=Koc("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"),CIc=
Koc("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"),
DIc=Koc("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 EIc=function(a,b,c,d,e,f,h,k,l,p,q,r,v,z,A,D,G,H,L,M,R,ba,ka){this.eoa=_.Vh();this.hfa=new _.Zjc;var ja=new _.Akc(this.bK.bind(this),function(){return R("w8KrJc")}),ya=new YFc(b.um),fa=new PFc(ja);c=new HFc(b,f,new CFc(d,e,c),h,this.eoa.promise,k,l,c,R);d=new XFc(b,p,q,r,v,d,e,D,k);this.O=new _.bkc(a,z);z=new AIc(b,a,k,ba);this.Wra=new nIc(k,a,A,D);this.H=LAc(a,new _.Olc(this.O,this.hfa,z,this.Wra,G,H,L),H,A,M,b.um,this.hfa,this.eoa.promise,L||void 0);this.eoa.resolve(ka?ka:new _.mlc(new ZFc,
ya,fa,this.H,ja,c,d,a))};EIc.prototype.bK=function(){return _.Pa(this.H,function(a){return a.bK()})};var KCc=function(a){var b=new Map,c=Date.now();_.Ma(a.H,function(d,e){d=Lrc(d);d.length&&b.set(e,d.map(function(f){return f?c-f:null}))});return b};
var FIc=function(a,b){var c=this;this.context=a;this.Og=b;this.ha=null;this.yR=0;this.ka=this.active=!1;this.H=this.ta=null;this.V={};this.Fa=this.Ba=!1;this.Fd=a.Rk();this.W=_.Vh();this.O=a.Nc;this.Ha=_.DI(this.O)||new _.Afc;b=_.dL(this.O);this.va=new _.hkc(_.gk(b,2,37500),_.gk(b,3,6E5));this.ma=a.tQ;_.Ma(xwc,function(d){c.V[d]=[]});WL(a.Mj,["hVFf7","T8oKm","BNEDtc"],function(){c.log("Initializing: loaded from local dump");c.initialize()});WL(a.Mj,["hVFf7","T8oKm","mrK8ic"],function(){c.log("Initializing: loaded from sdk backfill");
c.initialize()});WL(a.Mj,["mrK8ic","BNEDtc"],function(){c.log("Updating: sdk backfill complete");c.fL().Gg(_.Lf)})};_.g=FIc.prototype;_.g.initialize=function(){var a=this;this.Ba||(this.Ba=!0,AM(this.context).addCallback(function(b){a.ma.initialize().hg(function(){a.ha=b;a.setActive(!0)},function(c){c&&qrc(a.context.Sf(),"drive.ds.sync.storage.LiveDumpUpdater","Error initializing dump storage",_.PI(c));a.log("Error initializing dump storage");a.fS()})}))};
_.g.isInitialized=function(){return!!this.ha||this.ka};_.g.Uma=function(a){this.active&&(this.yR+=a,this.yR>_.gk(_.dL(this.O),1,500)&&this.update(3))};_.g.setActive=function(a){if(this.isInitialized()&&this.active!==a){var b=this.context;a&&(b.aR().bK()||0<b.vf.yI.yna||b.Hj().We()||b.mk().We())||((this.active=a)?(this.W.resolve(),this.H||this.fL().Gg(_.Lf)):(this.W=_.Vh(),_.n.clearTimeout(this.ta)))}};_.g.fS=function(){this.ka=!0};_.g.EVa=function(){return this.H?this.H.promise:_.Sh()};
_.g.fL=function(){var a=this;if(this.H)return this.H.promise;this.H=_.Vh();_.Wh(this.H.promise,function(){a.H=null});var b=this.Fd.H(106021)||void 0;this.W.promise.then(function(){return FAc(a.context.sD)}).then(function(c){var d=!c;return a.ka?d:_.Uh([GIc(a,3,d,void 0,void 0,b),GIc(a,0,d,void 0,!0,b),GIc(a,1,d,void 0,!0,b),GIc(a,5,d,void 0,!0,b),GIc(a,6,d,void 0,!0,b)]).then(function(){return d},function(e){e=new _.qc("Failed to update dump",void 0,_.PI(e));return _.Th(e)})},function(){return _.Th(Error("sg"))}).then(function(c){a.H.resolve(c);
b&&(c=xrc(b),_.y(c,2,!0),b.Yj())},function(c){a.H.reject(c);b&&(c=xrc(b),_.y(c,2,!1),b.Yj())});return this.H.promise};_.g.update=function(a,b){var c=this,d=new _.Xh,e=this.Fd.H(106021)||void 0;e&&(grc(xrc(e),_.qK(_.ufc,a)),d.then(function(){var f=xrc(e);_.y(f,2,!0);e.Yj()},function(){var f=xrc(e);_.y(f,2,!1);e.Yj()}));this.W.promise.then(function(){return FAc(c.context.sD)}).then(function(f){f=!f;c.ka?d.callback():_.$h(GIc(c,a,f,b,void 0,e),d)});return d};
var GIc=function(a,b,c,d,e,f){var h=_.ia(a.V[b]);if(h){if(h.encrypt===c&&1<a.V[b].length)return h.og.Wm();var k=new _.Xh;_.Zh(h.og,function(){_.$h(a.Ju(b,c,d,e,f),k)})}else k=a.Ju(b,c,d,e,f);var l={encrypt:c,og:k};a.V[b].push(l);_.Zh(k,function(){_.va(a.V[b],function(p){return l===p})});k.Rg(function(p){a.ma.O.Nf()?a.fS():p instanceof _.qc&&(p=p.O||null,p instanceof _.jI&&"InvalidStateError"==p.getName()&&p.message&&-1<p.message.indexOf("The database connection is closing.")&&a.fS());return null});
return k};
FIc.prototype.Ju=function(a,b,c,d,e){var f=this,h=new _.Xh;this.W.promise.then(function(){if(3===a)_.$h(HIc(f,c||!1,b,e),h);else{switch(a){case 0:var k=UCc(f.context.TP);break;case 1:k=f.context.IZ.tr();break;case 5:k=IIc(f.context.bE);break;case 6:k=oyc(f.context.vf.tq);break;default:h.Jd("Invalid data type to write to storage.");return}if(k){var l=_.bk(_.dL(f.O),bL,11)[0].getKey();!l&&b?(f.log("Skipping dump update, encrypted and no key"),h.callback()):Czc(f.ma,b?l:null,[k],e).then(function(){return void h.callback()},function(p){return void h.Jd(p)})}else d?
(f.log("Skipping dump update: "+a),h.callback()):h.Jd("Failed to get data to write to dump.")}});return h};
var HIc=function(a,b,c,d){_.n.clearTimeout(a.ta);a.ta=_.n.setTimeout((0,_.u)(a.Ka,a),a.va.Ya());if(b&&0===a.yR)return _.bi();a.yR=0;var e=_.bk(_.dL(a.O),bL,11)[0].getKey();if(!e&&c)return a.log("Skipping dump update, encrypted and no key"),_.bi();var f=[];_.Ma(ovc,function(k){0<k&&(k=JIc(a,k),k.length&&f.push(Czc(a.ma,c?e:null,k,d)))});var h=new _.Xh;Promise.all(f).then(function(){a.Fa&&a.context.sD.set(DAc,!0);h.callback()},function(k){return void h.Jd(k)});return h};
FIc.prototype.Ka=function(){_.RH(this.va);this.update(3,!0)};
var JIc=function(a,b){switch(b){case 1:return[KIc(a)];case 2:var c;b=null===(c=_.DI(a.context.Nc))||void 0===c?void 0:_.T(c,17,!1);c=a.context.vf.Qs;var d=c.H;c=(b=!b||d&&d.bH?d:c.O)?b.iy():[];c=LIc(a,_.Ra(ooc(c)));a.log("Exporting "+c.length+" secondary dump items.");c.length>_.gk(_.dL(a.O),5,2E4)&&(b&&YL(b,!1),c=[]);c=ivc(new HL,MIc(c));d=a.context.vf.Qs;a=new uoc;(d=d.H)&&d.bH&&(d=d.iy(),_.y(a,3,d.length));a=_.J(c,11,a);a=nvc(a,2);b&&lvc(a,b.JN());b instanceof pxc&&(b=qxc(b),_.Qj(a,14,b));return[a];
case 3:return NIc(a);case 4:return OIc(a);default:throw new _.qc("Unsupported CacheType");}},KIc=function(a){for(var b={},c=[],d=Dxc(a.context.vf.Qs,!0),e=!0,f=0;f<d.length;f++){var h=d[f],k=h.iy(),l=LIc(a,noc(k));k=l.length;var p=0<k?l[k-1]:null;_.Ja(l,function(q){b[q.getId()]=q});if(0<k||h.H)l=fvc(new GL,h.ud()),h.H||(_.y(l,2,k),_.J(l,3,p),e=!1),c.push(l)}d=_.Ra(b);a.log("Exporting "+d.length+" initial dump items.");return lvc(nvc(kvc(ivc(jvc(mvc((new HL).Cu(a.context.Yn()),_.jK(a.Og)),a.ha.YQ(null)),
MIc(d)),c),1),!e)},NIc=function(a){var b=[],c=a.ha;a.context.vf.Qs.ZV().forEach(function(d){var e=c.YQ(d.Ac());if(e){var f=LIc(a,noc(d.iy()));a.log("Exporting "+f.length+" TD dump items for: "+d.Ac());e=lvc(nvc(jvc(ivc(new HL,MIc(f)),e),3),d.JN(d.ud()));d=fvc(new GL,d.ud());kvc(e,[d]);b.push(e)}});return b},OIc=function(a){var b={},c=[];a.context.vf.ZV().forEach(function(d){1===d.EJ()&&null==_.S(d.ud(),6)&&(noc(d.iy()).forEach(function(e){b[e.getId()]=e}),d=gvc(fvc(new GL,new _.gf),d.ud()),c.push(d))});
return[lvc(nvc(kvc(ivc(new HL,MIc(Object.values(b))),c),4),!1)]},LIc=function(a,b){b=Nnc(b);_.S(a.O,67)&&(b=PIc(b));_.tI(a.O)&&(_.T(a.Ha,9,!1)?ryc(a.context.vf.tq,b)&&(_.zK(a.Fd,179490965),a.log("b/179490965 Unexpected people data when writing to disk cache.","warning"),b=pyc(a.context.vf.tq,b)):b=pyc(a.context.vf.tq,b));return b.filter(function(c){return 4!==c.hv()})},PIc=function(a){var b=[];a=_.m(a);for(var c=a.next();!c.done;c=a.next())c=c.value,Bnc(c)?(c=c.clone(),lnc(c,Anc),b.push(c)):b.push(c);
return b},MIc=function(a){return a.map(function(b){return b.clone()})};FIc.prototype.log=function(a,b){this.context.Sf().log("drive.ds.sync.storage.LiveDumpUpdater",a,void 0===b?"info":b)};FIc.prototype.dDa=function(){this.Fa=!0};
var QIc=function(){};_.g=QIc.prototype;_.g.setActive=function(){};_.g.fS=function(){};_.g.update=function(){return _.bi()};_.g.EVa=function(){return _.Sh()};_.g.fL=function(){return _.Sh()};_.g.Uma=function(){};_.g.dDa=function(){};
var $K=function(a,b,c,d){_.P.call(this);var e=this;this.Aa=a;this.hw=c;this.rootId=null;this.Fa=!0;this.ha=null;this.ma=[];this.va=d||new _.Sic;this.Nc=b.clone();(a=_.DI(this.Nc))&&_.T(a,1,!1)&&_.WH(this.Nc,28);this.Og=new _.ajc(this.Nc);this.Fm=new dwc(_.jK(this.Og),this.Nc);RIc(this);this.xX=new _.Cn;this.rb=_.n.setTimeout(function(){e.Sf().info("drive.ds.sync.ThinContext","Page stable timed out.");e.xX.resolve();e.Rk().O(106020)},1E4);this.HZ=new _.Xh;this.Ba=new _.Cjc(_.dK(this.Nc),_.T(this.Nc.$f(),
52,!1));this.connectionState=new _.vjc(_.dK(this.Nc)?3:1,!_.T(this.Nc.$f(),52,!1));this.Fd=_.Sjc(this.Nc,this.Ba,this.connectionState,this.va,this.xX.promise,this.hw);this.ifa=new Jwc(this.Fd);this.bQ=new _.Xh;SIc(this)};_.N($K,_.P);$K.prototype.getEnvironment=function(){return this.hw};$K.prototype.YR=function(){this.Sf().info("drive.ds.sync.ThinContext","Notified of page stable.");_.n.clearTimeout(this.rb);this.xX.resolve()};
var SIc=function(a){var b=function(){a.Eu().Gg(_.Lf)},c=a.Aa;(c=c&&_.mc(c,_.Xl))?_.Se(c,"w",b):_.zfc()||_.Se(_.n,"unload",b)};$K.prototype.Eu=function(){this.Fd.O(106005);Brc(this.Fd);var a=this.ma.map(function(b){return b()});_.ra(this.ma);return _.aI(a).then()};var TIc=function(a,b){a.ma.push(b)};_.g=$K.prototype;_.g.Sf=function(){return this.va};_.g.Cu=function(a,b){"string"===typeof a&&null===this.rootId&&(this.rootId=a,this.HZ.callback(a),a.length&&this.v3a(a,b||null))};_.g.v3a=function(){};
_.g.Yn=function(){return this.rootId};_.g.Rk=function(){return this.Fd};var UIc=function(a){if(!a.ha)throw Error("tg");return a.ha},VIc=function(a,b){a.ha=b};$K.prototype.wB=function(){return this.Fa||this.connectionState.isConnected()};$K.prototype.Hj=function(){return this.Ba};$K.prototype.mk=function(){return this.connectionState};$K.prototype.mMb=function(a){this.bQ.callback(a)};
var RIc=function(a){var b=a.Nc.$f();0===_.Td(b,30).length&&(a.log("No user pref namespaces provided, user prefs disabled."),_.y(b,19,3));if(!_.E(b,37,""))throw Error("ug");_.B(b,57)||(a.log("No root URI provided; using prod default."),_.y(b,57,"https://clients6.google.com"));if(_.T(_.dL(a.Nc),9,!1))if(b=_.bk(_.dL(a.Nc),bL,11),0<b.length){if(!_.B(b[0],1)||!b[0].getKey()&&!_.dK(a.Nc)&&!_.T(a.Nc,10,!1))throw Error("vg");}else _.y(_.dL(a.Nc),9,!1),a.log("Disabling IndexedDB support, missing configuration.");
if(!_.T(_.dL(a.Nc),9,!1)&&(_.dK(a.Nc)||_.T(a.Nc,10,!1)))throw Error("wg");var c=_.nI(a.Nc);b=!(!c||!_.NI(c));c=c&&_.bK(c)||"";if(!b&&!c)throw Error("xg");b&&_.Xj(a.Nc,44);_.bk(a.Nc,_.gf,44).forEach(function(d){try{gwc(a.Fm,d)}catch(e){if(e instanceof _.qc&&(d=e.Sg)&&3===d.Xs())throw Error("yg");throw e;}})};$K.prototype.qJ=function(a){this.dispatchEvent(new _.rc(new _.qc(void 0,a)))};$K.prototype.log=function(a){this.Sf().info("drive.ds.sync.ThinContext",a)};
var WIc=function(a,b){this.H=a;this.Qe=b};
var XIc=new Set([5,4,1,6,2]),YIc=new Map([[3,1],[7,1],[2,2],[4,2],[5,3],[1,4],[6,5]]),ZIc=function(a,b,c){_.P.call(this);this.ha=a;this.V=b;this.W=c;this.GF=new Map;this.O=new Map;this.status=6;this.H=null};_.N(ZIc,_.P);
ZIc.prototype.cQ=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())&&_.np(q))&&f.add(q)});[].concat(_.od(f.values())).forEach(function(q){return void c.push(q)})}if(c.length){var h=XIc.has(b),k=new Map;c.forEach(function(q){k.set(q,new Map)});a.forEach(function(q){var r=q.getKey(),v=r&&_.np(r);r=r&&_.B(r,2);v=k.get(v);r&&v&&v.set(r,$Ic(q))});var l=0,p=0;[].concat(_.od(k.keys())).forEach(function(q){var r=k.get(q),v=e.GF.get(q);v?h&&
(r.forEach(function(z){var A=z.getKey();(A=v.get(A&&_.B(A,2)))&&_.fk(z,A)||l++}),[].concat(_.od(v.values())).forEach(function(z){z=z.getKey();r.has(_.B(z,2))||p++}),e.GF.set(q,r),e.O.set(q,b)):(l+=r.size,e.GF.set(q,r),e.O.set(q,b))});this.ha.info("drive.ds.sync.userprefs.InMemoryUserPrefsCache","Loaded "+l+"/"+a.length+" user prefs from "+b+(p?" (removed "+p+")":""));if(1!==this.status||l){if(h||d)this.status=1,XL(this.V,"px2C2c");XL(this.V,"rkYxSd")}(l||p)&&aJc(this,!h)}};
ZIc.prototype.kD=function(){return 0<this.GF.size};var aJc=function(a,b){b||a.H||(a.H=_.n.setTimeout(function(){_.n.clearTimeout(a.H);a.H=null;a.W.update(5)},1E3));a.dispatchEvent(new _.ki("WPi0i"))};ZIc.prototype.put=function(a){var b=a.getKey(),c=b&&_.np(b);b=b&&_.B(b,2);if(c&&b&&(c=this.GF.get(c))){var d=c.get(b);a=$Ic(a);d&&_.fk(a,d)||(c.set(b,a),aJc(this))}};ZIc.prototype.remove=function(a){var b=a&&_.np(a);a=a&&_.B(a,2);b&&a&&(b=this.GF.get(b))&&b.delete(a)&&aJc(this)};
var IIc=function(a,b){var c=[];(b||[].concat(_.od(a.GF.keys()))).forEach(function(e){(e=a.GF.get(e))&&[].concat(_.od(e.values())).forEach(function(f){return void c.push(f.clone())})});b=b?b.filter(function(e){return a.GF.has(e)}):[].concat(_.od(a.GF.keys()));var d=new dsc;_.Wj(d,1,c);_.Qj(d,2,b);return d};
ZIc.prototype.SG=function(a){var b=this,c=IIc(this,a),d=new _.Sz;d.Dc(this.status);_.ikb(d,_.bk(c,_.mp,1));_.J(d,4,c);var e=0;a.forEach(function(f){f=b.O.get(f);YIc.has(f)&&Infinity>YIc.get(f)&&(e=f)});return new WIc(d,e)};var $Ic=function(a){a=a.clone();a.kh()||a.Jb("");return a};
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var bJc=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},dJc=function(a,b){return cJc(a[b])+(cJc(a[b+1])<<8)+(cJc(a[b+2])<<16)+(cJc(a[b+3])<<24)},cJc=function(a){return 127<a?a-256:a};
var aL=function(a,b,c,d,e,f){$K.call(this,a,b,c,d);var h=this;this.Ta=_.Vh();this.pt=new txc;this.W=null;this.O=_.Vh();this.Ha=new _.Xh;this.W5=null;this.kfa=new Hyc;this.V=null;this.$a=_.Vh();this.ta=new _.Xh;this.QF=new mzc;this.qz=new Pyc;this.Rga=new mxc;this.N$=new _.Cn;this.Ka=!1;this.jfa=new _.Cn;this.H={};this.ka=null;this.Lb=new _.Le;this.Ma(this.Lb);this.Mj=e?e:new lxc(this.Sf());this.Rk().W.O=this.Mj;this.FL=_.T(_.dL(b),9,!1)&&Noc()?eJc(this,b):null;this.uv=new Xvc(cL(_.nI(b)));this.sD=
fJc(this,this.FL);this.tQ=gJc(this,this.FL,b);this.Ls=hJc(this);this.vf=new EM(this,this.Og);(a=(a=_.C(this.Nc,_.dl,12))&&a.getId())&&this.Cu(a,6);this.TP=new TCc(this.Nc,this.vf.tq,this.Mj,this.Sf(),this.Ls);this.IZ=new ZCc(this.Sf(),this.Mj,this.Ls);this.bE=new ZIc(this.Sf(),this.Mj,this.Ls);this.zI=new Bwc(this.Qm(),this.Sf(),function(k){return void h.qJ(k)});this.az=_.T(this.Nc.$f(),52,!1)?new _.AK(this.mk(),this.Qm(),this.Sf(),this.Rk()):null;WL(this.Mj,["mrK8ic"],function(){h.$a.promise.then(function(){EDc(h,
h.V)})});this.ALa=new izc(this.Nc);this.OA=new _.tkc(this.Nc,this.vf.um);this.Xra=new yFc(this);this.V5=new Lyc(this.O.promise,this.Qm());this.kb=new Nyc(this.Qm(),this.V5);this.lfa=new ezc(this.O.promise,this.Qm(),this.Sf(),this.Nc);this.Pa=new EIc(this.Nc,this.vf,this.qJ.bind(this),this.V5,this.kb,this.Ls,this.kfa,this.Og,this.Yn.bind(this),this.Xra,this.IZ,this.bE,this.lfa,this.QF,this.Sf(),this.ALa,this.OA,this.zI,this.az,this.Hj(),this.eob.bind(this),this.Rk(),f);this.Ta.resolve(this.Pa);this.AIa=
new iFc(this);WL(this.Mj,["BNEDtc"],function(){return h.jfa.resolve()});TIc(this,function(){h.Ls.fS();return _.Sh()})};_.N(aL,$K);
var eJc=function(a,b){var c=_.bK(_.nI(b)),d=_.cK(b),e=function(){},f=_.bk(_.dL(b),bL,11);f=f[0]&&_.B(f[0],1);var h=new Yzc(c,d,_.gk(_.dL(b),10,0)||0,f||"",_.jK(a.Og));_.dK(b)?c=sAc(c,d).then(function(l){return l?l:h}):_.T(b,10,!1)&&0<_.gk(_.dL(b),8,432E6)?(b=iJc(a,c),c=sAc(c,d,b).then(function(l){return l&&(e=function(p){return p.Ll(h).Gg(function(){return null})},!l.ha)?l:h})):c=_.Sh(h);var k=new iM(c,a.Sf(),a.Rk());k.initialize().then(function(){return e(k)},function(){return null});return k},iJc=
function(a,b){var c=_.gk(_.dL(a.Nc),8,432E6);if(!_.dK(a.Nc)&&0<c){a=Math;var d=a.abs;b=_.xma(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+=dJc(b,e),h.b+=dJc(b,e+4),h.c+=dJc(b,e+8),bJc(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+=dJc(b,e+4);h.a+=dJc(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+=dJc(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=bJc(h);return d.call(a,b)%c}};aL.prototype.Oy=function(a){var b=this;return this.FL?this.FL.Nf()?_.Th(Error("zg`"+eAc(this.FL))):FAc(this.sD).then(function(c){var d=b.FL,e=[];e.push(b.Ls.EVa());e.push(a?d.Ll():oAc(d));if(a===c)return _.Uh(e).then(function(){return!1});!1===a&&(e.push(dAc(d)),(c=b.Yn())&&e.push(b.sD.Cu(c)));return _.Uh(e).then(function(){return b.sD.Oy(a)},function(){return!1})}):_.Th(Error("Ag"))};
var gJc=function(a,b,c){var d=null;b&&(d=new wzc(b,c,function(e){a.qJ(e)},a.Rk()),d.initialize());return d},fJc=function(a,b){var c=new EAc(b||void 0);c.Yn().then(function(d){d&&a.Cu(d,5)});b&&(FAc(c).then(function(d){a.Hj().Oy(d)}),_.Uh([b.initialize(),a.xX.promise]).then(function(){jJc(a,c)},function(){}));return c},jJc=function(a,b){IAc(b).then(function(c){(!c||c<Date.now()-864E5)&&vAc(_.bK(_.nI(a.Nc)),_.cK(a.Nc),a.Sf()).then(function(d){d&&(d=Date.now(),b.set(CAc,d))},function(){})})},hJc=function(a){if(!a.tQ)return new QIc;
var b=new FIc(a,a.Og);a.Lb.listen(a.Hj(),"Fb",function(c){return void b.setActive(!c.We())});a.Lb.listen(a.mk(),[].concat(_.od(Object.values(_.vB))),function(){return void b.setActive(a.mk().isConnected())});return b};aL.prototype.gY=function(a){this.W5=a;this.Ha.callback(a)};var AM=function(a){return a.Ha.Wm()},JCc=function(a){return a.FL?a.FL.Nf():null},kJc=function(a,b){a.Mj.H("NSockf")?XL(a.Mj,b):WL(a.Mj,["NSockf"],function(){XL(a.Mj,b)})};
aL.prototype.v3a=function(a,b){this.log("Setting Root ID: "+a);a&&(this.pt.Cu(a),this.Fm.Cu(a),6!==b&&1!==b||this.sD.Cu(a),kJc(this,"jroI5d"))};aL.prototype.EUa=function(){return this.ta.Wm()};var EDc=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.ag()||(a.ta.callback(b),kJc(a,"T8oKm")))},dDc=function(a){if(!a.W)throw Error("Bg");return a.W};_.g=aL.prototype;_.g.aR=function(){return this.Pa};_.g.Qm=function(){return this.Ta.promise.then(function(a){return a.eoa.promise})};
_.g.cDa=function(){this.Ka||(this.Ka=!0,this.N$.resolve(),XL(this.Mj,"aU7Ts"))};_.g.wB=function(){throw Error("Cg");};_.g.eob=function(a){this.dispatchEvent(a)};var lJc=function(a,b){PEc(a.vf,b)},mJc=function(a,b,c){a.H[b]=c},ECc=function(a){a.ka||(a.ka=new Vyc(a.O.promise,a.Qm(),a.Sf()));return a.ka};
var IM=function(a,b,c){_.P.call(this);var d=this;this.Fa=a;this.rb=b;this.va=_.Vh();this.Ba=this.channel=this.clientId=null;c.then(function(e){return nJc(d,e)})};_.N(IM,_.P);var nJc=function(a,b){a.clientId=b.clientId;a.channel=b.channel;a.Ba=b.H;PL(a.channel,a.Fa,function(c){c=vwc(c);a.v$(c.H,!(!c.data||!c.jc),c.data,c.error)});a.log("Service initialized: "+a.Fa);a.va.resolve()};IM.prototype.v$=function(){};
IM.prototype.send=function(a,b,c,d){var e=this,f=_.Vh();this.va.promise.then(function(){var h=e.channel;QL(h,e.Fa,rwc(new qwc(e.clientId,a,b,d),h.W),function(k){return void oJc(k,a,f,c||function(){})})});return f.promise};var oJc=function(a,b,c,d){a=vwc(a);a.data?c.resolve(d(a.data,a.jc)):(a.error?d=a.error:(d=new _.pc,_.zI(d,2),_.AI(d,6),_.y(d,21,"Worker["+b+"]: An invalid response was received")),c.reject(new _.qc(void 0,d)))};IM.prototype.log=function(a){this.Ba&&this.Ba.info(this.rb,a)};
var pJc=function(a,b,c,d){this.clientId=a;this.channel=b;this.H=c;this.O=d};
var JM=function(a,b){_.O.call(this);this.V=a;this.va=b;this.Ka=this.PU()};_.N(JM,_.O);JM.prototype.registerService=function(a){PL(a,this.V,(0,_.u)(this.yw,this))};
JM.prototype.yw=function(a){var b=this;a=swc(a);var c=a.jc,d=this.Ka[a.method],e=null;if(d)try{var f=d(a);if(f instanceof twc)return uwc(f,c);if(f.then)return f.then(function(h){return uwc(h,c)},function(h){h=_.BI(h);return uwc(b.od(void 0,h),c)})}catch(h){e=_.PI(h)}f=new _.pc;_.zI(f,2);_.AI(f,3);_.fq(f,this.V+":"+a.method+": "+(e?e.message:"unsupported method"));e&&e.stack&&_.y(f,20,e.stack);return uwc(this.od(void 0,f),c)};
JM.prototype.od=function(a,b,c){if(a&&!b)return new twc(a,void 0,c);a=_.BI(b);return new twc(void 0,a,c)};JM.prototype.update=function(a,b,c,d){(a=this.va.channels[a]||null)&&QL(a,this.V,uwc(this.od(c,d,b),a.W))};
var qJc=function(){this.channels={};this.H=this.O=this.V=0},rJc=function(a,b){var c=a.V++;a.channels[c]=b;a.O++;a.H=Math.max(a.H,_.Qa(a.channels));return c},sJc=function(a,b){var c=a.channels[b];return c?(delete a.channels[b],c):null};
var tJc=function(a,b){JM.call(this,"LRM",b);this.context=a;this.H={};a=this.context;a.W=this;a.O.resolve(this);this.ha=this.context.vf;this.O=this.context.lfa;this.W=ECc(this.context);this.ka=this.context.V5};_.N(tJc,JM);
tJc.prototype.PU=function(){var a=this,b={};return b["4.1"]=function(c){var d=c.clientId+":"+c.requestId;c=ZK(c.args[0],!!c.jc,_.gf);return a.ji(d,c)},b["4.9"]=function(c){var d=c.clientId+":"+c.requestId;c=ZK(c.args[0],!!c.jc,_.hI);return a.ji(d,c)},b["4.2"]=function(c){var d=c.clientId+":"+c.requestId;c=ZK(c.args[0],!!c.jc,_.oA);return a.ji(d,c)},b["4.10"]=function(c){var d=c.clientId+":"+c.requestId;c=ZK(c.args[0],!!c.jc,_.eG);return a.ji(d,c)},b["4.3"]=function(c){var d=c.clientId+":"+c.requestId;
c=ZK(c.args[0],!!c.jc,_.gf);return a.dk(d,c)},b["4.11"]=function(c){var d=c.clientId+":"+c.requestId;c=ZK(c.args[0],!!c.jc,_.hI);return a.dk(d,c)},b["4.4"]=function(c){var d=c.clientId+":"+c.requestId;c=ZK(c.args[0],!!c.jc,_.oA);return a.dk(d,c)},b["4.12"]=function(c){var d=c.clientId+":"+c.requestId;c=ZK(c.args[0],!!c.jc,_.eG);return a.dk(d,c)},b["4.5"]=function(c){var d=c.clientId+":"+c.requestId,e=ZK(c.args[0],!!c.jc,_.oA);c=ZK(c.args[1],!!c.jc,_.oA);return a.SY(d,e,c)},b["4.6"]=function(c){var d=
c.clientId+":"+c.requestId,e=ZK(c.args[0],!!c.jc,_.eG);c=ZK(c.args[1],!!c.jc,_.eG);return a.SY(d,e,c)},b["4.7"]=function(c){return a.FF(c)},b["4.8"]=function(c){return a.FF(c)},b["4.13"]=function(c){var d=c.clientId+":"+c.requestId;c=ZK(c.args[0],!!c.jc,_.Wz);return a.ji(d,c)},b["4.14"]=function(c){var d=c.clientId+":"+c.requestId;c=ZK(c.args[0],!!c.jc,_.gG);return a.ji(d,c)},b["4.15"]=function(c){var d=c.clientId+":"+c.requestId;c=ZK(c.args[0],!!c.jc,_.Wz);return a.dk(d,c)},b["4.16"]=function(c){var d=
c.clientId+":"+c.requestId;c=ZK(c.args[0],!!c.jc,_.gG);return a.dk(d,c)},b["4.18"]=function(c){var d=c.clientId+":"+c.requestId;c=ZK(c.args[0],!!c.jc,_.qG);return a.ji(d,c)},b["4.19"]=function(c){var d=c.clientId+":"+c.requestId;c=ZK(c.args[0],!!c.jc,_.qG);return a.dk(d,c)},b["4.22"]=function(c){var d=c.clientId+":"+c.requestId;c=ZK(c.args[0],!!c.jc,_.Uz);return a.ji(d,c)},b["4.23"]=function(c){var d=c.clientId+":"+c.requestId;c=ZK(c.args[0],!!c.jc,_.Uz);return a.dk(d,c)},b["4.21"]=function(c){c=
a.H[c.clientId+":"+c.requestId].query;if(c instanceof _.Uz){var d=a.W;Fyc(d,d.getKey(c)).refresh()}return a.od([])},b};tJc.prototype.ji=function(a,b){var c=this,d=new _.Cn;this.H[a]={query:b,xRb:d.promise};b instanceof _.Wz?d.resolve(this.O.ji(a,b)):b instanceof _.gG?d.resolve(Dyc(this.O,a,b)):b instanceof _.Uz?d.resolve(this.W.ji(a,b)):b instanceof _.qG?d.resolve(this.ka.ji(a,b)):d.resolve(this.ha.ji(a,b));return d.promise.then(function(){return c.od([])})};
tJc.prototype.dk=function(a,b){uJc(this,a,b);return this.od([])};var uJc=function(a,b,c){delete a.H[b];c instanceof _.Wz?a.O.dk(b,c):c instanceof _.gG?Eyc(a.O,b,c):c instanceof _.Uz?a.W.dk(b,c):c instanceof _.qG?a.ka.dk(b,c):a.ha.dk(b,c)};_.g=tJc.prototype;_.g.SY=function(a,b,c){uJc(this,a,b);return this.ji(a,c)};
_.g.FF=function(a){var b=a.clientId+":"+a.requestId,c=this.H[b].query;c.ui(a.args[0]);c instanceof _.Wz?this.O.ji(b,c):c instanceof _.gG?Dyc(this.O,b,c):c instanceof _.Uz?this.W.ji(b,c):c instanceof _.qG?this.ka.ji(b,c):this.ha.ji(b,c);return this.od([])};
_.g.uO=function(a,b){var c=this,d=this.H[a];if(d){a=a.split(":");var e=_.Sg(a[0]),f=a[1];d.xRb.then(function(h){b instanceof _.yK||b instanceof _.vK?c.update(e,f,[b.response,b.pageToken,b.H,b.Qe,h]):(d.query instanceof _.gf?nnc(d.query.O(),b.Bd().filter(function(k){return!LL(k)})):d.query instanceof _.oA&&nnc(d.query.O(),Object.values(b.eq()).filter(function(k){return k&&!LL(k)})),c.update(e,f,[b,h]))})}};
_.g.HX=function(a,b){if(this.H[a]){var c=a.split(":");a=_.Sg(c[0]);c=c[1];var d=b.error;d.gfa(b.H);this.update(a,c,void 0,d)}};_.g.iA=function(a){this.H[a]&&(a=a.split(":"),this.update(_.Sg(a[0]),a[1],["cacheRefresh"]))};_.g.O8=function(){};_.g.mka=function(a){if(!this.H[a])throw Error("dg`"+a);return this.H[a].query};var vJc=function(a,b){_.Ma(a.H,function(c,d){_.Sg(d.split(":")[0])===b&&uJc(a,d,c.query)})};
var wJc=function(a,b,c){IM.call(this,"LRM","drive.ds.sync.cache.LiveRequestManagerProxy",a);this.context=b;this.H=c;this.O={}};_.N(wJc,IM);wJc.prototype.ywa=function(a){var b=this;a=new qCc(this.context.Fm,this.context.bQ,this.context.Sf(),this.context.Nc,function(c,d){return b.FF(c,d)},a,this.context.Rk());xJc(this,a);return a};wJc.prototype.Bwa=function(a){var b=this;a=new uCc(this.context.Fm,this.context.bQ,this.context.Sf(),function(c,d){return b.FF(c,d)},a,this.context.Nc);xJc(this,a);return a};
var xJc=function(a,b){a.ji(b);_.De(b,function(){a.dk(b);a.send("4.3",[b.ud()],void 0,b.xi())});a.send("4.1",[b.ud()],void 0,b.xi())};_.g=wJc.prototype;_.g.vwa=function(a){var b=this,c=new lL(this.context.Nc,this.context.Fm,this.context.Sf(),this.context.HZ,this.SY.bind(this),a);this.ji(c);_.De(c,function(){b.dk(c);b.send("4.4",[c.ud()],void 0,c.xi())});this.send("4.2",[c.ud()],void 0,c.xi());return c};
_.g.Ewa=function(a){var b=this,c=new yCc(a,this,this.context.Nc);this.ji(c);_.De(c,function(){b.dk(c);b.send("4.11",[c.ud()],void 0,c.xi())});this.send("4.9",[c.ud()],void 0,c.xi());return c};_.g.Fwa=function(a){var b=this,c=new zCc(this.context,this,a);this.ji(c);_.De(c,function(){b.dk(c);b.send("4.12",[c.ud()],void 0,c.xi())});this.send("4.10",[c.ud()],void 0,c.xi());return c};
_.g.Iwa=function(a){var b=this,c=new CCc(this.context,a,this);this.ji(c);_.De(c,function(){b.dk(c);b.send("4.15",[c.ud()],void 0,c.xi())});this.send("4.13",[c.ud()],void 0,c.xi());return c};_.g.Jwa=function(a){var b=this,c=new tCc(this.context,a);this.ji(c);_.De(c,function(){b.dk(c);b.send("4.16",[c.ud()],void 0,c.xi())});this.send("4.14",[c.ud()],void 0,c.xi());return c};
_.g.Cwa=function(a){var b=this,c=new xCc(this.context,a,function(){b.send("4.21",[],void 0,c.xi())});this.ji(c);_.De(c,function(){b.dk(c);b.send("4.23",[c.ud()],void 0,c.xi())});this.send("4.22",[c.ud()],void 0,c.xi());return c};_.g.qwa=function(a){var b=this,c=new oCc(this.context.Hj(),this.context.mk(),this.context.Sf(),function(d,e){return b.FF(d,e)},a);this.ji(c);_.De(c,function(){b.dk(c);b.send("4.19",[c.ud()],void 0,c.xi())});this.send("4.18",[c.ud()],void 0,c.xi());return c};
_.g.ji=function(a){this.H.create(a.xi(),a.ud());this.O[a.xi()]=a};_.g.dk=function(a){RL(this.H,a.xi(),4);delete this.O[a.xi()]};_.g.SY=function(a,b,c){if(b instanceof _.oA&&c instanceof _.oA)this.send("4.5",[b,c],void 0,a);else if(b instanceof _.eG&&c instanceof _.eG)this.send("4.6",[b,c],void 0,a);else throw Error("Dg");};
_.g.FF=function(a,b){if(!this.O[a])throw Error("dg`"+a);var c=this.O[a];if(c.ud()instanceof _.gf)var d="4.7";else if(c.ud()instanceof _.hI)d="4.8";else if(c.ud()instanceof _.qG)d="4.20";else if(c.ud()instanceof _.Wz)d="4.17";else throw Error("Eg");c.ud().ui(b);this.send(d,[b],void 0,a)};
_.g.v$=function(a,b,c,d){if(a=this.O[a]){var e,f=0;if(d)b=new iL(d,d.P6()),a.qB(b),RL(this.H,a.xi(),3);else if(c&&c[f]){d=c[f++];if("cacheRefresh"===d){a.hW();return}var h=a.ud();if(h instanceof _.gf||h instanceof _.hI)h instanceof _.gf&&_.nJ(h)?e=ZK(d,b,_.sK):e=ZK(d,b,_.iB);else if(h instanceof _.oA||h instanceof _.eG)b?(e=new _.rK,Wrc(e,function(k){return new _.dl(JSON.parse(k))},d)):e=d;else if(h instanceof _.qG)e=new _.vK(ZK(d,b,uL),c[f++],c[f++],c[f++]);else if(h instanceof _.Wz)e=new _.yK(ZK(d,
b,UL),c[f++],c[f++],c[f++]);else if(h instanceof _.gG)e=ZK(d,b,_.tK);else if(h instanceof _.Uz)e=ZK(d,b,FL);else throw Error("Fg");}e&&(b=f,c&&"boolean"===typeof c[b]&&Kwc(this.H,a.xi(),!!c[b]),Nwc(this.H,a.xi(),e),a.update(e))}};
var KM=function(){_.P.apply(this,arguments);this.commands=new _.nl;this.ha=this.active=this.So=!1};_.N(KM,_.P);KM.prototype.initialize=function(){this.So||(this.So=!0,this.V(),this.setActive(!0))};KM.prototype.V=function(){};KM.prototype.setActive=function(a){this.active=a;yJc(this)};var yJc=function(a){if(a.active&&!a.ha){var b=_.ol(a.commands);if(b)if(a.va()){do a.ka(b);while(b=_.ol(a.commands))}else a.ha=!0,_.Wh(a.Ba(b),function(){a.ha=!1;yJc(a)})}};KM.prototype.ka=function(){};
KM.prototype.Ba=function(){};KM.prototype.va=function(){return!0};KM.prototype.enqueue=function(a){try{var b=new _.Xh;this.commands.enqueue(new zJc(a,b));yJc(this);return b}catch(c){return _.di(_.PI(c))}};var zJc=function(a,b){this.H=a;this.og=b};zJc.prototype.getCommand=function(){return this.H};zJc.prototype.GG=function(){return this.og};
var CJc=function(a){KM.call(this);var b=this;this.context=a;this.O=null;this.Qc=new _.Le(this);this.Ma(this.Qc);this.Qc.listen(this.context,"VMiG2e",function(){return void AJc(b)});this.H=this.context.vf.tq;_.tI(this.context.Nc)&&this.Qc.listen(this.H,"Kb",this.W);var c=a.Mj;WL(c,["toquGd"],function(){return b.initialize()});var d=["NSockf"];1!==_.Mj(a.Nc.$f(),17,1)&&(d.push("iuEtc"),WL(c,["mrK8ic"],function(){XL(c,"iuEtc")}));WL(c,d,function(){BJc(b)})};_.N(CJc,KM);CJc.prototype.V=function(){DJc(this)};
var BJc=function(a){if(1===a.context.TP.Cf().Bb())Promise.resolve();else{var b=_.uf(_.vf(new _.tf,!0),301);b=_.pI(new _.oI,b);a.refresh(b).then(null,function(c){c=_.BI(c);_.y(c,21,"Initial account request failed.");a.context.qJ(c)})}},AJc=function(a){var b=_.uf(new _.tf,304);b=_.pI(new _.oI,b);a.refresh(b).then(null,function(){})};
CJc.prototype.refresh=function(a,b){var c=this;this.O||(this.O=_.Wh(this.context.Qm().then(function(d){return d.Ue(a,b)}).then(function(d){var e=d.Cf(),f=e.getUser();if(f&&!1===_.Kk(f))d=_.CI(_.nI(c.context.Nc)),d=Error("Gg`"+d+"`"+RK(f)),_.Ab(d),_.zK(c.context.Rk(),73301807),d=Promise.reject(d);else{f=c.context.TP;var h=0===f.ef()?1:6;_.tI(c.context.Nc)&&hyc(c.H,e);h=VCc(f,e,h);(e=e.getMetadata())&&c.context.Cu(_.B(e,2),1);(d=_.B(d,4))&&EDc(c.context,d,!0);h&&c.dispatchEvent(new _.ki("WPi0i"));d=
Promise.resolve(new _.xK(f.Cf(),f.ef(),!1))}return d}).then(function(d){return d},function(d){d=_.BI(d);_.y(d,5,1);return Promise.reject(new _.qc("Error fetching account from server.",d))}),function(){c.O=null}));return this.O};
CJc.prototype.ka=function(a){var b=a.getCommand();if(b.H){var c={};b.xD&&(c.xD=b.xD);this.refresh(b.request,c).then(function(e){return a.GG().callback(e)},function(e){return void a.GG().Jd(e)})}else if(b=this.context.TP,c=b.Cf(),_.tI(this.context.Nc)){c=c.Cf();var d=c.getUser();d=myc(this.H,RK(d));hyc(this.H,c);VCc(b,c,b.ef())&&this.dispatchEvent(new _.ki("WPi0i"));a.GG().callback(new _.xK(b.Cf(),b.ef(),d))}else c.Bb(),b=new _.xK(c,b.ef(),!0),a.GG().callback(b)};
var DJc=function(a){var b=a.context.Nc.$f();_.n.setTimeout(function(){var c=_.uf(new _.tf,306);c=_.pI(new _.oI,c);a.refresh(c).then(function(){DJc(a)},function(){DJc(a)})},Math.ceil(_.gk(b,7,9E5)*Math.random())+_.gk(b,3,72E5))};CJc.prototype.W=function(a){var b=this.context.TP,c=b.Cf().Cf();c&&a.getPeople().find(function(d){return _.B(d,1)===RK(c.getUser())})&&(hyc(this.H,c),VCc(b,c,b.ef())&&this.dispatchEvent(new _.ki("WPi0i")))};var EJc=function(a,b,c){this.request=a;this.H=!!b;this.xD=c||null};
var GJc=function(a){KM.call(this);this.context=a;this.ta=this.W=!1;this.O=null;this.H=1;this.ma=0;this.error=null;this.Qc=new _.Le(this);this.Ma(this.Qc);this.Qc.listen(this.context.IZ,"Qb",_.Db(this.dispatchEvent,new _.ki("Qb",this)));FJc(this)};_.N(GJc,KM);
var FJc=function(a){var b=a.context.Mj;WL(b,["nVUlO"],function(){a.ta=!0;a.setActive(!0)});if(!_.dK(a.context.Nc)){var c=_.Mj(a.context.Nc.$f(),18,1);WL(b,["NSockf"],function(){1===c?HJc(a):a.setActive(!0)});2===c&&WL(b,["mrK8ic"],function(){a.W||HJc(a)})}},HJc=function(a){var b=new _.tf;_.vf(b,!0);_.uf(b,301);var c=new _.qJ;_.prc(c,b);_.y(c,1,1);a.refresh(c).Gg(function(){return null})};
GJc.prototype.refresh=function(a,b){var c=this;_.n.clearTimeout(this.ma);this.ma=0;var d=_.Vh();this.O=d.promise;_.Wh(this.O,function(){c.O=null;IJc(c)});var e=this.H;this.H=a.getType()||e;var f=!this.W;this.W=!0;var h=new _.qJ;_.y(h,1,this.H);_.prc(h,a.xe());this.context.Qm().then(function(k){return k.Ue(h,b)}).then(function(k){c.error=null;var l=c.context.IZ;l.cQ(k,l.kD()?6:1);d.resolve()},function(k){c.H=e;k=_.uB(k);var l=k.Sg;_.y(l,5,2);f?(_.zI(l,1),k.message="Initial app settings refresh failed.",
_.y(k.Sg,21,"Initial app settings refresh failed."),c.context.qJ(l),c.setActive(!0)):(_.zI(l,2),k.message="Error occurred while loading the latest set of apps.",_.y(k.Sg,21,"Error occurred while loading the latest set of apps."));c.error=k;d.reject(k)});return this.O};GJc.prototype.va=function(){return!1};
GJc.prototype.Ba=function(a){var b=this,c=a.getCommand(),d=c.request,e=c.cja,f=c.xD?{xD:c.xD}:void 0;if(!JJc(d))return this.context.Qm().then(function(l){return l.Ue(d,f)}).then(function(l){a.GG().callback(new _.uK(l,1,!1))},function(l){a.GG().Jd(_.PI(l))}),_.Sh();c=_.Sh();var h=!1;this.O?KJc(this,d.getType())?e=this.O:c=e=new _.Rh(function(l,p){b.O.then(function(){b.refresh(d,f).then(function(){return l()},p)})}):!e&&this.ta&&KJc(this,d.getType())&&!this.error?(h=!0,e=_.Sh()):e=this.refresh(d,f);
var k=a.GG();e.then(function(){var l=b.context.IZ;k.callback(new _.uK(l.tr(),l.ef(),h))},function(l){k.Jd(l)});return c.then()};
var JJc=function(a){var b=a.getType();return 1===b||2===b||4===b?(b=_.Td(a,4),a=_.Td(a,3),!(b&&b.length)&&!(a&&a.length)):!1},KJc=function(a,b){return a.H===b||4===a.H||2===a.H&&1===b},IJc=function(a){var b=a.context.Nc.$f(),c=new _.tf;_.uf(c,306);var d=new _.qJ;_.y(d,1,1);_.prc(d,c);a.ma=_.n.setTimeout(function(){return void a.refresh(d)},Math.ceil(_.gk(b,7,9E5)*Math.random())+_.gk(b,4,72E5))},LJc=function(a,b,c){this.request=a;this.cja=!!b;this.xD=c||null};
var NJc=function(a){KM.call(this);var b=this;this.context=a;this.error=null;this.Qc=new _.Le(this);this.Ma(this.Qc);this.Qc.listen(this.context.bE,"WPi0i",function(){return b.dispatchEvent(new _.ki("WPi0i"))});this.H=_.Vh();this.O=_.Td(this.context.Nc.$f(),30);MJc(this)};_.N(NJc,KM);
var MJc=function(a){var b=a.context.Mj;WL(b,["rkYxSd"],function(){return a.initialize()});WL(b,["px2C2c"],function(){a.context.Sf().info("drive.ds.sync.userprefs.UserPrefsManager","All user prefs loaded.");a.H.resolve();a.H=null});var c=["NSockf"],d=_.Mj(a.context.Nc.$f(),19,1);1!==d&&(c.push("OZvrNc"),2===d&&WL(b,["mrK8ic"],function(){XL(b,"OZvrNc")}));!_.T(a.context.Nc,11,!1)&&_.T(a.context.Nc,24,!1)&&(c.push("DEJoH"),_.n.setTimeout(function(){0<_.bk(IIc(a.context.bE),_.mp,1).length||(b.H("NSockf")?
XL(b,"DEJoH"):WL(b,["NSockf"],function(){XL(b,"DEJoH")}))},12E3));WL(b,c,function(){if(!b.H("px2C2c")){var e=new _.tf;_.vf(e,!0);_.uf(e,301);var f=new _.yD;_.J(f,1,e);roc(f,OJc(a));a.query(f).Gg(function(){a.initialize()})}})};NJc.prototype.V=function(){var a="User prefs detected: "+_.bk(IIc(this.context.bE),_.mp,1).length;this.context.Sf().info("drive.ds.sync.userprefs.UserPrefsManager",a);PJc(this)};
NJc.prototype.query=function(a,b){var c=this,d=b?{xD:b}:void 0;return this.context.Qm().then(function(e){return e.Ue(a,d)}).then(function(e){c.error=null;var f=c.context.bE;f.cQ(_.bk(e,_.mp,3),f.kD()?6:1,_.Td(a,3))}).then(null,function(e){e=_.uB(e);_.y(e.Sg,5,4);0<c.commands.hc()||c.context.qJ(e.Sg);c.error=e;throw e;})};
NJc.prototype.ka=function(a){var b=this,c=a.getCommand(),d=a.GG(),e=new Set([].concat(_.od(this.context.bE.GF.keys()))),f=_.Td(c.request,3);f.find(function(h){return!e.has(h)})&&(c.cja=!0);this.error?d.Jd(this.error):c.cja?(roc(c.request,OJc(this,f)),_.Wh(this.H?this.H.promise:this.query(c.request,c.xD||void 0),function(){b.getData(d,f,!1)})):this.getData(d,f,!0)};var OJc=function(a,b){b=void 0===b?[]:b;a=new Set([].concat(_.od(a.O),_.od([].concat(_.od(a.context.bE.GF.keys()))),_.od(b)));return[].concat(_.od(a.values()))};
NJc.prototype.getData=function(a,b,c){b=this.context.bE.SG(b);a.callback(new _.wK(b.H,b.Qe,c))};var PJc=function(a){var b=a.context.Nc.$f();_.n.setTimeout(function(){var c=new _.yD,d=new _.tf;_.uf(d,306);_.J(c,1,d);roc(c,OJc(a));_.Wh(a.query(c).Gg(_.Lf),function(){PJc(a)})},Math.ceil(_.gk(b,7,9E5)*Math.random())+_.gk(b,5,72E5))},QJc=function(a,b,c){this.request=a;this.cja=!!b;this.xD=c||null};
var RJc=function(a,b,c,d){JM.call(this,"IS",b);this.context=a;this.Qc=new _.Le(this);this.Ba=_.Vh();this.O=null;this.ha=!1;this.W=null;this.Fa=new ICc(a);qoc(this.Fa);this.Ma(this.Qc);this.ka=new CJc(a);this.Ma(this.ka);this.Qc.listen(this.ka,"WPi0i",function(){return c(new kCc(1))});this.ma=new GJc(a);this.Ma(this.ma);this.Qc.listen(this.ma,"Qb",function(){return c(new kCc(2))});this.ta=new NJc(a);this.Ma(this.ta);this.Qc.listen(this.ta,"WPi0i",function(){return c(new kCc(4))});this.Ha=d;this.H=
this.context.Qm()};_.N(RJc,JM);_.g=RJc.prototype;
_.g.PU=function(){var a={};return a["3.43"]=this.s_.bind(this),a["3.42"]=this.A7.bind(this),a["3.1"]=this.uN.bind(this),a["3.2"]=this.SG.bind(this),a["3.3"]=this.wd.bind(this),a["3.35"]=this.WN.bind(this),a["3.4"]=this.pz.bind(this),a["3.5"]=this.tr.bind(this),a["3.6"]=this.WR.bind(this),a["3.8"]=this.Ll.bind(this),a["3.36"]=this.Oy.bind(this),a["3.9"]=this.hF.bind(this),a["3.10"]=this.sr.bind(this),a["3.11"]=this.S$.bind(this),a["3.12"]=this.g8.bind(this),a["3.13"]=this.aT.bind(this),a["3.14"]=this.Q$.bind(this),
a["3.15"]=this.i8.bind(this),a["3.16"]=this.iu.bind(this),a["3.17"]=this.hCb.bind(this),a["3.18"]=this.lCb.bind(this),a["3.19"]=this.gQ.bind(this),a["3.20"]=this.jCb.bind(this),a["3.25"]=this.iCb.bind(this),a["3.22"]=this.h8.bind(this),a["3.28"]=this.sync.bind(this),a["3.30"]=this.wna.bind(this),a["3.29"]=this.rwb.bind(this),a["3.40"]=this.nCb.bind(this),a["3.33"]=this.oCb.bind(this),a["3.39"]=this.cP.bind(this),a["3.37"]=this.mCb.bind(this),a["3.38"]=this.r9a.bind(this),a["3.41"]=this.YR.bind(this),
a["3.44"]=this.Z_.bind(this),a["3.45"]=this.Qo.bind(this),a["3.46"]=this.B7.bind(this),a};_.g.uN=function(a){var b=this,c=ZK(a.args[0],!!a.jc,_.oI);a=new EJc(c,a.args[1],this.context.H[a.clientId]);XL(this.context.Mj,"iuEtc");return this.ka.enqueue(a).then(function(d){return b.od([d.response,d.Qe,d.L_])},function(d){return b.od(void 0,d)})};
_.g.SG=function(a){var b=this,c=ZK(a.args[0],!!a.jc,_.yD);a=new QJc(c,a.args[1],this.context.H[a.clientId]);XL(this.context.Mj,"OZvrNc");return this.ta.enqueue(a).then(function(d){return b.od([d.response,d.Qe,d.L_])},function(d){return b.od(void 0,d)})};
_.g.wd=function(a){var b=this,c=ZK(a.args[0],!!a.jc,Znc),d=_.C(c,_.SI,16)||_.C(c,_.TI,1)||_.C(c,_.UI,2)||_.C(c,_.XI,3)||_.C(c,_.BK,4)||_.C(c,_.VI,5)||_.C(c,_.aJ,6)||_.C(c,_.cJ,7)||_.C(c,_.dJ,8)||_.C(c,_.gJ,9)||_.C(c,_.wJ,10)||_.C(c,_.xJ,11)||_.C(c,_.yJ,12)||_.C(c,_.EI,13)||_.C(c,_.BJ,14)||_.C(c,_.CJ,15)||_.C(c,_.XK,17),e=LM(this,a);return this.H.then(function(f){return f.Ue(d,e)}).then(function(f){return b.od([f])},function(f){return b.od(void 0,f)})};
_.g.WN=function(a){var b=this,c=ZK(a.args[0],!!a.jc,hoc),d=_.C(c,_.YI,1)||_.C(c,_.eJ,2)||_.C(c,_.DJ,3),e=LM(this,a);return this.H.then(function(f){return f.Ue(d,e)}).then(function(f){return b.od([f])},function(f){return b.od(void 0,f)})};
_.g.pz=function(a){var b=this,c=ZK(a.args[0],!!a.jc,boc),d=LM(this,a),e=[],f=[];doc(c).forEach(function(h){h instanceof _.SI?e.push(String(h.Cc())):e.push(String(h.getId()));f.push(b.H.then(function(k){return k.Ue(h,d)}))});a=_.aI(f).then(function(h){return h.map(function(k){return k.value||k.reason})});_.Wh(a,function(){return void gFc(b.context.vf)});return a.then(function(h){return b.od([new Onc(e,h)])})};
_.g.tr=function(a){var b=this,c=ZK(a.args[0],!!a.jc,_.qJ),d=a.args[1];if(3===c.getType())if(!d&&this.W)a=this.W;else{var e=LM(this,a);a=this.H.then(function(f){return f.Ue(c,e)}).then(function(f){return new _.uK(f,1,!1)});this.W||(this.W=a.then(function(f){return new _.uK(f.response,f.Qe,!0)}),setTimeout(function(){b.W=null},9E5))}else a=new LJc(c,d,this.context.H[a.clientId]),XL(this.context.Mj,"Qubz4b"),a=this.ma.enqueue(a);return a.then(function(f){return b.od([f.response,f.Qe,f.L_])},function(f){return b.od(void 0,
f)})};_.g.WR=function(a){var b=this,c=ZK(a.args[0],!!a.jc,eoc),d=_.C(c,_.zD,1)||_.C(c,_.CD,2),e=LM(this,a);return this.H.then(function(f){return f.Ue(d,e)}).then(function(f){return b.od([f])},function(f){return b.od(void 0,f)})};_.g.Ll=function(a){a=a.args[0];if(this.context.az)a?_.nkc(this.context.az,!0):this.context.mk().We()&&this.context.az.rM(!0).then(null,function(){});else try{this.context.Hj().Ll(a)}catch(b){return this.od(void 0,b)}return this.od([])};
_.g.Oy=function(a){var b=this,c=a.args[0];return this.context.Oy(c).then(function(d){return d?(b.context.Hj().Oy(c),b.Ha(c),b.context.Ls.fL().Gg(function(){return!c})):_.Sh(!c)}).then(function(d){return b.od([d])},function(d){return b.od(void 0,d)})};_.g.sync=function(){var a=this;return _.Uh([this.context.N$.promise,this.context.jfa.promise]).then(function(){return a.context.Ls.fL()}).then(function(){return a.od([])},function(b){return a.od(void 0,b)})};
_.g.hF=function(){try{var a=this.context.W5;a&&a.Zna();this.context.Rga.hF();return this.od([])}catch(b){return this.od(void 0,b)}};_.g.YR=function(){this.context.YR();return this.od([])};_.g.sr=function(a){var b=this,c=ZK(a.args[0],!!a.jc,_.jJ),d=LM(this,a);return this.H.then(function(e){return e.Ue(c,d)}).then(function(e){return b.od([e])},function(e){return b.od(void 0,e)})};
_.g.S$=function(a){var b=this,c=ZK(a.args[0],!!a.jc,_.kJ),d=LM(this,a);return this.H.then(function(e){return e.Ue(c,d)}).then(function(e){return b.od([e])},function(e){return b.od(void 0,e)})};_.g.g8=function(a){var b=this,c=ZK(a.args[0],!!a.jc,_.ZI),d=LM(this,a);return this.H.then(function(e){return e.Ue(c,d)}).then(function(e){return b.od([e])},function(e){return b.od(void 0,e)})};
_.g.aT=function(a){var b=this,c=ZK(a.args[0],!!a.jc,_.zJ),d=LM(this,a);return this.H.then(function(e){return e.Ue(c,d)}).then(function(e){return b.od([e])},function(e){return b.od(void 0,e)})};_.g.Q$=function(a){var b=this,c=ZK(a.args[0],!!a.jc,_.lJ),d=LM(this,a);return this.H.then(function(e){return e.Ue(c,d)}).then(function(e){return _.tI(b.context.Nc)?lyc(b.context.vf.tq,[_.C(e,_.Jk,2)],c.Cc()).then(function(){return e}):e}).then(function(e){return b.od([e])},function(e){return b.od(void 0,e)})};
_.g.i8=function(a){var b=this,c=ZK(a.args[0],!!a.jc,_.bJ),d=LM(this,a);return this.H.then(function(e){return e.Ue(c,d)}).then(function(e){return b.od([e])},function(e){return b.od(void 0,e)})};_.g.iu=function(a){var b=this,c=ZK(a.args[0],!!a.jc,_.sJ),d=LM(this,a);return this.H.then(function(e){return e.Ue(c,d).then(function(f){return _.tI(b.context.Nc)?jyc(b.context.vf.tq,f):f})}).then(function(e){return b.od([e])},function(e){return b.od(void 0,e)})};
_.g.hCb=function(a){var b=this,c=ZK(a.args[0],!!a.jc,_.UBc),d=new _.Agc(c,a.args[1],a.args[2]||void 0),e=LM(this,a);return this.H.then(function(f){return f.Ue(d,e)}).then(function(f){return b.od([f])},function(f){return b.od(void 0,f)})};
_.g.lCb=function(a){var b=this,c=ZK(a.args[0],!!a.jc,_.rJ),d=LM(this,a);return this.H.then(function(e){return e.Ue(c,d).then(function(f){return _.tI(b.context.Nc)?lyc(b.context.vf.tq,_.bk(f.od(),_.Jk,2),c.ud().getId()).then(function(){return f}):f})}).then(function(e){return b.od([e])},function(e){return b.od(void 0,e)})};
_.g.gQ=function(){var a=this;return(_.T(this.context.Nc.$f(),52,!1)?_.Sh(Awc(new zwc,0)):this.context.zI.gQ()).then(function(b){return a.od([b])},function(b){return a.od(void 0,b)})};_.g.jCb=function(a){var b=this,c=ZK(a.args[0],!!a.jc,_.zgc),d=LM(this,a);return this.H.then(function(e){return e.Ue(c,d)}).then(function(e){return b.od([e])},function(e){return b.od(void 0,e)})};
_.g.iCb=function(a){var b=this,c=ZK(a.args[0],!!a.jc,_.pJ),d=LM(this,a);return this.H.then(function(e){return e.Ue(c,d)}).then(function(e){return b.od([e])},function(e){return b.od(void 0,e)})};_.g.h8=function(a){var b=this,c=ZK(a.args[0],!!a.jc,_.$I),d=LM(this,a);return this.H.then(function(e){return e.Ue(c,d)}).then(function(e){return b.od([e])},function(e){return b.od(void 0,e)})};
_.g.wna=function(a){var b=this,c=ZK(a.args[0],!!a.jc,_.YH),d=LM(this,a);return this.H.then(function(e){return e.Ue(c,d)}).then(function(e){return b.od([e,null])},function(e){return b.od([null,_.BI(e)])})};_.g.rwb=function(){return this.od([!0])};_.g.nCb=function(a){var b=this,c=ZK(a.args[0],!!a.jc,_.dG),d=LM(this,a);return this.H.then(function(e){return e.Ue(c,d)}).then(function(e){return b.od([e])},function(e){return b.od(void 0,e)})};
_.g.oCb=function(a){var b=this,c=ZK(a.args[0],!!a.jc,_.Uz),d=LM(this,a);return this.H.then(function(e){return e.Ue(c,d)}).then(function(e){return b.od([e])},function(e){return b.od(void 0,e)})};_.g.s_=function(a){a=ZK(a.args[0],!!a.jc,_.gf);wEc(this.context.vf,[a]);return this.od([])};_.g.A7=function(a){var b=this,c=ZK(a.args[0],!!a.jc,_.WI),d=LM(this,a);return this.H.then(function(e){return e.Ue(c,d)}).then(function(e){return b.od([e])},function(e){return b.od(void 0,e)})};
_.g.cP=function(a){var b=this,c=ZK(a.args[0],!!a.jc,_.rM),d=LM(this,a);return this.H.then(function(e){return e.Ue(c,d)}).then(function(e){return wyc(c,e)}).then(function(e){return b.od(e)},function(e){return b.od(void 0,e)})};_.g.mCb=function(a){var b=this,c=new _.Hgc(ZK(a.args[0],!!a.jc,_.UVb),a.args[1]),d=LM(this,a);return this.H.then(function(e){return e.Ue(c,d)}).then(function(e){return b.od([e.response,e.pageToken])},function(e){return b.od(void 0,e)})};
_.g.r9a=function(a){var b=this,c=ZK(a.args[0],!!a.jc,_.cG),d=LM(this,a);return this.H.then(function(e){return e.Ue(c,d)}).then(function(e){return b.od([e])},function(e){return b.od(void 0,e)})};_.g.Z_=function(a){var b=this,c=ZK(a.args[0],!!a.jc,_.oK),d=LM(this,a);return this.H.then(function(e){return e.Ue(c,d)}).then(function(e){return b.od([e])},function(e){return b.od(void 0,e)})};
_.g.Qo=function(a){var b=a.args.map(function(c){return ZK(c,!!a.jc,_.xI)});this.context.vf.Qo(b);gFc(this.context.vf);return this.od([])};_.g.B7=function(){var a=this,b=this.context.az;return(b?b.rM():_.Sh(_.Xjc(0))).then(function(c){return a.od([c])},function(c){return a.od(void 0,c)})};
_.g.initialize=function(){var a=this;if(!this.O){this.O=_.Vh();this.context.Sf().info("drive.ds.sync.cacheproxy.WorkerSyncedItemService","Initializing with client build: "+this.context.Nc.Ki());this.Qc.listen(this.context,_.Cc,function(e){e=e.error;var f=e.Sg;f&&3===f.getType()&&!a.ha?(a.ha=!0,a.O.reject(e)):qrc(a.context.Sf(),"drive.ds.sync.cacheproxy.WorkerSyncedItemService","An error occurred in the Shared Worker")});var b=this.context.Mj,c=["hVFf7"];_.dK(this.context.Nc)&&c.push("BNEDtc");WL(b,
c,function(){a.ha||(a.ha=!0,a.O.resolve())});WL(b,["GZTDpc"],function(){return a.Ba.resolve()});var d=function(){AM(a.context).then(function(e){return void e.start()})};WL(b,["T8oKm","ZA9qG"],function(){return void d()});WL(b,["T8oKm","mrK8ic"],function(){return void d()});b.start();XL(b,"NSockf")}return this.O.promise};_.g.iba=function(){return this.Ba.promise};_.g.Eu=function(){var a=this.context.W5;a&&a.dispose();return this.context.Eu()};
var LM=function(a,b){return(a=a.context.H[b.clientId])?{xD:a}:{}};
var SJc=function(a,b,c){JM.call(this,"DU",b);this.context=a;this.O=c;this.H=new ICc(a)};_.N(SJc,JM);_.g=SJc.prototype;
_.g.PU=function(){var a=this,b={};return b["5.1"]=function(){return a.Gha()},b["5.2"]=function(c){return a.QM(c)},b["5.4"]=function(c){return a.Ez(c)},b["5.5"]=function(){return a.bR()},b["5.10"]=function(){return a.qN()},b["5.6"]=function(){return a.eda()},b["5.7"]=function(){return a.MS()},b["5.9"]=function(c){return a.wpa(c)},b["5.8"]=function(c){return a.P4(c)},b["5.11"]=function(){return a.Woa()},b["5.12"]=function(c){return a.getState(c)},b["5.13"]=function(c){return a.Ll(c)},b};
_.g.Gha=function(){var a=this;this.context.Ls.fS();var b=this.context.Nc;return wAc(_.bK(_.nI(b)),_.cK(b),this.context.Sf()).Gg(function(){}).then(function(){return a.od([])})};_.g.QM=function(a){a=this.context.vf.um.H(a.args[0]);return this.od([a])};_.g.Ez=function(a){var b=this;return this.context.OA.Ez(a.args[0]).then(function(c){return b.od([c])})};_.g.bR=function(){return this.od(this.context.OA.bR())};
_.g.P4=function(a){var b=this,c=ZK(a.args[0],!!a.jc,_.afc),d=a.args[1],e=a.args[2];if(_.C(c,_.uI,3)||_.C(c,_.FJ,4)||_.C(c,_.BK,5)||_.C(c,_.CJ,6)||_.C(c,_.dJ,7)||_.C(c,_.XI,8)||_.C(c,_.aJ,9)||_.C(c,_.EI,10)){var f=Hwc(c);return this.context.Qm().then(function(h){return h.Ue(f,{u5a:d,v5a:e})}).then(function(h){a:{var k=[],l="";if(h instanceof _.CK){k=h.od().Bd();var p=_.B(h,2);l=h.Xn()}else if(h instanceof _.HJ)h.getItem()&&k.push(h.getItem()),p=h.YM();else{h=b.od(void 0,Error("fg"));break a}h=b.od([p,
l].concat(_.od(k)))}return h},function(h){return b.od(void 0,h)})}return _.Sh(this.od(void 0,Error("eg")))};_.g.wpa=function(){var a=this.context.Nc,b=a.$f();a="email:"+_.nI(a).getEmail().replace(/@.*$/,"");_.y(b,13,a);return this.od([])};_.g.eda=function(){this.context.QF.H=new lzc(_.Rg().substring(0,8));return this.od([])};_.g.MS=function(){var a=this.context.QF.qN();if(a){var b=nzc(this.context.QF);a=[a.zda,a.startTime].concat(_.od(b))}else a=[];b=this.context.QF;b.H=null;b.yY=[];return this.od(a)};
_.g.qN=function(){var a=this.context.QF.qN();return this.od(a?[a.zda,a.startTime]:[])};_.g.getState=function(){var a=this;return this.H.getState(this.va).then(function(b){return a.od([b])})};_.g.Woa=function(){var a=[this.O.Eu(),_.yi(3E4)];_.Wh(_.Uja(a),function(){_.n.setTimeout(function(){self.close()})});return this.od([])};_.g.Ll=function(a){this.H.Ll(a.args[0]);return this.od([])};
var TJc=function(a,b,c,d,e,f,h){_.NK.call(this,a,b,c,d,f,h);this.H=e;this.Fd=null};_.N(TJc,_.NK);TJc.prototype.yM=function(a,b){var c=this;return _.ci(this.H.then(function(d){return d.L1a(bnc(c.O,c.va,a,b,c.hj,c.ha))},null))};TJc.prototype.ma=function(a,b){var c=this.ud(a);if(c){var d=0;if(c.file){var e=c.request&&c.request.Ez();e&&(d=_.B(e,1));0===d&&(d=c.file.size)}this.dispatchEvent(new _.zkc(a,b,d))}};
var UJc=function(a,b,c,d,e,f,h,k){JM.call(this,"FU",k);this.ka=a;this.ha=b;this.ta=c;this.Ba=d;this.W=e;this.ma=f;this.Fd=h;this.H={};this.O={};this.Qc=new _.Le(this);this.Ma(this.Qc)};_.N(UJc,JM);_.g=UJc.prototype;
_.g.PU=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.jG(c)},b["7.4"]=function(c){return a.retry(c)},b["7.5"]=function(c){return a.yM(c)},b["7.6"]=function(c){c=c.clientId+":"+c.requestId;a.H[c]&&(a.H[c].dispose(),delete a.H[c]);return a.od([])},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.od([])},b};
_.g.upload=function(a){var b=this,c=a.clientId+":"+a.requestId,d=ZK(a.args[0],!!a.jc,_.XI),e=a.args[1];if(!this.H[c]){var f=new TJc(this.ka,this.ha,this.ta,this.Ba,this.W,this.ma,this.Fd);this.Qc.listen(f,"Lb",_.Db(this.s9a,a.clientId,a.requestId));this.Ma(f);this.H[c]=f}return this.H[c].upload(d,e,void 0,function(h,k){var l=a.clientId,p=a.requestId,q=d.aj(),r=_.Vh();b.O[q]=r;b.update(l,p,VJc(3,q,[h,k]));return r.promise}).then(function(h){return b.od([h])},function(h){return b.od(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.od([])};_.g.jG=function(a){a=a.clientId+":"+a.requestId;this.H[a]&&this.H[a].jG();return this.od([])};
_.g.retry=function(a){var b=this,c=a.requestId,d=a.clientId+":"+c;if(this.H[d]){var e=a.args[0],f=a.args.slice(1),h=this.H[d].retry(f),k={},l=0;_.Ja(f,function(p){k[p]=h[l++]});_.Ma(k,function(p,q){p.hg(function(r){b.update(a.clientId,c,VJc(0,e,[q,r]))},function(r){b.update(a.clientId,c,VJc(1,e,[q,r.Sg]))})});return this.od([])}return this.od(void 0,_.BI("Could not retry upload."))};
_.g.yM=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=bnc(b.O,b.va,c,a,b.hj,b.ha),this.od([koc(c)])):this.od(void 0,_.BI("FileUploader not found."))};_.g.s9a=function(a,b,c){this.update(a,b,VJc(2,c.requestId,[c.progress,c.totalBytes]))};var VJc=function(a,b,c){return[Number(a),b].concat(_.od(c))};
var WJc=function(a,b){JM.call(this,"IE",b);this.O=a;this.H=new Map};_.N(WJc,JM);WJc.prototype.PU=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};
WJc.prototype.export=function(a){var b=this,c=a.requestId,d=a.clientId+":"+c,e=ZK(a.args[0],!!a.jc,_.ygc);e=new vM(this.O,e);var f=_.Be(e,"Pb",function(h){b.update(a.clientId,c,[h.jOa,h.yta])});_.De(e,function(){_.si(f);b.H.delete(d)});this.H.set(d,e);return e.start().then(function(h){return b.od([h])},function(h){return b.od(void 0,h)})};WJc.prototype.cancel=function(a){(a=this.H.get(a.clientId+":"+a.requestId))&&a.cancel();return this.od([])};
var XJc=function(a,b){JM.call(this,"ODS",b);this.context=a;this.H=!1;this.W=_.Vh();this.O=new NCc(a,a.Og)};_.N(XJc,JM);XJc.prototype.PU=function(){var a=this,b={};return b["6.1"]=function(c){return YJc(a,c)},b["6.2"]=function(c){return ZJc(a,c)},b["6.3"]=function(){a.H&&(QCc(a.O),a.H=!1,a.W=_.Vh());return a.od([])},b};
var YJc=function(a,b){if(!a.H){a.H=!0;var c=b.args.map(function(d){return ZK(d,!!b.jc,_.dl)});a.O.ql(c);XL(a.context.Mj,"GZTDpc");a.W.resolve()}return a.od([])},ZJc=function(a,b){return a.W.promise.then(function(){var c=b.args.map(function(d){return ZK(d,!!b.jc,_.xI)});PCc(a.O,c);return a.od([])})};
var $Jc=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("Hg`"+b);a.services.set(b,new _.Xh)})};$Jc.prototype.activate=function(a){var b=this.services.get(a.V);if(b&&!b.ag())b.callback(a);else throw Error("Ig`"+a.V);};var aKc=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)})};$Jc.prototype.Bo=function(){return[].concat(_.od(this.services.values())).every(function(a){return a.ag()})};
var bKc=function(){},cKc={0:2E3,1:3E3,2:5E3},dKc=function(a,b){this.request=a;this.ha=b;this.O=_.Vh();this.continuationToken="";this.V=0;this.xE=this.W=!1;this.H=bKc};dKc.prototype.Zg=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=bKc;b.V=0;return c},function(c){b.H=bKc;b.V=0;return Promise.reject(c)})};
dKc.prototype.sendRequest=function(){var a=this;if(this.xE)this.O.resolve((new qM).Dc(8));else{var b=new _.Lgc(this.request,this.continuationToken);this.ha.then(function(c){return c.Ue(b)}).then(function(c){eKc(a,c)},function(c){a.handleError(c)})}};var eKc=function(a,b){var c;a.continuationToken=null!==(c=b.Xn())&&void 0!==c?c:"";a.H(b);a.continuationToken?setTimeout(function(){a.sendRequest()},fKc(a.V++,a.ka)):a.O.resolve(b)};dKc.prototype.handleError=function(a){a=_.uB(a);this.O.reject(a)};
dKc.prototype.cancel=function(){this.xE=!0};var fKc=function(a,b){return b?b:(a=cKc[a])?a:1E4};
var gKc=function(a,b){JM.call(this,"TM",b);this.O=a;this.H=new Map};_.N(gKc,JM);gKc.prototype.PU=function(){var a=this,b={};return b["10.1"]=function(c){return hKc(a,c)},b["10.2"]=function(c){return a.cancel(c)},b};
var hKc=function(a,b){var c=b.clientId+":"+b.requestId,d=ZK(b.args[0],!!b.jc,_.zBc);d=new dKc(d,a.O);a.H.set(c,d);return _.Wh(d.Zg(function(e){var f;a.update(b.clientId,null!==(f=b.requestId)&&void 0!==f?f:"",[e])}).then(function(e){return a.od([e])},function(e){return a.od(void 0,e)}),function(){a.H.delete(c)})};gKc.prototype.cancel=function(a){this.H.get(a.clientId+":"+a.requestId).cancel();return this.od([])};
var MM=function(a,b,c){_.O.call(this);this.H=a;this.hw=b;this.kb=c;this.fields=null;this.Ha=!1;this.Ka=_.Vh();this.W=!1;this.Ba=_.Vh();this.O=_.Vh();this.ta=null;this.va=this.Ta=!1;this.yb=_.Vh();this.ha=new Set;this.Fa=new Set;this.V=new Map;this.ma=new Set;this.XB=Date.now();this.services=new $Jc;this.Lb=new _.Le(this);this.Ma(this.Lb)};_.N(MM,_.O);MM.prototype.gY=function(a){this.O.promise.then(function(b){b.W5||a.PLa(b)})};
var lKc=function(a,b){var c=rJc(a.H,b),d=a.Rb.bind(a,c);PL(b,"8.1",d);b.registerService("8.1",d);PL(b,"8.4",a.Pa.bind(a,c));b.registerService("8.5",function(f){return iKc(a,c,f)});PL(b,"8.2",a.Gb.bind(a,c));PL(b,"8.3",a.Nb.bind(a,c));aKc(a.services,b);b.start();jKc(a,c,b);a.ka(c,b);var e=[];a.ta||(a.ta=_.Uh([a.Ka.promise,a.Ba.promise]).then((0,_.u)(a.initialize,a)));e.push(a.ta);_.Uh(e).then(function(){return void kKc(a,c,b)},function(f){a.Ta=!0;QL(b,"2.2",{err:_.BI(f).jc()},d)})},mKc=function(a){return Math.floor((Date.now()-
a.XB)/1E3)},nKc=function(a,b,c){var d=function(e){QL(b,"2.8",{au:"nb"===e.type})};a.Lb.listen(c.zI,["nb","ob"],d);_.De(b,a.Lb.Wc.bind(a.Lb,c.zI,["nb","ob"],d))},oKc=function(a,b,c){var d=c.mk(),e=[].concat(_.od(Object.values(_.vB))),f=function(h){QL(b,"2.19",{cs:h.connectionState})};a.Lb.listen(d,e,f);_.De(b,function(){a.Lb.Wc(d,e,f)})};
MM.prototype.Rb=function(a){var b=sJc(this.H,a);if(b&&((this.services.services.get("LRM")||null).addCallback(function(d){vJc(d,a)}),b.dispose(),this.log(_.wt("Client %d disconnected (num clients remaining: %d)",a,_.Qa(this.H.channels))),0===_.Qa(this.H.channels))){var c=function(){_.n.setTimeout(function(){self.close()})};this.Ta?c():(this.services.services.get("IS")||null).addCallback(function(d){_.Wh(d.Eu(),c)})}};
MM.prototype.Pa=function(a,b){if(this.ha.has(a))return _.Sh();var c=new _.Yb(JSON.parse(b.dsc));_.y(c,24,!1);this.Ha||(this.Ha=!0,this.Ka.resolve(c));this.ha.add(a);return this.O.promise.then(function(d){mJc(d,a,_.E(c.$f(),37,""));lJc(d,_.Td(c,28));d.vf.dla(_.bk(c,_.Dl,91));return d.xX.promise.then(function(){wEc(d.vf,_.bk(c,_.gf,44))})},function(){})};
MM.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 DDc(e,e.Og);e.Zg(d);e.dispose();(e=c.H.channels[a]||null)&&QL(e,"2.16")})}};MM.prototype.Nb=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){pKc(new gEc(h),e);(h=c.H.channels[a]||null)&&QL(h,"2.17",{t:f})})}};
var pKc=function(a,b){b.filter(function(c){return c}).forEach(function(c){return a.Zg(c)});a.dispose()};MM.prototype.$a=function(){for(var a=[],b={},c=_.m(_.Ra(this.H.channels)),d=c.next();!d.done;b={bea:b.bea,Eea:b.Eea},d=c.next())b.bea=d.value,b.Eea=_.Vh(),QL(b.bea,"2.12",void 0,function(e){return function(){e.bea.dispose();e.Eea.resolve()}}(b)),a.push(b.Eea.promise);return _.Uh(a).then()};
MM.prototype.initialize=function(a){var b=this;a=a[0];_.dic(a,this.fields);var c=_.C(a,_.KI,58);c=c&&_.T(c,1,!1)?this.kb:void 0;try{var d=new aL(null,a,this.hw,c,void 0,void 0),e=d.Rk().H(106E3);TIc(d,this.$a.bind(this));this.Lb.listen(d.Hj(),"Fb",function(k){k={os:k.We()};for(var l=_.m(_.Ra(b.H.channels)),p=l.next();!p.done;p=l.next())QL(p.value,"2.6",k)});this.Lb.listen(d,_.Cc,this.rb);this.Lb.listen(d,"w8KrJc",this.Jc);Ewc(d.zI,this.ka.bind(this));var f=d.az;f&&Frc(f,function(){return b.ka()});
this.O.resolve(d);var h=qKc(this,d,new RJc(d,this.H,(0,_.u)(this.tc,this),(0,_.u)(this.Bc,this)));e&&h.then(function(){return e&&e.Yj()});return h}catch(k){return _.Th(k)}};
var qKc=function(a,b,c){a.services.activate(c);a.services.activate(new tJc(b,a.H));a.services.activate(new SJc(b,a.H,c));a.services.activate(new XJc(b,a.H));a.services.activate(new UJc(b.Nc,b.OA,b.aR().hfa,b.Qm(),b.bQ,b.Sf(),b.Rk(),a.H));a.services.activate(new WJc(b.Qm(),a.H));a.services.activate(new gKc(b.Qm(),a.H));return c.initialize()},kKc=function(a,b,c){var d=_.Qa(a.H.channels);a.log(_.wt("Client %d connected (num clients: %d, added: %d, max concurrent: %d)",b,d,a.H.O,a.H.H));QL(c,"2.2",{id:b,
clients:d,uptimeSec:mKc(a),dsp:!a.V.has(b),ivd:!a.ma.has(b)});a.O.promise.then(function(e){e.HZ.addCallback(function(f){c.isDisposed()||QL(c,"2.5",{id:f})});1<d&&AM(e).addCallback(function(f){return f.Ova()});(a.services.services.get("IS")||null).addCallback(function(f){f.iba().then(function(){c.isDisposed()||QL(c,"2.14")})});nKc(a,c,e);oKc(a,c,e)})};MM.prototype.tc=function(a){a={dt:a.dataType};for(var b=_.m(_.Ra(this.H.channels)),c=b.next();!c.done;c=b.next())QL(c.value,"2.15",a)};
MM.prototype.Bc=function(a){var b={oois:a};_.Ra(this.H.channels).forEach(function(c){QL(c,"2.18",b)})};MM.prototype.rb=function(a){a={p:a.error.Sg.jc()};for(var b=_.m(_.Ra(this.H.channels)),c=b.next();!c.done;c=b.next())QL(c.value,"2.10",a)};MM.prototype.Jc=function(){for(var a=_.m(_.Ra(this.H.channels)),b=a.next();!b.done;b=a.next())QL(b.value,"2.7")};var jKc=function(a,b,c){a.ha.has(b)?_.Sh():new _.Rh(function(d){QL(c,"2.1",void 0,function(e){d(a.Pa(b,e))})})};
MM.prototype.ka=function(a,b){var c=this;if("number"===typeof a){if(!b)return _.Th(Error("Jg"));if(this.W&&this.Fa.has(a))return _.Sh()}b=b||_.Ra(this.H.channels)[0];if(!b)return _.Th(Error("Kg"));var d=_.Vh();b.send("1.1",void 0,function(e){iKc(c,a,e);d.resolve()});return d.promise};var iKc=function(a,b,c){_.Ma(c.ac,function(d,e){_.n[e]=d});"number"===typeof b&&a.Fa.add(b);a.W||(c.bl&&!a.va&&(a.va=!0,a.yb.resolve(c.bl)),a.fields||(a.fields=c.ufds),a.W=!0,a.Ba.resolve())};
MM.prototype.log=function(a){this.O.promise.then(function(b){return b.Sf().info("drive.ds.sync.cacheproxy.Worker",a)})};
var rKc=function(a,b){IM.call(this,"DU","drive.ds.sync.DebugUtilProxy",a);this.context=b;this.H=null};_.N(rKc,IM);_.g=rKc.prototype;_.g.La=function(){return _.C(this.context.Nc,_.KI,58)};_.g.getContext=function(){return this.context};_.g.Ez=function(){return _.ci(this.send("5.4",[this.H],function(a,b){return ZK(a[0],b,_.Ric)}))};_.g.Sf=function(){return this.context.Sf()};_.g.QM=function(a){return _.ci(this.send("5.2",[a],function(b,c){return b[0]?ZK(b[0],c,_.dl):null}))};
_.g.bR=function(){return _.ci(this.send("5.5",[],function(a,b){return a.map(function(c){return ZK(c,b,_.afc)})}))};_.g.P4=function(a,b,c){return _.ci(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 ZK(k,e,_.dl)}),fia:f,pageToken:h}}))};_.g.wpa=function(){this.send("5.9",[])};_.g.Gha=function(){this.send("5.1",[])};_.g.Z8=function(){return _.Efc[_.Mj(this.context.Nc.$f(),8,0)]};_.g.eda=function(){this.send("5.6",[])};
_.g.MS=function(){return _.ci(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 ZK(e,b,Iwc)});return{traceId:new lzc(c,d),spanRecs:a}}))};_.g.qN=function(){return _.ci(this.send("5.10",[],function(a){return 0===a.length?null:new lzc(a[0],new Date(a[1]))}))};_.g.getState=function(){return _.ci(this.send("5.12",[],function(a){return a[0]}))};_.g.Woa=function(){this.send("5.11",[])};_.g.Ll=function(a){this.send("5.13",[a])};
var sKc=function(a,b){IM.call(this,"IE","drive.ds.sync.itemexport.ItemExportSessionProxy",a);this.request=b;this.promise=null;this.id=String(_.Da(this))};_.N(sKc,IM);sKc.prototype.start=function(){var a=this;this.promise||(this.promise=this.send("9.1",[this.request],function(b,c){return ZK(b[0],c,$Bc)},this.id).then(),this.promise.then(function(){return a.dispose()},function(){return a.dispose()}));return this.promise};sKc.prototype.cancel=function(){this.send("9.2",[],void 0,this.id)};
sKc.prototype.v$=function(a,b,c){this.dispatchEvent(new lCc(c[0],c[1]))};
var tKc=function(a){IM.call(this,"ODS","drive.ds.sync.offline.DataServiceProxy",a);this.H=null};_.N(tKc,IM);tKc.prototype.iY=function(a){var b=this;(this.H=a)?(this.log("Querying all offline items."),this.H.rV().hg(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.v_(function(c){b.log("Forwarding offline items changes, count:"+c.length);b.send("6.2",c)})):this.send("6.3",[])};
var uKc=function(a,b){dM.call(this,a,b)};_.N(uKc,dM);uKc.prototype.Vha=function(a,b,c){return new _.Hgc(a,c)};uKc.prototype.gka=function(a){return a.pageToken||""};uKc.prototype.xja=function(a){return a.response.O()};uKc.prototype.U5=function(){};
var vKc=function(a,b,c){uM.call(this,a.Hj(),a.mk(),b.Li()||void 0);this.request=b;this.O=[];this.changed=!1;this.ka=c;this.V=new uKc(this.request,this.ka)};_.N(vKc,uM);_.g=vKc.prototype;_.g.UG=function(){this.V.Zg().then(this.t9a.bind(this),this.handleError.bind(this))};_.g.getData=function(){return rBc(new pM,this.O).Dc(this.status)};_.g.vr=function(){return new pBc};_.g.Rj=function(){return!this.We()&&(!this.H||yyc(this.V))};_.g.t9a=function(a){this.changed=this.H=!0;this.O=a;this.Tt()};
_.g.Tt=function(){if(this.active){var a=this.status;this.EL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ki(_.Dc,this))}};_.g.hc=function(){return this.O.length};
var wKc=function(a,b,c){uM.call(this,a.Hj(),a.mk(),b.Li()||10);this.request=b;this.O=[];this.data=[];this.changed=!1;this.V=new _.s7a;this.suggestionSessionId=null;this.ka=c};_.N(wKc,uM);_.g=wKc.prototype;_.g.UG=function(){var a=this;this.ka(this.request).then(function(b){a.H=!0;a.changed=!0;a.data=b.mj();a.suggestionSessionId=b.Wf();a.Tt()},this.handleError.bind(this))};_.g.getData=function(){this.O=this.data;return _.Xmc(_.Wmc((new _.PK).Dc(this.status),this.data.slice(0)),this.suggestionSessionId)};
_.g.vr=function(){var a=this.V.Fz(this.O,this.data);this.O=this.data;var b=(new vBc).Dc(this.status);return _.Wj(b,2,a)};_.g.$O=function(){};_.g.Tt=function(){var a=this.status;this.EL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ki(_.Dc,this))};_.g.hc=function(){return this.data.length};
var xKc=function(){};_.g=xKc.prototype;_.g.AM=function(a,b){b=RBc(1).setPosition(b);_.J(b,2,a);return b};_.g.zM=function(a,b){b=RBc(2).setPosition(b);_.J(b,2,a);return b};_.g.CE=function(a,b,c){b=RBc(3).Py(b).setPosition(c);_.J(b,2,a);return b};_.g.oQ=function(a,b){b=RBc(4).setPosition(b);_.J(b,2,a);return b};_.g.$M=function(a){return _.C(a,_.tvc,2)};
var zKc=function(){_.yy.call(this,new xKc,function(a){return yKc(a)})};_.N(zKc,_.yy);var yKc=function(a){switch(_.Kj(a,svc[0])){case 6:return _.Zx(_.C(a,_.Yx,6)).getTime().toString();case 7:var b=_.C(a,_.IL,7);a=_.C(b,_.Yx,1);b=b.xr();return a&&b?(a=_.Zx(a).getTime(),_.Zx(b).getTime()+"--"+a):"";default:return""}},BKc=function(){AKc||(AKc=new zKc);return AKc},AKc;
var CKc=function(a,b,c,d){uM.call(this,b.Hj(),b.mk(),d);this.request=a;this.V=!1;this.ka=[];this.O=[];this.token="";this.changed=!1;this.ma=new _.hkc(_.gk(b.Nc.$f(),6,1E3));this.ta=c};_.N(CKc,uM);_.g=CKc.prototype;_.g.activate=function(){uM.prototype.activate.call(this);this.Tt()};_.g.UG=function(){_.S(this.request,3)?this.page():this.poll()};_.g.Fr=function(a){if(a=a||50,this.O.length>this.limit)this.changed=!0;uM.prototype.Fr.call(this,a)};
_.g.getData=function(){var a=(new WBc).Dc(this.status);_.Wj(a,2,this.O.slice(0,this.limit));this.ka=_.xa(this.O);return a};_.g.vr=function(){var a=BKc().Fz(this.ka,this.O),b=new TBc;a=_.Wj(b,2,a).Dc(this.status);this.ka=_.xa(this.O);return a};_.g.Rj=function(){return!this.We()&&(!this.H||this.O.length>this.limit||!!this.token)};_.g.ud=function(){return this.request};
_.g.page=function(a){var b=this;this.active?(this.V=!0,this.Rj()&&this.O.length<this.limit?this.ta(this.request,this.limit-this.O.length,this.token).then(function(c){b.H=!0;var d=_.bk(c,_.tvc,1);b.O=b.O.concat(d);b.token=c.my()||"";0<d.length&&(b.changed=!0);b.Tt();b.page(a)},function(c){b.dispatchEvent(new _.rc(c));b.V=!1}):(this.V=!1,a&&a.callback(),DKc(this))):this.V=!1};
_.g.poll=function(){var a=this;this.active&&(this.V=!0,this.ta(this.request,this.limit).then(function(b){BKc();a.H=!0;var c=_.bk(b,_.tvc,1);eL(0,a.O.slice(0,c.length),c)?(a.O=c,a.token=b.my()||"",a.changed=!0,a.Tt(),a.page()):(a.V=!1,DKc(a))},function(b){a.dispatchEvent(new _.rc(b));a.V=!1}))};_.g.Tt=function(){if(this.active){var a=this.status;this.EL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ki(_.Dc,this))}};
_.g.EL=function(){this.We()&&!this.H?this.status=2:this.status=this.O.length<this.limit&&(!this.H||this.token)?6:1};_.g.$O=function(){this.active&&this.Rj()&&!this.V&&this.page(new _.Xh)};var DKc=function(a){_.S(a.request,3)||(_.RH(a.ma),_.n.setTimeout((0,_.u)(a.poll,a),a.ma.Ya()))};CKc.prototype.hc=function(){return this.O.length};
var EKc=function(){};_.g=EKc.prototype;_.g.AM=function(a,b){return YBc(XBc(1),a).setPosition(b)};_.g.zM=function(a,b){return YBc(XBc(2).setPosition(b),a)};_.g.CE=function(a,b,c){return YBc(XBc(3).Py(b).setPosition(c),a)};_.g.oQ=function(a,b){return YBc(XBc(4),a).setPosition(b)};_.g.$M=function(a){return _.C(a,_.kM,2)};
var FKc=function(){_.yy.call(this,new EKc,function(a){return a.getId()})};_.N(FKc,_.yy);var HKc=function(){GKc||(GKc=new FKc);return GKc},GKc;
var IKc=function(a,b,c){uM.call(this,b.Hj(),b.mk());this.request=a;this.ka=[];this.O=[];this.changed=!1;this.V=new _.hkc(_.gk(b.Nc.$f(),54,1E3));this.ma=c};_.N(IKc,uM);_.g=IKc.prototype;_.g.activate=function(){uM.prototype.activate.call(this);this.Tt()};_.g.UG=function(){this.poll()};_.g.getData=function(){var a=new fCc;a=_.Wj(a,2,this.O).Dc(this.status);this.ka=_.xa(this.O);return a};_.g.vr=function(){var a=HKc().Fz(this.ka,this.O),b=new dCc;a=_.Wj(b,2,a).Dc(this.status);this.ka=_.xa(this.O);return a};
_.g.Rj=function(){return!this.We()&&!this.H};_.g.poll=function(){var a=this,b=new _.Xh;this.ma(this.request).then(function(c){a.H=!0;c=_.bk(c,_.kM,2);eL(HKc(),a.O,c)&&(a.changed=!0,a.O=c,a.V.reset());a.Tt();b.callback();JKc(a)},function(c){a.dispatchEvent(new _.rc(c));b.Jd(c);JKc(a)});return b};_.g.Tt=function(){if(this.active){var a=this.status;this.EL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ki(_.Dc,this))}};_.g.$O=function(){};
var JKc=function(a){a.active&&(_.n.setTimeout((0,_.u)(a.poll,a),a.V.Ya()),_.RH(a.V))};IKc.prototype.hc=function(){return this.O.length};
var KKc=function(){};_.g=KKc.prototype;_.g.AM=function(a,b){return aBc($Ac(1),a).setPosition(b)};_.g.zM=function(a,b){return aBc($Ac(2).setPosition(b),a)};_.g.CE=function(a,b,c){return aBc($Ac(3).Py(b).setPosition(c),a)};_.g.oQ=function(a,b){return aBc($Ac(4),a).setPosition(b)};_.g.$M=function(a){return _.C(a,_.Jk,2)};
var LKc=function(){_.yy.call(this,new KKc,function(a){return a.getId()})};_.N(LKc,_.yy);_.Mf(LKc);
var NM=function(a,b,c){_.P.call(this);this.context=a;this.request=b;this.nextPageToken="";this.H=this.O=!1;this.limit=0;this.permissions=[];this.V=c};_.N(NM,_.P);NM.prototype.ui=function(a){this.limit=a};NM.prototype.Zg=function(){return this.H||this.O&&""===this.nextPageToken?Promise.resolve():MKc(this)};NM.prototype.ika=function(){return this.permissions};
var MKc=function(a){a.O=!0;a.H=!0;var b=Math.min(a.limit-a.permissions.length,100);var c=new _.rJ;c=_.J(c,3,a.request);c=_.y(c,2,a.nextPageToken);b=_.y(c,1,b);return a.V(b).then(a.W.bind(a)).then(null,a.handleError.bind(a))};NM.prototype.W=function(a){this.H=!1;this.nextPageToken=a.Xn()||"";a=_.bk(a.od(),_.Jk,2);this.permissions=_.wa(this.permissions,a);a.length&&this.dispatchEvent("Aa");if(this.nextPageToken&&this.permissions.length<this.limit)return MKc(this);this.dispatchEvent("Da")};
NM.prototype.handleError=function(a){this.H=!1;a=new iL(_.BI(a),_.gk(this.context.Nc.$f(),1,1));this.dispatchEvent(a)};
var NKc=function(a,b,c,d){uM.call(this,b.Hj(),b.mk(),d||100);var e=this;this.request=a;this.context=b;this.ka=[];this.permissions=[];this.changed=!1;this.V=null;this.ma=c;this.O=new NM(b,this.request,this.ma);_.De(this,function(){e.V&&(_.n.clearTimeout(e.V),e.V=null)})};_.N(NKc,uM);_.g=NKc.prototype;_.g.activate=function(){uM.prototype.activate.call(this);this.Tt()};_.g.UG=function(){this.query()};_.g.Fr=function(a){uM.prototype.Fr.call(this,a||100)};
_.g.getData=function(){var a=new hL;a=_.Wj(a,2,this.permissions.slice(0,this.limit)).Dc(this.status);this.ka=_.xa(this.permissions);return a};_.g.vr=function(){var a=LKc.tb().Fz(this.ka,this.permissions),b=new hBc;a=_.Wj(b,2,a).Dc(this.status);this.ka=_.xa(this.permissions);return a};_.g.Rj=function(){var a;(a=!this.We())&&!(a=!this.H)&&(a=this.O,a=!a.O||""!==a.nextPageToken);return a};_.g.ud=function(){return this.request};
_.g.query=function(){var a=this;this.O=new NM(this.context,this.request,this.ma);this.O.ui(this.limit);return this.O.Zg().then(function(){return OKc(a)},function(b){return a.handleError(b)})};_.g.handleError=function(a){uM.prototype.handleError.call(this,a);PKc(this)};var OKc=function(a){a.H=!0;var b=a.O.ika();eL(LKc.tb(),a.permissions,b)&&(a.changed=!0,a.permissions=b);a.Tt();PKc(a)};
NKc.prototype.Tt=function(){if(this.active){var a=this.status;this.EL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ki(_.Dc,this))}};NKc.prototype.$O=function(){var a=this;this.O.ui(this.limit);this.O.Zg().then(function(){return OKc(a)},function(b){return a.handleError(b)})};var PKc=function(a){if(a.active){var b=a.context.Nc.$f();a.V=_.n.setTimeout((0,_.u)(a.query,a),Math.ceil(_.gk(b,7,9E5)*Math.random())+_.gk(b,15,36E5))}};NKc.prototype.hc=function(){return this.permissions.length};
var QKc=function(a){6!==a.status&&_.n.setTimeout(function(){a.dispatchEvent(new _.ki(_.Dc,a))},0)};
var RKc=function(){},SKc=function(a,b){IM.call(this,"TM","drive.ds.sync.TeamDriveMovePreflightRunnerProxy",a);this.request=b;this.O=RKc;this.H=null;this.id=String(_.Da(this))};_.N(SKc,IM);SKc.prototype.v$=function(a,b,c){a===this.id&&(a=_.m(c).next().value,this.O(ZK(a,b,qM)))};SKc.prototype.Zg=function(a){a=void 0===a?RKc:a;if(!this.H){this.O=a;var b=_.Vh();this.H=b;this.send("10.1",[this.request],function(c,d){return ZK(c[0],d,qM)},this.id).then(function(c){return void b.resolve(c)},function(c){return void b.reject(c)})}return this.H.promise};
SKc.prototype.cancel=function(){this.send("10.2",[this.request],void 0,this.id)};
var TKc=function(a,b,c){_.P.call(this);var d=this;this.instanceId=a;this.H=b;this.V=c;this.yu={};this.O={};_.De(this,function(){d.H("7.6",[])})};_.N(TKc,_.P);_.g=TKc.prototype;_.g.getId=function(){return this.instanceId};_.g.nQ=function(){return _.$H()};
_.g.upload=function(a,b){!_.B(a,26)&&b&&b.lastModified&&_.y(a,26,b.lastModified);var c;b&&(c=b.type?b:new File([b],b.name,{type:b.type}));if(b){var d=new _.iic;_.y(d,1,b.size);_.J(a,15,d);this.O[a.aj()]=b}return _.ci(this.H("7.1",[a,c],function(e,f){return ZK(e[0],f,_.HJ)}))};_.g.cancel=function(a){this.H("7.2",[a])};_.g.jG=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 _.Xh;c=this.nQ();this.yu[c]=b;b=_.Ra(b);this.H("7.4",[c].concat(_.od(a)));return b};_.g.yM=function(a,b){var c=this;return _.ci(this.H("7.5",[a].concat(_.od(b)),function(d){return loc(d[0])}).then(function(d){return c.V.addCallback(function(e){return e.L1a(d)})}))};var UKc=function(a,b,c,d){if(a.yu[b]&&a.yu[b][c]){var e=a.yu[b][c];d instanceof _.HJ?e.callback(d):e.Jd(d);delete a.yu[b][c];_.Ua(a.yu[b])&&delete a.yu[b]}};
var VKc=function(a,b){IM.call(this,"FU","drive.ds.sync.upload.FileUploaderProxyManager",a);this.O=b;this.H=new Map};_.N(VKc,IM);var WKc=function(a){var b=_.$H(),c=new TKc(b,function(d,e,f){return a.send(d,e,f,b)},a.O);a.H.set(b,c);_.De(c,function(){return void a.H.delete(b)});return c};
VKc.prototype.v$=function(a,b,c){if((a=this.H.get(a))&&c){var d=c[1],e=c.slice(2);switch(c[0]){case 3:b=e[0];e=e[1];e=Math.min(e,1073741824);c=a.O[d];a.H("7.7",[d,_.lgc(c,b,Math.min(c.size,b+e))]);break;case 0:b=ZK(e[1],b,_.HJ);UKc(a,d,e[0],b);break;case 1:b=new _.qc(void 0,ZK(e[1],b,_.pc));UKc(a,d,e[0],b);break;case 2:a.dispatchEvent(new _.zkc(d,e[0],e[1]));break;default:throw Error("Lg");}}};
var XKc=function(a,b){if(0===a.length)throw new _.qc("mutateUserPref requires a namespace.",_.OI(3));var c=null;b instanceof _.CD?c=(b=(b=_.C(b,_.mp,1))&&b.getKey())&&_.np(b)||null:b instanceof _.zD&&(c=(b=b.getKey())&&_.np(b)||null);if(!c||!a.find(function(d){return d===c}))throw new _.qc("mutateUserPref unsupported for namespace: "+c,_.OI(3));};
var YKc=function(a){this.H=a};
var Ooc=function(a){IM.call(this,"IS","drive.ds.sync.ItemServiceProxy",(ZKc=_.Vh()).promise);var b=this;this.ta=null;this.Pa=this.Ta=this.$a=this.ma=!1;this.ha=this.ka=this.W=null;this.kb=new _.Cn;this.Ka=new _.Cn;this.V=ZKc;ZKc=void 0;this.context=a;VIc(this.context,new tKc(this.V.promise));trc(this.context.Og,_.Td(this.context.Nc,28));this.H=this.context.ifa;this.O=new wJc(this.V.promise,this.context,this.H);this.yb=new VKc(this.V.promise,this.context.bQ);this.Ha=new rKc(this.V.promise,this.context);
this.Qc=new _.Le(this);this.Ma(this.Qc);this.Qc.listen(this.context.mk(),[].concat(_.od(Object.values(_.vB))),function(c){return void b.dispatchEvent(c)})},ZKc;_.N(Ooc,IM);
Ooc.prototype.initialize=function(){var a=this;if(!this.ta){this.ta=this.va.promise;var b=this.context.Rk().H(106E3);this.ta.then(function(){b&&b.Yj();a.A0a()},function(){_.zK(a.context.Rk(),181008852)});var c=_.dK(this.context.Nc)?"(coldstart) ":"";this.context.Sf().info("drive.ds.sync.ItemServiceProxy","Initializing "+c+"with client build: "+this.context.Nc.Ki());var d=Ync(this.context.Nc,this.xi(),_.jK(this.context.Og));$Kc(this,d);2===d.H?(c=new MM(new qJc,6,this.context.Sf()),lKc(c,d.O),this.Ka.resolve(c)):
qoc(this.Ha);this.context.Sf().info("drive.ds.sync.ItemServiceProxy","Connecting to worker: "+d.endpoint);d.channel.start();TIc(this.context,function(){return aLc(d.channel)})}return this.ta};
var aLc=function(a){return _.Uja([new _.Rh(function(b){a.isDisposed()||QL(a,"8.1",void 0,function(){a.dispose();b()})}),_.yi(1E4)])},$Kc=function(a,b){var c=b.channel;0===b.H?c.registerService("2.0",function(){return{uid:a.xi(),fds:_.jK(a.context.Og)}}):c.registerService("1.1",function(){return bLc(a,b)});2===b.H?a.Ka.promise.then(function(){return void cLc(a,b)}):cLc(a,b);PL(c,"2.1",function(){return{dsc:a.context.Nc.jc()}});PL(c,"2.2",function(d){"number"===typeof d.id?(a.V.resolve(new pJc(d.id,
c,a.context.Sf(),d.clients)),d.dsp&&dLc(c),d.ivd&&eLc(a,c)):(d=new _.pc(JSON.parse(d.err)),a.va.reject(new _.qc("Unable to initialize dataservice.",d)))});PL(c,"2.15",function(d){a.dispatchEvent(new kCc(d.dt))});PL(c,"2.5",function(d){a.context.Cu(d.id)});PL(c,"2.6",function(d){a.context.Hj().Ll(d.os)});PL(c,"2.18",function(d){a.context.Hj().Oy(d.oois)});PL(c,"2.7",function(){a.ma=!1});PL(c,"2.8",function(d){a.context.Fa=d.au;a.dispatchEvent(new fsc(d.au?"nb":"ob"))});PL(c,"2.19",function(d){a.context.mk().update(d.cs)});
PL(c,"2.9",function(d){var e=d.logName,f=d.level;d=_.wt("[CSW %s] %s",d.totalTime,d.message);switch(f){case "config":a.context.Sf().config(e,d);break;case "fine":_.hK(a.context.Sf(),e,d,"fine");break;case "finer":_.hK(a.context.Sf(),e,d,"finer");break;case "finest":_.hK(a.context.Sf(),e,d,"finest");break;case "info":a.context.Sf().info(e,d);break;case "warning":case "severe":qrc(a.context.Sf(),e,d);break;default:qrc(a.context.Sf(),"drive.ds.sync.ItemServiceProxy","Unknown log level: "+f),qrc(a.context.Sf(),
e,d)}});PL(c,"2.10",function(d){return void a.t$(d)});PL(c,"2.12",function(){a.Pa=!0;OM(a)});PL(c,"2.14",function(){return a.kb.resolve()});PL(c,"2.16",function(){return a.$a=!0});PL(c,"2.17",function(d){a.context.Sf().info("drive.ds.sync.ItemServiceProxy","Prefetched request loaded for: "+d.t.join(","))})},cLc=function(a,b){1!==b.H&&2!==b.H||b.channel.send("8.5",bLc(a,b));QL(b.channel,"8.4",{dsc:a.context.Nc.jc()});dLc(b.channel);eLc(a,b.channel)},dLc=function(a){_.n._DRIVE_dsp&&QL(a,"8.3",{dsp:fLc(_.n._DRIVE_dsp)});
_.n._DRIVE_dspc=function(b){if(_.n._DRIVE_dsp){var c=[];c[b]=_.n._DRIVE_dsp[b];QL(a,"8.3",{dsp:fLc(c)})}}},eLc=function(a,b){_.T(a.context.Nc,24,!1)&&(_.n._DRIVE_ivd?QL(b,"8.2",{ivd:_.n._DRIVE_ivd}):void 0===_.n._DRIVE_ivd&&(_.n._DRIVE_ivdc=function(){_.n._DRIVE_ivd&&QL(b,"8.2",{ivd:_.n._DRIVE_ivd})}))},bLc=function(a,b){var c={};if(1===b.H){var d=new _.ZPa(document);c.__SAPISID=d.get("SAPISID")||d.get("__Secure-3PAPISID");c.__APISID=d.get("APISID")||d.get("__Secure-APISID")}return{ac:c,bl:a.context.Nc.Ki(),
ufds:b.V}};Ooc.prototype.xi=function(){var a=_.Xj(_.Xj(_.WH(this.context.Nc.clone(),28),44),91),b=new _.fI;b.update(_.bK(_.nI(a)));b.update(String(_.CI(_.nI(a))));b.update(a.jc());return _.odc(b.digest())};var fLc=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=Ooc.prototype;_.g.t$=function(a){this.dispatchEvent(new _.rc(new _.qc(void 0,new _.pc(JSON.parse(a.p)))))};
_.g.query=function(a){OM(this);gwc(this.context.Fm,a,rrc(this.context.Og));this.hF();var b=this.O.ywa(a);this.Ta||(a=a.xe(),a&&121===_.B(a,1)||(this.Ta=!0,this.Qc.listen(b,_.Dc,this.BLa)));return b};_.g.BLa=function(a){a=a.currentTarget;1===a.Bb()&&(this.Ha.H=this.$a,this.Qc.Wc(a,_.Dc,this.BLa))};_.g.Cq=function(a){OM(this);asc(a);this.hF();return this.O.vwa(a)};
_.g.tua=function(a,b){var c=this;OM(this);if(this.ka&&_.fk(this.ka.ud(),a))return this.ka;this.ka=new CKc(a.clone(),this.context,function(d,e,f){return c.send("3.17",[d,e,f],function(h,k){return ZK(h[0],k,vvc)})},b);_.n.setTimeout(function(){c.ka=null},3E3);return this.ka};
_.g.dFa=function(a,b){var c=this;OM(this);if(this.ha&&_.fk(this.ha.ud(),a))return QKc(this.ha),this.ha;this.ha=new NKc(a,this.context,function(d){return c.send("3.18",[d],function(e,f){return ZK(e[0],f,iBc)})},b);_.n.setTimeout(function(){c.ha=null},3E3);return this.ha};_.g.Q$=function(a){OM(this);return _.ci(this.send("3.14",[a],function(b,c){return ZK(b[0],c,oM)}))};_.g.i8=function(a){OM(this);return _.ci(this.send("3.15",[a],function(b,c){return ZK(b[0],c,oM)}))};
_.g.wd=function(a){OM(this);!this.ma&&_.IJ(a)&&(this.ma=!0);a=$nc(a);return _.ci(this.send("3.3",[a],function(b,c){return ZK(b[0],c,_.HJ)}))};_.g.WN=function(a){OM(this);a=joc(a);return this.send("3.35",[a],function(b,c){return ZK(b[0],c,_.esc)})};_.g.pz=function(a){OM(this);for(var b=0;b<a.length;b++)!this.ma&&_.IJ(a[b])&&(this.ma=!0);a=coc(a);return _.ci(this.send("3.4",[a],function(c,d){return wwc(c[0],d).get()}))};_.g.uwa=function(){OM(this);return WKc(this.yb)};
_.g.tRa=function(a){OM(this);return new sKc(this.V.promise,a)};_.g.tr=function(a,b){var c=this;OM(this);var d=_.Rg();this.H.create(d,a);return _.ci(this.send("3.5",[a,!!b],function(e,f){f=ZK(e[0],f,SL);return new _.uK(f,e[1],e[2])})).addCallback(function(e){Owc(c.H,d,e);return e.response}).Rg(function(e){RL(c.H,d);return e})};_.g.sr=function(a){OM(this);return this.send("3.10",[a],function(b,c){return ZK(b[0],c,fBc)})};
_.g.S$=function(a){OM(this);return _.ci(this.send("3.11",[a],function(b,c){return ZK(b[0],c,jBc)}))};_.g.g8=function(a){OM(this);return _.ci(this.send("3.12",[a],function(b,c){return ZK(b[0],c,jBc)}))};_.g.aT=function(a){OM(this);return _.ci(this.send("3.13",[a],function(b,c){return ZK(b[0],c,jBc)}))};
_.g.uN=function(a,b){var c=this;OM(this);var d=_.Rg();this.H.create(d,a);return _.ci(this.send("3.1",[a,!!b],function(e,f){f=ZK(e[0],f,_.sM);return new _.xK(f,e[1],e[2])})).addCallback(function(e){Owc(c.H,d,e);return e.response}).Rg(function(e){RL(c.H,d);return e})};
_.g.SG=function(a,b){var c=this,d=_.Td(this.context.Nc.$f(),30);if(!d||0===d.length)return _.di(new _.qc("getUserPrefs requires a namespace.",_.OI(3)));0===_.Td(a,3).length&&roc(a,d);OM(this);var e=_.Rg();this.H.create(e,a);return _.ci(this.send("3.2",[a,!!b],function(f,h){h=ZK(f[0],h,_.Sz);return new _.wK(h,f[1],f[2])})).addCallback(function(f){Owc(c.H,e,f);return f.response}).Rg(function(f){RL(c.H,e);return f})};
_.g.WR=function(a){OM(this);XKc(_.Td(this.context.Nc.$f(),30),a);a=goc(a);return this.send("3.6",[a],function(b,c){return ZK(b[0],c,kBc)})};_.g.iu=function(a){OM(this);return _.ci(this.send("3.16",[a],function(b,c){return ZK(b[0],c,Irc)}))};_.g.WAa=function(){return this.ma};_.g.Ll=function(a){OM(this);this.send("3.8",[a])};_.g.Oy=function(a){OM(this);return _.Sh(this.send("3.36",[a],function(b){return!!b[0]}))};_.g.iY=function(a){OM(this);UIc(this.context).iY(a);this.Oy(!!a)};
_.g.hF=function(){OM(this);this.send("3.9",[])};_.g.YR=function(){OM(this);this.send("3.41",[]);this.context.YR();var a=Arc(this.context.Rk(),106006);a&&this.V.promise.then(function(b){var c=_.C(_.pK(a),Xqc,6);if(!c){c=new Xqc;var d=_.pK(a);_.J(d,6,c)}c=_.y(c,1,b.clientId);_.y(c,2,b.O);a.Yj()},function(){})};_.g.wB=function(){OM(this);return this.context.wB()};_.g.gQ=function(){OM(this);return _.Sh(this.send("3.19",[],function(a,b){return ZK(a[0],b,zwc)}))};_.g.isConnected=function(){return this.context.mk().isConnected()};
_.g.B7=function(){return this.send("3.46",[],function(a,b){return ZK(a[0],b,_.Wjc)})};_.g.q9=function(){return this.Ha};_.g.sync=function(){OM(this);return _.Sh(this.send("3.28",[]))};_.g.Eu=function(){return this.context.Eu()};_.g.gY=function(a){this.Ka.promise.then(function(b){return void b.gY(a)})};_.g.mda=function(a){OM(this);return this.O.Fwa(a)};_.g.FY=function(a){OM(this);return this.O.Ewa(a)};_.g.aFa=function(a){OM(this);jwc(this.context.Fm,a,rrc(this.context.Og));return this.O.Bwa(a)};
_.g.ppa=function(a){OM(this);return new SKc(this.V.promise,a)};_.g.hva=function(a){var b=this;OM(this);if(!this.W||this.W.isDisposed())this.W=new IKc(a,this.context,function(c){return b.send("3.20",[c],function(d,e){return ZK(d[0],e,fCc)})});return this.W};_.g.NFa=function(){this.W&&!this.W.isDisposed()?this.W.poll():_.Sh()};_.g.h8=function(a){OM(this);return _.ci(this.send("3.22",[a],function(b,c){return ZK(b[0],c,gCc)}))};
_.g.sV=function(a){OM(this);return _.ci(this.send("3.25",[a],function(b,c){return ZK(b[0],c,bCc)}))};_.g.iba=function(){return this.kb.promise};_.g.wna=function(a){var b=_.Vh();_.ci(this.send("3.30",[a],function(c,d){c[0]?b.resolve(ZK(c[0],d,iCc)):b.reject(new _.qc(void 0,ZK(c[1],d,_.pc)))})).Rg(function(c){return void b.reject(c)});return b.promise};_.g.Jva=function(a){OM(this);return this.O.qwa(a)};_.g.A7=function(a){OM(this);return this.send("3.42",[a],function(b,c){return ZK(b[0],c,jtc)})};
_.g.cP=function(a){OM(this);var b=new _.Cn;this.send("3.39",[a],function(c,d){return c.map(function(e){return ZK(e,d,Zwc)})}).then(function(c){return void b.resolve(c)},function(c){return void b.reject(c)});return Promise.resolve(new YKc(b.promise))};_.g.xFa=function(a){var b=this;OM(this);return new vKc(this.context,a,function(c){return _.Sh(b.send("3.37",[c.request,c.pageToken],function(d,e){return new Cvc(ZK(d[0],e,pM),d[1])}))})};
_.g.yFa=function(a){OM(this);return this.send("3.38",[a],function(b,c){return ZK(b[0],c,sBc)})};_.g.$Ja=function(a){OM(this);return this.O.Jwa(a)};_.g.jqa=function(a){OM(this);return this.O.Iwa(a)};_.g.oIa=function(a){var b=this;OM(this);return new wKc(this.context,a,function(){return _.Sh(b.send("3.40",[a],function(c,d){return ZK(c[0],d,_.PK)}))})};_.g.pIa=function(a){OM(this);return this.O.Cwa(a)};_.g.s_=function(a){OM(this);this.send("3.43",[a])};
_.g.Z_=function(a){OM(this);return _.Sh(this.send("3.44",[a],function(b,c){return ZK(b[0],c,atc)}))};_.g.Qo=function(a){OM(this);if(1!==_.cK(this.context.Nc))return Promise.reject(Error("Mg"));for(var b=_.m(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!c.Cc())return Promise.reject(Error("Ng"));if(!c.nk()&&!c.getItem())return Promise.reject(Error("Og"))}return Promise.resolve(this.send("3.45",a))};
_.g.A0a=function(){var a=this;if(3===this.context.getEnvironment()){var b=[_.yi(1E4,!1),this.send("3.29",[],function(c){return!!c[0]}).then()];_.Uja(b).then(function(c){c?_.wi(a.A0a.bind(a),6E4):(a.Pa=!0,OM(a))})}};var OM=function(a){a.Pa&&a.dispatchEvent(new HCc)};
var Qoc=function(a){wM.call(this,a);this.ha=this.ka=this.ta=null;this.kb=_.Vh();this.H=a.Qm()};_.N(Qoc,wM);Qoc.prototype.eRa=function(){this.Ha=new CJc(this.context);this.Ma(this.Ha);this.Ka=new GJc(this.context);this.Ma(this.Ka);this.Pa=new NJc(this.context);this.Ma(this.Pa)};
Qoc.prototype.$a=function(){var a=this,b=["hVFf7"];_.dK(this.context.Nc)&&b.push("BNEDtc");WL(this.O,b,function(){return void a.XVa()});WL(this.O,["T8oKm","ZA9qG"],function(){return void gLc(a)});WL(this.O,["T8oKm","mrK8ic"],function(){return void gLc(a)});this.Qc.listen(this.Ha,"WPi0i",this.Yra.bind(this,1));this.Qc.listen(this.Ka,"Qb",this.Yra.bind(this,2));this.Qc.listen(this.Pa,"WPi0i",this.Yra.bind(this,4));WL(this.O,["GZTDpc"],function(){return a.kb.resolve()})};var gLc=function(a){AM(a.context).addCallback(function(b){b.start()})};
_.g=Qoc.prototype;_.g.Yra=function(a){_.pa(btc,a)&&this.dispatchEvent(new kCc(a))};_.g.FY=function(a){return this.V.Ewa(a.clone())};_.g.aFa=function(a){jwc(this.context.Fm,a,rrc(this.context.Og));return this.V.Bwa(a.clone())};_.g.mda=function(a){return this.V.Fwa(a.clone())};_.g.ppa=function(a){return new dKc(a,this.context.Qm())};
_.g.tua=function(a,b){var c=this;if(this.ta&&_.fk(this.ta.ud(),a))return this.ta;this.ta=new CKc(a.clone(),this.context,this.Hib.bind(this),b);_.n.setTimeout(function(){c.ta=null},3E3);return this.ta};_.g.Hib=function(a,b,c){var d=new _.Agc(a,b,c);return _.ci(this.H.then(function(e){return e.Ue(d)}).Gg(function(e){return _.QI(e)}))};_.g.hva=function(a){var b=this;if(!this.ha||this.ha.isDisposed())this.ha=new IKc(a,this.context,function(c){return hLc(b,c)});return this.ha};var hLc=function(a,b){return _.ci(a.H.then(function(c){return c.Ue(b)}).Gg(function(c){return _.QI(c)}))};
_.g=Qoc.prototype;_.g.NFa=function(){this.ha&&!this.ha.isDisposed()?this.ha.poll().then():_.Sh()};_.g.sV=function(a){return _.ci(this.H.then(function(b){return b.Ue(a)}))};_.g.h8=function(a){return _.ci(this.H.then(function(b){return b.Ue(a)}))};_.g.dFa=function(a,b){var c=this;if(this.ka&&_.fk(this.ka.ud(),a))return QKc(this.ka),this.ka;this.ka=new NKc(a.clone(),this.context,this.hJb.bind(this),b);_.n.setTimeout(function(){c.ka=null},3E3);return this.ka};
_.g.hJb=function(a){var b=this;return this.H.then(function(c){return c.Ue(a)}).then(function(c){return _.tI(b.context.Nc)?lyc(b.context.vf.tq,_.bk(c.od(),_.Jk,2),a.ud().getId()).then(function(){return c}):c},_.QI)};_.g.Q$=function(a){var b=this;return _.ci(this.H.then(function(c){return c.Ue(a)}).then(function(c){return _.tI(b.context.Nc)?lyc(b.context.vf.tq,[_.C(c,_.Jk,2)],a.Cc()).then(function(){return c}):c},_.QI))};
_.g.i8=function(a){return _.ci(this.H.then(function(b){return b.Ue(a)}).then(null,_.QI))};_.g.Jva=function(a){return this.V.qwa(a.clone())};_.g.A7=function(a){return this.H.then(function(b){return b.Ue(a)}).then(null,_.QI)};_.g.cP=function(a){return this.H.then(function(b){return b.Ue(a)}).then(function(b){var c=new _.Cn;wyc(a,b).then(function(d){return c.resolve(d)});return new YKc(c.promise)},function(b){return void _.QI(b)})};_.g.xFa=function(a){var b=this;return new vKc(this.context,a,function(c){return b.H.then(function(d){return d.Ue(c)}).Gg(function(d){return _.QI(d)})})};
_.g.yFa=function(a){return this.H.then(function(b){return b.Ue(a)}).then(null,_.QI)};_.g.wd=function(a){return _.ci(this.H.then(function(b){return b.Ue(a)}).then(null,_.QI))};_.g.WN=function(a){return this.H.then(function(b){return b.Ue(a)}).then(null,_.QI)};_.g.pz=function(a){var b=this,c=[],d=[];a.forEach(function(f){f instanceof _.SI?c.push(String(f.Cc())):c.push(String(f.getId()));d.push(b.wd(f))});a=new _.ro(d);var e=new _.Xh;a.addCallback(this.plb.bind(this,e,c));return e};
_.g.uwa=function(){return new TJc(this.context.Nc,this.context.OA,this.context.aR().hfa,this.context.Qm(),this.context.bQ,this.context.Sf(),this.context.Rk())};_.g.tr=function(a,b){var c=this,d=_.Rg();this.W.create(d,a);3===a.getType()?a=wM.prototype.tr.call(this,a).addCallback(function(e){return new _.uK(e,1,!1)}):(XL(this.O,"Qubz4b"),a=this.Ka.enqueue(new LJc(a,b)));return a.addCallback(function(e){Owc(c.W,d,e);return e.response}).Rg(function(){RL(c.W,d)})};
_.g.sr=function(a){return _.ci(this.H.then(function(b){return b.Ue(a)}).then(null,_.QI))};_.g.S$=function(a){return _.ci(this.H.then(function(b){return b.Ue(a)}).then(null,_.QI))};_.g.g8=function(a){return _.ci(this.H.then(function(b){return b.Ue(a)}).then(null,_.QI))};_.g.aT=function(a){return _.ci(this.H.then(function(b){return b.Ue(a)}).then(null,_.QI))};
_.g.uN=function(a,b){var c=this;XL(this.O,"iuEtc");var d=_.Rg();this.W.create(d,a);return this.Ha.enqueue(new EJc(a,b)).addCallback(function(e){Owc(c.W,d,e);return e.response}).Rg(function(){RL(c.W,d)})};
_.g.SG=function(a,b){var c=this,d=_.Td(this.context.Nc.$f(),30);if(!d||0===d.length)return _.di(new _.qc("getUserPrefs requires a namespace.",_.OI(3)));0===_.Td(a,3).length&&roc(a,d);var e=_.Rg();this.W.create(e,a);XL(this.O,"OZvrNc");return this.Pa.enqueue(new QJc(a,b)).addCallback(function(f){Owc(c.W,e,f);return f.response}).Rg(function(){RL(c.W,e)})};_.g.WR=function(a){XKc(_.Td(this.context.Nc.$f(),30),a);return _.ci(this.H.then(function(b){return b.Ue(a)}).then(null,_.QI))};
_.g.iu=function(a){var b=this;return _.ci(this.H.then(function(c){return c.Ue(a)}).then(function(c){return _.tI(b.context.Nc)?jyc(b.context.vf.tq,c):c},_.QI))};_.g.$Ja=function(a){return this.V.Jwa(a.clone())};_.g.jqa=function(a){return this.V.Iwa(a.clone())};_.g.oIa=function(a){var b=this;return new wKc(this.context,a,function(c){return b.H.then(function(d){return d.Ue(c)}).Gg(function(d){return _.QI(d)})})};_.g.pIa=function(a){return this.V.Cwa(a.clone())};
_.g.s_=function(a){wEc(this.context.vf,[a])};_.g.Z_=function(a){return this.H.then(function(b){return b.Ue(a)}).then(null,_.QI)};_.g.Qo=function(a){if(1!==_.cK(this.context.Nc))return Promise.reject(Error("Mg"));for(var b=_.m(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!c.Cc())return Promise.reject(Error("Ng"));if(!c.nk()&&!c.getItem())return Promise.reject(Error("Og"))}this.context.vf.Qo(a);gFc(this.context.vf);return Promise.resolve()};_.g.WAa=function(){return this.context.aR().bK()};
_.g.Oy=function(a){var b=this;return this.context.Oy(a).then(function(c){return c?(b.context.Hj().Oy(a),b.context.Ls.fL()):_.Sh(!a)})};_.g.iY=function(a){UIc(this.context).iY(a);this.Oy(!!a)};_.g.hF=function(){AM(this.context).addCallback(function(a){a&&a.Zna()});this.context.Rga.hF()};_.g.gY=function(a){a.PLa(this.context)};_.g.plb=function(a,b,c){for(var d={},e=0;e<c.length;e++)d[b[e]]=c[e][1];gFc(this.context.vf);a.callback(d)};
_.g.sync=function(){var a=this;return _.Uh([this.context.N$.promise,this.context.jfa.promise]).then(function(){return a.context.Ls.fL()}).then()};_.g.Eu=function(){AM(this.context).addCallback(function(a){a&&a.dispose()});return wM.prototype.Eu.call(this)};_.g.iba=function(){return this.kb.promise};
var iLc=function(){var a='<div class="'+_.F("la-r")+'">';a=a+'Something went wrong. Please reload.</div><button class="'+(_.F("la-Y-A")+" "+_.F("kc-A")+'" data-target="reload">');return(0,_.I)(a+"Reload</button>")};
_.zn({id:_.Yl,callback:function(a){var b=_.Zmc(a),c=Toc(a),d=_.C(a.get(_.Yc),_.Yb,10);_.dic(d,b);_.Qj(d,28,c);b=Roc(a,d);a.registerService(_.Zl,b.q9());_.Se(b,"VbxEwf",function(){var e={};_.Ac(_.Nt.getService(a),new _.pq(new _.oq(iLc,{}),"d",(e.reload=function(){_.n.window.location.reload()},e),4))});return b}});

_.w();

}catch(e){_._DumpException(e)}
try{
_.jLc=function(a,b){return _.J(a,17,b)};_.kLc=function(a,b){return _.y(a,2,b)};_.lLc=function(a,b){return _.y(a,1,b)};_.mLc=function(a,b){return _.J(a,2,b)};_.nLc=function(a,b){return _.Wj(a,1,b)};_.oLc=function(a,b){return _.Qj(a,1,b)};_.pLc=function(a,b){return _.Wj(a,2,b)};_.qLc=function(a,b){return _.J(a,3,b)};_.t("RsR2Mc");


_.w();

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