Search the world's most comprehensive index of full-text books.

My library

PublishersAboutPrivacyTermsHelp

");return(new DOMParser).parseFromString(Td(a),"text/html").body.children[0]} function Ng(a,b){if(!a)return Dd;var c=document.createElement("div").style;Qg(a).forEach(function(d){var e=dc&&d in Kg?d:d.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");Bb(e,"--")||Bb(e,"var")||(d=Gg(a,d),d=fg(e,d,b),null!=d&&Hg(c,e,d))});return new zd(c.cssText||"",yd)} function Rg(a){var b=Array.from(yg(ng,a,"getElementsByTagName",["STYLE"])),c=sb(b,function(h){return jb(Cg(h).cssRules)});c=Mg(c);for(var d=[],e=0;e=a.left&&b.right=a.top&&b.bottom=a.left&&b.x=a.top&&b.ya.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(ca.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=Se(a),d=c.g.body,e=c.g.documentElement,g=hf(c.g);a=oh(a);)if(!(z&&0==a.clientWidth||dc&&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= ef(Of(c));b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,g+c.height);return 0b.top&&b.right>b.left?b:null} function rh(a,b){b=b||hf(document);var c=b||hf(document);var d=qh(a),e=qh(c),g=sh(c);if(c==hf(document)){var h=d.x-c.scrollLeft;d=d.y-c.scrollTop;z&&!vc(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=Ue(a),c=new A(0,0),d=mh(b);if(a==d)return c;a=nh(a);b=gf(Se(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 J(a,b,c){if(b instanceof ze)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=dc&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=nh(a),new ze(a.right-a.left,a.bottom-a.top)):new ze(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=cc?"MozUserSelect":dc||ac?"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=ff(Se(Ue(a)).g);if(!z||uc("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=Ue(a),c=z&&a.currentStyle;if(c&&ff(Se(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 ze(b,a);c=new ze(a.offsetWidth,a.offsetHeight);b=Hh(a);a=sh(a);return new ze(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=ff(Se(Ue(a)).g);if(!z||uc("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;cc?a.MozBoxSizing=c:dc?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&&!vc(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||vc(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=Nc(a.g);this.N=Nc(a.ua);this.j=Nc(a.wa);this.oa=a.na;a.Ca.forEach(function(b){if(!Bb(b,"data-"))throw new Ta('Only "data-" attributes allowed, got: %s.',[b]);if(Bb(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(!Pb(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.o=a.Qa;this.s=null;this.O=a.oa}u(Zh,Vh);function ci(a){return function(b,c){return(b=a(Fb(b),c))&&"about:invalid#zClosurez"!=pd(b)?pd(b):null}}function $h(){this.g={};v([Oh,Ph],function(a){Hc(a).forEach(function(b){this.g[b]=bi},this)},this);this.i={};this.Ca=[];this.Ba=[];this.ua=Nc(Wh);this.wa=Nc(Xh);this.na=!1;this.ma=vd;this.O=this.s=this.o=this.j=Bc;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.o))},a);ei(a.g,a.i,"A TARGET",t(hi,["_blank","_self"]));ei(a.g,a.i,"* CLASS",t(ii,a.s));ei(a.g,a.i,"* ID",t(ji,a.s));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 Fb(a)}function hi(a,b){b=Fb(b);return db(a,b.toLowerCase())?b:null}function fi(a){return(a=Fb(a))&&"#"==a.charAt(0)?a:null}function gi(a,b,c){return a(Fb(b),c)}function ii(a,b,c){b=b.split(/(?:\s+)/);for(var d=[],e=0;e"+b+""),Rg(b),b=b.innerHTML);b=le(b);var c=document.createElement("template");if(Uh&&"content"in c)ne(c,b),c=c.content;else{var d=document.implementation.createHTMLDocument("x");c=d.body;ne(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 q=e;var w=g;var D=w.name;if(Bb(D,"data-sanitizer-"))w=null;else{var H=Dg(q); w=w.value;var K={tagName:Fb(H).toLowerCase(),attributeName:Fb(D).toLowerCase()},V={Qk:void 0};"style"==K.attributeName&&(V.Qk=Bg(q));q=ki(H,D);q in this.g?(D=this.g[q],w=D(w,K,V)):(D=ki(null,D),D in this.g?(D=this.g[D],w=D(w,K,V)):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 qf(d)}c.clear&&c.clear()}else a=E("SPAN");0")+1,a.lastIndexOf(""))}else a="";return le(a)};function li(a,b){var c=b.data;(b=Fg(b))&&"style"==Dg(b).toLowerCase()&&!("STYLE"in a.N)&&"STYLE"in a.j&&(c=Od(Og(c,a.s,r(function(d,e){return this.ma(d,{Os:e})},a))));return document.createTextNode(c)};function mi(a){return(new Zh(new $h)).i(a)};/* SPDX-License-Identifier: Apache-2.0 */ var ni={};function oi(a){return{valueOf:a}.valueOf()};function pi(){var a="undefined"!==typeof window?window.trustedTypes:void 0;return null!==a&&void 0!==a?a:null}var qi;function ri(){var a,b;if(void 0===qi)try{qi=null!==(b=null===(a=pi())||void 0===a?void 0:a.createPolicy("google#safe",{createHTML:function(c){return c},createScript:function(c){return c},createScriptURL:function(c){return c}}))&&void 0!==b?b:null}catch(c){qi=null}return qi};function si(){}function ti(a){this.g=a}m(ti,si);ti.prototype.toString=function(){return this.g.toString()};function ui(a){var b,c=null===(b=ri())||void 0===b?void 0:b.createHTML(a);return new ti(null!==c&&void 0!==c?c:a,ni)}function vi(a){if(a instanceof ti)return a.g;throw Error("");};function wi(a,b){a="undefined"===typeof window?null:window[a];if(null===a||void 0===a||!a.prototype.hasOwnProperty(b))return null;var c=Object.getOwnPropertyDescriptor(a.prototype,b);return function(d){return c.get.apply(d)}} var xi=oi(function(){var a;return null!==(a=wi("Element","attributes"))&&void 0!==a?a:wi("Node","attributes")}),yi=oi(function(){return wi("Node","nodeName")}),zi=oi(function(){return wi("Node","nodeType")}),Ai=oi(function(){return wi("Node","childNodes")}),Bi=oi(function(){return wi("Node","firstChild")}),Ci=oi(function(){return wi("Attr","name")}),Di=oi(function(){return wi("Attr","value")});function Ei(){}function Fi(a){this.g=a}m(Fi,Ei);Fi.prototype.toString=function(){return this.g.toString()};function Gi(){}function Hi(a){this.g=a}m(Hi,Gi);Hi.prototype.toString=function(){return this.g};var Ii=oi(function(){return new Hi("about:invalid#zTSz",ni)});function Ji(a){if(a instanceof Hi)return a.g;throw Error("");};function Ki(a){try{for(var b=ui(""+a),c=(new DOMParser).parseFromString(vi(b),"text/html"),d=c.createDocumentFragment();Ai(c.body).length;)d.appendChild(Bi(c.body));return d}catch(e){return a=ui(a),b=document.createElement("template"),b.innerHTML=vi(a),b.content}};var Li=new function(){var a=new Map([["A",new Map([["href",{Lc:2}]])],["AREA",new Map([["href",{Lc:2}]])],["LINK",new Map([["href",{Lc:2,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{Lc:2}]])],["IMG",new Map([["src",{Lc:2}]])],["VIDEO",new Map([["src",{Lc:2}]])],["AUDIO",new Map([["src",{Lc:2}]])]]),b=new Set("title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked color cols colspan controls datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden ismap label lang loop max maxlength media minlength min multiple muted nonce open placeholder preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type valign value width wrap itemscope itemtype itemid itemprop itemref".split(" ")), c=new Map([["dir",{Lc:3,conditions:new Map([["dir",new Set(["auto","ltr","rtl"])]])}],["async",{Lc:3,conditions:new Map([["async",new Set(["async"])]])}],["cite",{Lc:2}],["loading",{Lc:3,conditions:new Map([["loading",new Set(["eager","lazy"])]])}],["poster",{Lc:2}],["target",{Lc:3,conditions:new Map([["target",new Set(["_self","_blank"])]])}]]);this.i=new Set("ARTICLE SECTION NAV ASIDE H1 H2 H3 H4 H5 H6 HEADER FOOTER ADDRESS P HR PRE BLOCKQUOTE OL UL LH LI DL DT DD FIGURE FIGCAPTION MAIN DIV EM STRONG SMALL S CITE Q DFN ABBR RUBY RB RT RTC RP DATA TIME CODE VAR SAMP KBD SUB SUP I B U MARK BDI BDO SPAN BR WBR INS DEL PICTURE PARAM TRACK MAP TABLE CAPTION COLGROUP COL TBODY THEAD TFOOT TR TD TH SELECT DATALIST OPTGROUP OPTION OUTPUT PROGRESS METER FIELDSET LEGEND DETAILS SUMMARY MENU DIALOG SLOT CANVAS FONT CENTER".split(" ")); this.g=a;this.j=b;this.s=c};function Mi(a){this.yl=a}function Ni(a){return new Mi(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})}var Oi=[Ni("data"),Ni("http"),Ni("https"),Ni("mailto"),Ni("ftp"),new Mi(function(a){return/^[^:]*([/?#]|$)/.test(a)})];function Pi(a){var b=void 0===b?Oi:b;a:{b=void 0===b?Oi:b;for(var c=0;c")+1,b.lastIndexOf(""));return ui(b)} function Vi(a,b){var c=yi(b),d=document.createElement(c);if(b=xi(b))for(var e=ka(b),g=e.next();!g.done;g=e.next()){var h=g.value;g=Ci(h);h=Di(h);var k=a.j,l=k.g.get(c);k=(null===l||void 0===l?0:l.has(g))?l.get(g):k.j.has(g)?{Lc:1}:k.s.get(g)||{Lc:0};a:{l=void 0;var n=k.conditions;if(n){n=ka(n);for(var q=n.next();!q.done;q=n.next()){var w=ka(q.value);q=w.next().value;w=w.next().value;if((q=null===(l=b.getNamedItem(q))||void 0===l?void 0:l.value)&&!w.has(q)){l=!1;break a}}}l=!0}if(l)switch(k.Lc){case 1:d.setAttribute(g, h);break;case 2:k=Ji(Pi(h));k!==h&&Wi(a);d.setAttribute(g,k);break;case 3:d.setAttribute(g,h.toLowerCase());break;case 0:Wi(a);break;default:throw Error("Unhandled AttributePolicyAction case");}else Wi(a)}return d} function Ui(a,b){if(zi(b)===Node.TEXT_NODE)return NodeFilter.FILTER_ACCEPT;if(zi(b)!==Node.ELEMENT_NODE)return Wi(a),NodeFilter.FILTER_REJECT;b=yi(b);if(null===b)return Wi(a),NodeFilter.FILTER_REJECT;var c=a.j;if(c.i.has(b)||c.g.has(b))return NodeFilter.FILTER_ACCEPT;if("DF"===b)return NodeFilter.FILTER_SKIP;Wi(a);return NodeFilter.FILTER_REJECT}function Wi(a){0===a.g.length&&a.g.push("")}var Ti=oi(function(){return new Qi});function Xi(a){return a instanceof si?vi(a):Td(a)}function Yi(a){return a instanceof Gi?Ji(a):pd(a)};function N(a,b){if(null!==a&&void 0!==a.tagName){if("script"===a.tagName.toLowerCase())throw Error("Use setTextContent with a SafeScript.");if("style"===a.tagName.toLowerCase())throw Error("Use setTextContent with a SafeStyleSheet.");}a.innerHTML=Xi(b)};function Zi(a){var b,c=(a.ownerDocument&&a.ownerDocument.defaultView||window).document,d=null===(b=c.querySelector)||void 0===b?void 0:b.call(c,"script[nonce]");(b=d?d.nonce||d.getAttribute("nonce")||"":"")&&a.setAttribute("nonce",b)};function $i(a){a.write.apply(a,ma(ua.apply(1,arguments).map(Xi)))};function aj(a){a&&"function"==typeof a.Ha&&a.Ha()};function bj(){this.Hd=this.Hd;this.Qa=this.Qa}bj.prototype.Hd=!1;bj.prototype.Ha=function(){this.Hd||(this.Hd=!0,this.va())};function cj(a,b){b=t(aj,b);a.Hd?b():(a.Qa||(a.Qa=[]),a.Qa.push(b))}bj.prototype.va=function(){if(this.Qa)for(;this.Qa.length;)this.Qa.shift()()};function dj(a){this.id=a}dj.prototype.toString=function(){return this.id};function ej(a,b){this.type=a instanceof dj?String(a):a;this.currentTarget=this.target=b;this.defaultPrevented=this.g=!1}ej.prototype.stopPropagation=function(){this.g=!0};ej.prototype.preventDefault=function(){this.defaultPrevented=!0};function fj(a){a.preventDefault()};var gj=function(){if(!p.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{p.addEventListener("test",Da,b),p.removeEventListener("test",Da,b)}catch(c){}return a}();var hj={Ag:"mousedown",Bg:"mouseup",zh:"mousecancel",ww:"mousemove",yw:"mouseover",xw:"mouseout",tw:"mouseenter",uw:"mouseleave"};function ij(a,b){ej.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.Pl=!1;this.pointerId=0;this.pointerType="";this.Ob=null;a&&this.ul(a,b)}u(ij,ej);var jj={2:"touch",3:"pen",4:"mouse"}; ij.prototype.ul=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;(b=a.relatedTarget)?cc&&(Yb(b,"nodeName")||(b=null)):"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.offsetX=dc||void 0!==a.offsetX? a.offsetX:a.layerX,this.offsetY=dc||void 0!==a.offsetY?a.offsetY:a.layerY,this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.Pl=fc?a.metaKey:a.ctrlKey;this.pointerId=a.pointerId||0;this.pointerType= "string"===typeof a.pointerType?a.pointerType:jj[a.pointerType]||"";this.state=a.state;this.Ob=a;a.defaultPrevented&&ij.ta.preventDefault.call(this)};function kj(a){return 0==a.Ob.button&&!(fc&&a.ctrlKey)}ij.prototype.stopPropagation=function(){ij.ta.stopPropagation.call(this);this.Ob.stopPropagation?this.Ob.stopPropagation():this.Ob.cancelBubble=!0};ij.prototype.preventDefault=function(){ij.ta.preventDefault.call(this);var a=this.Ob;a.preventDefault?a.preventDefault():a.returnValue=!1};var lj="closure_listenable_"+(1E6*Math.random()|0);function mj(a){return!(!a||!a[lj])};var nj=0;function oj(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.mj=e;this.key=++nj;this.Yg=this.Ti=!1}function pj(a){a.Yg=!0;a.listener=null;a.proxy=null;a.src=null;a.mj=null};function qj(a){this.src=a;this.g={};this.i=0}f=qj.prototype;f.add=function(a,b,c,d,e){var g=a.toString();a=this.g[g];a||(a=this.g[g]=[],this.i++);var h=rj(a,b,d,e);-1>>0);function xj(a){if("function"===typeof a)return a;a[Gj]||(a[Gj]=function(b){return a.handleEvent(b)});return a[Gj]};function Hj(a){bj.call(this);this.N=a;this.j={}}u(Hj,bj);var Ij=[];f=Hj.prototype;f.ka=function(a,b,c,d){return Jj(this,a,b,c,d)};function Kj(a,b,c,d,e){Jj(a,b,c,d,!1,e)}function Jj(a,b,c,d,e,g){Array.isArray(c)||(c&&(Ij[0]=c.toString()),c=Ij);for(var h=0;h=a.keyCode)return!1;if(Qj(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!cc;default:return 166>a.keyCode||183=a||96=a||65=a||(dc||ac)&&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 cc;default:return!1}}function Sj(a){if(cc)a=Tj(a);else if(fc&&dc)switch(a){case 93:a=91}return a} function Tj(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 Uj(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 ak(a,b,c,d){for(var e=c.length;0d)return null;var e=b.indexOf("&",d);if(0>e||e>c)e=c;d+=a.length+1;return Fe(b.substr(d,e-d))}var dk=/[?&]($|#)/;function Q(a,b){this.i=this.O=this.o="";this.ma=null;this.g=this.s="";this.N=!1;var c;a instanceof Q?(this.N=void 0!==b?b:a.N,ek(this,a.o),this.O=a.O,this.i=a.i,fk(this,a.ma),gk(this,a.s),hk(this,a.j.clone()),this.g=a.g):a&&(c=String(a).match(Xj))?(this.N=!!b,ek(this,c[1]||"",!0),this.O=ik(c[2]||""),this.i=ik(c[3]||"",!0),fk(this,c[4]),gk(this,c[5]||"",!0),hk(this,c[6]||"",!0),this.g=ik(c[7]||"")):(this.N=!!b,this.j=new jk(null,this.N))} Q.prototype.toString=function(){var a=[],b=this.o;b&&a.push(kk(b,lk,!0),":");var c=this.i;if(c||"file"==b)a.push("//"),(b=this.O)&&a.push(kk(b,lk,!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.s)this.i&&"/"!=c.charAt(0)&&a.push("/"),a.push(kk(c,"/"==c.charAt(0)?mk:nk,!0));(c=this.j.toString())&&a.push("?",c);(c=this.g)&&a.push("#",kk(c,ok));return a.join("")}; Q.prototype.resolve=function(a){var b=this.clone(),c=!!a.o;c?ek(b,a.o):c=!!a.O;c?b.O=a.O:c=!!a.i;c?b.i=a.i:c=null!=a.ma;var d=a.s;if(c)fk(b,a.ma);else if(c=!!a.s){if("/"!=d.charAt(0))if(this.i&&!this.s)d="/"+d;else{var e=b.s.lastIndexOf("/");-1!=e&&(d=b.s.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(Pb(e,"./")||Pb(e,"/.")){d=Bb(e,"/");e=e.split("/");for(var g=[],h=0;hb)throw Error("Bad port number "+b);a.ma=b}else a.ma=null}function gk(a,b,c){a.s=c?ik(b,!0):b}function hk(a,b,c){b instanceof jk?(a.j=b,pk(a.j,a.N)):(c||(b=kk(b,qk)),a.j=new jk(b,a.N))} Q.prototype.getQuery=function(){return this.j.toString()};function R(a,b,c){a.j.set(b,c);return a}function S(a,b){return a.j.get(b)}function rk(a,b){a.j.remove(b)}function ik(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}function kk(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,sk),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function sk(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)} var lk=/[#\/\?@]/g,nk=/[#\?:]/g,mk=/[#\?]/g,qk=/[#\?@]/g,ok=/#/g;function jk(a,b){this.i=this.g=null;this.j=a||null;this.s=!!b}function tk(a){a.g||(a.g=new Map,a.i=0,a.j&&Yj(a.j,function(b,c){a.add(Fe(b),c)}))}function uk(a){var b=Vj(a);if("undefined"==typeof b)throw Error("Keys are undefined");var c=new jk(null,void 0);a=Uj(a);for(var d=0;da.i&&(a.i++,b.next=a.g,a.g=b)};function Ik(a,b){var c=a;b&&(c=r(a,b));c=Jk(c);"function"!==typeof p.setImmediate||p.Window&&p.Window.prototype&&!y("Edge")&&p.Window.prototype.setImmediate==p.setImmediate?(Kk||(Kk=Lk()),Kk(c)):p.setImmediate(c)}var Kk; function Lk(){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=r(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 Jk=Cc;function Mk(a){p.setTimeout(function(){throw a;},0)};function Nk(){this.i=this.g=null}Nk.prototype.add=function(a,b){var c=Ok.get();c.set(a,b);this.i?this.i.next=c:this.g=c;this.i=c};Nk.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 Ok=new Gk(function(){return new Pk},function(a){return a.reset()});function Pk(){this.next=this.g=this.He=null}Pk.prototype.set=function(a,b){this.He=a;this.g=b;this.next=null};Pk.prototype.reset=function(){this.next=this.g=this.He=null};function Qk(a,b){Rk||Sk();Tk||(Rk(),Tk=!0);Uk.add(a,b)}var Rk;function Sk(){if(p.Promise&&p.Promise.resolve){var a=p.Promise.resolve(void 0);Rk=function(){a.then(Vk)}}else Rk=function(){Ik(Vk)}}var Tk=!1,Uk=new Nk;function Vk(){for(var a;a=Uk.remove();){try{a.He.call(a.g)}catch(b){Mk(b)}Hk(Ok,a)}Tk=!1};function Wk(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};function Xk(a){this.g=0;this.O=void 0;this.s=this.i=this.j=null;this.o=this.N=!1;if(a!=Da)try{var b=this;a.call(void 0,function(c){Yk(b,2,c)},function(c){Yk(b,3,c)})}catch(c){Yk(this,3,c)}}function Zk(){this.next=this.context=this.i=this.j=this.g=null;this.s=!1}Zk.prototype.reset=function(){this.context=this.i=this.j=this.g=null;this.s=!1};var $k=new Gk(function(){return new Zk},function(a){a.reset()});function al(a,b,c){var d=$k.get();d.j=a;d.i=b;d.context=c;return d} function bl(){var a,b,c=new Xk(function(d,e){a=d;b=e});return new cl(c,a,b)}Xk.prototype.then=function(a,b,c){return dl(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};Xk.prototype.$goog_Thenable=!0;Xk.prototype.cancel=function(a){if(0==this.g){var b=new el(a);Qk(function(){fl(this,b)},this)}}; function fl(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.s||(d++,h.g==a&&(e=h),!(e&&1=b})}function Ol(a,b){return a.g.find(function(c){return Vg(Yg(Kl(c)),b)})};function Pl(){this.g=[];this.cells=[]}u(Pl,Ll);f=Pl.prototype;f.Bm=0;f.marginTop=0;f.marginRight=0;f.yi=0;f.ql=0;f.Qj=0;f.jq=!1;f.Bb=function(){return this.wb};f.Db=function(){return this.Cb}; function Ql(a){a.O();for(var b=a.Bm,c=0;cthis.na)if(this.dispatchEvent(new Hm("start",this,a.clientX,a.clientY,a)))this.i=!0;else{this.Hd||this.Wi(a);return}}c=Km(this,b,c);b=c.x;c=c.y;this.i&&this.dispatchEvent(new Hm("beforedrag",this,a.clientX,a.clientY,a,b,c))&&(Lm(this,a,b,c),a.preventDefault())}}; function Km(a,b,c){var d=gf(Se(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(Im(a,a.deltaX),Jm(a,a.deltaY))}f.kv=function(a){var b=Km(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;Lm(this,a,b.x,b.y)};function Lm(a,b,c,d){a.Sk(c,d);a.dispatchEvent(new Hm("drag",a,b.clientX,b.clientY,b,c,d))}function Im(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 Jm(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 Hm(a,b,c,d,e,g,h){ej.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(Hm,ej);function Mm(a){this.Ud=new Map;var b=arguments.length;if(1b||b>cn(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;fb(this.N,a)}else Mc(this.ma,a.getId(),a);a.ke(this);lb(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=dn(this,b+1),$m(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 en(a){null==a.Xb&&(a.Xb=Ch(a.$a?a.ya:a.g.g.body));return a.Xb}function cn(a){return a.N?a.N.length:0}function Zm(a,b){a.ma&&b?(a=a.ma,b=(null!==a&&b in a?a[b]:void 0)||null):b=null;return b}function dn(a,b){return a.N?a.N[b]||null:null}function bn(a,b,c){a.N&&a.N.forEach(b,c)} function fn(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=Zm(this,c);if(c&&a){var d=this.ma;c in d&&delete d[c];fb(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 gn(a,b){this.ya=a;this.i=b};function hn(a,b){P.call(this);this.s=new Hj(this);this.og(a||null);b&&(this.qg=b)}u(hn,P);f=hn.prototype;f.ya=null;f.Vn=!0;f.Un=null;f.mg=!1;f.Cl=-1;f.jo=!0;f.qg="toggle_display";f.getType=function(){return this.qg};f.ha=function(){return this.ya};f.og=function(a){jn(this);this.ya=a};function jn(a){if(a.mg)throw Error("Can not change this state of the popup while showing.");}f.isVisible=function(){return this.mg}; f.Da=function(a){this.Ja&&this.Ja.stop();this.ua&&this.ua.stop();if(a){if(!this.mg&&this.Nl()){if(!this.ya)throw Error("Caller must call setElement before trying to show the popup");this.ng();a=Ue(this.ya);if(this.Vn)if(this.s.ka(a,"mousedown",this.lp,!0),z){try{var b=a.activeElement}catch(d){}for(;b&&"IFRAME"==b.nodeName;){try{var c=Bf(b)}catch(d){break}a=c;b=a.activeElement}this.s.ka(a,"mousedown",this.lp,!0);this.s.ka(a,"deactivate",this.kp)}else this.s.ka(a,"blur",this.kp);"toggle_display"==this.qg? (this.ya.style.visibility="visible",M(this.ya,!0)):"move_offscreen"==this.qg&&this.ng();this.mg=!0;this.Cl=Date.now();this.Ja?(wj(this.Ja,"end",this.Ai,!1,this),this.Ja.play()):this.Ai()}}else kn(this)};f.ng=Da;function kn(a,b){a.mg&&a.dispatchEvent({type:"beforehide",target:b})&&(a.s&&Mj(a.s),a.mg=!1,Date.now(),a.ua?(wj(a.ua,"end",t(a.Zn,b),!1,a),a.ua.play()):a.Zn(b))}f.Zn=function(a){"toggle_display"==this.qg?this.su():"move_offscreen"==this.qg&&(this.ya.style.top="-10000px");this.jh(a)}; f.su=function(){this.ya.style.visibility="hidden";M(this.ya,!1)};f.Nl=function(){return this.dispatchEvent("beforeshow")};f.Ai=function(){this.dispatchEvent("show")};f.jh=function(a){this.dispatchEvent({type:"hide",target:a})};f.lp=function(a){a=a.target;Af(this.ya,a)||ln(this,a)||150>Date.now()-this.Cl||kn(this,a)}; f.kp=function(a){if(this.jo){var b=Ue(this.ya);if("undefined"!=typeof document.activeElement){if(a=b.activeElement,!a||Af(this.ya,a)||"BODY"==a.tagName||ln(this,a))return}else if(a.target!=b)return;150>Date.now()-this.Cl||kn(this)}};function ln(a,b){return ab(a.Un||[],function(c){return b===c||Af(c,b)})}f.va=function(){hn.ta.va.call(this);this.s.Ha();aj(this.Ja);aj(this.ua);delete this.ya;delete this.s;delete this.Un};function mn(a,b){X.call(this,b);this.Nf=!!a;this.ua=null;this.Nc=Rm({Su:this.Ej},this)}u(mn,X);f=mn.prototype;f.Zk=null;f.Di=!1;f.md=null;f.yc=null;f.Td=null;f.Hk=!1;f.kh=function(){return"goog-modalpopup"};f.Jh=function(){return this.md};f.Va=function(){mn.ta.Va.call(this);var a=this.ha();xb(a,Fb(this.kh()).split(" "));Gf(a,!0);M(a,!1);nn(this);on(this)}; function nn(a){if(a.Nf&&!a.yc){var b=a.g.Ra("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});b.src=jd(Tm).toString();a.yc=b;a.yc.className=a.kh()+"-bg";M(a.yc,!1);Ah(a.yc,0)}a.md||(a.md=a.g.Ra("DIV",a.kh()+"-bg"),M(a.md,!1))}function on(a){a.Td||(a.Td=Nf(a.g,"SPAN"),M(a.Td,!1),Gf(a.Td,!0),a.Td.style.position="absolute")}f.Lp=function(){this.Hk=!1};f.zi=function(a){return!!a&&"DIV"==a.tagName}; f.Nb=function(a){mn.ta.Nb.call(this,a);a=Fb(this.kh()).split(" ");xb(this.ha(),a);nn(this);on(this);Gf(this.ha(),!0);M(this.ha(),!1)};f.Ma=function(){this.yc&&rf(this.yc,this.ha());rf(this.md,this.ha());mn.ta.Ma.call(this);sf(this.Td,this.ha());this.Zk=new Um(this.g.g);Y(this).ka(this.Zk,"focusin",this.ev);pn(this,!1)};f.kc=function(){this.isVisible()&&this.Da(!1);aj(this.Zk);mn.ta.kc.call(this);F(this.yc);F(this.md);F(this.Td)}; f.Da=function(a){if(a!=this.Di)if(this.Ba&&this.Ba.stop(),this.La&&this.La.stop(),this.wa&&this.wa.stop(),this.Ja&&this.Ja.stop(),this.$a&&pn(this,a),a){if(this.dispatchEvent("beforeshow")){try{this.ua=this.g.g.activeElement}catch(e){}this.Ej();this.lh();Y(this).ka(Of(this.g),"resize",this.Ej).ka(Of(this.g),"orientationchange",this.Nc);qn(this,!0);this.focus();this.Di=!0;this.Ba&&this.La?(wj(this.Ba,"end",this.Ci,!1,this),this.La.play(),this.Ba.play()):this.Ci()}}else if(this.dispatchEvent("beforehide")){Y(this).Xa(Of(this.g), "resize",this.Ej).Xa(Of(this.g),"orientationchange",this.Nc);this.Di=!1;this.wa&&this.Ja?(wj(this.wa,"end",this.Bi,!1,this),this.Ja.play(),this.wa.play()):this.Bi();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 pn(a,b){a.Fc||(a.Fc=new gn(a.ya,a.g));a=a.Fc;if(b){a.g||(a.g=[]);b=a.i.qo(a.i.g.body);for(var c=0;c=Mn&&(Ah(this.g,a),this.j=a)};f.Bf=function(){this.j=-1;Ln.ta.Bf.call(this)};f.Pe=function(){this.j=-1;Ln.ta.Pe.call(this)};f.show=function(){this.g.style.display=""};f.kb=function(){this.g.style.display="none"};function Nn(a,b,c){Ln.call(this,a,1,0,b,c)}u(Nn,Ln);Nn.prototype.Bf=function(){this.show();Nn.ta.Bf.call(this)};Nn.prototype.Pe=function(){this.kb();Nn.ta.Pe.call(this)}; function On(a,b,c,d,e){if(3!=b.length||3!=c.length)throw Error("Start and end points must be 3D");Kn.call(this,a,b,c,d,e)}u(On,Kn);On.prototype.lg=function(){for(var a=[],b=0;b2*this.size&&Xn(this),a=!0):a=!1;return a};function Xn(a){if(a.size!=a.g.length){for(var b=0,c=0;b=d.g.length)return Rf;var h=d.g[b++];return{value:a?h:d.i[h],done:!1}};var g=e.next;e.xj=function(){var h=g.call(e);if(h.done)throw Pf;return h.value};return e};function Zn(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function ao(){this.i=new Wn;this.g=new bo("",void 0);this.g.next=this.g.g=this.g}f=ao.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 bo(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 co(this,this.g.next)};f.pop=function(){return co(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 eo(this,function(a,b){return b})};f.lc=function(){return eo(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 eo(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 co(a,b){a.g!=b&&(b.remove(),a.i.remove(b.key));return b.value}function bo(a,b){this.key=a;this.value=b} bo.prototype.remove=function(){this.g.next=this.next;this.next.g=this.g;delete this.g;delete this.next};function fo(){P.call(this);this.i=new ao}u(fo,P);fo.prototype.j=function(a){a.sort(go);v(a,function(b){b.ke(this)},this);this.i=new ao;v(a,function(b){this.i.set(b.Pa(),b)},this);this.dispatchEvent("update")};function go(a,b){return ho(a)-ho(b)}function io(a){return a.i.lc()}function jo(a,b,c){a=io(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 oo(this),po(this),qo(this,!1,a))}};mo.prototype.na=function(a,b){this.O=!1;qo(this,a,b)}; function qo(a,b,c){a.j=!0;a.i=c;a.s=!b;ro(a)}function po(a){if(a.j){if(!a.oa)throw new so(a);a.oa=!1}}mo.prototype.Eg=function(a){po(this);qo(this,!0,a)};function to(a,b,c,d){a.o.push([b,c,d]);a.j&&ro(a)}mo.prototype.then=function(a,b,c){var d,e,g=new Xk(function(h,k){e=h;d=k});to(this,e,function(h){h instanceof oo?g.cancel():d(h)});return g.then(a,b,c)};mo.prototype.$goog_Thenable=!0;function uo(a){return ab(a.o,function(b){return"function"===typeof b[1]})} function ro(a){if(a.N&&a.j&&uo(a)){var b=a.N,c=vo[b];c&&(p.clearTimeout(c.lb),delete vo[b]);a.N=0}a.g&&(a.g.ma--,delete a.g);b=a.i;for(var d=c=!1;a.o.length&&!a.O;){var e=a.o.shift(),g=e[0],h=e[1];e=e[2];if(g=a.s?h:g)try{var k=g.call(e||a.Qa,b);void 0!==k&&(a.s=a.s&&(k==b||k instanceof Error),a.i=b=k);if(Wk(b)||"function"===typeof p.Promise&&b instanceof p.Promise)d=!0,a.O=!0}catch(l){b=l,a.s=!0,uo(a)||(c=!0)}}a.i=b;d&&(k=r(a.na,a,!0),d=r(a.na,a,!1),b instanceof mo?(to(b,k,d),b.wa=!0):b.then(k,d)); c&&(b=new wo(b),vo[b.lb]=b,a.N=b.lb)}function so(){Ra.call(this)}u(so,Ra);so.prototype.message="Deferred has already fired";so.prototype.name="AlreadyCalledError";function oo(){Ra.call(this)}u(oo,Ra);oo.prototype.message="Deferred was canceled";oo.prototype.name="CanceledError";function wo(a){this.lb=p.setTimeout(r(this.i,this),0);this.g=a}wo.prototype.i=function(){delete vo[this.lb];throw this.g;};var vo={};function xo(a,b){var c=b||{};b=c.document||document;var d=jd(a).toString(),e=Nf(new Te(b),"SCRIPT"),g={Pp:e,kg:void 0},h=new mo(g),k=null,l=null!=c.timeout?c.timeout:5E3;0a.length?"":a[1]};function gp(a){P.call(this);this.ob={};a&&this.Dd(a)}u(gp,P);f=gp.prototype;f.qe=function(){return this.ob.w||this.getParent().g.width};f.de=function(){return this.ob.h||this.getParent().g.height};function Vl(a){return a.qe()/a.de()}f.Fa=function(){return new ze(this.qe(),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.Ie=function(){var a=this.hb();return a?"Page "+a:""};function ho(a){return a.ob.order}f.xd=function(a){if(this.ob.src&&a){var b=new Q(this.ob.src);R(b,"w",a.width);return b.toString()}return this.ob.src};f.Pa=function(){return this.ob.pid};function hp(a,b,c){if(z&&!uc("9")){var d=[];d[0]=O(a,"readystatechange",t(ip,a,t(jp,b),d))}else wj(a,"load",t(jp,b));c&&wj(a,"error",t(jp,c))}function jp(a){T(a)}function ip(a,b,c){if("complete"!=a.readyState)return!0;Ej(c[0]);b();return!1}var kp=E("div");function lp(a){if(a)if(z){kp.appendChild(a);var b=t(F,a);hp(a,b,b);a.src="//www.google.com/images/cleardot.gif"}else a.src="//www.google.com/images/cleardot.gif",F(a)};function mp(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.s=Math.ceil(this.wb/this.j);this.o=Math.ceil(this.Cb/this.i);this.g=[];for(a=0;ab)return a[c]}else for(c=a.length-1;0Math.abs(e-d)})});a.push.apply(a,c);nb(a);return a};function Qp(a,b){fo.call(this);this.O={};a&&(this.Ap=a.prefix,this.Vo=a.image_prefix||a.prefix,a=Ya(a.page,function(c){c=new this.s(c);b&&(c.Ad=b);return c},this),this.j(a))}u(Qp,fo);Qp.prototype.tl=function(a){a=a.page;for(var b=0;be;e++){var g=c.concat(d[e].split(""));Tp[e]=g;for(var h=0;h>2];l=b[(l&3)>4];n=b[(n&15)>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]+b[(a&3)>4]+k+d}a=c.join("")}}return Array.isArray(a)?$p(a,aq):a}function bq(a){return Vp&&null!=a&&a instanceof Uint8Array?new Uint8Array(a):a};var cq;function dq(a,b,c){var d=cq;cq=null;a||(a=d);d=this.constructor.Pw;a||(a=d?[d]:[]);this.s=(d?0:-1)-(this.constructor.Mw||0);this.j=null;this.g=a;a:{d=this.g.length;a=d-1;if(d&&(d=this.g[a],Yp(d))){this.o=a-this.s;this.i=d;break a}void 0!==b&&-1=a.o?a.i?a.i[b]:void 0:(void 0===c?0:c)&&a.i&&a.i[b]?a.i[b]:a.g[b+a.s]}dq.prototype.toJSON=function(){return $p(this.g,aq)};dq.prototype.toString=function(){return this.g.toString()};dq.prototype.clone=function(){var a=this.constructor,b=$p(this.g,bq);cq=b;a=new a(b);cq=null;hq(a,this);return a}; function hq(a,b){b.N&&(a.N=b.N.slice());var c=b.j;if(c){b=b.i;for(var d in c){var e=c[d];if(e){var g=!(!b||!b[d]),h=+d;if(Array.isArray(e)){if(e.length){var k=a,l=e[0].constructor;k.j||(k.j={});var n=k.j[h];if(!n){var q=k;n=void 0===g?!1:g;n=void 0===n?!1:n;g=gq(q,h,n);null==g&&(g=eq);if(g===eq){var w=g=Xp(g.slice());(n=void 0===n?!1:n)||h>=q.o?(fq(q),q.i[h]=w):q.g[h+q.s]=w}n=[];for(q=0;qb.charCode&&Qj(d)?b.charCode:0):("keypress"==a.type?(xq&&(c=this.$j),b.keyCode==b.charCode?32>b.keyCode?(d=b.keyCode,e=0):(d=this.re,e=b.charCode):(d=b.keyCode||this.re,e=b.charCode||0)):(d=b.keyCode||this.re,e=b.charCode||0),fc&&63==e&&224==d&&(d=191));var g=d=Sj(d);d?63232this.ac&&bthis.ac&&this.ac--}; f.removeChild=function(a,b){if(a="string"===typeof a?Zm(this,a):a){var c=fn(this,a);-1!=c&&(c==this.ac?(a.Wc(!1),this.ac=-1):cb?c-1:b},0)}function nr(a){pr(a,function(b,c){return(b+1)%c},a.ac)}function mr(a){pr(a,function(b,c){b--;return 0>b?c-1:b},a.ac)} function pr(a,b,c){c=0>c?fn(a,a.bc):c;var d=cn(a);c=b.call(a,c,d);for(var e=0;e=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();Ae(c,h)||Fh(b,h);return a}function vr(a,b){return(b&8&&Ch(a)?b^4:b)&-9};function xr(a,b,c){this.g=a;this.i=b;this.O=c}u(xr,sr);xr.prototype.Pc=function(a,b,c){tr(this.g,this.i,a,b,void 0,c,this.O)};function yr(a,b,c,d){xr.call(this,a,b);this.j=c?5:0;this.o=d||void 0}u(yr,xr);yr.prototype.N=function(){return this.j};yr.prototype.s=function(a){this.j=a};yr.prototype.Pc=function(a,b,c,d){var e=tr(this.g,this.i,a,b,null,c,10,d,this.o);if(e&496){var g=zr(e,this.i);b=zr(e,b);e=tr(this.g,g,a,b,null,c,10,d,this.o);e&496&&(g=zr(e,g),b=zr(e,b),tr(this.g,g,a,b,null,c,this.j,d,this.o))}};function zr(a,b){a&48&&(b^=4);a&192&&(b^=1);return b};function Ar(a,b){this.Lb=8;this.La=b||void 0;hn.call(this,a)}u(Ar,hn);function Br(a){a.Lb=4;a.isVisible()&&a.ng()}Ar.prototype.nd=function(){return this.La||null};Ar.prototype.setPosition=function(a){this.La=a||void 0;this.isVisible()&&this.ng()};Ar.prototype.ng=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 Cr(a,b,c){var d=b;a.timeOfStartCall=(new Date).getTime();var e=c||p;b=e.document;var g=a.nonce||ce(e);g&&!a.nonce&&(a.nonce=g);if("help"==a.flow){var h=Ca("document.location.href",e);!a.helpCenterContext&&h&&(a.helpCenterContext=h.substring(0,1200));h=!0;if(d&&JSON&&JSON.stringify){var k=JSON.stringify(d);(h=1200>=k.length)&&(a.psdJson=k)}h||(d={invalidPsd:!0})}c=[a,d,c];e.GOOGLE_FEEDBACK_START_ARGUMENTS=c;d=a.serverUri||"//www.google.com/tools/feedback";if(h=e.GOOGLE_FEEDBACK_START)h.apply(e, c);else{e=d+"/load.js?";for(var l in a)c=a[l],null==c||Ha(c)||(e+=encodeURIComponent(l)+"="+encodeURIComponent(c)+"&");a=Nf(Se(b),"SCRIPT");g&&a.setAttribute("nonce",g);g=ld(e);a.src=jd(g);Zi(a);b.body.appendChild(a)}}Pa("userfeedback.api.startFeedback",Cr);function Dr(a){X.call(this);if(this.j=B("gb-mobile-appbar-back-button"))if(Y(this).ka(this.j,"click",this.o),mc&&Pb(Sb(),"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"))&&Er(this);new qr(a)}m(Dr,X); function Er(a){var b=B("gb-mobile-more-menu");if(b){var c=new Ar(b);Br(c);c.setPosition(new yr(a.i,4));c.Da(!1);O(a.i,"click",function(){yb(b,"more-menu-hidden");c.Da(!0);c.ha().focus()});O(a.i,"keydown",function(d){if(32==d.keyCode||13==d.keyCode)yb(b,"more-menu-hidden"),c.Da(!0),c.ha().focus()})}else F(a.i)}Dr.prototype.o=function(){window.history.back();ic&&Wf&&1==window.history.length&&window.close()};Pa("_OC_startFeedback",Cr);function Fr(a){P.call(this);a=a||Se();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?jf(a.contentDocument):null);break a}catch(c){}b=null}b=this.s=b;cc&&(a=b.document,a.open(),a.close());O(b,"resize",this.i,!1,this);this.j=this.g.offsetWidth}u(Fr,P); Fr.prototype.va=function(){Fr.ta.va.call(this);Dj(this.s,"resize",this.i,!1,this);this.s=null;F(this.g);delete this.g};Fr.prototype.i=function(){var a=this.g.offsetWidth;this.j!=a&&(this.j=a,this.dispatchEvent("fontsizechange"))};function Gr(a){this.i=a;a=r(this.j,this);this.g=new Oj;O(this.g,"resize",a);var b=new Fr;O(b,"fontsizechange",a);O(window,"DOMContentLoaded",r(this.resize,this))}Gr.prototype.j=function(){this.resize();T(r(this.resize,this),100)};Gr.prototype.resize=function(){var a=this.g.Fa(),b=Math.round(qh(this.i).y);this.i.style.height=a.height-b+"px"};function Hr(a){var b=null;if(a=B(a))b=new Gr(a),b.resize();return b};function Ir(a){ej.call(this,"navigate");this.o=a}u(Ir,ej);function Jr(){return!(y("iPad")||y("Android")&&!y("Mobile")||y("Silk"))&&(y("iPod")||y("iPhone")||y("Android")||y("IEMobile"))};var Kr=new WeakMap;function Lr(a,b){a=[a];for(var c=b.length-1;0b?"":a.substring(b+1)}function Pr(a,b,c){a=a.g.location;var d=a.href.split("#")[0],e=Pb(a.href,"#");if(Or||e||b)d+="#"+b;d!=a.href&&(b=td(d),c?se(a,b):re(a,b))} function Rr(a,b,c,d){if(a.ua||b!=Vr(a))if(a.ua=!1,b=encodeURIComponent(String(b)),z){var e=Bf(a.O);e.open("text/html",c?"replace":void 0);c=fe(Xd("title",{},d||a.g.document.title),Xd("body",{},b));e.write(Td(c));e.close()}else e=jd(a.oa).toString()+"#"+b,(a=a.O.contentWindow)&&(c?se(a.location,e):re(a.location,e))} function Vr(a){if(z)return a=Bf(a.O),a.body?Fe(a.body.innerHTML):null;var b=a.O.contentWindow;if(b){try{var c=Fe(Tr(b))}catch(d){return a.o||(1!=a.o&&pl(a.Ya,1E4),a.o=!0),null}a.o&&(0!=a.o&&pl(a.Ya,150),a.o=!1);return c||null}return null}f.Jm=function(a){if(this.i){var b=Tr(this.g);b!=this.s&&Ur(this,b,a)}if(!this.i||Or)if(b=Vr(this)||"",null==this.Wg||b==this.Wg)this.Wg=null,b!=this.s&&Ur(this,b,a)}; function Ur(a,b,c){a.s=a.N.value=b;a.i?(Or&&Rr(a,b),Pr(a,b)):Rr(a,b);a.dispatchEvent(new Ir(Qr(a),c))}var Nr=0;function Wr(a){dq.call(this,a)}m(Wr,dq);function Xr(){var a=new Wr([null,null,null,null,null,'(function(){/*\n\n Copyright The Closure Library Authors.\n SPDX-License-Identifier: Apache-2.0\n*/\nvar d="function"==typeof Object.create?Object.create:function(a){var c=function(){};c.prototype=a;return new c},e;if("function"==typeof Object.setPrototypeOf)e=Object.setPrototypeOf;else{var f;a:{var g={a:!0},l={};try{l.__proto__=g;f=l.a;break a}catch(a){}f=!1}e=f?function(a,c){a.__proto__=c;if(a.__proto__!==c)throw new TypeError(a+" is not extensible");return a}:null}var m=e;/*\n\n SPDX-License-Identifier: Apache-2.0\n*/\nvar n={};function p(){var a="undefined"!==typeof window?window.trustedTypes:void 0;return null!==a&&void 0!==a?a:null}var q;function r(){var a,c;if(void 0===q)try{q=null!==(c=null===(a=p())||void 0===a?void 0:a.createPolicy("google#safe",{createHTML:function(b){return b},createScript:function(b){return b},createScriptURL:function(b){return b}}))&&void 0!==c?c:null}catch(b){q=null}return q};var t=function(a,c){if(c!==n)throw Error("Bad secret");this.g=a},u=function(){};t.prototype=d(u.prototype);t.prototype.constructor=t;if(m)m(t,u);else for(var v in u)if("prototype"!=v)if(Object.defineProperties){var w=Object.getOwnPropertyDescriptor(u,v);w&&Object.defineProperty(t,v,w)}else t[v]=u[v];t.prototype.toString=function(){return this.g.toString()};function x(a){var c,b=null===(c=r())||void 0===c?void 0:c.createScriptURL(a);return new t(null!==b&&void 0!==b?b:a,n)};if(!function(){if(self.origin)return"null"===self.origin;if(""!==location.host)return!1;try{return window.parent.escape(""),!1}catch(a){return!0}}())throw Error("sandboxing error");\nwindow.addEventListener("message",function(a){var c=a.ports[0];a=a.data;var b=a.callbackName.split("."),h=window;"window"===b[0]&&b.unshift();for(var k=0;k":">","`":"`","\u0085":"…","\u00a0":" ","\u2028":"
","\u2029":"
"};function qs(a){return vs[a]} var ps=/[\x00\x22\x26\x27\x3c\x3e]/g,us=/[\x00\x22\x27\x3c\x3e]/g,ws=/^(?!on|src|(?:action|archive|background|cite|classid|codebase|content|data|dsync|href|http-equiv|longdesc|style|usemap)\s*$)(?:[a-z0-9_$:-]*)$/i,ss=/'"]|"[^"]*"|'[^']*')*>/g,ts=/;/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ function xs(a,b,c,d){a=a(b||ys,c);d=Nf(d||Se(),"DIV");if(Ha(a))if(a instanceof gs){if(a.Qf!==es)throw Error("Sanitized content was not of kind HTML.");a=le(a.toString(),a.Ok)}else a=Ud("zSoyz");else a=Ud(String(a));ne(d,a);1==d.childNodes.length&&(a=d.firstChild,1==a.nodeType&&(d=a));return d}var ys={};function zs(a){a=a||{};var b=a.attributes,c=a.content,d=a.disabled,e=a.id,g=a.Ww,h=a.title,k=a.iw,l=a.value,n=os;e='

"+ns(null!=c?c:"")+"
")};function As(a,b){this.j=a;this.N=!!b;this.s={0:this.j+"-arrowright",1:this.j+"-arrowup",2:this.j+"-arrowdown",3:this.j+"-arrowleft"}}m(As,sr);f=As.prototype;f.Gj=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.Sn=Math.max(c,15));"number"===typeof d&&(this.Ll=d)};f.Pc=function(a,b,c){a=this.Fk;2==a&&(a=0);Bs(this,this.Jk,a,2==this.Fk?Cs(this.Jk)?this.g.offsetHeight/2:this.g.offsetWidth/2:this.Sn,0,c)}; function Bs(a,b,c,d,e,g){if(a.i){var h=Ds(b,c);var k=a.i;var l=a.g,n=a.Ea,q=L(k);a:{q=(Cs(b)?q.height/2:q.width/2)-d;var w=vr(k,h);if(n)n=n.clone(),l&&(l=ur(l),n.left+=l.x,n.right+=l.x,n.top+=l.y,n.bottom+=l.y);else if(n=ph(k),!n){k=q;break a}k=Yg(zh(k));Cs(b)?k.topn.bottom&&w&1&&(q-=k.bottom-n.bottom):k.leftn.right&&w&4&&(q-=k.right-n.right);k=q}k=Cs(b)?new A(a.Ll,k):new A(k,a.Ll);q=Cs(b)?6:9;a.Dk&&2==e&&(q=Cs(b)?4:1); w=b^3;Cs(b)&&"rtl"==a.i.dir&&(w=b);h=tr(a.i,Ds(w,c),a.g,h,k,g,a.vl?q:0,void 0,a.Ea);if(2!=e&&h&496){Bs(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)))}Es(a,b,c,d)} function Es(a,b,c,d){var e=a.o;Fc(a.s,function(g){Ab(e,g,!1)},a);x(e,a.s[b]);e.style.top=e.style.left=e.style.right=e.style.bottom="";a.i?(c=uh(a.i,a.g),d=Fs(a.i,b),Cs(b)?e.style.top=Gs(c.y+d.y,a.g.offsetHeight-15)+"px":e.style.left=Gs(c.x+d.x,a.g.offsetWidth-15)+"px"):e.style[0==c?Cs(b)?"top":"left":Cs(b)?"bottom":"right"]=d+"px"}function Gs(a,b){return 15>b?15:ve(a,15,b)}function Ds(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 Fs(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 Cs(a){return 0==a||3==a}f.vl=!1;f.Fk=2;f.Sn=20;f.Jk=3;f.Ea=null;f.Ll=-5;f.Dk=!1;function Hs(a){bj.call(this);this.i=a||Se()}m(Hs,bj);Hs.prototype.o=function(){vm(this.ha(),"tooltip");wm(this.ha(),"live","polite")};function Is(a){Hs.call(this,a);this.g=this.i.Ra("DIV",Js()+"-contentId");this.j=this.i.Ra("DIV",Js()+"-arrow",this.i.Ra("DIV",Js()+"-arrowimplbefore"),this.i.Ra("DIV",Js()+"-arrowimplafter"));this.s=this.i.Ra("DIV",{"class":Js(),role:"tooltip"},this.g,this.j);this.o()}m(Is,Hs);function Js(){return"jfk-tooltip"}Is.prototype.ha=function(){return this.s};Is.prototype.va=function(){Hs.prototype.va.call(this);this.s&&F(this.s)};function Ks(a){Is.call(this,a)}m(Ks,Is);Ks.prototype.o=function(){vm(this.ha(),"tooltip")};function Ls(a){return He(Fb(a.replace(Ms,function(b,c){return Ns.test(c)?"":" "}).replace(/[\t\n ]+/g," ")))}var Ns=/^(?:abbr|acronym|address|b|em|i|small|strong|su[bp]|u)$/i,Ms=/]*)?>/gi;function Os(a){a=a||Se();var b=Ia(a.g);Ps[b]||(Ps[b]=new Qs(a))}function Rs(a,b){var c=b instanceof Rd?Ls(Sd(b)):b;a.removeAttribute("title");a.removeAttribute("data-tooltip-contained");a.removeAttribute("data-tooltip");b?(b instanceof Rd?a.i=b:(a.setAttribute("data-tooltip",b),a.i=null),a.setAttribute("aria-label",c)):(a.i=null,a.removeAttribute("aria-label"));Os(Se(a))}var Ps={}; function Qs(a){Hj.call(this);this.wa=a;this.ua=new cm(this.cw,0,this);cj(this,this.ua);var b=jf();this.ma="function"===typeof b.MutationObserver?new b.MutationObserver(r(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.Ov,!0)}m(Qs,Hj);f=Qs.prototype;f.va=function(){Ss(this);Hj.prototype.va.call(this)}; function Ts(a,b){switch(b.type){case "mousedown":case "mouseover":case "mouseout":case "click":a.Ba=!1;break;case "keydown":a.Ba=!0}}f.Ov=function(a){this.ma&&this.ma.disconnect();Ts(this,a);var b=a.target;a="focus"==a.type||"focusin"==a.type;var c=this.g&&Af(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=db(um,a);a&&(this.ma.observe(b,{attributes:!0}),(a=ym(b))&&(b=a));this.s=b}else this.s=null;Us(this)}; f.Js=function(a){Ts(this,a);var b=a.target;b=this.g&&Af(this.g.g,b);if("mousedown"!=a.type&&"click"!=a.type||!b)this.s=null,Us(this)};f.mt=function(a){v(a,r(function(b){var c=ym(b.target);c&&"aria-activedescendant"==b.attributeName&&(this.s=c,Us(this))},this))};function Us(a){if(0==a.ua.lb||!a.i||!a.O){Ss(a);var b=null!=a.O?a.O:50;a.ua.start(a.i?b:300)}}function Ss(a){a.oa&&(ql(a.oa),a.oa=0,a.i=null)} f.cw=function(){if(!this.s)Vs(this),this.O=this.i=null;else if(!(this.i&&this.g&&Af(this.g.ha(),this.s))||this.i.getAttribute("data-tooltip-unhoverable")){var a=Lf(this.s,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&&(Vs(this),this.O=this.i=null,b=!0);if(!this.i&&a&&(this.i=a,Ws(this,a))){var c=ee;if(a.getAttribute("data-tooltip-contained"))for(var d=Ze("jfk-tooltip-data", a),e=0;e=b.scrollWidth&&b.offsetHeight>=b.scrollHeight||a.Ca&&"mouse"==b.getAttribute("data-tooltip-trigger")?!1:!0}function Xs(a){if(a)switch(a.toLowerCase().split(",")[0]){case "l":return 0;case "t":return 2;case "r":return 3}return 1} f.Vp=function(a,b,c,d,e,g){this.oa=0;this.O=g;if(!this.g){this.g=new Ks(this.wa);Vs(this);g=this.g.ha();this.wa.g.body.appendChild(g);cj(this,this.g);this.o=new As(Js(),!0);this.o.vl=!0;this.o.Dk=!0;g=this.o;var h=this.g.ha(),k=this.g.j;g.g=h;g.o=k}a:{if(c)switch(c.toLowerCase().split(",")[1]){case "l":g=0;break a;case "r":g=1;break a}g=2}this.o.setPosition(Xs(c),g,void 0,d);yb(this.g.ha(),"jfk-tooltip-hide");this.na!=e&&(this.na&&!Db(Oe(this.na))&&yb(this.g.ha(),this.na),Db(Oe(e))||x(this.g.ha(), e),this.na=e);jh(this.g.ha(),0,0);if(b instanceof Rd)N(this.g.g,b);else for(qf(this.g.g);c=b.firstChild;)this.g.g.appendChild(c);this.o.Gj(a);this.o.Pc(null,0)};function Vs(a){a.g&&x(a.g.ha(),"jfk-tooltip-hide")};function Ys(a){var b="Yf";if(a.Yf&&a.hasOwnProperty(b))return a.Yf;b=new a;return a.Yf=b};function Zs(){}u(Zs,Hq);Ea(Zs);f=Zs.prototype;f.sg=function(){return"button"};f.ne=function(a,b,c){switch(b){case 8:case 16:wm(a,"pressed",c);break;default:case 64:case 1:Zs.ta.ne.call(this,a,b,c)}};f.Oc=function(a){var b=Zs.ta.Oc.call(this,a);this.oc(b,a.sf());var c=a.Ab();c&&this.xc(b,c);Pq(a,16)&&this.ne(b,16,Qq(a,16));return b};f.Sb=function(a,b){b=Zs.ta.Sb.call(this,a,b);var c=this.Ab(b);a.Ca=c;a.na=this.sf(b);Pq(a,16)&&this.ne(b,16,Qq(a,16));return b};f.Ab=Da;f.xc=Da;f.sf=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=en(a),d=this.Wa()+"-collapse-left",e=this.Wa()+"-collapse-right",g=c?e:d;b&1?Vq(a,g):Wq(a,g);c=c?d:e;b&2?Vq(a,c):Wq(a,c)};f.Wa=function(){return"goog-button"};function $s(){}u($s,Zs);Ea($s);f=$s.prototype;f.sg=function(){};f.Oc=function(a){Tq(a,!1);a.Of&=-256;a.Zb(32,!1);return a.g.Ra("BUTTON",{"class":Kq(this,a).join(" "),disabled:!a.isEnabled(),title:a.sf()||"",value:a.Ab()||""},a.Ng()||"")};f.Ei=function(a){return"BUTTON"==a.tagName||"INPUT"==a.tagName&&("button"==a.type||"submit"==a.type||"reset"==a.type)};f.Sb=function(a,b){Tq(a,!1);a.Of&=-256;a.Zb(32,!1);if(b.disabled){var c=this.Kh(1);x(b,c)}return $s.ta.Sb.call(this,a,b)}; f.Fi=function(a){Y(a).ka(a.ha(),"click",a.Qe)};f.ek=Da;f.Gm=Da;f.Fm=function(a){return a.isEnabled()};f.mh=Da;f.Zc=function(a,b,c){$s.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.ne=Da;function at(a,b,c){Sq.call(this,a,b||$s.Eb(),c)}u(at,Sq);f=at.prototype;f.Ab=function(){return this.Ca};f.xc=function(a){this.Ca=a;this.wd().xc(this.ha(),a)};f.sf=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(){at.ta.va.call(this);delete this.Ca;delete this.na};f.Ma=function(){at.ta.Ma.call(this);if(Pq(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.Qe(a):32==a.keyCode};zq("goog-button",function(){return new at(null)});function Z(a,b,c,d){at.call(this,a,bt.Eb(),b);this.wa=c||0;this.wb=d||0;this.Ka=!1}u(Z,at);f=Z.prototype;f.Bb=function(){return this.wb};f.oc=function(a){this.na=a;var b=this.ha();b&&(this.Ka?Rs(b,a):a?b.title=a:b.removeAttribute("title"))};f.Ta=function(a){this.isEnabled()!=a&&(Z.ta.Ta.call(this,a),ct(this))};f.focus=function(){var a=this.ya;try{a.focus()}catch(b){}};f.Hj=function(a){Z.ta.Hj.call(this,a);dt(this,!1)};f.$e=function(a){Z.ta.$e.call(this,a);this.isEnabled()&&dt(this,!0)}; f.he=function(a){Z.ta.he.call(this,a);this.isEnabled()&&dt(this,!0)};function dt(a,b){a.ha()&&Ab(a.ha(),"jfk-button-clear-outline",b)}function ct(a){a.ha()&&et(a.wd(),a)}function ft(a,b){if("string"===typeof a){var c=a;a=C("IMG");pe(a,c);J(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 bt(){this.na=this.Wa()+"-standard";this.i=this.Wa()+"-action";this.oa=this.Wa()+"-primary";this.o=this.Wa()+"-default";this.N=this.Wa()+"-flat";this.ma=this.Wa()+"-narrow";this.O=this.Wa()+"-mini";this.s=this.Wa()+"-contrast"}u(bt,Zs);bt.Eb=function(){return Ys(bt)};f=bt.prototype;f.Hf=function(a,b,c){a&&c.wa!=a&&(c.wa=a,ct(c));b&&c.wb!=b&&(c.wb=b,ct(c))};f.Wa=function(){return"jfk-button"}; f.Oc=function(a){var b=a.g,c=xs(zs,{disabled:!a.isEnabled(),checked:Qq(a,16),style:a.wa,title:a.sf(),iw:a.Ka,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){bt.ta.Sb.call(this,a,b);this.j||(this.j=Qc(this.na,t(this.Hf,0,null),this.i,t(this.Hf,2,null),this.oa,t(this.Hf,3,null),this.o,t(this.Hf,1,null),this.N,t(this.Hf,4,null),this.O,t(this.Hf,5,null),this.s,t(this.Hf,6,null),this.ma,t(this.Hf,null,1)));for(var c=ub(b),d=0;d=Wg(this.Ka,this.O))}if(b){if(this.li(),this.Wb=null,b=this.oa)b.Wb=null}else 3==mt(this)&&this.Fg();tt.ta.Tg.call(this,a)};f.ol=function(){this.Wb!=this.ha()&&(this.vi=!1,this.Wb=this.ha())};f.fl=function(){return this.vi?100:tt.ta.fl.call(this)};function vt(a,b){a=new tt(a);a.Vl(Hl(b.innerHTML));a.className="buy-tip-card";a.wa=new Tg(5,5,5,5);a.Vi=!0;a.ah=500;a.Wh=250};function wt(a,b){this.Cb=a||200;this.wb=b||108;W.call(this)}u(wt,W);wt.prototype.Db=function(){return this.Cb};wt.prototype.Bb=function(){return this.wb};function xt(a){kt.call(this,a,void 0,void 0);this.jo=!1;this.Vi=!0;this.ah=500}m(xt,tt);xt.prototype.Lj=function(a,b){b||(b=new yr(a,9,!0));tt.prototype.Lj.call(this,a,b)};xt.prototype.className="unified-hovercard";var yt="ganpub ganclk dapp source_ip source_country source_domain authuser".split(" ");function zt(a){var b=void 0===b?window.location.href:b;var c=new Q(b);R(a,"hl","en");(b=S(c,"output"))&&R(a,"output",b);b=S(c,"source");"ge-ipad-app"==b?(R(a,"dapp","2"),rk(a,"output")):"ge-tablet-app"==b?(R(a,"dapp","4"),rk(a,"output")):"ge-ip-app"==b?R(a,"dapp","1"):"ge-android-app"==b&&R(a,"dapp","3");S(c,"authuser")||rk(a,"authuser");yt.forEach(function(d){var e=S(c,d);e&&R(a,d,e)})};function At(a,b,c){bj.call(this);this.i=null;this.data=a;this.g=b;this.maxWidth=c||500}m(At,bj);At.prototype.va=function(){this.i&&this.i.Ha()};function Bt(a){return a.i||(a.i=new Hj(a))} At.prototype.j=function(a){var b=C("DIV"),c=new Q(this.data.Aa.Ug||this.data.Aa.Cp);this.data.Aa.source&&R(c,"source",this.data.Aa.source);var d=this.data.hb();this.data.Aa.Zp&&(d+=": "+this.data.Aa.Zp);d=C("A",{},d);d.classList.add(this.g+"-title");oe(d,c.toString());b.appendChild(d);a.appendChild(b);Ct(this,a);b=C("DIV");if("number"===typeof(this.data.Aa.Fp||0)){d=this.data.Aa.Fp||0;c=Math.floor(d);d=0)|()/ig,Ft={VIEW_PAGES_PARTIAL:2,VIEW_PAGES_ALL:5,VIEW_PAGES_PARTIAL_FIXED:6,VIEW_PURCHASED:7,VIEW_GOOGLE_EDITIONS_PREVIEW:8};function Gt(){this.Aa={}}f=Gt.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.Zf=function(){return this.Aa.Zf};f.Zh=function(){return this.Aa.Zh};function Ht(){this.g=[]}f=Ht.prototype;f.getId=function(){return this.lb};f.Zg=function(a){this.lb=a};f.hb=function(){return this.Ec};f.Og=function(){return this.s};function It(a,b,c){if(Jt(a,b)||null==a.ma||!a.j)c&&c(null);else{var d=a.ma.clone();a=r(a.Ds,a,b,c||Da);R(d,"id",b);wl(d,a,"POST")}}function Kt(a,b,c){if(Jt(a,b)&&null!=a.oa&&a.na){var d=a.oa.clone();a=r(a.Ss,a,b,c||Da);R(d,"id",b);wl(d,a,"POST")}else c&&c(null)} f.Ds=function(a,b,c){var d=null;El(c.target)&&(d=new Gt,d.Aa.nm=a,this.g.push(d));b(d)};f.Ss=function(a,b,c){var d=null;El(c.target)&&(d=Jt(this,a),Lt(this,d));b(d)};function Lt(a,b){hb(a.g,function(c){return c.Yb()==b.Yb()})}function Jt(a,b){return bb(a.g,function(c){return c&&c.Yb()==b})};function Mt(a){this.Aa={};this.Aa.title=a.title;this.Aa.Zp=a.subtitle;this.Aa.Gk=a.authors;this.Aa.Cp=a.preview_url;this.Aa.Ug=a.info_url;this.Aa.Bj=a.pub_date;this.Aa.jp=a.num_pages;this.Aa.kq=a.viewability;this.Aa.Vw=a.subject;this.Aa.bq=a.thumbnail_url;this.Aa.fm=a.snippet;this.Aa.Ow=a.list_price;this.Aa.Op=a.sale_price;this.Aa.Tw=a.sale_price_better;this.Aa.Xu=a.offer_price;this.Aa.Lk=a.buy_url;this.Aa.Gp=a.read_url;this.Aa.sj=a.is_free_ebook||!1;this.Aa.qj=a.in_my_ebooks||!1;this.Aa.Qw=a.my_ebooks_url|| "";this.Aa.Fp=a.rating_score||0;this.Aa.Vu=a.num_reviews||0;this.Aa.Rd=a.is_purchased||!1;this.Aa.Yh=a.is_ebook||!1;this.Aa.Yw=a.write_review_url||"";this.Aa.et=a.add_to_my_ebooks_url||"";this.Aa.tv=a.preview_ebook_url||"";this.Aa.Hv=a.reviews_url||"";this.Aa.Rj=a.view_order_url||"";this.Aa.Fw=a.add_to_my_ebooks_url;this.Aa.Cs=a.add_to_my_ebooks_url_is_on_play||!1;this.Aa.nj=a.has_flowing_text||!1;this.Aa.oj=a.has_scanned_text||!1;var b=ep(a.info_url);this.Aa.nm=b;this.Aa.Hw=a.canonical_atb_url|| "";this.Aa.wl=a.is_rentable||!1;this.Aa.ag=a.is_pre_order||!1;this.Aa.xp=a.on_sale_date||"";this.Aa.Zf=a.is_pre_ordered||!1;this.Aa.Nw=a.issue_volume_count||0;this.Aa.Zh=a.is_volume_cancelled||!1;this.Aa.Fs=a.cancelled_reason||"0";switch(a.rental_state){case 1:this.Aa.Dj=1;break;case 2:this.Aa.Dj=2}this.Aa.Dv=a.rental_end_utc||0}m(Mt,Gt);function Nt(a){this.g=[];this.Zg(a.id);this.o=a.owner_uid;this.Ec=a.title;this.s=a.description;this.wa=a.num_volumes;this.ye=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 Q(a.add_vol_base_url);this.oa=new Q(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 Mt(b)}))}m(Nt,Ht);function Ot(){W.call(this);this.j=[];this.i=[]}u(Ot,W);function Pt(a){var b=new Q(jf().location);b=new Q(b);return a===parseInt(S(b,"as_coll"),10)}function Qt(a,b,c){Rt(a,b.getId())||(a=b.O?a.j:a.i,c?lb(a,void 0,0,b):a.push(b))}function St(a,b,c){var d=1==b.ye;a=new Q(a);R(a,"cl_title",b.hb());R(a,"cl_mode",d?"public":"private");b="cl_des="+encodeURIComponent(String(b.Og()));wl(a,c,"POST",b)} Ot.prototype.N=function(a){a=a.target;if(El(a)){a=new Nt(Gl(a));var b=Rt(this,a.getId());b.Ec=a.hb();b.s=a.Og();b.ye=a.ye;b=new ej("update",this);b.shelf=a;this.dispatchEvent(b)}};Ot.prototype.o=function(a,b){b=b.target;El(b)&&(b=new Nt(Gl(b)),Qt(this,b,a),a=new ej("add",this),a.shelf=b,this.dispatchEvent(a))};function Tt(a,b){a.s=new Q(b);R(a.s,"jscmd","ClCreate")}function Rt(a,b){return bb(Ut(a),function(c){return c.getId()==b})}function Ut(a){return qb(a.j,a.i)};function Vt(a,b){var c=C("A",{},"View order");oe(c,a);c.classList.add(b);return c};function Wt(a,b,c){At.call(this,a,b,c);S(new Q(this.data.Aa.Ug),"dapp")}m(Wt,At); Wt.prototype.render=function(a){qf(a);var b=C("DIV",this.g),c=C("DIV",this.g+"-meta");this.j(c);var d=C("DIV",this.data.Aa.Yh?this.g+"-footer":this.g+"-footer-nonebook"),e=C("DIV",this.g+"-footer-inner");if(this.data.Aa.Yh)if(this.data.Zh()&&Pt(1))Xt(this,e);else if(this.data.Aa.ag&&!this.data.Rd()||this.data.Zf()){var g=C("DIV",this.g+"-pre-order-date");g.textContent="Available on: "+this.data.Aa.xp;e.appendChild(g);this.data.Zf()&&Pt(1)&&Xt(this,e)}else if(this.data.Rd()&&Pt(1))Yt(this,e),Xt(this, e);else{Yt(this,e);g=!this.data.Rd()&&!this.data.Aa.sj;var h=this.data.Aa.sj&&!this.data.Aa.qj;if(g||h){g=C("SPAN",{"class":this.g+"-footer-inner-right"});if(h=this.data.Aa.tv||this.data.Aa.Gp){for(var k=h.search(bk),l=0,n,q=[];0this.maxWidth&&J(a,this.maxWidth,"")}; Wt.prototype.j=function(a){if(!(this.data.Rd()||this.data.Zf()||this.data.Zh())&&this.data.Aa.Rj&&Pt(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.Rj){var c=Vt(this.data.Aa.Rj,"primary"),d=C("SPAN");d.innerText=" ";b.appendChild(d);b.appendChild(c)}a.appendChild(b)}At.prototype.j.call(this,a);b=C("DIV",this.g+"-book-options");this.data.Aa.Yh?(this.data.Aa.sj?this.data.Aa.qj? Zt(this,b):Et(this,b,"eBook - FREE",this.data.Aa.et,!this.data.Aa.Cs,void 0,"unified-hovercard-free-btn"):this.data.Zf()?(c=C("SPAN",this.g+"-pre-ordered","Pre-ordered"),b.appendChild(c)):this.data.Zh()&&Pt(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.qj?!this.data.Rd()&& this.data.Aa.qj?$t(this,b):this.data.Rd()&&Zt(this,b):$t(this,b),Pt(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.Cp,Ic(Ft,this.data.Aa.kq)&&!Db(c)?Et(this,b,"Preview",c,void 0,void 0,"unified-hovercard-preview-sample"):Et(this,b,"Preview",c,!1,!0,"unified-hovercard-preview-sample"));a.appendChild(b)}; function Xt(a,b){var c=C("DIV",{id:"unified-hovercard-purchased-shelf-links","class":a.g+"-order-links-container"}),d=a.data.Aa.Rj;d&&(d=Vt(d,""),c.appendChild(d));a.data.Zf()||(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 $t(a,b){a.data.Aa.ag&&!a.data.Rd()?Et(a,b,"Pre-order eBook - "+a.data.Aa.Op,a.data.Aa.Lk,void 0,void 0,"unified-hovercard-buy-btn"):a.data.wl()?Et(a,b,"EBOOK FROM "+a.data.Aa.Xu,a.data.Aa.Lk,void 0,void 0,"unified-hovercard-buy-btn"):Et(a,b,"Buy eBook - "+a.data.Aa.Op,a.data.Aa.Lk,void 0,void 0,"unified-hovercard-buy-btn")}function Zt(a,b){Et(a,b,"Read now",a.data.Aa.Gp,void 0,void 0,"unified-hovercard-read-now")} function Yt(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"),q=C("SPAN","goog-inline-block"),w=C("SPAN","goog-inline-block"),D=C("SPAN","goog-inline-block");a.data.Aa.nj?(x(n,e),x(q,e),x(w,e),x(D,e)):(a.data.Aa.oj?(x(n,e),x(q,e)):(x(n,g),x(q,g)),x(w,g),x(D,g));c.appendChild(n);c.appendChild(h); c.appendChild(q);c.appendChild(k);c.appendChild(w);c.appendChild(l);c.appendChild(D);c.appendChild(d);b.appendChild(c)};function au(a,b,c){xt.call(this,a);this.Xb=Wl();this.j=this.Ba=this.o=null;this.Rb=b;this.i=null;this.Vb=!!c;this.render(b);bu(this)}m(au,xt);au.prototype.va=function(){Bt(this.i).Ha();F(this.ha())};au.prototype.ai=function(a,b){xt.prototype.ai.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.ng(),this.o=this.g,cu(this))}; au.prototype.render=function(a){this.i&&(this.i.Ha(),this.j=this.Ba=null);this.i=new Wt(a,this.className,435,this.Vb);this.i.render(this.ha());bu(this);this.isVisible()&&cu(this)}; function cu(a){var b=C("DIV"),c=C("DIV");var d=zh(a.o||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.s=C("SPAN",["bookcard-badge","bookcard-sample-label"],a),b.appendChild(this.s)):!this.o||this.i.Rd()||this.i.Aa.sj||(this.s=C("SPAN",["bookcard-badge","bookcard-sample-label"], "Sample"),b.appendChild(this.s));wj(b,"mouseover",this.na.bind(this,b))};du.prototype.oa=function(){this.dispatchEvent("render");eu.dispatchEvent("complete");this.s&&yh(this.s,L(this.j).width)};du.prototype.na=function(a,b){(new au(a,this.i)).Ke(b)};function fu(a,b,c){du.call(this,a,b-40,c);this.N=C("DIV","slider-annotation");this.O=!1}m(fu,du);fu.prototype.Qc=function(a){wj(this,"render",r(this.ua,this));du.prototype.Qc.call(this,a);a.appendChild(this.N)};fu.prototype.ua=function(a){this.O||(a.stopPropagation(),a=this.ma(),this.N.appendChild(a),this.O=!0,this.dispatchEvent("render"))};function gu(a,b,c){fu.call(this,a,b,c)}m(gu,fu);gu.prototype.Qc=function(a){fu.prototype.Qc.call(this,a)};gu.prototype.ma=function(){var a=this.i,b=E("DIV"),c=C("A",{className:"slider-annotation-title"},nf(a.hb()));oe(c,a.Aa.Ug);b.appendChild(c);if(a=a.Aa.Gk)a=C("DIV","slider-annotation-author",nf(a)),b.appendChild(a);J(b,L(this.j).width+5,"");return b};function hu(){this.g=iu;this.kg=5E3}var ju=0;hu.prototype.send=function(a,b,c,d){a=a?Nc(a):{};d=d||"_"+(ju++).toString(36)+Date.now().toString(36);var e="_callbacks___"+d;b&&(p[e]=ku(d,b),a.callback=e);b={timeout:this.kg,Is:!0};e=kd.exec(jd(this.g).toString());var g=e[3]||"";e=ld(e[1]+md("?",e[2]||"",a)+md("#",g,void 0));b=xo(e,b);to(b,null,lu(d,a,c),void 0);return{lb:d,$n:b}};hu.prototype.cancel=function(a){a&&(a.$n&&a.$n.cancel(),a.lb&&mu(a.lb,!1))}; function lu(a,b,c){return function(){mu(a,!1);c&&c(b)}}function ku(a,b){return function(c){mu(a,!0);b.apply(void 0,arguments)}}function mu(a,b){a="_callbacks___"+a;if(p[a])if(b)try{delete p[a]}catch(c){p[a]=void 0}else p[a]=Da};function nu(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.s=-1;this.g=0;this.o=this.O=null;this.wa={}}u(nu,P);f=nu.prototype;f.hk=!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.Le(a.Ef);break;case "select":var c=!1;if("number"===typeof a.Ef){a=a.Ef;var d=this.i[ou(this,a)];c=!!d&&b.xl&&b.xl(d);d&&!c&&this.s!=a&&this.Le(a)}c||this.eg();break;case "canceldismiss":pu(this);break;case "dismiss":qu(this)}};f.ji=function(a){this.N!=a&&(this.N=a,this.ma.Kp(this.N,10,r(this.Mu,this)),pu(this))};f.qd=function(){return this.j.isVisible()}; function ru(a){for(var b=a.g+a.i.length-1,c=a.s,d=0;d=a.g&&cb||b>=a.i.length?-1:b}f.update=function(a){this.na.update(a)};function tu(a){var b=0,c=0;vu(a)&&(b=a.selectionStart,c=-1);return[b,c]}function vu(a){try{return"number"==typeof a.selectionStart}catch(b){return!1}};function wu(a,b,c,d){bj.call(this);d=d||150;this.j=null!=c?c:!0;this.o=a||",;";this.ua=this.o.charAt(0);a=this.j?"[\\s"+this.o+"]+":"[\\s]+";this.na=new RegExp("^"+a+"|"+a+"$","g");this.oa=new RegExp("\\s*["+this.o+"]$");this.O=b||"";this.wa=this.j;this.Ya=0b.g)c--;else{b.Ek&&c==b.g&&b.Le(-1);break}if(b.Le(c))break a}a.preventDefault();return!0}break;case 9:if(!this.g.qd()||a.shiftKey)this.g.De();else if(this.update(),this.g.eg()&&this.wa)return a.preventDefault(),!0;break;case 13:if(this.g.qd()){if(this.update(),this.g.eg())return a.preventDefault(), a.stopPropagation(),!0}else this.g.De();break;case 27:if(this.g.qd())return this.g.De(),a.preventDefault(),a.stopPropagation(),!0;break;case 229:if(!this.If)return this.If||(this.i.ka(this.Mb,"keyup",this.qp),this.i.ka(this.Mb,"keypress",this.np),this.If=!0),!0}return zu(this,a)};function zu(a,b){var c=a.j&&b.charCode&&-1!=a.o.indexOf(String.fromCharCode(b.charCode));c&&a.update();return c&&a.g.eg()?(b.preventDefault(),!0):!1}f.Mt=function(){return!1};f.Lm=function(a){yu(this,a.target||null)}; function yu(a,b){Mj(a.N);a.g&&pu(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(),a.s.attach(a.Mb),a.i.ka(a.s,"key",a.Mm),a.i.ka(a.Mb,"mousedown",a.rp),z&&a.i.ka(a.Mb,"keypress",a.mp))}f.Mq=function(){this.Mb&&(this.i.Xa(this.s,"key",this.Mm),yq(this.s),this.i.Xa(this.Mb,"keyup",this.Mt),this.i.Xa(this.Mb,"mousedown",this.rp),z&&this.i.Xa(this.Mb,"keypress",this.mp),this.If&&Au(this),this.Mb=null,this.Ya&&(this.Ya.stop(),this.i.Xa(this.Ya,"tick",this.Nm)),this.g&&qu(this.g))}; f.Nm=function(){this.update()};f.gv=function(a){this.Lm(a)};f.Mm=function(a){this.ma=a.keyCode;this.g&&this.Sc(a)};f.np=function(){this.If&&229!=this.ma&&Au(this)};f.qp=function(a){this.If&&(13==a.keyCode||77==a.keyCode&&a.ctrlKey)&&Au(this)};f.rp=function(){};function Au(a){a.If&&(a.If=!1,a.i.Xa(a.Mb,"keypress",a.np),a.i.Xa(a.Mb,"keyup",a.qp))}f.mp=function(a){zu(this,a)}; f.update=function(a){if(this.Mb&&(a||this.Ab()!=this.Dl)){if(a||!this.Rl){a=tu(this.Mb)[0];var b=this.Ab();a=uu(this,b)[su(this,b,a)];a=this.na?String(a).replace(this.na,""):a;this.g&&(this.g.O=this.Mb,this.g.ji(a,this.Ab()))}this.Dl=this.Ab()}this.Rl=!1};function su(a,b,c){a=uu(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=Nf(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&&Gu(a,b,d)}}else for(b=b.firstChild;b;)d=b.nextSibling,Gu(a,b,c),b=d}function Hu(a){var b="";if(!a)return b;Array.isArray(a)&&(a=a.filter(function(c){return!Db(Oe(c))}));Array.isArray(a)?b=0Na()-this.wa)&&this.dispatchEvent({type:"hilite",Ef:this.i[a].id})};function Ju(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 Ku;c=new Lu(this.Ka||a,this.Ba);c.ua=!0;d=new wu(null,null,!1);nu.call(this,b,c,d);d.g=this;d.Lq(a);this.O=a;this.hk=!1;this.Ek=!0;O(this,"update",r(this.Ja,this))}u(Ju,nu);Ju.prototype.eg=function(){this.La=this.ua.value;Ju.ta.eg.call(this);return!1}; Ju.prototype.Ja=function(a){a.Ef&&(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 Ku(){}var iu=ld(Xc(Yc("//suggestqueries.google.com/complete/search")));Ku.prototype.Kp=function(a,b,c){a={client:"books",ds:"bo",q:a};c=r(this.g,this,c);this.i&&this.i.cancel();this.i=new hu;this.i.send(a,c)};Ku.prototype.g=function(a,b){var c=Array.prototype.map.call(b[1],function(d){return d[0]});a(b[0],c)}; function Lu(a,b){Bu.call(this);this.Ja=a;this.La=b||0}u(Lu,Bu);Lu.prototype.ik=function(){Lu.ta.ik.call(this);var a=0,b=B("gbfwa");b||(b=$e("gbqfwa"));b&&(a=b.offsetTop+b.offsetHeight-1);Array.prototype.forEach.call(Xe("div","ac-renderer"),function(c){a&&I(c,"top",a+"px");I(c,"width",L(this.Ja).width-2+"px");I(c,"left",parseInt(c.style.left,10)+this.La+"px")},this)};function Mu(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=Wl()?"\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.o=E("A");this.o.textContent=Wl()?"\u2039":"\u203a";this.o.setAttribute("title","Scroll right");Eh(this.o,!0);this.O.appendChild(this.o); this.g.ka(this.j,"click",this.Kl.bind(this,-.75));this.g.ka(this.o,"click",this.Kl.bind(this,.75));this.wi();this.g.ka(this.j,"click",this.Kl.bind(this,-.75));this.resize();this.oa=0;this.na=z&&uc("8")&&!uc("9")&&Wl();c&&Nu(this,c)}u(Mu,W);function Ou(a){var b=Math.ceil(1.25*Pu(a));b=Math.min(a.ma.length,a.oa+b);v(a.ma.slice(a.oa,b),r(a.Xs,a));a.wi();a.oa=b;b>=a.ma.length&&a.dispatchEvent("render")}f=Mu.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.yf(a,"render",this.Zs.bind(this,b,c));a.Qc(c)};f.Zs=function(a,b){F(a);this.wi();M(b,!0)};function Nu(a,b){b=b.map(function(c){return this.N?new gu(c,this.Cb):new du(c,this.Cb,this.ua)},a);Qu(a,b)}function Qu(a,b){kb(a.ma,b);Ou(a)} f.Kl=function(a){(Wl()?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.o.className=b?"slider-button slider-button-right slider-button-disabled":"slider-button slider-button-right"};f.resize=function(){this.wi()}; function Pu(a){var b=a.N?110:50;return Math.ceil(L(a.i).width/b)};function Ru(a,b,c){W.call(this);this.i=a;this.source=b?b:"gbs_bookshelf_slider";this.ma=0;this.o=new Oj;this.ua=this.o.Fa();this.oa="";this.wa="boolean"===typeof c?!c:!1;wj(this.o,"resize",r(this.Rm,this))}m(Ru,W);f=Ru.prototype;f.Rm=function(){this.o.Fa().width>this.ua.width?this.Gh():wj(this.o,"resize",r(this.Rm,this))};f.render=function(a){this.N=a;this.j=this.hl(a);this.g.ka(this.j,"render",r(this.Gh,this))};f.hl=function(){return new Mu(this.N,!0,void 0,void 0,this.i.getId())}; f.Gh=function(){this.j.resize();var a=Math.ceil(1.25*Pu(this.j))+1,b=this.nf(this.ma,a);b&&(this.ma+=a,wl(b,r(this.mu,this)))};f.Mg=ba(2);f.mu=function(a){a=a.target;if(El(a)){if((a=(new Nt(Gl(a))).g)&&a.length){var b=ep(a[a.length-1].Aa.Ug);this.oa!=b&&(this.oa=b,Qu(this.j,Su(this,a)));(a=Kf(this.ha()))&&Ah(a,1)}else 0==this.j.oa&&this.Jp();this.dispatchEvent("success")}}; function Su(a,b){return a.Rk(b).map(function(c){return this.j.N?new gu(c,200,this.i.getId()):new du(c,80,this.i.getId())},a)}f.Jp=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 Tu(a,b,c){this.j=a;this.g=b;this.s=c||!1;a=this.Fa();this.i()?a.height=120:a.height=65;this.mb(a)}m(Tu,Jl);Tu.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.":cv(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 bv(a){a=a.hb();var b;/[^0-9]/.test(a)||Db(a)?b=null:b=Cb(a,"B")?is(a,ls):is(a,ks);return b} function cv(a,b){a=bv(a);b=bv(b);return 0==a+1-(b-1)};function dv(a,b){W.call(this);this.o=a;this.N=b;this.s=b.j;this.j=b.g;this.i=E("DIV");this.i.className="separator-container";this.o.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=We("IMG",e);if(1==b.length){b= b[0].cloneNode(!0);var g=c.insertRow(-1).insertCell(-1);tf(g,b,0);x(g,"separator-message");x(g,"separator-pubinfo-message")}b=av(this.s,this.j);e=Hf(e);c=c.insertRow(-1).insertCell(-1);g=E("SPAN");g.className="separator-text";c.appendChild(g);var h=this.N;h.i&&h.s?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=av(this.s,this.j);Eh(this.i, !0);U(this.i)}m(dv,nm);dv.prototype.mb=function(a){J(this.i,a)};dv.prototype.setPosition=function(a){jh(this.i,a)};dv.prototype.Na=function(){F(this.i)};function ev(a){var b=this;W.call(this);this.o=a;this.j=a.s;this.mb(Ih(this.j));this.Gb=new A(0,0);this.O=null;this.na=new cm(function(){M(b.O,!1)},600);cj(this,this.na)}u(ev,W);f=ev.prototype;f.mb=function(a){if(!this.i||!Ae(this.i,a)){this.i=a;var b=this.o;b.ma=a;fv(b);this.dispatchEvent("resize")}};f.Xc=function(a){this.wc=a;this.N.Na();var b=this.o,c=this.Fa();b.ma=c;fv(b);b=this.o;a=new ze(a.Bb(),a.Db());b.oa=a;b.o=!0;J(b.i,a);T(b.na,0,b);fv(b);this.dispatchEvent("layoutchange")}; function gv(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));Mp(this.N,a);this.dispatchEvent("update")};function hv(a,b){a.oa=b} f.Yc=function(a){var b=this.Gb.x,c=this.Gb.y;"number"===typeof a.x&&(a.x=ve(a.x,0,Math.max(this.wc.Bb()-this.i.width,0)));"number"===typeof a.y&&(a.y=ve(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.s&&(this.s.Ha(),this.s=null),this.s=new jm([b.x,b.y],[a.x,a.y],250+250*ve(xe(b,a)/800,0,1),mm),O(this.s,"animate",r(this.Tm,this)),O(this.s,"end",r(this.Oq,this)),this.dispatchEvent("movestart"),wj(this,"movestart",r(this.s.Ha,this.s)),this.s.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.Je=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.Oe=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(){ev.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);T(function(){a.O.style.opacity=1})};f.Sm=1;function kv(a,b){ev.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(kv,ev);f=kv.prototype;f.Ld=function(){var a=this.wc.Kd(),b=[];this.oa&&(a=this.oa.ki(a)[0]||[]);v(a,function(c){c instanceof Ul&&b.push(c.Ga())});return b};f.ih=function(a){this.hg(!1,!1);this.We(this.Ig(a))}; f.Ve=function(a){var b=[];"fixed_width"==this.Kb().Wf()&&b.push(this.Fa().width);this.ee&&(a=Op(this.ee(),this.Kb().o(),a,b))&&this.ih(a)};f.Ge=function(){this.hg(!0,!1);var a=this.Fa().width;this.We(this.Ig(a))};f.wf=ba(4);f.hg=function(a,b){this.Kg=a;this.$i=b};f.resize=function(){if(this.Kg)this.Ge();else{var a=this.Kb().o();a&&this.ih(a)}};f.We=function(a){var b=this.Kb();this.Xc(a);b&&(a=sm(new rm(b,a),this.Kc()),(a=this.Oe(a))&&this.Ed(a))};f.Od=function(){this.Xh||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(){lv&&(this.el().Na(),this.wa&&this.wa(),this.hc())};var lv=!0;function mv(a,b){this.Ea=a;this.g=b}m(mv,op);mv.prototype.render=function(a){var b=this.g(),c=a.Ga(),d=Ua(this.Ea.ee().Jf)/a.Fa().width,e=a.Fa();b.yj=e.width;b.Xg=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 nv(){};function ov(a){this.Ea=a}u(ov,nv);ov.prototype.bl=function(a){var b=this.ki(a);a=b[0]||[];b=b[1]||[];b.sort(t(pv,this.Ea.Kc()));var c=[];kb(c,a,b);return c};function pv(a,b,c){return Wg(Yg(Kl(b)),a)-Wg(Yg(Kl(c)),a)}ov.prototype.ki=function(a){var b=iv(this.Ea),c=new Xg(b.left-800,b.top-800,b.width+1600,b.height+1600);return pb(a,function(d){d=Kl(d);if(ah(c,d))return ah(b,d)?0:1})};function qv(a,b){this.Ea=b;this.V=a}m(qv,ov);qv.prototype.bl=function(a){var b=ov.prototype.bl.call(this,a),c=this.V.Ga();if(c){var d=[],e=this.V.rb();v([1,-1],function(){var g=jo(e,c.Pa(),1);g&&d.push(g)});v(a,function(g){g.Ga&&db(d,g.Ga())&&eb(b,g)})}return b};function rv(){W.call(this)}u(rv,W);rv.prototype.te=function(a){this.i=a;this.s=sv(a)};rv.prototype.va=function(){rv.ta.va.call(this);F(this.s)};function tv(a){W.call(this);this.ma=a;this.O=[]}u(tv,rv);f=tv.prototype;f.te=function(a){tv.ta.te.call(this,a);this.oh();this.Ga()&&this.g.ka(this.Ga(),"update",this.oh)};f.Ga=function(){return this.i.Ga()};f.nh=function(a,b,c,d){var e=E("div");U(e,!0);this.s.appendChild(e);a=uv(this,a,b,c,d);I(e,{position:"absolute",left:a[0]+"px",top:a[1]+"px",width:a[2]+"px",height:a[3]+"px"});this.ma&&(I(e,{backgroundColor:this.ma}),Ah(e,.3));this.O.push(new Xg(a[0],a[1],a[2],a[3]));return e}; function vv(a){return a.i.Fa().width/a.i.Ga().getParent().g.width}function uv(a,b,c,d,e){var g=vv(a);return Ya([b,c,d,e],function(h){return Math.round(h*g)})}function wv(a,b){v(b,function(c){this.nh.apply(this,c)},a)}f.io=function(a){return this.nh(a.left,a.top,a.width,a.height)};f.vg=function(){qf(this.s);this.O=[]};f.oh=Da;function xv(){tv.call(this)}m(xv,tv);f=xv.prototype;f.oh=function(){if(!this.j){var a=this.Ga();a&&(a=Ep(a))&&(wv(this,a),this.j=!0)}}; f.nh=function(a,b,c,d){this.o=tv.prototype.nh.call(this,a,b,c,d);I(this.o,{border:"2px #aaaaff dashed"});this.N=E("IMG");this.o.appendChild(this.N);this.N.src="/googlebooks/images/dialog_close_x.gif";a=uv(this,a,b,c,d);I(this.N,{position:"absolute",cursor:"pointer",left:a[2]-19+"px",top:"4px",display:"none"});O(this.o,"mouseout",r(this.Pq,this));O(this.o,"mouseover",r(this.Uo,this,!0));wj(this.N,"click",r(this.Na,this));return this.o};f.Na=function(){F(this.o)}; f.Pq=function(a){Af(this.o,a.target)||this.Uo(!1)};f.Uo=function(a){I(this.N,{display:a?"":"none"})};function yv(a){tv.call(this);this.V=a}m(yv,tv);yv.prototype.oh=function(){if(!this.j){var a=this.Ga();a&&(a=Dp(a))&&(v(a,function(b){var c=b.pop(),d=b.pop();b=this.nh.apply(this,b);I(b,{cursor:"pointer"});this.g.ka(b,"click",r(this.o,this,d,c))},this),this.j=!0)}};yv.prototype.o=function(a,b){(a=ko(this.V.rb(),a))?this.V.ub(a):To(this.V,b)};function zv(a,b){this.s=a;this.g=b}zv.prototype.Ga=function(){return this.s};zv.prototype.i=function(){return this.s.xd(this.g)};function Av(a,b,c){zv.call(this,a,b);this.j=c}m(Av,zv);Av.prototype.i=function(){return this.j.width>this.g.width?this.s.xd(this.j):zv.prototype.i.call(this)};function Bv(a,b,c,d,e){W.call(this);this.$g(a.Ia());this.V=a;this.i=c;this.na=[];this.Um=d;J(d,c);this.ua=sv(this);I(this.ua,"backgroundColor","#fff");J(this.ua,c);if(this.Ba=void 0!==e?e:!0)a=sv(this),J(a,c),this.wa=new Cv(a),this.wa.show();b&&(this.s=b,this.g.ka(b,"update",this.wg),Vo(b))}u(Bv,W);f=Bv.prototype;f.Fa=function(){return this.i};f.Ga=function(){return this.s};function Dv(a,b){a.na.push(b);b.te(a)}f.wg=Da;function Ev(a){a.dispatchEvent("load");a.Ba&&a.wa.kb()} function sv(a){var b=E("div");U(b,!0);I(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.o&&F(this.o)};function Fv(a){a.N=sv(a);J(a.N,a.Fa());I(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",fj)}f.Qq=function(a){a.display=this;Gv.dispatchEvent(a)};var Gv=new P; function Cv(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");U(c);I(c,a);this.g.appendChild(c);c.textContent="Loading...";a.bottom=0}}Cv.prototype.show=function(a){I(this.g,{display:a?"none":""})};Cv.prototype.kb=function(){this.show(!0)};Bv.prototype.Yl=function(){Hv(this)};function Hv(a,b){a.o&&F(a.o);a.o=sv(a);new Iv(a.o,a.Fa(),b)} function Iv(a,b,c){this.g=a;I(a,{backgroundColor:"#FFF",textAlign:"center"});J(a,b);N(a,Hl(c||""));U(this.g)};function Jv(a,b,c){Bv.call(this,a,b.Ga(),b.g,c);this.$g(Kv);a=sv(this);this.ma=new Lv(b.g,a);a=sv(this);this.O=new Lv(b.g,a);Fv(this);Eh(c,!0);x(c,"pageImageDisplay");this.oa=b;b.Ga()&&this.wg()}m(Jv,Bv);f=Jv.prototype;f.ub=function(a){xp(a,"output",null);Bv.prototype.ub.call(this,a);a.xd()&&this.wg()}; f.wg=function(){var a=this.Ga(),b=this.oa.i();if(b&&!this.j){b=Mv(b);wj(this.ma,"load",r(this.Rq,this,a,b,this.Fa().width));Nv(this.ma,[b]);var c=Oo(this.V.Xb,a.Pa());c.push(b);Nv(this.O,c);this.j=!0;a==this.V.Ga()&&this.dispatchEvent("fetch")}Ap(a,[16,8])&&(a=Be('%s',cp("/googlebooks/restricted_logo.gif"),"You have either reached a page that is unavailable for viewing or reached your viewing limit for this book."),Hv(this, a),Ev(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;Ev(this)};f.mc=ba(7);f.Na=function(){this.j=!1;this.ma.empty();this.O.empty();Bv.prototype.Na.call(this)};var Kv=new P,Mv=Cc;function Lv(a,b){P.call(this);this.i=a;this.j=b;this.zf=!1;this.g=E("IMG");this.g.width=this.i.width;this.j.appendChild(this.g);U(this.j)}m(Lv,P);Lv.prototype.empty=function(){for(var a;a=wf(this.j);)lp(a)}; function Nv(a,b){hp(a.g,r(a.s,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 ol(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;jv(b,new A(15*a.x,15*a.y),r(b.Ed,b))}; f.$s=function(){Ej(this.N);aj(this.O);this.O=null};function Zv(){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);wm(a,"hidden",!0);document.body.appendChild(a);this.s=a}Zv.prototype.show=function(){this.g?(this.i(),T(r(this.j,this),500)):this.j();T(r(this.i,this),6E3)};Zv.prototype.j=function(){I(this.s,"bottom","0");this.g=!0};Zv.prototype.i=function(){I(this.s,"bottom","-48px");this.g=!1};function $v(a){this.i=a;this.s=new Zv;this.j=aw(this)}$v.prototype.ha=function(){return this.j}; function aw(a){var b=C("DIV");xb(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",r(a.g,a));vm(b,"button");Gf(b,!0);O(b,"keydown",function(e){32!=e.keyCode&&13!=e.keyCode||a.g.call(a)});return b} $v.prototype.g=function(){this.i.focus();this.i.select();document.execCommand("copy");this.s.show()};function bw(a){Ar.call(this,a);jn(this);this.Vn=!1;this.g=new Hj;this.i=sp();x(a,"viewport-selection-popup");cw&&cw.Ha();cw=this}m(bw,Ar);bw.prototype.j=function(){this.dispatchEvent("close");this.Ha()}; function dw(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(nf(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 $v(b)).ha(),e.appendChild(c));a.g.ka(b,"mousedown",ew)}function ew(a){a.stopPropagation()}bw.prototype.va=function(){F(this.ha());Ar.prototype.va.call(this);this.g.Ha()};var cw=null;function fw(a,b){this.g=a instanceof A?a:new A(a,b)}u(fw,sr);fw.prototype.Pc=function(a,b,c,d){var e=Ue(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=ur(a);g-=h.x;e-=h.y;wr(new A(g,e),a,b,c,null,null,d)};function gw(a,b){fw.call(this,a,b)}u(gw,fw);gw.prototype.i=0;gw.prototype.s=function(a){this.i=a};gw.prototype.Pc=function(a,b,c,d){var e=mh(a);e=ph(e);var g=hf(Se(a).g);g=new A(this.g.x+g.scrollLeft,this.g.y+g.scrollTop);var h=b,k=wr(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=wr(g,a,h,c,e,10,d);0!=(k&496)&&wr(g,a,b,c,e,this.i,d)}};function hw(a){tv.call(this,"#4a95d6");this.j=a}m(hw,tv);hw.prototype.te=function(a){tv.prototype.te.call(this,a);I(this.s,{cursor:"pointer"});this.g.ka(this.s,"mousedown",iw)};function iw(a){a.stopPropagation()} function Wv(a,b,c,d){a.vg();Ya(b,r(a.io,a));a.N&&Ej(a.N);a.o&&a.o.Ha();b=E("div");document.body.appendChild(b);var e=Sv(a.O);if(e){var g=qh(a.s);b=new bw(b);if(c&&d){var h=a.Ga(),k=h.xd();if(k){var l=new Q(k);d=[d.left,d.top,d.width,d.height].join();R(l,"ci",d);R(l,"edge",0);l=l.toString();var n=new Q(h.Ac());R(n,"ci",d);R(n,"source","bookclip");n=Be('',n.toString(),l)}d=n;qf(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.yf(h,"click",r(b.j,b));h=C("DIV",{},"Share this clip");x(h,"selection-popup-title");n.appendChild(h);c&&(dw(b,"Selection text",c),n=E("DIV"),x(n,"selection-popup-translate-container"),b.ha().appendChild(n),h=new Q("https://translate.google.com/translate_t"),R(h,"text",c),R(h,"sl","auto"),R(h,"tl","auto"),c=E("A"),c.href=h.toString(),c.target="_blank",b.i&&(h=C("IMG"),xb(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&&dw(b,"Image",l);d&&dw(b,"Embed",d)}else c=E("DIV"),G(c,"Loading..."),x(c,"selection-popup-loading-msg"),b.ha().appendChild(c);Br(b);a.o=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);T(t(jw,b,new gw(new A(c, e))));a.N=wj(b,"close",r(a.vg,a))}}function jw(a,b){a.Hd||(a.setPosition(b),a.Da(!0))}hw.prototype.vg=function(){tv.prototype.vg.call(this);this.o&&this.o.Ha()};hw.prototype.va=function(){tv.prototype.va.call(this);this.o&&this.o.Ha();this.N&&Ej(this.N)};function kw(a,b,c){return a.Za().hj()?new Ov(a,b,c):new Jv(a,b,c)}function lw(a,b){if(b instanceof Jv){Dv(b,new Pv(a.tb()));Dv(b,new xv);var c=new hw(a.Fb()),d=new Xv(c,a.Ia());Dv(b,d);Dv(b,c);Dv(b,new yv(a))}};function mw(a,b,c){W.call(this);this.V=a;this.Ea=b;this.j=E("div");U(this.j,!0);I(this.j,{position:"absolute",display:"none"});c.appendChild(this.j);this.o=E("div");U(this.o,!0);I(this.o,{position:"absolute"});this.j.appendChild(this.o);this.N=E("div");U(this.N,!0);this.j.appendChild(this.N);this.O=E("div");U(this.O,!0);this.N.appendChild(this.O);this.kb()}u(mw,nm);f=mw.prototype; f.Qc=function(){var a=this.yj-2,b=this.Xg-2,c=this.wu-2,d=this.tu-2;I(this.N,{backgroundColor:"#cccccc",position:"absolute"});jh(this.N,0,0);J(this.N,this.yj,this.Xg);I(this.O,{overflow:"hidden",backgroundColor:"#fcfcfc",position:"absolute"});jh(this.O,1,1);J(this.O,a,b);this.show();var e=this.V;a=kw(e,new Av(this.Ga(),new ze(a,b),new ze(c,d)),this.O);a instanceof Jv?lw(e,a):a instanceof Ov&&a instanceof Ov&&Dv(a,new Pv(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.s=a};f.Ga=function(){return this.s};f.Db=function(){return this.Xg};f.Bb=function(){return this.yj};function nw(a){return a+2}f.Fa=function(){return new ze(this.yj,this.Xg)};function ow(a){W.call(this);qf(a);U(a);this.s=a;this.i=E("div");U(this.i,!0);Wl()&&(cf(a,{dir:"ltr"}),cf(this.i,{dir:"rtl"}));a.appendChild(this.i)}u(ow,W);function pw(a,b){ow.call(this,b);this.Ea=a;this.g.ka(b,"scroll",this.N);I(b,"position","relative");I(this.i,"position","absolute");this.j=E("div");x(this.j,"scroll-background");U(this.j,!0);b.appendChild(this.j);this.j.appendChild(this.i)}m(pw,ow);function fv(a){var b=a.oa;a.ma&&b&&(I(a.i,"left",Math.floor(Math.max(0,a.Ea.o.s.clientWidth-b.width)/2)+"px"),I(a.j,"height",b.height+"px"))}pw.prototype.na=function(){this.o=!1;this.N()}; pw.prototype.N=function(){if(!this.o){var a=this.Ea.Gb;if(a){a=a.clone();var b=this.s;b=new A(b.scrollLeft,b.scrollTop);we(a,b)||(this.O=!0,this.Ea.Ed(b),this.O=!1)}}};function qw(a){var b=a.Fb(),c=new pw(this,b);rw(b);kv.call(this,a,c);hv(this,new qv(a,this));gv(this,sw(this));var d=a.rb(),e=a.Za().Wf();this.ma=a.Za().O?function(g){return new Yu(d,e,g)}:a.Za().na?function(g){return new Yu(d,e,g,!0,a.Za().na)}:function(g){return new Yu(d,e,g,!0)};b=this.vb.Za();"fixed_height"==b.Wf()?(b=b.ee(),b=b[Math.floor(b.length/2)]+2):b=tw(b)+2;this.ih(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.hw)}u(qw,kv);function rw(a){I(a,"overflow","auto");I(a,{overflowX:"auto",overflowY:"scroll"});x(a,"overflow-scrolling");cf(a,{dir:"ltr"})}f=qw.prototype;f.Mc=function(){this.Ve(1)};f.jd=function(){this.Ve(-1)};f.ee=function(){var a=this.vb.Za(),b=jb(a.ee());"fixed_width"==a.Wf()&&(a=this.vb.Za().Qa)&&150a?eb(b,a):eb(b,1500));return new Np(Ya(b,nw))};f.Ig=function(a){return this.ma(a)}; f.Fa=function(){if(this.j.hasChildNodes()){var a=Ih(this.j.childNodes[0]).width;a=new ze(a,this.i.height)}else a=this.i;return a};function sw(a){var b=new Kp;Lp(b,Ul,new mv(a,t(Dc,mw,a.vb,a,a.o.i)));Lp(b,Tu,new $u(a.vb,function(c){return new dv(a.o.i,c)}));return b}f.hw=function(){if(this.Ca){var a=Nl(this.wc,this.Kc().y);a&&a.Ga&&(a=a.Ga(),this.vb.Ga()!=a&&(this.Xh=!0,this.vb.Bd(a.Pa()),this.Xh=!1))}this.Ca=!0}; f.Wt=function(){var a=this.vb.Ga(),b=this.vb.rb(),c=ko(b,a.Pa());if(!c)a:{c=ho(a);b=io(b);for(a=b.length-1;0=ho(c)&&ea.x&&(a.x=0);jh(this.i,a)};f.Ot=function(a){a.preventDefault();a.stopPropagation();this.V.Tb("previous")}; f.Da=function(a){I(this.i,{display:a?"":"none"})};f.Qc=function(){I(this.s,{left:0,top:0});I(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.o.Na();this.O.Na();for(var a;a=this.na.pop();)Ej(a);this.i.parentNode&&F(this.i)};function Iw(a){return 2*a};function Jw(a){this.V=a}m(Jw,op);Jw.prototype.render=function(a){var b=new Gw(this.V,a.Fa().width);b.setPosition(a.nd());b.Qc();b.Da(!0);return this.g=b};function Kw(a,b,c){P.call(this);this.V=a;this.j=b;this.o=L(b).width;this.N=c;this.i=!1;this.g=Wl()}m(Kw,P);Kw.prototype.xf=function(){return this.i};function Lw(a,b){if(b!=a.i){a.i=b;var c=a.V.Ia().o.i;M(c,!1);L(c);[t(Mw,a.j,a.N,a.o,a.g,b),r(a.s,a),t(M,c,!0)].forEach(T)}}Kw.prototype.s=function(){this.dispatchEvent("change")};function Mw(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 Nw=null;function Ow(a,b){Hj.call(this);this.i=Nw;this.V=a;this.g=b;this.V.Za().O||(this.ka(this.V,"pageturn",this.s),this.ka(this.g,"dispose",this.Ha))}m(Ow,Hj);Ow.prototype.s=function(){var a=this.g.ma.g.Ld()[0]||new gp,b=this.g.ma.g.Ld()[1]||new gp,c=this.O,d=this.o,e=d?ho(d):-1,g=ho(a)||-1,h=ho(b)||-1,k=Math.max(c?ho(c):-1,e),l=Math.max(g,h);if(Math.abs(l-k)>this.g.Sm){if(0l-k&&(n=-1!=h?b:a,q=d);1=ho(e[0]||e[1])&&aemail or IM"));this.ha().appendChild(a);this.s=E("input");J(this.s,"100%","auto");this.ha().appendChild(this.s);this.N&&(a=C("DIV",{style:"font-size: 13px; padding-top: 7px;"},"Embed"),this.ha().appendChild(a),this.Fe=E("input"),J(this.Fe,"100%","auto"),this.ha().appendChild(this.Fe));a=this.V.Ga();b=(new Q(window.location)).g;var c=new Q(a.Ac()); c.g=b;this.s.value=c.toString();T(t($w,this.s));this.N&&(a=new Q(a.Ac()),R(a,"output","embed"),this.Fe.value=ax(a.toString()))};Zw.prototype.Xl=function(){Yw.prototype.Xl.call(this);this.g.ka(this.s,"click",t($w,this.s));this.N&&this.g.ka(this.Fe,"click",t($w,this.Fe))};function $w(a){a.select()}function ax(a){return Be('',a)};function bx(a,b){W.call(this);this.Ea=a;this.j=b;this.i=E("div");a.o.i.appendChild(this.i);x(this.i,"sitb_result");jh(this.i,b.nd());J(this.i,b.Fa());a=E("div");x(a,"sitb-result-header");this.i.appendChild(a);this.o=E("div");x(this.o,"sitb-result-page-link");b=b.g.g;this.o.textContent=b?"Page "+b:"Page";a.appendChild(this.o);this.s=E("div");x(this.s,"sitb-result-content");this.i.appendChild(this.s);if(b=ko(this.Ea.V.rb(),this.j.g.Pa())){a=this.Ea.V.tb().getQuery();var c=b.ob.snippetSrc;c&&a==Lo(c)? cx(this,c):(a=b.nf(),"entity_page"==S(a,"source")?R(a,"source","entity_page_gbs_snippet"):R(a,"source","gbs_snippet"),vp(b,a,r(this.O,this)))}else dx(this)}m(bx,nm);bx.prototype.N=function(a){this.Ea.uf(a.g)};bx.prototype.O=function(a){(a=a.ob.snippetSrc)?cx(this,a):dx(this)};function cx(a,b){qf(a.s);var c=E("IMG");c.src=b;ex(a);b=a.j.Fa().width-25;I(c,{width:b+"px"});a.s.appendChild(c)} function ex(a){x(a.i,"sitb-result-clickable");x(a.o,"sitb-result-link");var b=Hf(a.o);N(a.o,Si(b+" »"));vm(a.i,"link");Gf(a.i,!0);a.g.ka(a.i,"click",r(a.N,a,a.j));a.g.ka(a.i,"keydown",function(c){32!=c.keyCode&&13!=c.keyCode||a.N(a.j)})} function dx(a){qf(a.s);var b=E("div");x(b,"sitb-result-snippet");a.s.appendChild(b);I(b,{width:Math.floor(.75*a.j.Fa().width)+"px"});N(b,Hl(a.j.g.i));b=E("div");x(b,"sitb-result-explanatory-link");a.s.appendChild(b);var c=ko(a.Ea.V.rb(),a.j.g.Pa());c&&c.xd()&&!Ap(c,[4,8,16])&&c.s(2)?(ex(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 Q(window.location.href),R(b,"sitesec","buy"),R(b,"source","gbs_snippet"),rk(b,"printsec"),a.href=b.toString())}bx.prototype.Na=function(){F(this.i);this.Ha()};function fx(a){this.Ea=a}m(fx,op);fx.prototype.render=function(a){return new bx(this.Ea,a)};function gx(a){this.g=a}m(gx,Jl);function hx(a,b){Uu.call(this,1);this.Jb=a;this.N=b;this.Qj=this.yi=this.marginTop=20;a.yb&&(a.yb.forEach(r(this.s,this)),Ql(this))}m(hx,Uu);hx.prototype.s=function(a){a=new gx(a);var b=Math.min(this.N-16,600);a.mb(new ze(b,Math.round(124/600*b+42)));this.Sa(a)};function ix(a){var b=a.Fb();I(b,"overflow","hidden");var c=new pw(this,b);ev.call(this,c);this.V=a;hv(this,new ov(this));this.g.ka(this,"move",this.hc);var d=B("subscription-bar");d&&(this.Yk(d),T(function(){M(d,!1)},600));gv(this,jx(this));kx(b)}u(ix,ev);function kx(a){I(a,"overflow","auto");I(a,{overflowX:"auto",overflowY:"scroll"});cf(a,{dir:"ltr"})}function jx(a){var b=new Kp;Lp(b,gx,new fx(a));return b}ix.prototype.resize=function(){lx(this)}; function lx(a){var b=new hx(a.Jb,a.Fa().width);a.Xc(b);a.hc()}ix.prototype.uf=function(a,b){return this.Ba(a,b)};function mx(a){this.g=a||{}}mx.prototype.lc=function(){return this.g};mx.prototype.qc=function(a){var b=Jc(nx,function(c){return c==a});this.g.v=b};mx.prototype.getQuery=function(){return this.g.q};var nx={onepage:qw,twopage:Vw,thumbnail:yw,snippet:ix};function ox(a,b){this.g=new Mr;O(this.g,"navigate",r(this.o,this));this.V=a;this.i=b}ox.prototype.o=function(a){px(this,a.o)};function px(a,b){if(!(a.s&&""==b||a.j))if((z||dc)&&""==b)window.history.go(-2);else if(b){var c={},d=new jk(b);v(d.ae(),function(e){var g=d.get(e);g in qx&&(g=qx[g]);c[e]=g});b=new mx(c);a.V.qc(nx[b.g.v]||qw);Lw(a.i,!!b.g.f);void 0!==b.getQuery()&&Ko(a.V.tb(),b.getQuery())}} ox.prototype.Ta=function(a){this.s=!0;this.g.Ta(a);z&&(a=(new Q(window.location)).g,px(this,a));this.s=!1};ox.prototype.update=function(){var a=new mx;a.qc(this.V.O);a.g.q=this.V.tb().getQuery();a.g.f=this.i.xf();a=uk(a.lc()).toString();this.j=!0;this.g.ji(a);this.j=!1};var qx={"true":!0,"false":!1};function rx(){this.i=[]}u(rx,Hq);Ea(rx);function sx(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=rx.prototype;f.sg=function(){return"menuitem"};f.Oc=function(a){var b=a.g.Ra("DIV",Kq(this,a).join(" "),tx(this,a.Gc(),a.g));ux(this,a,b,Pq(a,8)||Pq(a,16));return b};f.Ic=function(a){return a&&a.firstChild}; f.Sb=function(a,b){var c=wf(b),d=sx(this,2);c&&wb(c,d)||b.appendChild(tx(this,b.childNodes,a.g));wb(b,"goog-option")&&(a.ii(!0),this.ii(a,b,!0));return rx.ta.Sb.call(this,a,b)};f.tg=function(a,b){var c=this.Ic(a),d=vx(this,a)?c.firstChild:null;rx.ta.tg.call(this,a,b);d&&!vx(this,a)&&c.insertBefore(d,c.firstChild||null)};function tx(a,b,c){a=sx(a,2);return c.Ra("DIV",a,b)}f.Rp=function(a,b,c){a&&b&&ux(this,a,b,c)};f.ii=function(a,b,c){a&&b&&ux(this,a,b,c)}; function vx(a,b){return(b=a.Ic(b))?(b=b.firstChild,a=sx(a,1),!!b&&yf(b)&&wb(b,a)):!1}function ux(a,b,c,d){Nq(a,c,b.rf());Oq(a,b,c);d!=vx(a,c)&&(Ab(c,"goog-option",d),c=a.Ic(c),d?(a=sx(a,1),c.insertBefore(b.g.Ra("DIV",a),c.firstChild||null)):c.removeChild(c.firstChild))}f.Kh=function(a){switch(a){case 2:return sx(this,0);case 16:case 8:return"goog-option-selected";default:return rx.ta.Kh.call(this,a)}}; f.fj=function(a){var b=sx(this,0);switch(a){case "goog-option-selected":return 16;case b:return 2;default:return rx.ta.fj.call(this,a)}};f.Wa=function(){return"goog-menuitem"};function wx(a,b,c,d){Sq.call(this,a,d||rx.Eb(),c);this.xc(b)}u(wx,Sq);f=wx.prototype;f.Ab=function(){var a=this.Jl;return null!=a?a:this.Ng()};f.xc=function(a){this.Jl=a};f.Zb=function(a,b){wx.ta.Zb.call(this,a,b);switch(a){case 8:Qq(this,16)&&!b&&this.Ff(!1);(a=this.ha())&&this.wd().Rp(this,a,b);break;case 16:(a=this.ha())&&this.wd().ii(this,a,b)}};f.Rp=function(a){this.Zb(8,a)};f.ii=function(a){this.Zb(16,a)}; f.Ng=function(){var a=this.Gc();return Array.isArray(a)?(a=Ya(a,function(b){return yf(b)&&(wb(b,"goog-menuitem-accel")||wb(b,"goog-menuitem-mnemonic-separator"))?"":Jf(b)}).join(""),Ee(a)):wx.ta.Ng.call(this)};f.he=function(a){var b=this.getParent();if(b){var c=b.o;b.o=null;if(c&&"number"===typeof a.clientX&&we(c,new A(a.clientX,a.clientY)))return}wx.ta.he.call(this,a)};f.fe=function(a){return a.keyCode==this.Il&&this.Qe(a)?!0:wx.ta.fe.call(this,a)};f.ft=function(){return this.Il}; zq("goog-menuitem",function(){return new wx(null)});wx.prototype.rf=function(){return Pq(this,16)?"menuitemcheckbox":Pq(this,8)?"menuitemradio":wx.ta.rf.call(this)};wx.prototype.getParent=function(){return Sq.prototype.getParent.call(this)};wx.prototype.Sg=function(){return Sq.prototype.Sg.call(this)};function xx(a,b,c){wx.call(this,a,b,c);this.ii(!0)}u(xx,wx);zq("goog-checkbox-menuitem",function(){return new xx(null)});function yx(a){xx.call(this,He(a.hb()),a.getId());this.i=a}m(yx,xx);yx.prototype.Nb=function(a){xx.prototype.Nb.call(this,a);if(this.i.ye){var b=(a=1==this.i.ye)?"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:"+(Wl()?"left":"right")});a=C("DIV","goog-menuitem-accel",a,nf(String(this.i.wa)));tf(this.Ib(),a,1)}};function zx(a,b,c,d){yr.call(this,a,b,c||d);(c||d)&&this.s(65|(d?32:132))}u(zx,yr);function Ax(){}u(Ax,Hq);Ea(Ax);Ax.prototype.Wa=function(){return"goog-menuheader"};function Bx(a,b,c){Sq.call(this,a,c||Ax.Eb(),b);this.Zb(1,!1);this.Zb(2,!1);this.Zb(4,!1);this.Zb(32,!1);this.Vd=1}u(Bx,Sq);zq("goog-menuheader",function(){return new Bx(null)});function Cx(){}u(Cx,Hq);Ea(Cx);Cx.prototype.Oc=function(a){return a.g.Ra("DIV",this.Wa())};Cx.prototype.Sb=function(a,b){b.id&&a.Zg(b.id);if("HR"==b.tagName){var c=b;b=this.Oc(a);rf(b,c);F(c)}else x(b,this.Wa());return b};Cx.prototype.tg=function(){};Cx.prototype.Wa=function(){return"goog-menuseparator"};function Dx(a,b){Sq.call(this,null,a||Cx.Eb(),b);this.Zb(1,!1);this.Zb(2,!1);this.Zb(4,!1);this.Zb(32,!1);this.Vd=1}u(Dx,Sq);Dx.prototype.Ma=function(){Dx.ta.Ma.call(this);var a=this.ha();vm(a,"separator")};zq("goog-menuseparator",function(){return new Dx});function Ex(a){this.g=a||"menu"}u(Ex,Cq);Ea(Ex);f=Ex.prototype;f.ak=function(a){return"UL"==a.tagName||Ex.ta.ak.call(this,a)};f.Mh=function(a){return"HR"==a.tagName?new Dx:Ex.ta.Mh.call(this,a)};f.Zd=function(a,b){return Af(a.ha(),b)};f.rg=function(){return"goog-menu"};f.dk=function(a){Ex.ta.dk.call(this,a);a=a.ha();wm(a,"haspopup","true")};function Fx(a){Dx.call(this,Cx.Eb(),a)}u(Fx,Dx);zq("goog-menuseparator",function(){return new Dx});function Gx(a,b){fr.call(this,"vertical",b||Ex.Eb(),a);or(this,!1)}u(Gx,fr);f=Gx.prototype;f.Ck=!0;f.Zd=function(a){if(this.wd().Zd(this,a))return!0;for(var b=0,c=cn(this);bDate.now()-a.$o);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.$o=Date.now()))};f.Yu=function(){this.kb()};f.mv=function(a){Kx(this,a)}; f.nv=function(a){32!=a.keyCode&&13!=a.keyCode&&40!=a.keyCode||Kx(this,a);40==a.keyCode&&kr(this)};function Kx(a,b){for(var c=a.i.ae(),d=0;dl.endOffset)l={startOffset:e.startOffset, fh:e.fh,endOffset:l.endOffset,Eh:l.Eh};e=Ua(d)}d.push(l);e=l}k.i&&gb(g,h)}}function ly(a,b){this.startOffset=a;this.fh=void 0;this.endOffset=a;this.Eh=void 0;this.i=!1;this.g=b};function my(a,b){var c=void 0;c=void 0===c?Infinity:c;b=new jy(b);c=void 0===c?Infinity:c;var d=void 0===d?[]:d;var e=" ",g,h=fy(a);for(g=0;g=c&&(d.length=c);return d};function ny(a){var b=gy(a);a=oy();Array.prototype.forEach.call(a,function(c){py(b,c)})}function oy(){var a=[],b=jb(Ze("patent-text")),c=$e("patent-title");for(c&&b.push(c);c=b.pop();)3==c.nodeType?a.push(c):kb(b,c.childNodes);return a} function py(a,b){var c=Jf(b);a=my(c,a);if(a.length){var d=[],e=0;a.forEach(function(g){d.push(c.substring(e,g.startOffset),Xd("span",{"class":"patent-text-highlight"},c.substring(g.startOffset,g.endOffset)));e=g.endOffset});d.push(c.substring(e));a=E("span");N(a,fe(d));uf(a,b)}};function qy(){wx.call(this,"Turn off highlighting");var a=ck("dq")||ck("q");a&&ny(a);this.Pb=!0}m(qy,wx);qy.prototype.Ma=function(){wx.prototype.Ma.call(this);Y(this).ka(this,"action",this.i)};qy.prototype.i=function(){this.Pb=!this.Pb;Ab(window.document.body,"patent-highlight-disabled",!this.Pb);Yq(this,this.Pb?"Turn off highlighting":"Turn on highlighting")};function ry(){}u(ry,Cx);Ea(ry);ry.prototype.Oc=function(a){return a.g.Ra("DIV",Kq(this,a).join(" ")+" goog-inline-block","\u00a0")};ry.prototype.Sb=function(a,b){b=ry.ta.Sb.call(this,a,b);x(b,"goog-inline-block");return b};ry.prototype.Wa=function(){return"goog-toolbar-separator"};function sy(){}u(sy,Zs);Ea(sy);f=sy.prototype;f.Oc=function(a){var b=Kq(this,a);b=a.g.Ra("DIV","goog-inline-block "+b.join(" "),this.Ui(a.Gc(),a.g));this.oc(b,a.sf());return b};f.sg=function(){return"button"};f.Ic=function(a){return a&&a.firstChild&&a.firstChild.firstChild};f.Ui=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.Ei=function(a){return"DIV"==a.tagName}; f.Sb=function(a,b){ty(b,!0);ty(b,!1);a:{var c=a.g.uo(b);var d=this.Wa()+"-outer-box";if(c&&wb(c,d)&&(c=a.g.uo(c),d=this.Wa()+"-inner-box",c&&wb(c,d))){c=!0;break a}c=!1}c||b.appendChild(this.Ui(b.childNodes,a.g));xb(b,["goog-inline-block",this.Wa()]);return sy.ta.Sb.call(this,a,b)};f.Wa=function(){return"goog-custom-button"}; function ty(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(""==Fb(e))a.removeChild(c);else{c.nodeValue=b?e.replace(/^[\s\xa0]+/,""):e.replace(/[\s\xa0]+$/,"");break}}else break;c=d}};function uy(){}u(uy,sy);Ea(uy);uy.prototype.Wa=function(){return"goog-toolbar-button"};function vy(){this.g="toolbar"}u(vy,Cq);Ea(vy);vy.prototype.Mh=function(a){return"HR"==a.tagName?new Dx(ry.Eb()):vy.ta.Mh.call(this,a)};vy.prototype.rg=function(){return"goog-toolbar"};vy.prototype.ro=function(){return"horizontal"};function wy(a){vy.call(this);this.i=a}u(wy,vy);var xy={};wy.prototype.rg=function(){return this.i||"ocean-chrome-toolbar"};function yy(a){P.call(this);this.g=[];zy(this,a)}u(yy,P);f=yy.prototype;f.fg=null;f.jk=null;function Ay(a,b){a.jk=b}function zy(a,b){b&&(b.forEach(function(c){By(this,c,!1)},a),kb(a.g,b))}f.Sa=function(a){this.jf(a,this.g.length)};f.jf=function(a,b){a&&(By(this,a,!1),lb(this.g,b,0,a))};f.Kd=function(){return jb(this.g)};f.Ue=function(a){a!=this.fg&&(By(this,this.fg,!1),this.fg=a,By(this,a,!0));this.dispatchEvent("select")};f.va=function(){yy.ta.va.call(this);delete this.g;this.fg=null}; function By(a,b,c){b&&("function"==typeof a.jk?a.jk(b,c):"function"==typeof b.Wl&&b.Wl(c))};function Cy(a,b,c){fr.call(this,b,a||vy.Eb(),c)}u(Cy,fr);Cy.prototype.Ji=function(a){Cy.ta.Ji.call(this,a);this.ie||kr(this)};function Dy(a,b,c){at.call(this,a,b||uy.Eb(),c)}u(Dy,at);zq("goog-toolbar-button",function(){return new Dy(null)});function Ey(a,b){Dx.call(this,a||ry.Eb(),b)}u(Ey,Dx);zq("goog-toolbar-separator",function(){return new Ey});function Fy(a){a=a||"viewport-chrome-toolbar";a=xy[a]||(xy[a]=new wy(a));Cy.call(this,a);this.Ba={};this.j=new Hj(this)}m(Fy,Cy);function Gy(a,b,c,d){b.Zb(16,!0);if(c){var e=a.Ba[c];e||(e=new yy,Ay(e,function(g,h){g&&g.Ff(h)}),a.Ba[c]=e);e.Sa(b);b.Of&=-17;O(b,"action",function(g){e.Ue(g.target)});d&&e.Ue(b)}else b.Zc(16,!!d)}function Hy(a,b){a.Ba.viewport&&a.Ba.viewport.Ue(b)}Fy.prototype.va=function(){Cy.prototype.va.call(this);this.j.Ha();Fc(this.Ba,function(a){a.Ha()})};function Iy(){}u(Iy,Zs);Ea(Iy);f=Iy.prototype;f.Oc=function(a){var b=Kq(this,a);b=a.g.Ra("DIV","goog-inline-block "+b.join(" "),a.Gc());this.oc(b,a.sf());return b};f.sg=function(){return"button"};f.Ei=function(a){return"DIV"==a.tagName};f.Sb=function(a,b){x(b,"goog-inline-block");return Iy.ta.Sb.call(this,a,b)};f.Ab=function(){return""};f.Wa=function(){return"goog-flat-button"};zq("goog-flat-button",function(){return new at(null,Iy.Eb())});function Jy(){}u(Jy,sy);Ea(Jy);Jy.prototype.Ic=function(a){return Jy.ta.Ic.call(this,a&&a.firstChild)};Jy.prototype.Sb=function(a,b){var c=Xe("*","goog-menu",b)[0];if(c){M(c,!1);Ue(c).body.appendChild(c);var d=new Gx;an(d,c);a.Te(d)}return Jy.ta.Sb.call(this,a,b)};Jy.prototype.Ui=function(a,b){return Jy.ta.Ui.call(this,[b.Ra("DIV","goog-inline-block "+(this.Wa()+"-caption"),a),b.Ra("DIV","goog-inline-block "+(this.Wa()+"-dropdown"),"\u00a0")],b)};Jy.prototype.Wa=function(){return"goog-menu-button"};function Ky(){this.i=[]}u(Ky,rx);Ea(Ky);Ky.prototype.Oc=function(a){var b=Ky.ta.Oc.call(this,a);x(b,"goog-submenu");Ly(this,a,b);return b};Ky.prototype.Sb=function(a,b){b=Ky.ta.Sb.call(this,a,b);x(b,"goog-submenu");Ly(this,a,b);var c=Xe("DIV","goog-menu",b);if(c.length){var d=new Gx(a.g);c=c[0];M(c,!1);a.g.g.body.appendChild(c);an(d,c);a.Te(d,!0)}return b};Ky.prototype.tg=function(a,b){var c=this.Ic(a),d=c&&c.lastChild;Ky.ta.tg.call(this,a,b);d&&c.lastChild!=d&&wb(d,"goog-submenu-arrow")&&c.appendChild(d)}; Ky.prototype.Fi=function(a){Ky.ta.Fi.call(this,a);var b=a.Ib(),c=Ye(a.g.g,"SPAN","goog-submenu-arrow",b)[0];My(a,c);c!=b.lastChild&&b.appendChild(c);a=a.ha();wm(a,"haspopup","true")};function Ly(a,b,c){var d=b.g.Ra("SPAN");d.className="goog-submenu-arrow";My(b,d);a.Ic(c).appendChild(d)}function My(a,b){en(a)?(x(b,"goog-submenu-arrow-rtl"),G(b,"\u25c4")):(yb(b,"goog-submenu-arrow-rtl"),G(b,"\u25ba"))};function Ny(a,b,c,d){wx.call(this,a,b,c,d||Ky.Eb())}u(Ny,wx);f=Ny.prototype;f.qh=null;f.dm=null;f.Hl=!1;f.tc=null;f.Xi=!1;f.Ma=function(){Ny.ta.Ma.call(this);Y(this).ka(this.getParent(),"hide",this.vp);this.tc&&Oy(this,this.tc,!0)};f.kc=function(){Y(this).Xa(this.getParent(),"hide",this.vp);this.tc&&(Oy(this,this.tc,!1),this.Xi||(this.tc.kc(),F(this.tc.ha())));Ny.ta.kc.call(this)};f.va=function(){this.tc&&!this.Xi&&this.tc.Ha();this.tc=null;Ny.ta.va.call(this)}; f.Wc=function(a){Ny.ta.Wc.call(this,a);a||(this.qh&&ql(this.qh),this.qh=T(this.Ee,218,this))};f.bm=function(){var a=this.getParent();a&&jr(a)==this&&(Py(this,!0),Qy(this))};f.Ee=function(){var a=this.tc;a&&a.getParent()==this&&(Py(this,!1),bn(a,function(b){"function"==typeof b.Ee&&b.Ee()}))};function Ry(a){a.qh&&ql(a.qh);a.dm&&ql(a.dm)}f.Da=function(a,b){(a=Ny.ta.Da.call(this,a,b))&&!this.isVisible()&&this.Ee();return a}; function Qy(a){bn(a.getParent(),function(b){b!=this&&"function"==typeof b.Ee&&(b.Ee(),Ry(b))},a)}f.Sc=function(a){var b=a.keyCode,c=en(this)?37:39,d=en(this)?39:37;if(!this.Hl){if(!this.isEnabled()||b!=c&&13!=b&&b!=this.Il)return!1;this.bm();kr(Sy(this));Ry(this)}else if(!Sy(this).Sc(a))if(b==d)this.Ee();else return!1;a.preventDefault();return!0};f.$u=function(){this.tc.getParent()==this&&(Ry(this),this.Sg().Wc(this),Qy(this))};f.vp=function(a){a.target==this.Sg()&&(this.Ee(),Ry(this))}; f.Ke=function(a){this.isEnabled()&&(Ry(this),this.dm=T(this.bm,218,this));Ny.ta.Ke.call(this,a)};f.Qe=function(a){Ry(this);if(Pq(this,8)||Pq(this,16))return Ny.ta.Qe.call(this,a);this.bm();return!0}; function Py(a,b){!b&&Sy(a)&&Sy(a).Sd(-1);a.dispatchEvent(Ym(64,b));var c=Sy(a);b!=a.Hl&&Ab(a.ha(),"goog-submenu-open",b);if(b!=c.isVisible()&&(b&&(c.$a||c.render(),c.Sd(-1)),c.Da(b),b)){c=new yr(a.ha(),12,!1);var d=Sy(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 Oy(a,b,c){var d=Y(a);(c?d.ka:d.Xa).call(d,b,"enter",a.$u)}f.Sa=function(a){Sy(this).Oa(a,!0)};f.jf=function(a,b){Sy(this).Dg(a,b,!0)}; f.Kd=function(){return Sy(this).Kd()};function Sy(a){a.tc?a.Xi&&a.tc.getParent()!=a&&a.tc.ke(a):a.Te(new Gx(a.g),!0);a.tc.ha()||a.tc.Va();return a.tc}f.Te=function(a,b){var c=this.tc;a!=c&&(c&&(this.Ee(),this.$a&&Oy(this,c,!1)),this.tc=a,this.Xi=!b,a&&(a.ke(this),a.Da(!1,!0),Hx(a,!1),or(a,!1),this.$a&&Oy(this,a,!0)))};f.Zd=function(a){return Sy(this).Zd(a)};zq("goog-submenu",function(){return new Ny(null)});function Ty(a,b,c,d,e){at.call(this,a,c||Jy.Eb(),d);this.Zb(64,!0);this.o=new zx(null,9);b&&this.Te(b);this.Ya=new ol(500);this.Lb=e||Ex.Eb()}u(Ty,at);f=Ty.prototype;f.Ma=function(){Ty.ta.Ma.call(this);Uy(this,!0);this.i&&Vy(this,this.i,!0);wm(this.ya,"haspopup",!!this.i)};f.kc=function(){Ty.ta.kc.call(this);Uy(this,!1);if(this.i){this.Qb(!1);this.i.kc();Vy(this,this.i,!1);var a=this.i.ha();a&&F(a)}};f.va=function(){Ty.ta.va.call(this);this.i&&(this.i.Ha(),delete this.i);delete this.nb;this.Ya.Ha()}; f.$e=function(a){Ty.ta.$e.call(this,a);Qq(this,4)&&(this.Qb(!this.qd(),a),this.i&&(a=this.qd(),this.i.ie=a))};f.he=function(a){Ty.ta.he.call(this,a);this.i&&!Qq(this,4)&&(this.i.ie=!1)};f.Qe=function(){$q(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&&Af(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 Ny||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.Gi=function(a){this.Qb(!1);Ty.ta.Gi.call(this,a)}; function Wy(a){a.i||a.Te(new Gx(a.g,a.Lb));return a.i||null}f.Te=function(a){var b=this.i;a!=b&&(b&&(this.Qb(!1),this.$a&&Vy(this,b,!1),delete this.i),this.$a&&wm(this.ya,"haspopup",!!a),a&&(this.i=a,a.ke(this),a.Da(!1),Hx(a,!1),this.$a&&Vy(this,a,!0)));return b};f.Sa=function(a){Wy(this).Oa(a,!0)};f.jf=function(a,b){Wy(this).Dg(a,b,!0)};f.Da=function(a,b){(a=Ty.ta.Da.call(this,a,b))&&!this.isVisible()&&this.Qb(!1);return a};f.Ta=function(a){Ty.ta.Ta.call(this,a);this.isEnabled()||this.Qb(!1)}; f.Qb=function(a,b){Ty.ta.Qb.call(this,a);if(this.i&&Qq(this,64)==a){if(a)this.i.$a||this.i.render(),this.Ba=ph(this.ha()),this.ab=zh(this.ha()),Xy(this),!b||40!=b.keyCode&&38!=b.keyCode?this.i.Sd(-1):kr(this.i);else{$q(this,!1);this.i.ie=!1;var c=this.ha();c&&(wm(c,"activedescendant",""),wm(c,"owns",""));null!=this.wa&&(this.wa=void 0,(c=this.i.ha())&&J(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 Xy(a){if(a.i.$a){var b=a.nb||a.ha(),c=a.o;a.o.g=b;b=a.i.ha();a.i.isVisible()||(b.style.visibility="hidden",M(b,!0));!a.wa&&a.o.N&&a.o.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=lf(d,"TR"),l=0;2>l;l++)k.appendChild(lf(d,"TD"));g.appendChild(k)}x(e,this.className+"-table-layout");d=e.rows[0].cells;g=fz(this);d[0].appendChild(g);g=gz(this);d[1].appendChild(g);g=C("DIV",this.className+"-link"); h=C("A",{target:"_blank"},"Help with devices & formats");k=new Q(window.location.href);l=new Q("/support/bin/answer.py?answer=1062949");k=S(k,"hl")?R(l,"hl",S(k,"hl")).toString():"/support/bin/answer.py?answer=1062949";oe(h,k);g.appendChild(h);d[1].appendChild(g);c.appendChild(e);d=this.o;(e=d.Gd)&&!d.ag&&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",nf("Download ")),g&&(k=C("A",{href:g},"EPUB"),e.appendChild(k)),h&&(g&&e.appendChild(nf(", ")),g=C("A",{href:h},"PDF"),e.appendChild(g)),e.appendChild(nf(" - ")),d=d.Yb(),g=(new Q(window.location.href)).s.split("/"),g=new Q("/"+g[1]),zt(g),R(g,"output","acs_help"),R(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");oe(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 fz(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"), q=a.o.nj,w=a.o.oj,D=a.o.ag;d=new Hj(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.")):(q||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.")): (q||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."):q?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."):q&&w?this.i("This eBook is good for smartphones like Android and iPhone / iPod touch."):q?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)):q?(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 gz(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");oe(c,"/support/bin/answer.py?answer=1062949");var h=C("A",{},"Scanned pages");oe(h,"/support/bin/answer.py?answer=1062949");var k=a.o.nj,l=a.o.oj,n=a.o.ag;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 Hj(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} ez.prototype.Ba=function(){qf(this.j);var a=C("A",{target:"_blank"},"Learn more about books on Google Play");oe(a,"https://books.google.com/support/bin/topic.py?topic=28528");this.j.appendChild(a)};ez.prototype.i=function(a){qf(this.j);"string"===typeof a?this.j.appendChild(nf(a)):this.j.appendChild(a)};function hz(a,b){Z.call(this,b,void 0,3);this.o=a}m(hz,Z);hz.prototype.render=function(a){Z.prototype.render.call(this,a);x(this.ha(),"gb-get-book")};hz.prototype.Ma=function(){Z.prototype.Ma.call(this);var a=this.ha();this.i=new ez(a,this.o);this.i.render();a=B("menu_container");(a=$e("about_title",a))&&F(a)}; function iz(){var a=B("gb-buy-options-trigger");if(a&&a.parentNode&&a.parentNode.parentNode?!wb(a.parentNode.parentNode,"jfk-button"):1){a=B("gb-buy-options-trigger");var b=B("buy");if(a&&b){yb(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");tr(a,9,b,8);M(b,!1);O(document,"mousedown",t(jz,a,b))}}}function jz(a,b,c){a=Af(a,c.target);c=Af(b,c.target);var d=Bh(b);a||c||!d?a&&(M(b,!d),d||Ah(b,1)):M(b,!1)};function kz(a,b,c,d,e,g){function h(l){if(l){l.tabIndex=0;vm(l,k.wa);x(l,"goog-zippy-header");l&&k.oa.ka(l,"click",k.na);var n=k;l&&(n.O.attach(l),n.ma.ka(n.O,"key",n.ua))}}P.call(this);this.N=e||Se();this.i=this.N.ha(a)||null;this.s=this.N.ha(d||null);this.o="function"===typeof b?b:null;this.wa=g||"tab";this.j=this.o||!b?null:this.N.ha(b);this.g=1==c;void 0!==c||this.o||(this.s?this.g=Bh(this.s):this.i&&(this.g=wb(this.i,"goog-zippy-expanded")));this.ma=new Hj(this);this.O=new uq;this.oa=new Hj(this); var k=this;h(this.i);h(this.s);this.Se(this.g)}u(kz,P);kz.prototype.va=function(){kz.ta.va.call(this);aj(this.ma);aj(this.O);aj(this.oa)};kz.prototype.Se=function(a){this.j?M(this.j,a):a&&this.o&&(this.j=this.o());this.j&&x(this.j,"goog-zippy-content");this.s?(M(this.i,!a),M(this.s,a)):this.i&&(Ab(this.i,"goog-zippy-expanded",a),Ab(this.i,"goog-zippy-collapsed",!a),wm(this.i,"expanded",a));this.g=a;this.dispatchEvent(new lz("toggle",this,this.g))}; kz.prototype.ua=function(a){if(13==a.keyCode||32==a.keyCode)this.Se(!this.g),this.dispatchEvent(new lz("action",this,this.g,a)),a.preventDefault(),a.stopPropagation()};kz.prototype.na=function(a){this.Se(!this.g);this.dispatchEvent(new lz("action",this,this.g,a))};function lz(a,b){ej.call(this,a,b)}u(lz,ej);function mz(a,b,c,d){if(b.child_node&&0"+c.i.Jb.yb.length+"",""+pq(c.i.Jb)+""))):N(c.j,Si("Showing "+(c.i.Jb.yb.length+" results in this book for ")+(pq(c.i.Jb)+"")));Lz(c,!0);c=a.Jb;c!=b.Jb&&(b.Jb=c,lx(b));a=r(a.uf,a);b.Ba=a;b.Yc(new A(0, 0))} Gz.prototype.uf=function(a,b){lv=!0;var c=this.Vc.j;Lz(c,!1);c.N=Va(c.i.Jb.yb,a);c.s?(M(B("gb-mobile-search"),!0),M(B("gb-mobile-search-buttons"),!0),N(c.j,Si(Mz(c,c.N+1,c.i.Jb.yb.length,null)))):ec?N(c.j,Si(Mz(c,""+(c.N+1)+"",""+c.i.Jb.yb.length+"",""+pq(c.i.Jb)+""))):N(c.j,Si("Result "+(c.N+1+" of ")+(c.i.Jb.yb.length+" in this book for ")+(pq(c.i.Jb)+"")));c=this.Vc.V;a=ko(c.rb(),a.Pa());if(!a)return null;var d=c.Ia();d instanceof qw||d instanceof Vw||(this.Vc.s== Vw?c.qc(Vw):c.qc(qw));if(b)return c.Bd(b),null;c.Sh(a);return a};Gz.prototype.va=function(){aj(this.j);W.prototype.va.call(this)};function Nz(a){W.call(this);this.Ja=sp(a);this.s=ec&&a&&a.enableOgenEligibleMobileViewportSitb;this.na=this.o=null;this.s?(M(B("gb-mobile-search"),!0),M(B("gb-mobile-search-buttons"),!0)):(this.ma=E("DIV"),this.ua=new iq(this.ma),this.ua.render(Oz),this.ua.Da(!0),a=this.ua.ha(),x(a,"search-results-bar"),x(this.ma,"search-results-bar-contents"));this.j=this.s?B("gb-mobile-search-results-summ"):E("SPAN");this.s||this.ma.appendChild(this.j);this.oa=this.s?B("gb-mobile-search-result-links"):E("SPAN"); this.s?(Pz(this,B("gb-mobile-search-result-prev"),r(this.kj,this,-1),"Previous"),Pz(this,B("gb-mobile-search-result-next"),r(this.kj,this,1),"Next"),G(B("gb-mobile-search-result-viewall"),"View all"),Pz(this,B("gb-mobile-search-result-viewall"),r(this.No,this),"View all"),G(B("gb-mobile-search-clear"),"Clear search"),Pz(this,B("gb-mobile-search-clear"),r(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),Qz(this,this.oa,"‹ Previous",r(this.kj,this,-1),"Previous"),a=E("SPAN"),N(a,Si("  ")),x(a,"search-bar-link-spacer"),this.oa.appendChild(a),Qz(this,this.oa,"Next ›",r(this.kj,this,1),"Next"),a=E("SPAN"),N(a,Si("  -  ")),x(a,"search-bar-link-spacer"),this.oa.appendChild(a),Qz(this,this.oa,"View all",r(this.No,this)));this.O=this.s?B("gb-mobile-search-snippet-links"):E("SPAN");this.s?Rz(this):(this.Ja?(this.wa=E("DIV"),x(this.wa,"search-bar-result-buttons"), this.ma.appendChild(this.wa),this.wa.appendChild(this.O),xb(this.O,["search-bar-sort-dropdown-button-container","search-bar-close-link"]),Rz(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(nf("Order by: ")),this.O.appendChild(this.Ba),Qz(this,this.Ba,"relevance",r(this.lj,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),Qz(this,this.Ca,"pages",r(this.lj,this,"n"),"Order by pages")),x(this.O,"search-bar-snippet-links"));if(!this.s){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=Qz(this,a,"Clear search",r(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 Oz,Sz,Tz;m(Nz,W);function Uz(){Oz=B("search_bar")}function Vz(){Sz=B("toolbar_container")} function Rz(a){a.o=C("A",{"class":"search-bar-sort-dropdown-link"});vm(a.o,"button");Gf(a.o,!0);wm(a.o,"haspopup",!0);a.O.appendChild(a.o);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.o.appendChild(b);b=ft("/googlebooks/images/material/arrow_drop_down_black_20dp.png");x(b[0],"search-bar-sort-dropdown-icon");wm(b[0],"hidden",!0);a.o.appendChild(b[0]);b=new Ix;var c=new wx("relevance"); c.hi("Order by relevance");b.Oa(c,!0);x(c.ha(),"search-bar-sort-dropdown-item");c=new wx("pages");c.hi("Order by pages");b.Oa(c,!0);x(c.ha(),"search-bar-sort-dropdown-item");b.km=!0;b.render(document.body);b.attach(a.o,13,12);a.g.ka(b,"action",a.Go);a.g.ka(b,"keydown",function(d){32!=d.keyCode&&13!=d.keyCode||r(a.Go,a)})}function Lz(a,b){M(Sz,!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.uf(a.i.Jb.yb[a.N])||Xz(a,b,c))}f.lj=function(a){var b=this.i.Vc;b&&b.update(a)};f.No=function(){Iz(this.i)}; f.fu=function(a){var b=this.i.Vc;b&&(a=He(a),Ko(b.V.tb(),a),b.N.xc(a),b.o&&b.o.update())};f.Go=function(a){if((a=a.target.Gc())&&this.na)switch(a){case "pages":this.lj("n");G(this.na,"pages");break;case "relevance":this.lj("r"),G(this.na,"relevance")}};function Jz(a,b){a.o&&(Ab(a.o,"search-bar-sort-dropdown-disabled",!b),wm(a.o,"disabled",!b));var c="n"==a.i.hm;b&&!c&&G(a.na,"relevance")}function Kz(a,b,c){return a.s?b+" results":b+" results for "+c} function Mz(a,b,c,d){return a.s?b+" of "+c:"Result "+b+" of "+c+" for "+d};function Yz(a,b,c,d){W.call(this);this.V=a;this.N=b;this.o=c;this.O=d;this.g.ka(a.tb(),"change",r(this.update,this,"r",null))}m(Yz,W); Yz.prototype.update=function(a,b,c){this.i?(this.i.Ha(),this.i=null):(this.V.O&&(this.s=this.V.O),this.j=new Nz(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.s&&G(a.s,String(1==a.o?b:a.i-b))}iA.prototype.va=function(){iA.ta.va.call(this);delete this.g;this.j.Ha();this.j=null};function kA(a,b,c,d,e){eA.call(this,a,b,null,!0);this.ab=c;this.Rb=d;this.Ca=e}m(kA,eA); kA.prototype.Va=function(){eA.prototype.Va.call(this);this.o=lA(this,"Name","input");this.nb=lA(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",r(this.Ka,this,!0));e=C("SPAN",{"class":"ccd-mode-link"});e.textContent="Make private";b.appendChild(e);O(e,"click",r(this.Ka,this,!1));this.xe=[a,e];this.we=[c,d];null!= this.Ca&&(cf(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&&mA(this);$o.IsZipitFolderCollectionEnabled||(b=this.j,a=Fn(b,"ok"),I(a,"fontWeight","bold"),x(a,"gb-button"),x(Fn(b,"cancel"),"gb-button"))}; function mA(a){a.o.value=He(a.i.hb());a.o.disabled=a.i.O;a.nb.value=He(a.i.Og());a.Ka(1==a.i.ye);a.o.disabled&&I(a.o,"background","#f2f2f2")}function lA(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?(cf(b,{type:"text"}),b.setAttribute("maxlength",100)):"textarea"==c&&(cf(b,{rows:6,cols:50}),new iA(b,E("span"),500));a.appendChild(b);return b} kA.prototype.Ka=function(a){this.ve=a;v(this.xe,function(b){M(b,a)});v(this.we,function(b){M(b,!a)})}; kA.prototype.Ua=function(a){var b=this.o.value;if("cancel"==a.key)return!0;if(Db(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 Ht;a.Ec=b;a.s=this.nb.value;a.ye=this.ve?1:2;if(this.i){b=this.ab;var c=new Q(b.fq);R(c,"as_coll",a.getId());St(c,a,r(b.N,b))}else b=this.ab,St(b.s,a,r(b.o,b,!0));return!0}; kA.prototype.va=function(){delete this.ab;delete this.Ca;delete this.i;delete this.na;delete this.Vb;delete this.o;delete this.nb;delete this.Rb;eA.prototype.va.call(this)};function nA(a,b,c,d,e){W.call(this);this.O=a;this.j=b;this.N=c;this.i=d;this.O&&(this.s=Ya(this.O.childNodes,oA),this.i&&kb(this.s,Ya(this.i.childNodes,oA)));this.o=e;T(r(this.pr,this))}u(nA,W);f=nA.prototype;f.pr=function(){this.j&&this.i&&this.g.ka(this.j,"click",this.eq);this.N&&this.g.ka(this.N,"click",this.st);this.g.ka(this.o,"add",this.Bs)}; function oA(a){var b=Xe("SPAN","sidebar-collection-title",a)[0];b||(b=Xe("SPAN","hp-collection-title",a)[0]);if(!b)return"";a=Fb(De(Hf(b)));return Fb(a.split("(")[0])}f.st=function(){var a=new kA("Create new bookshelf","Create bookshelf",this.o,r(this.Hu,this));a.render();a.Da(!0)};f.Hu=function(a){var b=Fb(De(a)).toLowerCase();return!ab(this.s,function(c){return c.toLowerCase()==b})}; f.Bs=function(a){a=a.shelf;var b=Fb(De(a.hb())),c=1==a.ye;this.s.push(b);var d=new Q("/books");zt(d);R(d,"as_coll",a.getId());R(d,"source","gbs_lp_bookshelf_list");if($o.IsBooksUnifiedLeftNavEnabled){a=C("LI",{"class":"left-nav-shelf-item"});var e=C("A",{"class":"sidebar-link"});oe(e,d.toString());d=C("SPAN");x(d,"sidebar-collection-title");N(d,Hl(b+" (0)"));e.appendChild(d);a.appendChild(e);c=B("hidden-my-library-expanded");rf(a,c);dA(!0,"my-library")}else a=E("DIV"),e=C("A",{"class":"hp-bookshelf-link", style:"line-height:19px"}),oe(e,d.toString()),d=C("SPAN",{"class":"hp-collection-title"}),N(d,Hl(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),sf(a,B("csStart"))}; f.eq=function(a){a.preventDefault();a=!Bh(this.i);M(this.i,a);a?(tr(this.j,9,this.i,8),200