/* JS */ gapi.loaded_3(function(_){var window=this;
_.Lu=function(a,b){this.R=a||new _.Wg;this.T=(0,_.u)(this.W,this);this.S=(0,_.u)(this.V,this);this.U=!!b};_.B(_.Lu,_.td);_.h=_.Lu.prototype;_.h.rp=!1;_.h.Wd=null;_.h.vd=null;_.h.If=null;_.h.Fu=null;_.h.Ua=function(){this.Ga();return this.Fu};
var Mu=function(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent("on"+b,c)},Nu=function(a,b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent("on"+b,c)},Pu=function(a){a.vd&&(Nu(a.vd,"scroll",a.S),Nu(a.vd,Ou(a),a.S))},Ou=function(a){return"undefined"!=typeof a.R.tb().R?"DOMMouseScroll":"mousewheel"};
_.Lu.prototype.Ga=function(){if(!this.Wd){var a=this.R;this.If=a.Da("IFRAME",{frameborder:0,style:"border:0;left:0;position:absolute;top:0;vertical-align:bottom;z-index:1101",src:_.N?'javascript:""':"javascript:undefined"});_.R(this.If,!1);_.yt(this.If,0);this.vd=a.Da("DIV",{style:"background:#fff;display:none;left:0;position:absolute;top:0;z-index:1101"});_.R(this.vd,!1);_.yt(this.vd,.5);var a=this.R,b=this.Wd=a.Da("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.Fu=a.Da("DIV"));b.setAttribute("role","dialog");b.BM="dialog";this.Wd.style.visibility="hidden";_.pt(this.Wd,-1E4,-1E4);a=a.R.body;a.appendChild(this.If);a.appendChild(this.vd);a.appendChild(this.Wd)}};
_.Lu.prototype.setVisible=function(a){a!=this.rp&&(this.Wd||this.Ga(),a?(Qu(this),Mu(this.R.tb(),"resize",this.T),this.vd&&(Mu(this.vd,"scroll",this.S),Mu(this.vd,Ou(this),this.S))):(Nu(this.R.tb(),"resize",this.T),Pu(this)),_.R(this.If,a),_.R(this.vd,a),a?Ru(this):(this.Wd.style.visibility="hidden",_.pt(this.Wd,-1E4,-1E4)),(this.rp=a)&&"hidden"==this.Wd.style.visibility&&(this.Wd.style.visibility="visible"),a?this.focus():this.U&&this.Pa())};_.Lu.prototype.Oa=function(){return this.rp};
_.Lu.prototype.focus=function(){try{this.Wd.focus()}catch(a){}};var Qu=function(a){_.R(a.If,!1);_.R(a.vd,!1);var b=a.R.R,c=_.Hs(_.Ss(b)||window),d=Math.max(b.body.scrollWidth,c.width),b=Math.max(b.body.scrollHeight,c.height);_.R(a.If,!0);_.vt(a.If,d,b);_.R(a.vd,!0);_.vt(a.vd,d,b)};_.Lu.prototype.W=function(){Qu(this);Ru(this)};_.Lu.prototype.V=function(a){a.preventDefault?a.preventDefault():a.returnValue=!1;a.stopPropagation?a.stopPropagation():a.cancelBubble=!0};
var Ru=function(a){var b=a.Wd,c=_.xt(b),d=a.R;a=_.Gs(d.R);d=_.Hs(d.tb());_.pt(b,Math.max(a.x+(d.width-c.width)/2,0),Math.max(a.y+(d.height-c.height)/2,0))};_.Lu.prototype.setSize=function(a,b){_.vt(this.Fu,a,b);Ru(this)};_.Lu.prototype.Fa=function(){this.rp&&(Nu(this.R.tb(),"resize",this.T),Pu(this));this.Wd&&(_.Pg(this.Wd),this.Wd=null);this.vd&&(_.Pg(this.vd),this.vd=null);this.If&&(_.Pg(this.If),this.If=null)};

var Su=function(a,b){_.Xt.call(this,a);this.Sd=b};_.B(Su,_.Zt);_.h=Su.prototype;_.h.resize=function(a){var b=a.height||Number(this.R.height)||this.Sd.Ua().style.height;a=a.width||Number(this.R.width)||this.Sd.Ua().style.width;var c=0<a&&0<b;0>a&&(a=0);0>b&&(b=0);var d=_.bt(this.Ca.Ja()),e=this.R.heightPadding||0;d.style.width=a+"px";d.style.height=b+e+"px";this.Sd.setSize(a,b);this.Sd.setVisible(c);return!0};
_.h.Ii=function(){this.Sd.Ga();_.Q(this.Sd.Ua().parentNode,"overflow","visible");this.Sd.setSize(Number(this.R.width)||100,Number(this.R.height)||100)};_.h.open=function(){this.Ca.Mc("resize",(0,_.u)(this.resize,this));this.Ii();this.Ca.Je(this.Sd.Ua());this.Ca.ke(this.Sd.Ua())};
_.h.$c=function(a){var b=_.bt(this.Ca.Ja());a=Number(a.height)||Number(this.R.height)||this.Ca.height||this.Sd.Ua().style.height;var c=Number(this.R.width)||this.Ca.width||this.Sd.Ua().style.width,d=Number(this.R.heightPadding)||0;b.style.width=c+"px";b.style.height=a+d+"px";this.Sd.setSize(c,a);this.Sd.setVisible(null!=this.R.show?this.R.show:!0)};_.h.close=function(){this.Sd.Fa()};_.Tu=function(a){var b=new _.Lu;b.Ua().id="glass-content";a=new Su(a,b);return a=new _.iu(a)};

_.L.Yb("glass",_.Tu);
_.Zd=function(a){if(a.Pc&&"function"==typeof a.Pc)return a.Pc();if(_.t(a))return a.split("");if(_.Wc(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return _.Ad(a)};_.$d=function(a){if(a.Pd&&"function"==typeof a.Pd)return a.Pd();if(!a.Pc||"function"!=typeof a.Pc){if(_.Wc(a)||_.t(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return _.Bd(a)}}; _.ae=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(_.Wc(a)||_.t(a))(0,_.kd)(a,b,c);else for(var d=_.$d(a),e=_.Zd(a),f=e.length,g=0;g<f;g++)b.call(c,e[g],d&&d[g],a)};

var Uu,Wu,iv,dv,ov,ev,gv,fv,lv,hv,pv;Uu=/#|$/;_.Vu=function(a,b){var c=a.search(Uu),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," "))};
Wu=function(a,b){if(a)for(var c=a.split("&"),d=0;d<c.length;d++){var e=c[d].indexOf("="),f,g=null;0<=e?(f=c[d].substring(0,e),g=c[d].substring(e+1)):f=c[d];b(f,g?(0,window.decodeURIComponent)(g.replace(/\+/g," ")):"")}};
_.Xu=function(a,b){this.T=this.V=this.S="";this.U=null;this.Aa=this.qa="";this.W=this.ua=!1;var c;a instanceof _.Xu?(this.W=_.na(b)?b:a.W,_.Yu(this,a.S),_.Zu(this,a.V),_.$u(this,a.T),_.av(this,a.U),this.setPath(a.getPath()),_.bv(this,a.R.clone()),this.ra(a.wa())):a&&(c=String(a).match(_.Wh))?(this.W=!!b,_.Yu(this,c[1]||"",!0),_.Zu(this,c[2]||"",!0),_.$u(this,c[3]||"",!0),_.av(this,c[4]),this.setPath(c[5]||"",!0),_.bv(this,c[6]||"",!0),this.ra(c[7]||"",!0)):(this.W=!!b,this.R=new _.cv(null,0,this.W))};
_.Xu.prototype.toString=function(){var a=[],b=this.S;b&&a.push(dv(b,ev,!0),":");var c=this.T;if(c||"file"==b)a.push("//"),(b=this.V)&&a.push(dv(b,ev,!0),"@"),a.push(_.Vh(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.U,null!=c&&a.push(":",String(c));if(c=this.getPath())this.T&&"/"!=c.charAt(0)&&a.push("/"),a.push(dv(c,"/"==c.charAt(0)?fv:gv,!0));(c=this.R.toString())&&a.push("?",c);(c=this.wa())&&a.push("#",dv(c,hv));return a.join("")};
_.Xu.prototype.resolve=function(a){var b=this.clone(),c=!!a.S;c?_.Yu(b,a.S):c=!!a.V;c?_.Zu(b,a.V):c=!!a.T;c?_.$u(b,a.T):c=null!=a.U;var d=a.getPath();if(c)_.av(b,a.U);else if(c=!!a.qa){if("/"!=d.charAt(0))if(this.T&&!this.qa)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(_.xd(e,"./")||_.xd(e,"/.")){for(var d=_.cd(e,"/"),e=e.split("/"),f=[],g=0;g<e.length;){var k=e[g++];"."==k?d&&g==e.length&&f.push(""):".."==k?((1<f.length||
1==f.length&&""!=f[0])&&f.pop(),d&&g==e.length&&f.push("")):(f.push(k),d=!0)}d=f.join("/")}else d=e}c?b.setPath(d):c=a.vj();c?_.bv(b,iv(a.R.toString())):c=!!a.Aa;c&&b.ra(a.wa());return b};_.Xu.prototype.clone=function(){return new _.Xu(this)};_.Yu=function(a,b,c){_.jv(a);a.S=c?iv(b,!0):b;a.S&&(a.S=a.S.replace(/:$/,""));return a};_.Zu=function(a,b,c){_.jv(a);a.V=c?iv(b):b;return a};_.$u=function(a,b,c){_.jv(a);a.T=c?iv(b,!0):b;return a};
_.av=function(a,b){_.jv(a);if(b){b=Number(b);if((0,window.isNaN)(b)||0>b)throw Error("O`"+b);a.U=b}else a.U=null;return a};_.Xu.prototype.getPath=function(){return this.qa};_.Xu.prototype.setPath=function(a,b){_.jv(this);this.qa=b?iv(a,!0):a;return this};_.Xu.prototype.vj=function(){return""!==this.R.toString()};_.bv=function(a,b,c){_.jv(a);b instanceof _.cv?(a.R=b,kv(a.R,a.W)):(c||(b=dv(b,lv)),a.R=new _.cv(b,0,a.W));return a};_.Xu.prototype.Eb=function(a,b){return _.bv(this,a,b)};
_.Xu.prototype.Sf=function(){return this.R.toString()};_.mv=function(a,b,c){_.jv(a);a.R.set(b,c);return a};_.Xu.prototype.Ce=function(a){return this.R.get(a)};_.Xu.prototype.wa=function(){return this.Aa};_.Xu.prototype.ra=function(a,b){_.jv(this);this.Aa=b?iv(a):a;return this};_.jv=function(a){if(a.ua)throw Error("P");};_.nv=function(a){return a instanceof _.Xu?a.clone():new _.Xu(a,void 0)};
iv=function(a,b){return a?b?(0,window.decodeURI)(a.replace(/%25/g,"%2525")):(0,window.decodeURIComponent)(a):""};dv=function(a,b,c){return _.t(a)?(a=(0,window.encodeURI)(a).replace(b,ov),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};ov=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};ev=/[#\/\?@]/g;gv=/[\#\?:]/g;fv=/[\#\?]/g;lv=/[\#\?@]/g;hv=/#/g;_.cv=function(a,b,c){this.S=this.R=null;this.T=a||null;this.U=!!c};
pv=function(a){a.R||(a.R=new _.he,a.S=0,a.T&&Wu(a.T,function(b,c){a.add((0,window.decodeURIComponent)(b.replace(/\+/g," ")),c)}))};_.cv.prototype.Nb=function(){pv(this);return this.S};_.cv.prototype.add=function(a,b){pv(this);this.T=null;a=qv(this,a);var c=this.R.get(a);c||this.R.set(a,c=[]);c.push(b);this.S+=1;return this};_.cv.prototype.remove=function(a){pv(this);a=qv(this,a);return _.me(this.R.S,a)?(this.T=null,this.S-=this.R.get(a).length,this.R.remove(a)):!1};
_.cv.prototype.clear=function(){this.R=this.T=null;this.S=0};var rv=function(a,b){pv(a);b=qv(a,b);return _.me(a.R.S,b)};_.h=_.cv.prototype;_.h.Rh=function(a){var b=this.Pc();return _.pd(b,a)};_.h.Pd=function(){pv(this);for(var a=this.R.Pc(),b=this.R.Pd(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};_.h.Pc=function(a){pv(this);var b=[];if(_.t(a))rv(this,a)&&(b=_.de(b,this.R.get(qv(this,a))));else{a=this.R.Pc();for(var c=0;c<a.length;c++)b=_.de(b,a[c])}return b};
_.h.set=function(a,b){pv(this);this.T=null;a=qv(this,a);rv(this,a)&&(this.S-=this.R.get(a).length);this.R.set(a,[b]);this.S+=1;return this};_.h.get=function(a,b){var c=a?this.Pc(a):[];return 0<c.length?String(c[0]):b};_.sv=function(a,b,c){a.remove(b);0<c.length&&(a.T=null,a.R.set(qv(a,b),_.ce(c)),a.S+=c.length)};
_.cv.prototype.toString=function(){if(this.T)return this.T;if(!this.R)return"";for(var a=[],b=this.R.Pd(),c=0;c<b.length;c++)for(var d=b[c],e=_.Vh(d),d=this.Pc(d),f=0;f<d.length;f++){var g=e;""!==d[f]&&(g+="="+_.Vh(d[f]));a.push(g)}return this.T=a.join("&")};_.cv.prototype.clone=function(){var a=new _.cv;a.T=this.T;this.R&&(a.R=this.R.clone(),a.S=this.S);return a};
var qv=function(a,b){var c=String(b);a.U&&(c=c.toLowerCase());return c},kv=function(a,b){b&&!a.U&&(pv(a),a.T=null,a.R.forEach(function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),_.sv(this,e,a))},a));a.U=b};_.cv.prototype.extend=function(a){for(var b=0;b<arguments.length;b++)_.ae(arguments[b],function(a,b){this.add(b,a)},this)};

var ZS={FT:"play-books-web",GT:"ge-web-app",IT:"play-store-web"};var $S=null,aT=function(){_.Pg($S)},bT=function(){aT();var a=window.document.getElementById("glass-content");a&&(a=a.parentNode)&&(a.style.border="none",a=a.previousSibling)&&(a.style.opacity=.8)},cT=function(){var a=window.document.getElementById("glass-content");a&&a.scrollIntoView()},eT=function(a,b){b.register("play.review.write.outcome",function(c){null!=c&&"OK"===c.responseCode?a.resolve(c):a.reject(c);b.close()},dT);b.register("play.review.scrollIntoView",cT,dT)},dT=function(a){a=a.rb();var b;
b=fT();b=_.av(_.$u(_.Zu(_.Yu(new _.Xu,b.S),b.V),b.T),b.U).toString();return a===b},gT=function(a,b){aT();a.reject({responseCode:b||"ERROR"})},fT=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 _.Xu(a);a.ua=!0;return a.clone()};
_.C("gapi.playreview.open",function(a){var b=_.jn(),c=a.id;if(!_.t(c)||_.bd(_.dd(c)))return gT(b,"INVALID_DOC_ID"),b.promise;$S=_.at("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;$S.style.height=Math.max(d.scrollHeight,d.offsetHeight,e.clientHeight,e.scrollHeight,e.offsetHeight)+"px";e=_.at("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"});
$S.appendChild(e);d.appendChild($S);_.Kh($S,["click","touchstart"],aT,!1);c={docId:c,hl:_.I.mc().hl||_.D("lang"),authuser:_.D("googleapis.config/sessionIndex")||"0",width:window.innerWidth};_.Cd(ZS,a.source)&&(c.source=a.source);a=fT().clone().toString();a=_.an(_.bn(_.Ym(_.Vm(_.Tm(_.Um(new _.Sm,"glass"),a),c)),{_ready:bT}),dT);_.Rm(_.Xm(a).Hf(1).Ch(1));c=_.Ba(eT,b);d=_.Ba(gT,b,void 0);_.mn.open(a.value()).then(c,d);return b.promise});

});
// Google Inc.
