Effectuez des recherches dans l'index de livres complets le plus fourni au monde.

Ma bibliothèque

ÉditeursÀ proposConfidentialitéConditions d'utilisationAide
");return null==a||null==a.sheet?Qd:Lg(a.sheet,void 0!=b?b:null,c)}function Pg(a){if(z&&!Hc(10)||"function"!=typeof p.DOMParser)return null;a=me(""+a+"");return(new DOMParser).parseFromString(Ud(a),"text/html").body.children[0]} function Ng(a,b){if(!a)return Ed;var c=document.createElement("div").style;Qg(a).forEach(function(d){var e=qc&&d in Kg?d:d.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");Ab(e,"--")||Ab(e,"var")||(d=Gg(a,d),d=fg(e,d,b),null!=d&&Hg(c,e,d))});return new Ad(c.cssText||"",zd)} function Rg(a){var b=Array.from(yg(ng,a,"getElementsByTagName",["STYLE"])),c=rb(b,function(e){return ib(Cg(e).cssRules)});c=Mg(c);c.sort(function(e,g){e=Zf(e.selectorText);a:{g=Zf(g.selectorText);for(var h=nb,k=Math.min(e.length,g.length),l=0;l=a.left&&b.right<=a.right&&b.top>=a.top&&b.bottom<=a.bottom:b.x>=a.left&&b.x<=a.right&&b.y>=a.top&&b.y<=a.bottom:!1}function Wg(a,b){var c=b.xa.right?b.x-a.right:0;a=b.ya.bottom?b.y-a.bottom:0;return Math.sqrt(c*c+a*a)} f.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};f.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};f.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};function Xg(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}f=Xg.prototype;f.clone=function(){return new Xg(this.left,this.top,this.width,this.height)};function Yg(a){return new Tg(a.top,a.left+a.width,a.top+a.height,a.left)}function Zg(a){return new Xg(a.left,a.top,a.right-a.left,a.bottom-a.top)} function $g(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);b=Math.min(a.top+a.height,b.top+b.height);if(e<=b)return a.left=c,a.top=e,a.width=d-c,a.height=b-e,!0}return!1}function ah(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 Xg(c,e,d-c,a-e)}return null} function bh(a,b){return a.left<=b.left+b.width&&b.left<=a.left+a.width&&a.top<=b.top+b.height&&b.top<=a.top+a.height}function ch(a,b){if(!a||!b)return null;a=new Xg(a.left,a.top,a.width,a.height);var c=Math.max(a.left+a.width,b.left+b.width),d=Math.max(a.top+a.height,b.top+b.height);a.left=Math.min(a.left,b.left);a.top=Math.min(a.top,b.top);a.width=c-a.left;a.height=d-a.top;return a}f.Fa=function(){return new Ae(this.width,this.height)}; f.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};f.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};f.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function J(a,b,c){if("string"===typeof b)(b=dh(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],g=dh(c,d);g&&(c.style[g]=e)}}var eh={};function dh(a,b){var c=eh[b];if(!c){var d=Re(b);c=d;void 0===a.style[d]&&(d=(qc?"Webkit":pc?"Moz":z?"ms":null)+Se(d),void 0!==a.style[d]&&(c=d));eh[b]=c}return c}function fh(a,b){var c=a.style[Re(b)];return"undefined"!==typeof c?c:a.style[dh(a,b)]||""} function gh(a,b){var c=Ve(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""}function hh(a,b){return a.currentStyle?a.currentStyle[b]:null}function ih(a,b){return gh(a,b)||hh(a,b)||a.style&&a.style[b]}function jh(a,b,c){if(b instanceof A){var d=b.x;b=b.y}else d=b,b=c;a.style.left=kh(d,!1);a.style.top=kh(b,!1)}function lh(a){return new A(a.offsetLeft,a.offsetTop)} function mh(a){a=a?Ve(a):document;return!z||Ic(9)||gf(Te(a).g)?a.documentElement:a.body}function nh(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}} function oh(a){if(z&&!Ic(8))return a.offsetParent;var b=Ve(a),c=ih(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host),c=ih(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null} function ph(a){for(var b=new Tg(0,Infinity,Infinity,0),c=Te(a),d=c.g.body,e=c.g.documentElement,g=jf(c.g);a=oh(a);)if(!(z&&0==a.clientWidth||qc&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=ih(a,"overflow")){var h=qh(a),k=new A(a.clientLeft,a.clientTop);h.x+=k.x;h.y+=k.y;b.top=Math.max(b.top,h.y);b.right=Math.min(b.right,h.x+a.clientWidth);b.bottom=Math.min(b.bottom,h.y+a.clientHeight);b.left=Math.max(b.left,h.x)}d=g.scrollLeft;g=g.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,g);c= ff(Pf(c));b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,g+c.height);return 0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null} function rh(a,b){b=b||jf(document);var c=b||jf(document);var d=qh(a),e=qh(c),g=sh(c);if(c==jf(document)){var h=d.x-c.scrollLeft;d=d.y-c.scrollTop;z&&!Ic(10)&&(h+=g.left,d+=g.top)}else h=d.x-e.x-g.left,d=d.y-e.y-g.top;a=th(a);g=c.clientHeight-a.height;e=c.scrollLeft;var k=c.scrollTop;e+=Math.min(h,Math.max(h-(c.clientWidth-a.width),0));k+=Math.min(d,Math.max(d-g,0));c=new A(e,k);b.scrollLeft=c.x;b.scrollTop=c.y} function qh(a){var b=Ve(a),c=new A(0,0),d=mh(b);if(a==d)return c;a=nh(a);b=hf(Te(b).g);c.x=a.left+b.x;c.y=a.top+b.y;return c}function uh(a,b){a=vh(a);b=vh(b);return new A(a.x-b.x,a.y-b.y)}function wh(a){a=nh(a);return new A(a.left,a.top)}function vh(a){if(1==a.nodeType)return wh(a);a=a.changedTouches?a.changedTouches[0]:a;return new A(a.clientX,a.clientY)}function xh(a,b,c){var d=qh(a);b instanceof A&&(c=b.y,b=b.x);jh(a,a.offsetLeft+(b-d.x),a.offsetTop+(Number(c)-d.y))} function K(a,b,c){if(b instanceof Ae)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");yh(a,b);a.style.height=kh(c,!0)}function kh(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function yh(a,b){a.style.width=kh(b,!0)}function L(a){var b=th;if("none"!=ih(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,g=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=g;c.visibility=e;return a} function th(a){var b=a.offsetWidth,c=a.offsetHeight,d=qc&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=nh(a),new Ae(a.right-a.left,a.bottom-a.top)):new Ae(b,c)}function zh(a){var b=qh(a);a=L(a);return new Xg(b.x,b.y,a.width,a.height)}function Ah(a,b){a=a.style;"opacity"in a?a.opacity=b:"MozOpacity"in a?a.MozOpacity=b:"filter"in a&&(a.filter=""===b?"":"alpha(opacity="+100*Number(b)+")")}function M(a,b){a.style.display=b?"":"none"}function Bh(a){return"none"!=a.style.display} function Ch(a){return"rtl"==ih(a,"direction")}var Dh=pc?"MozUserSelect":qc||nc?"WebkitUserSelect":null;function Eh(a,b,c){c=c?null:a.getElementsByTagName("*");if(Dh){if(b=b?"none":"",a.style&&(a.style[Dh]=b),c){a=0;for(var d;d=c[a];a++)d.style&&(d.style[Dh]=b)}}else if(z&&(b=b?"on":"",a.setAttribute("unselectable",b),c))for(a=0;d=c[a];a++)d.setAttribute("unselectable",b)} function Fh(a,b){var c=gf(Te(Ve(a)).g);if(!z||Hc("10")||c)Gh(a,b,"border-box");else{var d=a.style;c?(c=Hh(a),a=sh(a),d.pixelWidth=b.width-a.left-c.left-c.right-a.right,d.pixelHeight=b.height-a.top-c.top-c.bottom-a.bottom):(d.pixelWidth=b.width,d.pixelHeight=b.height)}} function Ih(a){var b=Ve(a),c=z&&a.currentStyle;if(c&&gf(Te(b).g)&&"auto"!=c.width&&"auto"!=c.height&&!c.boxSizing)return b=Jh(a,c.width,"width","pixelWidth"),a=Jh(a,c.height,"height","pixelHeight"),new Ae(b,a);c=new Ae(a.offsetWidth,a.offsetHeight);b=Hh(a);a=sh(a);return new Ae(c.width-a.left-b.left-b.right-a.right,c.height-a.top-b.top-b.bottom-a.bottom)} function Kh(a,b){var c=gf(Te(Ve(a)).g);if(!z||Hc("10")||c)Gh(a,b,"content-box");else{var d=a.style;c?(d.pixelWidth=b.width,d.pixelHeight=b.height):(c=Hh(a),a=sh(a),d.pixelWidth=b.width+a.left+c.left+c.right+a.right,d.pixelHeight=b.height+a.top+c.top+c.bottom+a.bottom)}}function Gh(a,b,c){a=a.style;pc?a.MozBoxSizing=c:qc?a.WebkitBoxSizing=c:a.boxSizing=c;a.width=Math.max(b.width,0)+"px";a.height=Math.max(b.height,0)+"px"} function Jh(a,b,c,d){if(/^\d+px?$/.test(b))return parseInt(b,10);var e=a.style[c],g=a.runtimeStyle[c];a.runtimeStyle[c]=a.currentStyle[c];a.style[c]=b;b=a.style[d];a.style[c]=e;a.runtimeStyle[c]=g;return+b}function Lh(a,b){return(b=hh(a,b))?Jh(a,b,"left","pixelLeft"):0} function Hh(a){if(z){var b=Lh(a,"paddingLeft"),c=Lh(a,"paddingRight"),d=Lh(a,"paddingTop");a=Lh(a,"paddingBottom");return new Tg(d,c,a,b)}b=gh(a,"paddingLeft");c=gh(a,"paddingRight");d=gh(a,"paddingTop");a=gh(a,"paddingBottom");return new Tg(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}var Mh={thin:2,medium:4,thick:6};function Nh(a,b){if("none"==hh(a,b+"Style"))return 0;b=hh(a,b+"Width");return b in Mh?Mh[b]:Jh(a,b,"left","pixelLeft")} function sh(a){if(z&&!Ic(9)){var b=Nh(a,"borderLeft"),c=Nh(a,"borderRight"),d=Nh(a,"borderTop");a=Nh(a,"borderBottom");return new Tg(d,c,a,b)}b=gh(a,"borderLeftWidth");c=gh(a,"borderRightWidth");d=gh(a,"borderTopWidth");a=gh(a,"borderBottomWidth");return new Tg(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))};var Oh={"* ARIA-CHECKED":!0,"* ARIA-COLCOUNT":!0,"* ARIA-COLINDEX":!0,"* ARIA-CONTROLS":!0,"* ARIA-DESCRIBEDBY":!0,"* ARIA-DISABLED":!0,"* ARIA-EXPANDED":!0,"* ARIA-GOOG-EDITABLE":!0,"* ARIA-HASPOPUP":!0,"* ARIA-HIDDEN":!0,"* ARIA-LABEL":!0,"* ARIA-LABELLEDBY":!0,"* ARIA-MULTILINE":!0,"* ARIA-MULTISELECTABLE":!0,"* ARIA-ORIENTATION":!0,"* ARIA-PLACEHOLDER":!0,"* ARIA-READONLY":!0,"* ARIA-REQUIRED":!0,"* ARIA-ROLEDESCRIPTION":!0,"* ARIA-ROWCOUNT":!0,"* ARIA-ROWINDEX":!0,"* ARIA-SELECTED":!0,"* ABBR":!0, "* ACCEPT":!0,"* ACCESSKEY":!0,"* ALIGN":!0,"* ALT":!0,"* AUTOCOMPLETE":!0,"* AXIS":!0,"* BGCOLOR":!0,"* BORDER":!0,"* CELLPADDING":!0,"* CELLSPACING":!0,"* CHAROFF":!0,"* CHAR":!0,"* CHECKED":!0,"* CLEAR":!0,"* COLOR":!0,"* COLSPAN":!0,"* COLS":!0,"* COMPACT":!0,"* COORDS":!0,"* DATETIME":!0,"* DIR":!0,"* DISABLED":!0,"* ENCTYPE":!0,"* FACE":!0,"* FRAME":!0,"* HEIGHT":!0,"* HREFLANG":!0,"* HSPACE":!0,"* ISMAP":!0,"* LABEL":!0,"* LANG":!0,"* MAX":!0,"* MAXLENGTH":!0,"* METHOD":!0,"* MULTIPLE":!0, "* NOHREF":!0,"* NOSHADE":!0,"* NOWRAP":!0,"* OPEN":!0,"* READONLY":!0,"* REQUIRED":!0,"* REL":!0,"* REV":!0,"* ROLE":!0,"* ROWSPAN":!0,"* ROWS":!0,"* RULES":!0,"* SCOPE":!0,"* SELECTED":!0,"* SHAPE":!0,"* SIZE":!0,"* SPAN":!0,"* START":!0,"* SUMMARY":!0,"* TABINDEX":!0,"* TITLE":!0,"* TYPE":!0,"* VALIGN":!0,"* VALUE":!0,"* VSPACE":!0,"* WIDTH":!0},Ph={"* USEMAP":!0,"* ACTION":!0,"* CITE":!0,"* HREF":!0,"* LONGDESC":!0,"* SRC":!0,"LINK HREF":!0,"* FOR":!0,"* HEADERS":!0,"* NAME":!0,"A TARGET":!0, "* CLASS":!0,"* ID":!0,"* STYLE":!0};var Qh="undefined"!=typeof WeakMap&&-1!=WeakMap.toString().indexOf("[native code]"),Rh=0;function Sh(){this.j=[];this.i=[];this.g="data-elementweakmap-index-"+Rh++}Sh.prototype.set=function(a,b){if(yg(jg,a,"hasAttribute",[this.g])){var c=parseInt(yg(kg,a,"getAttribute",[this.g])||null,10);this.i[c]=b}else c=this.i.push(b)-1,Ag(a,this.g,c.toString()),this.j.push(a);return this}; Sh.prototype.get=function(a){if(yg(jg,a,"hasAttribute",[this.g]))return a=parseInt(yg(kg,a,"getAttribute",[this.g])||null,10),this.i[a]};Sh.prototype.clear=function(){this.j.forEach(function(a){yg(mg,a,"removeAttribute",[this.g])},this);this.j=[];this.i=[]};var Th=!z||Ic(10),Uh=!z||null==document.documentMode;function Vh(){};var Wh={APPLET:!0,AUDIO:!0,BASE:!0,BGSOUND:!0,EMBED:!0,FORM:!0,IFRAME:!0,ISINDEX:!0,KEYGEN:!0,LAYER:!0,LINK:!0,META:!0,OBJECT:!0,SCRIPT:!0,SVG:!0,STYLE:!0,TEMPLATE:!0,VIDEO:!0};var Xh={A:!0,ABBR:!0,ACRONYM:!0,ADDRESS:!0,AREA:!0,ARTICLE:!0,ASIDE:!0,B:!0,BDI:!0,BDO:!0,BIG:!0,BLOCKQUOTE:!0,BR:!0,BUTTON:!0,CAPTION:!0,CENTER:!0,CITE:!0,CODE:!0,COL:!0,COLGROUP:!0,DATA:!0,DATALIST:!0,DD:!0,DEL:!0,DETAILS:!0,DFN:!0,DIALOG:!0,DIR:!0,DIV:!0,DL:!0,DT:!0,EM:!0,FIELDSET:!0,FIGCAPTION:!0,FIGURE:!0,FONT:!0,FOOTER:!0,FORM:!0,H1:!0,H2:!0,H3:!0,H4:!0,H5:!0,H6:!0,HEADER:!0,HGROUP:!0,HR:!0,I:!0,IMG:!0,INPUT:!0,INS:!0,KBD:!0,LABEL:!0,LEGEND:!0,LI:!0,MAIN:!0,MAP:!0,MARK:!0,MENU:!0,METER:!0,NAV:!0, NOSCRIPT:!0,OL:!0,OPTGROUP:!0,OPTION:!0,OUTPUT:!0,P:!0,PRE:!0,PROGRESS:!0,Q:!0,S:!0,SAMP:!0,SECTION:!0,SELECT:!0,SMALL:!0,SOURCE:!0,SPAN:!0,STRIKE:!0,STRONG:!0,STYLE:!0,SUB:!0,SUMMARY:!0,SUP:!0,TABLE:!0,TBODY:!0,TD:!0,TEXTAREA:!0,TFOOT:!0,TH:!0,THEAD:!0,TIME:!0,TR:!0,TT:!0,U:!0,UL:!0,VAR:!0,WBR:!0};var Yh={"ANNOTATION-XML":!0,"COLOR-PROFILE":!0,"FONT-FACE":!0,"FONT-FACE-SRC":!0,"FONT-FACE-URI":!0,"FONT-FACE-FORMAT":!0,"FONT-FACE-NAME":!0,"MISSING-GLYPH":!0}; function Zh(a){a=a||new $h;ai(a);this.g=bc(a.g);this.N=bc(a.ua);this.j=bc(a.wa);this.oa=a.na;a.Ca.forEach(function(b){if(!Ab(b,"data-"))throw new Ta('Only "data-" attributes allowed, got: %s.',[b]);if(Ab(b,"data-sanitizer-"))throw new Ta('Attributes with "%s" prefix are not allowed, got: %s.',["data-sanitizer-",b]);this.g["* "+b.toUpperCase()]=bi},this);a.Ba.forEach(function(b){b=b.toUpperCase();if(!Ob(b,"-")||Yh[b])throw new Ta("Only valid custom element tag names allowed, got: %s.",[b]);this.j[b]= !0},this);this.ma=a.j;this.s=a.Qa;this.o=null;this.O=a.oa}u(Zh,Vh);function ci(a){return function(b,c){return(b=a(Db(b),c))&&"about:invalid#zClosurez"!=qd(b)?qd(b):null}}function $h(){this.g={};v([Oh,Ph],function(a){Wb(a).forEach(function(b){this.g[b]=bi},this)},this);this.i={};this.Ca=[];this.Ba=[];this.ua=bc(Wh);this.wa=bc(Xh);this.na=!1;this.ma=wd;this.O=this.o=this.s=this.j=Oc;this.Qa=null;this.N=this.oa=!1} function di(a,b){return function(c,d,e,g){c=a(c,d,e,g);return null==c?null:b(c,d,e,g)}}function ei(a,b,c,d){a[c]&&!b[c]&&(a[c]=di(a[c],d))} function ai(a){if(a.N)throw Error("HtmlSanitizer.Builder.build() can only be used once.");ei(a.g,a.i,"* USEMAP",fi);var b=ci(a.ma);["* ACTION","* CITE","* HREF"].forEach(function(d){ei(this.g,this.i,d,b)},a);var c=ci(a.j);["* LONGDESC","* SRC","LINK HREF"].forEach(function(d){ei(this.g,this.i,d,c)},a);["* FOR","* HEADERS","* NAME"].forEach(function(d){ei(this.g,this.i,d,t(gi,this.s))},a);ei(a.g,a.i,"A TARGET",t(hi,["_blank","_self"]));ei(a.g,a.i,"* CLASS",t(ii,a.o));ei(a.g,a.i,"* ID",t(ji,a.o));ei(a.g, a.i,"* STYLE",t(a.O,c));a.N=!0}function ki(a,b){a||(a="*");return(a+" "+b).toUpperCase()}function bi(a){return Db(a)}function hi(a,b){b=Db(b);return cb(a,b.toLowerCase())?b:null}function fi(a){return(a=Db(a))&&"#"==a.charAt(0)?a:null}function gi(a,b,c){return a(Db(b),c)}function ii(a,b,c){b=b.split(/(?:\s+)/);for(var d=[],e=0;e"+b+""),Rg(b),b=b.innerHTML);b=me(b);var c=document.createElement("template");if(Uh&&"content"in c)oe(c,b),c=c.content;else{var d=document.implementation.createHTMLDocument("x");c=d.body;oe(d.body,b)}b=document.createTreeWalker(c,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,null,!1);for(c=Qh? new WeakMap:new Sh;d=b.nextNode();){c:{var e=d;switch(Eg(e)){case 3:e=li(this,e);break c;case 1:if("TEMPLATE"==Dg(e).toUpperCase())e=null;else{var g=Dg(e).toUpperCase();if(g in this.N||"http://www.w3.org/1999/xhtml"!=Ig(e))var h=null;else this.j[g]?h=document.createElement(g):(h=E("SPAN"),this.oa&&Ag(h,"data-sanitizer-original-tag",g.toLowerCase()));if(h){var k=h,l=zg(e);if(null!=l)for(var n=0;g=l[n];n++)if(g.specified){var r=e;var w=g;var D=w.name;if(Ab(D,"data-sanitizer-"))w=null;else{var H=Dg(r); w=w.value;var I={tagName:Db(H).toLowerCase(),attributeName:Db(D).toLowerCase()},Q={Qk:void 0};"style"==I.attributeName&&(Q.Qk=Bg(r));r=ki(H,D);r in this.g?(D=this.g[r],w=D(w,I,Q)):(D=ki(null,D),D in this.g?(D=this.g[D],w=D(w,I,Q)):w=null)}null!==w&&Ag(k,g.name,w)}e=h}else e=null}break c;default:e=null}}if(e){if(1==Eg(e)&&c.set(d,e),d=Fg(d),g=!1,d)h=Eg(d),k=Dg(d).toLowerCase(),l=Fg(d),11!=h||l?"body"==k&&l&&(h=Fg(l))&&!Fg(h)&&(g=!0):g=!0,h=null,g||!d?h=a:1==Eg(d)&&(h=c.get(d)),h.content&&(h=h.content), h.appendChild(e)}else rf(d)}c.clear&&c.clear()}else a=E("SPAN");0")+1,a.lastIndexOf(""+b);b=(new DOMParser).parseFromString(ui(b),"text/html");for(var c=b.createElement("div");Li(b.body).length;)c.appendChild(Mi(b.body));b=b.createTreeWalker(c,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,a.o.bind(a),!1);for(var d=b.nextNode(),e=c=document.createElement("div");null!==d;){if(Ki(d)===Node.TEXT_NODE)var g=document.createTextNode(d.data);else if(Ki(d)===Node.ELEMENT_NODE){g=a;var h=d;d=Ji(h);var k=document.createElement(d);if(h=Ii(h))for(var l=ka(h), n=l.next();!n.done;n=l.next()){var r=n.value;n=Ni(r);r=Oi(r);var w=g.j;var D=n,H=w.g.get(d);w=(null===H||void 0===H?0:H.has(D))?H.get(D):w.j.has(D)?{Lc:1}:w.o.get(D)||{Lc:0};a:{D=void 0;var I=w.conditions;H=h;if(I){I=ka(I);for(var Q=I.next();!Q.done;Q=I.next()){var Fa=ka(Q.value);Q=Fa.next().value;Fa=Fa.next().value;if((Q=null===(D=H.getNamedItem(Q))||void 0===D?void 0:D.value)&&!Fa.has(Q)){D=!1;break a}}}D=!0}if(D)switch(w.Lc){case 1:k.setAttribute(n,r);break;case 2:w=yi(Ci(r));g.g=g.g||w!==r;k.setAttribute(n, w);break;case 3:k.setAttribute(n,r.toLowerCase());break;case 0:g.g=!0;break;default:throw Error("Unhandled AttributePolicyAction case");}else g.g=!0}g=k}else throw Error("Node is not of type text or element");e.appendChild(g);if(d=b.firstChild())e=g;else for(;!(d=b.nextSibling())&&(d=b.parentNode());)e=e.parentNode}a=(new XMLSerializer).serializeToString(c);a=a.slice(a.indexOf(">")+1,a.lastIndexOf(">>0);function uj(a){if("function"===typeof a)return a;a[Dj]||(a[Dj]=function(b){return a.handleEvent(b)});return a[Dj]};function Ej(a){Zi.call(this);this.N=a;this.j={}}u(Ej,Zi);var Fj=[];f=Ej.prototype;f.ka=function(a,b,c,d){return Gj(this,a,b,c,d)};function Hj(a,b,c,d,e){Gj(a,b,c,d,!1,e)}function Gj(a,b,c,d,e,g){Array.isArray(c)||(c&&(Fj[0]=c.toString()),c=Fj);for(var h=0;h=a.keyCode)return!1;if(Nj(a.keyCode))return!0;switch(a.keyCode){case 18:case 20:case 93:case 17:case 40:case 35:case 27:case 36:case 45:case 37:case 224:case 91:case 144:case 12:case 34:case 33:case 19:case 255:case 44:case 39:case 145:case 16:case 38:case 252:case 224:case 92:return!1;case 0:return!pc;default:return 166>a.keyCode||183=a||96<=a&&106>=a||65<=a&&90>=a||(qc||nc)&&0==a)return!0;switch(a){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:case 163:case 58:return!0;case 173:return pc;default:return!1}}function Pj(a){if(pc)a=Qj(a);else if(sc&&qc)switch(a){case 93:a=91}return a} function Qj(a){switch(a){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return a}};function Rj(a){if(a.lc&&"function"==typeof a.lc)return a.lc();if("undefined"!==typeof Map&&a instanceof Map||"undefined"!==typeof Set&&a instanceof Set)return Array.from(a.values());if("string"===typeof a)return a.split("");if(Ga(a)){for(var b=[],c=a.length,d=0;dc&&(c=a.length);var d=a.indexOf("?");if(0>d||d>c){d=c;var e=""}else e=a.substring(d+1,c);a=[a.substr(0,d),e,a.substr(c)];c=a[1];a[1]=b?c?c+"&"+b:b:c;a=a[0]+(a[1]?"?"+a[1]:"")+a[2]}return a}function Xj(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&bd)return null;var e=b.indexOf("&",d);if(0>e||e>c)e=c;d+=a.length+1;return Ge(b.substr(d,e-d))}var ak=/[?&]($|#)/;function R(a,b){this.i=this.O=this.s="";this.ma=null;this.g=this.o="";this.N=!1;var c;a instanceof R?(this.N=void 0!==b?b:a.N,bk(this,a.s),this.O=a.O,this.i=a.i,ck(this,a.ma),dk(this,a.o),ek(this,a.j.clone()),this.g=a.g):a&&(c=String(a).match(Uj))?(this.N=!!b,bk(this,c[1]||"",!0),this.O=fk(c[2]||""),this.i=fk(c[3]||"",!0),ck(this,c[4]),dk(this,c[5]||"",!0),ek(this,c[6]||"",!0),this.g=fk(c[7]||"")):(this.N=!!b,this.j=new gk(null,this.N))} R.prototype.toString=function(){var a=[],b=this.s;b&&a.push(hk(b,ik,!0),":");var c=this.i;if(c||"file"==b)a.push("//"),(b=this.O)&&a.push(hk(b,ik,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.ma,null!=c&&a.push(":",String(c));if(c=this.o)this.i&&"/"!=c.charAt(0)&&a.push("/"),a.push(hk(c,"/"==c.charAt(0)?jk:kk,!0));(c=this.j.toString())&&a.push("?",c);(c=this.g)&&a.push("#",hk(c,lk));return a.join("")};R.prototype.clone=function(){return new R(this)}; function bk(a,b,c){a.s=c?fk(b,!0):b;a.s&&(a.s=a.s.replace(/:$/,""))}function ck(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.ma=b}else a.ma=null}function dk(a,b,c){a.o=c?fk(b,!0):b}function ek(a,b,c){b instanceof gk?(a.j=b,mk(a.j,a.N)):(c||(b=hk(b,nk)),a.j=new gk(b,a.N))}R.prototype.getQuery=function(){return this.j.toString()};function S(a,b,c){a.j.set(b,c);return a}function T(a,b){return a.j.get(b)}function ok(a,b){a.j.remove(b)} function fk(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}function hk(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,pk),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function pk(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var ik=/[#\/\?@]/g,kk=/[#\?:]/g,jk=/[#\?]/g,nk=/[#\?@]/g,lk=/#/g;function gk(a,b){this.i=this.g=null;this.j=a||null;this.o=!!b} function qk(a){a.g||(a.g=new Map,a.i=0,a.j&&Vj(a.j,function(b,c){a.add(Ge(b),c)}))}function rk(a){var b=Sj(a);if("undefined"==typeof b)throw Error("Keys are undefined");var c=new gk(null,void 0);a=Rj(a);for(var d=0;da.i&&(a.i++,b.next=a.g,a.g=b)};function Fk(a,b){var c=a;b&&(c=q(a,b));c=Gk(c);"function"!==typeof p.setImmediate||p.Window&&p.Window.prototype&&!y("Edge")&&p.Window.prototype.setImmediate==p.setImmediate?(Hk||(Hk=Ik()),Hk(c)):p.setImmediate(c)}var Hk; function Ik(){var a=p.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!y("Presto")&&(a=function(){var e=E("IFRAME");e.style.display="none";document.documentElement.appendChild(e);var g=e.contentWindow;e=g.document;e.open();e.close();var h="callImmediate"+Math.random(),k="file:"==g.location.protocol?"*":g.location.protocol+"//"+g.location.host;e=q(function(l){if(("*"==k||l.origin==k)&&l.data==h)this.port1.onmessage()},this);g.addEventListener("message", e,!1);this.port1={};this.port2={postMessage:function(){g.postMessage(h,k)}}});if("undefined"!==typeof a&&!y("Trident")&&!y("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.cb;c.cb=null;e()}};return function(e){d.next={cb:e};d=d.next;b.port2.postMessage(0)}}return function(e){p.setTimeout(e,0)}}var Gk=Pc;function Jk(a){p.setTimeout(function(){throw a;},0)};function Kk(){this.i=this.g=null}Kk.prototype.add=function(a,b){var c=Lk.get();c.set(a,b);this.i?this.i.next=c:this.g=c;this.i=c};Kk.prototype.remove=function(){var a=null;this.g&&(a=this.g,this.g=this.g.next,this.g||(this.i=null),a.next=null);return a};var Lk=new Dk(function(){return new Mk},function(a){return a.reset()});function Mk(){this.next=this.g=this.Ie=null}Mk.prototype.set=function(a,b){this.Ie=a;this.g=b;this.next=null};Mk.prototype.reset=function(){this.next=this.g=this.Ie=null};function Nk(a,b){Ok||Pk();Qk||(Ok(),Qk=!0);Rk.add(a,b)}var Ok;function Pk(){if(p.Promise&&p.Promise.resolve){var a=p.Promise.resolve(void 0);Ok=function(){a.then(Sk)}}else Ok=function(){Fk(Sk)}}var Qk=!1,Rk=new Kk;function Sk(){for(var a;a=Rk.remove();){try{a.Ie.call(a.g)}catch(b){Jk(b)}Ek(Lk,a)}Qk=!1};function Tk(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};function Uk(a){this.g=0;this.O=void 0;this.o=this.i=this.j=null;this.s=this.N=!1;if(a!=Ca)try{var b=this;a.call(void 0,function(c){Vk(b,2,c)},function(c){Vk(b,3,c)})}catch(c){Vk(this,3,c)}}function Wk(){this.next=this.context=this.i=this.j=this.g=null;this.o=!1}Wk.prototype.reset=function(){this.context=this.i=this.j=this.g=null;this.o=!1};var Xk=new Dk(function(){return new Wk},function(a){a.reset()});function Yk(a,b,c){var d=Xk.get();d.j=a;d.i=b;d.context=c;return d} function Zk(){var a,b,c=new Uk(function(d,e){a=d;b=e});return new $k(c,a,b)}Uk.prototype.then=function(a,b,c){return al(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};Uk.prototype.$goog_Thenable=!0;Uk.prototype.cancel=function(a){if(0==this.g){var b=new bl(a);Nk(function(){cl(this,b)},this)}}; function cl(a,b){if(0==a.g)if(a.j){var c=a.j;if(c.i){for(var d=0,e=null,g=null,h=c.i;h&&(h.o||(d++,h.g==a&&(e=h),!(e&&1=b})}function Ml(a,b){return a.g.find(function(c){return Vg(Yg(Il(c)),b)})};function Nl(){this.g=[];this.cells=[]}u(Nl,Jl);f=Nl.prototype;f.Bm=0;f.marginTop=0;f.marginRight=0;f.zi=0;f.ql=0;f.Rj=0;f.iq=!1;f.Bb=function(){return this.wb};f.Db=function(){return this.Cb}; function Ol(a){a.O();for(var b=a.Bm,c=0;cthis.na)if(this.dispatchEvent(new Fm("start",this,a.clientX,a.clientY,a)))this.i=!0;else{this.Hd||this.Xi(a);return}}c=Im(this,b,c);b=c.x;c=c.y;this.i&&this.dispatchEvent(new Fm("beforedrag",this,a.clientX,a.clientY,a,b,c))&&(Jm(this,a,b,c),a.preventDefault())}}; function Im(a,b,c){var d=hf(Te(a.j).g);b+=d.x-a.wa.x;c+=d.y-a.wa.y;a.wa=d;a.deltaX+=b;a.deltaY+=c;return new A(Gm(a,a.deltaX),Hm(a,a.deltaY))}f.lv=function(a){var b=Im(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;Jm(this,a,b.x,b.y)};function Jm(a,b,c,d){a.Sk(c,d);a.dispatchEvent(new Fm("drag",a,b.clientX,b.clientY,b,c,d))}function Gm(a,b){var c=a.ua;a=isNaN(c.left)?null:c.left;c=isNaN(c.width)?0:c.width;return Math.min(null!=a?a+c:Infinity,Math.max(null!=a?a:-Infinity,b))} function Hm(a,b){var c=a.ua;a=isNaN(c.top)?null:c.top;c=isNaN(c.height)?0:c.height;return Math.min(null!=a?a+c:Infinity,Math.max(null!=a?a:-Infinity,b))}f.Sk=function(a,b){this.target.style.left=a+"px";this.target.style.top=b+"px"};function Fm(a,b,c,d,e,g,h){bj.call(this,a);this.clientX=c;this.clientY=d;this.i=e;this.left=void 0!==g?g:b.deltaX;this.top=void 0!==h?h:b.deltaY}u(Fm,bj);function Km(a){this.Ud=new Map;var b=arguments.length;if(1b||b>an(this))throw Error("Child component index out of bounds");this.ma&&this.N||(this.ma={},this.N=[]);if(a.getParent()==this){var d=a.getId();this.ma[d]=a;eb(this.N,a)}else ac(this.ma,a.getId(),a);a.ke(this);kb(this.N,b,0,a);a.$a&&this.$a&&a.getParent()==this?(c=this.Ib(),(c.childNodes[b]||null)!=a.ha()&&(a.ha().parentElement==c&&c.removeChild(a.ha()),b=c.childNodes[b]||null,c.insertBefore(a.ha(),b))):c? (this.ya||this.Va(),b=bn(this,b+1),Ym(a,this.Ib(),b?b.ya:null)):this.$a&&!a.$a&&a.ya&&a.ya.parentNode&&1==a.ya.parentNode.nodeType&&a.Ma()};f.Ib=function(){return this.ya};function cn(a){null==a.Xb&&(a.Xb=Ch(a.$a?a.ya:a.g.g.body));return a.Xb}function an(a){return a.N?a.N.length:0}function Xm(a,b){a.ma&&b?(a=a.ma,b=(null!==a&&b in a?a[b]:void 0)||null):b=null;return b}function bn(a,b){return a.N?a.N[b]||null:null}function $m(a,b,c){a.N&&a.N.forEach(b,c)} function dn(a,b){return a.N&&b?a.N.indexOf(b):-1}f.removeChild=function(a,b){if(a){var c="string"===typeof a?a:a.getId();a=Xm(this,c);if(c&&a){var d=this.ma;c in d&&delete d[c];eb(this.N,a);b&&(a.kc(),a.ya&&F(a.ya));a.ke(null)}}if(!a)throw Error("Child is not in parent component");return a};function en(a,b){this.ya=a;this.i=b};function fn(a,b){P.call(this);this.o=new Ej(this);this.qg(a||null);b&&(this.rg=b)}u(fn,P);f=fn.prototype;f.ya=null;f.Un=!0;f.Tn=null;f.ng=!1;f.Cl=-1;f.io=!0;f.rg="toggle_display";f.getType=function(){return this.rg};f.ha=function(){return this.ya};f.qg=function(a){gn(this);this.ya=a};function gn(a){if(a.ng)throw Error("Can not change this state of the popup while showing.");}f.isVisible=function(){return this.ng}; f.Da=function(a){this.Ja&&this.Ja.stop();this.ua&&this.ua.stop();if(a){if(!this.ng&&this.Nl()){if(!this.ya)throw Error("Caller must call setElement before trying to show the popup");this.og();a=Ve(this.ya);if(this.Un)if(this.o.ka(a,"mousedown",this.kp,!0),z){try{var b=a.activeElement}catch(d){}for(;b&&"IFRAME"==b.nodeName;){try{var c=Cf(b)}catch(d){break}a=c;b=a.activeElement}this.o.ka(a,"mousedown",this.kp,!0);this.o.ka(a,"deactivate",this.jp)}else this.o.ka(a,"blur",this.jp);"toggle_display"==this.rg? (this.ya.style.visibility="visible",M(this.ya,!0)):"move_offscreen"==this.rg&&this.og();this.ng=!0;this.Cl=Date.now();this.Ja?(tj(this.Ja,"end",this.Bi,!1,this),this.Ja.play()):this.Bi()}}else hn(this)};f.og=Ca;function hn(a,b){a.ng&&a.dispatchEvent({type:"beforehide",target:b})&&(a.o&&Jj(a.o),a.ng=!1,Date.now(),a.ua?(tj(a.ua,"end",t(a.Yn,b),!1,a),a.ua.play()):a.Yn(b))}f.Yn=function(a){"toggle_display"==this.rg?this.su():"move_offscreen"==this.rg&&(this.ya.style.top="-10000px");this.kh(a)}; f.su=function(){this.ya.style.visibility="hidden";M(this.ya,!1)};f.Nl=function(){return this.dispatchEvent("beforeshow")};f.Bi=function(){this.dispatchEvent("show")};f.kh=function(a){this.dispatchEvent({type:"hide",target:a})};f.kp=function(a){a=a.target;Bf(this.ya,a)||jn(this,a)||150>Date.now()-this.Cl||hn(this,a)}; f.jp=function(a){if(this.io){var b=Ve(this.ya);if("undefined"!=typeof document.activeElement){if(a=b.activeElement,!a||Bf(this.ya,a)||"BODY"==a.tagName||jn(this,a))return}else if(a.target!=b)return;150>Date.now()-this.Cl||hn(this)}};function jn(a,b){return Za(a.Tn||[],function(c){return b===c||Bf(c,b)})}f.va=function(){fn.ta.va.call(this);this.o.Ha();Yi(this.Ja);Yi(this.ua);delete this.ya;delete this.o;delete this.Tn};function kn(a,b){X.call(this,b);this.Of=!!a;this.ua=null;this.Nc=Pm({Tu:this.Fj},this)}u(kn,X);f=kn.prototype;f.Zk=null;f.Ei=!1;f.md=null;f.yc=null;f.Td=null;f.Hk=!1;f.lh=function(){return"goog-modalpopup"};f.Kh=function(){return this.md};f.Va=function(){kn.ta.Va.call(this);var a=this.ha();wb(a,Db(this.lh()).split(" "));Hf(a,!0);M(a,!1);ln(this);mn(this)}; function ln(a){if(a.Of&&!a.yc){var b=a.g.Ra("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});b.src=kd(Rm).toString();a.yc=b;a.yc.className=a.lh()+"-bg";M(a.yc,!1);Ah(a.yc,0)}a.md||(a.md=a.g.Ra("DIV",a.lh()+"-bg"),M(a.md,!1))}function mn(a){a.Td||(a.Td=Of(a.g,"SPAN"),M(a.Td,!1),Hf(a.Td,!0),a.Td.style.position="absolute")}f.Kp=function(){this.Hk=!1};f.Ai=function(a){return!!a&&"DIV"==a.tagName}; f.Nb=function(a){kn.ta.Nb.call(this,a);a=Db(this.lh()).split(" ");wb(this.ha(),a);ln(this);mn(this);Hf(this.ha(),!0);M(this.ha(),!1)};f.Ma=function(){this.yc&&sf(this.yc,this.ha());sf(this.md,this.ha());kn.ta.Ma.call(this);tf(this.Td,this.ha());this.Zk=new Sm(this.g.g);Y(this).ka(this.Zk,"focusin",this.fv);nn(this,!1)};f.kc=function(){this.isVisible()&&this.Da(!1);Yi(this.Zk);kn.ta.kc.call(this);F(this.yc);F(this.md);F(this.Td)}; f.Da=function(a){if(a!=this.Ei)if(this.Ba&&this.Ba.stop(),this.La&&this.La.stop(),this.wa&&this.wa.stop(),this.Ja&&this.Ja.stop(),this.$a&&nn(this,a),a){if(this.dispatchEvent("beforeshow")){try{this.ua=this.g.g.activeElement}catch(e){}this.Fj();this.mh();Y(this).ka(Pf(this.g),"resize",this.Fj).ka(Pf(this.g),"orientationchange",this.Nc);on(this,!0);this.focus();this.Ei=!0;this.Ba&&this.La?(tj(this.Ba,"end",this.Di,!1,this),this.La.play(),this.Ba.play()):this.Di()}}else if(this.dispatchEvent("beforehide")){Y(this).Xa(Pf(this.g), "resize",this.Fj).Xa(Pf(this.g),"orientationchange",this.Nc);this.Ei=!1;this.wa&&this.Ja?(tj(this.wa,"end",this.Ci,!1,this),this.Ja.play(),this.wa.play()):this.Ci();a:{try{var b=this.g,c=b.g.body,d=b.g.activeElement||c;if(!this.ua||this.ua==c){this.ua=null;break a}(d==c||b.zm(this.ha(),d))&&this.ua.focus()}catch(e){}this.ua=null}}}; function nn(a,b){a.Fc||(a.Fc=new en(a.ya,a.g));a=a.Fc;if(b){a.g||(a.g=[]);b=a.i.oo(a.i.g.body);for(var c=0;c=Kn&&(Ah(this.g,a),this.j=a)};f.Cf=function(){this.j=-1;Jn.ta.Cf.call(this)};f.Qe=function(){this.j=-1;Jn.ta.Qe.call(this)};f.show=function(){this.g.style.display=""};f.kb=function(){this.g.style.display="none"};function Ln(a,b,c){Jn.call(this,a,1,0,b,c)}u(Ln,Jn);Ln.prototype.Cf=function(){this.show();Ln.ta.Cf.call(this)};Ln.prototype.Qe=function(){this.kb();Ln.ta.Qe.call(this)}; function Mn(a,b,c,d,e){if(3!=b.length||3!=c.length)throw Error("Start and end points must be 3D");In.call(this,a,b,c,d,e)}u(Mn,In);Mn.prototype.mg=function(){for(var a=[],b=0;b2*this.size&&Vn(this),a=!0):a=!1;return a};function Vn(a){if(a.size!=a.g.length){for(var b=0,c=0;b=d.g.length)throw Qf;var g=d.g[b++];return a?g:d.i[g]};return e};function Xn(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function Zn(){this.i=new Un;this.g=new $n("",void 0);this.g.next=this.g.g=this.g}f=Zn.prototype;f.get=function(a,b){return(a=this.i.get(a))?a.value:b};f.set=function(a,b){var c=this.i.get(a);c?c.value=b:(c=new $n(a,b),this.i.set(a,c),a=c,a.g=this.g.g,a.next=this.g,this.g.g=a,a.g.next=a)};f.shift=function(){return ao(this,this.g.next)};f.pop=function(){return ao(this,this.g.g)};f.remove=function(a){return(a=this.i.get(a))?(a.remove(),this.i.remove(a.key),!0):!1}; f.ae=function(){return bo(this,function(a,b){return b})};f.lc=function(){return bo(this,function(a){return a})};f.forEach=function(a,b){for(var c=this.g.next;c!=this.g;c=c.next)a.call(b,c.value,c.key,this)};function bo(a,b){for(var c=[],d=a.g.next;d!=a.g;d=d.next)c.push(b.call(void 0,d.value,d.key,a));return c}function ao(a,b){a.g!=b&&(b.remove(),a.i.remove(b.key));return b.value}function $n(a,b){this.key=a;this.value=b} $n.prototype.remove=function(){this.g.next=this.next;this.next.g=this.g;delete this.g;delete this.next};function co(){P.call(this);this.i=new Zn}u(co,P);co.prototype.j=function(a){a.sort(eo);v(a,function(b){b.ke(this)},this);this.i=new Zn;v(a,function(b){this.i.set(b.Pa(),b)},this);this.dispatchEvent("update")};function eo(a,b){return fo(a)-fo(b)}function go(a){return a.i.lc()}function ho(a,b,c){a=go(a);for(var d=-1,e=0;e=b.ma&&b.cancel())}this.ua?this.ua.call(this.Qa,this):this.oa=!0;this.j||(a=new mo(this),no(this),oo(this,!1,a))}};ko.prototype.na=function(a,b){this.O=!1;oo(this,a,b)}; function oo(a,b,c){a.j=!0;a.i=c;a.o=!b;po(a)}function no(a){if(a.j){if(!a.oa)throw new qo(a);a.oa=!1}}ko.prototype.Fg=function(a){no(this);oo(this,!0,a)};function ro(a,b,c,d){a.s.push([b,c,d]);a.j&&po(a)}ko.prototype.then=function(a,b,c){var d,e,g=new Uk(function(h,k){e=h;d=k});ro(this,e,function(h){h instanceof mo?g.cancel():d(h)});return g.then(a,b,c)};ko.prototype.$goog_Thenable=!0;function so(a){return Za(a.s,function(b){return"function"===typeof b[1]})} function po(a){if(a.N&&a.j&&so(a)){var b=a.N,c=to[b];c&&(p.clearTimeout(c.lb),delete to[b]);a.N=0}a.g&&(a.g.ma--,delete a.g);b=a.i;for(var d=c=!1;a.s.length&&!a.O;){var e=a.s.shift(),g=e[0],h=e[1];e=e[2];if(g=a.o?h:g)try{var k=g.call(e||a.Qa,b);void 0!==k&&(a.o=a.o&&(k==b||k instanceof Error),a.i=b=k);if(Tk(b)||"function"===typeof p.Promise&&b instanceof p.Promise)d=!0,a.O=!0}catch(l){b=l,a.o=!0,so(a)||(c=!0)}}a.i=b;d&&(k=q(a.na,a,!0),d=q(a.na,a,!1),b instanceof ko?(ro(b,k,d),b.wa=!0):b.then(k,d)); c&&(b=new uo(b),to[b.lb]=b,a.N=b.lb)}function qo(){Ra.call(this)}u(qo,Ra);qo.prototype.message="Deferred has already fired";qo.prototype.name="AlreadyCalledError";function mo(){Ra.call(this)}u(mo,Ra);mo.prototype.message="Deferred was canceled";mo.prototype.name="CanceledError";function uo(a){this.lb=p.setTimeout(q(this.i,this),0);this.g=a}uo.prototype.i=function(){delete to[this.lb];throw this.g;};var to={};function vo(a,b){var c=b||{};b=c.document||document;var d=kd(a).toString(),e=Of(new Ue(b),"SCRIPT"),g={Op:e,lg:void 0},h=new ko(g),k=null,l=null!=c.timeout?c.timeout:5E3;0a.length?"":a[1]};function ep(a){P.call(this);this.ob={};a&&this.Dd(a)}u(ep,P);f=ep.prototype;f.re=function(){return this.ob.w||this.getParent().g.width};f.de=function(){return this.ob.h||this.getParent().g.height};function Tl(a){return a.re()/a.de()}f.Fa=function(){return new Ae(this.re(),this.de())};f.Dd=function(a){for(var b in a)this.ob[b]=a[b];this.dispatchEvent("update")};f.ke=function(a){this.N=a};f.getParent=function(){return this.N};f.hb=function(){return this.ob.title}; f.Je=function(){var a=this.hb();return a?"Page "+a:""};function fo(a){return a.ob.order}f.xd=function(a){if(this.ob.src&&a){var b=new R(this.ob.src);S(b,"w",a.width);return b.toString()}return this.ob.src};f.Pa=function(){return this.ob.pid};function fp(a,b,c){if(z&&!Hc("9")){var d=[];d[0]=O(a,"readystatechange",t(gp,a,t(hp,b),d))}else tj(a,"load",t(hp,b));c&&tj(a,"error",t(hp,c))}function hp(a){U(a)}function gp(a,b,c){if("complete"!=a.readyState)return!0;Bj(c[0]);b();return!1}var ip=E("div");function jp(a){if(a)if(z){ip.appendChild(a);var b=t(F,a);fp(a,b,b);a.src="//www.google.com/images/cleardot.gif"}else a.src="//www.google.com/images/cleardot.gif",F(a)};function kp(a,b,c,d,e,g,h){P.call(this);this.N=a;this.wb=b;this.Cb=c;this.j=d;this.i=e;this.oa=g;this.O=h;this.o=Math.ceil(this.wb/this.j);this.s=Math.ceil(this.Cb/this.i);this.g=[];for(a=0;ab)return a[c]}else for(c=a.length-1;0<=c;c--)if(a[c]Math.abs(e-d)})});a.push.apply(a,c);mb(a);return a};function Op(a,b){co.call(this);this.O={};a&&(this.zp=a.prefix,this.Uo=a.image_prefix||a.prefix,a=Ya(a.page,function(c){c=new this.o(c);b&&(c.Ad=b);return c},this),this.j(a))}u(Op,co);Op.prototype.tl=function(a){a=a.page;for(var b=0;bb.charCode&&Nj(d)?b.charCode:0):("keypress"==a.type?(gq&&(c=this.ak),b.keyCode==b.charCode?32>b.keyCode?(d=b.keyCode,e=0):(d=this.se,e=b.charCode):(d=b.keyCode||this.se,e=b.charCode||0)):(d=b.keyCode||this.se,e=b.charCode||0),sc&&63==e&&224==d&&(d=191));var g=d=Pj(d);d?63232<=d&&d in eq?g=eq[d]:25==d&&a.shiftKey&& (g=9):b.keyIdentifier&&b.keyIdentifier in fq&&(g=fq[b.keyIdentifier]);if(!pc||"keypress"!=a.type||Oj(g,this.Tc,a.shiftKey,a.ctrlKey,c,a.metaKey))a=g==this.Tc,this.Tc=g,b=new bq(g,e,a,b),b.altKey=c,this.dispatchEvent(b)};f.ha=function(){return this.ya};function dq(a,b,c){a.wj&&hq(a);a.ya=b;a.vj=O(a.ya,"keypress",a,c);a.Al=O(a.ya,"keydown",a.Eq,c,a);a.wj=O(a.ya,"keyup",a.Fq,c,a)}function hq(a){a.vj&&(Bj(a.vj),Bj(a.Al),Bj(a.wj),a.vj=null,a.Al=null,a.wj=null);a.ya=null;a.Tc=-1;a.se=-1} f.va=function(){cq.ta.va.call(this);hq(this)};function iq(a,b){if(!a)throw Error("Invalid class name "+a);if("function"!==typeof b)throw Error("Invalid decorator function "+b);jq[a]=b}var kq={},jq={};function lq(a){this.g=a}Da(lq);function mq(a,b){a&&(a.tabIndex=b?0:-1)}f=lq.prototype;f.dk=function(a){return"DIV"==a.tagName};function nq(a,b,c){c.id&&b.$g(c.id);var d=a.sg(),e=!1,g=tb(c);g&&Array.prototype.forEach.call(g,function(h){h==d?e=!0:h&&(h==d+"-disabled"?b.Ta(!1):h==d+"-horizontal"?oq(b,"horizontal"):h==d+"-vertical"&&oq(b,"vertical"))},a);e||x(c,d);pq(a,b,c);return c} function pq(a,b,c){if(c)for(var d=c.firstChild,e;d&&d.parentNode==c;){e=d.nextSibling;if(1==d.nodeType){var g=a.Nh(d);g&&(g.ya=d,b.isEnabled()||g.Ta(!1),b.Oa(g),Zm(g,d))}else d.nodeValue&&""!=Db(d.nodeValue)||c.removeChild(d);d=e}}f.Nh=function(a){a:{a=tb(a);for(var b=0,c=a.length;bthis.ac&&b<=this.ac?this.ac++:athis.ac&&this.ac--}; f.removeChild=function(a,b){if(a="string"===typeof a?Xm(this,a):a){var c=dn(this,a);-1!=c&&(c==this.ac?(a.Wc(!1),this.ac=-1):cb?c-1:b},0)}function Xq(a){Zq(a,function(b,c){return(b+1)%c},a.ac)}function Wq(a){Zq(a,function(b,c){b--;return 0>b?c-1:b},a.ac)} function Zq(a,b,c){c=0>c?dn(a,a.bc):c;var d=an(a);c=b.call(a,c,d);for(var e=0;e<=d;){var g=bn(a,c);if(g&&a.Vn(g)){a.Sd(c);break}e++;c=b.call(a,c,d)}}f.Vn=function(a){return a.isVisible()&&a.isEnabled()&&yq(a,2)};function $q(a){X.call(this);this.j=a?a:null;var b=this.g;a=b.ha("gb-mobile-buy-panel");var c=b.ha("gb-mobile-buy-button"),d=b.ha("gb-mobile-buy-close-button");b=b.ha("volume-left");a&&c&&d&&b&&(this.i=new Pq,Zm(this.i,a),this.O=c,this.na=d,Zm(this,b),this.i.Da(!1))}m($q,X); $q.prototype.Ma=function(){var a=this;Y(this).ka(this.O,"click",this.s).ka(this.O,"keydown",function(b){32!=b.keyCode&&13!=b.keyCode||a.s()}).ka(this.na,"click",this.s).ka(this.na,"keydown",function(b){32!=b.keyCode&&13!=b.keyCode||a.s()})}; $q.prototype.s=function(){if(this.i.isVisible()){this.i.Da(!1);xb(this.i.Ib(),"gb-mobile-buy-panel-visible");this.j&&(this.j.style.overflowX="auto",this.j.style.overflowY="scroll");this.O.focus();for(var a=ka(document.querySelectorAll('[role="alert"],#volume-center,.aria-hide-on-menu-open')),b=a.next();!b.done;b=a.next())b.value.removeAttribute("aria-hidden")}else this.i.Da(!0),x(this.i.Ib(),"gb-mobile-buy-panel-visible"),this.j&&(this.j.style.overflowX="hidden",this.j.style.overflowY="hidden"),this.i.Ib().focus(), ar(this)};function ar(a){var b=a.i.Ib().querySelectorAll('[role="button"],[href]'),c=b[0],d=b[b.length-1];Y(a).ka(a.i.Ib(),"keydown",function(e){9==e.keyCode&&(e.shiftKey?document.activeElement===c&&(e.preventDefault(),d.focus()):document.activeElement===d&&(e.preventDefault(),c.focus()))});a=ka(document.querySelectorAll('[role="alert"],#volume-center,.aria-hide-on-menu-open'));for(b=a.next();!b.done;b=a.next())um(b.value,"hidden",!0)};function br(){}br.prototype.Pc=function(){};function cr(a,b,c,d,e,g,h,k,l){var n=dr(c),r=zh(a),w=ph(a);w&&$g(r,Zg(w));w=Te(a);var D=Te(c);if(w.g!=D.g){var H=w.g.body;D=Pf(D);var I=new A(0,0),Q=kf(Ve(H));if(kc(Q,"parent")){var Fa=H;do{var Eb=Q==D?qh(Fa):wh(Fa);I.x+=Eb.x;I.y+=Eb.y}while(Q&&Q!=D&&Q!=Q.parent&&(Fa=Q.frameElement)&&(Q=Q.parent))}H=ze(I,qh(H));!z||Ic(9)||gf(w.g)||(H=ze(H,hf(w.g)));r.left+=H.x;r.top+=H.y}a=er(a,b);b=r.left;a&4?b+=r.width:a&2&&(b+=r.width/2);r=new A(b,r.top+(a&1?r.height:0));r=ze(r,n);e&&(r.x+=(a&4?-1:1)*e.x,r.y+= (a&1?-1:1)*e.y);if(h)if(l)var ta=l;else if(ta=ph(c))ta.top-=n.y,ta.right-=n.x,ta.bottom-=n.y,ta.left-=n.x;return fr(r,c,d,g,ta,h,k)} function dr(a){if(a=a.offsetParent){var b="HTML"==a.tagName||"BODY"==a.tagName;if(!b||"static"!=ih(a,"position")){var c=qh(a);if(!b){b=Ch(a);var d;if(d=b){d=Xf&&0<=Pb(Bm,10);var e;if(e=zc)e=0<=Pb(zm,10);var g=Wf&&0<=Pb(Bm,85);d=pc||d||e||g}b=d?-a.scrollLeft:b&&!oc&&"visible"!=ih(a,"overflowX")?a.scrollWidth-a.clientWidth-a.scrollLeft:a.scrollLeft;c=ze(c,new A(b,a.scrollTop))}}}return c||new A} function fr(a,b,c,d,e,g,h){a=a.clone();var k=er(b,c);c=L(b);h=h?h.clone():c.clone();a=a.clone();h=h.clone();var l=0;if(d||0!=k)k&4?a.x-=h.width+(d?d.right:0):k&2?a.x-=h.width/2:d&&(a.x+=d.left),k&1?a.y-=h.height+(d?d.bottom:0):d&&(a.y+=d.top);if(g){if(e){d=a;k=h;l=0;65==(g&65)&&(d.x=e.right)&&(g&=-2);132==(g&132)&&(d.y=e.bottom)&&(g&=-5);d.xe.right&&(k.width=Math.min(e.right-d.x,n+ k.width-e.left),k.width=Math.max(k.width,0),l|=4)}d.x+k.width>e.right&&g&1&&(d.x=Math.max(e.right-k.width,e.left),l|=1);g&2&&(l|=(d.xe.right?32:0));d.ye.bottom&&(k.height=Math.min(e.bottom-d.y,n+k.height-e.top),k.height=Math.max(k.height,0),l|=8));d.y+k.height>e.bottom&&g&4&&(d.y=Math.max(e.bottom-k.height,e.top),l|=2);g&8&&(l|=(d.ye.bottom?128:0));e=l}else e=256; l=e}e=new Xg(0,0,0,0);e.left=a.x;e.top=a.y;e.width=h.width;e.height=h.height;a=l;if(a&496)return a;jh(b,new A(e.left,e.top));h=e.Fa();Be(c,h)||Fh(b,h);return a}function er(a,b){return(b&8&&Ch(a)?b^4:b)&-9};function gr(a,b,c){this.g=a;this.i=b;this.O=c}u(gr,br);gr.prototype.Pc=function(a,b,c){cr(this.g,this.i,a,b,void 0,c,this.O)};function hr(a,b,c,d){gr.call(this,a,b);this.j=c?5:0;this.s=d||void 0}u(hr,gr);hr.prototype.N=function(){return this.j};hr.prototype.o=function(a){this.j=a};hr.prototype.Pc=function(a,b,c,d){var e=cr(this.g,this.i,a,b,null,c,10,d,this.s);if(e&496){var g=ir(e,this.i);b=ir(e,b);e=cr(this.g,g,a,b,null,c,10,d,this.s);e&496&&(g=ir(e,g),b=ir(e,b),cr(this.g,g,a,b,null,c,this.j,d,this.s))}};function ir(a,b){a&48&&(b^=4);a&192&&(b^=1);return b};function jr(a,b){this.Lb=8;this.La=b||void 0;fn.call(this,a)}u(jr,fn);function kr(a){a.Lb=4;a.isVisible()&&a.og()}jr.prototype.nd=function(){return this.La||null};jr.prototype.setPosition=function(a){this.La=a||void 0;this.isVisible()&&this.og()};jr.prototype.og=function(){if(this.La){var a=!this.isVisible()&&"move_offscreen"!=this.getType(),b=this.ha();a&&(b.style.visibility="hidden",M(b,!0));this.La.Pc(b,this.Lb,this.Gl);a&&M(b,!1)}};function lr(a,b,c){a.timeOfStartCall=(new Date).getTime();var d=c||p,e=d.document,g=a.nonce||de(d);g&&!a.nonce&&(a.nonce=g);if("help"==a.flow){var h=Ba("document.location.href",d);!a.helpCenterContext&&h&&(a.helpCenterContext=h.substring(0,1200));h=!0;if(b&&JSON&&JSON.stringify){var k=JSON.stringify(b);(h=1200>=k.length)&&(a.psdJson=k)}h||(b={invalidPsd:!0})}b=[a,b,c];d.GOOGLE_FEEDBACK_START_ARGUMENTS=b;c=a.serverUri||"//www.google.com/tools/feedback";if(h=d.GOOGLE_FEEDBACK_START)h.apply(d,b);else{d= c+"/load.js?";for(var l in a)b=a[l],null==b||Ha(b)||(d+=encodeURIComponent(l)+"="+encodeURIComponent(b)+"&");a=Of(Te(e),"SCRIPT");g&&a.setAttribute("nonce",g);g=Gl(d);a.src=kd(g);Wi(a);e.body.appendChild(a)}}Oa("userfeedback.api.startFeedback",lr);function mr(a){X.call(this);if(this.j=B("gb-mobile-appbar-back-button"))if(Y(this).ka(this.j,"click",this.s),zc&&Ob(Rb,"GSA")){x(this.j,"igsa-hide");var b=this.g.ha("gb-mobile-appbar-logo");x(b,"igsa-shift")}(this.i=B("gb-mobile-appbar-more"))&&nr(this);new $q(a)}m(mr,X); function nr(a){var b=B("gb-mobile-more-menu");if(b){var c=new jr(b);kr(c);c.setPosition(new hr(a.i,4));c.Da(!1);O(a.i,"click",function(){xb(b,"more-menu-hidden");c.Da(!0);c.ha().focus()});O(a.i,"keydown",function(d){if(32==d.keyCode||13==d.keyCode)xb(b,"more-menu-hidden"),c.Da(!0),c.ha().focus()})}else F(a.i)}mr.prototype.s=function(){window.history.back();vc&&Wf&&1==window.history.length&&window.close()};Oa("_OC_startFeedback",lr);function or(a){P.call(this);a=a||Te();this.g=a.Ra(z?"DIV":"IFRAME",{style:"position:absolute;width:9em;height:9em;top:-99em",tabIndex:-1,"aria-hidden":"true"});a=a.g.body;a.insertBefore(this.g,a.firstChild);if(z)var b=this.g;else a:{a=this.g;try{b=a.contentWindow||(a.contentDocument?kf(a.contentDocument):null);break a}catch(c){}b=null}b=this.o=b;pc&&(a=b.document,a.open(),a.close());O(b,"resize",this.i,!1,this);this.j=this.g.offsetWidth}u(or,P); or.prototype.va=function(){or.ta.va.call(this);Aj(this.o,"resize",this.i,!1,this);this.o=null;F(this.g);delete this.g};or.prototype.i=function(){var a=this.g.offsetWidth;this.j!=a&&(this.j=a,this.dispatchEvent("fontsizechange"))};function pr(a){this.i=a;a=q(this.j,this);this.g=new Lj;O(this.g,"resize",a);var b=new or;O(b,"fontsizechange",a);O(window,"DOMContentLoaded",q(this.resize,this))}pr.prototype.j=function(){this.resize();U(q(this.resize,this),100)};pr.prototype.resize=function(){var a=this.g.Fa(),b=Math.round(qh(this.i).y);this.i.style.height=a.height-b+"px"};function qr(a){var b=null;if(a=B(a))b=new pr(a),b.resize();return b};function rr(a){bj.call(this,"navigate");this.s=a}u(rr,bj);function sr(){return!(y("iPad")||y("Android")&&!y("Mobile")||y("Silk"))&&(y("iPod")||y("iPhone")||y("Android")||y("IEMobile"))};var tr=new WeakMap;function ur(a,b){a=[a];for(var c=b.length-1;0<=c;--c)a.push(typeof b[c],b[c]);return a.join("\x0B")};function vr(a,b,c,d){P.call(this);if(a&&!b)throw Error("Can't use invisible history without providing a blank page.");if(c)var e=c;else{e="history_state"+wr;var g=Yd("input",{type:"text",name:e,id:e,style:Zc("display:none")});document.write(Ud(g));e=B(e)}this.N=e;this.g=c?kf(Ve(c)):window;this.oa=b;z&&!b&&(this.oa="https"==window.location.protocol?md(Yc(Zc("https:///"))):md(Yc(Zc('javascript:""'))));this.Ya=new ll(150);$i(this,this.Ya);this.i=!a;this.j=new Ej(this);if(a||xr){if(d)var h=d;else{a="history_iframe"+ wr;b={id:a,style:Zc("display:none"),sandbox:void 0};c={};c.src=this.oa||null;c.srcdoc=null;d={sandbox:""};e={};for(var k in c)Object.prototype.hasOwnProperty.call(c,k)&&(e[k]=c[k]);for(var l in d)Object.prototype.hasOwnProperty.call(d,l)&&(e[l]=d[l]);if(b)for(h in b)if(Object.prototype.hasOwnProperty.call(b,h)){k=h.toLowerCase();if(k in c)throw Error("");k in d&&delete e[k];e[h]=b[h]}h=$d("iframe",e,void 0);document.write(Ud(h));h=B(a)}this.O=h;this.ua=!0}xr&&(this.j.ka(this.g,"load",this.ev),this.na= this.ma=!1);this.i?yr(this,zr(this),!0):Ar(this,this.N.value);wr++}u(vr,P);vr.prototype.Pb=!1;vr.prototype.s=!1;vr.prototype.o=null; var Br=function(a,b){function c(g){var h=ka(g);g=h.next().value;h=la(h);return a.apply(g,h)}function d(g){g=ka(g);g.next();g=la(g);return b(e,g)}b=void 0===b?ur:b;var e=Ia(a);return function(g){for(var h=[],k=0;kb?"":a.substring(b+1)} function yr(a,b,c){a=a.g.location;var d=a.href.split("#")[0],e=Ob(a.href,"#");if(xr||e||b)d+="#"+b;d!=a.href&&(b=ud(d),c?te(a,b):se(a,b))}function Ar(a,b,c,d){if(a.ua||b!=Er(a))if(a.ua=!1,b=encodeURIComponent(String(b)),z){var e=Cf(a.O);e.open("text/html",c?"replace":void 0);c=he(Yd("title",{},d||a.g.document.title),Yd("body",{},b));e.write(Ud(c));e.close()}else e=kd(a.oa).toString()+"#"+b,(a=a.O.contentWindow)&&(c?te(a.location,e):se(a.location,e))} function Er(a){if(z)return a=Cf(a.O),a.body?Ge(a.body.innerHTML):null;var b=a.O.contentWindow;if(b){try{var c=Ge(Cr(b))}catch(d){return a.s||(1!=a.s&&ml(a.Ya,1E4),a.s=!0),null}a.s&&(0!=a.s&&ml(a.Ya,150),a.s=!1);return c||null}return null}f.Jm=function(a){if(this.i){var b=Cr(this.g);b!=this.o&&Dr(this,b,a)}if(!this.i||xr)if(b=Er(this)||"",null==this.Xg||b==this.Xg)this.Xg=null,b!=this.o&&Dr(this,b,a)}; function Dr(a,b,c){a.o=a.N.value=b;a.i?(xr&&Ar(a,b),yr(a,b)):Ar(a,b);a.dispatchEvent(new rr(zr(a),c))}var wr=0;var Fr={},Gr=null; function Hr(a,b){void 0===b&&(b=0);if(!Gr){Gr={};for(var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),d=["+/=","+/","-_=","-_.","-_"],e=0;5>e;e++){var g=c.concat(d[e].split(""));Fr[e]=g;for(var h=0;h>2];l=b[(l&3)<<4|n>>4];n=b[(n&15)<<2|k>>6];k=b[k&63];c[e++]=h+l+n+k}h=0;k=d;switch(a.length-g){case 2:h= a[g+1],k=b[(h&15)<<2]||d;case 1:a=a[g],c[e]=b[a>>2]+b[(a&3)<<4|h>>4]+k+d}return c.join("")};var Ir="function"===typeof Uint8Array;function Jr(a,b,c){if(null!=a)return"object"===typeof a?Ir&&a instanceof Uint8Array?c(a):Kr(a,b,c):b(a)}function Kr(a,b,c){if(Array.isArray(a)){for(var d=Array(a.length),e=0;e=a.s?a.j?a.j[b]:void 0:a.i[b+a.o]}function $r(a,b,c){a.g||(a.g={});if(b in a.g)return a.g[b];var d=Zr(a,b);d||(d=Lr([]),as(a,b,d));c=new Qr(d,c);return a.g[b]=c}function as(a,b,c,d){(void 0===d?0:d)||b>=a.s?(Yr(a),a.j[b]=c):a.i[b+a.o]=c} function bs(a,b,c,d){if(-1===c)return null;a.g||(a.g={});a.g[c]||(d=Zr(a,c,void 0===d?!1:d))&&(a.g[c]=new b(d));return a.g[c]}function cs(a,b,c){a.g||(a.g={});var d=a.g[c];if(!d){var e=void 0===e?!1:e;d=Zr(a,c,e);null==d&&(d=Xr);d===Xr&&(d=Lr([]),as(a,c,d,e));e=d;d=[];for(var g=0;g":">","`":"`","\u0085":"…","\u00a0":" ","\u2028":"
","\u2029":"
"};function zs(a){return Es[a]} var ys=/[\x00\x22\x26\x27\x3c\x3e]/g,Ds=/[\x00\x22\x27\x3c\x3e]/g,Fs=/^(?!on|src|(?:action|archive|background|cite|classid|codebase|content|data|dsync|href|http-equiv|longdesc|style|usemap)\s*$)(?:[a-z0-9_$:-]*)$/i,Bs=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,Cs=/"+ws(null!=c?c:"")+"")};function Js(a,b){this.j=a;this.N=!!b;this.o={0:this.j+"-arrowright",1:this.j+"-arrowup",2:this.j+"-arrowdown",3:this.j+"-arrowleft"}}m(Js,br);f=Js.prototype;f.Hj=function(a){this.i=a};f.setPosition=function(a,b,c,d){null!=a&&(this.Jk=a);null!=b&&(this.Fk=b);"number"===typeof c&&(this.Rn=Math.max(c,15));"number"===typeof d&&(this.Ll=d)};f.Pc=function(a,b,c){a=this.Fk;2==a&&(a=0);Ks(this,this.Jk,a,2==this.Fk?Ls(this.Jk)?this.g.offsetHeight/2:this.g.offsetWidth/2:this.Rn,0,c)}; function Ks(a,b,c,d,e,g){if(a.i){var h=Ms(b,c);var k=a.i;var l=a.g,n=a.Ea,r=L(k);a:{r=(Ls(b)?r.height/2:r.width/2)-d;var w=er(k,h);if(n)n=n.clone(),l&&(l=dr(l),n.left+=l.x,n.right+=l.x,n.top+=l.y,n.bottom+=l.y);else if(n=ph(k),!n){k=r;break a}k=Yg(zh(k));Ls(b)?k.topn.bottom&&w&1&&(r-=k.bottom-n.bottom):k.leftn.right&&w&4&&(r-=k.right-n.right);k=r}k=Ls(b)?new A(a.Ll,k):new A(k,a.Ll);r=Ls(b)?6:9;a.Dk&&2==e&&(r=Ls(b)?4:1); w=b^3;Ls(b)&&"rtl"==a.i.dir&&(w=b);h=cr(a.i,Ms(w,c),a.g,h,k,g,a.vl?r:0,void 0,a.Ea);if(2!=e&&h&496){Ks(a,b^3,c,d,a.Dk&&0==e?1:2,g);return}!a.N||h&496||(e=parseFloat(a.g.style.left),g=parseFloat(a.g.style.top),isFinite(e)&&0==e%1&&isFinite(g)&&0==g%1||jh(a.g,Math.round(e),Math.round(g)))}Ns(a,b,c,d)} function Ns(a,b,c,d){var e=a.s;Ub(a.o,function(g){zb(e,g,!1)},a);x(e,a.o[b]);e.style.top=e.style.left=e.style.right=e.style.bottom="";a.i?(c=uh(a.i,a.g),d=Os(a.i,b),Ls(b)?e.style.top=Ps(c.y+d.y,a.g.offsetHeight-15)+"px":e.style.left=Ps(c.x+d.x,a.g.offsetWidth-15)+"px"):e.style[0==c?Ls(b)?"top":"left":Ls(b)?"bottom":"right"]=d+"px"}function Ps(a,b){return 15>b?15:we(a,15,b)}function Ms(a,b){switch(a){case 2:return 0==b?1:5;case 1:return 0==b?0:4;case 0:return 0==b?12:13;default:return 0==b?8:9}} function Os(a,b){var c=0,d=0;a=L(a);switch(b){case 2:c=a.width/2;break;case 1:c=a.width/2;d=a.height;break;case 0:d=a.height/2;break;case 3:c=a.width,d=a.height/2}return new A(c,d)}function Ls(a){return 0==a||3==a}f.vl=!1;f.Fk=2;f.Rn=20;f.Jk=3;f.Ea=null;f.Ll=-5;f.Dk=!1;function Qs(a){Zi.call(this);this.i=a||Te()}m(Qs,Zi);Qs.prototype.s=function(){tm(this.ha(),"tooltip");um(this.ha(),"live","polite")};function Rs(a){Qs.call(this,a);this.g=this.i.Ra("DIV",Ss()+"-contentId");this.j=this.i.Ra("DIV",Ss()+"-arrow",this.i.Ra("DIV",Ss()+"-arrowimplbefore"),this.i.Ra("DIV",Ss()+"-arrowimplafter"));this.o=this.i.Ra("DIV",{"class":Ss(),role:"tooltip"},this.g,this.j);this.s()}m(Rs,Qs);function Ss(){return"jfk-tooltip"}Rs.prototype.ha=function(){return this.o};Rs.prototype.va=function(){Qs.prototype.va.call(this);this.o&&F(this.o)};function Ts(a){Rs.call(this,a)}m(Ts,Rs);Ts.prototype.s=function(){tm(this.ha(),"tooltip")};function Us(a){return Ie(Db(a.replace(Vs,function(b,c){return Ws.test(c)?"":" "}).replace(/[\t\n ]+/g," ")))}var Ws=/^(?:abbr|acronym|address|b|em|i|small|strong|su[bp]|u)$/i,Vs=/<[!\/]?([a-z0-9]+)([\/ ][^>]*)?>/gi;function Xs(a){a=a||Te();var b=Ia(a.g);Ys[b]||(Ys[b]=new Zs(a))}function $s(a,b){var c=b instanceof Sd?Us(Td(b)):b;a.removeAttribute("title");a.removeAttribute("data-tooltip-contained");a.removeAttribute("data-tooltip");b?(b instanceof Sd?a.i=b:(a.setAttribute("data-tooltip",b),a.i=null),a.setAttribute("aria-label",c)):(a.i=null,a.removeAttribute("aria-label"));Xs(Te(a))}var Ys={}; function Zs(a){Ej.call(this);this.wa=a;this.ua=new am(this.dw,0,this);$i(this,this.ua);var b=kf();this.ma="function"===typeof b.MutationObserver?new b.MutationObserver(q(this.mt,this)):null;a=a.g;this.ka(a,"mouseout mousedown click blur focusout keydown".split(" "),this.Js,!0);this.ka(a,["mouseover","focus","focusin"],this.Pv,!0)}m(Zs,Ej);f=Zs.prototype;f.va=function(){at(this);Ej.prototype.va.call(this)}; function bt(a,b){switch(b.type){case "mousedown":case "mouseover":case "mouseout":case "click":a.Ba=!1;break;case "keydown":a.Ba=!0}}f.Pv=function(a){this.ma&&this.ma.disconnect();bt(this,a);var b=a.target;a="focus"==a.type||"focusin"==a.type;var c=this.g&&Bf(this.g.g,b);if(this.Ba||!a||c){this.Ca=a;if(a=b&&b.getAttribute&&this.ma)a=b.getAttribute("role")||null,a=cb(sm,a);a&&(this.ma.observe(b,{attributes:!0}),(a=wm(b))&&(b=a));this.o=b}else this.o=null;ct(this)}; f.Js=function(a){bt(this,a);var b=a.target;b=this.g&&Bf(this.g.g,b);if("mousedown"!=a.type&&"click"!=a.type||!b)this.o=null,ct(this)};f.mt=function(a){v(a,q(function(b){var c=wm(b.target);c&&"aria-activedescendant"==b.attributeName&&(this.o=c,ct(this))},this))};function ct(a){if(0==a.ua.lb||!a.i||!a.O){at(a);var b=null!=a.O?a.O:50;a.ua.start(a.i?b:300)}}function at(a){a.oa&&(nl(a.oa),a.oa=0,a.i=null)} f.dw=function(){if(!this.o)dt(this),this.O=this.i=null;else if(!(this.i&&this.g&&Bf(this.g.ha(),this.o))||this.i.getAttribute("data-tooltip-unhoverable")){var a=Mf(this.o,function(k){return k.getAttribute&&(k.getAttribute("data-tooltip-contained")||k.getAttribute("data-tooltip")||k.i)&&!k.getAttribute("data-tooltip-suspended")}),b=!1;this.i&&this.i!=a&&(dt(this),this.O=this.i=null,b=!0);if(!this.i&&a&&(this.i=a,et(this,a))){var c=ge;if(a.getAttribute("data-tooltip-contained"))for(var d=$e("jfk-tooltip-data", a),e=0;e=b.scrollWidth&&b.offsetHeight>=b.scrollHeight||a.Ca&&"mouse"==b.getAttribute("data-tooltip-trigger")?!1:!0}function ft(a){if(a)switch(a.toLowerCase().split(",")[0]){case "l":return 0;case "t":return 2;case "r":return 3}return 1} f.Tp=function(a,b,c,d,e,g){this.oa=0;this.O=g;if(!this.g){this.g=new Ts(this.wa);dt(this);g=this.g.ha();this.wa.g.body.appendChild(g);$i(this,this.g);this.s=new Js(Ss(),!0);this.s.vl=!0;this.s.Dk=!0;g=this.s;var h=this.g.ha(),k=this.g.j;g.g=h;g.s=k}a:{if(c)switch(c.toLowerCase().split(",")[1]){case "l":g=0;break a;case "r":g=1;break a}g=2}this.s.setPosition(ft(c),g,void 0,d);xb(this.g.ha(),"jfk-tooltip-hide");this.na!=e&&(this.na&&!Cb(Pe(this.na))&&xb(this.g.ha(),this.na),Cb(Pe(e))||x(this.g.ha(), e),this.na=e);jh(this.g.ha(),0,0);if(b instanceof Sd)N(this.g.g,b);else for(rf(this.g.g);c=b.firstChild;)this.g.g.appendChild(c);this.s.Hj(a);this.s.Pc(null,0)};function dt(a){a.g&&x(a.g.ha(),"jfk-tooltip-hide")};function gt(a){var b="Zf";if(a.Zf&&a.hasOwnProperty(b))return a.Zf;b=new a;return a.Zf=b};function ht(){}u(ht,qq);Da(ht);f=ht.prototype;f.tg=function(){return"button"};f.oe=function(a,b,c){switch(b){case 8:case 16:um(a,"pressed",c);break;default:case 64:case 1:ht.ta.oe.call(this,a,b,c)}};f.Oc=function(a){var b=ht.ta.Oc.call(this,a);this.oc(b,a.tf());var c=a.Ab();c&&this.xc(b,c);yq(a,16)&&this.oe(b,16,zq(a,16));return b};f.Sb=function(a,b){b=ht.ta.Sb.call(this,a,b);var c=this.Ab(b);a.Ka=c;a.na=this.tf(b);yq(a,16)&&this.oe(b,16,zq(a,16));return b};f.Ab=Ca;f.xc=Ca;f.tf=function(a){return a.title}; f.oc=function(a,b){a&&(b?a.title=b:a.removeAttribute("title"))};f.nc=function(a,b){var c=cn(a),d=this.Wa()+"-collapse-left",e=this.Wa()+"-collapse-right",g=c?e:d;b&1?Eq(a,g):Fq(a,g);c=c?d:e;b&2?Eq(a,c):Fq(a,c)};f.Wa=function(){return"goog-button"};function it(){}u(it,ht);Da(it);f=it.prototype;f.tg=function(){};f.Oc=function(a){Cq(a,!1);a.Pf&=-256;a.Zb(32,!1);return a.g.Ra("BUTTON",{"class":tq(this,a).join(" "),disabled:!a.isEnabled(),title:a.tf()||"",value:a.Ab()||""},a.Og()||"")};f.Fi=function(a){return"BUTTON"==a.tagName||"INPUT"==a.tagName&&("button"==a.type||"submit"==a.type||"reset"==a.type)};f.Sb=function(a,b){Cq(a,!1);a.Pf&=-256;a.Zb(32,!1);if(b.disabled){var c=this.Lh(1);x(b,c)}return it.ta.Sb.call(this,a,b)}; f.Gi=function(a){Y(a).ka(a.ha(),"click",a.Re)};f.fk=Ca;f.Gm=Ca;f.Fm=function(a){return a.isEnabled()};f.nh=Ca;f.Zc=function(a,b,c){it.ta.Zc.call(this,a,b,c);(a=a.ha())&&1==b&&(a.disabled=c)};f.Ab=function(a){return a.value};f.xc=function(a,b){a&&(a.value=b)};f.oe=Ca;function jt(a,b,c){Bq.call(this,a,b||it.Eb(),c)}u(jt,Bq);f=jt.prototype;f.Ab=function(){return this.Ka};f.xc=function(a){this.Ka=a;this.wd().xc(this.ha(),a)};f.tf=function(){return this.na};f.oc=function(a){this.na=a;this.wd().oc(this.ha(),a)};f.nc=function(a){this.wd().nc(this,a)};f.va=function(){jt.ta.va.call(this);delete this.Ka;delete this.na};f.Ma=function(){jt.ta.Ma.call(this);if(yq(this,32)){var a=this.ha();a&&Y(this).ka(a,"keyup",this.fe)}}; f.fe=function(a){return 13==a.keyCode&&"key"==a.type||32==a.keyCode&&"keyup"==a.type?this.Re(a):32==a.keyCode};iq("goog-button",function(){return new jt(null)});function Z(a,b,c,d){jt.call(this,a,kt.Eb(),b);this.wa=c||0;this.wb=d||0;this.La=!1}u(Z,jt);f=Z.prototype;f.Bb=function(){return this.wb};f.oc=function(a){this.na=a;var b=this.ha();b&&(this.La?$s(b,a):a?b.title=a:b.removeAttribute("title"))};f.Ta=function(a){this.isEnabled()!=a&&(Z.ta.Ta.call(this,a),lt(this))};f.focus=function(){var a=this.ya;try{a.focus()}catch(b){}};f.Ij=function(a){Z.ta.Ij.call(this,a);mt(this,!1)};f.af=function(a){Z.ta.af.call(this,a);this.isEnabled()&&mt(this,!0)}; f.he=function(a){Z.ta.he.call(this,a);this.isEnabled()&&mt(this,!0)};function mt(a,b){a.ha()&&zb(a.ha(),"jfk-button-clear-outline",b)}function lt(a){a.ha()&&nt(a.wd(),a)}function ot(a,b){if("string"===typeof a){var c=a;a=C("IMG");qe(a,c);K(a,21,21)}x(a,"jfk-button-img");c=[];c.push(a);b&&(a=C("SPAN","jfk-button-label",b),c.push(a));return c} function kt(){this.na=this.Wa()+"-standard";this.i=this.Wa()+"-action";this.oa=this.Wa()+"-primary";this.s=this.Wa()+"-default";this.N=this.Wa()+"-flat";this.ma=this.Wa()+"-narrow";this.O=this.Wa()+"-mini";this.o=this.Wa()+"-contrast"}u(kt,ht);kt.Eb=function(){return gt(kt)};f=kt.prototype;f.If=function(a,b,c){a&&c.wa!=a&&(c.wa=a,lt(c));b&&c.wb!=b&&(c.wb=b,lt(c))};f.Wa=function(){return"jfk-button"}; f.Oc=function(a){var b=a.g,c=Gs(Is,{disabled:!a.isEnabled(),checked:zq(a,16),style:a.wa,title:a.tf(),jw:a.La,value:a.Ab(),width:a.Bb()},void 0,b);b.ym(c,a.Gc());this.Sb(a,c);return c}; f.Sb=function(a,b){kt.ta.Sb.call(this,a,b);this.j||(this.j=ec(this.na,t(this.If,0,null),this.i,t(this.If,2,null),this.oa,t(this.If,3,null),this.s,t(this.If,1,null),this.N,t(this.If,4,null),this.O,t(this.If,5,null),this.o,t(this.If,6,null),this.ma,t(this.If,null,1)));for(var c=tb(b),d=0;d=Wg(this.Ka,this.O))}if(b){if(this.mi(),this.Wb=null,b=this.oa)b.Wb=null}else 3==wt(this)&&this.Gg();Dt.ta.Ug.call(this,a)};f.ol=function(){this.Wb!=this.ha()&&(this.wi=!1,this.Wb=this.ha())};f.fl=function(){return this.wi?100:Dt.ta.fl.call(this)};function Ft(a,b){a=new Dt(a);a.Ul(El(b.innerHTML));a.className="buy-tip-card";a.wa=new Tg(5,5,5,5);a.Wi=!0;a.dh=500;a.Xh=250};function Gt(a,b){this.Cb=a||200;this.wb=b||108;W.call(this)}u(Gt,W);Gt.prototype.Db=function(){return this.Cb};Gt.prototype.Bb=function(){return this.wb};function Ht(a){tt.call(this,a,void 0,void 0);this.io=!1;this.Wi=!0;this.dh=500}m(Ht,Dt);Ht.prototype.Mj=function(a,b){b||(b=new hr(a,9,!0));Dt.prototype.Mj.call(this,a,b)};Ht.prototype.className="unified-hovercard";var It="ganpub ganclk dapp source_ip source_country source_domain authuser".split(" ");function Jt(a){var b=void 0===b?window.location.href:b;var c=new R(b);S(a,"hl","en");(b=T(c,"output"))&&S(a,"output",b);b=T(c,"source");"ge-ipad-app"==b?(S(a,"dapp","2"),ok(a,"output")):"ge-tablet-app"==b?(S(a,"dapp","4"),ok(a,"output")):"ge-ip-app"==b?S(a,"dapp","1"):"ge-android-app"==b&&S(a,"dapp","3");T(c,"authuser")||ok(a,"authuser");It.forEach(function(d){var e=T(c,d);e&&S(a,d,e)})};function Kt(a,b,c){Zi.call(this);this.i=null;this.data=a;this.g=b;this.maxWidth=c||500}m(Kt,Zi);Kt.prototype.va=function(){this.i&&this.i.Ha()};function Lt(a){return a.i||(a.i=new Ej(a))} Kt.prototype.j=function(a){var b=C("DIV"),c=new R(this.data.Aa.Vg||this.data.Aa.Bp);this.data.Aa.source&&S(c,"source",this.data.Aa.source);var d=this.data.hb();this.data.Aa.Yp&&(d+=": "+this.data.Aa.Yp);d=C("A",{},d);d.classList.add(this.g+"-title");pe(d,c.toString());b.appendChild(d);a.appendChild(b);Mt(this,a);b=C("DIV");if("number"===typeof(this.data.Aa.Ep||0)){d=this.data.Aa.Ep||0;c=Math.floor(d);d=0)|(<\/b>)/ig,Pt={VIEW_PAGES_PARTIAL:2,VIEW_PAGES_ALL:5,VIEW_PAGES_PARTIAL_FIXED:6,VIEW_PURCHASED:7,VIEW_GOOGLE_EDITIONS_PREVIEW:8};function Qt(){this.Aa={}}f=Qt.prototype;f.hb=function(){return this.Aa.title};f.Yb=function(){return this.Aa.nm};f.Rd=function(){return this.Aa.Rd};f.wl=function(){return this.Aa.wl};f.$f=function(){return this.Aa.$f};f.$h=function(){return this.Aa.$h};function Rt(){this.g=[]}f=Rt.prototype;f.getId=function(){return this.lb};f.$g=function(a){this.lb=a};f.hb=function(){return this.Ec};f.Pg=function(){return this.o};function St(a,b,c){if(Tt(a,b)||null==a.ma||!a.j)c&&c(null);else{var d=a.ma.clone();a=q(a.Ds,a,b,c||Ca);S(d,"id",b);sl(d,a,"POST")}}function Ut(a,b,c){if(Tt(a,b)&&null!=a.oa&&a.na){var d=a.oa.clone();a=q(a.Ss,a,b,c||Ca);S(d,"id",b);sl(d,a,"POST")}else c&&c(null)} f.Ds=function(a,b,c){var d=null;Bl(c.target)&&(d=new Qt,d.Aa.nm=a,this.g.push(d));b(d)};f.Ss=function(a,b,c){var d=null;Bl(c.target)&&(d=Tt(this,a),Vt(this,d));b(d)};function Vt(a,b){gb(a.g,function(c){return c.Yb()==b.Yb()})}function Tt(a,b){return ab(a.g,function(c){return c&&c.Yb()==b})};function Wt(a){this.Aa={};this.Aa.title=a.title;this.Aa.Yp=a.subtitle;this.Aa.Gk=a.authors;this.Aa.Bp=a.preview_url;this.Aa.Vg=a.info_url;this.Aa.Cj=a.pub_date;this.Aa.ip=a.num_pages;this.Aa.jq=a.viewability;this.Aa.Vw=a.subject;this.Aa.aq=a.thumbnail_url;this.Aa.dm=a.snippet;this.Aa.Ow=a.list_price;this.Aa.Np=a.sale_price;this.Aa.Tw=a.sale_price_better;this.Aa.Yu=a.offer_price;this.Aa.Lk=a.buy_url;this.Aa.Fp=a.read_url;this.Aa.tj=a.is_free_ebook||!1;this.Aa.rj=a.in_my_ebooks||!1;this.Aa.Qw=a.my_ebooks_url|| "";this.Aa.Ep=a.rating_score||0;this.Aa.Wu=a.num_reviews||0;this.Aa.Rd=a.is_purchased||!1;this.Aa.Zh=a.is_ebook||!1;this.Aa.Yw=a.write_review_url||"";this.Aa.et=a.add_to_my_ebooks_url||"";this.Aa.uv=a.preview_ebook_url||"";this.Aa.Iv=a.reviews_url||"";this.Aa.Sj=a.view_order_url||"";this.Aa.Gw=a.add_to_my_ebooks_url;this.Aa.Cs=a.add_to_my_ebooks_url_is_on_play||!1;this.Aa.oj=a.has_flowing_text||!1;this.Aa.qj=a.has_scanned_text||!1;var b=cp(a.info_url);this.Aa.nm=b;this.Aa.Iw=a.canonical_atb_url|| "";this.Aa.wl=a.is_rentable||!1;this.Aa.dg=a.is_pre_order||!1;this.Aa.wp=a.on_sale_date||"";this.Aa.$f=a.is_pre_ordered||!1;this.Aa.Nw=a.issue_volume_count||0;this.Aa.$h=a.is_volume_cancelled||!1;this.Aa.Fs=a.cancelled_reason||"0";switch(a.rental_state){case 1:this.Aa.Ej=1;break;case 2:this.Aa.Ej=2}this.Aa.Ev=a.rental_end_utc||0}m(Wt,Qt);function Xt(a){this.g=[];this.$g(a.id);this.s=a.owner_uid;this.Ec=a.title;this.o=a.description;this.wa=a.num_volumes;this.ze=a.access||"0";this.Qa=a.can_modify_metadata;this.O=a.predefined;this.na=a.can_remove_volumes;this.j=a.can_add_volumes;this.ua=a.can_only_add_ebooks||!1;this.ma=new R(a.add_vol_base_url);this.oa=new R(a.del_vol_base_url);void 0!==a.paused&&(this.i=a.paused,this.N=a.pause_bookshelf_url);a.volumes&&(this.g=Ya(a.volumes,function(b){return new Wt(b)}))}m(Xt,Rt);function Yt(){W.call(this);this.j=[];this.i=[]}u(Yt,W);function Zt(a){var b=new R(kf().location);b=new R(b);return a===parseInt(T(b,"as_coll"),10)}function $t(a,b,c){au(a,b.getId())||(a=b.O?a.j:a.i,c?kb(a,void 0,0,b):a.push(b))}function bu(a,b,c){var d=1==b.ze;a=new R(a);S(a,"cl_title",b.hb());S(a,"cl_mode",d?"public":"private");b="cl_des="+encodeURIComponent(String(b.Pg()));sl(a,c,"POST",b)} Yt.prototype.N=function(a){a=a.target;if(Bl(a)){a=new Xt(Dl(a));var b=au(this,a.getId());b.Ec=a.hb();b.o=a.Pg();b.ze=a.ze;b=new bj("update",this);b.shelf=a;this.dispatchEvent(b)}};Yt.prototype.s=function(a,b){b=b.target;Bl(b)&&(b=new Xt(Dl(b)),$t(this,b,a),a=new bj("add",this),a.shelf=b,this.dispatchEvent(a))};function cu(a,b){a.o=new R(b);S(a.o,"jscmd","ClCreate")}function au(a,b){return ab(du(a),function(c){return c.getId()==b})}function du(a){return pb(a.j,a.i)};function eu(a,b){var c=C("A",{},"View order");pe(c,a);c.classList.add(b);return c};function fu(a,b,c){Kt.call(this,a,b,c);T(new R(this.data.Aa.Vg),"dapp")}m(fu,Kt); fu.prototype.render=function(a){rf(a);var b=C("DIV",this.g),c=C("DIV",this.g+"-meta");this.j(c);var d=C("DIV",this.data.Aa.Zh?this.g+"-footer":this.g+"-footer-nonebook"),e=C("DIV",this.g+"-footer-inner");if(this.data.Aa.Zh)if(this.data.$h()&&Zt(1))gu(this,e);else if(this.data.Aa.dg&&!this.data.Rd()||this.data.$f()){var g=C("DIV",this.g+"-pre-order-date");g.textContent="Available on: "+this.data.Aa.wp;e.appendChild(g);this.data.$f()&&Zt(1)&&gu(this,e)}else if(this.data.Rd()&&Zt(1))hu(this,e),gu(this, e);else{hu(this,e);g=!this.data.Rd()&&!this.data.Aa.tj;var h=this.data.Aa.tj&&!this.data.Aa.rj;if(g||h){g=C("SPAN",{"class":this.g+"-footer-inner-right"});if(h=this.data.Aa.uv||this.data.Aa.Fp){for(var k=h.search(Yj),l=0,n,r=[];0<=(n=Xj(h,l,"source",k));)r.push(h.substring(l,n)),l=Math.min(h.indexOf("&",n)+1||k,k);r.push(h.substr(l));h=r.join("").replace(ak,"$1");h=Wj(h,"source","ebookstore")}h&&(k=C("A",{id:"unified-hovercard-preview-link"},"preview it"),pe(k,h),g.appendChild(k));e.appendChild(g)}}d.appendChild(e); b.appendChild(c);b.appendChild(d);a.appendChild(b);L(a).width>this.maxWidth&&K(a,this.maxWidth,"")}; fu.prototype.j=function(a){if(!(this.data.Rd()||this.data.$f()||this.data.$h())&&this.data.Aa.Sj&&Zt(1)){var b=C("IMG",{src:"/googlebooks/images/purchase_error.gif","class":this.g+"-error-icon"});b=C("DIV",this.g+"-card-error",b,"Credit card declined:");if(this.data.Aa.Sj){var c=eu(this.data.Aa.Sj,"primary"),d=C("SPAN");d.innerText=" ";b.appendChild(d);b.appendChild(c)}a.appendChild(b)}Kt.prototype.j.call(this,a);b=C("DIV",this.g+"-book-options");this.data.Aa.Zh?(this.data.Aa.tj?this.data.Aa.rj? iu(this,b):Ot(this,b,"eBook - FREE",this.data.Aa.et,!this.data.Aa.Cs,void 0,"unified-hovercard-free-btn"):this.data.$f()?(c=C("SPAN",this.g+"-pre-ordered","Pre-ordered"),b.appendChild(c)):this.data.$h()&&Zt(1)?(c=C("DIV",this.g+"-cancelled"),d=this.data.Aa.Fs,0==d?G(c,"Cancelled - by customer request"):1==d?G(c,"Cancelled - problem with eBook"):2==d?G(c,"Cancelled - price change"):3==d?G(c,"Cancelled - publisher cancellation"):G(c,"Cancelled"),b.appendChild(c)):this.data.Rd()||this.data.Aa.rj?!this.data.Rd()&& this.data.Aa.rj?ju(this,b):this.data.Rd()&&iu(this,b):ju(this,b),Zt(7)&&(c=C("SPAN",this.g+"-offline-remove-options"),d=C("SPAN",{id:"unified-hovercard-remove-from-ebooks","class":this.g+"-fake-link"},"Remove from My eBooks"),d.id="hovercard-remove-from-my-ebooks",c.appendChild(d),b.appendChild(c))):(c=this.data.Aa.Bp,Xb(Pt,this.data.Aa.jq)&&!Cb(c)?Ot(this,b,"Preview",c,void 0,void 0,"unified-hovercard-preview-sample"):Ot(this,b,"Preview",c,!1,!0,"unified-hovercard-preview-sample"));a.appendChild(b)}; function gu(a,b){var c=C("DIV",{id:"unified-hovercard-purchased-shelf-links","class":a.g+"-order-links-container"}),d=a.data.Aa.Sj;d&&(d=eu(d,""),c.appendChild(d));a.data.$f()||(d=C("DIV",{id:"unified-hovercard-delete-forever","class":a.g+"-footer-fake-link"},"Delete forever"),x(d,a.g+"-footer-action-link"),d.id="hovercard-delete-forever",c.appendChild(d));b.appendChild(c)} function ju(a,b){a.data.Aa.dg&&!a.data.Rd()?Ot(a,b,"Pre-order eBook - "+a.data.Aa.Np,a.data.Aa.Lk,void 0,void 0,"unified-hovercard-buy-btn"):a.data.wl()?Ot(a,b,"EBOOK FROM "+a.data.Aa.Yu,a.data.Aa.Lk,void 0,void 0,"unified-hovercard-buy-btn"):Ot(a,b,"Buy eBook - "+a.data.Aa.Np,a.data.Aa.Lk,void 0,void 0,"unified-hovercard-buy-btn")}function iu(a,b){Ot(a,b,"Read now",a.data.Aa.Fp,void 0,void 0,"unified-hovercard-read-now")} function hu(a,b){var c=C("DIV",a.g+"-supported-devices"),d=a.g+"-device-type",e=a.g+"-device-supported",g=a.g+"-device-not-supported",h=C("SPAN",d,"Web"),k=C("SPAN",d,"Tablet / iPad"),l=C("SPAN",d,"eReader");d=C("SPAN",d,"Smartphone");var n=C("SPAN","goog-inline-block"),r=C("SPAN","goog-inline-block"),w=C("SPAN","goog-inline-block"),D=C("SPAN","goog-inline-block");a.data.Aa.oj?(x(n,e),x(r,e),x(w,e),x(D,e)):(a.data.Aa.qj?(x(n,e),x(r,e)):(x(n,g),x(r,g)),x(w,g),x(D,g));c.appendChild(n);c.appendChild(h); c.appendChild(r);c.appendChild(k);c.appendChild(w);c.appendChild(l);c.appendChild(D);c.appendChild(d);b.appendChild(c)};function ku(a,b,c){Ht.call(this,a);this.Xb=Ul();this.j=this.Ba=this.s=null;this.Rb=b;this.i=null;this.Vb=!!c;this.render(b);lu(this)}m(ku,Ht);ku.prototype.va=function(){Lt(this.i).Ha();F(this.ha())};ku.prototype.ci=function(a,b){Ht.prototype.ci.call(this,a,b);this.isVisible()&&(this.Gl=this.Xb?new Tg(0,-2,0,0):new Tg(0,0,0,-2),this.isVisible()&&this.og(),this.s=this.g,mu(this))}; ku.prototype.render=function(a){this.i&&(this.i.Ha(),this.j=this.Ba=null);this.i=new fu(a,this.className,435,this.Vb);this.i.render(this.ha());lu(this);this.isVisible()&&mu(this)}; function mu(a){var b=C("DIV"),c=C("DIV");var d=zh(a.s||null);var e=zh(a.ha());if(d){d.top=Math.ceil(d.top);e.top=Math.ceil(e.top);d.left=Math.ceil(d.left);e.left=Math.ceil(e.left);var g=e.top>=d.top,h=ah(e,d);h||(h=new Xg(d.left,0,d.width,0));d=a.Xb?e.left+e.width-h.left-(h.width/2+12):h.left-e.left+(h.width/2-12);e={x:0=a?"Expiring soon":48>=a?a+" hours":c+" days"):a="",this.o=C("SPAN",["bookcard-badge","bookcard-sample-label"],a),b.appendChild(this.o)):!this.s||this.i.Rd()||this.i.Aa.tj||(this.o=C("SPAN",["bookcard-badge","bookcard-sample-label"], "Sample"),b.appendChild(this.o));tj(b,"mouseover",this.na.bind(this,b))};nu.prototype.oa=function(){this.dispatchEvent("render");ou.dispatchEvent("complete");this.o&&yh(this.o,L(this.j).width)};nu.prototype.na=function(a,b){(new ku(a,this.i)).Le(b)};function pu(a,b,c){nu.call(this,a,b-40,c);this.N=C("DIV","slider-annotation");this.O=!1}m(pu,nu);pu.prototype.Qc=function(a){tj(this,"render",q(this.ua,this));nu.prototype.Qc.call(this,a);a.appendChild(this.N)};pu.prototype.ua=function(a){this.O||(a.stopPropagation(),a=this.ma(),this.N.appendChild(a),this.O=!0,this.dispatchEvent("render"))};function qu(a,b,c){pu.call(this,a,b,c)}m(qu,pu);qu.prototype.Qc=function(a){pu.prototype.Qc.call(this,a)};qu.prototype.ma=function(){var a=this.i,b=E("DIV"),c=C("A",{className:"slider-annotation-title"},of(a.hb()));pe(c,a.Aa.Vg);b.appendChild(c);if(a=a.Aa.Gk)a=C("DIV","slider-annotation-author",of(a)),b.appendChild(a);K(b,L(this.j).width+5,"");return b};function ru(){this.g=su;this.lg=5E3}var tu=0;ru.prototype.send=function(a,b,c,d){a=a?bc(a):{};d=d||"_"+(tu++).toString(36)+Date.now().toString(36);var e="_callbacks___"+d;b&&(p[e]=uu(d,b),a.callback=e);b={timeout:this.lg,Is:!0};e=ld.exec(kd(this.g).toString());var g=e[3]||"";e=md(e[1]+nd("?",e[2]||"",a)+nd("#",g,void 0));b=vo(e,b);ro(b,null,vu(d,a,c),void 0);return{lb:d,Zn:b}};ru.prototype.cancel=function(a){a&&(a.Zn&&a.Zn.cancel(),a.lb&&wu(a.lb,!1))}; function vu(a,b,c){return function(){wu(a,!1);c&&c(b)}}function uu(a,b){return function(c){wu(a,!0);b.apply(void 0,arguments)}}function wu(a,b){a="_callbacks___"+a;if(p[a])if(b)try{delete p[a]}catch(c){p[a]=void 0}else p[a]=Ca};function xu(a,b,c){P.call(this);this.ma=a;this.na=c;this.j=b;O(b,["hilite","select","canceldismiss","dismiss"],this.handleEvent,!1,this);this.N=null;this.i=[];this.o=-1;this.g=0;this.s=this.O=null;this.wa={}}u(xu,P);f=xu.prototype;f.ik=!0;f.Ek=!1;f.wd=function(){return this.j}; f.handleEvent=function(a){var b=this.ma;if(a.target==this.j)switch(a.type){case "hilite":this.Me(a.Ff);break;case "select":var c=!1;if("number"===typeof a.Ff){a=a.Ff;var d=this.i[yu(this,a)];c=!!d&&b.xl&&b.xl(d);d&&!c&&this.o!=a&&this.Me(a)}c||this.fg();break;case "canceldismiss":zu(this);break;case "dismiss":Au(this)}};f.ki=function(a){this.N!=a&&(this.N=a,this.ma.Jp(this.N,10,q(this.Nu,this)),zu(this))};f.qd=function(){return this.j.isVisible()}; function Bu(a){for(var b=a.g+a.i.length-1,c=a.o,d=0;d=a.g&&cb||b>=a.i.length?-1:b}f.update=function(a){this.na.update(a)};function Du(a){var b=0,c=0;Fu(a)&&(b=a.selectionStart,c=-1);return[b,c]}function Fu(a){try{return"number"==typeof a.selectionStart}catch(b){return!1}};function Gu(a,b,c,d){Zi.call(this);d=d||150;this.j=null!=c?c:!0;this.s=a||",;";this.ua=this.s.charAt(0);a=this.j?"[\\s"+this.s+"]+":"[\\s]+";this.na=new RegExp("^"+a+"|"+a+"$","g");this.oa=new RegExp("\\s*["+this.s+"]$");this.O=b||"";this.wa=this.j;this.Ya=0b.g)c--;else{b.Ek&&c==b.g&&b.Me(-1);break}if(b.Me(c))break a}a.preventDefault();return!0}break;case 9:if(!this.g.qd()||a.shiftKey)this.g.Ee();else if(this.update(),this.g.fg()&&this.wa)return a.preventDefault(),!0;break;case 13:if(this.g.qd()){if(this.update(),this.g.fg())return a.preventDefault(), a.stopPropagation(),!0}else this.g.Ee();break;case 27:if(this.g.qd())return this.g.Ee(),a.preventDefault(),a.stopPropagation(),!0;break;case 229:if(!this.Jf)return this.Jf||(this.i.ka(this.Mb,"keyup",this.np),this.i.ka(this.Mb,"keypress",this.mp),this.Jf=!0),!0}return Ju(this,a)};function Ju(a,b){var c=a.j&&b.charCode&&-1!=a.s.indexOf(String.fromCharCode(b.charCode));c&&a.update();return c&&a.g.fg()?(b.preventDefault(),!0):!1}f.Mt=function(){return!1};f.Lm=function(a){Iu(this,a.target||null)}; function Iu(a,b){Jj(a.N);a.g&&zu(a.g);b!=a.Mb&&(a.Mb=b,a.Ya&&(a.Ya.start(),a.i.ka(a.Ya,"tick",a.Nm)),a.Dl=a.Ab(),dq(a.o,a.Mb),a.i.ka(a.o,"key",a.Mm),a.i.ka(a.Mb,"mousedown",a.qp),z&&a.i.ka(a.Mb,"keypress",a.lp))}f.Mq=function(){this.Mb&&(this.i.Xa(this.o,"key",this.Mm),hq(this.o),this.i.Xa(this.Mb,"keyup",this.Mt),this.i.Xa(this.Mb,"mousedown",this.qp),z&&this.i.Xa(this.Mb,"keypress",this.lp),this.Jf&&Ku(this),this.Mb=null,this.Ya&&(this.Ya.stop(),this.i.Xa(this.Ya,"tick",this.Nm)),this.g&&Au(this.g))}; f.Nm=function(){this.update()};f.hv=function(a){this.Lm(a)};f.Mm=function(a){this.ma=a.keyCode;this.g&&this.Sc(a)};f.mp=function(){this.Jf&&229!=this.ma&&Ku(this)};f.np=function(a){this.Jf&&(13==a.keyCode||77==a.keyCode&&a.ctrlKey)&&Ku(this)};f.qp=function(){};function Ku(a){a.Jf&&(a.Jf=!1,a.i.Xa(a.Mb,"keypress",a.mp),a.i.Xa(a.Mb,"keyup",a.np))}f.lp=function(a){Ju(this,a)}; f.update=function(a){if(this.Mb&&(a||this.Ab()!=this.Dl)){if(a||!this.Rl){a=Du(this.Mb)[0];var b=this.Ab();a=Eu(this,b)[Cu(this,b,a)];a=this.na?String(a).replace(this.na,""):a;this.g&&(this.g.O=this.Mb,this.g.ki(a,this.Ab()))}this.Dl=this.Ab()}this.Rl=!1};function Cu(a,b,c){a=Eu(a,b);if(c==b.length)return a.length-1;for(var d=b=0,e=0;dd;d++)e=2*d,b.nodeValue=c[e],g=Of(a.g,"B"),g.className=a.Ka,a.g.appendChild(g,a.g.g.createTextNode(String(c[e+1]))),g=b.parentNode.insertBefore(g, b.nextSibling),b.parentNode.insertBefore(a.g.g.createTextNode(""),g.nextSibling),b=g.nextSibling;b.nodeValue=c.slice(2).join("");a.Ba=!0}else d&&Qu(a,b,d)}}else for(b=b.firstChild;b;)d=b.nextSibling,Qu(a,b,c),b=d}function Ru(a){var b="";if(!a)return b;Array.isArray(a)&&(a=a.filter(function(c){return!Cb(Pe(c))}));Array.isArray(a)?b=0Na()-this.wa)&&this.dispatchEvent({type:"hilite",Ff:this.i[a].id})};function Tu(a,b,c,d){this.ua=a;this.oa=null;this.Ka=c||null;this.Ca="boolean"===typeof b?b:!0;this.Ba=d||0;b=new Uu;c=new Vu(this.Ka||a,this.Ba);c.ua=!0;d=new Gu(null,null,!1);xu.call(this,b,c,d);d.g=this;d.Lq(a);this.O=a;this.ik=!1;this.Ek=!0;O(this,"update",q(this.Ja,this))}u(Tu,xu);Tu.prototype.fg=function(){this.La=this.ua.value;Tu.ta.fg.call(this);return!1}; Tu.prototype.Ja=function(a){a.Ff&&(a=this.ua.form,this.oa||(this.oa=C("INPUT",{type:"hidden",name:"oq"}),a.appendChild(this.oa)),this.oa.value=this.La,this.Ca&&a.submit())};function Uu(){}var su=md(Yc(Zc("//suggestqueries.google.com/complete/search")));Uu.prototype.Jp=function(a,b,c){a={client:"books",ds:"bo",q:a};c=q(this.g,this,c);this.i&&this.i.cancel();this.i=new ru;this.i.send(a,c)};Uu.prototype.g=function(a,b){var c=Array.prototype.map.call(b[1],function(d){return d[0]});a(b[0],c)}; function Vu(a,b){Lu.call(this);this.Ja=a;this.La=b||0}u(Vu,Lu);Vu.prototype.jk=function(){Vu.ta.jk.call(this);var a=0,b=B("gbfwa");b||(b=bf("gbqfwa"));b&&(a=b.offsetTop+b.offsetHeight-1);Array.prototype.forEach.call(Ye("div","ac-renderer"),function(c){a&&J(c,"top",a+"px");J(c,"width",L(this.Ja).width-2+"px");J(c,"left",parseInt(c.style.left,10)+this.La+"px")},this)};function Wu(a,b,c,d,e){W.call(this);this.O=a;this.N=b;this.ua=e;this.Cb="number"===typeof d?d:this.N?200:80;this.N||x(this.O,"slider-small");this.ma=[];this.j=E("A");this.j.textContent=Ul()?"\u203a":"\u2039";this.j.setAttribute("title","Scroll left");Eh(this.j,!0);this.O.appendChild(this.j);this.i=E("div");x(this.i,"slider-drawables");this.O.appendChild(this.i);this.s=E("A");this.s.textContent=Ul()?"\u2039":"\u203a";this.s.setAttribute("title","Scroll right");Eh(this.s,!0);this.O.appendChild(this.s); this.g.ka(this.j,"click",this.Kl.bind(this,-.75));this.g.ka(this.s,"click",this.Kl.bind(this,.75));this.xi();this.g.ka(this.j,"click",this.Kl.bind(this,-.75));this.resize();this.oa=0;this.na=z&&Hc("8")&&!Hc("9")&&Ul();c&&Xu(this,c)}u(Wu,W);function Yu(a){var b=Math.ceil(1.25*Zu(a));b=Math.min(a.ma.length,a.oa+b);v(a.ma.slice(a.oa,b),q(a.Xs,a));a.xi();a.oa=b;b>=a.ma.length&&a.dispatchEvent("render")}f=Wu.prototype; f.Xs=function(a){var b=C("DIV",{"class":"goog-inline-block slider-loading"});this.i.appendChild(b);var c=C("DIV",{"class":"goog-inline-block slider-drawable"});M(c,!1);this.i.appendChild(c);this.g.zf(a,"render",this.Zs.bind(this,b,c));a.Qc(c)};f.Zs=function(a,b){F(a);this.xi();M(b,!0)};function Xu(a,b){b=b.map(function(c){return this.N?new qu(c,this.Cb):new nu(c,this.Cb,this.ua)},a);$u(a,b)}function $u(a,b){jb(a.ma,b);Yu(a)} f.Kl=function(a){(Ul()?0>a:0=this.i.scrollWidth-L(this.i).width;this.j.className=a?"slider-button slider-button-left slider-button-disabled":"slider-button slider-button-left";this.s.className=b?"slider-button slider-button-right slider-button-disabled":"slider-button slider-button-right"};f.resize=function(){this.xi()}; function Zu(a){var b=a.N?110:50;return Math.ceil(L(a.i).width/b)};function av(a,b,c){W.call(this);this.i=a;this.source=b?b:"gbs_bookshelf_slider";this.ma=0;this.s=new Lj;this.ua=this.s.Fa();this.oa="";this.wa="boolean"===typeof c?!c:!1;tj(this.s,"resize",q(this.Rm,this))}m(av,W);f=av.prototype;f.Rm=function(){this.s.Fa().width>this.ua.width?this.Hh():tj(this.s,"resize",q(this.Rm,this))};f.render=function(a){this.N=a;this.j=this.hl(a);this.g.ka(this.j,"render",q(this.Hh,this))};f.hl=function(){return new Wu(this.N,!0,void 0,void 0,this.i.getId())}; f.Hh=function(){this.j.resize();var a=Math.ceil(1.25*Zu(this.j))+1,b=this.qf(this.ma,a);b&&(this.ma+=a,sl(b,q(this.mu,this)))};f.Ng=ba(2);f.mu=function(a){a=a.target;if(Bl(a)){if((a=(new Xt(Dl(a))).g)&&a.length){var b=cp(a[a.length-1].Aa.Vg);this.oa!=b&&(this.oa=b,$u(this.j,bv(this,a)));(a=Lf(this.ha()))&&Ah(a,1)}else 0==this.j.oa&&this.Ip();this.dispatchEvent("success")}}; function bv(a,b){return a.Rk(b).map(function(c){return this.j.N?new qu(c,200,this.i.getId()):new nu(c,80,this.i.getId())},a)}f.Ip=function(){};f.ha=function(){return this.N};f.Rk=function(a){return this.source?a.map(function(b){b.Aa.source=this.source;return b},this):a};function cv(a,b,c){this.j=a;this.g=b;this.o=c||!1;a=this.Fa();this.i()?a.height=120:a.height=65;this.mb(a)}m(cv,Hl);cv.prototype.i=function(){var a=B("gb-mobile-menu-pubinfo");return a?0=d||1==Math.abs(c-d)?d="Some pages are omitted from this book preview.":mv(a,b)?d="Page "+(--d+" is not part of this book preview."):(a=++c+"",d=--d+"",d="Pages "+a+" to "+d+" are not shown in this preview.");return d}function lv(a){a=a.hb();var b;/[^0-9]/.test(a)||Cb(a)?b=null:b=Bb(a,"B")?rs(a,us):rs(a,ts);return b} function mv(a,b){a=lv(a);b=lv(b);return 0==a+1-(b-1)};function nv(a,b){W.call(this);this.s=a;this.N=b;this.o=b.j;this.j=b.g;this.i=E("DIV");this.i.className="separator-container";this.s.appendChild(this.i);a=E("TABLE");a.className="separator-outer-table";this.i.appendChild(a);var c=a.insertRow(-1).insertCell(-1);c.align="center";var d=E("DIV");d.className="separator-background";c.appendChild(d);c=E("TABLE");c.className="separator-inner-table";d.appendChild(c);c.align="center";if(b.i()){var e=B("gb-mobile-menu-pubinfo");if(e){b=Xe("IMG",e);if(1==b.length){b= b[0].cloneNode(!0);var g=c.insertRow(-1).insertCell(-1);uf(g,b,0);x(g,"separator-message");x(g,"separator-pubinfo-message")}b=kv(this.o,this.j);e=If(e);c=c.insertRow(-1).insertCell(-1);g=E("SPAN");g.className="separator-text";c.appendChild(g);var h=this.N;h.i&&h.o?N(g,mi(e)):N(g,mi(b+"
"+e));x(c,"separator-message");x(c,"separator-pubinfo-message")}x(a,"separator-pubinfo");x(d,"separator-pubinfo")}else a=c.insertRow(-1).insertCell(-1),x(a,"separator-message"),a.textContent=kv(this.o,this.j);Eh(this.i, !0);V(this.i)}m(nv,lm);nv.prototype.mb=function(a){K(this.i,a)};nv.prototype.setPosition=function(a){jh(this.i,a)};nv.prototype.Na=function(){F(this.i)};function ov(a){var b=this;W.call(this);this.s=a;this.j=a.o;this.mb(Ih(this.j));this.Gb=new A(0,0);this.O=null;this.na=new am(function(){M(b.O,!1)},600);$i(this,this.na)}u(ov,W);f=ov.prototype;f.mb=function(a){if(!this.i||!Be(this.i,a)){this.i=a;var b=this.s;b.ma=a;pv(b);this.dispatchEvent("resize")}};f.Xc=function(a){this.wc=a;this.N.Na();var b=this.s,c=this.Fa();b.ma=c;pv(b);b=this.s;a=new Ae(a.Bb(),a.Db());b.oa=a;b.s=!0;K(b.i,a);U(b.na,0,b);pv(b);this.dispatchEvent("layoutchange")}; function qv(a,b){a.N=b}f.el=function(){return this.N};f.Kb=function(){return this.wc};f.hc=function(){var a=this.wc.Kd();this.oa&&(a=this.oa.bl(a));Kp(this.N,a);this.dispatchEvent("update")};function rv(a,b){a.oa=b} f.Yc=function(a){var b=this.Gb.x,c=this.Gb.y;"number"===typeof a.x&&(a.x=we(a.x,0,Math.max(this.wc.Bb()-this.i.width,0)));"number"===typeof a.y&&(a.y=we(a.y,0,Math.max(this.wc.Db()-this.i.height,0)));"number"===typeof a.x&&(b=a.x);"number"===typeof a.y&&(1c.width||Math.abs(b.y-a.y)>c.height?this.Ed(a):(this.o&&(this.o.Ha(),this.o=null),this.o=new hm([b.x,b.y],[a.x,a.y],250+250*we(ye(b,a)/800,0,1),km),O(this.o,"animate",q(this.Tm,this)),O(this.o,"end",q(this.Oq,this)),this.dispatchEvent("movestart"),tj(this,"movestart",q(this.o.Ha,this.o)),this.o.play())};f.Tm=function(a){a=a.coords.map(Math.round);this.Yc(new A(a[0],a[1]))};f.Oq=function(a){this.Tm(a);this.dispatchEvent("moveend")}; f.Fb=function(){return this.j};f.Ke=ba(3);f.Kc=function(){return new A(Math.round(this.Gb.x+this.i.width/2),Math.round(this.Gb.y+this.i.height/2))};f.Pe=function(a){return new A(Math.round(a.x+this.i.width/2*-1),Math.round(a.y+this.i.height/2*-1))};f.va=function(){ov.ta.va.call(this);this.N.Na()};f.Yk=function(a){null==this.O&&(this.O=a);this.O.style.opacity=0;this.na.start()};f.bt=function(){var a=this;this.na.stop();M(this.O,!0);U(function(){a.O.style.opacity=1})};f.Sm=1;function uv(a,b){ov.call(this,b);this.vb=a;this.g.ka(a,"pagechange",this.Od);this.g.ka(this.vb,"searchupdate",this.nl);if(a=B("subscription-bar"))this.g.ka(this,"scrolldown",t(this.Yk,a)),this.g.ka(this,"scrollup",t(this.bt,a))}u(uv,ov);f=uv.prototype;f.Ld=function(){var a=this.wc.Kd(),b=[];this.oa&&(a=this.oa.li(a)[0]||[]);v(a,function(c){c instanceof Sl&&b.push(c.Ga())});return b};f.jh=function(a){this.ig(!1,!1);this.Xe(this.Jg(a))}; f.We=function(a){var b=[];"fixed_width"==this.Kb().Xf()&&b.push(this.Fa().width);this.ee&&(a=Mp(this.ee(),this.Kb().s(),a,b))&&this.jh(a)};f.He=function(){this.ig(!0,!1);var a=this.Fa().width;this.Xe(this.Jg(a))};f.xf=ba(4);f.ig=function(a,b){this.Lg=a;this.aj=b};f.resize=function(){if(this.Lg)this.He();else{var a=this.Kb().s();a&&this.jh(a)}};f.Xe=function(a){var b=this.Kb();this.Xc(a);b&&(a=qm(new pm(b,a),this.Kc()),(a=this.Pe(a))&&this.Ed(a))};f.Od=function(){this.Yh||this.Nd(this.vb.Ga())}; f.Nd=function(a){this.wc.zc&&(a=this.wc.zc(a))&&this.Yc(new A(Math.round(a.be()),Math.round(a.od())))};f.nl=function(){vv&&(this.el().Na(),this.wa&&this.wa(),this.hc())};var vv=!0;function wv(a,b){this.Ea=a;this.g=b}m(wv,mp);wv.prototype.render=function(a){var b=this.g(),c=a.Ga(),d=Ua(this.Ea.ee().Kf)/a.Fa().width,e=a.Fa();b.zj=e.width;b.Yg=e.height;e=a.Fa().clone();e.width*=d;e.height*=d;b.wu=e.width;b.tu=e.height;b.setPosition(a.be(),a.od());b.ub(c);b.Qc();return b};function xv(){};function yv(a){this.Ea=a}u(yv,xv);yv.prototype.bl=function(a){var b=this.li(a);a=b[0]||[];b=b[1]||[];b.sort(t(zv,this.Ea.Kc()));var c=[];jb(c,a,b);return c};function zv(a,b,c){return Wg(Yg(Il(b)),a)-Wg(Yg(Il(c)),a)}yv.prototype.li=function(a){var b=sv(this.Ea),c=new Xg(b.left-800,b.top-800,b.width+1600,b.height+1600);return ob(a,function(d){d=Il(d);if(ah(c,d))return ah(b,d)?0:1})};function Av(a,b){this.Ea=b;this.V=a}m(Av,yv);Av.prototype.bl=function(a){var b=yv.prototype.bl.call(this,a),c=this.V.Ga();if(c){var d=[],e=this.V.rb();v([1,-1],function(){var g=ho(e,c.Pa(),1);g&&d.push(g)});v(a,function(g){g.Ga&&cb(d,g.Ga())&&db(b,g)})}return b};function Bv(){W.call(this)}u(Bv,W);Bv.prototype.ue=function(a){this.i=a;this.o=Cv(a)};Bv.prototype.va=function(){Bv.ta.va.call(this);F(this.o)};function Dv(a){W.call(this);this.ma=a;this.O=[]}u(Dv,Bv);f=Dv.prototype;f.ue=function(a){Dv.ta.ue.call(this,a);this.qh();this.Ga()&&this.g.ka(this.Ga(),"update",this.qh)};f.Ga=function(){return this.i.Ga()};f.oh=function(a,b,c,d){var e=E("div");V(e,!0);this.o.appendChild(e);a=Ev(this,a,b,c,d);J(e,{position:"absolute",left:a[0]+"px",top:a[1]+"px",width:a[2]+"px",height:a[3]+"px"});this.ma&&(J(e,{backgroundColor:this.ma}),Ah(e,.3));this.O.push(new Xg(a[0],a[1],a[2],a[3]));return e}; function Fv(a){return a.i.Fa().width/a.i.Ga().getParent().g.width}function Ev(a,b,c,d,e){var g=Fv(a);return Ya([b,c,d,e],function(h){return Math.round(h*g)})}function Gv(a,b){v(b,function(c){this.oh.apply(this,c)},a)}f.ho=function(a){return this.oh(a.left,a.top,a.width,a.height)};f.wg=function(){rf(this.o);this.O=[]};f.qh=Ca;function Hv(){Dv.call(this)}m(Hv,Dv);f=Hv.prototype;f.qh=function(){if(!this.j){var a=this.Ga();a&&(a=Cp(a))&&(Gv(this,a),this.j=!0)}}; f.oh=function(a,b,c,d){this.s=Dv.prototype.oh.call(this,a,b,c,d);J(this.s,{border:"2px #aaaaff dashed"});this.N=E("IMG");this.s.appendChild(this.N);this.N.src="/googlebooks/images/dialog_close_x.gif";a=Ev(this,a,b,c,d);J(this.N,{position:"absolute",cursor:"pointer",left:a[2]-19+"px",top:"4px",display:"none"});O(this.s,"mouseout",q(this.Pq,this));O(this.s,"mouseover",q(this.To,this,!0));tj(this.N,"click",q(this.Na,this));return this.s};f.Na=function(){F(this.s)}; f.Pq=function(a){Bf(this.s,a.target)||this.To(!1)};f.To=function(a){J(this.N,{display:a?"":"none"})};function Iv(a){Dv.call(this);this.V=a}m(Iv,Dv);Iv.prototype.qh=function(){if(!this.j){var a=this.Ga();a&&(a=Bp(a))&&(v(a,function(b){var c=b.pop(),d=b.pop();b=this.oh.apply(this,b);J(b,{cursor:"pointer"});this.g.ka(b,"click",q(this.s,this,d,c))},this),this.j=!0)}};Iv.prototype.s=function(a,b){(a=io(this.V.rb(),a))?this.V.ub(a):Ro(this.V,b)};function Jv(a,b){this.o=a;this.g=b}Jv.prototype.Ga=function(){return this.o};Jv.prototype.i=function(){return this.o.xd(this.g)};function Kv(a,b,c){Jv.call(this,a,b);this.j=c}m(Kv,Jv);Kv.prototype.i=function(){return this.j.width>this.g.width?this.o.xd(this.j):Jv.prototype.i.call(this)};function Lv(a,b,c,d,e){W.call(this);this.ah(a.Ia());this.V=a;this.i=c;this.na=[];this.Um=d;K(d,c);this.ua=Cv(this);J(this.ua,"backgroundColor","#fff");K(this.ua,c);if(this.Ba=void 0!==e?e:!0)a=Cv(this),K(a,c),this.wa=new Mv(a),this.wa.show();b&&(this.o=b,this.g.ka(b,"update",this.xg),To(b))}u(Lv,W);f=Lv.prototype;f.Fa=function(){return this.i};f.Ga=function(){return this.o};function Nv(a,b){a.na.push(b);b.ue(a)}f.xg=Ca;function Ov(a){a.dispatchEvent("load");a.Ba&&a.wa.kb()} function Cv(a){var b=E("div");V(b,!0);J(b,{position:"absolute",left:0,top:0});a.Um.appendChild(b);return b}f.Na=function(){v(this.na,function(a){a.Ha()});this.na=null;this.s&&F(this.s)};function Pv(a){a.N=Cv(a);K(a.N,a.Fa());J(a.N,{backgroundImage:"url(//www.google.com/images/cleardot.gif)",backgroundRepeat:"repeat"});a.g.ka(a.N,"mousedown",a.Qq);a.g.ka(a.N,"dragstart",cj)}f.Qq=function(a){a.display=this;Qv.dispatchEvent(a)};var Qv=new P; function Mv(a){this.g=a;a={position:"absolute",left:0,color:"#808080",fontSize:"13px",backgroundColor:"white"};for(var b=0;2>b;b++){var c=E("div");V(c);J(c,a);this.g.appendChild(c);c.textContent="Loading...";a.bottom=0}}Mv.prototype.show=function(a){J(this.g,{display:a?"none":""})};Mv.prototype.kb=function(){this.show(!0)};Lv.prototype.Xl=function(){Rv(this)};function Rv(a,b){a.s&&F(a.s);a.s=Cv(a);new Sv(a.s,a.Fa(),b)} function Sv(a,b,c){this.g=a;J(a,{backgroundColor:"#FFF",textAlign:"center"});K(a,b);N(a,El(c||""));V(this.g)};function Tv(a,b,c){Lv.call(this,a,b.Ga(),b.g,c);this.ah(Uv);a=Cv(this);this.ma=new Vv(b.g,a);a=Cv(this);this.O=new Vv(b.g,a);Pv(this);Eh(c,!0);x(c,"pageImageDisplay");this.oa=b;b.Ga()&&this.xg()}m(Tv,Lv);f=Tv.prototype;f.ub=function(a){vp(a,"output",null);Lv.prototype.ub.call(this,a);a.xd()&&this.xg()}; f.xg=function(){var a=this.Ga(),b=this.oa.i();if(b&&!this.j){b=Wv(b);tj(this.ma,"load",q(this.Rq,this,a,b,this.Fa().width));Xv(this.ma,[b]);var c=Mo(this.V.Xb,a.Pa());c.push(b);Xv(this.O,c);this.j=!0;a==this.V.Ga()&&this.dispatchEvent("fetch")}yp(a,[16,8])&&(a=Ce('

%s
',ap("/googlebooks/restricted_logo.gif"),"You have either reached a page that is unavailable for viewing or reached your viewing limit for this book."),Rv(this, a),Ov(this))};f.Rq=function(a,b,c){a==this.V.Ga()&&this.dispatchEvent("loaded");this.O.empty();var d=this.V.Xb;a=a.Pa();d.g[a]=d.g[a]||{};d.g[a][c]=b;Ov(this)};f.mc=ba(7);f.Na=function(){this.j=!1;this.ma.empty();this.O.empty();Lv.prototype.Na.call(this)};var Uv=new P,Wv=Pc;function Vv(a,b){P.call(this);this.i=a;this.j=b;this.Af=!1;this.g=E("IMG");this.g.width=this.i.width;this.j.appendChild(this.g);V(this.j)}m(Vv,P);Vv.prototype.empty=function(){for(var a;a=xf(this.j);)jp(a)}; function Xv(a,b){fp(a.g,q(a.o,a,a.g));for(var c=0;cMath.abs(e[0])&&(d.x=e[1]||d.x,d.y=e[2]||d.y)});this.O||(this.O=new ll(100),this.g.ka(this.O,"tick",this.Vq));this.ma=d;d.x||d.y?this.O.start():this.O.stop()}}};f.Vq=function(){var a=this.ma,b=this.Ea;tv(b,new A(15*a.x,15*a.y),q(b.Ed,b))}; f.$s=function(){Bj(this.N);Yi(this.O);this.O=null};function iw(){this.g=!1;var a=C("DIV","entity-page-snackbar"),b=C("SPAN","entity-page-snackbar-text");G(b,"Selection copied to clipboard");a.appendChild(b);um(a,"hidden",!0);document.body.appendChild(a);this.o=a}iw.prototype.show=function(){this.g?(this.i(),U(q(this.j,this),500)):this.j();U(q(this.i,this),6E3)};iw.prototype.j=function(){J(this.o,"bottom","0");this.g=!0};iw.prototype.i=function(){J(this.o,"bottom","-48px");this.g=!1};function jw(a){this.i=a;this.o=new iw;this.j=kw(this)}jw.prototype.ha=function(){return this.j}; function kw(a){var b=C("DIV");wb(b,["entity-page-copy-button","entity-page-action-chip"]);var c=C("IMG");x(c,"entity-page-action-chip-icon");c.src="https://www.gstatic.com/images/icons/material/system/1x/content_copy_googblue_18dp.png";var d=C("SPAN");x(d,"entity-page-action-chip-label");G(d,"Copy");b.appendChild(c);b.appendChild(d);O(b,"click",q(a.g,a));tm(b,"button");Hf(b,!0);O(b,"keydown",function(e){32!=e.keyCode&&13!=e.keyCode||a.g.call(a)});return b} jw.prototype.g=function(){this.i.focus();this.i.select();document.execCommand("copy");this.o.show()};function lw(a){jr.call(this,a);gn(this);this.Un=!1;this.g=new Ej;this.i=qp();x(a,"viewport-selection-popup");mw&&mw.Ha();mw=this}m(lw,jr);lw.prototype.j=function(){this.dispatchEvent("close");this.Ha()}; function nw(a,b,c){var d=a.ha(),e=E("div");x(e,"selection-popup-select-container");d.appendChild(e);d=E("div");x(d,"selection-popup-select-label");e.appendChild(d);d.appendChild(of(b));e.appendChild(E("div"));b=E("input");b.value=c;x(b,"viewport-input");e.appendChild(b);Eh(b,!1);a.i&&(c=(new jw(b)).ha(),e.appendChild(c));a.g.ka(b,"mousedown",ow)}function ow(a){a.stopPropagation()}lw.prototype.va=function(){F(this.ha());jr.prototype.va.call(this);this.g.Ha()};var mw=null;function pw(a,b){this.g=a instanceof A?a:new A(a,b)}u(pw,br);pw.prototype.Pc=function(a,b,c,d){var e=Ve(a);var g=e.body;e=e.documentElement;e=new A(g.scrollLeft||e.scrollLeft,g.scrollTop||e.scrollTop);g=this.g.x+e.x;e=this.g.y+e.y;var h=dr(a);g-=h.x;e-=h.y;fr(new A(g,e),a,b,c,null,null,d)};function qw(a,b){pw.call(this,a,b)}u(qw,pw);qw.prototype.i=0;qw.prototype.o=function(a){this.i=a};qw.prototype.Pc=function(a,b,c,d){var e=mh(a);e=ph(e);var g=jf(Te(a).g);g=new A(this.g.x+g.scrollLeft,this.g.y+g.scrollTop);var h=b,k=fr(g,a,h,c,e,10,d);if(0!=(k&496)){if(k&16||k&32)h^=4;if(k&64||k&128)h^=1;k=fr(g,a,h,c,e,10,d);0!=(k&496)&&fr(g,a,b,c,e,this.i,d)}};function rw(a){Dv.call(this,"#4a95d6");this.j=a}m(rw,Dv);rw.prototype.ue=function(a){Dv.prototype.ue.call(this,a);J(this.o,{cursor:"pointer"});this.g.ka(this.o,"mousedown",sw)};function sw(a){a.stopPropagation()} function fw(a,b,c,d){a.wg();Ya(b,q(a.ho,a));a.N&&Bj(a.N);a.s&&a.s.Ha();b=E("div");document.body.appendChild(b);var e=bw(a.O);if(e){var g=qh(a.o);b=new lw(b);if(c&&d){var h=a.Ga(),k=h.xd();if(k){var l=new R(k);d=[d.left,d.top,d.width,d.height].join();S(l,"ci",d);S(l,"edge",0);l=l.toString();var n=new R(h.Ac());S(n,"ci",d);S(n,"source","bookclip");n=Ce('',n.toString(),l)}d=n;rf(b.ha());n=b.ha();h=E("IMG");h.src="/googlebooks/images/material/close_black_24dp.png";x(h, "selection-popup-close");n.appendChild(h);b.g.zf(h,"click",q(b.j,b));h=C("DIV",{},"Share this clip");x(h,"selection-popup-title");n.appendChild(h);c&&(nw(b,"Selection text",c),n=E("DIV"),x(n,"selection-popup-translate-container"),b.ha().appendChild(n),h=new R("https://translate.google.com/translate_t"),S(h,"text",c),S(h,"sl","auto"),S(h,"tl","auto"),c=E("A"),c.href=h.toString(),c.target="_blank",b.i&&(h=C("IMG"),wb(h,["selection-popup-translate-icon","entity-page-action-chip-icon"]),h.src="https://www.gstatic.com/images/icons/material/system/1x/translate_googblue_18dp.png", c.appendChild(h)),h=C("SPAN"),G(h,"Translate"),x(h,"entity-page-action-chip-label"),c.appendChild(h),h=E("SPAN"),G(h,"\u00bb"),x(h,"selection-popup-translate-arrow"),c.appendChild(h),x(c,"selection-popup-translate-link"),x(c,"entity-page-action-chip"),n.appendChild(c));l&&nw(b,"Image",l);d&&nw(b,"Embed",d)}else c=E("DIV"),G(c,"Loading..."),x(c,"selection-popup-loading-msg"),b.ha().appendChild(c);kr(b);a.s=b;c=g.x+e.left+e.width;e=g.y+e.top+e.height;g=L(b.ha()).width;24>c-g&&(c=g+24);U(t(tw,b,new qw(new A(c, e))));a.N=tj(b,"close",q(a.wg,a))}}function tw(a,b){a.Hd||(a.setPosition(b),a.Da(!0))}rw.prototype.wg=function(){Dv.prototype.wg.call(this);this.s&&this.s.Ha()};rw.prototype.va=function(){Dv.prototype.va.call(this);this.s&&this.s.Ha();this.N&&Bj(this.N)};function uw(a,b,c){return a.Za().ij()?new Yv(a,b,c):new Tv(a,b,c)}function vw(a,b){if(b instanceof Tv){Nv(b,new Zv(a.tb()));Nv(b,new Hv);var c=new rw(a.Fb()),d=new gw(c,a.Ia());Nv(b,d);Nv(b,c);Nv(b,new Iv(a))}};function ww(a,b,c){W.call(this);this.V=a;this.Ea=b;this.j=E("div");V(this.j,!0);J(this.j,{position:"absolute",display:"none"});c.appendChild(this.j);this.s=E("div");V(this.s,!0);J(this.s,{position:"absolute"});this.j.appendChild(this.s);this.N=E("div");V(this.N,!0);this.j.appendChild(this.N);this.O=E("div");V(this.O,!0);this.N.appendChild(this.O);this.kb()}u(ww,lm);f=ww.prototype; f.Qc=function(){var a=this.zj-2,b=this.Yg-2,c=this.wu-2,d=this.tu-2;J(this.N,{backgroundColor:"#cccccc",position:"absolute"});jh(this.N,0,0);K(this.N,this.zj,this.Yg);J(this.O,{overflow:"hidden",backgroundColor:"#fcfcfc",position:"absolute"});jh(this.O,1,1);K(this.O,a,b);this.show();var e=this.V;a=uw(e,new Kv(this.Ga(),new Ae(a,b),new Ae(c,d)),this.O);a instanceof Tv?vw(e,a):a instanceof Yv&&a instanceof Yv&&Nv(a,new Zv(e.tb()));this.i=a};f.kb=function(){M(this.j,!1)};f.show=function(){M(this.j,!0)}; f.mc=ba(5);f.Na=function(){this.i&&this.i.Na();F(this.j)};f.setPosition=function(a,b){jh(this.j,a,b)};f.od=function(){return lh(this.j).x};f.be=function(){return lh(this.j).y};f.ub=function(a){this.o=a};f.Ga=function(){return this.o};f.Db=function(){return this.Yg};f.Bb=function(){return this.zj};function xw(a){return a+2}f.Fa=function(){return new Ae(this.zj,this.Yg)};function yw(a){W.call(this);rf(a);V(a);this.o=a;this.i=E("div");V(this.i,!0);Ul()&&(df(a,{dir:"ltr"}),df(this.i,{dir:"rtl"}));a.appendChild(this.i)}u(yw,W);function zw(a,b){yw.call(this,b);this.Ea=a;this.g.ka(b,"scroll",this.N);J(b,"position","relative");J(this.i,"position","absolute");this.j=E("div");x(this.j,"scroll-background");V(this.j,!0);b.appendChild(this.j);this.j.appendChild(this.i)}m(zw,yw);function pv(a){var b=a.oa;a.ma&&b&&(J(a.i,"left",Math.floor(Math.max(0,a.Ea.s.o.clientWidth-b.width)/2)+"px"),J(a.j,"height",b.height+"px"))}zw.prototype.na=function(){this.s=!1;this.N()}; zw.prototype.N=function(){if(!this.s){var a=this.Ea.Gb;if(a){a=a.clone();var b=this.o;b=new A(b.scrollLeft,b.scrollTop);xe(a,b)||(this.O=!0,this.Ea.Ed(b),this.O=!1)}}};function Aw(a){var b=a.Fb(),c=new zw(this,b);Bw(b);uv.call(this,a,c);rv(this,new Av(a,this));qv(this,Cw(this));var d=a.rb(),e=a.Za().Xf();this.ma=a.Za().O?function(g){return new hv(d,e,g)}:a.Za().na?function(g){return new hv(d,e,g,!0,a.Za().na)}:function(g){return new hv(d,e,g,!0)};b=this.vb.Za();"fixed_height"==b.Xf()?(b=b.ee(),b=b[Math.floor(b.length/2)]+2):b=Dw(b)+2;this.jh(b);this.g.ka(this.vb,"pagesupdate",this.Wt);this.g.ka(this.vb,"pagemodechange",this.Wq);this.g.ka(this,"move",this.hc);this.g.ka(this, "move",this.iw)}u(Aw,uv);function Bw(a){J(a,"overflow","auto");J(a,{overflowX:"auto",overflowY:"scroll"});x(a,"overflow-scrolling");df(a,{dir:"ltr"})}f=Aw.prototype;f.Mc=function(){this.We(1)};f.jd=function(){this.We(-1)};f.ee=function(){var a=this.vb.Za(),b=ib(a.ee());"fixed_width"==a.Xf()&&(a=this.vb.Za().Qa)&&150a?db(b,a):db(b,1500));return new Lp(Ya(b,xw))};f.Jg=function(a){return this.ma(a)}; f.Fa=function(){if(this.j.hasChildNodes()){var a=Ih(this.j.childNodes[0]).width;a=new Ae(a,this.i.height)}else a=this.i;return a};function Cw(a){var b=new Ip;Jp(b,Sl,new wv(a,t(Qc,ww,a.vb,a,a.s.i)));Jp(b,cv,new jv(a.vb,function(c){return new nv(a.s.i,c)}));return b}f.iw=function(){if(this.Ca){var a=Ll(this.wc,this.Kc().y);a&&a.Ga&&(a=a.Ga(),this.vb.Ga()!=a&&(this.Yh=!0,this.vb.Bd(a.Pa()),this.Yh=!1))}this.Ca=!0}; f.Wt=function(){var a=this.vb.Ga(),b=this.vb.rb(),c=io(b,a.Pa());if(!c)a:{c=fo(a);b=go(b);for(a=b.length-1;0<=a;a--){var d=b[a];if(fo(d)<=c){c=d;break a}}c=null}a=this.Gb;b=this.Kb();d=b.zc(c);a=ze(a,d.nd());b=this.Jg(b.s());c=b.zc(c).nd();c=new A(c.x+a.x,c.y+a.y);this.Xc(b);this.Ed(c)};f.Wq=function(){this.N.Na();this.hc()}; f.Wk=function(a){if(a.vo&&a.O){var b=a.O;if(null!=a.oa)var c=a.oa;else a.oa=new Ew(this.s.i),c=a.oa;c.g=this.s.i;if(B("focus_article_div")){var d=B("focus_article_div");F(d)}d=this.Kb().zc(a);a=d.Bb()/a.re();if(b.Vf()&&(b=b.Vf())){var e=b[0];if(e&&4==e.length){b=a*e[0]+d.be();d=a*e[1]+d.od();var g=a*e[2];a*=e[3];e=E("DIV");e.setAttribute("id","focus_article_div");V(e,!0);Ah(e,.3);J(e,{position:"absolute",left:b+"px",top:d+"px",width:g+"px",height:a+"px",cursor:"pointer",backgroundColor:"#36C",border:"2px solid #00F"}); c.g.appendChild(e)}}}};function Fw(a,b,c,d,e){W.call(this);this.V=a;this.Ea=b;this.o=c;var g=E("div");J(g,{position:"absolute"});e=e.width-2;jh(g,d.x+(Ul()?e:0),d.y);b.s.i.appendChild(g);this.i=g;b=Math.floor(e/Tl(c));g=new Ae(e,b);this.j=E("div");this.i.appendChild(this.j);J(this.j,{padding:"1px",position:"absolute"});this.s();b=E("div");this.j.appendChild(b);J(b,{overflow:"hidden",backgroundColor:"#fcfcfc"});K(b,g);this.j.appendChild(b);d=E("IMG");d.title=c.Je();this.O=d;e=R;var h=new R(c.N.Uo);S(h,"pg",c.Pa());c.ob.sig&& S(h,"sig",c.ob.sig);e=new e(h.toString());S(e,"zoom","1");S(e,"img","1");S(e,"w",g.width);if(g=this.V.Za().ve)S(e,"imgtk",g),S(e,"jtp",fo(c));d.src=e.toString();b.appendChild(d);J(this.j,"cursor","pointer");this.g.ka(this.j,"click",this.N);this.g.ka(a,"pagechange",this.s)}m(Fw,lm);Fw.prototype.s=function(){var a=!1,b=this.V.Ga();b&&b==this.o&&(a=!0);J(this.j,"backgroundColor",a?"#6B90DA":"#ccc")};Fw.prototype.N=function(){this.V.qc(Aw);this.V.ub(this.o);Gw.dispatchEvent("click")}; Fw.prototype.Na=function(){jp(this.O);F(this.i)};var Gw=new P;function Hw(a,b){this.V=a;this.Ea=b}m(Hw,mp);Hw.prototype.render=function(a){return new Fw(this.V,this.Ea,a.Ga(),a.nd(),a.Fa())};function Iw(a){var b=a.Fb();J(b,{overflow:"hidden"});var c=new zw(this,b);uv.call(this,a,c);this.g.ka(this,"move",this.hc);J(b,{overflow:"auto"});qv(this,Jw(this));this.Xc(Kw(this));rv(this,new yv(this));U(q(this.hc,this),0);this.g.ka(this,"resize",this.ma);var d=B("subscription-bar");d&&(this.Yk(d),U(function(){M(d,!1)},600))}u(Iw,uv);Iw.prototype.Nd=function(a){a=this.Kb().zc(a).nd();this.Ed(new A(void 0,a.y-40))};function Kw(a){var b=a.vb.Za().Nc;return new gv(a.vb.rb(),a.Fa().width,b,b)} Iw.prototype.ma=function(){this.Xc(Kw(this));this.Nd(this.vb.Ga())};function Jw(a){var b=new Ip;Jp(b,Sl,new Hw(a.vb,a));return b};function Lw(a,b,c){W.call(this);this.V=a;this.s=b;this.j=this.V.Za().Mi;this.N=!!this.V.Za().Mi;this.ma=!!this.V.Za().vi;this.o=qp(c);if(this.N){a:{a=this.V.rb();for(b=0;b=fo(c)&&e<=d){a=b;break a}}a=-1}this.O=a}}m(Lw,W);f=Lw.prototype; f.render=function(a){this.i=E("div");document.body.appendChild(this.i);U(q(this.Xq,this));this.oa=a;if(this.N)Mw(this);else if(this.ma){x(this.i,"base-image-toc-div");a=this.V.Za().vi;var b=io(this.V.rb(),a);b&&Nw(this,b);1a.x&&(a.x=0);jh(this.i,a)};f.Ot=function(a){a.preventDefault();a.stopPropagation();this.V.Tb("previous")}; f.Da=function(a){J(this.i,{display:a?"":"none"})};f.Qc=function(){J(this.o,{left:0,top:0});J(this.N,{left:this.j.width+"px",top:0})};f.Ld=function(){return Xa([this.ua,this.Ba],function(a){return!!a})};f.Na=function(){this.s.Na();this.O.Na();for(var a;a=this.na.pop();)Bj(a);this.i.parentNode&&F(this.i)};function Sw(a){return 2*a};function Tw(a){this.V=a}m(Tw,mp);Tw.prototype.render=function(a){var b=new Qw(this.V,a.Fa().width);b.setPosition(a.nd());b.Qc();b.Da(!0);return this.g=b};function Uw(a,b,c){P.call(this);this.V=a;this.j=b;this.s=L(b).width;this.N=c;this.i=!1;this.g=Ul()}m(Uw,P);Uw.prototype.yf=function(){return this.i};function Vw(a,b){if(b!=a.i){a.i=b;var c=a.V.Ia().s.i;M(c,!1);L(c);[t(Ww,a.j,a.N,a.s,a.g,b),q(a.o,a),t(M,c,!0)].forEach(U)}}Uw.prototype.o=function(){this.dispatchEvent("change")};function Ww(a,b,c,d,e){var g=b.style.width;d=d?"right":"left";e?(b.style[d]="0",b.style.width=g+c):(b.style[d]="",b.style.width="");M(a,!e)};var Xw=null;function Yw(a,b){Ej.call(this);this.i=Xw;this.V=a;this.g=b;this.V.Za().O||(this.ka(this.V,"pageturn",this.o),this.ka(this.g,"dispose",this.Ha))}m(Yw,Ej);Yw.prototype.o=function(){var a=this.g.ma.g.Ld()[0]||new ep,b=this.g.ma.g.Ld()[1]||new ep,c=this.O,d=this.s,e=d?fo(d):-1,g=fo(a)||-1,h=fo(b)||-1,k=Math.max(c?fo(c):-1,e),l=Math.max(g,h);if(Math.abs(l-k)>this.g.Sm){if(0l-k&&(n=-1!=h?b:a,r=d);1=fo(e[0]||e[1])&&aemail or IM"));this.ha().appendChild(a);this.o=E("input");K(this.o,"100%","auto");this.ha().appendChild(this.o);this.N&&(a=C("DIV",{style:"font-size: 13px; padding-top: 7px;"},"Embed"),this.ha().appendChild(a),this.Ge=E("input"),K(this.Ge,"100%","auto"),this.ha().appendChild(this.Ge));a=this.V.Ga();b=(new R(window.location)).g;var c=new R(a.Ac()); c.g=b;this.o.value=c.toString();U(t(jx,this.o));this.N&&(a=new R(a.Ac()),S(a,"output","embed"),this.Ge.value=kx(a.toString()))};ix.prototype.Wl=function(){hx.prototype.Wl.call(this);this.g.ka(this.o,"click",t(jx,this.o));this.N&&this.g.ka(this.Ge,"click",t(jx,this.Ge))};function jx(a){a.select()}function kx(a){return Ce('',a)};function lx(a,b){W.call(this);this.Ea=a;this.j=b;this.i=E("div");a.s.i.appendChild(this.i);x(this.i,"sitb_result");jh(this.i,b.nd());K(this.i,b.Fa());a=E("div");x(a,"sitb-result-header");this.i.appendChild(a);this.s=E("div");x(this.s,"sitb-result-page-link");b=b.g.g;this.s.textContent=b?"Page "+b:"Page";a.appendChild(this.s);this.o=E("div");x(this.o,"sitb-result-content");this.i.appendChild(this.o);if(b=io(this.Ea.V.rb(),this.j.g.Pa())){a=this.Ea.V.tb().getQuery();var c=b.ob.snippetSrc;c&&a==Jo(c)? mx(this,c):(a=b.qf(),"entity_page"==T(a,"source")?S(a,"source","entity_page_gbs_snippet"):S(a,"source","gbs_snippet"),tp(b,a,q(this.O,this)))}else nx(this)}m(lx,lm);lx.prototype.N=function(a){this.Ea.vf(a.g)};lx.prototype.O=function(a){(a=a.ob.snippetSrc)?mx(this,a):nx(this)};function mx(a,b){rf(a.o);var c=E("IMG");c.src=b;ox(a);b=a.j.Fa().width-25;J(c,{width:b+"px"});a.o.appendChild(c)} function ox(a){x(a.i,"sitb-result-clickable");x(a.s,"sitb-result-link");var b=If(a.s);N(a.s,Si(b+" »"));tm(a.i,"link");Hf(a.i,!0);a.g.ka(a.i,"click",q(a.N,a,a.j));a.g.ka(a.i,"keydown",function(c){32!=c.keyCode&&13!=c.keyCode||a.N(a.j)})} function nx(a){rf(a.o);var b=E("div");x(b,"sitb-result-snippet");a.o.appendChild(b);J(b,{width:Math.floor(.75*a.j.Fa().width)+"px"});N(b,El(a.j.g.i));b=E("div");x(b,"sitb-result-explanatory-link");a.o.appendChild(b);var c=io(a.Ea.V.rb(),a.j.g.Pa());c&&c.xd()&&!yp(c,[4,8,16])&&c.o(2)?(ox(a),N(b,Si("We couldn't make an image for this result.  ")),a=E("span"),N(a,Si("Click to view the whole page.")),b.appendChild(a),x(a,"sitb-result-link")):(N(b,Si("No preview available for this page.  ")), a=E("a"),x(a,"sitb-result-buy-link"),N(a,Si("Buy this book.")),b.appendChild(a),b=new R(window.location.href),S(b,"sitesec","buy"),S(b,"source","gbs_snippet"),ok(b,"printsec"),a.href=b.toString())}lx.prototype.Na=function(){F(this.i);this.Ha()};function px(a){this.Ea=a}m(px,mp);px.prototype.render=function(a){return new lx(this.Ea,a)};function qx(a){this.g=a}m(qx,Hl);function rx(a,b){dv.call(this,1);this.Jb=a;this.N=b;this.Rj=this.zi=this.marginTop=20;a.yb&&(a.yb.forEach(q(this.o,this)),Ol(this))}m(rx,dv);rx.prototype.o=function(a){a=new qx(a);var b=Math.min(this.N-16,600);a.mb(new Ae(b,Math.round(124/600*b+42)));this.Sa(a)};function sx(a){var b=a.Fb();J(b,"overflow","hidden");var c=new zw(this,b);ov.call(this,c);this.V=a;rv(this,new yv(this));this.g.ka(this,"move",this.hc);var d=B("subscription-bar");d&&(this.Yk(d),U(function(){M(d,!1)},600));qv(this,tx(this));ux(b)}u(sx,ov);function ux(a){J(a,"overflow","auto");J(a,{overflowX:"auto",overflowY:"scroll"});df(a,{dir:"ltr"})}function tx(a){var b=new Ip;Jp(b,qx,new px(a));return b}sx.prototype.resize=function(){vx(this)}; function vx(a){var b=new rx(a.Jb,a.Fa().width);a.Xc(b);a.hc()}sx.prototype.vf=function(a,b){return this.Ba(a,b)};function wx(a){this.g=a||{}}wx.prototype.lc=function(){return this.g};wx.prototype.qc=function(a){var b=Yb(xx,function(c){return c==a});this.g.v=b};wx.prototype.getQuery=function(){return this.g.q};var xx={onepage:Aw,twopage:ex,thumbnail:Iw,snippet:sx};function yx(a,b){this.g=new vr;O(this.g,"navigate",q(this.s,this));this.V=a;this.i=b}yx.prototype.s=function(a){zx(this,a.s)};function zx(a,b){if(!(a.o&&""==b||a.j))if((z||qc)&&""==b)window.history.go(-2);else if(b){var c={},d=new gk(b);v(d.ae(),function(e){var g=d.get(e);g in Ax&&(g=Ax[g]);c[e]=g});b=new wx(c);a.V.qc(xx[b.g.v]||Aw);Vw(a.i,!!b.g.f);void 0!==b.getQuery()&&Io(a.V.tb(),b.getQuery())}} yx.prototype.Ta=function(a){this.o=!0;this.g.Ta(a);z&&(a=(new R(window.location)).g,zx(this,a));this.o=!1};yx.prototype.update=function(){var a=new wx;a.qc(this.V.O);a.g.q=this.V.tb().getQuery();a.g.f=this.i.yf();a=rk(a.lc()).toString();this.j=!0;this.g.ki(a);this.j=!1};var Ax={"true":!0,"false":!1};function Bx(){this.i=[]}u(Bx,qq);Da(Bx);function Cx(a,b){var c=a.i[b];if(!c){switch(b){case 0:c=a.Wa()+"-highlight";break;case 1:c=a.Wa()+"-checkbox";break;case 2:c=a.Wa()+"-content"}a.i[b]=c}return c}f=Bx.prototype;f.tg=function(){return"menuitem"};f.Oc=function(a){var b=a.g.Ra("DIV",tq(this,a).join(" "),Dx(this,a.Gc(),a.g));Ex(this,a,b,yq(a,8)||yq(a,16));return b};f.Ic=function(a){return a&&a.firstChild}; f.Sb=function(a,b){var c=xf(b),d=Cx(this,2);c&&vb(c,d)||b.appendChild(Dx(this,b.childNodes,a.g));vb(b,"goog-option")&&(a.ji(!0),this.ji(a,b,!0));return Bx.ta.Sb.call(this,a,b)};f.ug=function(a,b){var c=this.Ic(a),d=Fx(this,a)?c.firstChild:null;Bx.ta.ug.call(this,a,b);d&&!Fx(this,a)&&c.insertBefore(d,c.firstChild||null)};function Dx(a,b,c){a=Cx(a,2);return c.Ra("DIV",a,b)}f.Qp=function(a,b,c){a&&b&&Ex(this,a,b,c)};f.ji=function(a,b,c){a&&b&&Ex(this,a,b,c)}; function Fx(a,b){return(b=a.Ic(b))?(b=b.firstChild,a=Cx(a,1),!!b&&zf(b)&&vb(b,a)):!1}function Ex(a,b,c,d){wq(a,c,b.sf());xq(a,b,c);d!=Fx(a,c)&&(zb(c,"goog-option",d),c=a.Ic(c),d?(a=Cx(a,1),c.insertBefore(b.g.Ra("DIV",a),c.firstChild||null)):c.removeChild(c.firstChild))}f.Lh=function(a){switch(a){case 2:return Cx(this,0);case 16:case 8:return"goog-option-selected";default:return Bx.ta.Lh.call(this,a)}}; f.hj=function(a){var b=Cx(this,0);switch(a){case "goog-option-selected":return 16;case b:return 2;default:return Bx.ta.hj.call(this,a)}};f.Wa=function(){return"goog-menuitem"};function Gx(a,b,c,d){Bq.call(this,a,d||Bx.Eb(),c);this.xc(b)}u(Gx,Bq);f=Gx.prototype;f.Ab=function(){var a=this.Jl;return null!=a?a:this.Og()};f.xc=function(a){this.Jl=a};f.Zb=function(a,b){Gx.ta.Zb.call(this,a,b);switch(a){case 8:zq(this,16)&&!b&&this.Gf(!1);(a=this.ha())&&this.wd().Qp(this,a,b);break;case 16:(a=this.ha())&&this.wd().ji(this,a,b)}};f.Qp=function(a){this.Zb(8,a)};f.ji=function(a){this.Zb(16,a)}; f.Og=function(){var a=this.Gc();return Array.isArray(a)?(a=Ya(a,function(b){return zf(b)&&(vb(b,"goog-menuitem-accel")||vb(b,"goog-menuitem-mnemonic-separator"))?"":Kf(b)}).join(""),Fe(a)):Gx.ta.Og.call(this)};f.he=function(a){var b=this.getParent();if(b){var c=b.s;b.s=null;if(c&&"number"===typeof a.clientX&&xe(c,new A(a.clientX,a.clientY)))return}Gx.ta.he.call(this,a)};f.fe=function(a){return a.keyCode==this.Il&&this.Re(a)?!0:Gx.ta.fe.call(this,a)};f.ft=function(){return this.Il}; iq("goog-menuitem",function(){return new Gx(null)});Gx.prototype.sf=function(){return yq(this,16)?"menuitemcheckbox":yq(this,8)?"menuitemradio":Gx.ta.sf.call(this)};Gx.prototype.getParent=function(){return Bq.prototype.getParent.call(this)};Gx.prototype.Tg=function(){return Bq.prototype.Tg.call(this)};function Hx(a,b,c){Gx.call(this,a,b,c);this.ji(!0)}u(Hx,Gx);iq("goog-checkbox-menuitem",function(){return new Hx(null)});function Ix(a){Hx.call(this,Ie(a.hb()),a.getId());this.i=a}m(Ix,Hx);Ix.prototype.Nb=function(a){Hx.prototype.Nb.call(this,a);if(this.i.ze){var b=(a=1==this.i.ze)?"Public bookshelf":"Private bookshelf";a=C("IMG",{src:"/googlebooks/images/sharing_"+(a?"public":"private")+".gif",alt:b,title:b,style:"padding-top:2px;padding-left:8px;float:"+(Ul()?"left":"right")});a=C("DIV","goog-menuitem-accel",a,of(String(this.i.wa)));uf(this.Ib(),a,1)}};function Jx(a,b,c,d){hr.call(this,a,b,c||d);(c||d)&&this.o(65|(d?32:132))}u(Jx,hr);function Kx(){}u(Kx,qq);Da(Kx);Kx.prototype.Wa=function(){return"goog-menuheader"};function Lx(a,b,c){Bq.call(this,a,c||Kx.Eb(),b);this.Zb(1,!1);this.Zb(2,!1);this.Zb(4,!1);this.Zb(32,!1);this.Vd=1}u(Lx,Bq);iq("goog-menuheader",function(){return new Lx(null)});function Mx(){}u(Mx,qq);Da(Mx);Mx.prototype.Oc=function(a){return a.g.Ra("DIV",this.Wa())};Mx.prototype.Sb=function(a,b){b.id&&a.$g(b.id);if("HR"==b.tagName){var c=b;b=this.Oc(a);sf(b,c);F(c)}else x(b,this.Wa());return b};Mx.prototype.ug=function(){};Mx.prototype.Wa=function(){return"goog-menuseparator"};function Nx(a,b){Bq.call(this,null,a||Mx.Eb(),b);this.Zb(1,!1);this.Zb(2,!1);this.Zb(4,!1);this.Zb(32,!1);this.Vd=1}u(Nx,Bq);Nx.prototype.Ma=function(){Nx.ta.Ma.call(this);var a=this.ha();tm(a,"separator")};iq("goog-menuseparator",function(){return new Nx});function Ox(a){this.g=a||"menu"}u(Ox,lq);Da(Ox);f=Ox.prototype;f.dk=function(a){return"UL"==a.tagName||Ox.ta.dk.call(this,a)};f.Nh=function(a){return"HR"==a.tagName?new Nx:Ox.ta.Nh.call(this,a)};f.Zd=function(a,b){return Bf(a.ha(),b)};f.sg=function(){return"goog-menu"};f.ek=function(a){Ox.ta.ek.call(this,a);a=a.ha();um(a,"haspopup","true")};function Px(a){Nx.call(this,Mx.Eb(),a)}u(Px,Nx);iq("goog-menuseparator",function(){return new Nx});function Qx(a,b){Pq.call(this,"vertical",b||Ox.Eb(),a);Yq(this,!1)}u(Qx,Pq);f=Qx.prototype;f.Ck=!0;f.Zd=function(a){if(this.wd().Zd(this,a))return!0;for(var b=0,c=an(this);bDate.now()-a.Zo);g&&a.km?a.kb():a.dispatchEvent("beforeshow")&&(c="undefined"!=typeof c?c:8,e||(a.ha().style.visibility="hidden"),M(a.ha(),!0),b.Pc(a.ha(),c,d),e||(a.ha().style.visibility="visible"),a.Sd(-1),a.Da(!0))}f.kb=function(){this.isVisible()&&(this.Da(!1),this.isVisible()||(this.Zo=Date.now()))};f.Zu=function(){this.kb()}; f.nv=function(a){Vx(this,a)};f.ov=function(a){32!=a.keyCode&&13!=a.keyCode&&40!=a.keyCode||Vx(this,a);40==a.keyCode&&Uq(this)};function Vx(a,b){for(var c=a.i.ae(),d=0;dl.endOffset)l={startOffset:e.startOffset, hh:e.hh,endOffset:l.endOffset,Fh:l.Fh};e=Ua(d)}d.push(l);e=l}k.i&&fb(g,h)}}function wy(a,b){this.startOffset=a;this.hh=void 0;this.endOffset=a;this.Fh=void 0;this.i=!1;this.g=b};function xy(a,b){var c=void 0;c=void 0===c?Infinity:c;b=new uy(b);c=void 0===c?Infinity:c;var d=void 0===d?[]:d;var e=" ",g,h=qy(a);for(g=0;g=c&&(d.length=c);return d};function yy(a){var b=ry(a);a=zy();Array.prototype.forEach.call(a,function(c){Ay(b,c)})}function zy(){var a=[],b=ib($e("patent-text")),c=bf("patent-title");for(c&&b.push(c);c=b.pop();)3==c.nodeType?a.push(c):jb(b,c.childNodes);return a} function Ay(a,b){var c=Kf(b);a=xy(c,a);if(a.length){var d=[],e=0;a.forEach(function(g){d.push(c.substring(e,g.startOffset),Yd("span",{"class":"patent-text-highlight"},c.substring(g.startOffset,g.endOffset)));e=g.endOffset});d.push(c.substring(e));a=E("span");N(a,he(d));vf(a,b)}};function By(){Gx.call(this,"Turn off highlighting");var a=Zj("dq")||Zj("q");a&&yy(a);this.Pb=!0}m(By,Gx);By.prototype.Ma=function(){Gx.prototype.Ma.call(this);Y(this).ka(this,"action",this.i)};By.prototype.i=function(){this.Pb=!this.Pb;zb(window.document.body,"patent-highlight-disabled",!this.Pb);Hq(this,this.Pb?"Turn off highlighting":"Turn on highlighting")};function Cy(){}u(Cy,Mx);Da(Cy);Cy.prototype.Oc=function(a){return a.g.Ra("DIV",tq(this,a).join(" ")+" goog-inline-block","\u00a0")};Cy.prototype.Sb=function(a,b){b=Cy.ta.Sb.call(this,a,b);x(b,"goog-inline-block");return b};Cy.prototype.Wa=function(){return"goog-toolbar-separator"};function Dy(){}u(Dy,ht);Da(Dy);f=Dy.prototype;f.Oc=function(a){var b=tq(this,a);b=a.g.Ra("DIV","goog-inline-block "+b.join(" "),this.Vi(a.Gc(),a.g));this.oc(b,a.tf());return b};f.tg=function(){return"button"};f.Ic=function(a){return a&&a.firstChild&&a.firstChild.firstChild};f.Vi=function(a,b){return b.Ra("DIV","goog-inline-block "+(this.Wa()+"-outer-box"),b.Ra("DIV","goog-inline-block "+(this.Wa()+"-inner-box"),a))};f.Fi=function(a){return"DIV"==a.tagName}; f.Sb=function(a,b){Ey(b,!0);Ey(b,!1);a:{var c=a.g.ro(b);var d=this.Wa()+"-outer-box";if(c&&vb(c,d)&&(c=a.g.ro(c),d=this.Wa()+"-inner-box",c&&vb(c,d))){c=!0;break a}c=!1}c||b.appendChild(this.Vi(b.childNodes,a.g));wb(b,["goog-inline-block",this.Wa()]);return Dy.ta.Sb.call(this,a,b)};f.Wa=function(){return"goog-custom-button"}; function Ey(a,b){if(a)for(var c=b?a.firstChild:a.lastChild,d;c&&c.parentNode==a;){d=b?c.nextSibling:c.previousSibling;if(3==c.nodeType){var e=c.nodeValue;if(""==Db(e))a.removeChild(c);else{c.nodeValue=b?e.replace(/^[\s\xa0]+/,""):e.replace(/[\s\xa0]+$/,"");break}}else break;c=d}};function Fy(){}u(Fy,Dy);Da(Fy);Fy.prototype.Wa=function(){return"goog-toolbar-button"};function Gy(){this.g="toolbar"}u(Gy,lq);Da(Gy);Gy.prototype.Nh=function(a){return"HR"==a.tagName?new Nx(Cy.Eb()):Gy.ta.Nh.call(this,a)};Gy.prototype.sg=function(){return"goog-toolbar"};Gy.prototype.qo=function(){return"horizontal"};function Hy(a){Gy.call(this);this.i=a}u(Hy,Gy);var Iy={};Hy.prototype.sg=function(){return this.i||"ocean-chrome-toolbar"};function Jy(a){P.call(this);this.g=[];Ky(this,a)}u(Jy,P);f=Jy.prototype;f.hg=null;f.kk=null;function Ly(a,b){a.kk=b}function Ky(a,b){b&&(b.forEach(function(c){My(this,c,!1)},a),jb(a.g,b))}f.Sa=function(a){this.kf(a,this.g.length)};f.kf=function(a,b){a&&(My(this,a,!1),kb(this.g,b,0,a))};f.Kd=function(){return ib(this.g)};f.Ve=function(a){a!=this.hg&&(My(this,this.hg,!1),this.hg=a,My(this,a,!0));this.dispatchEvent("select")};f.va=function(){Jy.ta.va.call(this);delete this.g;this.hg=null}; function My(a,b,c){b&&("function"==typeof a.kk?a.kk(b,c):"function"==typeof b.Vl&&b.Vl(c))};function Ny(a,b,c){Pq.call(this,b,a||Gy.Eb(),c)}u(Ny,Pq);Ny.prototype.Ki=function(a){Ny.ta.Ki.call(this,a);this.ie||Uq(this)};function Oy(a,b,c){jt.call(this,a,b||Fy.Eb(),c)}u(Oy,jt);iq("goog-toolbar-button",function(){return new Oy(null)});function Py(a,b){Nx.call(this,a||Cy.Eb(),b)}u(Py,Nx);iq("goog-toolbar-separator",function(){return new Py});function Qy(a){a=a||"viewport-chrome-toolbar";a=Iy[a]||(Iy[a]=new Hy(a));Ny.call(this,a);this.Ba={};this.j=new Ej(this)}m(Qy,Ny);function Ry(a,b,c,d){b.Zb(16,!0);if(c){var e=a.Ba[c];e||(e=new Jy,Ly(e,function(g,h){g&&g.Gf(h)}),a.Ba[c]=e);e.Sa(b);b.Pf&=-17;O(b,"action",function(g){e.Ve(g.target)});d&&e.Ve(b)}else b.Zc(16,!!d)}function Sy(a,b){a.Ba.viewport&&a.Ba.viewport.Ve(b)}Qy.prototype.va=function(){Ny.prototype.va.call(this);this.j.Ha();Ub(this.Ba,function(a){a.Ha()})};function Ty(){}u(Ty,ht);Da(Ty);f=Ty.prototype;f.Oc=function(a){var b=tq(this,a);b=a.g.Ra("DIV","goog-inline-block "+b.join(" "),a.Gc());this.oc(b,a.tf());return b};f.tg=function(){return"button"};f.Fi=function(a){return"DIV"==a.tagName};f.Sb=function(a,b){x(b,"goog-inline-block");return Ty.ta.Sb.call(this,a,b)};f.Ab=function(){return""};f.Wa=function(){return"goog-flat-button"};iq("goog-flat-button",function(){return new jt(null,Ty.Eb())});function Uy(){}u(Uy,Dy);Da(Uy);Uy.prototype.Ic=function(a){return Uy.ta.Ic.call(this,a&&a.firstChild)};Uy.prototype.Sb=function(a,b){var c=Ye("*","goog-menu",b)[0];if(c){M(c,!1);Ve(c).body.appendChild(c);var d=new Qx;Zm(d,c);a.Ue(d)}return Uy.ta.Sb.call(this,a,b)};Uy.prototype.Vi=function(a,b){return Uy.ta.Vi.call(this,[b.Ra("DIV","goog-inline-block "+(this.Wa()+"-caption"),a),b.Ra("DIV","goog-inline-block "+(this.Wa()+"-dropdown"),"\u00a0")],b)};Uy.prototype.Wa=function(){return"goog-menu-button"};function Vy(){this.i=[]}u(Vy,Bx);Da(Vy);Vy.prototype.Oc=function(a){var b=Vy.ta.Oc.call(this,a);x(b,"goog-submenu");Wy(this,a,b);return b};Vy.prototype.Sb=function(a,b){b=Vy.ta.Sb.call(this,a,b);x(b,"goog-submenu");Wy(this,a,b);var c=Ye("DIV","goog-menu",b);if(c.length){var d=new Qx(a.g);c=c[0];M(c,!1);a.g.g.body.appendChild(c);Zm(d,c);a.Ue(d,!0)}return b};Vy.prototype.ug=function(a,b){var c=this.Ic(a),d=c&&c.lastChild;Vy.ta.ug.call(this,a,b);d&&c.lastChild!=d&&vb(d,"goog-submenu-arrow")&&c.appendChild(d)}; Vy.prototype.Gi=function(a){Vy.ta.Gi.call(this,a);var b=a.Ib(),c=Ze(a.g.g,"SPAN","goog-submenu-arrow",b)[0];Xy(a,c);c!=b.lastChild&&b.appendChild(c);a=a.ha();um(a,"haspopup","true")};function Wy(a,b,c){var d=b.g.Ra("SPAN");d.className="goog-submenu-arrow";Xy(b,d);a.Ic(c).appendChild(d)}function Xy(a,b){cn(a)?(x(b,"goog-submenu-arrow-rtl"),G(b,"\u25c4")):(xb(b,"goog-submenu-arrow-rtl"),G(b,"\u25ba"))};function Yy(a,b,c,d){Gx.call(this,a,b,c,d||Vy.Eb())}u(Yy,Gx);f=Yy.prototype;f.rh=null;f.bm=null;f.Hl=!1;f.tc=null;f.Yi=!1;f.Ma=function(){Yy.ta.Ma.call(this);Y(this).ka(this.getParent(),"hide",this.rp);this.tc&&Zy(this,this.tc,!0)};f.kc=function(){Y(this).Xa(this.getParent(),"hide",this.rp);this.tc&&(Zy(this,this.tc,!1),this.Yi||(this.tc.kc(),F(this.tc.ha())));Yy.ta.kc.call(this)};f.va=function(){this.tc&&!this.Yi&&this.tc.Ha();this.tc=null;Yy.ta.va.call(this)}; f.Wc=function(a){Yy.ta.Wc.call(this,a);a||(this.rh&&nl(this.rh),this.rh=U(this.Fe,218,this))};f.am=function(){var a=this.getParent();a&&Tq(a)==this&&($y(this,!0),az(this))};f.Fe=function(){var a=this.tc;a&&a.getParent()==this&&($y(this,!1),$m(a,function(b){"function"==typeof b.Fe&&b.Fe()}))};function bz(a){a.rh&&nl(a.rh);a.bm&&nl(a.bm)}f.Da=function(a,b){(a=Yy.ta.Da.call(this,a,b))&&!this.isVisible()&&this.Fe();return a}; function az(a){$m(a.getParent(),function(b){b!=this&&"function"==typeof b.Fe&&(b.Fe(),bz(b))},a)}f.Sc=function(a){var b=a.keyCode,c=cn(this)?37:39,d=cn(this)?39:37;if(!this.Hl){if(!this.isEnabled()||b!=c&&13!=b&&b!=this.Il)return!1;this.am();Uq(cz(this));bz(this)}else if(!cz(this).Sc(a))if(b==d)this.Fe();else return!1;a.preventDefault();return!0};f.av=function(){this.tc.getParent()==this&&(bz(this),this.Tg().Wc(this),az(this))};f.rp=function(a){a.target==this.Tg()&&(this.Fe(),bz(this))}; f.Le=function(a){this.isEnabled()&&(bz(this),this.bm=U(this.am,218,this));Yy.ta.Le.call(this,a)};f.Re=function(a){bz(this);if(yq(this,8)||yq(this,16))return Yy.ta.Re.call(this,a);this.am();return!0}; function $y(a,b){!b&&cz(a)&&cz(a).Sd(-1);a.dispatchEvent(Wm(64,b));var c=cz(a);b!=a.Hl&&zb(a.ha(),"goog-submenu-open",b);if(b!=c.isVisible()&&(b&&(c.$a||c.render(),c.Sd(-1)),c.Da(b),b)){c=new hr(a.ha(),12,!1);var d=cz(a),e=d.ha();d.isVisible()||(e.style.visibility="hidden",M(e,!0));c.Pc(e,8);d.isVisible()||(M(e,!1),e.style.visibility="visible")}a.Hl=b}function Zy(a,b,c){var d=Y(a);(c?d.ka:d.Xa).call(d,b,"enter",a.av)}f.Sa=function(a){cz(this).Oa(a,!0)};f.kf=function(a,b){cz(this).Eg(a,b,!0)}; f.Kd=function(){return cz(this).Kd()};function cz(a){a.tc?a.Yi&&a.tc.getParent()!=a&&a.tc.ke(a):a.Ue(new Qx(a.g),!0);a.tc.ha()||a.tc.Va();return a.tc}f.Ue=function(a,b){var c=this.tc;a!=c&&(c&&(this.Fe(),this.$a&&Zy(this,c,!1)),this.tc=a,this.Yi=!b,a&&(a.ke(this),a.Da(!1,!0),Rx(a,!1),Yq(a,!1),this.$a&&Zy(this,a,!0)))};f.Zd=function(a){return cz(this).Zd(a)};iq("goog-submenu",function(){return new Yy(null)});function dz(a,b,c,d,e){jt.call(this,a,c||Uy.Eb(),d);this.Zb(64,!0);this.s=new Jx(null,9);b&&this.Ue(b);this.Ya=new ll(500);this.Lb=e||Ox.Eb()}u(dz,jt);f=dz.prototype;f.Ma=function(){dz.ta.Ma.call(this);ez(this,!0);this.i&&fz(this,this.i,!0);um(this.ya,"haspopup",!!this.i)};f.kc=function(){dz.ta.kc.call(this);ez(this,!1);if(this.i){this.Qb(!1);this.i.kc();fz(this,this.i,!1);var a=this.i.ha();a&&F(a)}};f.va=function(){dz.ta.va.call(this);this.i&&(this.i.Ha(),delete this.i);delete this.nb;this.Ya.Ha()}; f.af=function(a){dz.ta.af.call(this,a);zq(this,4)&&(this.Qb(!this.qd(),a),this.i&&(a=this.qd(),this.i.ie=a))};f.he=function(a){dz.ta.he.call(this,a);this.i&&!zq(this,4)&&(this.i.ie=!1)};f.Re=function(){Jq(this,!1);return!0};f.ut=function(a){this.i&&this.i.isVisible()&&!this.Zd(a.target)&&this.Qb(!1)};f.Zd=function(a){return a&&Bf(this.ha(),a)||this.i&&this.i.Zd(a)||!1}; f.fe=function(a){if(32==a.keyCode){if(a.preventDefault(),"keyup"!=a.type)return!0}else if("key"!=a.type)return!1;if(this.i&&this.i.isVisible()){var b=13==a.keyCode||32==a.keyCode,c=this.i.Sc(a);return c&&this.i&&this.i.bc instanceof Yy||27!=a.keyCode&&!b?c:(this.Qb(!1),!0)}return 40==a.keyCode||38==a.keyCode||32==a.keyCode||13==a.keyCode?(this.Qb(!0,a),!0):!1};f.jl=function(){this.Qb(!1)};f.Hi=function(a){this.Qb(!1);dz.ta.Hi.call(this,a)}; function gz(a){a.i||a.Ue(new Qx(a.g,a.Lb));return a.i||null}f.Ue=function(a){var b=this.i;a!=b&&(b&&(this.Qb(!1),this.$a&&fz(this,b,!1),delete this.i),this.$a&&um(this.ya,"haspopup",!!a),a&&(this.i=a,a.ke(this),a.Da(!1),Rx(a,!1),this.$a&&fz(this,a,!0)));return b};f.Sa=function(a){gz(this).Oa(a,!0)};f.kf=function(a,b){gz(this).Eg(a,b,!0)};f.Da=function(a,b){(a=dz.ta.Da.call(this,a,b))&&!this.isVisible()&&this.Qb(!1);return a};f.Ta=function(a){dz.ta.Ta.call(this,a);this.isEnabled()||this.Qb(!1)}; f.Qb=function(a,b){dz.ta.Qb.call(this,a);if(this.i&&zq(this,64)==a){if(a)this.i.$a||this.i.render(),this.Ba=ph(this.ha()),this.ab=zh(this.ha()),hz(this),!b||40!=b.keyCode&&38!=b.keyCode?this.i.Sd(-1):Uq(this.i);else{Jq(this,!1);this.i.ie=!1;var c=this.ha();c&&(um(c,"activedescendant",""),um(c,"owns",""));null!=this.wa&&(this.wa=void 0,(c=this.i.ha())&&K(c,"",""))}this.i.Da(a,!1,b);this.Hd||(b=Y(this),c=a?b.ka:b.Xa,c.call(b,this.g.g,"mousedown",this.ut,!0),c.call(b,this.Ya,"tick",this.gr),a?this.Ya.start(): this.Ya.stop())}this.i&&this.i.ha()&&this.i.ya.removeAttribute("aria-hidden")};function hz(a){if(a.i.$a){var b=a.nb||a.ha(),c=a.s;a.s.g=b;b=a.i.ha();a.i.isVisible()||(b.style.visibility="hidden",M(b,!0));!a.wa&&a.s.N&&a.s.j&32&&(a.wa=L(b));c.Pc(b,c.i^1,null,a.wa);a.i.isVisible()||(M(b,!1),b.style.visibility="visible")}} f.gr=function(){var a=zh(this.ha()),b=ph(this.ha());var c=this.ab;(c=!(c==a||c&&a&&c.left==a.left&&c.width==a.width&&c.top==a.top&&c.height==a.height))||(c=this.Ba,c=!(c==b||c&&b&&c.top==b.top&&c.right==b.right&&c.bottom==b.bottom&&c.left==b.left));c&&(this.i.$a&&b&&this.Ba&&b.Bb()h;h++){for(var k=mf(d,"TR"),l=0;2>l;l++)k.appendChild(mf(d,"TD"));g.appendChild(k)}x(e,this.className+"-table-layout");d=e.rows[0].cells;g=qz(this);d[0].appendChild(g);g=rz(this);d[1].appendChild(g);g=C("DIV",this.className+"-link"); h=C("A",{target:"_blank"},"Help with devices & formats");k=new R(window.location.href);l=new R("/support/bin/answer.py?answer=1062949");k=T(k,"hl")?S(l,"hl",T(k,"hl")).toString():"/support/bin/answer.py?answer=1062949";pe(h,k);g.appendChild(h);d[1].appendChild(g);c.appendChild(e);d=this.s;(e=d.Gd)&&!d.dg&&d.nb&&(e=C("P",this.className+"-additional",C("A",{href:e},d.Rb?"Read the book for FREE":"Read the first chapter - FREE!")),c.appendChild(e));if(d.Ka||d.La)if(g=d.Xb,h=d.ab,g||h)e=C("P",this.className+ "-additional",of("Download ")),g&&(k=C("A",{href:g},"EPUB"),e.appendChild(k)),h&&(g&&e.appendChild(of(", ")),g=C("A",{href:h},"PDF"),e.appendChild(g)),e.appendChild(of(" - ")),d=d.Yb(),g=(new R(window.location.href)).o.split("/"),g=new R("/"+g[1]),Jt(g),S(g,"output","acs_help"),S(g,"id",d),d=C("A",{href:g.toString()},"read eReader instructions"),e.appendChild(d),c.appendChild(e);e=C("A",{target:"_blank"},"Learn more about books on Google Play");pe(e,"https://books.google.com/support/bin/topic.py?topic=28528"); this.j=C("DIV",this.className+"-footer",e);b=C("DIV",b,c,this.j);x(b,this.className+"-device-content");a.appendChild(b)}}; function qz(a){var b=C("UL",a.className+"-list"),c=C("H4",null,"Good for:");b.appendChild(c);var d=a.className+"-device-type";c=a.className+"-device-supported";var e=a.className+"-device-not-supported",g=a.className+"-device-unknown-supported",h=C("A",{"class":d,href:"/help/ebooks/webreader.html"},"Web"),k=C("A",{"class":d,href:"/help/ebooks/devices.html"},"Tablet / iPad"),l=C("A",{"class":d,href:"/help/ebooks/ereader.html"},"eReader"),n=C("A",{"class":d,href:"/help/ebooks/devices.html"},"Smartphone"), r=a.s.oj,w=a.s.qj,D=a.s.dg;d=new Ej(a);h=C("LI",null,h);D?d.ka(h,"mouseover",t(a.i,"The format of this book is currently unknown. We will update this when we receive the information from the publisher.")):(r||w)&&d.ka(h,"mouseover",t(a.i,"This eBook, like all Google eBooks, is formatted to be readable on the web."));d.ka(h,"mouseout",a.Ba);b.appendChild(h);k=C("LI",null,k);D?d.ka(k,"mouseover",t(a.i,"The format of this book is currently unknown. We will update this when we receive the information from the publisher.")): (r||w)&&d.ka(k,"mouseover",t(a.i,"This eBook, like all Google eBooks, is formatted to be readable on tablet devices like Android tablets and the iPad."));d.ka(k,"mouseout",a.Ba);b.appendChild(k);l=C("LI",null,l);d.ka(l,"mouseover",function(){D?this.i("The format of this book is currently unknown. We will update this when we receive the information from the publisher."):r?this.i("This Google eBook includes flowing text, so you can adjust the font to read comfortably on an eReader."):this.i("This Google eBook does not include flowing text, so you cannot adjust the font on an eReader.")}); d.ka(l,"mouseout",a.Ba);b.appendChild(l);n=C("LI",null,n);d.ka(n,"mouseover",function(){D?this.i("The format of this book is currently unknown. We will update this when we receive the information from the publisher."):r&&w?this.i("This eBook is good for smartphones like Android and iPhone / iPod touch."):r?this.i("This Google eBook includes flowing text so you can adjust the font to read comfortably on the small screen of a smartphone."):this.i("This eBook may be hard to read on smartphones like Android and iPhone / iPod touch.")}); d.ka(n,"mouseout",a.Ba);b.appendChild(n);D?(x(h,g),x(k,g),x(l,g),x(n,g)):r?(x(h,c),x(k,c),x(l,c),x(n,c)):(w?(x(h,c),x(k,c)):(x(h,e),x(k,e)),x(l,e),x(n,e));return b} function rz(a){var b=C("UL",a.className+"-list"),c=C("H4",null,"Features:");b.appendChild(c);var d=a.className+"-device-supported",e=a.className+"-device-not-supported",g=a.className+"-device-unknown-supported";c=C("A",{},"Flowing text");pe(c,"/support/bin/answer.py?answer=1062949");var h=C("A",{},"Scanned pages");pe(h,"/support/bin/answer.py?answer=1062949");var k=a.s.oj,l=a.s.qj,n=a.s.dg;n?(c=C("LI",g,c),d=C("LI",g,h)):(c=C("LI",k?d:e,c),d=C("LI",l?d:e,h));e=new Ej(a);e.ka(c,"mouseover",function(){n? this.i("The format of this book is currently unknown. We will update this when we receive the information from the publisher."):k?this.i("This eBook includes flowing text, so you can adjust the font size and style to read comfortably on any device."):this.i("This book does not include flowing text, so you cannot adjust the font. Instead, you see images of pages, with a fixed layout. This is good for larger screens, but not always ideal for eReaders and smartphones.")});e.ka(c,"mouseout",a.Ba);e.ka(d, "mouseover",function(){n?this.i("The format of this book is currently unknown. We will update this when we receive the information from the publisher."):l?this.i("This eBook includes scanned pages, so pages appear as they would in a printed book."):this.i("This eBook does not include scanned pages, which retain the format of a printed book. Instead, the text can be adjusted and it flows to fit any screen.")});e.ka(d,"mouseout",a.Ba);b.appendChild(c);b.appendChild(d);return b} pz.prototype.Ba=function(){rf(this.j);var a=C("A",{target:"_blank"},"Learn more about books on Google Play");pe(a,"https://books.google.com/support/bin/topic.py?topic=28528");this.j.appendChild(a)};pz.prototype.i=function(a){rf(this.j);"string"===typeof a?this.j.appendChild(of(a)):this.j.appendChild(a)};function sz(a,b){Z.call(this,b,void 0,3);this.s=a}m(sz,Z);sz.prototype.render=function(a){Z.prototype.render.call(this,a);x(this.ha(),"gb-get-book")};sz.prototype.Ma=function(){Z.prototype.Ma.call(this);var a=this.ha();this.i=new pz(a,this.s);this.i.render();a=B("menu_container");(a=bf("about_title",a))&&F(a)}; function tz(){var a=B("gb-buy-options-trigger");if(a&&a.parentNode&&a.parentNode.parentNode?!vb(a.parentNode.parentNode,"jfk-button"):1){a=B("gb-buy-options-trigger");var b=B("buy");if(a&&b){xb(b,"about_content");var c=C("SPAN","gb-buy-options-arrow","\u25bc");a.appendChild(c);x(b,"gb-buy-options-list");x(b,"unified-hovercard");cr(a,9,b,8);M(b,!1);O(document,"mousedown",t(uz,a,b))}}}function uz(a,b,c){a=Bf(a,c.target);c=Bf(b,c.target);var d=Bh(b);a||c||!d?a&&(M(b,!d),d||Ah(b,1)):M(b,!1)};function vz(a,b,c,d,e,g){function h(l){if(l){l.tabIndex=0;tm(l,k.wa);x(l,"goog-zippy-header");l&&k.oa.ka(l,"click",k.na);var n=k;l&&(dq(n.O,l),n.ma.ka(n.O,"key",n.ua))}}P.call(this);this.N=e||Te();this.i=this.N.ha(a)||null;this.o=this.N.ha(d||null);this.s="function"===typeof b?b:null;this.wa=g||"tab";this.j=this.s||!b?null:this.N.ha(b);this.g=1==c;void 0!==c||this.s||(this.o?this.g=Bh(this.o):this.i&&(this.g=vb(this.i,"goog-zippy-expanded")));this.ma=new Ej(this);this.O=new cq;this.oa=new Ej(this); var k=this;h(this.i);h(this.o);this.Te(this.g)}u(vz,P);vz.prototype.va=function(){vz.ta.va.call(this);Yi(this.ma);Yi(this.O);Yi(this.oa)};vz.prototype.Te=function(a){this.j?M(this.j,a):a&&this.s&&(this.j=this.s());this.j&&x(this.j,"goog-zippy-content");this.o?(M(this.i,!a),M(this.o,a)):this.i&&(zb(this.i,"goog-zippy-expanded",a),zb(this.i,"goog-zippy-collapsed",!a),um(this.i,"expanded",a));this.g=a;this.dispatchEvent(new wz("toggle",this,this.g))}; vz.prototype.ua=function(a){if(13==a.keyCode||32==a.keyCode)this.Te(!this.g),this.dispatchEvent(new wz("action",this,this.g,a)),a.preventDefault(),a.stopPropagation()};vz.prototype.na=function(a){this.Te(!this.g);this.dispatchEvent(new wz("action",this,this.g,a))};function wz(a,b){bj.call(this,a,b)}u(wz,bj);function xz(a,b,c,d){if(b.child_node&&0"+c.i.Jb.yb.length+"",""+Yp(c.i.Jb)+""))):N(c.j,Si("Showing "+(c.i.Jb.yb.length+" results in this book for ")+(Yp(c.i.Jb)+"")));Wz(c,!0);c=a.Jb;c!=b.Jb&&(b.Jb=c,vx(b));a=q(a.vf,a);b.Ba=a;b.Yc(new A(0, 0))} Rz.prototype.vf=function(a,b){vv=!0;var c=this.Vc.j;Wz(c,!1);c.N=Va(c.i.Jb.yb,a);c.o?(M(B("gb-mobile-search"),!0),M(B("gb-mobile-search-buttons"),!0),N(c.j,Si(Xz(c,c.N+1,c.i.Jb.yb.length,null)))):rc?N(c.j,Si(Xz(c,""+(c.N+1)+"",""+c.i.Jb.yb.length+"",""+Yp(c.i.Jb)+""))):N(c.j,Si("Result "+(c.N+1+" of ")+(c.i.Jb.yb.length+" in this book for ")+(Yp(c.i.Jb)+"")));c=this.Vc.V;a=io(c.rb(),a.Pa());if(!a)return null;var d=c.Ia();d instanceof Aw||d instanceof ex||(this.Vc.o== ex?c.qc(ex):c.qc(Aw));if(b)return c.Bd(b),null;c.Th(a);return a};Rz.prototype.va=function(){Yi(this.j);W.prototype.va.call(this)};function Yz(a){W.call(this);this.Ja=qp(a);this.o=rc&&a&&a.enableOgenEligibleMobileViewportSitb;this.na=this.s=null;this.o?(M(B("gb-mobile-search"),!0),M(B("gb-mobile-search-buttons"),!0)):(this.ma=E("DIV"),this.ua=new Rp(this.ma),this.ua.render(Zz),this.ua.Da(!0),a=this.ua.ha(),x(a,"search-results-bar"),x(this.ma,"search-results-bar-contents"));this.j=this.o?B("gb-mobile-search-results-summ"):E("SPAN");this.o||this.ma.appendChild(this.j);this.oa=this.o?B("gb-mobile-search-result-links"):E("SPAN"); this.o?($z(this,B("gb-mobile-search-result-prev"),q(this.lj,this,-1),"Previous"),$z(this,B("gb-mobile-search-result-next"),q(this.lj,this,1),"Next"),G(B("gb-mobile-search-result-viewall"),"View all"),$z(this,B("gb-mobile-search-result-viewall"),q(this.Mo,this),"View all"),G(B("gb-mobile-search-clear"),"Clear search"),$z(this,B("gb-mobile-search-clear"),q(this.ll,this),"Clear search")):(x(this.oa,"search-bar-result-links"),this.ma.appendChild(this.oa),a=E("SPAN"),N(a,Si("-  ")),x(a,"search-bar-link-spacer"), this.oa.appendChild(a),aA(this,this.oa,"‹ Previous",q(this.lj,this,-1),"Previous"),a=E("SPAN"),N(a,Si("  ")),x(a,"search-bar-link-spacer"),this.oa.appendChild(a),aA(this,this.oa,"Next ›",q(this.lj,this,1),"Next"),a=E("SPAN"),N(a,Si("  -  ")),x(a,"search-bar-link-spacer"),this.oa.appendChild(a),aA(this,this.oa,"View all",q(this.Mo,this)));this.O=this.o?B("gb-mobile-search-snippet-links"):E("SPAN");this.o?bA(this):(this.Ja?(this.wa=E("DIV"),x(this.wa,"search-bar-result-buttons"), this.ma.appendChild(this.wa),this.wa.appendChild(this.O),wb(this.O,["search-bar-sort-dropdown-button-container","search-bar-close-link"]),bA(this)):(this.Ba=E("SPAN"),this.Ca=E("SPAN"),this.ma.appendChild(this.O),a=E("SPAN"),N(a,Si("-  ")),x(a,"search-bar-link-spacer"),this.O.appendChild(a),this.O.appendChild(of("Order by: ")),this.O.appendChild(this.Ba),aA(this,this.Ba,"relevance",q(this.mj,this,"r"),"Order by relevance"),a=E("SPAN"),N(a,Si(" | pages")),this.Ba.appendChild(a), this.O.appendChild(this.Ca),a=E("SPAN"),N(a,Si("relevance | ")),this.Ca.appendChild(a),aA(this,this.Ca,"pages",q(this.mj,this,"n"),"Order by pages")),x(this.O,"search-bar-snippet-links"));if(!this.o){a=E("SPAN");x(a,"search-bar-close-link-container");this.Ja?this.wa.appendChild(a):this.ma.appendChild(a);this.g.ka(a,"click",this.ll);var b=aA(this,a,"Clear search",q(this.ll,this));x(b,"search-bar-close-link");b=E("IMG");b.src="/googlebooks/images/close_x.gif";x(b,"search-bar-close-img"); a.appendChild(b);Eh(this.ma,!0)}}var Zz,cA,dA;m(Yz,W);function eA(){Zz=B("search_bar")}function fA(){cA=B("toolbar_container")} function bA(a){a.s=C("A",{"class":"search-bar-sort-dropdown-link"});tm(a.s,"button");Hf(a.s,!0);um(a.s,"haspopup",!0);a.O.appendChild(a.s);var b=C("SPAN",{"class":"search-bar-sort-dropdown-text"});G(b,"Order by");a.na=C("SPAN",{"class":"search-bar-sort-dropdown-selected"});G(a.na,"relevance");b.appendChild(a.na);a.s.appendChild(b);b=ot("/googlebooks/images/material/arrow_drop_down_black_20dp.png");x(b[0],"search-bar-sort-dropdown-icon");um(b[0],"hidden",!0);a.s.appendChild(b[0]);b=new Sx;var c=new Gx("relevance"); c.ii("Order by relevance");b.Oa(c,!0);x(c.ha(),"search-bar-sort-dropdown-item");c=new Gx("pages");c.ii("Order by pages");b.Oa(c,!0);x(c.ha(),"search-bar-sort-dropdown-item");b.km=!0;b.render(document.body);Tx(b,a.s,13,12);a.g.ka(b,"action",a.Fo);a.g.ka(b,"keydown",function(d){32!=d.keyCode&&13!=d.keyCode||q(a.Fo,a)})}function Wz(a,b){M(cA,!b);M(a.O,b);M(a.oa,!b&&1=d&&(a.N=0);0>a.N&&(a.N=d-1);a.N!=b&&(a.i.vf(a.i.Jb.yb[a.N])||hA(a,b,c))}f.mj=function(a){var b=this.i.Vc;b&&b.update(a)};f.Mo=function(){Tz(this.i)}; f.fu=function(a){var b=this.i.Vc;b&&(a=Ie(a),Io(b.V.tb(),a),b.N.xc(a),b.s&&b.s.update())};f.Fo=function(a){if((a=a.target.Gc())&&this.na)switch(a){case "pages":this.mj("n");G(this.na,"pages");break;case "relevance":this.mj("r"),G(this.na,"relevance")}};function Uz(a,b){a.s&&(zb(a.s,"search-bar-sort-dropdown-disabled",!b),um(a.s,"disabled",!b));var c="n"==a.i.fm;b&&!c&&G(a.na,"relevance")}function Vz(a,b,c){return a.o?b+" results":b+" results for "+c} function Xz(a,b,c,d){return a.o?b+" of "+c:"Result "+b+" of "+c+" for "+d};function iA(a,b,c,d){W.call(this);this.V=a;this.N=b;this.s=c;this.O=d;this.g.ka(a.tb(),"change",q(this.update,this,"r",null))}m(iA,W); iA.prototype.update=function(a,b,c){this.i?(this.i.Ha(),this.i=null):(this.V.O&&(this.o=this.V.O),this.j=new Yz(this.O));var d=this.V.tb().getQuery();b&&!b.search_query_escaped&&0a.i){var c=a.g.scrollTop,d=a.g.scrollLeft;a.g.value=a.g.value.substring(0,a.i);b=a.i;a.g.scrollTop=c;a.g.scrollLeft=d}a.o&&G(a.o,String(1==a.s?b:a.i-b))}tA.prototype.va=function(){tA.ta.va.call(this);delete this.g;this.j.Ha();this.j=null};function vA(a,b,c,d,e){pA.call(this,a,b,null,!0);this.ab=c;this.Rb=d;this.Ca=e}m(vA,pA); vA.prototype.Va=function(){pA.prototype.Va.call(this);this.s=wA(this,"Name","input");this.nb=wA(this,"Description (optional)","textarea");var a=this.Ib(),b=C("DIV",{"class":"ccd-label"}),c=E("span");c.textContent="Visibility";b.appendChild(c);a.appendChild(b);a=C("SPAN",{className:"ccd-mode-indicator"});c=C("IMG",{src:"/googlebooks/images/sharing_public.gif",style:"vertical-align:-2px;padding:0 2px"});var d=E("span");d.textContent="Public";a.appendChild(c);a.appendChild(d); b.appendChild(a);c=C("SPAN",{className:"ccd-mode-indicator"});d=C("IMG",{src:"/googlebooks/images/sharing_private.gif",style:"vertical-align:-2px;"});var e=E("span");e.textContent="Private";c.appendChild(d);c.appendChild(e);b.appendChild(c);d=C("SPAN",{"class":"ccd-mode-link"});d.textContent="Make public";b.appendChild(d);O(d,"click",q(this.Ka,this,!0));e=C("SPAN",{"class":"ccd-mode-link"});e.textContent="Make private";b.appendChild(e);O(e,"click",q(this.Ka,this,!1));this.ye=[a,e];this.xe=[c,d];null!= this.Ca&&(df(this.Ca,{"class":"ccd-mode-link"}),b.appendChild(this.Ca));this.Ka(!0);this.na=C("DIV",{"class":"ccd-error"});this.Ib().appendChild(this.na);this.Vb=C("P","ccd-footnote","Please note that the contents and title of Public bookshelves can be viewed and shared by others.");this.Ib().appendChild(this.Vb);this.i&&xA(this);Yo.IsZipitFolderCollectionEnabled||(b=this.j,a=Dn(b,"ok"),J(a,"fontWeight","bold"),x(a,"gb-button"),x(Dn(b,"cancel"),"gb-button"))}; function xA(a){a.s.value=Ie(a.i.hb());a.s.disabled=a.i.O;a.nb.value=Ie(a.i.Pg());a.Ka(1==a.i.ze);a.s.disabled&&J(a.s,"background","#f2f2f2")}function wA(a,b,c){var d=a.Ib();a=C("DIV",{"class":"gb-bookshelf-dialog-container"});d.appendChild(a);d=C("DIV",{"class":"ccd-label"});N(d,mi(b));a.appendChild(d);b=C(c,{"class":"ccd-input"});"input"==c?(df(b,{type:"text"}),b.setAttribute("maxlength",100)):"textarea"==c&&(df(b,{rows:6,cols:50}),new tA(b,E("span"),500));a.appendChild(b);return b} vA.prototype.Ka=function(a){this.we=a;v(this.ye,function(b){M(b,a)});v(this.xe,function(b){M(b,!a)})}; vA.prototype.Ua=function(a){var b=this.s.value;if("cancel"==a.key)return!0;if(Cb(b))return this.na.textContent="Please enter a title for this bookshelf.",!1;if(this.Rb&&!this.Rb(b))return this.na.textContent="Another bookshelf already has that title. Please enter a different title.",!1;a=this.i||new Rt;a.Ec=b;a.o=this.nb.value;a.ze=this.we?1:2;if(this.i){b=this.ab;var c=new R(b.eq);S(c,"as_coll",a.getId());bu(c,a,q(b.N,b))}else b=this.ab,bu(b.o,a,q(b.s,b,!0));return!0}; vA.prototype.va=function(){delete this.ab;delete this.Ca;delete this.i;delete this.na;delete this.Vb;delete this.s;delete this.nb;delete this.Rb;pA.prototype.va.call(this)};function yA(a,b,c,d,e){W.call(this);this.O=a;this.j=b;this.N=c;this.i=d;this.O&&(this.o=Ya(this.O.childNodes,zA),this.i&&jb(this.o,Ya(this.i.childNodes,zA)));this.s=e;U(q(this.pr,this))}u(yA,W);f=yA.prototype;f.pr=function(){this.j&&this.i&&this.g.ka(this.j,"click",this.cq);this.N&&this.g.ka(this.N,"click",this.st);this.g.ka(this.s,"add",this.Bs)}; function zA(a){var b=Ye("SPAN","sidebar-collection-title",a)[0];b||(b=Ye("SPAN","hp-collection-title",a)[0]);if(!b)return"";a=Db(Ee(If(b)));return Db(a.split("(")[0])}f.st=function(){var a=new vA("Create new bookshelf","Create bookshelf",this.s,q(this.Hu,this));a.render();a.Da(!0)};f.Hu=function(a){var b=Db(Ee(a)).toLowerCase();return!Za(this.o,function(c){return c.toLowerCase()==b})}; f.Bs=function(a){a=a.shelf;var b=Db(Ee(a.hb())),c=1==a.ze;this.o.push(b);var d=new R("/books");Jt(d);S(d,"as_coll",a.getId());S(d,"source","gbs_lp_bookshelf_list");if(Yo.IsBooksUnifiedLeftNavEnabled){a=C("LI",{"class":"left-nav-shelf-item"});var e=C("A",{"class":"sidebar-link"});pe(e,d.toString());d=C("SPAN");x(d,"sidebar-collection-title");N(d,El(b+" (0)"));e.appendChild(d);a.appendChild(e);c=B("hidden-my-library-expanded");sf(a,c);oA(!0,"my-library")}else a=E("DIV"),e=C("A",{"class":"hp-bookshelf-link", style:"line-height:19px"}),pe(e,d.toString()),d=C("SPAN",{"class":"hp-collection-title"}),N(d,El(b)),e.appendChild(d),a.appendChild(e),b=c?"Public bookshelf":"Private bookshelf",c=C("IMG",{"class":"hp-bookshelf-access",src:"/googlebooks/images/sharing_"+(c?"public":"private")+".gif",title:b,alt:b,width:14,height:14}),a.appendChild(c),c=C("DIV",{style:"clear:both"}),a.appendChild(c),tf(a,B("csStart"))}; f.cq=function(a){a.preventDefault();a=!Bh(this.i);M(this.i,a);a?(cr(this.j,9,this.i,8),200