/* JS */ gapi.loaded_3(function(_){var window=this;
_.Wt=function(a,b){this.Ia=a||new _.Ig;this.rv=(0,_.u)(this.Yu,this);this.rk=(0,_.u)(this.Zu,this);this.Wm=!!b};_.B(_.Wt,_.Yd);_.g=_.Wt.prototype;_.g.Kb=!1;_.g.T=null;_.g.Va=null;_.g.yb=null;_.g.kd=null;_.g.La=function(){this.wa();return this.kd};
_.g.MC=function(){var a=this.Ia;this.yb=a.S("IFRAME",{frameborder:0,style:"border:0;left:0;position:absolute;top:0;vertical-align:bottom;z-index:1101",src:_.K?'javascript:""':"javascript:undefined"});_.Q(this.yb,!1);_.Ms(this.yb,0);this.Va=a.S("DIV",{style:"background:#fff;display:none;left:0;position:absolute;top:0;z-index:1101"});_.Q(this.Va,!1);_.Ms(this.Va,.5)};_.g.Gm=function(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent("on"+b,c)};
_.g.jo=function(a,b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent("on"+b,c)};_.g.TB=function(){this.Va&&(this.Gm(this.Va,"scroll",this.rk),this.Gm(this.Va,this.Lt(),this.rk))};_.g.pv=function(){this.Va&&(this.jo(this.Va,"scroll",this.rk),this.jo(this.Va,this.Lt(),this.rk))};_.g.Lt=function(){return"undefined"!=typeof this.Ia.wb().e4?"DOMMouseScroll":"mousewheel"};_.g.SB=function(){this.Gm(this.Ia.wb(),"resize",this.rv)};_.g.ov=function(){this.jo(this.Ia.wb(),"resize",this.rv)};
_.g.wa=function(){if(!this.T){this.MC();var a=this.Ia,b=this.T=a.S("DIV",{style:"background:#fff;border:1px solid #bebebe;box-shadow:rgba(0,0,0,.2) 0 4px 16px;height:auto;overflow:hidden;position:absolute;width:auto;z-index:1101;-moz-box-shadow:rgba(0,0,0,.2) 0 4px 16px;-webkit-box-shadow:rgba(0,0,0,.2) 0 4px 16px",name:"dialog"},this.kd=a.S("DIV"));b.setAttribute("role","dialog");b.E6="dialog";this.T.style.visibility="hidden";_.Ds(this.T,-1E4,-1E4);a=a.tb().body;a.appendChild(this.yb);a.appendChild(this.Va);
a.appendChild(this.T)}};_.g.setVisible=function(a){a!=this.Kb&&(this.T||this.wa(),a?(this.lj(),this.SB(),this.TB()):(this.ov(),this.pv()),_.Q(this.yb,a),_.Q(this.Va,a),a?this.ff():(this.T.style.visibility="hidden",_.Ds(this.T,-1E4,-1E4)),(this.Kb=a)&&"hidden"==this.T.style.visibility&&(this.T.style.visibility="visible"),a?this.focus():this.Wm&&this.Da())};_.g.Fa=function(){return this.Kb};_.g.focus=function(){try{this.T.focus()}catch(a){}};
_.g.lj=function(){_.Q(this.yb,!1);_.Q(this.Va,!1);var a=this.Ia.tb(),b=_.Yr(_.is(a)||window),c=Math.max(a.body.scrollWidth,b.width),a=Math.max(a.body.scrollHeight,b.height);_.Q(this.yb,!0);_.Js(this.yb,c,a);_.Q(this.Va,!0);_.Js(this.Va,c,a)};_.g.Yu=function(){this.lj();this.ff()};_.g.Zu=function(a){a.preventDefault?a.preventDefault():a.returnValue=!1;a.stopPropagation?a.stopPropagation():a.cancelBubble=!0};
_.g.ff=function(){var a=this.T,b=_.Ls(a),c=this.Ia,d=_.Xr(c.Cb),c=_.Yr(c.wb());_.Ds(a,Math.max(d.x+(c.width-b.width)/2,0),Math.max(d.y+(c.height-b.height)/2,0))};_.g.setSize=function(a,b){_.Js(this.kd,a,b);this.ff()};_.g.ua=function(){this.Kb&&(this.ov(),this.pv());this.T&&(_.Xg(this.T),this.T=null);this.Va&&(_.Xg(this.Va),this.Va=null);this.yb&&(_.Xg(this.yb),this.yb=null)};

var Xt=function(a,b){_.kt.call(this,a);this.vf=b};_.B(Xt,_.mt);_.g=Xt.prototype;_.g.resize=function(a){var b=a.height||Number(this.Ba.height)||this.vf.La().style.height;a=a.width||Number(this.Ba.width)||this.vf.La().style.width;var c=0<a&&0<b;0>a&&(a=0);0>b&&(b=0);var d=_.rs(this.$.Aa()),e=this.Ba.heightPadding||0;d.style.width=a+"px";d.style.height=b+e+"px";this.vf.setSize(a,b);this.vf.setVisible(c);return!0};
_.g.oo=function(){this.vf.wa();_.P(this.vf.La().parentNode,"overflow","visible");this.vf.setSize(Number(this.Ba.width)||100,Number(this.Ba.height)||100)};_.g.open=function(){this.$.Pd("resize",(0,_.u)(this.resize,this));this.oo();this.$.Gg(this.vf.La());this.$.cg(this.vf.La())};
_.g.Nd=function(a){var b=_.rs(this.$.Aa());a=Number(a.height)||Number(this.Ba.height)||this.$.height||this.vf.La().style.height;var c=Number(this.Ba.width)||this.$.width||this.vf.La().style.width,d=Number(this.Ba.heightPadding)||0;b.style.width=c+"px";b.style.height=a+d+"px";this.vf.setSize(c,a);this.vf.setVisible(null!=this.Ba.show?this.Ba.show:!0)};_.g.close=function(){this.vf.ua()};_.Yt=function(a){var b=new _.Wt;b.La().id="glass-content";a=new Xt(a,b);return a=new _.vt(a)};

_.H.Fc("glass",_.Yt);
_.Xe=function(a){if(a.Ud&&"function"==typeof a.Ud)return a.Ud();if(_.t(a))return a.split("");if(_.uc(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return _.Wc(a)};_.Ye=function(a){if(a.sf&&"function"==typeof a.sf)return a.sf();if(!a.Ud||"function"!=typeof a.Ud){if(_.uc(a)||_.t(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return _.Xc(a)}}; _.Ze=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(_.uc(a)||_.t(a))(0,_.Kc)(a,b,c);else for(var d=_.Ye(a),e=_.Xe(a),f=e.length,h=0;h<f;h++)b.call(c,e[h],d&&d[h],a)};

var Zt,au,nu,iu,su,ju,lu,ku,pu,mu,tu;Zt=/#|$/;_.$t=function(a,b){var c=a.search(Zt),d;a:{d=0;for(var e=b.length;0<=(d=a.indexOf(b,d))&&d<c;){var f=a.charCodeAt(d-1);if(38==f||63==f)if(f=a.charCodeAt(d+e),!f||61==f||38==f||35==f)break a;d+=e+1}d=-1}if(0>d)return null;e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return(0,window.decodeURIComponent)(a.substr(d,e-d).replace(/\+/g," "))};
au=function(a,b){if(a)for(var c=a.split("&"),d=0;d<c.length;d++){var e=c[d].indexOf("="),f,h=null;0<=e?(f=c[d].substring(0,e),h=c[d].substring(e+1)):f=c[d];b(f,h?(0,window.decodeURIComponent)(h.replace(/\+/g," ")):"")}};
_.bu=function(a,b){this.Uf=this.Pg=this.Kg="";this.hj=null;this.WD=this.lk="";this.jh=this.jF=!1;var c;a instanceof _.bu?(this.jh=_.ma(b)?b:a.jh,_.cu(this,a.Kg),_.du(this,a.Pg),_.eu(this,a.Uf),_.fu(this,a.hj),this.setPath(a.getPath()),_.gu(this,a.Cf.clone()),this.zo(a.gy())):a&&(c=String(a).match(_.qh))?(this.jh=!!b,_.cu(this,c[1]||"",!0),_.du(this,c[2]||"",!0),_.eu(this,c[3]||"",!0),_.fu(this,c[4]),this.setPath(c[5]||"",!0),_.gu(this,c[6]||"",!0),this.zo(c[7]||"",!0)):(this.jh=!!b,this.Cf=new _.hu(null,
0,this.jh))};_.bu.prototype.toString=function(){var a=[],b=this.Kg;b&&a.push(iu(b,ju,!0),":");var c=this.Uf;if(c||"file"==b)a.push("//"),(b=this.Pg)&&a.push(iu(b,ju,!0),"@"),a.push(_.ph(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.hj,null!=c&&a.push(":",String(c));if(c=this.getPath())this.Uf&&"/"!=c.charAt(0)&&a.push("/"),a.push(iu(c,"/"==c.charAt(0)?ku:lu,!0));(c=this.Cf.toString())&&a.push("?",c);(c=this.gy())&&a.push("#",iu(c,mu));return a.join("")};
_.bu.prototype.resolve=function(a){var b=this.clone(),c=!!a.Kg;c?_.cu(b,a.Kg):c=!!a.Pg;c?_.du(b,a.Pg):c=!!a.Uf;c?_.eu(b,a.Uf):c=null!=a.hj;var d=a.getPath();if(c)_.fu(b,a.hj);else if(c=!!a.lk){if("/"!=d.charAt(0))if(this.Uf&&!this.lk)d="/"+d;else{var e=b.getPath().lastIndexOf("/");-1!=e&&(d=b.getPath().substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){for(var d=_.Cc(e,"/"),e=e.split("/"),f=[],h=0;h<e.length;){var k=e[h++];"."==k?d&&h==e.length&&f.push(""):
".."==k?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),d&&h==e.length&&f.push("")):(f.push(k),d=!0)}d=f.join("/")}else d=e}c?b.setPath(d):c=a.Sp();c?_.gu(b,nu(a.Cf.toString())):c=!!a.WD;c&&b.zo(a.gy());return b};_.bu.prototype.clone=function(){return new _.bu(this)};_.cu=function(a,b,c){_.ou(a);a.Kg=c?nu(b,!0):b;a.Kg&&(a.Kg=a.Kg.replace(/:$/,""));return a};_.du=function(a,b,c){_.ou(a);a.Pg=c?nu(b):b;return a};_.eu=function(a,b,c){_.ou(a);a.Uf=c?nu(b,!0):b;return a};
_.fu=function(a,b){_.ou(a);if(b){b=Number(b);if((0,window.isNaN)(b)||0>b)throw Error("O`"+b);a.hj=b}else a.hj=null;return a};_.bu.prototype.getPath=function(){return this.lk};_.bu.prototype.setPath=function(a,b){_.ou(this);this.lk=b?nu(a,!0):a;return this};_.bu.prototype.Sp=function(){return""!==this.Cf.toString()};_.gu=function(a,b,c){_.ou(a);b instanceof _.hu?(a.Cf=b,a.Cf.TH(a.jh)):(c||(b=iu(b,pu)),a.Cf=new _.hu(b,0,a.jh));return a};_.bu.prototype.Jb=function(a,b){return _.gu(this,a,b)};
_.bu.prototype.Ui=function(){return this.Cf.toString()};_.qu=function(a,b,c){_.ou(a);a.Cf.set(b,c);return a};_.bu.prototype.eh=function(a){return this.Cf.get(a)};_.bu.prototype.gy=function(){return this.WD};_.bu.prototype.zo=function(a,b){_.ou(this);this.WD=b?nu(a):a;return this};_.ou=function(a){if(a.jF)throw Error("P");};_.bu.prototype.TH=function(a){this.jh=a;this.Cf&&this.Cf.TH(a);return this};_.ru=function(a){return a instanceof _.bu?a.clone():new _.bu(a,void 0)};
nu=function(a,b){return a?b?(0,window.decodeURI)(a.replace(/%25/g,"%2525")):(0,window.decodeURIComponent)(a):""};iu=function(a,b,c){return _.t(a)?(a=(0,window.encodeURI)(a).replace(b,su),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};su=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};ju=/[#\/\?@]/g;lu=/[\#\?:]/g;ku=/[\#\?]/g;pu=/[\#\?@]/g;mu=/#/g;_.hu=function(a,b,c){this.qc=this.qd=null;this.Ag=a||null;this.jh=!!c};
tu=function(a){a.qd||(a.qd=new _.ff,a.qc=0,a.Ag&&au(a.Ag,function(b,c){a.add((0,window.decodeURIComponent)(b.replace(/\+/g," ")),c)}))};_.g=_.hu.prototype;_.g.Xb=function(){tu(this);return this.qc};_.g.add=function(a,b){tu(this);this.Ag=null;a=uu(this,a);var c=this.qd.get(a);c||this.qd.set(a,c=[]);c.push(b);this.qc+=1;return this};_.g.remove=function(a){tu(this);a=uu(this,a);return this.qd.Ni(a)?(this.Ag=null,this.qc-=this.qd.get(a).length,this.qd.remove(a)):!1};
_.g.clear=function(){this.qd=this.Ag=null;this.qc=0};_.g.isEmpty=function(){tu(this);return 0==this.qc};_.g.Ni=function(a){tu(this);a=uu(this,a);return this.qd.Ni(a)};_.g.Pm=function(a){var b=this.Ud();return _.Pc(b,a)};_.g.sf=function(){tu(this);for(var a=this.qd.Ud(),b=this.qd.sf(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
_.g.Ud=function(a){tu(this);var b=[];if(_.t(a))this.Ni(a)&&(b=_.bf(b,this.qd.get(uu(this,a))));else{a=this.qd.Ud();for(var c=0;c<a.length;c++)b=_.bf(b,a[c])}return b};_.g.set=function(a,b){tu(this);this.Ag=null;a=uu(this,a);this.Ni(a)&&(this.qc-=this.qd.get(a).length);this.qd.set(a,[b]);this.qc+=1;return this};_.g.get=function(a,b){var c=a?this.Ud(a):[];return 0<c.length?String(c[0]):b};_.g.setValues=function(a,b){this.remove(a);0<b.length&&(this.Ag=null,this.qd.set(uu(this,a),_.af(b)),this.qc+=b.length)};
_.g.toString=function(){if(this.Ag)return this.Ag;if(!this.qd)return"";for(var a=[],b=this.qd.sf(),c=0;c<b.length;c++)for(var d=b[c],e=_.ph(d),d=this.Ud(d),f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+_.ph(d[f]));a.push(h)}return this.Ag=a.join("&")};_.g.clone=function(){var a=new _.hu;a.Ag=this.Ag;this.qd&&(a.qd=this.qd.clone(),a.qc=this.qc);return a};var uu=function(a,b){var c=String(b);a.jh&&(c=c.toLowerCase());return c};
_.hu.prototype.TH=function(a){a&&!this.jh&&(tu(this),this.Ag=null,this.qd.forEach(function(a,c){var b=c.toLowerCase();c!=b&&(this.remove(c),this.setValues(b,a))},this));this.jh=a};_.hu.prototype.extend=function(a){for(var b=0;b<arguments.length;b++)_.Ze(arguments[b],function(a,b){this.add(b,a)},this)};

var QQ={Pda:"play-books-web",Qda:"ge-web-app",Sda:"play-store-web"};var RQ=null,SQ=function(){_.Xg(RQ)},TQ=function(){SQ();var a=window.document.getElementById("glass-content");a&&(a=a.parentNode)&&(a.style.border="none",a=a.previousSibling)&&(a.style.opacity=.8)},UQ=function(){var a=window.document.getElementById("glass-content");a&&a.scrollIntoView()},WQ=function(a,b){b.register("play.review.write.outcome",function(c){null!=c&&"OK"===c.responseCode?a.resolve(c):a.reject(c);b.close()},VQ);b.register("play.review.scrollIntoView",UQ,VQ)},VQ=function(a){a=a.nb();var b;
b=XQ();b=_.fu(_.eu(_.du(_.cu(new _.bu,b.Kg),b.Pg),b.Uf),b.hj).toString();return a===b},YQ=function(a,b){SQ();a.reject({responseCode:b||"ERROR"})},XQ=function(){var a="https://play.google.com/store/ereview";/^http(s?):\/\/(.*\.)?google\.com(:\d+)?$/.test(window.location.origin||window.location.protocol+"//"+window.location.host)&&(a=_.D("play/review/debug/baseurl","https://play.google.com/store/ereview"));a=new _.bu(a);a.jF=!0;return a.clone()};
_.C("gapi.playreview.open",function(a){var b=_.Dm(),c=a.id;if(!_.t(c)||_.Bc(_.Dc(c)))return YQ(b,"INVALID_DOC_ID"),b.promise;RQ=_.qs("DIV",{style:"background-color: #ddd;display: block;left: 0;margin: 0;opacity: 0.65;padding: 0;position: absolute;right: 0;top: 0;width: auto"});var d=window.document.body,e=window.document.documentElement;RQ.style.height=Math.max(d.scrollHeight,d.offsetHeight,e.clientHeight,e.scrollHeight,e.offsetHeight)+"px";e=_.qs("DIV",{style:"background-image: url(https://ssl.gstatic.com/android/market_images/web/loading_dark_large.gif);height: 150px;left: 50vw;margin-left: -75px;margin-top: -75px;position: fixed;top: 50vh;width: 150px"});
RQ.appendChild(e);d.appendChild(RQ);_.Ce(RQ,["click","touchstart"],SQ,!1);c={docId:c,hl:_.E.Uc().hl||_.D("lang"),authuser:_.D("googleapis.config/sessionIndex")||"0",width:window.innerWidth};_.Yc(QQ,a.source)&&(c.source=a.source);a=XQ().clone().toString();a=_.um(_.vm(_.rm(_.om((new _.nm).re("glass").setUrl(a),c)),{_ready:TQ}),VQ);_.mm(_.qm(a).Bi(1).gm(1));c=_.Tc(WQ,b);d=_.Tc(YQ,b,void 0);_.Gm.open(a.value()).then(c,d);return b.promise});

});
// Google Inc.
