(function(){var GBS_HOST = "http://www.google.com/";var f,aa=[];function ba(a){return function(){return aa[a].apply(this,arguments)}}function ca(a,b){return aa[a]=b}var da=typeof Object.create=="function"?Object.create:function(a){function b(){}b.prototype=a;return new b},ea=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a}; function fa(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b0;){var a=this.g.pop();if(a in this.j)return a}return null};za.prototype.getNext=za.prototype.i;function Ba(a){this.g=new va;this.i=a}function Ca(a,b){wa(a.g);var c=a.g.l;if(c)return Da(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g.return);a.g.return(b);return Ea(a)} function Da(a,b,c,d){try{var e=b.call(a.g.l,c);ua(e);if(!e.done)return a.g.V=!1,e;var g=e.value}catch(h){return a.g.l=null,ya(a.g,h),Ea(a)}a.g.l=null;d.call(a.g,g);return Ea(a)}function Ea(a){for(;a.g.g;)try{var b=a.i(a.g);if(b)return a.g.V=!1,{value:b.value,done:!1}}catch(c){a.g.o=void 0,ya(a.g,c)}a.g.V=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.Ho)throw b.Tn;return{value:b.return,done:!0}}return{value:void 0,done:!0}} function Fa(a){this.next=function(b){wa(a.g);a.g.l?b=Da(a,a.g.l.next,b,a.g.ma):(a.g.ma(b),b=Ea(a));return b};this.throw=function(b){wa(a.g);a.g.l?b=Da(a,a.g.l["throw"],b,a.g.ma):(ya(a.g,b),b=Ea(a));return b};this.return=function(b){return Ca(a,b)};this[Symbol.iterator]=function(){return this}}function Ga(a){function b(d){return a.next(d)}function c(d){return a.throw(d)}return new Promise(function(d,e){function g(h){h.done?d(h.value):Promise.resolve(h.value).then(b,c).then(g,e)}g(a.next())})} function Ha(a){return Ga(new Fa(new Ba(a)))}function Ka(){for(var a=Number(this),b=[],c=a;c>>0)+"_",e=0;return b}); ia("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");ea(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return La(oa(this))}});return a});function La(a){a={next:a};a[Symbol.iterator]=function(){return this};return a} ia("Promise",function(a){function b(h){this.g=0;this.j=void 0;this.i=[];this.U=!1;var k=this.l();try{h(k.resolve,k.reject)}catch(l){k.reject(l)}}function c(){this.g=null}function d(h){return h instanceof b?h:new b(function(k){k(h)})}if(a)return a;c.prototype.i=function(h){if(this.g==null){this.g=[];var k=this;this.j(function(){k.o()})}this.g.push(h)};var e=ha.setTimeout;c.prototype.j=function(h){e(h,0)};c.prototype.o=function(){for(;this.g&&this.g.length;){var h=this.g;this.g=[];for(var k=0;k=g}});ia("Number.isFinite",function(a){return a?a:function(b){return typeof b!=="number"?!1:!isNaN(b)&&b!==Infinity&&b!==-Infinity}}); ia("String.prototype.repeat",function(a){return a?a:function(b){var c=Pa(this,null,"repeat");if(b<0||b>1342177279)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});ia("Array.prototype.find",function(a){return a?a:function(b,c){a:{var d=this;d instanceof String&&(d=String(d));for(var e=d.length,g=0;g=0&&b56319||b+1===d)return e;b=c.charCodeAt(b+1);return b<56320||b>57343?e:(e-55296)*1024+b+9216}}}); ia("String.fromCodePoint",function(a){return a?a:function(b){for(var c="",d=0;d1114111||e!==Math.floor(e))throw new RangeError("invalid_code_point "+e);e<=65535?c+=String.fromCharCode(e):(e-=65536,c+=String.fromCharCode(e>>>10&1023|55296),c+=String.fromCharCode(e&1023|56320))}return c}});ia("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Ma(b,d)&&c.push([d,b[d]]);return c}}); ia("Array.prototype.values",function(a){return a?a:function(){return Oa(this,function(b,c){return c})}});ia("Array.from",function(a){return a?a:function(b,c,d){c=c!=null?c:function(k){return k};var e=[],g=typeof Symbol!="undefined"&&Symbol.iterator&&b[Symbol.iterator];if(typeof g=="function"){b=g.call(b);for(var h=0;!(g=b.next()).done;)e.push(c.call(d,g.value,h++))}else for(g=b.length,h=0;h>>0),$a=0;function ab(a,b,c){return a.call.apply(a.bind,arguments)} function bb(a,b,c){if(!a)throw Error();if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}}function r(a,b,c){r=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?ab:bb;return r.apply(null,arguments)} function t(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}}function cb(){return Date.now()}function db(a,b){a=a.split(".");for(var c=q,d;a.length&&(d=a.shift());)a.length||b===void 0?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b} function u(a,b){function c(){}c.prototype=b.prototype;a.oa=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.rw=function(d,e,g){for(var h=Array(arguments.length-2),k=2;k=0;c--)if(c in a&&a[c]===b)return c;return-1},v=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=typeof a==="string"?a.split(""):a,g=0;g=0}function sb(a,b){rb(a,b)||a.push(b)}function tb(a,b){b=ib(a,b);var c;(c=b>=0)&&ub(a,b);return c}function ub(a,b){Array.prototype.splice.call(a,b,1)}function vb(a,b){b=qb(a,b);b>=0&&ub(a,b)}function wb(a){return Array.prototype.concat.apply([],arguments)} function xb(a){var b=a.length;if(b>0){for(var c=Array(b),d=0;db?1:a0?Array.prototype.unshift.apply(a,a.splice(-b,b)):b<0&&Array.prototype.push.apply(a,a.splice(0,-b))}return a};function Gb(a,b,c){return Math.min(Math.max(a,b),c)};function w(a,b){this.x=a!==void 0?a:0;this.y=b!==void 0?b:0}f=w.prototype;f.clone=function(){return new w(this.x,this.y)};function Hb(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1}function Ib(a,b){var c=a.x-b.x;a=a.y-b.y;return Math.sqrt(c*c+a*a)}function Jb(a,b){return new w(a.x-b.x,a.y-b.y)}f.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};f.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; f.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};f.Hj=function(a,b){this.x*=a;this.y*=typeof b==="number"?b:a;return this};function Kb(a,b){this.width=a;this.height=b}function Lb(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1}f=Kb.prototype;f.clone=function(){return new Kb(this.width,this.height)};f.aspectRatio=function(){return this.width/this.height};f.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};f.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; f.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Mb(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Nb(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1}function Ob(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c}function Pb(){var a=Qb,b;for(b in a)return!1;return!0}function Rb(a,b,c){if(a!==null&&b in a)throw Error('The object already contains the key "'+b+'"');a[b]=c}var Sb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "); function Tb(a,b){for(var c,d,e=1;e=0&&a.indexOf(b,c)==c}function Wb(a){return/^[\s\xa0]*$/.test(a)}var Xb=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]}; function Yb(a){if(!Zb.test(a))return a;a.indexOf("&")!=-1&&(a=a.replace($b,"&"));a.indexOf("<")!=-1&&(a=a.replace(ac,"<"));a.indexOf(">")!=-1&&(a=a.replace(bc,">"));a.indexOf('"')!=-1&&(a=a.replace(cc,"""));a.indexOf("'")!=-1&&(a=a.replace(dc,"'"));a.indexOf("\x00")!=-1&&(a=a.replace(ec,"�"));return a}var $b=/&/g,ac=//g,cc=/"/g,dc=/'/g,ec=/\x00/g,Zb=/[\x00&<>"']/;function fc(a,b){return a.indexOf(b)!=-1} function hc(a,b){var c=0;a=Xb(String(a)).split(".");b=Xb(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;c==0&&eb?1:0};/* Copyright Google LLC SPDX-License-Identifier: Apache-2.0 */ function jc(a){return{valueOf:a}.valueOf()};var kc=globalThis.trustedTypes,lc=kc,mc;function nc(){var a=null;if(!lc)return a;try{var b=function(c){return c};a=lc.createPolicy("goog#html",{createHTML:b,createScript:b,createScriptURL:b})}catch(c){}return a}function oc(){mc===void 0&&(mc=nc());return mc};function pc(a){this.g=a}pc.prototype.toString=function(){return this.g+""};function qc(a){var b=oc();a=b?b.createScriptURL(a):a;return new pc(a)}function rc(a){if(a instanceof pc)return a.g;throw Error("");};function sc(a){this.g=a}sc.prototype.toString=function(){return this.g};var tc=new sc("about:invalid#zClosurez");function vc(a){if(a instanceof sc)return a.g;throw Error("");};function wc(a){this.fl=a}function xc(a){return new wc(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})}var yc=[xc("data"),xc("http"),xc("https"),xc("mailto"),xc("ftp"),new wc(function(a){return/^[^:]*([/?#]|$)/.test(a)})];function zc(a){var b=b===void 0?yc:b;a:if(b=b===void 0?yc:b,!(a instanceof sc)){for(var c=0;c1;)d+=c.shift()+e.shift();return d+c.join("%s")}function Yc(a){return a.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")}function Zc(a){return a.replace(/\xa0|[ \t]+/g," ")}function $c(a){return a.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")}function bd(a){return encodeURIComponent(String(a))}function cd(a){return decodeURIComponent(a.replace(/\+/g," "))} function dd(a){return a=Yb(a)}function ed(a){return fc(a,"&")?"document"in q?fd(a):gd(a):a}function fd(a){var b={"&":"&","<":"<",">":">",""":'"'};var c=q.document.createElement("div");return a.replace(hd,function(d,e){var g=b[d];if(g)return g;e.charAt(0)=="#"&&(e=Number("0"+e.slice(1)),isNaN(e)||(g=String.fromCharCode(e)));g||(x(c,Hc(d+" ")),g=c.firstChild.nodeValue.slice(0,-1));return b[d]=g})} function gd(a){return a.replace(/&([^;]+);/g,function(b,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return c.charAt(0)!="#"||(c=Number("0"+c.slice(1)),isNaN(c))?b:String.fromCharCode(c)}})}var hd=/&([^;\s<&]+);?/g;function id(a,b){a.length>b&&(a=a.substring(0,b-3)+"...");return a}function jd(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#0:!1}function wd(){return vd()?!1:ud("Opera")}function xd(){return vd()?!1:ud("Trident")||ud("MSIE")}function yd(){return ud("Firefox")||ud("FxiOS")}function zd(){return vd()?td("Chromium"):(ud("Chrome")||ud("CriOS"))&&!(vd()?0:ud("Edge"))||ud("Silk")} function Ad(){var a=qd();if(xd()){var b=/rv: *([\d\.]*)/.exec(a);if(b&&b[1])a=b[1];else{b="";var c=/MSIE +([\d\.]+)/.exec(a);if(c&&c[1])if(a=/Trident\/(\d.\d)/.exec(a),c[1]=="7.0")if(a&&a[1])switch(a[1]){case "4.0":b="8.0";break;case "5.0":b="9.0";break;case "6.0":b="10.0";break;case "7.0":b="11.0"}else b="7.0";else b=c[1];a=b}}else a="";return a} function Bd(){if(vd()){var a=rd.brands.find(function(b){return b.brand==="Internet Explorer"});if(!a||!a.version)return NaN;a=a.version.split(".")}else{a=Ad();if(a==="")return NaN;a=a.split(".")}return a.length===0?NaN:Number(a[0])};function Cd(){return od?!!rd&&!!rd.platform:!1}function Dd(){return ud("iPhone")&&!ud("iPod")&&!ud("iPad")}function Ed(){return Dd()||ud("iPad")||ud("iPod")}function Fd(){return Cd()?rd.platform==="macOS":ud("Macintosh")};function Gd(a){Gd[" "](a);return a}Gd[" "]=function(){};function Hd(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};var Id=wd(),Jd=xd(),Kd=ud("Edge"),Ld=ud("Gecko")&&!(fc(qd().toLowerCase(),"webkit")&&!ud("Edge"))&&!(ud("Trident")||ud("MSIE"))&&!ud("Edge"),Md=fc(qd().toLowerCase(),"webkit")&&!ud("Edge"),Nd=Md&&ud("Mobile"),Od=Fd(),Pd=Cd()?rd.platform==="Windows":ud("Windows"),Qd=(Cd()?rd.platform==="Linux":ud("Linux"))||(Cd()?rd.platform==="Chrome OS":ud("CrOS")),Rd=Cd()?rd.platform==="Android":ud("Android"),Sd=Dd(),Td=ud("iPad"),Ud=ud("iPod"),Vd=Ed(),Wd; a:{var Xd="",Yd=function(){var a=qd();if(Ld)return/rv:([^\);]+)(\)|;)/.exec(a);if(Kd)return/Edge\/([\d\.]+)/.exec(a);if(Jd)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Md)return/WebKit\/(\S+)/.exec(a);if(Id)return/(?:Version)[ \/]?(\S+)/.exec(a)}();Yd&&(Xd=Yd?Yd[1]:"");if(Jd){var Zd,$d=q.document;Zd=$d?$d.documentMode:void 0;if(Zd!=null&&Zd>parseFloat(Xd)){Wd=String(Zd);break a}}Wd=Xd}var ae=Wd,be={};function ce(a){return Hd(be,a,function(){return hc(ae,a)>=0})};function de(a,b){if(a instanceof Gc)return a;a=ee(String(a));if(b==null?0:b.Ew)a=a.replace(/(^|[\r\n\t ]) /g,"$1 ");if(b==null?0:b.Mh)a=a.replace(/(\r\n|\n|\r)/g,"
");if(b==null?0:b.Fw)a=a.replace(/(\t+)/g,'$1');return Hc(a)} function fe(a){var b={nonce:Lc("script",document)};if(a instanceof Mc)a=a.g;else throw Error("");a=a.toString();var c=""+a+"\x3c/script>"))}function ee(a){return a.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function ge(a){return he(a)} function he(a){var b=de("");return Hc(a.map(function(c){return Jc(de(c))}).join(Jc(b).toString()))}var ie=/^[a-z][a-z\d-]*$/i,je="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),ke="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),le=["action","formaction","href"];function me(a){if(!ie.test(a))throw Error("");if(je.indexOf(a.toUpperCase())!==-1)throw Error("");} function ne(a,b,c){me(a);var d="<"+a;b&&(d+=oe(b));Array.isArray(c)||(c=c===void 0?[]:[c]);ke.indexOf(a.toUpperCase())!==-1?d+=">":(b=ge(c.map(function(e){return e instanceof Gc?e:de(String(e))})),d+=">"+b.toString()+"");return Hc(d)} function oe(a){for(var b="",c=Object.keys(a),d=0;d")+1,c.lastIndexOf("2&&pf(a,d,b,2);return d} function pf(a,b,c,d){function e(k){k&&b.appendChild(typeof k==="string"?a.createTextNode(k):k)}for(;d0)e(g);else{a:{if(g&&typeof g.length=="number"){if(Xa(g)){var h=typeof g.item=="function"||typeof g.item=="string";break a}if(typeof g==="function"){h=typeof g.item=="function";break a}}h=!1}v(h?xb(g):g,e)}}}function C(a){return of(document,a)} function of(a,b){b=String(b);a.contentType==="application/xhtml+xml"&&(b=b.toLowerCase());return a.createElement(b)}function qf(a){return document.createTextNode(String(a))}function rf(a,b){a.appendChild(b)}function sf(a,b){pf(Ze(a),a,arguments,1)}function tf(a){for(var b;b=a.firstChild;)a.removeChild(b)}function uf(a,b){b.parentNode&&b.parentNode.insertBefore(a,b)}function vf(a,b){b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling)} function wf(a,b,c){a.insertBefore(b,a.childNodes[c]||null)}function E(a){return a&&a.parentNode?a.parentNode.removeChild(a):null}function xf(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)}function yf(a){return a.children!=void 0?a.children:Array.prototype.filter.call(a.childNodes,function(b){return b.nodeType==1})}function zf(a){return a.firstElementChild!==void 0?a.firstElementChild:Af(a.firstChild,!0)}function Af(a,b){for(;a&&a.nodeType!=1;)a=b?a.nextSibling:a.previousSibling;return a} function Bf(a){return Xa(a)&&a.nodeType==1}function Cf(a,b){if(!a||!b)return!1;if(a.contains&&b.nodeType==1)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}function Ze(a){return a.nodeType==9?a:a.ownerDocument||a.document} function G(a,b){if("textContent"in a)a.textContent=b;else if(a.nodeType==3)a.data=String(b);else if(a.firstChild&&a.firstChild.nodeType==3){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=String(b)}else tf(a),a.appendChild(Ze(a).createTextNode(String(b)))}var Df={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Ef={IMG:" ",BR:"\n"};function Ff(a){return a.hasAttribute("tabindex")&&Gf(a)}function Hf(a,b){b?a.tabIndex=0:(a.tabIndex=-1,a.removeAttribute("tabIndex"))} function Gf(a){a=a.tabIndex;return typeof a==="number"&&a>=0&&a<32768}function If(a){var b=[];Jf(a,b,!0);a=b.join("");a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");a=a.replace(/ +/g," ");a!=" "&&(a=a.replace(/^\s*/,""));return a}function Kf(a){var b=[];Jf(a,b,!1);return b.join("")} function Jf(a,b,c){if(!(a.nodeName in Df))if(a.nodeType==3)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in Ef)b.push(Ef[a.nodeName]);else for(a=a.firstChild;a;)Jf(a,b,c),a=a.nextSibling}function Lf(a){return Mf(a,function(b){return b.nodeName=="DIV"&&typeof b.className==="string"&&rb(b.className.split(/\s+/),"slider-box")})}function Mf(a,b){for(var c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null} function Nf(a){try{var b=a&&a.activeElement;return b&&b.nodeName?b:null}catch(c){return null}}function Ye(a){this.g=a||q.document||document}f=Ye.prototype;f.ha=function(a){return $e(this.g,a)};f.getElementsByTagName=function(a,b){return(b||this.g).getElementsByTagName(String(a))};f.Pa=function(a,b,c){return nf(this.g,arguments)};function Of(a,b){return of(a.g,b)}function Pf(a){return kf(a.g)}f.appendChild=rf;f.dm=sf;f.hm=tf;f.mu=uf;f.lu=vf;f.ci=E;f.Xn=yf;f.Zn=zf;f.pu=Bf;f.fm=Cf;function Qf(a){a&&typeof a.dispose=="function"&&a.dispose()};function Rf(){this.qd=this.qd;this.Ka=this.Ka}Rf.prototype.qd=!1;Rf.prototype.dispose=function(){this.qd||(this.qd=!0,this.wa())};Rf.prototype[Symbol.dispose]=function(){this.dispose()};function Sf(a,b){b=t(Qf,b);a.qd?b():(a.Ka||(a.Ka=[]),a.Ka.push(b))}Rf.prototype.wa=function(){if(this.Ka)for(;this.Ka.length;)this.Ka.shift()()};function Tf(a){this.id=a}Tf.prototype.toString=function(){return this.id};function Uf(a,b){this.type=a instanceof Tf?String(a):a;this.currentTarget=this.target=b;this.defaultPrevented=this.g=!1}Uf.prototype.stopPropagation=function(){this.g=!0};Uf.prototype.preventDefault=function(){this.defaultPrevented=!0};function Vf(a){a.preventDefault()};var Wf=function(){if(!q.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{var c=function(){};q.addEventListener("test",c,b);q.removeEventListener("test",c,b)}catch(d){}return a}();function Xf(a,b){Uf.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.Al=!1;this.pointerId=0;this.pointerType="";this.timeStamp=0;this.Rb=null;a&&this.init(a,b)}u(Xf,Uf); Xf.prototype.init=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;b||(c=="mouseover"?b=a.fromElement:c=="mouseout"&&(b=a.toElement));this.relatedTarget=b;d?(this.clientX=d.clientX!==void 0?d.clientX:d.pageX,this.clientY=d.clientY!==void 0?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.offsetX=Md||a.offsetX!==void 0?a.offsetX:a.layerX,this.offsetY= Md||a.offsetY!==void 0?a.offsetY:a.layerY,this.clientX=a.clientX!==void 0?a.clientX:a.pageX,this.clientY=a.clientY!==void 0?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||(c=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.Al=Od?a.metaKey:a.ctrlKey;this.pointerId=a.pointerId||0;this.pointerType=a.pointerType;this.state= a.state;this.timeStamp=a.timeStamp;this.Rb=a;a.defaultPrevented&&Xf.oa.preventDefault.call(this)};function Yf(a){return a.Rb.button==0&&!(Od&&a.ctrlKey)}Xf.prototype.stopPropagation=function(){Xf.oa.stopPropagation.call(this);this.Rb.stopPropagation?this.Rb.stopPropagation():this.Rb.cancelBubble=!0};Xf.prototype.preventDefault=function(){Xf.oa.preventDefault.call(this);var a=this.Rb;a.preventDefault?a.preventDefault():a.returnValue=!1};var Zf="closure_listenable_"+(Math.random()*1E6|0);function $f(a){return!(!a||!a[Zf])};var ag=0;function bg(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Ti=e;this.key=++ag;this.Hg=this.Ci=!1}function cg(a){a.Hg=!0;a.listener=null;a.proxy=null;a.src=null;a.Ti=null};function dg(a){this.src=a;this.g={};this.i=0}f=dg.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=eg(a,b,d,e);h>-1?(b=a[h],c||(b.Ci=!1)):(b=new bg(b,this.src,g,!!d,e),b.Ci=c,a.push(b));return b};f.remove=function(a,b,c,d){a=a.toString();if(!(a in this.g))return!1;var e=this.g[a];b=eg(e,b,c,d);return b>-1?(cg(e[b]),ub(e,b),e.length==0&&(delete this.g[a],this.i--),!0):!1}; function fg(a,b){var c=b.type;c in a.g&&tb(a.g[c],b)&&(cg(b),a.g[c].length==0&&(delete a.g[c],a.i--))}f.zg=ba(1);f.uh=function(a,b,c,d){a=this.g[a.toString()];var e=-1;a&&(e=eg(a,b,c,d));return e>-1?a[e]:null};f.hasListener=function(a,b){var c=a!==void 0,d=c?a.toString():"",e=b!==void 0;return Nb(this.g,function(g){for(var h=0;h>>0);function kg(a){if(typeof a==="function")return a;a[tg]||(a[tg]=function(b){return a.handleEvent(b)});return a[tg]};function ug(a){Rf.call(this);this.N=a;this.l={}}u(ug,Rf);var vg=[];f=ug.prototype;f.ka=function(a,b,c,d){return wg(this,a,b,c,d)};function xg(a,b,c,d,e){wg(a,b,c,d,!1,e)}function wg(a,b,c,d,e,g){Array.isArray(c)||(c&&(vg[0]=c.toString()),c=vg);for(var h=0;h=a.left&&b.right<=a.right&&b.top>=a.top&&b.bottom<=a.bottom:b.x>=a.left&&b.x<=a.right&&b.y>=a.top&&b.y<=a.bottom:!1}function Dg(a,b){var c=b.xa.right?b.x-a.right:0;a=b.ya.bottom?b.y-a.bottom:0;return Math.sqrt(c*c+a*a)} f.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};f.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};f.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};function Eg(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}f=Eg.prototype;f.clone=function(){return new Eg(this.left,this.top,this.width,this.height)};function Fg(a){return new Ag(a.top,a.left+a.width,a.top+a.height,a.left)}function Gg(a){return new Eg(a.left,a.top,a.right-a.left,a.bottom-a.top)} function Hg(a,b){var c=Math.max(a.left,b.left),d=Math.min(a.left+a.width,b.left+b.width);if(c<=d){var e=Math.max(a.top,b.top);b=Math.min(a.top+a.height,b.top+b.height);if(e<=b)return a.left=c,a.top=e,a.width=d-c,a.height=b-e,!0}return!1}function Ig(a,b){var c=Math.max(a.left,b.left),d=Math.min(a.left+a.width,b.left+b.width);if(c<=d){var e=Math.max(a.top,b.top);a=Math.min(a.top+a.height,b.top+b.height);if(e<=a)return new Eg(c,e,d-c,a-e)}return null} function Jg(a,b){return a.left<=b.left+b.width&&b.left<=a.left+a.width&&a.top<=b.top+b.height&&b.top<=a.top+a.height}function Kg(a,b){if(!a||!b)return null;a=new Eg(a.left,a.top,a.width,a.height);var c=Math.max(a.left+a.width,b.left+b.width),d=Math.max(a.top+a.height,b.top+b.height);a.left=Math.min(a.left,b.left);a.top=Math.min(a.top,b.top);a.width=c-a.left;a.height=d-a.top;return a}f.getSize=function(){return new Kb(this.width,this.height)}; f.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};f.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};f.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function J(a,b,c){if(typeof b==="string")Lg(a,c,b);else for(var d in b)Lg(a,b[d],d)}var Mg=/^--.+/;function Lg(a,b,c){(c=Ng(a,c))&&(Mg.test(c)?a.style.setProperty(c,b):a.style[c]=b)}var Og={};function Ng(a,b){var c=Og[b];if(!c){var d=md(b);c=d;a.style[d]===void 0&&(d=(Md?"Webkit":Ld?"Moz":null)+nd(d),a.style[d]!==void 0&&(c=d));Og[b]=c}return c}function Pg(a,b){var c=a.style[md(b)];return typeof c!=="undefined"?c:a.style[Ng(a,b)]||""} function Qg(a,b){var c=Ze(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""}function Rg(a,b){return Qg(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}function Sg(a){return Rg(a,"position")}function Tg(a,b,c){if(b instanceof w){var d=b.x;b=b.y}else d=b,b=c;a.style.left=Ug(d,!1);a.style.top=Ug(b,!1)}function Vg(a){return new w(a.offsetLeft,a.offsetTop)} function Wg(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}}function Xg(a){var b=Ze(a),c=Rg(a,"position"),d=c=="fixed"||c=="absolute";for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(a.nodeType==11&&a.host&&(a=a.host),c=Rg(a,"position"),d=d&&c=="static"&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||c=="fixed"||c=="absolute"||c=="relative"))return a;return null} function Yg(a){for(var b=new Ag(0,Infinity,Infinity,0),c=Xe(a),d=c.g.body,e=c.g.documentElement,g=lf(c.g);a=Xg(a);)if((!Md||a.clientHeight!=0||a!=d)&&a!=d&&a!=e&&Rg(a,"overflow")!="visible"){var h=Zg(a),k=new w(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=jf(c.g.defaultView); b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,g+c.height);return b.top>=0&&b.left>=0&&b.bottom>b.top&&b.right>b.left?b:null} function $g(a,b){b=b||lf(document);var c=b||lf(document);var d=Zg(a),e=Zg(c),g=ah(c);if(c==lf(document)){var h=d.x-c.scrollLeft;d=d.y-c.scrollTop}else h=d.x-e.x-g.left,d=d.y-e.y-g.top;a=bh(a);e=c.clientHeight-a.height;g=c.scrollLeft;var k=c.scrollTop;g+=Math.min(h,Math.max(h-(c.clientWidth-a.width),0));k+=Math.min(d,Math.max(d-e,0));c=new w(g,k);b.scrollLeft=c.x;b.scrollTop=c.y} function Zg(a){var b=Ze(a),c=new w(0,0);if(a==(b?Ze(b):document).documentElement)return c;a=Wg(a);b=Pf(Xe(b));c.x=a.left+b.x;c.y=a.top+b.y;return c}function ch(a,b){a=dh(a);b=dh(b);return new w(a.x-b.x,a.y-b.y)}function eh(a){a=Wg(a);return new w(a.left,a.top)}function dh(a){if(a.nodeType==1)return eh(a);a=a.changedTouches?a.changedTouches[0]:a;return new w(a.clientX,a.clientY)}function fh(a,b,c){var d=Zg(a);b instanceof w&&(c=b.y,b=b.x);Tg(a,a.offsetLeft+(b-d.x),a.offsetTop+(Number(c)-d.y))} function K(a,b,c){if(b instanceof Kb)c=b.height,b=b.width;else if(c==void 0)throw Error("missing height argument");gh(a,b);a.style.height=Ug(c,!0)}function Ug(a,b){typeof a=="number"&&(a=(b?Math.round(a):a)+"px");return a}function gh(a,b){a.style.width=Ug(b,!0)}function hh(a){return M(a)} function M(a){var b=bh;if(Rg(a,"display")!="none")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 bh(a){var b=a.offsetWidth,c=a.offsetHeight,d=Md&&!b&&!c;return(b===void 0||d)&&a.getBoundingClientRect?(a=Wg(a),new Kb(a.right-a.left,a.bottom-a.top)):new Kb(b,c)}function ih(a){var b=Zg(a);a=M(a);return new Eg(b.x,b.y,a.width,a.height)} function jh(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="+Number(b)*100+")")}function N(a,b){a.style.display=b?"":"none"}function kh(a){return a.style.display!="none"}function lh(a){return"rtl"==Rg(a,"direction")}var mh=Ld?"MozUserSelect":Md||Kd?"WebkitUserSelect":null; function nh(a,b,c){c=c?null:a.getElementsByTagName("*");if(mh&&(b=b?"none":"",a.style&&(a.style[mh]=b),c))for(var d=0;a=c[d];d++)a.style&&(a.style[mh]=b)}function oh(a,b){ph(a,b,"border-box")} function qh(a){var b=new Kb(a.offsetWidth,a.offsetHeight);var c=Qg(a,"paddingLeft");var d=Qg(a,"paddingRight"),e=Qg(a,"paddingTop"),g=Qg(a,"paddingBottom");c=new Ag(parseFloat(e),parseFloat(d),parseFloat(g),parseFloat(c));a=ah(a);return new Kb(b.width-a.left-c.left-c.right-a.right,b.height-a.top-c.top-c.bottom-a.bottom)}function ph(a,b,c){a=a.style;Ld?a.MozBoxSizing=c:Md?a.WebkitBoxSizing=c:a.boxSizing=c;a.width=Math.max(b.width,0)+"px";a.height=Math.max(b.height,0)+"px"} function ah(a){var b=Qg(a,"borderLeftWidth"),c=Qg(a,"borderRightWidth"),d=Qg(a,"borderTopWidth");a=Qg(a,"borderBottomWidth");return new Ag(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))};function rh(a,b){a=sh(a);var c;if(c=b){var d,e;c=Math.random()<((e=(d=b.Kw)!=null?d:Qe[b.oj[0]])!=null?e:0)}if(c&&window.SAFEVALUES_REPORTING!==!1&&"DocumentFragment"in window){var g,h;Math.random()<((h=(g=b.yw)!=null?g:Re[b.oj[0]])!=null?h:0)&&Te(b,"HEARTBEAT");Se(a,b)||de(a).toString()!==a&&Te(b,"H_ESCAPE")}return Hc(a)}function sh(a){return a===null?"null":a===void 0?"undefined":a};function th(a){return typeof a.className=="string"?a.className:a.getAttribute&&a.getAttribute("class")||""}function uh(a){return a.classList?a.classList:th(a).match(/\S+/g)||[]}function vh(a,b){typeof a.className=="string"?a.className=b:a.setAttribute&&a.setAttribute("class",b)}function wh(a,b){return a.classList?a.classList.contains(b):rb(uh(a),b)}function O(a,b){if(a.classList)a.classList.add(b);else if(!wh(a,b)){var c=th(a);vh(a,c+(c.length>0?" "+b:b))}} function xh(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){O(a,e)});else{var c={};Array.prototype.forEach.call(uh(a),function(e){c[e]=!0});Array.prototype.forEach.call(b,function(e){c[e]=!0});b="";for(var d in c)b+=b.length>0?" "+d:d;vh(a,b)}}function yh(a,b){a.classList?a.classList.remove(b):wh(a,b)&&vh(a,Array.prototype.filter.call(uh(a),function(c){return c!=b}).join(" "))} function zh(a,b){a.classList?Array.prototype.forEach.call(b,function(c){yh(a,c)}):vh(a,Array.prototype.filter.call(uh(a),function(c){return!rb(b,c)}).join(" "))}function P(a,b,c){c?O(a,b):yh(a,b)};function Q(){Rf.call(this);this.Id=new dg(this);this.bs=this;this.yl=null}u(Q,Rf);Q.prototype[Zf]=!0;f=Q.prototype;f.Ag=function(){return this.yl};f.Jg=function(a){this.yl=a};f.addEventListener=function(a,b,c,d){I(this,a,b,c,d)};f.removeEventListener=function(a,b,c,d){qg(this,a,b,c,d)}; f.dispatchEvent=function(a){var b,c=this.Ag();if(c)for(b=[];c;c=c.Ag())b.push(c);c=this.bs;var d=a.type||a;if(typeof a==="string")a=new Uf(a,c);else if(a instanceof Uf)a.target=a.target||c;else{var e=a;a=new Uf(d,c);Tb(a,e)}e=!0;var g;if(b)for(g=b.length-1;!a.g&&g>=0;g--){var h=a.currentTarget=b[g];e=Ah(h,d,!0,a)&&e}a.g||(h=a.currentTarget=c,e=Ah(h,d,!0,a)&&e,a.g||(e=Ah(h,d,!1,a)&&e));if(b)for(g=0;!a.g&&g=112&&a.keyCode<=123)return!1;if(Fh(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!Ld;default:return a.keyCode<166||a.keyCode>183}} function Gh(a,b,c,d,e,g){if(Od&&e)return Fh(a);if(e&&!d)return!1;if(!Ld){typeof b==="number"&&(b=Hh(b));var h=b==17||b==18||Od&&b==91;if((!c||Od)&&h||Od&&b==16&&(d||g))return!1}if(Md&&d&&c)switch(a){case 220:case 219:case 221:case 192:case 186:case 189:case 187:case 188:case 190:case 191:case 192:case 222:return!1}switch(a){case 13:return Ld?g||e?!1:!(c&&d):!0;case 27:return!Md&&!Ld}return Ld&&(d||e||g)?!1:Fh(a)} function Fh(a){if(a>=48&&a<=57||a>=96&&a<=106||a>=65&&a<=90||Md&&a==0)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:case 171:return Ld;default:return!1}}function Hh(a){if(Ld)a=Ih(a);else if(Od&&Md)a:switch(a){case 93:a=91;break a}return a} function Ih(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 Jh(a){if(a.Gc&&typeof a.Gc=="function")return a.Gc();if(typeof Map!=="undefined"&&a instanceof Map||typeof Set!=="undefined"&&a instanceof Set)return Array.from(a.values());if(typeof a==="string")return a.split("");if(Wa(a)){for(var b=[],c=a.length,d=0;d=0){var g=a[c].substring(0,d);e=a[c].substring(d+1)}else g=a[c];b(g,e?cd(e):"")}}} function Oh(a,b,c){c=c!=null?"="+bd(c):"";if(b+=c){c=a.indexOf("#");c<0&&(c=a.length);var d=a.indexOf("?");if(d<0||d>c){d=c;var e=""}else e=a.substring(d+1,c);a=[a.slice(0,d),e,a.slice(c)];c=a[1];a[1]=b?c?c+"&"+b:b:c;a=a[0]+(a[1]?"?"+a[1]:"")+a[2]}return a}function Ph(a,b,c,d){for(var e=c.length;(b=a.indexOf(c,b))>=0&&bc)e=c;d+=a.length+1;return cd(b.slice(d,e!==-1?e:0))}var Sh=/[?&]($|#)/;function R(a){this.g=this.U=this.o="";this.V=null;this.i=this.l="";this.N=!1;var b;a instanceof R?(this.N=a.N,Th(this,a.o),this.U=a.U,this.g=a.g,Uh(this,a.V),Vh(this,a.l),Wh(this,a.j.clone()),Xh(this,a.i)):a&&(b=String(a).match(Mh))?(this.N=!1,Th(this,b[1]||"",!0),this.U=Yh(b[2]||""),this.g=Yh(b[3]||"",!0),Uh(this,b[4]),Vh(this,b[5]||"",!0),Wh(this,b[6]||"",!0),Xh(this,b[7]||"",!0)):(this.N=!1,this.j=new Zh(null,this.N))} R.prototype.toString=function(){var a=[],b=this.o;b&&a.push($h(b,ai,!0),":");var c=this.g;if(c||b=="file")a.push("//"),(b=this.U)&&a.push($h(b,ai,!0),"@"),a.push(bd(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.V,c!=null&&a.push(":",String(c));if(c=this.l)this.g&&c.charAt(0)!="/"&&a.push("/"),a.push($h(c,c.charAt(0)=="/"?bi:ci,!0));(c=this.j.toString())&&a.push("?",c);(c=this.i)&&a.push("#",$h(c,di));return a.join("")}; R.prototype.resolve=function(a){var b=this.clone(),c=!!a.o;c?Th(b,a.o):c=!!a.U;c?b.U=a.U:c=!!a.g;c?b.g=a.g:c=a.V!=null;var d=a.l;if(c)Uh(b,a.V);else if(c=!!a.l){if(d.charAt(0)!="/")if(this.g&&!this.l)d="/"+d;else{var e=b.l.lastIndexOf("/");e!=-1&&(d=b.l.slice(0,e+1)+d)}e=d;if(e==".."||e==".")d="";else if(fc(e,"./")||fc(e,"/.")){d=e.lastIndexOf("/",0)==0;e=e.split("/");for(var g=[],h=0;h1||g.length==1&&g[0]!="")&&g.pop(), d&&h==e.length&&g.push("")):(g.push(k),d=!0)}d=g.join("/")}else d=e}c?Vh(b,d):c=a.j.toString()!=="";c?Wh(b,a.j.clone()):c=!!a.i;c&&Xh(b,a.i);return b};R.prototype.clone=function(){return new R(this)};function Th(a,b,c){a.o=c?Yh(b,!0):b;a.o&&(a.o=a.o.replace(/:$/,""))}function Uh(a,b){if(b){b=Number(b);if(isNaN(b)||b<0)throw Error("Bad port number "+b);a.V=b}else a.V=null}function Vh(a,b,c){a.l=c?Yh(b,!0):b} function Wh(a,b,c){b instanceof Zh?(a.j=b,ei(a.j,a.N)):(c||(b=$h(b,fi)),a.j=new Zh(b,a.N))}R.prototype.getQuery=function(){return this.j.toString()};function S(a,b,c){a.j.set(b,c);return a}function T(a,b){return a.j.get(b)}function Xh(a,b,c){a.i=c?Yh(b):b;return a}function gi(a,b){a.j.remove(b);return a}function Yh(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""} function $h(a,b,c){return typeof a==="string"?(a=encodeURI(a).replace(b,hi),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function hi(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var ai=/[#\/\?@]/g,ci=/[#\?:]/g,bi=/[#\?]/g,fi=/[#\?@]/g,di=/#/g;function Zh(a,b){this.i=this.g=null;this.j=a||null;this.l=!!b}function ii(a){a.g||(a.g=new Map,a.i=0,a.j&&Nh(a.j,function(b,c){a.add(cd(b),c)}))} function ji(a){var b=Kh(a);if(typeof b=="undefined")throw Error("Keys are undefined");var c=new Zh(null);a=Jh(a);for(var d=0;d0?String(a[0]):b}; function ki(a,b,c){a.remove(b);c.length>0&&(a.j=null,a.g.set(li(a,b),xb(c)),a.i+=c.length)}f.toString=function(){if(this.j)return this.j;if(!this.g)return"";for(var a=[],b=Array.from(this.g.keys()),c=0;c0&&(this.l=setTimeout(this.Ng.bind(this),this.V)),this.o=!0,this.g.send(a),this.o=!1}catch(h){ti(this)}};f.Ng=function(){typeof Qa!="undefined"&&this.g&&(this.dispatchEvent("timeout"),this.abort(8))};function ti(a){a.i=!1;a.g&&(a.j=!0,a.g.abort(),a.j=!1);ui(a);vi(a)} function ui(a){a.N||(a.N=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))}f.abort=function(){this.g&&this.i&&(this.i=!1,this.j=!0,this.g.abort(),this.j=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),vi(this))};f.wa=function(){this.g&&(this.i&&(this.i=!1,this.j=!0,this.g.abort(),this.j=!1),vi(this,!0));oi.oa.wa.call(this)};f.Xo=function(){this.qd||(this.U||this.o||this.j?wi(this):this.Su())};f.Su=function(){wi(this)}; function wi(a){if(a.i&&typeof Qa!="undefined")if(a.o&&(a.g?a.g.readyState:0)==4)setTimeout(a.Xo.bind(a),0);else if(a.dispatchEvent("readystatechange"),(a.g?a.g.readyState:0)==4){a.i=!1;try{xi(a)?(a.dispatchEvent("complete"),a.dispatchEvent("success")):ui(a)}finally{vi(a)}}}function vi(a,b){if(a.g){a.l&&(clearTimeout(a.l),a.l=null);var c=a.g;a.g=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=null}catch(d){}}}f.isActive=function(){return!!this.g}; function xi(a){var b=yi(a);a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break a;default:c=!1}if(!c){if(b=b===0)a=String(a.ej).match(Mh)[1]||null,!a&&q.self&&q.self.location&&(a=q.self.location.protocol.slice(0,-1)),b=!pi.test(a?a.toLowerCase():"");c=b}return c}function yi(a){try{return(a.g?a.g.readyState:0)>2?a.g.status:-1}catch(b){return-1}}function zi(a){try{return a.g?a.g.responseText:""}catch(b){return""}} function Ai(a,b){if(a.g){a=a.g.responseText;b&&a.indexOf(b)==0&&(a=a.substring(b.length));a:{b=a;if(q.JSON)try{var c=q.JSON.parse(b);break a}catch(d){}c=ni(b)}return c}};function Bi(){}f=Bi.prototype;f.nb=function(a){this.ub=a.width;this.Db=a.height};f.getSize=function(){return new Kb(this.ub,this.Db)};f.Xd=function(){return this.U};f.kd=function(){return this.N};f.wb=function(){return this.ub};f.Gb=function(){return this.Db};f.jd=function(){return new w(this.U,this.N)};function Ci(a){return new Eg(a.U,a.N,a.ub,a.Db)};function Di(){return!0}function Ei(){}function Fi(a,b){function c(){}c.prototype=a.prototype;var d=new c;a.apply(d,Array.prototype.slice.call(arguments,1));return d};function Gi(){this.g=[]}Gi.prototype.Qa=function(a){this.g.push(a)};Gi.prototype.getSize=function(){var a=this.wb(),b=this.Gb();return a===null||b===null?null:new Kb(a,b)};Gi.prototype.Kd=function(a){return this.g.filter(a||Di)};function Hi(a,b){for(var c=0;c=b})}function Ji(a,b){return a.g.find(function(c){return Cg(Fg(Ci(c)),b)})};function Ki(){this.g=[];this.cells=[]}u(Ki,Gi);f=Ki.prototype;f.im=0;f.ei=0;f.marginRight=0;f.di=0;f.Xk=0;f.Cj=0;f.Pp=!1;f.wb=function(){return this.ub};f.Gb=function(){return this.Db}; function Li(a){a.U();for(var b=a.im,c={},d=0;d0){this.i--;var a=this.g;this.g=a.next;a.next=null}else a=this.j();return a};function Si(a,b){a.l(b);a.i<100&&(a.i++,b.next=a.g,a.g=b)};function Ti(a){q.setTimeout(function(){throw a;},0)};function Ui(){this.i=this.g=null}Ui.prototype.add=function(a,b){var c=Vi.get();c.set(a,b);this.i?this.i.next=c:this.g=c;this.i=c};Ui.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 Vi=new Ri(function(){return new Wi},function(a){return a.reset()});function Wi(){this.next=this.g=this.ye=null}Wi.prototype.set=function(a,b){this.ye=a;this.g=b;this.next=null};Wi.prototype.reset=function(){this.next=this.g=this.ye=null};var Xi,Yi=!1,Zi=new Ui;function $i(a,b){Xi||aj();Yi||(Xi(),Yi=!0);Zi.add(a,b)}function aj(){var a=Promise.resolve(void 0);Xi=function(){a.then(bj)}}function bj(){for(var a;a=Zi.remove();){try{a.ye.call(a.g)}catch(b){Ti(b)}Si(Vi,a)}Yi=!1};function cj(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};function dj(a){this.g=0;this.U=void 0;this.l=this.i=this.j=null;this.o=this.N=!1;if(a!=Ei)try{var b=this;a.call(void 0,function(c){ej(b,2,c)},function(c){ej(b,3,c)})}catch(c){ej(this,3,c)}}function fj(){this.next=this.context=this.i=this.j=this.g=null;this.l=!1}fj.prototype.reset=function(){this.context=this.i=this.j=this.g=null;this.l=!1};var gj=new Ri(function(){return new fj},function(a){a.reset()});function hj(a,b,c){var d=gj.get();d.j=a;d.i=b;d.context=c;return d} function ij(){var a,b,c=new dj(function(d,e){a=d;b=e});return new jj(c,a,b)}dj.prototype.then=function(a,b,c){return kj(this,eb(typeof a==="function"?a:null),eb(typeof b==="function"?b:null),c)};dj.prototype.$goog_Thenable=!0;dj.prototype.cancel=function(a){if(this.g==0){var b=new lj(a);$i(function(){mj(this,b)},this)}}; function mj(a,b){if(a.g==0)if(a.j){var c=a.j;if(c.i){for(var d=0,e=null,g=null,h=c.i;h&&(h.l||(d++,h.g==a&&(e=h),!(e&&d>1)));h=h.next)e||(g=h);e&&(c.g==0&&d==1?mj(c,b):(g?(d=g,d.next==c.l&&(c.l=d),d.next=d.next.next):nj(c),oj(c,e,3,b)))}a.j=null}else ej(a,3,b)}function pj(a,b){a.i||a.g!=2&&a.g!=3||qj(a);a.l?a.l.next=b:a.i=b;a.l=b} function kj(a,b,c,d){var e=hj(null,null,null);e.g=new dj(function(g,h){e.j=b?function(k){try{var l=b.call(d,k);g(l)}catch(m){h(m)}}:g;e.i=c?function(k){try{var l=c.call(d,k);l===void 0&&k instanceof lj?h(k):g(l)}catch(m){h(m)}}:h});e.g.j=a;pj(a,e);return e.g}dj.prototype.ma=function(a){this.g=0;ej(this,2,a)};dj.prototype.na=function(a){this.g=0;ej(this,3,a)}; function ej(a,b,c){if(a.g==0){a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));a.g=1;a:{var d=c,e=a.ma,g=a.na;if(d instanceof dj){pj(d,hj(e||Ei,g||null,a));var h=!0}else if(cj(d))d.then(e,g,a),h=!0;else{if(Xa(d))try{var k=d.then;if(typeof k==="function"){rj(d,k,e,g,a);h=!0;break a}}catch(l){g.call(a,l);h=!0;break a}h=!1}}h||(a.U=c,a.g=b,a.j=null,qj(a),b!=3||c instanceof lj||sj(a,c))}} function rj(a,b,c,d,e){function g(l){k||(k=!0,d.call(e,l))}function h(l){k||(k=!0,c.call(e,l))}var k=!1;try{b.call(a,h,g)}catch(l){g(l)}}function qj(a){a.N||(a.N=!0,$i(a.V,a))}function nj(a){var b=null;a.i&&(b=a.i,a.i=b.next,b.next=null);a.i||(a.l=null);return b}dj.prototype.V=function(){for(var a;a=nj(this);)oj(this,a,this.g,this.U);this.N=!1}; function oj(a,b,c,d){if(c==3&&b.i&&!b.l)for(;a&&a.o;a=a.j)a.o=!1;if(b.g)b.g.j=null,tj(b,c,d);else try{b.l?b.j.call(b.context):tj(b,c,d)}catch(e){uj.call(null,e)}Si(gj,b)}function tj(a,b,c){b==2?a.j.call(a.context,c):a.i&&a.i.call(a.context,c)}function sj(a,b){a.o=!0;$i(function(){a.o&&uj.call(null,b)})}var uj=Ti;function lj(a){fb.call(this,a)}u(lj,fb);lj.prototype.name="cancel";function jj(a,b,c){this.promise=a;this.resolve=b;this.reject=c};function vj(a,b){Q.call(this);this.i=a||1;this.g=b||q;this.j=r(this.Mv,this);this.l=cb()}u(vj,Q);f=vj.prototype;f.enabled=!1;f.Ta=null;function wj(a,b){a.i=b;a.Ta&&a.enabled?(a.stop(),a.start()):a.Ta&&a.stop()}f.Mv=function(){if(this.enabled){var a=cb()-this.l;a>0&&a2147483647?-1:q.setTimeout(a,b||0)} function xj(a){q.clearTimeout(a)};function yj(){return document.body.dir=="rtl"}function zj(a,b,c){a=a.style;Jd?a.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+b+'", sizingMethod="scale")':(a.backgroundImage="url("+b+")",a.backgroundRepeat=c||"no-repeat")}var Aj={border:!0,padding:!0,margin:!0},Bj=["Top","Bottom","Right","Left"],Cj={color:"#0000cc",textDecoration:"underline"}; function Dj(a){var b={backgroundColor:"transparent",border:"0px",color:"#000",fontFamily:"Arial, sans-serif",fontSize:"13.28px",fontWeight:"normal",lineHeight:"1",margin:"0px",padding:"0px",textAlign:"left",textDecoration:"none",verticalAlign:"middle"};v(a,function(c){Mb(b,t(Ej,c))})}function Ej(a,b,c){var d=Pg(a,c)=="";Aj[c]?v(Bj,function(e){d&&Pg(a,c+e)==""&&J(a,c+e,b)}):d&&(a.tagName.toLowerCase()=="a"&&Cj[c]?J(a,c,Cj[c]):J(a,c,b))} function V(a,b){var c={img:!0,div:!0,table:!0,td:!0,span:!0,a:!0},d=[];c[a.tagName.toLowerCase()]&&d.push(a);b||Mb(c,function(e,g){yb(d,xb(a.getElementsByTagName(g)))});Dj(d)};function Fj(a,b,c){Rf.call(this);this.Hh=a;this.j=b||0;this.g=c;this.i=r(this.bq,this)}u(Fj,Rf);f=Fj.prototype;f.yb=0;f.wa=function(){Fj.oa.wa.call(this);this.stop();delete this.Hh;delete this.g};f.start=function(a){this.stop();this.yb=U(this.i,a!==void 0?a:this.j)};f.stop=function(){this.isActive()&&xj(this.yb);this.yb=0};f.isActive=function(){return this.yb!=0};f.bq=function(){this.yb=0;this.Hh&&this.Hh.call(this.g)};var Qb={},Gj=null;function Hj(a){a=Ya(a);delete Qb[a];Pb()&&Gj&&Gj.stop()}function Ij(){Gj||(Gj=new Fj(function(){Jj()},20));var a=Gj;a.isActive()||a.start()}function Jj(){var a=cb();Mb(Qb,function(b){Kj(b,a)});Pb()||Ij()};function Lj(){Q.call(this);this.Hc=0;this.endTime=this.startTime=null}u(Lj,Q);Lj.prototype.lf=function(){this.od("begin")};Lj.prototype.He=function(){this.od("end")};Lj.prototype.od=function(a){this.dispatchEvent(a)};function Mj(a,b,c,d){Lj.call(this);if(!Array.isArray(a)||!Array.isArray(b))throw Error("Start and end parameters must be arrays");if(a.length!=b.length)throw Error("Start and end points must be the same length");this.i=a;this.o=b;this.duration=c;this.l=d;this.coords=[];this.progress=0}u(Mj,Lj);f=Mj.prototype; f.play=function(a){if(a||this.Hc==0)this.progress=0,this.coords=this.i;else if(this.Hc==1)return!1;Hj(this);this.startTime=a=cb();this.Hc==-1&&(this.startTime-=this.duration*this.progress);this.endTime=this.startTime+this.duration;this.progress||this.lf();this.od("play");this.Hc==-1&&this.od("resume");this.Hc=1;var b=Ya(this);b in Qb||(Qb[b]=this);Ij();Kj(this,a);return!0};f.stop=function(a){Hj(this);this.Hc=0;a&&(this.progress=1);Nj(this,this.progress);this.od("stop");this.He()}; f.wa=function(){this.Hc==0||this.stop(!1);this.od("destroy");Mj.oa.wa.call(this)};function Kj(a,b){b1&&(a.progress=1);Nj(a,a.progress);a.progress==1?(a.Hc=0,Hj(a),a.od("finish"),a.He()):a.Hc==1&&a.wl()}function Nj(a,b){typeof a.l==="function"&&(b=a.l(b));a.coords=Array(a.i.length);for(var c=0;cthis.ma)if(this.dispatchEvent(new qk("start",this,a.clientX,a.clientY,a)))this.i=!0;else{this.qd||this.Gi(a);return}}c=tk(this,b,c);b=c.x;c=c.y;this.i&&this.dispatchEvent(new qk("beforedrag",this,a.clientX,a.clientY,a,b,c))&&(uk(this,a,b,c),a.preventDefault())}}; function tk(a,b,c){var d=Pf(Xe(a.j));b+=d.x-a.ua.x;c+=d.y-a.ua.y;a.ua=d;a.deltaX+=b;a.deltaY+=c;return new w(rk(a,a.deltaX),sk(a,a.deltaY))}f.Tu=function(a){var b=tk(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;uk(this,a,b.x,b.y)};function uk(a,b,c,d){a.Ck(c,d);a.dispatchEvent(new qk("drag",a,b.clientX,b.clientY,b,c,d))}function rk(a,b){var c=a.na;a=isNaN(c.left)?null:c.left;c=isNaN(c.width)?0:c.width;return Math.min(a!=null?a+c:Infinity,Math.max(a!=null?a:-Infinity,b))} function sk(a,b){var c=a.na;a=isNaN(c.top)?null:c.top;c=isNaN(c.height)?0:c.height;return Math.min(a!=null?a+c:Infinity,Math.max(a!=null?a:-Infinity,b))}f.Ck=function(a,b){this.target.style.left=a+"px";this.target.style.top=b+"px"};function qk(a,b,c,d,e,g,h){Uf.call(this,a);this.clientX=c;this.clientY=d;this.i=e;this.left=g!==void 0?g:b.deltaX;this.top=h!==void 0?h:b.deltaY}u(qk,Uf);function vk(a){this.Bd=new Map;var b=arguments.length;if(b>1){if(b%2)throw Error("Uneven number of arguments");for(var c=0;c0?(d.ad||(d.ad=[]),d.ad.length=0,d.ad.push.apply(d.ad,arguments),d.ad.push(d.state)):d.ad&&d.ad.length!=0?(d.ad[0]=d.state,d.ad.length=1):d.ad=[d.state];d.Zi||(d.Zi=!0,wk[xk].push(d));yk||(yk=!0,window.requestAnimationFrame(Bk))}} function Bk(){yk=!1;var a=wk[xk],b=a.length;xk=(xk+1)%2;for(var c,d=0;dPk(this))throw Error("Child component index out of bounds");this.ma&&this.U||(this.ma={},this.U=[]);if(a.getParent()==this){var d=this.ma,e=a.getId();d[e]=a;tb(this.U,a)}else Rb(this.ma,a.getId(),a);a.ee(this);zb(this.U,b,0,a);a.Ua&&this.Ua&&a.getParent()==this?(c=this.Mb(),(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.Ra(),b=Qk(this,b+1),Mk(a,this.Mb(),b?b.ya:null)):this.Ua&&!a.Ua&&a.ya&&a.ya.parentNode&&a.ya.parentNode.nodeType==1&&a.La()};f.Mb=function(){return this.ya};function Rk(a){a.Fb==null&&(a.Fb=lh(a.Ua?a.ya:a.g.g.body));return a.Fb}function Pk(a){return a.U?a.U.length:0}function Lk(a,b){a.ma&&b?(a=a.ma,b=(a!==null&&b in a?a[b]:void 0)||null):b=null;return b}function Qk(a,b){return a.U?a.U[b]||null:null}function Ok(a,b,c){a.U&&a.U.forEach(b,c)} function Sk(a,b){return a.U&&b?a.U.indexOf(b):-1}f.removeChild=function(a,b){if(a){var c=typeof a==="string"?a:a.getId();a=Lk(this,c);if(c&&a){var d=this.ma;c in d&&delete d[c];tb(this.U,a);b&&(a.mc(),a.ya&&E(a.ya));a.ee(null)}}if(!a)throw Error("Child is not in parent component");return a};function Tk(a,b){this.ya=a;this.i=b};function Uk(a,b){Q.call(this);this.V=new ug(this);this.Yf(a||null);b&&(this.Zf=b)}u(Uk,Q);f=Uk.prototype;f.ya=null;f.Cn=!0;f.Bn=null;f.Pe=!1;f.kl=-1;f.dj=-1;f.Rn=!0;f.Zf="toggle_display";f.getType=function(){return this.Zf};f.ha=function(){return this.ya};f.Yf=function(a){Vk(this);this.ya=a};function Wk(a,b){Vk(a);a.Cn=b}function Vk(a){if(a.Pe)throw Error("Can not change this state of the popup while showing.");}f.isVisible=function(){return this.Pe}; f.Ba=function(a){this.Ha&&this.Ha.stop();this.ua&&this.ua.stop();if(a){if(!this.Pe&&this.xl()){if(!this.ya)throw Error("Caller must call setElement before trying to show the popup");this.Xf();a=Ze(this.ya);this.Cn&&(this.V.ka(a,"mousedown",this.Nu,!0),this.V.ka(a,"blur",this.Lu));this.Zf=="toggle_display"?(this.ya.style.visibility="visible",N(this.ya,!0)):this.Zf=="move_offscreen"&&this.Xf();this.Pe=!0;this.kl=Date.now();this.dj=-1;this.Ha?(jg(this.Ha,"end",this.hi,!1,this),this.Ha.play()):this.hi()}}else Xk(this)}; f.Xf=function(){};function Xk(a,b){a.Pe&&a.dispatchEvent({type:"beforehide",target:b})&&(a.V&&zg(a.V),a.Pe=!1,a.dj=Date.now(),a.ua?(jg(a.ua,"end",t(a.Hn,b),!1,a),a.ua.play()):a.Hn(b))}f.Hn=function(a){this.Zf=="toggle_display"?this.au():this.Zf=="move_offscreen"&&(this.ya.style.top="-10000px");this.Qg(a)};f.au=function(){this.ya.style.visibility="hidden";N(this.ya,!1)};f.xl=function(){return this.dispatchEvent("beforeshow")};f.hi=function(){this.dispatchEvent("show")}; f.Qg=function(a){this.dispatchEvent({type:"hide",target:a})};f.Nu=function(a){a=a.target;Cf(this.ya,a)||Yk(this,a)||Date.now()-this.kl<150||Xk(this,a)};f.Lu=function(a){if(this.Rn){var b=Ze(this.ya);if(typeof document.activeElement!="undefined"){if(a=b.activeElement,!a||Cf(this.ya,a)||a.tagName=="BODY"||Yk(this,a))return}else if(a.target!=b)return;Date.now()-this.kl<150||Xk(this)}};function Yk(a,b){return ob(a.Bn||[],function(c){return b===c||Cf(c,b)})} f.wa=function(){Uk.oa.wa.call(this);this.V.dispose();Qf(this.Ha);Qf(this.ua);delete this.ya;delete this.V;delete this.Bn};function Zk(a,b){Y.call(this,b);this.Bf=!!a;this.ua=null;this.yc=Ak({Oo:this.qj},this);Ak({Oo:this.Np},this)}u(Zk,Y);f=Zk.prototype;f.Kk=null;f.ki=!1;f.hd=null;f.zc=null;f.Sd=null;f.rk=!1;f.Rg=function(){return"goog-modalpopup"};f.nh=function(){return this.hd};f.Ra=function(){Zk.oa.Ra.call(this);var a=this.ha();xh(a,Xb(this.Rg()).split(" "));Hf(a,!0);N(a,!1);$k(this);al(this)}; function $k(a){if(a.Bf&&!a.zc){var b=a.g.Pa("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});b.src=rc(Ek).toString();a.zc=b;a.zc.className=a.Rg()+"-bg";N(a.zc,!1);jh(a.zc,0)}a.hd||(a.hd=a.g.Pa("DIV",a.Rg()+"-bg"),N(a.hd,!1))}function al(a){a.Sd||(a.Sd=Of(a.g,"SPAN"),N(a.Sd,!1),Hf(a.Sd,!0),a.Sd.style.position="absolute")}f.np=function(){this.rk=!1};f.fi=function(a){return!!a&&a.tagName=="DIV"}; f.Pb=function(a){Zk.oa.Pb.call(this,a);a=Xb(this.Rg()).split(" ");xh(this.ha(),a);$k(this);al(this);Hf(this.ha(),!0);N(this.ha(),!1)};f.La=function(){this.zc&&uf(this.zc,this.ha());uf(this.hd,this.ha());Zk.oa.La.call(this);vf(this.Sd,this.ha());this.Kk=new Gk(this.g.g);Z(this).ka(this.Kk,"focusin",this.Ou);bl(this,!1)};f.mc=function(){this.isVisible()&&this.Ba(!1);Qf(this.Kk);Zk.oa.mc.call(this);E(this.zc);E(this.hd);E(this.Sd)}; f.Ba=function(a){if(a!=this.ki)if(this.Ca&&this.Ca.stop(),this.Ja&&this.Ja.stop(),this.va&&this.va.stop(),this.Ha&&this.Ha.stop(),this.Ua&&bl(this,a),a){if(this.dispatchEvent("beforeshow")){try{this.ua=this.g.g.activeElement}catch(e){}this.Np();Z(this).ka(this.g.g.defaultView,"resize",this.qj).ka(this.g.g.defaultView,"orientationchange",this.yc);cl(this,!0);this.focus();this.ki=!0;this.Ca&&this.Ja?(jg(this.Ca,"end",this.ji,!1,this),this.Ja.play(),this.Ca.play()):this.ji()}}else if(this.dispatchEvent("beforehide")){Z(this).Va(this.g.g.defaultView, "resize",this.qj).Va(this.g.g.defaultView,"orientationchange",this.yc);this.ki=!1;this.va&&this.Ha?(jg(this.va,"end",this.ii,!1,this),this.Ha.play(),this.va.play()):this.ii();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.fm(this.ha(),d))&&this.ua.focus()}catch(e){}this.ua=null}}}; function bl(a,b){a.kc||(a.kc=new Tk(a.ya,a.g));a=a.kc;if(b){a.g||(a.g=[]);b=a.i.Xn(a.i.g.body);for(var c=0;c=zl&&(jh(this.g,a),this.j=a)};f.lf=function(){this.j=-1;yl.oa.lf.call(this)};f.He=function(){this.j=-1;yl.oa.He.call(this)};f.show=function(){this.g.style.display=""};f.lb=function(){this.g.style.display="none"};function Al(a,b,c){yl.call(this,a,1,0,b,c)}u(Al,yl);Al.prototype.lf=function(){this.show();Al.oa.lf.call(this)};Al.prototype.He=function(){this.lb();Al.oa.He.call(this)}; function Bl(a,b,c,d,e){if(b.length!=3||c.length!=3)throw Error("Start and end points must be 3D");xl.call(this,a,b,c,d,e)}u(Bl,xl);Bl.prototype.Vf=function(){for(var a=[],b=0;b1){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d2*this.size&&Ll(this),!0):!1}; function Ll(a){if(a.size!=a.g.length){for(var b=0,c=0;b=d.g.length)return Fl;var g=d.g[b++];return{value:a?g:d.i[g],done:!1}};return e};function Ml(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function Nl(){this.i=new Kl;this.g=new Ol("");this.g.next=this.g.g=this.g}f=Nl.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 Ol(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 Pl(this,this.g.next)};f.pop=function(){return Pl(this,this.g.g)};f.remove=function(a){return(a=this.i.get(a))?(a.remove(),this.i.remove(a.key),!0):!1}; f.Wd=function(){return this.map(function(a,b){return b})};f.Gc=function(){return this.map(function(a){return a})};f.clear=function(){for(;this.i.size>0;){var a=this.g.next;a.remove();this.i.remove(a.key)}};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)};f.map=function(a,b){for(var c=[],d=this.g.next;d!=this.g;d=d.next)c.push(a.call(b,d.value,d.key,this));return c}; f.some=function(a,b){for(var c=this.g.next;c!=this.g;c=c.next)if(a.call(b,c.value,c.key,this))return!0;return!1};f.every=function(a,b){for(var c=this.g.next;c!=this.g;c=c.next)if(!a.call(b,c.value,c.key,this))return!1;return!0};function Pl(a,b){a.g!=b&&(b.remove(),a.i.remove(b.key));return b.value}function Ol(a,b){this.key=a;this.value=b}Ol.prototype.remove=function(){this.g.next=this.next;this.next.g=this.g;delete this.g;delete this.next};function Ql(){Q.call(this);this.i=new Nl}u(Ql,Q);Ql.prototype.j=function(a){a.sort(Rl);v(a,function(b){b.ee(this)},this);this.i=new Nl;v(a,function(b){this.i.set(b.Na(),b)},this);this.dispatchEvent("update")};function Rl(a,b){return Sl(a)-Sl(b)}function Tl(a){return a.i.Gc()}function Ul(a,b,c){a=Tl(a);for(var d=-1,e=0;e=0)return a[c+d]}function Vl(a,b){return a.i.get(b)} function Wl(a,b){b=Xb(b);if(b.length!=0)return pb(Tl(a),function(c){return c.kb()==b})};/* Copyright 2005, 2007 Bob Ippolito. All Rights Reserved. Copyright The Closure Library Authors. SPDX-License-Identifier: MIT */ function Xl(a){var b=Yl;this.o=[];this.ua=b;this.Ka=a||null;this.l=this.j=!1;this.i=void 0;this.ma=this.va=this.U=!1;this.N=0;this.g=null;this.V=0}Xl.prototype.cancel=function(a){if(this.j)this.i instanceof Xl&&this.i.cancel();else{if(this.g){var b=this.g;delete this.g;a?b.cancel(a):(b.V--,b.V<=0&&b.cancel())}this.ua?this.ua.call(this.Ka,this):this.ma=!0;this.j||(a=new Zl(this),$l(this),am(this,!1,a))}};Xl.prototype.na=function(a,b){this.U=!1;am(this,a,b)}; function am(a,b,c){a.j=!0;a.i=c;a.l=!b;bm(a)}function $l(a){if(a.j){if(!a.ma)throw new cm(a);a.ma=!1}}Xl.prototype.mg=function(a){$l(this);am(this,!0,a)};function dm(a,b,c,d){var e=a.j;e||(b===c?b=c=eb(b):(b=eb(b),c=eb(c)));a.o.push([b,c,d]);e&&bm(a)}Xl.prototype.then=function(a,b,c){var d,e,g=new dj(function(h,k){e=h;d=k});dm(this,e,function(h){h instanceof Zl?g.cancel():d(h);return em},this);return g.then(a,b,c)};Xl.prototype.$goog_Thenable=!0; function fm(a){return ob(a.o,function(b){return typeof b[1]==="function"})}var em={}; function bm(a){if(a.N&&a.j&&fm(a)){var b=a.N,c=gm[b];c&&(q.clearTimeout(c.yb),delete gm[b]);a.N=0}a.g&&(a.g.V--,delete a.g);b=a.i;for(var d=c=!1;a.o.length&&!a.U;){var e=a.o.shift(),g=e[0],h=e[1];e=e[2];if(g=a.l?h:g)try{var k=g.call(e||a.Ka,b);k===em&&(k=void 0);k!==void 0&&(a.l=a.l&&(k==b||k instanceof Error),a.i=b=k);if(cj(b)||typeof q.Promise==="function"&&b instanceof q.Promise)d=!0,a.U=!0}catch(l){b=l,a.l=!0,fm(a)||(c=!0)}}a.i=b;d&&(k=r(a.na,a,!0),d=r(a.na,a,!1),b instanceof Xl?(dm(b,k,d),b.va= !0):b.then(k,d));c&&(b=new hm(b),gm[b.yb]=b,a.N=b.yb)}function cm(){fb.call(this)}u(cm,fb);cm.prototype.message="Deferred has already fired";cm.prototype.name="AlreadyCalledError";function Zl(){fb.call(this)}u(Zl,fb);Zl.prototype.message="Deferred was canceled";Zl.prototype.name="CanceledError";function hm(a){this.yb=q.setTimeout(r(this.i,this),0);this.g=a}hm.prototype.i=function(){delete gm[this.yb];throw this.g;};var gm={};function im(a,b){var c=b||{};b=c.document||document;var d=rc(a).toString(),e=Of(new Ye(b),"SCRIPT"),g={wp:e,Ng:void 0},h=new Xl(g),k=null,l=c.timeout!=null?c.timeout:5E3;l>0&&(k=window.setTimeout(function(){jm(e,!0);var m=new km(1,"Timeout reached for loading script "+d);$l(h);am(h,!1,m)},l),g.Ng=k);e.onload=e.onreadystatechange=function(){e.readyState&&e.readyState!="loaded"&&e.readyState!="complete"||(jm(e,c.us||!1,k),h.mg(null))};e.onerror=function(){jm(e,!0,k);var m=new km(0,"Error while loading script "+ d);$l(h);am(h,!1,m)};g=c.attributes||{};Tb(g,{type:"text/javascript",charset:"UTF-8"});gf(e,g);Nc(e,a);lm(b).appendChild(e);return h}function lm(a){var b=af("HEAD",a);return b&&b.length!==0?b[0]:a.documentElement}function Yl(){if(this&&this.wp){var a=this.wp;a&&a.tagName=="SCRIPT"&&jm(a,!0,this.Ng)}}function jm(a,b,c){c!=null&&q.clearTimeout(c);a.onload=function(){};a.onerror=function(){};a.onreadystatechange=function(){};b&&window.setTimeout(function(){E(a)},0)} function km(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);fb.call(this,c);this.code=a}u(km,fb);var mm=sa(["//apis.google.com/js/api.js"]);function nm(a){var b=document,c=window;om()&&(im(pm,{document:b}).then(function(){var d=Sa("gapi.load",c);d&&d("gapi.rpc",{mg:function(){return qm(a)},onerror:function(){return null},timeout:5E3,ontimeout:function(){return null}})}),U(function(){qm(a)},5E3))}function rm(a){var b={};b.q=a;sm("updateInViewportPage",b)}function tm(a){a?sm("onboardingComplete"):sm("onboardingCompleteNoPlainText")} function qm(a){var b=Sa("gapi.rpc.register");typeof b==="function"&&(b("handshake",function(){}),um(),vm(a))}function um(){I(document,"keydown",function(a){a.keyCode==27&&sm("closeViewportDialog")})}function vm(a){var b=Sa("gapi.rpc.register");if(typeof b==="function")for(var c in a)b(c,a[c])}function sm(a,b){if(om()){var c=Sa("gapi.rpc.call");typeof c==="function"&&c("..",a,null,b)}}function om(){try{return window.self!==window.top}catch(a){return!0}}var pm=Oe(mm);function wm(a){Q.call(this);xm(this,a||"")}n(wm,Q);wm.prototype.getQuery=function(){return this.j};function xm(a,b){a.j!=b&&(a.j=b,a.dispatchEvent("change"),rm(b))}function ym(a){a=new R(a);return T(a,"q")||T(a,"vq")||T(a,"dq")}function zm(){return T(new R(window.location.toString()),"q")};function Am(a){this.g={};this.O=a}function Bm(a,b){var c=[];if(a.g[b]){var d=[],e;for(e in a.g[b])d.push(e);Bb(d);for(e=0;e3?b[3]:T(a,"id")||""}function Wm(){var a=window.location.pathname.split("/");return a.length<1?"":a[1]};function Xm(a){Q.call(this);this.ob={};a&&this.Dd(a)}u(Xm,Q);f=Xm.prototype;f.ke=function(){return this.ob.w||this.getParent().g.width};f.Yd=function(){return this.ob.h||this.getParent().g.height};function Qi(a){return a.ke()/a.Yd()}f.getSize=function(){return new Kb(this.ke(),this.Yd())};f.Dd=function(a){for(var b in a)this.ob[b]=a[b];this.dispatchEvent("update")};f.ee=function(a){this.N=a};f.getParent=function(){return this.N};f.kb=function(){return this.ob.title}; f.ze=function(){var a=this.kb();return a?"Page "+a:""};function Sl(a){return a.ob.order}f.wd=function(a){if(this.ob.src&&a){var b=new R(this.ob.src);S(b,"w",a.width);return b.toString()}return this.ob.src};f.Na=function(){return this.ob.pid};function Ym(a,b,c){if(Bd()<=8){var d=[];d[0]=I(a,"readystatechange",t(Zm,a,t($m,b),d))}else jg(a,"load",t($m,b));c&&jg(a,"error",t($m,c))}function $m(a){U(a)}function Zm(a,b,c){if(a.readyState!="complete")return!0;rg(c[0]);b();return!1}var an=C("div");function bn(a){if(a)if(Jd){an.appendChild(a);var b=t(E,a);Ym(a,b,b);a.src="//www.google.com/images/cleardot.gif"}else a.src="//www.google.com/images/cleardot.gif",E(a)};function cn(a,b,c,d,e,g,h){Q.call(this);this.N=a;this.ub=b;this.Db=c;this.j=d;this.i=e;this.ma=g;this.U=h;this.l=Math.ceil(this.ub/this.j);this.o=Math.ceil(this.Db/this.i);this.g=[];for(a=0;a0)for(c=0;cb)return a[c]}else for(c=a.length-1;c>=0;c--)if(a[c]b.length)return!1;if(a.lengthe)return!1;if(d=k){var H=e-p,F=void 0;((F=b)!=null?F:b={})[H]=D}else g[e]=D;if(y)for(var L in y)a=y[L],a!=null&&(a=c(a,d))!=null&&(h=+L,e=void 0,m&&!Number.isNaN(h)&& (e=h+p)=On&&a<=Qn:a[0]==="-"?Rn(a,Nn):Rn(a,Pn))?Number(a):""+a;case "boolean":return a?1:0;case "object":if(Array.isArray(a)){var b=a[Zn]|0;return a.length===0&&b&1?void 0:ho(a,b,jo)}if(a!=null&&a[Wn]===bo)return ko(a);return}return a}var io;function ko(a){a=a.g;return ho(a,a[Zn]|0,jo)};function lo(a,b,c,d){d=d===void 0?0:d;if(a==null){var e=32;c?(a=[c],e|=128):a=[];b&&(e=e&-16760833|(b&1023)<<14)}else{if(!Array.isArray(a))throw Error("narr");e=a[Zn]|0;if(pd&&1&e)throw Error("rfarr");2048&e&&!(2&e)&&mo();if(e&256)throw Error("farr");if(e&64)return(e|d)!==e&&ao(a,e|d),a;if(c&&(e|=128,c!==a[0]))throw Error("mid");a:{c=a;e|=64;var g=c.length;if(g){var h=g-1,k=c[h];if(k!=null&&typeof k==="object"&&k.constructor===Object){b=e&128?0:-1;h-=b;if(h>=1024)throw Error("pvtlmt");for(var l in k)g= +l,g1024)throw Error("spvt");e=e&-16760833|(l&1023)<<14}}}ao(a,e|64|d);return a}function mo(){if(pd)throw Error("carr");if(Vn!=null){var a;var b=(a=fo)!=null?a:fo={};a=b[Vn]||0;a>=5||(b[Vn]=a+1,b=Error(),b.__closure__error__context__984382||(b.__closure__error__context__984382={}),b.__closure__error__context__984382.severity="incident",Ti(b))}};function no(a,b){if(typeof a!=="object")return a;if(Array.isArray(a)){var c=a[Zn]|0;a.length===0&&c&1?a=void 0:c&2||(!b||4096&c||16&c?a=oo(a,c,!1,b&&!(c&16)):($n(a,34),c&4&&Object.freeze(a)));return a}if(a!=null&&a[Wn]===bo)return b=a.g,c=b[Zn]|0,co(a,c)?a:po(a,b,c)?qo(a,b):oo(b,c)}function qo(a,b,c){a=new a.constructor(b);c&&(a.i=eo);a.j=eo;return a}function oo(a,b,c,d){d!=null||(d=!!(34&b));a=ho(a,b,no,d);d=32;c&&(d|=2);b=b&16769217|d;ao(a,b);return a} function ro(a){if(a.i!==eo)return!1;var b=a.g;b=oo(b,b[Zn]|0);$n(b,2048);a.g=b;a.i=void 0;a.j=void 0;return!0}function so(a){if(!ro(a)&&co(a,a.g[Zn]|0))throw Error();}function to(a,b){b===void 0&&(b=a[Zn]|0);b&32&&!(b&4096)&&ao(a,b|4096)}function po(a,b,c){return c&2?!0:c&32&&!(c&4096)?(ao(b,c|2),a.i=eo,!0):!1};var uo={};function vo(a,b,c,d){b=wo(a.g,b,c);if(b!==null||d&&a.j!==eo)return b}function wo(a,b,c,d){if(b===-1)return null;var e=b+(c?0:-1),g=a.length-1;if(!(g<1+(c?0:-1))){if(e>=g){var h=a[g];if(h!=null&&typeof h==="object"&&h.constructor===Object){c=h[b];var k=!0}else if(e===g)c=h;else return}else c=a[e];if(d&&c!=null){d=d(c);if(d==null)return d;if(!Object.is(d,c))return k?h[b]=d:a[e]=d,d}return c}} function xo(a,b,c,d){var e=c+-1,g=a.length-1;if(g>=0&&e>=g){var h=a[g];if(h!=null&&typeof h==="object"&&h.constructor===Object)return h[c]=d,b}if(e<=g)return a[e]=d,b;if(d!==void 0){var k;g=((k=b)!=null?k:b=a[Zn]|0)>>14&1023||536870912;c>=g?d!=null&&(e={},a[g+-1]=(e[c]=d,e)):a[e]=d}return b} function yo(a,b){var c=zo,d=!1,e=wo(a,1,void 0,function(g){if(g!=null&&g[Wn]===bo)var h=g;else if(Array.isArray(g)){h=g[Zn]|0;var k=h|b&32;k|=b&2;k!==h&&ao(g,k);h=new c(g)}else h=void 0;d=h!==g&&h!=null;return h});if(e!=null)return d&&!co(e)&&to(a,b),e} function Ao(a){var b=a.g,c=b[Zn]|0,d=yo(b,c);if(d==null)return d;c=b[Zn]|0;if(!co(a,c)){var e=d;var g=e.g,h=g[Zn]|0;e=co(e,h)?po(e,g,h)?qo(e,g,!0):new e.constructor(oo(g,h,!1)):e;e!==d&&(ro(a)&&(b=a.g,c=b[Zn]|0),d=e,c=xo(b,c,1,d),to(b,c))}return d}function Bo(a,b){var c=c===void 0?!1:c;a=vo(a,b);a=a==null||typeof a==="boolean"?a:typeof a==="number"?!!a:void 0;return a!=null?a:c} function Co(a,b,c){if(c!=null&&typeof c!=="boolean")throw Error("Expected boolean but got "+Va(c)+": "+c);so(a);var d=a.g;xo(d,d[Zn]|0,b,c===!1?void 0:c);return a};function Do(a,b,c){this.g=lo(a,b,c,2048)}Do.prototype.toJSON=function(){var a=ko(this);return a};Do.prototype.clone=function(){var a=this.g,b=a[Zn]|0;return po(this,a,b)?qo(this,a,!0):new this.constructor(oo(a,b,!1))};Do.prototype[Wn]=bo;Do.prototype.toString=function(){return this.g.toString()};function Eo(a){this.g=a}Eo.prototype.rd=function(){return this.g.aid};Eo.prototype.xg=function(){var a=this.g.x_focus,b=this.g.y_focus;if(a===void 0||b===void 0){b=this.If();if(!b.length)return null;a=b[0][0];b=b[0][1]}return new w(a,b)};Eo.prototype.Lk=ba(4);Eo.prototype.If=function(){return Fo(this,"head_boxes")};function Fo(a,b){var c=[];a.g[b]&&v(a.g[b],function(d){c.push([d.X,d.Y,d.W,d.H])});return c};function Go(a){this.g=a};function Ho(a,b,c){this.j=a;this.g=b;this.l=c||!1;a=this.getSize();this.i()?a.height=120:a.height=65;this.nb(a)}n(Ho,Bi);Ho.prototype.i=function(){var a=A("gb-mobile-menu-pubinfo");return a?yf(a).length>0&&this.j!=null&&Sl(this.j)==0:!1};function Io(a){Ki.call(this);this.j=a}u(Io,Ki);Io.prototype.U=function(){this.i=Math.ceil(this.g.length/this.j);for(var a=0;a1&&Mo(this,h,k);var l=A("gb-mobile-menu-pubinfo");l&&yf(l).length>0&&!g&&h&&k&&Sl(h)==0&&Mo(this,h,k,!0);l=new Pi(k);var m=l.getSize();this.o=="fixed_height"?m.height=this.l:m.width=this.l;l.nb(m);this.Qa(l);h=k},this);g&&h&&e&&Sl(h)this.g.width?this.l.wd(this.j):Yo.prototype.i.call(this)};function $o(a,b,c,d,e){W.call(this);this.Jg(a.Ga());this.O=a;this.i=c;this.na=[];this.nm=d;K(d,c);this.ua=Qo(this);J(this.ua,"backgroundColor","#fff");K(this.ua,c);if(this.Ca=e!==void 0?e:!0)a=Qo(this),K(a,c),this.va=new ap(a),this.va.show();b&&(this.l=b,this.g.ka(b,"update",this.dg),Km(b))}u($o,W);f=$o.prototype;f.getSize=function(){return this.i};f.Fa=function(){return this.l};function bp(a,b){a.na.push(b);b.le(a)}f.dg=function(){};function cp(a){a.dispatchEvent("load");a.Ca&&a.va.lb()} function Qo(a){var b=C("div");V(b,!0);J(b,{position:"absolute",left:0,top:0});a.nm.appendChild(b);return b}function dp(a){a.o&&(E(a.o),a.o=null)}f.Oa=function(){v(this.na,function(a){a.dispose()});this.na=null;dp(this)};function ep(a){a.N=Qo(a);K(a.N,a.getSize());J(a.N,{backgroundImage:"url(//www.google.com/images/cleardot.gif)",backgroundRepeat:"repeat"});a.g.ka(a.N,"mousedown",a.mq);a.g.ka(a.N,"dragstart",Vf)}f.mq=function(a){a.display=this;fp.dispatchEvent(a)};var fp=new Q; function ap(a){this.g=a;a={position:"absolute",left:0,color:"#808080",fontSize:"13px",backgroundColor:"white"};for(var b=0;b<2;b++){var c=C("div");V(c);J(c,a);this.g.appendChild(c);c.textContent="Loading...";a.bottom=0}}ap.prototype.show=function(a){J(this.g,{display:a?"none":""})};ap.prototype.lb=function(){this.show(!0)};$o.prototype.Jl=function(){gp(this)};function gp(a,b){dp(a);a.o=Qo(a);new hp(a.o,a.getSize(),b)} function hp(a,b,c){this.g=a;J(a,{backgroundColor:"#FFF",textAlign:"center"});K(a,b);x(a,De(Le,c||""));V(this.g)};function ip(a,b,c){$o.call(this,a,b.Fa(),b.g,c);this.Jg(jp);a=Qo(this);this.V=new kp(b.g,a);a=Qo(this);this.U=new kp(b.g,a);ep(this);nh(c,!0);O(c,"pageImageDisplay");this.ma=b;b.Fa()&&this.dg()}n(ip,$o);f=ip.prototype;f.mb=function(a){qn(a,"output",null);$o.prototype.mb.call(this,a);a.wd()&&this.dg()}; f.dg=function(){var a=this.Fa(),b=this.ma.i();if(b&&!this.j){b=lp(b);jg(this.V,"load",r(this.nq,this,a,b,this.getSize().width));mp(this.V,[b]);var c=Bm(this.O.Fb,a.Na());c.push(b);mp(this.U,c);this.j=!0;dp(this);a==this.O.Fa()&&this.dispatchEvent("fetch")}tn(a,[16,8])&&(a=Xc('

%s
',Tm("/googlebooks/restricted_logo.gif"),"You have either reached a page that is unavailable for viewing or reached your viewing limit for this book."), gp(this,a),cp(this))};f.nq=function(a,b,c){a==this.O.Fa()&&this.dispatchEvent("loaded");this.U.empty();var d=this.O.Fb;a=a.Na();d.g[a]=d.g[a]||{};d.g[a][c]=b;cp(this)};f.nc=ba(7);f.Oa=function(){this.j=!1;this.V.empty();this.U.empty();$o.prototype.Oa.call(this)};var jp=new Q;function lp(a){return a}function kp(a,b){Q.call(this);this.i=a;this.j=b;this.kf=!1;this.g=C("IMG");dk(this.g,"Page");this.g.width=this.i.width;this.j.appendChild(this.g);V(this.j)}n(kp,Q); kp.prototype.empty=function(){for(var a;a=zf(this.j);)bn(a)};function mp(a,b){Ym(a.g,r(a.l,a,a.g));for(var c=0;c1?this.dispatchEvent("scrolldown"):c-a.y>1&&this.dispatchEvent("scrollup"),c=a.y);this.Ib=new w(b,c);b=this.N;a=this.Ib;b.U||(b=b.l,a.y!=null&&(b.scrollTop=a.y),a.x!=null&&(b.scrollLeft=a.x));this.dispatchEvent("move")}; function rp(a){var b=a.Ib;return b?new Eg(b.x,b.y,a.i.width,a.i.height):null}f.getSize=function(){return this.i};f.Ed=function(a){this.dispatchEvent("movestart");this.Uc(a);this.dispatchEvent("moveend")};function sp(a,b,c){a=a.Ib;c(new w(a.x+b.x,a.y+b.y))} f.mf=function(a){var b=this.Ib,c=this.getSize();!b||Math.abs(b.x-a.x)>c.width||Math.abs(b.y-a.y)>c.height?this.Ed(a):(this.l&&(this.l.dispose(),this.l=null),this.l=new Mj([b.x,b.y],[a.x,a.y],250+Gb(Ib(b,a)/800,0,1)*250,Pj),I(this.l,"animate",r(this.rm,this)),I(this.l,"end",r(this.oq,this)),this.dispatchEvent("movestart"),jg(this,"movestart",r(this.l.dispose,this.l)),this.l.play())};f.rm=function(a){a=a.coords.map(Math.round);this.Uc(new w(a[0],a[1]))};f.oq=function(a){this.rm(a);this.dispatchEvent("moveend")}; f.Cb=function(){return this.j};f.Ae=ba(8);f.Jc=function(){return new w(Math.round(this.Ib.x+this.i.width/2),Math.round(this.Ib.y+this.i.height/2))};f.Ge=function(a){return new w(Math.round(a.x+this.i.width/2*-1),Math.round(a.y+this.i.height/2*-1))};f.wa=function(){np.oa.wa.call(this);this.U.Oa()};f.Jk=function(a){this.V==null&&(this.V=a);this.V.style.opacity=0;this.na.start()};f.Ms=function(){var a=this;this.na.stop();N(this.V,!0);U(function(){a.V.style.opacity=1})};f.om=1;function tp(a,b,c,d){$o.call(this,a,b.Fa(),b.g,c,d);this.ma=Qo(this);ep(this);b.Fa()&&this.dg();this.O=a;this.U=I(this.O.Ga(),"update",this.Da,!1,this)}n(tp,$o);tp.prototype.dg=function(){var a=this.Fa(),b=a.wd(),c=this.O.Xa().Qi(),d=a.na;if(b&&d&&!this.j){var e=gn(d,this.getSize().height);typeof e==="number"&&(d=hn(d,e),b=new R(b),S(b,"zoom",e),S(b,"pg",a.va),b=b.toString(),this.V=new cn(this.ma,d,this.getSize().height,c.Jj,c.Ij,r(c.eo,c,b,d,this.getSize().height),null),this.j=!0,this.Da())}}; tp.prototype.Da=function(){if(this.j){var a=Yg(this.ma);if(a){var b=dh(this.ma);a.top-=b.y;a.bottom-=b.y;a.left-=b.x;a.right-=b.x;a.bottom-a.top>0&&a.right-a.left>0&&dn(this.V,Gg(a))}Pm(this.O)}};tp.prototype.Oa=function(){this.j&&(this.V.empty(),this.j=!1);this.U&&(rg(this.U),this.U=null);$o.prototype.Oa.call(this)};function up(a){this.zd=a;So.call(this,"#ffff00")}u(up,So);up.prototype.Ug=function(){var a=this.i.Fa();if(a){var b=this.zd.getQuery();b!=this.o&&(a=Lm(a,b),this.ag(),a&&(nb(a,r(this.Pn,this)),this.o=b))}};function vp(a){Q.call(this);this.url=a;this.j=null;this.N=!0}n(vp,Q);vp.prototype.Td=function(){if(this.N)this.N=!1;else throw Error();};function wp(a,b){vp.call(this,a);this.U=b||"GET";this.i=new ug;this.g=new oi}n(wp,vp);f=wp.prototype;f.Td=function(a,b){vp.prototype.Td.call(this,a,b);this.o=a;this.l=b;this.i.ka(this.g,"success",r(this.rq,this));this.i.ka(this.g,"error",r(this.qq,this));this.g.send(this.url.toString(),this.U,void 0)};f.rq=function(a){this.j=JSON.parse(zi(a.target));U(r(this.dispatchEvent,this,"success"));this.o&&U(t(this.o,this.j));U(r(this.Kj,this))}; f.qq=function(){U(r(this.dispatchEvent,this,"error"));this.l&&U(this.l);U(r(this.Kj,this))};f.abort=function(){this.g.abort();this.Kj();return!1};f.Kj=function(){zg(this.i);this.l=this.o=null};function xp(a){return a.length?a.reduce(function(b,c){return Kg(b,c)},a[0].clone()):null};function yp(a,b,c,d,e){W.call(this);this.N=a;this.na=b;this.va=e;this.l=d;this.i=!1;this.o=C("div");c.appendChild(this.o);this.g.ka(b,"mousemove",this.U);this.g.ka(b,"mouseup",this.V)}u(yp,W);yp.prototype.U=function(a){if(!this.ua){a=Jb(new w(a.clientX,a.clientY),Zg(this.na));a=Bg(a,this.va);J(this.o,{border:"2px dashed #99AAEE",position:"absolute"});var b=a.right-a.left,c=a.bottom-a.top;Tg(this.o,a.left,a.top);K(this.o,b,c);this.j=a}}; yp.prototype.V=function(a){this.U(a);this.ua=!0;a=this.l;var b=Gg(this.j),c=Uo(this.N);c=zp(b,1/c);b=Ap(zp(c,1/a.getSize().width*1E3));a=new R(a.Cc());S(a,"ci",[b.left,b.top,b.width,b.height].join());S(a,"jscmd","click3");S(a,"output","text");c=Ap(c);Bp(this.N,[c]);E(this.o);(new wp(a)).Td(r(this.ma,this,c,b));this.dispatchEvent("endsize")}; yp.prototype.ma=function(a,b,c){c=c.page[0];var d=!1,e=c.clip_highlights;if(e){var g=[];v(e,function(h){g.push(new Eg(h.X,h.Y,h.W,h.H))});if(c=c.content)Bp(this.N,[a],c,b),d=!0}d||this.N.ag();this.dispose()};function zp(a,b){return new Eg(a.left*b,a.top*b,a.width*b,a.height*b)}function Ap(a){return new Eg(Math.round(a.left),Math.round(a.top),Math.round(a.width),Math.round(a.height))}yp.prototype.wa=function(){yp.oa.wa.call(this);E(this.o)};function Cp(a,b){W.call(this);this.o=a;this.Ea=b}var Dp;n(Cp,Po);f=Cp.prototype;f.le=function(a){Po.prototype.le.call(this,a);a=this.l;var b=C("div");V(b,!0);a.appendChild(b);vh(b,"selection-layer");K(a,this.i.getSize());K(b,this.i.getSize());this.g.ka(b,"click",this.sq);this.g.ka(b,"mousedown",this.tq)}; f.tq=function(a){if(Dp){a.stopPropagation();this.j&&this.j.dispose();var b=this.i.nm;a=Jb(new w(a.clientX,a.clientY),Zg(b));this.j=new yp(this.o,b,this.l,this.i.Fa(),a);this.N=I(document.body,"mousemove",r(this.uq,this));jg(this.j,["endsize","dispose"],r(this.Ks,this))}};f.sq=function(a){Dp&&a.stopPropagation()}; f.uq=function(a){if(this.j&&!this.j.qd){var b=new w(a.clientX,a.clientY),c=Fg(ih(this.Ea.Cb()));if(Cg(c,b)){var d=new w(0,0);v([[c.top-a.clientY,0,-1],[c.bottom-a.clientY,0,1],[c.left-a.clientX,-1,0],[c.right-a.clientX,1,0]],function(e){Math.abs(e[0])<40&&(d.x=e[1]||d.x,d.y=e[2]||d.y)});this.U||(this.U=new vj(100),this.g.ka(this.U,"tick",this.wq));this.V=d;d.x||d.y?this.U.start():this.U.stop()}}};f.wq=function(){var a=this.V,b=this.Ea;sp(b,new w(a.x*15,a.y*15),r(b.Ed,b))}; f.Ks=function(){rg(this.N);Qf(this.U);this.U=null};function Ep(){this.o="Selection copied to clipboard";this.g=!1;var a=B("DIV","entity-page-snackbar"),b=B("SPAN","entity-page-snackbar-text");G(b,this.o);a.appendChild(b);X(a,"hidden",!0);document.body.appendChild(a);this.l=a}Ep.prototype.show=function(){this.g?(this.i(),U(r(this.j,this),500)):this.j();U(r(this.i,this),6E3)};Ep.prototype.j=function(){J(this.l,"bottom","0");this.g=!0};Ep.prototype.i=function(){J(this.l,"bottom","-48px");this.g=!1};function Fp(a){this.i=a;this.l=new Ep;this.j=Gp(this)}Fp.prototype.ha=function(){return this.j};function Gp(a){var b=C("DIV");xh(b,["entity-page-copy-button","entity-page-action-chip"]);var c=C("SPAN");O(c,"entity-page-action-chip-icon");var d=C("SPAN");O(d,"entity-page-action-chip-label");G(d,"Copy");b.appendChild(c);b.appendChild(d);I(b,"click",r(a.g,a));Zj(b,"button");Hf(b,!0);I(b,"keydown",function(e){e.keyCode!=32&&e.keyCode!=13||a.g.call(a)});return b} Fp.prototype.g=function(){this.i.focus();this.i.select();document.execCommand("copy");this.l.show()};function Hp(){}Hp.prototype.Lc=function(){};function Ip(a,b,c,d,e,g,h,k,l){var m=Jp(c),p=ih(a),y=Yg(a);y&&Hg(p,Gg(y));y=Xe(a);var D=Xe(c);if(y.g!=D.g){y=y.g.body;D=D.g.defaultView;var H=new w(0,0),F=mf(Ze(y));b:{try{Gd(F.parent);var L=!0;break b}catch(jb){}L=!1}if(L){L=y;do{var kb=F==D?Zg(L):eh(L);H.x+=kb.x;H.y+=kb.y}while(F&&F!=D&&F!=F.parent&&(L=F.frameElement)&&(F=F.parent))}y=Jb(H,Zg(y));p.left+=y.x;p.top+=y.y}a=Kp(a,b);b=p.left;a&4?b+=p.width:a&2&&(b+=p.width/2);p=new w(b,p.top+(a&1?p.height:0));p=Jb(p,m);e&&(p.x+=(a&4?-1:1)*e.x,p.y+= (a&1?-1:1)*e.y);if(h)if(l)var Ta=l;else if(Ta=Yg(c))Ta.top-=m.y,Ta.right-=m.x,Ta.bottom-=m.y,Ta.left-=m.x;return Lp(p,c,d,g,Ta,h,k)} function Jp(a){if(a=a.offsetParent){var b=a.tagName=="HTML"||a.tagName=="BODY";if(!b||Sg(a)!="static"){var c=Zg(a);if(!b){b=lh(a);var d;if(d=b){d=kk&&hc(mk,10)>=0;var e;if(e=Vd)e=hc(ek,10)>=0;var g=jk&&hc(mk,85)>=0;d=Ld||d||e||g}b=d?-a.scrollLeft:b&&Rg(a,"overflowX")!="visible"?a.scrollWidth-a.clientWidth-a.scrollLeft:a.scrollLeft;c=Jb(c,new w(b,a.scrollTop))}}}return c||new w} function Lp(a,b,c,d,e,g,h){a=a.clone();var k=Kp(b,c);c=M(b);h=h?h.clone():c.clone();a=a.clone();h=h.clone();var l=0;if(d||k!=0)k&4?a.x-=h.width+(d?d.right:0):k&2?a.x-=h.width/2:d&&(a.x+=d.left),k&1?a.y-=h.height+(d?d.bottom:0):d&&(a.y+=d.top);g&&(e?(d=h,k=0,(g&65)==65&&(a.x=e.right)&&(g&=-2),(g&132)==132&&(a.y=e.bottom)&&(g&=-5),a.xe.right&&(d.width=Math.min(e.right-a.x,l+d.width-e.left), d.width=Math.max(d.width,0),k|=4)),a.x+d.width>e.right&&g&1&&(a.x=Math.max(e.right-d.width,e.left),k|=1),g&2&&(k|=(a.xe.right?32:0)),a.ye.bottom&&(d.height=Math.min(e.bottom-a.y,l+d.height-e.top),d.height=Math.max(d.height,0),k|=8)),a.y+d.height>e.bottom&&g&4&&(a.y=Math.max(e.bottom-d.height,e.top),k|=2),g&8&&(k|=(a.ye.bottom?128:0)),e=k):e=256,l=e);e=new Eg(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;Tg(b,new w(e.left,e.top));h=e.getSize();Lb(c,h)||oh(b,h);return a}function Kp(a,b){return(b&8&&lh(a)?b^4:b)&-9};function Mp(a,b){this.Kb=8;this.Ja=b||void 0;Uk.call(this,a)}u(Mp,Uk);function Np(a,b){a.Kb=b;a.isVisible()&&a.Xf()}Mp.prototype.jd=function(){return this.Ja||null};Mp.prototype.setPosition=function(a){this.Ja=a||void 0;this.isVisible()&&this.Xf()};Mp.prototype.Xf=function(){if(this.Ja){var a=!this.isVisible()&&this.getType()!="move_offscreen",b=this.ha();a&&(b.style.visibility="hidden",N(b,!0));this.Ja.Lc(b,this.Kb,this.ol);a&&N(b,!1)}};function Op(a){Mp.call(this,a);Wk(this,!1);this.i=new ug;this.g=jn();O(a,"viewport-selection-popup");Pp&&Pp.dispose();Pp=this}n(Op,Mp);Op.prototype.j=function(){this.dispatchEvent("close");this.dispose()}; function Qp(a,b,c){var d=a.g?A("selection-popup-table"):a.ha(),e=a.g?C("TR"):C("div");O(e,"selection-popup-select-container");d.appendChild(e);d=a.g?C("TD"):C("div");O(d,"selection-popup-select-label");e.appendChild(d);d.appendChild(qf(b));d=a.g?C("TD"):C("div");e.appendChild(d);b=C("input");b.value=c;O(b,"viewport-input");d.appendChild(b);nh(b,!1);a.g&&(c=C("TD"),e.appendChild(c),e=(new Fp(b)).ha(),c.appendChild(e));a.i.ka(b,"mousedown",Rp)}function Rp(a){a.stopPropagation()} Op.prototype.wa=function(){E(this.ha());Mp.prototype.wa.call(this);this.i.dispose()};var Pp=null;function Sp(a,b){this.g=a instanceof w?a:new w(a,b)}u(Sp,Hp);Sp.prototype.Lc=function(a,b,c,d){var e=Ze(a);var g=e.body;e=e.documentElement;e=new w(g.scrollLeft||e.scrollLeft,g.scrollTop||e.scrollTop);g=this.g.x+e.x;e=this.g.y+e.y;var h=Jp(a);g-=h.x;e-=h.y;Lp(new w(g,e),a,b,c,null,null,d)};function Tp(a,b){Sp.call(this,a,b)}u(Tp,Sp);Tp.prototype.i=0;Tp.prototype.l=function(a){this.i=a};Tp.prototype.Lc=function(a,b,c,d){var e=Yg((a?Ze(a):document).documentElement);var g=Xe(a);g=lf(g.g);g=new w(this.g.x+g.scrollLeft,this.g.y+g.scrollTop);var h=b,k=Lp(g,a,h,c,e,10,d);if((k&496)!=0){if(k&16||k&32)h^=4;if(k&64||k&128)h^=1;k=Lp(g,a,h,c,e,10,d);(k&496)!=0&&Lp(g,a,b,c,e,this.i,d)}};function Up(a){So.call(this,"#4a95d6");this.j=a}n(Up,So);Up.prototype.le=function(a){So.prototype.le.call(this,a);J(this.l,{cursor:"pointer"});this.g.ka(this.l,"mousedown",Vp)};function Vp(a){a.stopPropagation()} function Bp(a,b,c,d){a.ag();nb(b,r(a.Pn,a));a.N&&rg(a.N);a.o&&a.o.dispose();b=C("div");document.body.appendChild(b);var e=xp(a.U);if(e){var g=Zg(a.l);b=new Op(b);if(c&&d){var h=a.Fa(),k=h.wd();if(k){var l=new R(k);d=[d.left,d.top,d.width,d.height].join();S(l,"ci",d);S(l,"edge",0);l=l.toString();var m=new R(h.Cc());S(m,"ci",d);S(m,"source","bookclip");m=Xc('',m.toString(),l)}d=m;tf(b.ha());m=b.ha();h=C("IMG");h.src="/googlebooks/images/material/close_black_24dp.png"; O(h,"selection-popup-close");m.appendChild(h);b.i.jf(h,"click",r(b.j,b));h=B("DIV",{},"Share this clip");O(h,"selection-popup-title");m.appendChild(h);b.g&&(h=B("TABLE",{id:"selection-popup-table"}),m.appendChild(h));c&&(Qp(b,"Selection text",c),m=C("DIV"),O(m,"selection-popup-translate-container"),b.g?(h=zf(A("selection-popup-table")),k=C("TD"),h.appendChild(k),k.appendChild(m)):b.ha().appendChild(m),h=new R("https://translate.google.com/translate_t"),S(h,"text",c),S(h,"sl","auto"),S(h,"tl","auto"), c=C("A"),c.href=h.toString(),c.target="_blank",b.g&&(h=C("SPAN"),xh(h,["selection-popup-translate-icon","entity-page-action-chip-icon"]),c.appendChild(h)),h=C("SPAN"),G(h,"Translate"),O(h,"entity-page-action-chip-label"),c.appendChild(h),h=C("SPAN"),G(h,"\u00bb"),O(h,"selection-popup-translate-arrow"),c.appendChild(h),O(c,"selection-popup-translate-link"),O(c,"entity-page-action-chip"),m.appendChild(c));l&&Qp(b,"Image",l);d&&Qp(b,"Embed",d)}else c=C("DIV"),G(c,"Loading..."),O(c,"selection-popup-loading-msg"), b.ha().appendChild(c);Np(b,4);a.o=b;c=g.x+e.left+e.width;e=g.y+e.top+e.height;g=hh(b.ha()).width;c-g<24&&(c=g+24);U(t(Wp,b,new Tp(new w(c,e))));a.N=jg(b,"close",r(a.ag,a))}}function Wp(a,b){a.qd||(a.setPosition(b),a.Ba(!0))}Up.prototype.ag=function(){So.prototype.ag.call(this);this.o&&this.o.dispose()};Up.prototype.wa=function(){So.prototype.wa.call(this);this.o&&this.o.dispose();this.N&&rg(this.N)};function Xp(a,b,c){return a.Xa().Qi()?new tp(a,b,c):new ip(a,b,c)}function Yp(a,b){if(b instanceof ip){bp(b,new up(a.Ya()));bp(b,new Wo);var c=new Up(a.Cb()),d=new Cp(c,a.Ga());bp(b,d);bp(b,c);bp(b,new Xo(a))}};function Zp(a,b){W.call(this);this.O=a;b=Math.floor(b/2);var c=Math.floor(b/this.O.hb().g.aspectRatio());this.j=new Kb(b,c);this.i=C("div");J(this.i,{position:"absolute",backgroundColor:"white",top:0,left:0});this.na=[];a.Ga().N.i.appendChild(this.i);this.l=C("div");this.N=C("div");this.na.push(I(this.l,"dblclick",r(this.zt,this)));a={overflow:"hidden",backgroundColor:"#fcfcfc",position:"absolute",border:"1px solid #ccc"};J(this.l,a);J(this.N,a);this.i.appendChild(this.l);this.i.appendChild(this.N); this.V=C("div");this.ma=C("div");this.l.appendChild(this.V);this.N.appendChild(this.ma);$p(this)}n(Zp,Qj);function $p(a){a.o&&a.o.Oa();a.U&&a.U.Oa();tf(a.V);tf(a.ma);oh(a.l,a.j);oh(a.N,a.j);a.o=Xp(a.O,new Yo(a.ua,a.j),a.V);Yp(a.O,a.o);a.va=new Ro(!0);bp(a.o,a.va);a.U=Xp(a.O,new Yo(a.Ca,a.j),a.ma);a.Da=new Ro(!1);Yp(a.O,a.U);bp(a.U,a.Da)}f=Zp.prototype;f.setPosition=function(a){a.x<0&&(a.x=0);Tg(this.i,a)};f.zt=function(a){a.preventDefault();a.stopPropagation();this.O.rb("previous")}; f.Ba=function(a){J(this.i,{display:a?"":"none"})};f.Oc=function(){J(this.l,{left:0,top:0});J(this.N,{left:this.j.width+"px",top:0})};f.Ld=function(){return mb([this.ua,this.Ca],function(a){return!!a})};f.Oa=function(){this.o.Oa();this.U.Oa();for(var a;a=this.na.pop();)rg(a);this.i.parentNode&&E(this.i)};function aq(a){return a*2};function bq(a){this.O=a}n(bq,en);bq.prototype.render=function(a){var b=new Zp(this.O,a.getSize().width);b.setPosition(a.jd());b.Oc();b.Ba(!0);return this.g=b};function cq(a,b){var c=a.match(dq);return c?Number(c[1])*b[c[2]]:Number(a)}var dq=/^(-?\d+\.?\d*)([KMGTPEZYkmun]?)B?$/,eq={"":1,n:1E-9,u:1E-6,m:.001,k:1E3,K:1E3,M:1E6,G:1E9,T:1E12,P:1E15,E:1E18,Z:1E21,Y:1E24},fq={"":1,n:9.313225746154785E-10,u:9.5367431640625E-7,m:1/1024,k:1024,K:1024,M:1048576,G:1073741824,T:1099511627776,P:0x4000000000000,E:0x1000000000000000,Z:1.1805916207174113E21,Y:1.2089258196146292E24};function gq(a,b){var c=hq(a),d=hq(b);Sl(a)==0||Sl(b)==0?d="This is a preview. The total pages displayed will be limited.":typeof c!=="number"||typeof d!=="number"||c>=d||Math.abs(c-d)==1?d="Some pages are omitted from this book preview.":iq(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 hq(a){a=a.kb();var b;/[^0-9]/.test(a)||Wb(a)?b=null:b=Vb(a,"B")?cq(a,fq):cq(a,eq);return b} function iq(a,b){a=hq(a);b=hq(b);return a+1-(b-1)==0};function jq(a,b,c){Q.call(this);this.O=a;this.j=b;this.o=M(b).width;this.N=c;this.i=!1;this.g=yj()}n(jq,Q);jq.prototype.hf=function(){return this.i};function kq(a,b){if(b!=a.i){a.i=b;var c=a.O.Ga().N.i;N(c,!1);M(c);[t(lq,a.j,a.N,a.o,a.g,b),r(a.l,a),t(N,c,!0)].forEach(U)}}jq.prototype.l=function(){this.dispatchEvent("change")};function lq(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="");N(a,!e)};var mq=null;function nq(a,b){ug.call(this);this.i=mq;this.O=a;this.g=b;this.O.Xa().U||(this.ka(this.O,"pageturn",this.j),this.ka(this.g,"dispose",this.dispose))}n(nq,ug); nq.prototype.j=function(){var a=this.g.o.g.Ld()[0]||new Xm,b=this.g.o.g.Ld()[1]||new Xm,c=this.U,d=this.o,e=d?Sl(d):-1,g=Sl(a)||-1,h=Sl(b)||-1,k=Math.max(c?Sl(c):-1,e),l=Math.max(g,h);if(Math.abs(l-k)>this.g.om){if(l-k>0){var m=k==e?d:c;var p=a}l-k<0&&(m=h!=-1?b:a,p=d);h-g>1&&(m=a,p=b);iq(m,p)||m===void 0||p===void 0||(a=gq(m,p),this.i.V(a),this.i.show(3E3))}};function oq(a){mn.call(this,a)}n(oq,mn);f=oq.prototype;f.Dd=function(a){mn.prototype.Dd.call(this,a);a&&a.additional_info&&(this.g=a.additional_info["[NewspaperJSONPageInfo]"],this.g.articles&&(this.i={},v(this.g.articles,function(b){var c=b.aid;c&&(this.i[c]=new Eo(b))},this)))};f.ze=function(){return this.l(32)?"Front Cover":this.l(64)?"Back Cover":mn.prototype.ze.call(this)};f.Ok=function(){return{width:"w"}};f.Li=ba(9);f.bo=function(){return this.U};function pq(a){Jn.call(this);Jn.apply(this,arguments);this.N();I(this,"update",r(this.N,this))}n(pq,Jn);function qq(a,b){var c={};v(b.page,function(e){var g=Vl(this,e.pid);g&&rn(g,e);c[e.pid]=!0},a);b=Tl(a);var d=mb(b,function(e){return!!c[e.Na()]||!!this.U[e.Na()]},a);b.length!=d.length&&a.j(d)}pq.prototype.Yk=function(a){this.o?qq(this,a):Jn.prototype.Yk.call(this,a)}; pq.prototype.N=function(){var a={},b=0;v(Tl(this),function(h){var k=Sl(h);a[k]=h;b=Math.max(b,k)});for(var c=[],d=-1;d<=b;d+=2){var e=a[d],g=a[d+1];(e||g)&&c.push([e,g])}this.V=c};pq.prototype.l=oq;function rq(a){this.o=a.Seller;this.Ma=a.Url;this.i=a.TrackingUrl;this.g=a.Price;this.j=a.IsInStock;this.l=a.IsPublisher};function sq(a){this.j=a.page_id;this.i=a.page_number||"";this.g=a.snippet_text||"";this.l=a.page_url}sq.prototype.Na=function(){return this.j};sq.prototype.Cc=function(){return this.l};function tq(a){this.g=a;this.g.number_of_results>0?(this.Ab=nb(this.g.search_results,function(b){return new sq(b)},this),this.id=this.g.search_results[0].page_id+uq(this)+this.g.search_results[this.g.number_of_results-1].page_id):this.Ab=[]}function vq(a){return a.g.spellresults&&a.g.spellresults.correct_spell?a.g.spellresults.correct_spell:null}function uq(a){return a.g.search_query_escaped};function wq(a,b){W.call(this);this.o=a;this.N=b;this.l=b.j;this.j=b.g;this.i=C("DIV");this.i.className="separator-container";this.o.appendChild(this.i);a=C("TABLE");a.className="separator-outer-table";this.i.appendChild(a);var c=a.insertRow(-1).insertCell(-1);c.align="center";var d=C("DIV");d.className="separator-background";c.appendChild(d);c=C("TABLE");c.className="separator-inner-table";d.appendChild(c);c.align="center";if(b.i()){var e=A("gb-mobile-menu-pubinfo");if(e){b=af("IMG",e);if(b.length== 1){b=b[0].cloneNode(!0);var g=c.insertRow(-1).insertCell(-1);wf(g,b,0);O(g,"separator-message");O(g,"separator-pubinfo-message")}b=gq(this.l,this.j);e=If(e);c=c.insertRow(-1).insertCell(-1);g=C("SPAN");g.className="separator-text";c.appendChild(g);var h=this.N;h.i&&h.l?x(g,z(e)):x(g,z(b+"
"+e));O(c,"separator-message");O(c,"separator-pubinfo-message")}O(a,"separator-pubinfo");O(d,"separator-pubinfo")}else a=c.insertRow(-1).insertCell(-1),O(a,"separator-message"),a.textContent=gq(this.l,this.j); nh(this.i,!0);V(this.i)}n(wq,Qj);wq.prototype.nb=function(a){K(this.i,a)};wq.prototype.setPosition=function(a){Tg(this.i,a)};wq.prototype.Oa=function(){E(this.i)};function xq(a,b,c,d){this.Cj=this.Xk=10;this.di=this.ei=20;b=Math.floor((b-20)/(100+this.Xk));d&&b>2&&(b-=b%2);Jo.call(this,b);Tl(a);a=nb(Tl(a),function(e){e=new Pi(e);var g=e.getSize();g.width=100;e.nb(g);return e});c&&(c=a[0].getSize(),d=new Bi,d.nb(c),this.Qa(d));v(a,r(this.Qa,this));Li(this)}u(xq,Jo);function yq(a,b){np.call(this,b);this.Eb=a;this.g.ka(a,"pagechange",this.Od);this.g.ka(this.Eb,"searchupdate",this.Vk);if(a=A("subscription-bar"))this.g.ka(this,"scrolldown",t(this.Jk,a)),this.g.ka(this,"scrollup",t(this.Ms,a))}u(yq,np);f=yq.prototype;f.Ld=function(){var a=this.vc.Kd(),b=[];this.ma&&(a=this.ma.Sh(a)[0]||[]);v(a,function(c){c instanceof Pi&&b.push(c.Fa())});return b};f.Wf=function(a){this.Tf(!1,!1);this.Ne(this.qg(a))}; f.Me=function(a){var b=[];this.Hb().Jf()=="fixed_width"&&b.push(this.getSize().width);this.Zd&&(a=Hn(this.Zd(),this.Hb().N(),a,b))&&this.Wf(a)};f.xe=function(){this.Tf(!0,!1);var a=this.getSize().width;this.Ne(this.qg(a))};f.ff=ba(10);f.Tf=function(a,b){this.rg=a;this.Ki=b};f.resize=function(){if(this.rg)this.xe();else{var a=this.Hb().N();a&&this.Wf(a)}};f.Ne=function(a){var b=this.Hb();this.Tc(a);b&&(a=Vj(new Uj(b,a),this.Jc()),(a=this.Ge(a))&&this.Ed(a))};f.Od=function(){this.Eh||this.Nd(this.Eb.Fa())}; f.Nd=function(a){this.vc.Bc&&(a=this.vc.Bc(a))&&this.Uc(new w(Math.round(a.Xd()),Math.round(a.kd())))};f.Vk=function(){zq&&(this.Pk().Oa(),this.va&&this.va(),this.jc())};var zq=!0;function Aq(a,b){this.Ea=a;this.g=b}n(Aq,en);Aq.prototype.render=function(a){var b=this.g(),c=a.Fa(),d=this.Ea.Zd();d=hb(d.wf)/a.getSize().width;var e=a.getSize();b.ij=e.width;b.Gg=e.height;e=a.getSize().clone();e.width*=d;e.height*=d;b.fu=e.width;b.cu=e.height;b.setPosition(a.Xd(),a.kd());b.mb(c);b.Oc();return b};function Bq(){};function Cq(a){this.Ea=a}u(Cq,Bq);Cq.prototype.Nk=function(a){var b=this.Sh(a);a=b[0]||[];b=b[1]||[];b.sort(t(Dq,this.Ea.Jc()));var c=[];yb(c,a,b);return c};function Dq(a,b,c){return Dg(Fg(Ci(b)),a)-Dg(Fg(Ci(c)),a)}Cq.prototype.Sh=function(a){var b=rp(this.Ea),c=new Eg(b.left-800,b.top-800,b.width+1600,b.height+1600);return Db(a,function(d){d=Ci(d);if(Ig(c,d))return Ig(b,d)?0:1})};function Eq(a,b){this.Ea=b;this.O=a}n(Eq,Cq);Eq.prototype.Nk=function(a){var b=Cq.prototype.Nk.call(this,a),c=this.O.Fa();if(c){var d=[],e=this.O.hb();v([1,-1],function(){var g=Ul(e,c.Na(),1);g&&d.push(g)});v(a,function(g){g.Fa&&rb(d,g.Fa())&&sb(b,g)})}return b};function Fq(a,b,c){W.call(this);this.O=a;this.Ea=b;this.j=C("div");V(this.j,!0);J(this.j,{position:"absolute",display:"none"});c.appendChild(this.j);this.o=C("div");V(this.o,!0);J(this.o,{position:"absolute"});this.j.appendChild(this.o);this.N=C("div");V(this.N,!0);this.j.appendChild(this.N);this.U=C("div");V(this.U,!0);this.N.appendChild(this.U);this.lb()}u(Fq,Qj);f=Fq.prototype; f.Oc=function(){var a=this.ij-2,b=this.Gg-2,c=this.fu-2,d=this.cu-2;J(this.N,{backgroundColor:"#cccccc",position:"absolute"});Tg(this.N,0,0);K(this.N,this.ij,this.Gg);J(this.U,{overflow:"hidden",backgroundColor:"#fcfcfc",position:"absolute"});Tg(this.U,1,1);K(this.U,a,b);this.show();var e=this.O;a=Xp(e,new Zo(this.Fa(),new Kb(a,b),new Kb(c,d)),this.U);a instanceof ip?Yp(e,a):a instanceof tp&&a instanceof tp&&bp(a,new up(e.Ya()));this.i=a};f.lb=function(){N(this.j,!1)};f.show=function(){N(this.j,!0)}; f.nc=ba(5);f.Oa=function(){this.i&&this.i.Oa();E(this.j)};f.setPosition=function(a,b){Tg(this.j,a,b)};f.kd=function(){return Vg(this.j).x};f.Xd=function(){return Vg(this.j).y};f.mb=function(a){this.l=a};f.Fa=function(){return this.l};f.Gb=function(){return this.Gg};f.wb=function(){return this.ij};function Gq(a){return a+2}f.getSize=function(){return new Kb(this.ij,this.Gg)};function Hq(a){W.call(this);tf(a);V(a);this.l=a;this.i=C("div");V(this.i,!0);yj()&&(gf(a,{dir:"ltr"}),gf(this.i,{dir:"rtl"}));a.appendChild(this.i)}u(Hq,W);function Iq(a,b){Hq.call(this,b);this.Ea=a;this.g.ka(b,"scroll",this.N);J(b,"position","relative");J(this.i,"position","absolute");this.j=C("div");O(this.j,"scroll-background");V(this.j,!0);b.appendChild(this.j);this.j.appendChild(this.i)}n(Iq,Hq);function op(a){var b=a.ma;a.V&&b&&(J(a.i,"left",Math.floor(Math.max(0,a.Ea.N.l.clientWidth-b.width)/2)+"px"),J(a.j,"height",b.height+"px"))}Iq.prototype.na=function(){this.o=!1;this.N()}; Iq.prototype.N=function(){if(!this.o){var a=this.Ea.Ib;if(a){a=a.clone();var b=this.l;b=new w(b.scrollLeft,b.scrollTop);Hb(a,b)||(this.U=!0,this.Ea.Ed(b),this.U=!1)}}};function Jq(a){var b=a.Cb(),c=new Iq(this,b);J(b,"overflow","auto");J(b,{overflowX:"auto",overflowY:"scroll"});O(b,"overflow-scrolling");gf(b,{dir:"ltr"});yq.call(this,a,c);qp(this,new Eq(a,this));pp(this,Kq(this));var d=a.hb(),e=a.Xa().Jf();this.o=a.Xa().U?function(g){return new Lo(d,e,g)}:a.Xa().na?function(g){return new Lo(d,e,g,!0,a.Xa().na)}:function(g){return new Lo(d,e,g,!0)};b=this.Eb.Xa();b.Jf()=="fixed_height"?(b=b.Zd(),b=b[Math.floor(b.length/2)]+2):b=Lq(b)+2;this.Wf(b);this.g.ka(this.Eb, "pagesupdate",this.Ht);this.g.ka(this.Eb,"pagemodechange",this.xq);this.g.ka(this,"move",this.jc);this.g.ka(this,"move",this.Qv)}u(Jq,yq);f=Jq.prototype;f.Kc=function(){this.Me(1)};f.Zc=function(){this.Me(-1)};f.Zd=function(){var a=this.Eb.Xa(),b=xb(a.Zd());a.Jf()=="fixed_width"&&(a=this.Eb.Xa().Ka)&&a-hb(b)>150&&(a<1500?sb(b,a):sb(b,1500));return new Gn(nb(b,Gq))};f.qg=function(a){return this.o(a)}; f.getSize=function(){if(this.j.hasChildNodes()){var a=qh(this.j.childNodes[0]).width;a=new Kb(a,this.i.height)}else a=this.i;return a};function Kq(a){var b=new Dn;En(b,Pi,new Aq(a,t(Fi,Fq,a.Eb,a,a.N.i)));En(b,Ho,new No(a.Eb,function(c){return new wq(a.N.i,c)}));return b}f.Qv=function(){if(this.Ca){var a=Ii(this.vc,this.Jc().y);a&&a.Fa&&(a=a.Fa(),this.Eb.Fa()!=a&&(this.Eh=!0,this.Eb.Ad(a.Na()),this.Eh=!1))}this.Ca=!0}; f.Ht=function(){var a=this.Eb.Fa(),b=this.Eb.hb(),c=Vl(b,a.Na());if(!c)a:{c=Sl(a);b=Tl(b);for(a=b.length-1;a>=0;a--){var d=b[a];if(Sl(d)<=c){c=d;break a}}c=null}a=this.Ib;b=this.Hb();d=b.Bc(c);a=Jb(a,d.jd());b=this.qg(b.N());c=b.Bc(c).jd();c=new w(c.x+a.x,c.y+a.y);this.Tc(b);this.Ed(c)};f.xq=function(){this.U.Oa();this.jc()}; f.Hk=function(a){if(a.bo&&a.U){var b=a.U;if(a.ma!=null)var c=a.ma;else a.ma=new Go(this.N.i),c=a.ma;c.g=this.N.i;if(A("focus_article_div")){var d=A("focus_article_div");E(d)}d=this.Hb().Bc(a);a=d.wb()/a.ke();if(b.If()&&(b=b.If())){var e=b[0];if(e&&e.length==4){b=a*e[0]+d.Xd();d=a*e[1]+d.kd();var g=a*e[2];a*=e[3];e=C("DIV");e.setAttribute("id","focus_article_div");V(e,!0);jh(e,.3);J(e,{position:"absolute",left:b+"px",top:d+"px",width:g+"px",height:a+"px",cursor:"pointer",backgroundColor:"#36C",border:"2px solid #00F"}); c.g.appendChild(e)}}}};function Mq(a,b,c,d,e){W.call(this);this.O=a;this.Ea=b;this.l=c;var g=C("div");J(g,{position:"absolute"});e=e.width-2;Tg(g,d.x+(yj()?e:0),d.y);b.N.i.appendChild(g);this.i=g;b=Math.floor(e/Qi(c));g=new Kb(e,b);this.j=C("div");this.i.appendChild(this.j);J(this.j,{padding:"1px",position:"absolute"});this.o();b=C("div");this.j.appendChild(b);J(b,{overflow:"hidden",backgroundColor:"#fcfcfc"});K(b,g);this.j.appendChild(b);d=C("IMG");d.title=c.ze();this.U=d;e=new R(c.N.Do);S(e,"pg",c.Na());c.ob.sig&&S(e, "sig",c.ob.sig);e=new R(e.toString());S(e,"zoom","1");S(e,"img","1");S(e,"w",g.width);if(g=this.O.Xa().md)S(e,"imgtk",g),S(e,"jtp",Sl(c));d.src=e.toString();b.appendChild(d);J(this.j,"cursor","pointer");this.g.ka(this.j,"click",this.N);this.g.ka(a,"pagechange",this.o)}n(Mq,Qj);Mq.prototype.o=function(){var a=!1,b=this.O.Fa();b&&b==this.l&&(a=!0);J(this.j,"backgroundColor",a?"#6B90DA":"#ccc")};Mq.prototype.N=function(){this.O.Zb(Jq);this.O.mb(this.l);Nq.dispatchEvent("click")}; Mq.prototype.Oa=function(){bn(this.U);E(this.i)};var Nq=new Q;function Oq(a,b){this.O=a;this.Ea=b}n(Oq,en);Oq.prototype.render=function(a){return new Mq(this.O,this.Ea,a.Fa(),a.jd(),a.getSize())};function Pq(a){var b=a.Cb();J(b,{overflow:"hidden"});var c=new Iq(this,b);yq.call(this,a,c);this.g.ka(this,"move",this.jc);J(b,{overflow:"auto"});pp(this,Qq(this));this.Tc(Rq(this));qp(this,new Cq(this));U(r(this.jc,this),0);this.g.ka(this,"resize",this.o);var d=A("subscription-bar");d&&(this.Jk(d),U(function(){N(d,!1)},600))}u(Pq,yq);Pq.prototype.Nd=function(a){a=this.Hb().Bc(a).jd();this.Ed(new w(void 0,a.y-40))}; function Rq(a){var b=a.Eb.Xa().yc;return new xq(a.Eb.hb(),jn()?Math.min(a.getSize().width,1120):a.getSize().width,b,b)}Pq.prototype.o=function(){this.Tc(Rq(this));this.Nd(this.Eb.Fa())};function Qq(a){var b=new Dn;En(b,Pi,new Oq(a.Eb,a));return b};function Sq(a){this.xc=a.Title;this.i=a.Pid;this.g=a.PgNum}Sq.prototype.kb=function(){return this.xc};Sq.prototype.getId=function(){return this.i};function Tq(a,b,c,d){Xf.call(this,d);this.type="key";this.keyCode=a;this.charCode=b;this.repeat=c}u(Tq,Xf);function Uq(a,b){Q.call(this);a&&this.attach(a,b)}u(Uq,Q);f=Uq.prototype;f.ya=null;f.aj=null;f.il=null;f.cj=null;f.Qc=-1;f.Qe=-1;f.Lj=!1; var Vq={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},Wq={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},Xq=Od&&Ld;f=Uq.prototype; f.yq=function(a){Md&&(this.Qc==17&&!a.ctrlKey||this.Qc==18&&!a.altKey||Od&&this.Qc==91&&!a.metaKey)&&(this.Qe=this.Qc=-1);this.Qc==-1&&(a.ctrlKey&&a.keyCode!=17?this.Qc=17:a.altKey&&a.keyCode!=18?this.Qc=18:a.metaKey&&a.keyCode!=91&&(this.Qc=91));Gh(a.keyCode,this.Qc,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey)?(this.Qe=Hh(a.keyCode),Xq&&(this.Lj=a.altKey)):this.handleEvent(a)};f.zq=function(a){this.Qe=this.Qc=-1;this.Lj=a.altKey}; f.handleEvent=function(a){var b=a.Rb,c=b.altKey;if(Md&&a.type=="keypress"){var d=this.Qe;var e=b.charCode>=0&&b.charCode<63232&&Fh(d)?b.charCode:0}else a.type=="keypress"?(Xq&&(c=this.Lj),b.keyCode==b.charCode?b.keyCode<32?(d=b.keyCode,e=0):(d=this.Qe,e=b.charCode):(d=b.keyCode||this.Qe,e=b.charCode||0)):(d=b.keyCode||this.Qe,e=b.charCode||0),Od&&e==63&&d==224&&(d=191);var g=d=Hh(d);d?d>=63232&&d in Vq?g=Vq[d]:d==25&&a.shiftKey&&(g=9):b.keyIdentifier&&b.keyIdentifier in Wq&&(g=Wq[b.keyIdentifier]); if(!Ld||a.type!="keypress"||Gh(g,this.Qc,a.shiftKey,a.ctrlKey,c,a.metaKey))a=g==this.Qc,this.Qc=g,b=new Tq(g,e,a,b),b.altKey=c,this.dispatchEvent(b)};f.ha=function(){return this.ya};f.attach=function(a,b){this.cj&&Yq(this);this.ya=a;this.aj=I(this.ya,"keypress",this,b);this.il=I(this.ya,"keydown",this.yq,b,this);this.cj=I(this.ya,"keyup",this.zq,b,this)};function Yq(a){a.aj&&(rg(a.aj),rg(a.il),rg(a.cj),a.aj=null,a.il=null,a.cj=null);a.ya=null;a.Qc=-1;a.Qe=-1}f.wa=function(){Uq.oa.wa.call(this);Yq(this)};function Zq(){}var $q;Ua(Zq);var ar={button:"pressed",checkbox:"checked",menuitem:"selected",menuitemcheckbox:"checked",menuitemradio:"checked",radio:"checked",tab:"selected",treeitem:"selected"};f=Zq.prototype;f.eg=function(){};f.Mc=function(a){return a.g.Pa("DIV",br(this,a).join(" "),a.Ac())};f.Ic=function(a){return a};function cr(a,b,c){(a=a.ha?a.ha():a)&&(c?xh:zh)(a,[b])}f.li=function(){return!0}; f.Tb=function(a,b){b.id&&a.Ig(b.id);var c=this.Ic(b);c&&c.firstChild?dr(a,c.firstChild.nextSibling?xb(c.childNodes):c.firstChild):a.hg=null;var d=0,e=this.Sa(),g=this.Sa(),h=!1,k=!1,l=xb(uh(b));l.forEach(function(m){h||m!=e?k||m!=g?d|=this.Pi(m):k=!0:(h=!0,g==e&&(k=!0));this.Pi(m)==1&&Ff(c)&&Hf(c,!1)},this);a.me=d;h||(l.push(e),g==e&&(k=!0));k||l.push(g);(a=a.Jd)&&l.push.apply(l,a);h&&k&&!a||vh(b,l.join(" "));return b};f.mi=function(a){Rk(a)&&this.tm(a.ha(),!0);a.isEnabled()&&this.Vg(a,a.isVisible())}; function er(a,b,c){if(a=c||a.eg())c=b.getAttribute("role")||null,a!=c&&Zj(b,a)}function fr(a,b,c){var d=b.Ia;d!=null&&a.Ph(c,d);b.isVisible()||X(c,"hidden",!b.isVisible());b.isEnabled()||a.he(c,1,!b.isEnabled());gr(b,8)&&a.he(c,8,hr(b,8));gr(b,16)&&a.he(c,16,hr(b,16));gr(b,64)&&a.he(c,64,b.ld())}f.Ph=function(a,b){dk(a,b)};f.Mj=function(a,b){nh(a,!b,!0)};f.tm=function(a,b){cr(a,this.Sa()+"-rtl",b)};f.sm=function(a){var b;return gr(a,32)&&(b=a.ha())?Ff(b):!1}; f.Vg=function(a,b){var c;if(gr(a,32)&&(c=a.ha())){if(!b&&hr(a,32)){try{c.blur()}catch(d){}hr(a,32)&&a.ni(null)}Ff(c)!=b&&Hf(c,b)}};f.Ba=function(a,b){N(a,b);a&&X(a,"hidden",!b)};f.Vc=function(a,b,c){var d=a.ha();if(d){var e=this.oh(b);e&&cr(a,e,c);this.he(d,b,c)}};f.he=function(a,b,c){$q||($q={1:"disabled",8:"selected",16:"checked",64:"expanded"});b=$q[b];var d=a.getAttribute("role")||null;d&&(d=ar[d]||b,b=b=="checked"||b=="selected"?d:b);b&&X(a,b,c)}; f.fg=function(a,b){var c=this.Ic(a);c&&(tf(c),b&&(typeof b==="string"?G(c,b):(a=function(d){if(d){var e=Ze(c);c.appendChild(typeof d==="string"?e.createTextNode(d):d)}},Array.isArray(b)?b.forEach(a):!Wa(b)||"nodeType"in b?a(b):xb(b).forEach(a))))};f.Sa=function(){return"goog-control"};function br(a,b){var c=a.Sa(),d=[c],e=a.Sa();e!=c&&d.push(e);c=b.me;for(e=[];c;){var g=c&-c;e.push(a.oh(g));c&=~g}d.push.apply(d,e);(a=b.Jd)&&d.push.apply(d,a);return d}f.oh=function(a){this.i||ir(this);return this.i[a]}; f.Pi=function(a){if(!this.ua){this.i||ir(this);var b=this.i,c={},d;for(d in b)c[b[d]]=d;this.ua=c}a=parseInt(this.ua[a],10);return isNaN(a)?0:a};function ir(a){var b=a.Sa();a.i={1:b+"-disabled",2:b+"-hover",4:b+"-active",8:b+"-selected",16:b+"-checked",32:b+"-focused",64:b+"-open"}};function jr(){}u(jr,Zq);Ua(jr);f=jr.prototype;f.eg=function(){return"button"};f.he=function(a,b,c){switch(b){case 8:case 16:X(a,"pressed",c);break;default:case 64:case 1:jr.oa.he.call(this,a,b,c)}};f.Mc=function(a){var b=jr.oa.Mc.call(this,a);this.tf(b,a.af());var c=a.Bb();c&&this.wc(b,c);gr(a,16)&&this.he(b,16,hr(a,16));return b};f.Tb=function(a,b){b=jr.oa.Tb.call(this,a,b);var c=this.Bb(b);a.Ca=c;a.V=this.af(b);gr(a,16)&&this.he(b,16,hr(a,16));return b};f.Bb=function(){};f.wc=function(){}; f.af=function(a){return a.title};f.tf=function(a,b){a&&(b?a.title=b:a.removeAttribute("title"))};f.qc=function(a,b){var c=Rk(a),d=this.Sa()+"-collapse-left",e=this.Sa()+"-collapse-right",g=c?e:d;b&1?kr(a,g):lr(a,g);c=c?d:e;b&2?kr(a,c):lr(a,c)};f.Sa=function(){return"goog-button"};var mr={dh:"mousedown",eh:"mouseup",ah:"mousecancel",fw:"mousemove",hw:"mouseover",gw:"mouseout",dw:"mouseenter",ew:"mouseleave"};function nr(a,b){if(!a)throw Error("Invalid class name "+a);if(typeof b!=="function")throw Error("Invalid decorator function "+b);or[a]=b}var pr={},or={};function qr(a,b,c){Y.call(this,c);if(!b){for(b=this.constructor;b;){var d=Ya(b);if(d=pr[d])break;b=(b=Object.getPrototypeOf(b.prototype))&&b.constructor}b=d?typeof d.Nb==="function"?d.Nb():new d:null}this.j=b;this.hg=a!==void 0?a:null;this.Ia=null}u(qr,Y);f=qr.prototype;f.hg=null;f.me=0;f.Wh=39;f.Cf=255;f.Vh=0;f.oi=!0;f.Jd=null;f.Nj=!0;f.um=null;function rr(a,b){a.Ua&&b!=a.Nj&&sr(a,b);a.Nj=b}f.vd=function(){return this.j};function kr(a,b){b&&(a.Jd?rb(a.Jd,b)||a.Jd.push(b):a.Jd=[b],cr(a,b,!0))} function lr(a,b){b&&a.Jd&&tb(a.Jd,b)&&(a.Jd.length==0&&(a.Jd=null),cr(a,b,!1))}f.Ra=function(){var a=this.j.Mc(this);this.ya=a;er(this.j,a,this.Ze());this.j.Mj(a,!1);this.isVisible()||this.j.Ba(a,!1)};f.Ze=function(){return this.um};f.Rh=ba(2);f.Ph=function(a){this.Ia=a;var b=this.ha();b&&this.j.Ph(b,a)};f.Mb=function(){return this.j.Ic(this.ha())};f.fi=function(a){return this.j.li(a)};f.Pb=function(a){this.ya=a=this.j.Tb(this,a);er(this.j,a,this.Ze());this.j.Mj(a,!1);this.oi=a.style.display!="none"}; f.La=function(){qr.oa.La.call(this);fr(this.j,this,this.ya);this.j.mi(this);if(this.Wh&-2&&(this.Nj&&sr(this,!0),gr(this,32))){var a=this.ha();if(a){var b=this.l||(this.l=new Uq);b.attach(a);Z(this).ka(b,"key",this.Pc).ka(a,"focus",this.Aq).ka(a,"blur",this.ni)}}}; function sr(a,b){var c=Z(a),d=a.ha();b?(c.ka(d,mr.dh,a.yf).ka(d,[mr.eh,mr.ah],a.Ce).ka(d,"mouseover",a.Be).ka(d,"mouseout",a.Uk),a.Ah!=Ei&&c.ka(d,"contextmenu",a.Ah)):(c.Va(d,mr.dh,a.yf).Va(d,[mr.eh,mr.ah],a.Ce).Va(d,"mouseover",a.Be).Va(d,"mouseout",a.Uk),a.Ah!=Ei&&c.Va(d,"contextmenu",a.Ah))}f.mc=function(){qr.oa.mc.call(this);this.l&&Yq(this.l);this.isVisible()&&this.isEnabled()&&this.j.Vg(this,!1)}; f.wa=function(){qr.oa.wa.call(this);this.l&&(this.l.dispose(),delete this.l);delete this.j;this.Jd=this.hg=null};f.Ac=function(){return this.hg};function tr(a,b){a.j.fg(a.ha(),b);a.hg=b}function dr(a,b){a.hg=b}f.vg=function(){var a=this.Ac();if(!a)return"";a=typeof a==="string"?a:Array.isArray(a)?a.map(Kf).join(""):If(a);return $c(a)};f.isVisible=function(){return this.oi}; f.Ba=function(a,b){return b||this.oi!=a&&this.dispatchEvent(a?"show":"hide")?((b=this.ha())&&this.j.Ba(b,a),this.isEnabled()&&this.j.Vg(this,a),this.oi=a,!0):!1};f.isEnabled=function(){return!hr(this,1)};f.tb=function(a){var b=this.getParent();b&&typeof b.isEnabled=="function"&&!b.isEnabled()||!ur(this,1,!a)||(a||(vr(this,!1),this.Sc(!1)),this.isVisible()&&this.j.Vg(this,a),this.Vc(1,!a,!0))};f.Sc=function(a){ur(this,2,a)&&this.Vc(2,a)};f.isActive=function(){return hr(this,4)}; function vr(a,b){ur(a,4,b)&&a.Vc(4,b)}f.Hl=function(a){ur(this,8,a)&&this.Vc(8,a)};f.Sf=function(a){ur(this,16,a)&&this.Vc(16,a)};f.tj=function(a){ur(this,32,a)&&this.Vc(32,a)};f.ld=function(){return hr(this,64)};f.Sb=function(a){ur(this,64,a)&&this.Vc(64,a)};function hr(a,b){return!!(a.me&b)}f.Vc=function(a,b,c){c||a!=1?gr(this,a)&&b!=hr(this,a)&&(this.j.Vc(this,a,b),this.me=b?this.me|a:this.me&~a):this.tb(!b)};function gr(a,b){return!!(a.Wh&b)} f.Yb=function(a,b){if(this.Ua&&hr(this,a)&&!b)throw Error("Component already rendered");!b&&hr(this,a)&&this.Vc(a,!1);this.Wh=b?this.Wh|a:this.Wh&~a};function wr(a,b){return!!(a.Cf&b)&&gr(a,b)}function ur(a,b,c){return gr(a,b)&&hr(a,b)!=c&&(!(a.Vh&b)||a.dispatchEvent(Kk(b,c)))&&!a.qd}f.Be=function(a){!xr(a,this.ha())&&this.dispatchEvent("enter")&&this.isEnabled()&&wr(this,2)&&this.Sc(!0)};f.Uk=function(a){!xr(a,this.ha())&&this.dispatchEvent("leave")&&(wr(this,4)&&vr(this,!1),wr(this,2)&&this.Sc(!1))}; f.Ah=Ei;function xr(a,b){return!!a.relatedTarget&&Cf(b,a.relatedTarget)}f.yf=function(a){this.isEnabled()&&(wr(this,2)&&this.Sc(!0),Yf(a)&&(wr(this,4)&&vr(this,!0),this.j&&this.j.sm(this)&&this.ha().focus()));Yf(a)&&a.preventDefault()};f.Ce=function(a){this.isEnabled()&&(wr(this,2)&&this.Sc(!0),this.isActive()&&this.nf(a)&&wr(this,4)&&vr(this,!1))}; f.nf=function(a){wr(this,16)&&this.Sf(!hr(this,16));wr(this,8)&&this.Hl(!0);wr(this,64)&&this.Sb(!this.ld());var b=new Uf("action",this);a&&(b.altKey=a.altKey,b.ctrlKey=a.ctrlKey,b.metaKey=a.metaKey,b.shiftKey=a.shiftKey,b.Al=a.Al,b.timeStamp=a.timeStamp);return this.dispatchEvent(b)};f.Aq=function(){wr(this,32)&&this.tj(!0)};f.ni=function(){wr(this,4)&&vr(this,!1);wr(this,32)&&this.tj(!1)}; f.Pc=function(a){return this.isVisible()&&this.isEnabled()&&this.ae(a)?(a.preventDefault(),a.stopPropagation(),!0):!1};f.ae=function(a){return a.keyCode==13&&this.nf(a)};if(typeof qr!=="function")throw Error("Invalid component class "+qr);if(typeof Zq!=="function")throw Error("Invalid renderer class "+Zq);var yr=Ya(qr);pr[yr]=Zq;nr("goog-control",function(){return new qr(null)});function zr(){}u(zr,jr);Ua(zr);f=zr.prototype;f.eg=function(){};f.Mc=function(a){rr(a,!1);a.Cf&=-256;a.Yb(32,!1);return a.g.Pa("BUTTON",{"class":br(this,a).join(" "),disabled:!a.isEnabled(),title:a.af()||"",value:a.Bb()||""},a.vg()||"")};f.li=function(a){return a.tagName=="BUTTON"||a.tagName=="INPUT"&&(a.type=="button"||a.type=="submit"||a.type=="reset")};f.Tb=function(a,b){rr(a,!1);a.Cf&=-256;a.Yb(32,!1);if(b.disabled){var c=this.oh(1);O(b,c)}return zr.oa.Tb.call(this,a,b)}; f.mi=function(a){Z(a).ka(a.ha(),"click",a.nf)};f.Mj=function(){};f.tm=function(){};f.sm=function(a){return a.isEnabled()};f.Vg=function(){};f.Vc=function(a,b,c){zr.oa.Vc.call(this,a,b,c);(a=a.ha())&&b==1&&(a.disabled=c)};f.Bb=function(a){return a.value};f.wc=function(a,b){a&&(a.value=b)};f.he=function(){};function Ar(a,b,c){qr.call(this,a,b||zr.Nb(),c)}u(Ar,qr);f=Ar.prototype;f.Bb=function(){return this.Ca};f.wc=function(a){this.Ca=a;this.vd().wc(this.ha(),a)};f.af=function(){return this.V};f.tf=function(a){this.V=a;this.vd().tf(this.ha(),a)};f.qc=function(a){this.vd().qc(this,a)};f.wa=function(){Ar.oa.wa.call(this);delete this.Ca;delete this.V};f.La=function(){Ar.oa.La.call(this);if(gr(this,32)){var a=this.ha();a&&Z(this).ka(a,"keyup",this.ae)}}; f.ae=function(a){return a.keyCode==13&&a.type=="key"||a.keyCode==32&&a.type=="keyup"?this.nf(a):a.keyCode==32};nr("goog-button",function(){return new Ar(null)});function Br(a,b,c,d){d=d===void 0?!1:d;W.call(this);this.O=a;this.o=b;this.j=this.O.Xa().ti;this.V=!!this.O.Xa().ti;this.na=!!this.O.Xa().Yh;this.l=jn(c);this.N=d;if(this.V){a:{a=this.O.hb();for(b=0;b=Sl(c)&&e<=d){a=b;break a}}a=-1}this.ma=a}}n(Br,W);f=Br.prototype; f.render=function(a,b){b=b===void 0?2:b;this.i=C("div");document.body.appendChild(this.i);U(r(this.Bq,this));this.ua=a;this.V?(this.N&&(this.U=b),Cr(this)):this.na?(O(this.i,"base-image-toc-div"),a=this.O.Xa().Yh,(b=Vl(this.O.hb(),a))&&Dr(this,b),this.O.Xa().Ob>1&&(a=Ul(this.O.hb(),a,1))&&Dr(this,a),this.ri()):this.dispose()}; f.Bq=function(){var a=this;this.g.ka(document,"click",this.dispose);this.g.ka(document,"keydown",function(b){b.keyCode!=13&&b.keyCode!=27||a.dispose()});this.g.ka(this.O,"resize",this.ri)};function Dr(a,b){var c=new Kb(128,0),d=B("IMG",{width:128});O(d,"toc-page-image");a.g.ka(d,"click",function(){a.O.mb(b)});Ld&&yj()&&a.g.ka(d,"load",a.ri);b.wd(c)?a.xp(d,b,c):Km(b,t(a.xp,d,b,c));a.i.appendChild(d)}f.xp=function(a,b,c){gf(a,{src:b.wd(c)})}; function Cr(a){var b=B("DIV",{"class":"toc-div"}),c;v(a.j,function(d,e){d=Er(a,d,e);b.appendChild(d);e==a.ma&&(c=d)});c&&U(function(){var d=c;d.offsetTop+M(d).height>300&&(d=d.previousElementSibling!==void 0?d.previousElementSibling:Af(d.previousSibling,!1))&&(a.i.scrollTop=d.offsetTop);c.focus()});a.i.appendChild(b);M(a.i).height>300&&(J(a.i,"height","300px"),O(a.i,"scroll-toc-div-wide"));O(a.i,"scroll-toc-div");a.ri();a.i.tabIndex=-1;Zj(a.i,"dialog");a.i.focus()} f.ri=function(){var a=this.l?8:13,b=this.l?9:12,c;this.o instanceof Ar?c=this.o.ha():c=this.o;Ip(c,a,this.i,b,new w(0,-this.ua))}; function Er(a,b,c){var d=b.getId(),e=Vl(a.O.hb(),d);d=b.g;var g=a.j[c+1]?"":"-last",h="toc-middle-cell"+g,k="toc-right-cell"+g;a.N?g=B("A",{"class":e?"toc-row":"toc-disabled-row"}):(g=B("DIV",{"class":e?"toc-row":"toc-disabled-row"}),Zj(g,"button"),Hf(g,!0));var l=C("div");O(l,"goog-inline-block");O(l,"toc-left-cell");c==a.ma&&(O(l,yj()?"SPRITE_toc_selected_item_arrow_right":"SPRITE_toc_selected_item_arrow_left"),O(g,"toc-row-selected"));c=C("div");O(c,"goog-inline-block");O(c,h);Ld&&!ce("1.9")&& J(c,"overflow","hidden");var m=b.kb(),p=a.l?m:id(m,35);x(c,z(p));a.l&&(c.title=m);m=C("div");O(m,"goog-inline-block");O(m,k);x(m,z(Wb(ld(d))?" ":d));g.appendChild(l);g.appendChild(c);g.appendChild(m);e?a.N?(d=new R(window.location.href),S(gi(gi(d,"pg"),"printsec"),"jtp",b.g),a.U&&S(gi(d,"zoom"),"zoom",a.U),a.O.Ya().getQuery()||gi(gi(d,"dq"),"num"),Fc(g,d.toString())):(a.g.ka(g,"click",function(){a.O.mb(e)}),a.g.ka(g,"keydown",function(y){y.keyCode==13&&a.O.mb(e)})):(yh(c,h),O(c,"toc-middle-disabled-cell"), yh(m,k),O(m,"toc-right-disabled-cell"),X(g,"disabled",!0));return g}f.wa=function(){W.prototype.wa.call(this);E(this.i);this.o.focus()};function Fr(a){Io.call(this,1);var b=new Oo;b.nb(a);this.Qa(b);Li(this)}n(Fr,Io);Fr.prototype.qh=function(){return this.g[0]};Fr.prototype.N=function(){return this.wb()||0};Fr.prototype.Jf=function(){return"fixed_width"};function Gr(a){var b=a.Cb(),c=new Iq(this,b);J(b,{overflow:"hidden"});yq.call(this,a,c);this.o=new bq(a);b=new Dn;En(b,Oo,this.o);this.U=b;b=a.hb().g.aspectRatio();c=this.getSize();b=this.qg(Math.min(Math.floor(c.height*b)*2,c.width));this.Tc(b);this.Ca=new nq(a,this);this.g.ka(this.Eb,"pagemodechange",this.Cq);U(this.jc,0,this)}u(Gr,yq);f=Gr.prototype;f.Zd=function(){var a=wb(Hr,this.Eb.Xa().Zd());return new Gn(nb(a,aq))};f.Ne=function(a){Gr.oa.Ne.call(this,a);this.U.Oa();this.jc()};f.Kc=function(){this.Me(1)}; f.Zc=function(){this.Me(-1)};f.Cq=function(){this.U.Oa();this.jc()};f.om=2;f.qg=function(a){this.getSize();var b=this.Eb.hb().g.aspectRatio();return new Fr(new Kb(a,Math.floor(Math.floor(a/2)/b)))};var Hr=[180,220,280]; Gr.prototype.Od=function(){var a=Ir(this,this.Eb.Fa()),b=this.o.g;if(b){var c=this.Ca,d=b.Ld();c.o=d[0];c.U=d[1];c=a[0];d=a[1];var e=!0;a=!0;b.ua=c;b.Ca=d;$p(b);if(c){if(c.l(64)||d==void 0)a=!1}else b.o.Jl();if(d){if(d.l(32)||c==void 0)e=!1}else b.U.Jl();c=e;d=a?"":"hidden";J(b.l,"visibility",c?"":"hidden");J(b.N,"visibility",d);c=c&&a;b.va.Ba(c);b.Da.Ba(c)}this.dispatchEvent("pagechange")};Gr.prototype.Ld=function(){return this.o.g.Ld()}; function Ir(a,b){return pb(a.Eb.hb().V,function(c){return rb(c,b)})}Gr.prototype.jc=function(){Gr.oa.jc.call(this);this.Od()};Gr.prototype.ua=function(a,b){var c=this.Eb.hb().V;a=Sl(a);for(var d,e,g=0;g=Sl(e[0]||e[1])&&a0?g-b:g;break}}e=h}return(b=c[typeof d==="number"?d+b:0])?b[0]||b[1]:null};function Jr(a){this.xc=a.title||"";this.U=!!a.fullview;this.Yh=a.table_of_contents_page_id||"";this.Ob=a.num_toc_pages||"";this.V=a.initial_zoom_width_override;this.Ka=a.max_resolution_image_width;this.yc=!!a.paired_thumbnails;this.md=a.thumbnail_token||"";this.Ma=a.containing_bookshelves||[];this.Ca=a.volume_id||"";this.kc=a.other_issues_query||"";this.Za=!!a.is_browsable;this.Lb=!!a.is_public_domain;a.last_page&&(this.na=new mn(a.last_page));this.g=new Kb(a.page_width,a.page_height);this.ma=a.is_ebook|| !1;var b=a.additional_info,c={};b&&(c=b["[JsonBookInfo]"]);c.BuyLinks&&(this.N=nb(c.BuyLinks,function(d){return new rq(d)},this));this.Ha=c.AboutUrl;c.allowed_syndication_flags&&(this.o=c.allowed_syndication_flags.allow_disabling_chrome);c.TocLine&&(this.ti=nb(c.TocLine,function(d){return new Sq(d)}));c.SubscribeLink&&(this.ua=new rq(c.SubscribeLink));c=null;b&&(c=b["[NewspaperJSONVolumeInfo]"]);this.j=c;this.l=c==null?null:new yn(c.tile_h,c.tile_w,c.x_win,c.y_win);this.Nc=a.sample_url||"";this.Kb= a.is_newspaper||!1;(this.va=a.newspaper_tile_base_url)&&this.l&&zn(this.l,r(this.qv,this));this.wf=c?c.res_h:Kr;this.Da=this.Kb?"fixed_height":"fixed_width";this.Of=a.is_pre_order||!1;this.Yo=a.on_sale_date||"";this.Ui=a.volumeresult&&a.volumeresult.has_flowing_text;this.Vi=a.volumeresult&&a.volumeresult.has_scanned_text;this.Ia=a.volumeresult&&a.volumeresult.can_download_pdf;this.Ja=a.volumeresult&&a.volumeresult.can_download_epub;this.Wa=a.volumeresult?a.volumeresult.download_pdf_url:"";this.Fb= a.volumeresult?a.volumeresult.download_epub_url:""}n(Jr,An);f=Jr.prototype;f.xh=ba(11);f.Oi=function(){typeof this.i!=="number"&&(this.i=this.j.read_zm,this.i=typeof this.i==="number"?this.j.read_zm:4,this.i=Gb(this.i,-1,this.Zd().length-1));return this.i};function Lq(a){return a.V?a.V:a.g&&a.g.width?a.g.width:575}f.Xb=function(){return this.Ca};f.Qi=function(){return this.l};f.Zd=function(){return this.wf};f.Jf=function(){return this.Da}; f.qv=function(a){a=a.toString();var b=a.indexOf("?");b>=0&&(a=this.va+a.substring(b));return new R(a)};f.th=function(){return this.j?this.j.focus_aid:null};f.xg=function(){var a=this.j.focus_x,b=this.j.focus_y;return a!==void 0&&b!==void 0?new w(a,b):null};var Kr=[350,410,495,575,685,800,910,1025];function Lr(a){W.call(this);this.o=a;this.i=null}n(Lr,W);f=Lr.prototype; f.render=function(a,b){this.j=a;a=a.ha();var c=Zg(a).y,d=M(a);c=c+d.height+3;d="";b&&(d=Zg(a).x);this.i=B("DIV",{"class":"linkbar-panel-div"});Tg(this.i,d,c);this.ma=B("DIV",{"class":"SPRITE_close_v2 linkbar-panel-close"});this.i.appendChild(this.ma);Ld&&Od&&!ce("1.9")&&(this.U=B("IFRAME",{style:"position: absolute;",xw:"0"}),this.o.appendChild(this.U));this.o.appendChild(this.i);this.U&&(K(this.U,M(this.i)),Tg(this.U,Vg(this.i)));U(r(this.Il,this))}; f.Il=function(){this.g.ka(this.ma,"click",this.dispose);this.g.ka(this.j,"action",this.Dq);this.g.ka(document,"mousedown",this.Ds)};f.Dq=function(){hr(this.j,16)||this.dispose()};f.Ds=function(a){Cf(this.i,a.target)||Cf(this.j.ha(),a.target)||this.dispose()};f.wa=function(){W.prototype.wa.call(this);E(this.i);E(this.U)};f.ha=function(){return this.i};function Mr(a,b,c){Lr.call(this,a);this.O=b;this.V=c}n(Mr,Lr); Mr.prototype.render=function(a,b){Lr.prototype.render.call(this,a,b);a=B("DIV",{style:"padding-top:5px; font-size: 13px;"});x(a,z("Paste link in email or IM"));this.ha().appendChild(a);this.l=C("input");K(this.l,"100%","auto");this.ha().appendChild(this.l);this.V&&(a=B("DIV",{style:"font-size: 13px; padding-top: 7px;"},"Embed"),this.ha().appendChild(a),this.N=C("input"),K(this.N,"100%","auto"),this.ha().appendChild(this.N));a=this.O.Fa();b=(new R(window.location)).i;var c=new R(a.Cc()); Xh(c,b);this.l.value=c.toString();U(t(Nr,this.l));this.V&&(a=new R(a.Cc()),S(a,"output","embed"),this.N.value=Or(a.toString()))};Mr.prototype.Il=function(){Lr.prototype.Il.call(this);this.g.ka(this.l,"click",t(Nr,this.l));this.V&&this.g.ka(this.N,"click",t(Nr,this.N))};function Nr(a){a.select()}function Or(a){return Xc('',a)};function Pr(a,b){var c=this;this.O=a;this.j=b;this.g=Ch();this.i=A("flow-top-div")?!0:!1;(new ug(this)).ka(this.g,"resize",function(){var d=c.O.Ga(),e=d.Hb(),g=d.Jc();c.resize();c.O.Ga().xe();d=c.O.Ga();e=Vj(new Uj(e,d.Hb()),g);d.Ed(d.Ge(e))}).ka(this.O,"searchupdate",function(){var d=A("gb-ogen-mobile-appbar");if(d){var e=c.g.getSize().height;d=d.getBoundingClientRect().height;e-=d;d=c.g.getSize().width;c.O.nb(new Kb(d,e));c.i&&K(c.j,new Kb(d,e))}}).ka(window,"load",this.resize)} Pr.prototype.resize=function(){var a=this.g.getSize().height,b=this.g.getSize().width,c=Math.round(Zg(this.j).y);a=Math.max(0,a-c);this.O.nb(new Kb(b,a));this.i&&K(this.j,new Kb(b,a))};function Qr(){Rr(this)}function Sr(a){rg(a.g);a.g=jg(document.body,"mousedown",function(){yh(document.body,"focus-outline-enabled");Rr(a)},{capture:!0})}function Rr(a){rg(a.g);a.g=I(document.body,"keydown",function(b){b.keyCode===9&&(O(document.body,"focus-outline-enabled"),Sr(a))})};function Tr(a,b,c,d){d=d===void 0?!1:d;Mp.call(this);var e=this;this.xc=a;this.i=b;this.g=c?c:null;this.Yf(Ur(this));if(d){var g=A("ep-lb");I(this,"hide",function(){J(g,"visibility","hidden")});I(this,"beforeshow",function(){J(g,"visibility","visible");P(e.ha(),"lightbox-dialog",!0)})}}n(Tr,Mp); function Ur(a){var b=B("DIV");xh(b,["popup-menu","goog-menu","goog-menu-vertical"]);Zj(b,"dialog");b.setAttribute("tabindex","-1");document.body.appendChild(b);if(a.xc!=""){var c=B("DIV",{"class":"popup-menu-header"});b.appendChild(c);var d=B("SPAN",{"class":"popup-menu-title"});G(d,a.xc);c.appendChild(d);d=B("DIV",{"class":"popup-menu-close"});dk(d,"Close popup");var e=B("IMG");e.src="/googlebooks/images/material/close_black_24dp.png";K(e,24,24);X(e,"hidden",!0);d.appendChild(e);I(d,"click",function(){a.Ba(!1); a.g&&a.g()});I(d,"keydown",function(g){if(g.keyCode==32||g.keyCode==13)a.Ba(!1),a.g&&a.g()});Zj(d,"button");Hf(d,!0);c.appendChild(d)}b.appendChild(a.i);return b};function Vr(a,b,c){this.g=a;this.i=b;this.U=c}u(Vr,Hp);Vr.prototype.Lc=function(a,b,c){Ip(this.g,this.i,a,b,void 0,c,this.U)};function Wr(a,b,c,d){Vr.call(this,a,b);this.j=c?5:0;this.o=d||void 0}u(Wr,Vr);Wr.prototype.N=function(){return this.j};Wr.prototype.l=function(a){this.j=a};Wr.prototype.Lc=function(a,b,c,d){var e=Ip(this.g,this.i,a,b,null,c,10,d,this.o);if(e&496){var g=Xr(e,this.i);b=Xr(e,b);e=Ip(this.g,g,a,b,null,c,10,d,this.o);e&496&&(g=Xr(e,g),b=Xr(e,b),Ip(this.g,g,a,b,null,c,this.j,d,this.o))}};function Xr(a,b){a&48&&(b^=4);a&192&&(b^=1);return b};function Yr(a,b,c,d,e){this.g=a;this.O=b;this.N=c;this.ma=A("epo-welcome");this.U=A("epo-keyboard");this.j=A("epo-plain-text");this.l=A("epo-plain-text-only");this.o=A("entity-page-toggle-viewport-mode-link");this.V=A("epo-share-link");this.i=e;Zr(this,d);$r(this,!1)} function Zr(a,b){if(a.N)a.l&&as(a,b);else{var c=new Tr("",a.ma,function(){});xh(c.ha(),["onboarding-popup","onboarding-fixed-popup","onboarding-welcome-popup"]);Wk(c,!1);var d=A("epo-keyboard-text");x(d,z(If(d)));var e=new Tr("",a.U,function(){});xh(e.ha(),["onboarding-popup","onboarding-fixed-popup"]);Wk(e,!1);d=af("A",d)[0];d.id="ep-keyboard-link";O(d,"onboarding-link");Hf(d,!0);bs(d,function(){a.O.rb("showkeyboardshortcuts")});if(a.j){var g=new Tr("",a.j,function(){});xh(g.ha(),["onboarding-popup", "onboarding-plain-text-popup"])}d=new Tr("",a.V,function(){});xh(d.ha(),["onboarding-popup","onboarding-share-popup"]);var h=A("entity-page-clip");Np(d,5);d.setPosition(new Wr(h,4,!0));Wk(d,!1);cs(a,c,e,g,d);ds(a,c,e,g,d);if(a.i)switch(a.i){case 0:c.Ba(!0);break;case 1:e.Ba(!0);break;case 2:g?es(a,g,b):d.Ba(!0);break;default:d.Ba(!0)}else c.Ba(!0)}} function cs(a,b,c,d,e){var g=A("epo-welcome-next");bs(g,function(){a.i++;b.Ba(!1);c.Ba(!0);$r(a,!1)});g=A("epo-keyboard-next");bs(g,function(){a.i++;c.Ba(!1);d?es(a,d):e.Ba(!0);$r(a,!1)});a.j&&d&&(g=A("epo-plain-text-next"),bs(g,function(){a.i++;a.g.Ba(!1);Wk(a.g,!0);d.Ba(!1);e.Ba(!0);$r(a,!1)}))} function ds(a,b,c,d,e){document.querySelectorAll(".onboarding-link").forEach(function(h){h.id!="ep-keyboard-link"&&bs(h,function(){b.Ba(!1);c.Ba(!1);d&&(d.Ba(!1),a.g.Ba(!1),Wk(a.g,!0));e.Ba(!1);fs(a)})});var g=A("epo-done");bs(g,function(){e.Ba(!1);fs(a)})}function as(a,b){var c=new Tr("",a.l,function(){});xh(c.ha(),["onboarding-popup","onboarding-plain-text-popup"]);es(a,c,b);b=A("epo-done-only");bs(b,function(){c.Ba(!1);a.g.Ba(!1);Wk(a.g,!0);fs(a)})} function es(a,b,c){c!==void 0&&c||(Wk(a.g,!1),a.g.Ba(!0));a=A("entity-page-more-menu-content");Np(b,0);b.setPosition(new Wr(a,4,!0));Wk(b,!1);b.Ba(!0)}function fs(a){$r(a,!0);a.j?tm(!0):tm(!1)}function $r(a,b){if(a.o){var c=new R(a.o.href);b?(gi(c,"ovso"),gi(c,"ovsopt"),gi(c,"op")):a.N&&a.l?S(c,"ovsopt","1"):(S(c,"ovso","1"),S(c,"op",a.i));Fc(a.o,c.toString())}}function bs(a,b){I(a,"click",function(){b()});I(a,"keydown",function(c){c.keyCode!=32&&c.keyCode!=13||b()})};function gs(a,b){W.call(this);this.Ea=a;this.j=b;this.i=C("div");a.N.i.appendChild(this.i);O(this.i,"sitb_result");Hf(this.i,!0);Zj(this.i,"link");X(this.i,"disabled",!0);Nd?(J(this.i,"width",b.getSize().width+"px"),J(this.i,"min-height",b.getSize().height+"px")):(Tg(this.i,b.jd()),K(this.i,b.getSize()));a=C("div");O(a,"sitb-result-header");this.i.appendChild(a);this.l=C("div");O(this.l,"sitb-result-page-link");b=(b=b.g.i)?"Page "+b:"Page";G(this.l,b);dk(this.l,"Search result: "+b);a.appendChild(this.l); this.o=C("div");O(this.o,"sitb-result-content");this.i.appendChild(this.o);if(a=Vl(this.Ea.O.hb(),this.j.g.Na())){b=this.Ea.O.Ya().getQuery();var c=a.ob.snippetSrc;c&&b==ym(c)?hs(this,c):(b=a.Xe(),T(b,"source")=="entity_page"?S(b,"source","entity_page_gbs_snippet"):S(b,"source","gbs_snippet"),on(a,b,r(this.U,this)))}else is(this)}n(gs,Qj);gs.prototype.N=function(a){this.Ea.va(a.g,void 0)};gs.prototype.U=function(a){(a=a.ob.snippetSrc)?hs(this,a):is(this)}; function hs(a,b){tf(a.o);var c=C("IMG");c.src=b;js(a);b=a.j.getSize().width-25;J(c,{width:b+"px"});a.o.appendChild(c)}function js(a){O(a.i,"sitb-result-clickable");O(a.l,"sitb-result-link");var b=If(a.l);x(a.l,z(b+" »"));X(a.i,"disabled",!1);a.g.ka(a.i,"click",r(a.N,a,a.j));a.g.ka(a.i,"keydown",function(c){c.keyCode!=32&&c.keyCode!=13||a.N(a.j)})} function is(a){tf(a.o);var b=C("div");O(b,"sitb-result-snippet");a.o.appendChild(b);Nd||J(b,{width:Math.floor(a.j.getSize().width*.75)+"px"});x(b,Je(a.j.g.g));b=C("div");O(b,"sitb-result-explanatory-link");a.o.appendChild(b);var c=Vl(a.Ea.O.hb(),a.j.g.Na());c&&c.wd()&&!tn(c,[4,8,16])&&c.l(2)?(js(a),x(b,z((Nd?"No image for result.":"We couldn't make an image for this result.")+"  ")),a=C("span"),c=Nd||jn()?"Click to view":"Click to view the whole page.",x(a,z(c)),b.appendChild(a),O(a,"sitb-result-link")): (x(b,z("No preview available for this page.  ")),Nd||(a=C("a"),O(a,"sitb-result-buy-link"),x(a,z("Buy this book.")),b.appendChild(a),b=new R(window.location.href),S(b,"sitesec","buy"),S(b,"source","gbs_snippet"),gi(b,"printsec"),a.href=b.toString()))}gs.prototype.Oa=function(){E(this.i);this.dispose()};function ks(a){this.Ea=a}n(ks,en);ks.prototype.render=function(a){return new gs(this.Ea,a)};function ls(a){this.g=a}n(ls,Bi);function ms(a,b){Io.call(this,1);this.o=a;this.V=b;this.Cj=this.di=this.ei=20;a.Ab&&(a.Ab.forEach(r(this.l,this)),Li(this))}n(ms,Io);ms.prototype.l=function(a){a=new ls(a);var b=Math.min(this.V-16,600);a.nb(new Kb(b,Math.round(124/600*b+42)));this.Qa(a)};function ns(a){var b=a.Cb();J(b,"overflow","hidden");var c=new Iq(this,b);np.call(this,c);this.O=a;Nd||qp(this,new Cq(this));this.g.ka(this,"move",this.jc);var d=A("subscription-bar");d&&(this.Jk(d),U(function(){N(d,!1)},600));pp(this,os(this));J(b,"overflow","auto");J(b,{overflowX:"auto",overflowY:"scroll"});gf(b,{dir:"ltr"})}u(ns,np);function ps(a,b){b!=a.o&&(a.o=b,qs(a))}function os(a){var b=new Dn;En(b,ls,new ks(a));return b}ns.prototype.resize=function(){qs(this)}; function qs(a){var b=new ms(a.o,a.getSize().width);a.Tc(b);a.jc()}function rs(a,b){a.va=b};function ss(a){this.g=a||{}}ss.prototype.Gc=function(){return this.g};ss.prototype.Zb=function(a){var b=Ob(ts,function(c){return c==a});this.g.v=b};ss.prototype.getQuery=function(){return this.g.q};var ts={onepage:Jq,twopage:Gr,thumbnail:Pq,snippet:ns};function us(a){Uf.call(this,"navigate");this.o=a}u(us,Uf);var vs={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};var ws=/^[a-zA-Z0-9-]+$/,xs={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0};var ys=new WeakMap;function zs(a,b){a=[a];for(var c=b.length-1;c>=0;--c)a.push(typeof b[c],b[c]);return a.join("\v")};function As(a,b,c,d){Q.call(this);if(a&&!b)throw Error("Can't use invisible history without providing a blank page.");if(c)var e=c;else{e="history_state"+Bs;var g=ne("input",{type:"text",name:e,id:e,style:"display:none"});document.write(Jc(g));e=A(e)}this.N=e;this.i=c?mf(Ze(c)):window;this.U=b;this.Ta=new vj(150);Sf(this,this.Ta);this.g=!a;this.o=new ug(this);if(a){if(d)var h=d;else{a="history_iframe"+Bs;b=this.U;c={id:a,style:"display:none",sandbox:void 0};b&&rc(b);d={};d.src=b||null;d.srcdoc=null; e={sandbox:""};b={};for(var k in d)Object.prototype.hasOwnProperty.call(d,k)&&(b[k]=d[k]);for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&(b[l]=e[l]);if(c)for(var m in c)if(Object.prototype.hasOwnProperty.call(c,m)){k=m.toLowerCase();if(k in d)throw Error("");k in e&&delete b[k];b[m]=c[m]}m=void 0;k="";if(b)for(h in b)if(Object.prototype.hasOwnProperty.call(b,h)){if(!ws.test(h))throw Error("");l=b[h];if(l!=null){c=h;if(c.toLowerCase()=="style")l=String(l);else{if(/^on/i.test(c))throw Error(""); if(c.toLowerCase()in xs)if(l instanceof pc)l=rc(l).toString();else if(l instanceof sc)l=vc(l);else if(typeof l==="string")l=zc(l).toString();else throw Error("");}l=c+'="'+Yb(String(l))+'"';k+=" "+l}}h="":(m=he(m),h+=">"+Jc(m)+"");h=Hc(h);document.write(Jc(h));h=A(a)}this.V=h;this.ma=!0}this.g?Cs(this,Ds(this),!0):Es(this,this.N.value);Bs++}u(As,Q);As.prototype.Qb=!1;As.prototype.l=!1;As.prototype.j=null; var Fs=function(a,b){function c(g){var h=pa(g);g=h.next().value;h=qa(h);return a.apply(g,h)}function d(g){g=pa(g);g.next();g=qa(g);return b(e,g)}b=b===void 0?zs:b;var e=Ya(a);return function(){var g=Ka.apply(0,arguments),h=this||q,k=ys.get(h);k||(k={},ys.set(h,k));return Hd(k,[this].concat(ra(g)),c,d)}}(function(){return"onhashchange"in q});f=As.prototype;f.Eg=null;f.wa=function(){As.oa.wa.call(this);this.o.dispose();this.tb(!1)}; f.tb=function(a){a!=this.Qb&&(a?(Ld&&this.o.ka(this.i,"pageshow",this.Uu),Fs()&&this.g?(this.o.ka(this.i,"hashchange",this.Pu),this.Qb=!0,this.dispatchEvent(new us(Ds(this),!1))):(this.o.ka(this.Ta,"tick",r(this.vm,this,!0)),this.Qb=!0,this.j=Ds(this),this.dispatchEvent(new us(Ds(this),!1)),this.Ta.start())):(this.Qb=!1,zg(this.o),this.Ta.stop()))};f.Uu=function(a){a.Rb.persisted&&(this.tb(!1),this.tb(!0))};f.Pu=function(){var a=Gs(this.i);a!=this.j&&Hs(this,a,!0)}; function Ds(a){return a.Eg!=null?a.Eg:a.g?Gs(a.i):Is(a)||""}function Js(a,b){Ds(a)!=b&&(a.g?(Cs(a,b,!1),a.Qb&&a.vm(!1)):(Es(a,b,!1),a.Eg=a.j=a.N.value=b,a.dispatchEvent(new us(b,!1))))}function Gs(a){a=a.location.href;var b=a.indexOf("#");return b<0?"":a.substring(b+1)}function Cs(a,b,c){a=a.i.location;var d=a.href.split("#")[0];if(fc(a.href,"#")||b)d+="#"+b;d!=a.href&&(b=new sc(d),c?Vc(a,b):Uc(a,b))} function Es(a,b,c){if(a.ma||b!=Is(a))a.ma=!1,b=bd(b),b=rc(a.U).toString()+"#"+b,(a=a.V.contentWindow)&&(c?Vc(a.location,b):Uc(a.location,b))}function Is(a){var b=a.V.contentWindow;if(b){try{var c=cd(Gs(b))}catch(d){return a.l||(a.l!=1&&wj(a.Ta,1E4),a.l=!0),null}a.l&&(a.l!=0&&wj(a.Ta,150),a.l=!1);return c||null}return null}f.vm=function(a){if(this.g){var b=Gs(this.i);b!=this.j&&Hs(this,b,a)}this.g||(b=Is(this)||"",this.Eg!=null&&b!=this.Eg)||(this.Eg=null,b!=this.j&&Hs(this,b,a))}; function Hs(a,b,c){a.j=a.N.value=b;a.g?Cs(a,b):Es(a,b);a.dispatchEvent(new us(Ds(a),c))}var Bs=0;function Ks(a,b){this.g=new As;I(this.g,"navigate",r(this.o,this));this.O=a;this.i=b}Ks.prototype.o=function(a){Ls(this,a.o)};function Ls(a,b){if(!(a.l&&b==""||a.j))if((Jd||Md)&&b=="")window.history.go(-2);else if(b){var c={},d=new Zh(b);v(d.Wd(),function(e){var g=d.get(e);g in Ms&&(g=Ms[g]);c[e]=g});b=new ss(c);a.O.Zb(ts[b.g.v]||Jq);kq(a.i,!!b.g.f);b.getQuery()!==void 0&&xm(a.O.Ya(),b.getQuery())}} Ks.prototype.tb=function(a){this.l=!0;this.g.tb(a);Jd&&(a=(new R(window.location)).i,Ls(this,a));this.l=!1};Ks.prototype.update=function(){var a=new ss;a.Zb(this.O.U);a.g.q=this.O.Ya().getQuery();a.g.f=this.i.hf();a=ji(a.Gc()).toString();this.j=!0;Js(this.g,a);this.j=!1};var Ms={"true":!0,"false":!1};function Ns(a,b,c,d,e,g,h){var k=this;a&&(this.O=a,this.Fb=b);if(this.Da=c)this.md=!1;this.Nc=!!d;this.yc=!!e;this.Ma=g;this.Lb=h===void 0?!1:h;this.U=A("entity-page-toc");this.Ka=A("entity-page-toc-label");this.Ob=!1;if(this.ma=A("entity-page-pagination"))this.Ca=A("entity-page-prev"),this.va=A("entity-page-next"),this.Wa=A("entity-page-floating-hover");this.Ha=A("entity-page-zoom-in");this.Ja=A("entity-page-zoom-out");this.na=A("entity-page-one-page");this.N=A("entity-page-two-page");this.o=A("entity-page-thumbnail"); this.V=A("entity-page-link");this.Gd=A("entity-page-link-menu-content");this.Kb=A("entity-page-share-input");this.nd=A("entity-page-embed-input");this.j=A("entity-page-clip");this.ua=A("entity-page-more");this.Hd=A("entity-page-more-menu-content");this.Za=!1;this.Ia=A("entity-page-volume-info");A("flow-top-div")&&(this.g=A("flow-top-div"),this.i=(a=Number(T(new R(window.location.href),"zoom")))?a:2,Os(this,this.i),I(this.O,"searchupdate",function(){Ps(k)}));this.l=!0;Qs(this);Rs(this);Ss(this);Ts(this); Us(this);Vs(this);Ws(this);Xs(this);Ys(this);Zs(this);new Qr;nm($s(this))} function Qs(a){if(a.O){var b=a.O.Xa(),c=!!b.ti;b=(b=b.Yh)&&a.O.hb()&&!!Vl(a.O.hb(),b);c||b?(a.Ob=!0,a.g?(c=A("jtp").value||"Contents",G(a.Ka,c)):G(a.Ka,a.O.Fa().ze()||"Contents"),at(a.U,function(){var d=ef("base-image-toc-div");ef("scroll-toc-div")||d||(new Br(a.O,a.U,a.Ma,!!a.g)).render(8,a.i)}),I(a.O,"pagechange",function(){var d=a.O.Fa().ze()||"Contents";a.Ka&&x(a.Ka,z(d))})):(G(a.Ka,"Contents unavailable"),xh(a.U,["toolbar-button-disabled","toc-button-unavailable"]),X(a.U,"disabled",!0))}else G(a.Ka, "Contents unavailable"),xh(a.U,["toolbar-button-disabled","toc-button-unavailable"]),X(a.U,"disabled",!0)}function Rs(a){a.ma&&(a.O&&(at(a.Ca,function(){a.Ca.hasAttribute("href")||a.O.rb("previous")}),at(a.va,function(){a.va.hasAttribute("href")||a.O.rb("next")})),a.Ca.setAttribute("title","Previous Page"),a.va.setAttribute("title","Next Page"))} function Ss(a){at(a.Ha,function(){a.g?bt(a):a.O&&a.O.rb("zoomin")});at(a.Ja,function(){a.g?ct(a):a.O&&a.O.rb("zoomout")});a.g&&I(document.body,"keydown",function(b){b.keyCode==107||b.keyCode==187||b.keyCode==61?bt(a):(b.keyCode==109||b.keyCode==189||b.keyCode==173)&&ct(a)});a.Ha.setAttribute("title","Zoom in");a.Ja.setAttribute("title","Zoom out")} function Ts(a){at(a.na,function(){dt(a,Jq)});a.na.setAttribute("title","Single page view");a.Nc?(at(a.N,function(){dt(a,Gr)}),a.N.setAttribute("title","Two page view")):(P(a.N,"toolbar-button-disabled",!0),a.N.setAttribute("title","Two page view unavailable"),X(a.N,"disabled",!0));a.yc?(at(a.o,function(){dt(a,Pq)}),a.o.setAttribute("title","Thumbnail view")):(P(a.o,"toolbar-button-disabled",!0),a.o.setAttribute("title","Thumbnail view unavailable"),X(a.o,"disabled",!0));a.O&&(I(a.O,"viewportmodechange", function(){et(a)}),et(a))} function Us(a){var b=(new Fp(a.Kb)).ha();A("entity-page-share-copy-container").appendChild(b);b=(new Fp(a.nd)).ha();A("entity-page-embed-copy-container").appendChild(b);var c=new Tr("Link to this result",a.Gd,function(){a.V.focus()});Np(c,5);c.setPosition(new Wr(a.V,4,!0));c.Ba(!1);var d=new R(a.Kb.value);at(a.V,function(){if(c.Pe||Date.now()-c.dj<150)c.Ba(!1);else{c.Ba(!0);c.ha().focus();if(a.O){ft(a,d);a.g&&S(d,"bksoutput","text");var e=a.O.Ya().getQuery();e?a.O.U==ns?(gi(d,"dq"),gi(d,"pg"),S(d, "bsq",e)):(gi(d,"bsq"),S(d,"dq",e)):(gi(d,"bsq"),gi(d,"dq"))}else(e=Jc(Je((new R(window.location.href)).i)).toString())&&S(d,"bsq",e);a.Kb.value=d.toString();a.O&&(e=new R(a.O.Fa().Cc()),gi(e,"source"),S(e,"output","embed"),a.nd.value=Or(e.toString()))}});a.V.setAttribute("title","Link to this result")} function Vs(a){if(a.Da){var b=A("entity-page-selection-bar"),c=A("entity-page-exit-selection"),d=A("entity-page-toolbar");at(a.j,function(){a.md=!a.md;a.Da(!0);P(b,"menu-hidden",!1);c.focus();X(d,"hidden",!0)});at(c,function(){a.Da(!1);P(b,"menu-hidden",!0);a.j.focus();X(d,"hidden",!1)});a.j.setAttribute("title","Select a clip")}else P(a.j,"toolbar-button-disabled",!0),X(a.j,"disabled",!0),a.j.setAttribute("title","Select a clip unavailable")} function Ws(a){gt(a);ht(a);it(a);var b=new Tr("",a.Hd,function(){a.ua.focus()});Np(b,4);b.setPosition(new Wr(a.ua,5,!0));O(b.ha(),"more-actions-popup");b.Ba(!1);jt(a,b);var c=A("entity-page-toggle-viewport-mode-link");c&&a.Lb&&(b.Ba(!0),c.focus());at(a.ua,function(){if(b.Pe||Date.now()-b.dj<150)b.Ba(!1),a.ua.focus();else if(b.Ba(!0),b.ha().focus(),c){var e=new R(c.href);ft(a,e);a.g&&(gi(e,"zoom"),gi(e,"num"),gi(e,"scoring"));gi(e,"q");var g=a.O.Ya().getQuery();if(g){if(S(e,"dq",g),!a.g){g=A("search-results-summ"); var h=g.hasAttribute("data-result-num")?g.getAttribute("data-result-num"):0;S(e,"num",h);g=g.hasAttribute("data-search-sort")?g.getAttribute("data-search-sort"):"n";S(e,"scoring",g)}}else gi(e,"dq");Fc(c,e.toString())}});a.ua.setAttribute("title","More actions menu");I(b,"show",function(){a.Za=!0;a.l=!0;kt(a)});I(b,"hide",function(){a.Za=!1;a.l=!1;lt(a)});if(a.Ma.showViewportOnboarding||a.Ma.showViewportPlainTextOnboarding){var d=Number(T(new R(window.location.href),"op"));new Yr(b,a.O,!!a.Ma.showViewportPlainTextOnboarding, a.Lb,d?d:0)}}function jt(a,b){var c=A("entity-page-store"),d=A("gb-mobile-buy-section");if(c&&d&&(d=ff("TABLE","gb-mobile-buy-table",d))){var e=new Tr("",d,function(){a.ua.focus()});Np(e,0);e.setPosition(new Wr(c,4,!0));O(e.ha(),"buy-table-popup");e.Ba(!1);at(c,function(){e.Ba(!0);e.ha().focus()},!0);b.ha().querySelectorAll(".more-actions-menu-link").forEach(function(g){g!=c&&I(g,"mouseenter",function(){e.Ba(!1)})});I(e.ha(),"mouseleave",function(){e.Ba(!1)})}} function Xs(a){var b=A("ep-keyboard-shortcuts");if(b&&a.O){var c=new Tr("",b,function(){},!0);O(c.ha(),"keyboard-shortcuts-popup");b=A("ep-keyboard-close");at(b,function(){c.Ba(!1)});I(a.O,"keyboardshortcutsopened",function(){c.Ba(!0)})}}function it(a){var b=A("entity-page-keyboard");b&&a.O&&at(b,function(){a.O.rb("showkeyboardshortcuts")})} function ht(a){var b=A("entity-page-copyright-page-id");if(b&&a.O){var c=A("entity-page-copyright");b=If(b);var d=Vl(a.O.hb(),b);at(c,function(){a.O.mb(d)})}}function gt(a){var b=A("entity-page-toggle-viewport-mode-link");if(b){var c=a.g?!0:!1;P(b,"checked",c);X(b,"pressed",c);at(b,function(){P(b,"checked",!c);X(b,"pressed",!c)})}} function et(a){a.O.U==Jq?(mt(a,!0),nt(a,!0),ot(a,!0),pt(a,!0),qt(a,!0),X(a.na,"current","true"),X(a.N,"current","false"),X(a.o,"current","false")):a.O.U==Gr?(mt(a,!0),nt(a,!0),ot(a,!0),pt(a,!0),qt(a,!0),X(a.na,"current","false"),X(a.N,"current","true"),X(a.o,"current","false")):a.O.U==Pq?(mt(a,!0),nt(a,!1),ot(a,!0),pt(a,!0),qt(a,!1),X(a.na,"current","false"),X(a.N,"current","false"),X(a.o,"current","true")):(mt(a,!1),nt(a,!1),ot(a,!1),pt(a,!1),qt(a,!1));var b=a.O.U;a.ma&&b!=ns&&!a.g&&(P(a.ma,"one-page-view", b==Jq),P(a.Ia,"one-page-view",b==Jq),P(a.ma,"two-page-view",b==Gr),P(a.Ia,"two-page-view",b==Gr),P(a.ma,"thumbnail-view",b==Pq),P(a.Ia,"thumbnail-view",b==Pq))}function dt(a,b){a.O&&a.O.U!=b&&(a.O.Zb(b),!a.O.Ya().getQuery()&&a.Fb&&a.Fb.update())}function mt(a,b){P(a.na,"toolbar-button-disabled",!b);X(a.na,"disabled",!b);a.Nc&&(P(a.N,"toolbar-button-disabled",!b),X(a.N,"disabled",!b));a.yc&&(P(a.o,"toolbar-button-disabled",!b),X(a.o,"disabled",!b))} function nt(a,b){P(a.Ja,"toolbar-button-disabled",!b);X(a.Ja,"disabled",!b);P(a.Ha,"toolbar-button-disabled",!b);X(a.Ha,"disabled",!b)}function ot(a,b){P(a.Ca,"toolbar-button-disabled",!b);X(a.Ca,"disabled",!b);P(a.va,"toolbar-button-disabled",!b);X(a.va,"disabled",!b)}function pt(a,b){a.Ob&&(P(a.U,"toolbar-button-disabled",!b),X(a.U,"disabled",!b))}function qt(a,b){a.Da&&(P(a.j,"toolbar-button-disabled",!b),X(a.j,"disabled",!b))}function ft(a,b){a=new R(a.O.Fa().Cc());S(b,"pg",T(a,"pg"))} function bt(a){a.i<5&&(a.i+=1,Os(a,a.i))}function ct(a){a.i>1&&(--a.i,Os(a,a.i))}function Os(a,b){P(a.g,"zoomstop1",b==1);P(a.g,"zoomstop2",b==2);P(a.g,"zoomstop3",b==3);P(a.g,"zoomstop4",b==4);P(a.g,"zoomstop5",b==5);P(a.Ja,"toolbar-button-disabled",b==1);P(a.Ha,"toolbar-button-disabled",b==5);Ps(a)} function Ps(a){var b=a.Ca,c=new R(b.href);rt(a,c);Fc(b,c.toString());b=a.va;c=new R(b.href);rt(a,c);Fc(b,c.toString());b=A("text-viewport-prev");c=new R(b.href);rt(a,c);Fc(b,c.toString());b=A("text-viewport-next");c=new R(b.href);rt(a,c);Fc(b,c.toString());if(b=A("entity-page-copyright"))c=new R(b.href),rt(a,c),Fc(b,c.toString());if(b=A("search-result-prev"))c=S(new R(b.href),"zoom",a.i),Fc(b,c.toString());if(b=A("search-result-next"))a=S(new R(b.href),"zoom",a.i),Fc(b,a.toString())} function rt(a,b){S(b,"zoom",a.i);gi(b,"q");(a=a.O.Ya().getQuery())?S(b,"dq",a):gi(gi(gi(b,"dq"),"num"),"scoring")}function at(a,b,c){c=c===void 0?!1:c;I(a,"click",function(){b()});I(a,"keydown",function(d){d.keyCode!=32&&d.keyCode!=13||b()});c&&I(a,"mouseover",function(){b()})} function Ys(a){function b(c){P(document.body,"opaque-background",!0);a.l=!1;c&<(a)}a.Lb?b(!0):(a.O&&(jg(a.O.Ga(),"move",function(){b(!0)}),jg(a.O.Cb(),"click",function(){b(!0)})),jg(document.body,"click",function(){b(!a.g)}),jg(document.body,"keydown",function(c){c.keyCode!=27&&b(!a.g)}))} function Zs(a){a.O&&(a.g?I(window,"resize",function(){lt(a)}):(I(a.O,"viewportmodechange",function(){lt(a)}),I(a.O,"resize",function(){lt(a)}),I(a.O,"zoomchange",function(){lt(a)})),I(a.Wa,"mouseenter",function(){a.l=!0;kt(a)}),I(a.Wa,"mouseleave",function(){a.l=!1;lt(a)}),document.body.querySelectorAll(".floating-button-group").forEach(function(b){I(b,"mouseenter",function(){a.l=!0;kt(a)});I(b,"mouseleave",function(){a.l=!1;lt(a)});I(b,"focusin",function(){a.l=!0;kt(a)});I(b,"focusout",function(){a.l= !1;lt(a)})}))}function lt(a){a.l||a.Za||(kt(a),st(a)&&(a.kc=U(function(){tt(a,!1);P(a.Wa,"listen-for-hover",!0)},3E3)))}function st(a){if(!a.O||a.O.U==ns)return!1;var b=a.Ia.getBoundingClientRect();if(a.g)return a=a.g.getBoundingClientRect(),yj()?a.right-54>=b.left:a.left+54<=b.right;a=ef("scroll-background");if(!a)return!1;a=zf(a);if(!a)return!1;a=a.getBoundingClientRect();return yj()?a.right>=b.left:a.left<=b.right}function kt(a){tt(a,!0);P(a.Wa,"listen-for-hover",!1);a.kc&&xj(a.kc)} function tt(a,b){P(a.Ia,"floating-button-group-hidden",!b);a.ma&&P(a.ma,"floating-button-group-hidden",!b)}function $s(a){return{focusSearch:function(){A("search_form_input").focus()},updateSearch:function(b){xm(a.O.Ya(),b);a.Fb&&a.Fb.update()},goToPage:function(b){b&&a.O.Ad(b)}}};function ut(a,b){this.g=a;this.l=b}function vt(a,b){var c=C("DIV");O(c,"sitb-content");var d=C("H4");O(d,"sitb-result-header");var e=C("DIV"),g=a.g.i;g=g?"Page "+g:"Page";G(e,g);dk(d,"Search result: "+g);d.appendChild(e);b&&!a.l&&(a=C("SPAN"),O(a,"sitb-no-preview-msg"),G(a,"No preview available for this page."),d.appendChild(a));c.appendChild(d);return c};function wt(a){this.g=a}Ua(wt);function xt(a,b){a&&(a.tabIndex=b?0:-1)}f=wt.prototype;f.Oj=function(a){return a.tagName=="DIV"};function yt(a,b,c){c.id&&b.Ig(c.id);var d=a.ig(),e=!1,g=uh(c);g&&Array.prototype.forEach.call(g,function(h){h==d?e=!0:h&&(h==d+"-disabled"?b.tb(!1):h==d+"-horizontal"?zt(b,"horizontal"):h==d+"-vertical"&&zt(b,"vertical"))},a);e||O(c,d);At(a,b,c);return c} function At(a,b,c){if(c)for(var d=c.firstChild,e;d&&d.parentNode==c;){e=d.nextSibling;if(d.nodeType==1){var g=a.rh(d);g&&(g.ya=d,b.isEnabled()||g.tb(!1),b.ab(g),Nk(g,d))}else d.nodeValue&&Xb(d.nodeValue)!=""||c.removeChild(d);d=e}}f.rh=function(a){a:{a=uh(a);for(var b=a.length,c=0;c-1&&b!=this.bc){var c=Ft(this);c&&c.Sc(!1);this.bc=b;c=Ft(this);this.be&&vr(c,!0);this.hc&&c!=this.hc&&(gr(c,64)?c.Sb(!0):this.hc.Sb(!1))}b=this.ha();a.target.ha()!=null&&X(b,"activedescendant",a.target.ha().id)};f.Hq=function(a){a.target==Ft(this)&&(this.bc=-1);this.ha().removeAttribute("aria-activedescendant")};f.Gt=function(a){(a=a.target)&&a!=this.hc&&a.getParent()==this&&(this.hc&&this.hc.Sb(!1),this.hc=a)}; f.Eq=function(a){a.target==this.hc&&(this.hc=null);var b=this.ha(),c=a.target.ha();b&&hr(a.target,2)&&c&&ck(b,c)};f.Gq=function(a){this.Qb&&(this.be=!0);var b=Ct(this);b&&Ff(b)?b.focus():a.preventDefault()};f.gt=function(){this.be=!1}; f.bt=function(a){a:{var b=a.target;if(this.ue)for(var c=this.ha();b&&b!==c;){var d=b.id;if(d in this.ue){b=this.ue[d];break a}b=b.parentNode}b=null}if(b)switch(a.type){case mr.dh:b.yf(a);break;case mr.eh:case mr.ah:b.Ce(a);break;case "mouseover":b.Be(a);break;case "mouseout":b.Uk(a);break;case "contextmenu":b.Ah(a)}};f.wi=function(){};f.ui=function(){this.Rd(-1);this.be=!1;this.hc&&this.hc.Sb(!1)}; f.Pc=function(a){return this.isEnabled()&&this.isVisible()&&(Pk(this)!=0||this.jl)&&this.ae(a)?(a.preventDefault(),a.stopPropagation(),!0):!1}; f.ae=function(a){var b=Ft(this);if(b&&typeof b.Pc=="function"&&b.Pc(a)||this.hc&&this.hc!=b&&typeof this.hc.Pc=="function"&&this.hc.Pc(a))return!0;if(a.shiftKey||a.ctrlKey||a.metaKey||a.altKey)return!1;switch(a.keyCode){case 27:if(this.tg)Ct(this).blur();else return!1;break;case 36:Gt(this);break;case 35:Ht(this);break;case 38:if(this.Nf=="vertical")It(this);else return!1;break;case 37:if(this.Nf=="horizontal")Rk(this)?Jt(this):It(this);else return!1;break;case 40:if(this.Nf=="vertical")Jt(this); else return!1;break;case 39:if(this.Nf=="horizontal")Rk(this)?It(this):Jt(this);else return!1;break;default:return!1}return!0};function Dt(a,b){var c=b.ha();c=c.id||(c.id=b.getId());a.ue||(a.ue={});a.ue[c]=b}f.ab=function(a,b){Bt.oa.ab.call(this,a,b)}; f.lg=function(a,b,c){a.Vh|=2;a.Vh|=64;a.Yb(32,!1);rr(a,!1);var d=a.getParent()==this?Sk(this,a):-1;Bt.oa.lg.call(this,a,b,c);a.Ua&&this.Ua&&Dt(this,a);a=d;a==-1&&(a=Pk(this));a==this.bc?this.bc=Math.min(Pk(this)-1,b):a>this.bc&&b<=this.bc?this.bc++:athis.bc&&this.bc--}; f.removeChild=function(a,b){if(a=typeof a==="string"?Lk(this,a):a){var c=Sk(this,a);c!=-1&&(c==this.bc?(a.Sc(!1),this.bc=-1):c-1&&Ft(this).Sc(!1)};f.Sc=function(a){this.Rd(Sk(this,a))};function Ft(a){return Qk(a,a.bc)}function Gt(a){Lt(a,function(b,c){return(b+1)%c},Pk(a)-1)}function Ht(a){Lt(a,function(b,c){b--;return b<0?c-1:b},0)}function Jt(a){Lt(a,function(b,c){return(b+1)%c},a.bc)}function It(a){Lt(a,function(b,c){b--;return b<0?c-1:b},a.bc)} function Lt(a,b,c){c=c<0?Sk(a,a.hc):c;var d=Pk(a);c=b.call(a,c,d);for(var e=0;e<=d;){var g=Qk(a,c);if(g&&a.Dn(g)){a.Rd(c);break}e++;c=b.call(a,c,d)}}f.Dn=function(a){return a.isVisible()&&a.isEnabled()&&gr(a,2)};function Mt(a){Y.call(this);this.j=a?a:null;var b=this.g;a=b.ha("gb-mobile-buy-panel");var c=b.ha("gb-mobile-buy-button"),d=b.ha("gb-mobile-buy-close-button");b=b.ha("volume-left");a&&c&&d&&b&&(this.i=new Bt,Nk(this.i,a),this.o=c,this.V=d,Nk(this,b),this.i.Ba(!1))}n(Mt,Y); Mt.prototype.La=function(){var a=this;Z(this).ka(this.o,"click",this.l).ka(this.o,"keydown",function(b){b.keyCode!=32&&b.keyCode!=13||a.l()}).ka(this.V,"click",this.l).ka(this.V,"keydown",function(b){b.keyCode!=32&&b.keyCode!=13||a.l()})}; Mt.prototype.l=function(){if(this.i.isVisible()){this.i.Ba(!1);yh(this.i.Mb(),"gb-mobile-buy-panel-visible");this.j&&(this.j.style.overflowX="auto",this.j.style.overflowY="scroll");this.o.focus();for(var a=pa(document.querySelectorAll('[role="alert"],#volume-center,.aria-hide-on-menu-open')),b=a.next();!b.done;b=a.next())b.value.removeAttribute("aria-hidden")}else this.i.Ba(!0),O(this.i.Mb(),"gb-mobile-buy-panel-visible"),this.j&&(this.j.style.overflowX="hidden",this.j.style.overflowY="hidden"),this.i.Mb().focus(), Nt(this)};function Nt(a){var b=a.i.Mb().querySelectorAll('[role="button"],[href]'),c=b[0],d=b[b.length-1];Z(a).ka(a.i.Mb(),"keydown",function(e){e.keyCode==9&&(e.shiftKey?document.activeElement===c&&(e.preventDefault(),d.focus()):document.activeElement===d&&(e.preventDefault(),c.focus()))});a=pa(document.querySelectorAll('[role="alert"],#volume-center,.aria-hide-on-menu-open'));for(b=a.next();!b.done;b=a.next())X(b.value,"hidden",!0)};function zo(a){this.g=lo(a,void 0,void 0,2048)}n(zo,Do);f=zo.prototype;f.getEnableSsEngine=function(){return Bo(this,2)};f.getEnableAwr=function(){return Bo(this,3)};f.getAlohaAutoGaRollout=function(){return Bo(this,5)};f.getEnableConfigurator=function(){return Bo(this,6)};f.getEnableMweb=function(){return Bo(this,7)};f.getEnableCtlConsentCheckbox=function(){return Bo(this,8)};f.getEnableIframe=function(){return Bo(this,9)};f.getEnableScreenshotNudge=function(){return Bo(this,10)}; f.getEnableWebStartupConfigEndpoint=function(){return Bo(this,11)};f.getEnableJunkNudge=function(){return Bo(this,12)};f.getEnableConfiguratorLocale=function(){return Bo(this,13)};f.getEnableTinyNoPointer=function(){return Bo(this,14)};f.getEnableSupportSessionLogging=function(){return Bo(this,15)};f.getEnableFileUploadForScreenshot=function(){return Bo(this,16)};f.getEnableDirectDeflectionForSingleCategory=function(){return Bo(this,17)};f.getEnableImageSanitization=function(){return Bo(this,18)}; f.getEnableAlohaBinarySplit=function(){return Bo(this,19)};f.getEnableDbFeedbackIntents=function(){return Bo(this,20)};f.getEnableMarkMandatoryFieldsWithRequired=function(){return Bo(this,21)};f.getEnableFeedbackCategoryCustomUi=function(){return Bo(this,22)};f.getEnableRealtimeCtl=function(){return Bo(this,23)};function Ot(a){this.g=lo(a,void 0,void 0,2048)}n(Ot,Do);function Pt(a){return Qt.some(function(b){return b.test(a)})}var Qt=[/https:\/\/sandbox\.google\.com\/tools\/feedback/,/https:\/\/feedback-frontend-qual[a-z0-9.]*\.google\.com\/inapp/,/https:\/\/feedback-frontend-qual[a-z0-9.]*\.google\.com\/tools\/feedback/,/https:\/\/.*\.googleusercontent\.com\/inapp/];var Rt="af am ar-EG ar-JO ar-MA ar-SA ar-XB ar az be bg bn bs ca cs cy da de-AT de-CH de el en en-GB en-AU en-CA en-IE en-IN en-NZ en-SG en-XA en-XC en-ZA es es-419 es-AR es-BO es-CL es-CO es-CR es-DO es-EC es-GT es-HN es-MX es-NI es-PA es-PE es-PR es-PY es-SV es-US es-UY es-VE et eu fa fi fil fr-CA fr-CH fr gl gsw gu he hi hr hu hy id in is it iw ja ka kk km kn ko ky ln lo lt lv mk ml mn mo mr ms my nb ne nl no pa pl pt pt-BR pt-PT ro ru si sk sl sq sr-Latn sr sv sw ta te th tl tr uk ur uz vi zh zh-CN zh-HK zh-TW zu".split(" ");var St=sa(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),Tt=sa(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]); function Ut(a,b){var c;var d=(c=a.formContent)==null?void 0:c.locale;c=d==null?void 0:d.split("-")[0];d=d&&Rt.includes(d)?d:c&&Rt.includes(c)?c:void 0;d=(d!=null?d:"en").replaceAll("-","_").toLowerCase();var e;a=((e=a.initializationData)==null?0:e.useNightlyRelease)?"nightly":"live";var g;return(b==null?0:(g=b.getEnableAlohaBinarySplit)==null?0:g.call(b))?Oe(St,a):Oe(Tt,a,d)};function Vt(){var a=Error.call(this,"Form is either loading or already opened");this.message=a.message;"stack"in a&&(this.stack=a.stack);this.name="DuplicateFormError"}n(Vt,Error);var Wt,Xt,Yt,Zt; function $t(a,b,c,d){if(Wt&&Yt===b)return Wt;Yt=b;var e=Ut(a,d);return Wt=b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):new Promise(function(g,h){var k=C("SCRIPT");Nc(k,e);k.onload=function(){b.feedbackV2GlobalObject?g(b.feedbackV2GlobalObject):h(Error("feedbackV2GlobalObject not found on window."))};k.onerror=function(){h(Error("Feedback binary script tag failed to load: "+e.toString()))};c.body.appendChild(k)})} function au(a,b,c,d){if(Xt&&Zt===b)return Xt;Zt=b;var e=Ut(a,d);return Xt=b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):new Promise(function(g,h){var k=C("SCRIPT");Nc(k,e);k.onload=function(){b.feedbackV2GlobalObject?g(b.feedbackV2GlobalObject):h(Error("feedbackV2GlobalObject not found on window."))};k.onerror=function(){h(Error("Feedback binary script tag failed to load: "+e.toString()))};c.body.appendChild(k)})} function bu(a,b,c,d,e){e=e===void 0?!0:e;var g,h,k,l,m;return Ha(function(p){switch(p.g){case 1:return g=Date.now(),p.U($t(a,c,d,b),2);case 2:h=p.o;if(!(e||((l=a.initializationData)==null?0:l.useNightlyRelease)||((m=a.initializationData)==null?0:m.isLocalServer))){k=h.initializeFeedbackClient(a,g,b);p.Dg(3);break}return p.U(h.initializeFeedbackClientAsync(a,g,b),4);case 4:k=p.o;case 3:return k.initiateAloha(),p.return(k)}})} function cu(a,b,c,d){var e,g,h;return Ha(function(k){if(k.g==1)return e=Date.now(),k.U(au(a,c,d.document,b),2);if(k.g!=3)return g=k.o,k.U(g.initializeFeedbackClientAsync(a,e,b,d),3);h=k.o;h.initiateAloha();return k.return(h)})} function du(a,b,c){var d=!0;d=d===void 0?!0:d;var e,g,h,k,l,m,p,y;return Ha(function(D){e=c||q;if((g=b)==null?0:(k=(h=g).getEnableAlohaBinarySplit)==null?0:k.call(h)){l=e;if(l.isFormOpened)throw new Vt;l.isFormOpened=!0;a.callbacks=a.callbacks||{};m=a.callbacks.onClose||function(){};a.callbacks.onClose=function(H){l.isFormOpened=!1;m(H)};try{return D.return(cu(a,b,l,e))}catch(H){throw l.isFormOpened=!1,H;}}else{p=e;if(p.isFormOpened)throw new Vt;p.isFormOpened=!0;a.callbacks=a.callbacks||{};y=a.callbacks.onClose|| function(){};a.callbacks.onClose=function(H){p.isFormOpened=!1;y(H)};try{return D.return(bu(a,b,p,e.document,d))}catch(H){throw p.isFormOpened=!1,H;}}D.Ka()})};function eu(a,b){return Ha(function(c){return c.return(new Promise(function(d,e){Number.isInteger(Number(a))&&Number(a)>0?(e=fu(b!=null?b:"")+"/aloha_form_properties?productId="+a,si(e,function(g){g=g.target;var h=null;try{var k=JSON.stringify(Ai(g,")]}'\n"));if(k==null||k=="")h=new Ot;else{var l=JSON.parse(k);if(!Array.isArray(l))throw Error("dnarr");$n(l,32);h=new Ot(l)}}catch(m){k=new Ot,l=new zo,l=Co(l,5,!0),l=Co(l,2,!0),l=Co(l,4,!1),l=Co(l,8,!0),l=Co(l,9,!0),l=Co(l,7,!0),l=Co(l,10,!0),l=Co(l, 12,!0),l=Co(l,13,!1),l=Co(l,14,!0),l=Co(l,15,!0),l=Co(l,20,!1),l==null&&(l=void 0),g=l,so(k),h=k.g,xo(h,h[Zn]|0,1,g),l&&!co(l)&&to(k.g),h=k}d(h)},"GET","",{},2E3,!0)):e(Error("Invalid product id: "+a))}))})}function fu(a){return Pt(a)?a:"https://www.google.com/tools/feedback"};function gu(a,b,c){a.timeOfStartCall=(new Date).getTime();var d=c||q,e=d.document,g=a.nonce||Lc("script",d.document);g&&!a.nonce&&(a.nonce=g);if(a.flow=="help"){var h=Sa("document.location.href",d);!a.helpCenterContext&&h&&(a.helpCenterContext=h.substring(0,1200));h=!0;if(b&&JSON&&JSON.stringify){var k=JSON.stringify(b);(h=k.length<=1200)&&(a.psdJson=k)}h||(b={invalidPsd:!0})}b=[a,b,c];d.GOOGLE_FEEDBACK_START_ARGUMENTS=b;c=a.feedbackServerUri||"//www.google.com/tools/feedback";if(h=d.GOOGLE_FEEDBACK_START)h.apply(d, b);else{d=c+"/load.js?";for(var l in a)b=a[l],b==null||Xa(b)||(d+=encodeURIComponent(l)+"="+encodeURIComponent(b)+"&");a=Of(Xe(e),"SCRIPT");g&&a.setAttribute("nonce",g);Nc(a,qc(d));e.body.appendChild(a)}} function hu(a,b,c,d){var e,g;return Ha(function(h){e=c||q;var k=a.serverEnvironment==="DEV",l=c||q;l=a.nonce||Lc("script",l.document);k={integrationKeys:{productId:a.productId,feedbackBucket:a.bucket,triggerId:a.triggerId,microfeedbackScore:a.microfeedbackScore},callbacks:{onClose:a.callback,onLoad:a.onLoadCallback},formContent:{locale:a.locale,disableScreenshot:a.disableScreenshotting,productDisplayName:void 0,announcement:void 0,issueCategories:void 0,includeSeveritySelection:void 0,customImageSrc:void 0, thankYouMessage:void 0,Pw:void 0,defaultFormInputValues:void 0,defaultFormInputValuesString:void 0,abuseLink:a.abuseLink,additionalDataConsent:a.additionalDataConsent},initializationData:{isLocalServer:k,nonce:l,useNightlyRelease:k,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:a.feedbackServerUri,colorScheme:a.colorScheme},extraData:{productVersion:a.productVersion,authUser:a.authuser,configuratorId:a.configuratorId,customZIndex:a.customZIndex, tinyNoPointer:a.tinyNoPointer,allowNonLoggedInFeedback:a.allowNonLoggedInFeedback,enableAnonymousFeedback:a.enableAnonymousFeedback}};b&&(l=new Map(Object.entries(b)),k.extraData.productSpecificData=l);g=k;return h.U(du(g,d,e),0)})} function iu(a,b,c){try{if(a.flow==="help"){var d=a.helpCenterPath.replace(/^\//,"");Kc(c||window,"https://support.google.com/"+d)}else a.flow==="submit"?gu(a,b,c):eu(a.productId,a.feedbackServerUri).then(function(e){e=Ao(e);var g=!Nd||(e==null?void 0:e.getEnableMweb()),h=!a.tinyNoPointer||(e==null?void 0:e.getEnableTinyNoPointer());!e||e.getAlohaAutoGaRollout()&&g&&h?hu(a,b,c,e).catch(function(k){!k||k instanceof Vt||gu(a,b,c)}):gu(a,b,c)},function(e){!e||e instanceof Vt||gu(a,b,c)})}catch(e){hu(a, b,c,null).catch(function(g){!g||g instanceof Vt||gu(a,b,c)})}}db("userfeedback.api.startFeedback",iu);function ju(a,b,c){Y.call(this);if(this.j=A("gb-mobile-appbar-back-button"))Z(this).ka(this.j,"click",this.l),ku(this);(this.i=A("gb-mobile-appbar-more"))&&lu(this);var d=A("gb-mobile-appbar-search-button");d&&b&&(I(d,"click",function(){mu(b,c)}),I(d,"keydown",function(e){e.keyCode!=32&&e.keyCode!=13||mu(b,c)}));new Mt(a)}n(ju,Y); function lu(a){var b=A("gb-mobile-more-menu");if(b){var c=new Mp(b);Np(c,4);c.setPosition(new Wr(a.i,4));c.Ba(!1);I(a.i,"click",function(){nu(b,c)});I(a.i,"keydown",function(d){d.keyCode!=32&&d.keyCode!=13||nu(b,c)})}else E(a.i)}function nu(a,b){yh(a,"more-menu-hidden");b.Ba(!0);b.ha().focus();a=df("more-menu-link");for(var c=0;c"+(e.j+1+" of ")+(e.i.o.Ab.length+" in this book for ")+(uq(e.i.o)+"")));e=a.i.O;b=Vl(e.hb(),b.Na());if(!b)return null;var g=e.Ga();g instanceof Jq||g instanceof Gr||(a.i.l==Gr?e.Zb(Gr):e.Zb(Jq));if(c)return e.Ad(c),null;if(d)return Hm(e,d),null;e.zh(b); return b}Yu.prototype.wa=function(){Qf(this.N);W.prototype.wa.call(this)};var hv="ganpub ganclk dapp source_ip source_country source_domain authuser".split(" ");function iv(a){var b=b===void 0?window.location.href:b;var c=new R(b);S(a,"hl","en");(b=T(c,"output"))&&S(a,"output",b);b=T(c,"source");b=="ge-ipad-app"?(S(a,"dapp","2"),gi(a,"output")):b=="ge-tablet-app"?(S(a,"dapp","4"),gi(a,"output")):b=="ge-ip-app"?S(a,"dapp","1"):b=="ge-android-app"&&S(a,"dapp","3");T(c,"authuser")||gi(a,"authuser");hv.forEach(function(d){var e=T(c,d);e&&S(a,d,e)})};function jv(){this.g=[]}u(jv,Zq);Ua(jv);function kv(a,b){var c=a.g[b];if(!c){switch(b){case 0:c=a.Sa()+"-highlight";break;case 1:c=a.Sa()+"-checkbox";break;case 2:c=a.Sa()+"-content"}a.g[b]=c}return c}f=jv.prototype;f.eg=function(){return"menuitem"};f.Mc=function(a){var b=a.g.Pa("DIV",br(this,a).join(" "),lv(this,a.Ac(),a.g));mv(this,a,b,gr(a,8)||gr(a,16));return b};f.Ic=function(a){return a&&a.firstChild}; f.Tb=function(a,b){var c=zf(b),d=kv(this,2);c&&wh(c,d)||b.appendChild(lv(this,b.childNodes,a.g));wh(b,"goog-option")&&(a.Qh(!0),this.Qh(a,b,!0));return jv.oa.Tb.call(this,a,b)};f.fg=function(a,b){var c=this.Ic(a),d=nv(this,a)?c.firstChild:null;jv.oa.fg.call(this,a,b);d&&!nv(this,a)&&c.insertBefore(d,c.firstChild||null)};function lv(a,b,c){a=kv(a,2);return c.Pa("DIV",a,b)}f.yp=function(a,b,c){a&&b&&mv(this,a,b,c)};f.Qh=function(a,b,c){a&&b&&mv(this,a,b,c)}; function nv(a,b){return(b=a.Ic(b))?(b=b.firstChild,a=kv(a,1),!!b&&Bf(b)&&wh(b,a)):!1}function mv(a,b,c,d){er(a,c,b.Ze());fr(a,b,c);d!=nv(a,c)&&(P(c,"goog-option",d),c=a.Ic(c),d?(a=kv(a,1),c.insertBefore(b.g.Pa("DIV",a),c.firstChild||null)):c.removeChild(c.firstChild))}f.oh=function(a){switch(a){case 2:return kv(this,0);case 16:case 8:return"goog-option-selected";default:return jv.oa.oh.call(this,a)}}; f.Pi=function(a){var b=kv(this,0);switch(a){case "goog-option-selected":return 16;case b:return 2;default:return jv.oa.Pi.call(this,a)}};f.Sa=function(){return"goog-menuitem"};function ov(a,b,c,d){qr.call(this,a,d||jv.Nb(),c);this.wc(b)}u(ov,qr);f=ov.prototype;f.Bb=function(){var a=this.tl;return a!=null?a:this.vg()};f.wc=function(a){this.tl=a};f.Yb=function(a,b){ov.oa.Yb.call(this,a,b);switch(a){case 8:hr(this,16)&&!b&&this.Sf(!1);(a=this.ha())&&this.vd().yp(this,a,b);break;case 16:(a=this.ha())&&this.vd().Qh(this,a,b)}};f.yp=function(a){this.Yb(8,a)};f.Qh=function(a){this.Yb(16,a)}; f.vg=function(){var a=this.Ac();return Array.isArray(a)?(a=nb(a,function(b){return Bf(b)&&(wh(b,"goog-menuitem-accel")||wh(b,"goog-menuitem-mnemonic-separator"))?"":Kf(b)}).join(""),$c(a)):ov.oa.vg.call(this)};f.Ce=function(a){var b=this.getParent();if(b){var c=b.l;b.l=null;if(c&&typeof a.clientX==="number"&&Hb(c,new w(a.clientX,a.clientY)))return}ov.oa.Ce.call(this,a)};f.ae=function(a){return a.keyCode==this.rl&&this.nf(a)?!0:ov.oa.ae.call(this,a)};f.Qs=function(){return this.rl}; nr("goog-menuitem",function(){return new ov(null)});ov.prototype.Ze=function(){return gr(this,16)?"menuitemcheckbox":gr(this,8)?"menuitemradio":ov.oa.Ze.call(this)};ov.prototype.getParent=function(){return qr.prototype.getParent.call(this)};ov.prototype.Ag=function(){return qr.prototype.Ag.call(this)};function pv(a,b,c,d){Wr.call(this,a,b,c||d);(c||d)&&this.l(65|(d?32:132))}u(pv,Wr);function qv(){}u(qv,Zq);Ua(qv);qv.prototype.Sa=function(){return"goog-menuheader"};function rv(a,b,c){qr.call(this,a,c||qv.Nb(),b);this.Yb(1,!1);this.Yb(2,!1);this.Yb(4,!1);this.Yb(32,!1);this.me=1}u(rv,qr);nr("goog-menuheader",function(){return new rv(null)});function sv(){}u(sv,Zq);Ua(sv);sv.prototype.Mc=function(a){return a.g.Pa("DIV",this.Sa())};sv.prototype.Tb=function(a,b){b.id&&a.Ig(b.id);if(b.tagName=="HR"){var c=b;b=this.Mc(a);uf(b,c);E(c)}else O(b,this.Sa());return b};sv.prototype.fg=function(){};sv.prototype.Sa=function(){return"goog-menuseparator"};function tv(a,b){qr.call(this,null,a||sv.Nb(),b);this.Yb(1,!1);this.Yb(2,!1);this.Yb(4,!1);this.Yb(32,!1);this.me=1}u(tv,qr);tv.prototype.La=function(){tv.oa.La.call(this);var a=this.ha();Zj(a,"separator")};nr("goog-menuseparator",function(){return new tv});function uv(a){this.g=a||"menu"}u(uv,wt);Ua(uv);f=uv.prototype;f.Oj=function(a){return a.tagName=="UL"||uv.oa.Oj.call(this,a)};f.rh=function(a){return a.tagName=="HR"?new tv:uv.oa.rh.call(this,a)};f.Ud=function(a,b){return Cf(a.ha(),b)};f.ig=function(){return"goog-menu"};f.Pj=function(a){uv.oa.Pj.call(this,a);a=a.ha();X(a,"haspopup","true")};function vv(a){tv.call(this,sv.Nb(),a)}u(vv,tv);nr("goog-menuseparator",function(){return new tv});function wv(a,b){Bt.call(this,"vertical",b||uv.Nb(),a);Kt(this,!1)}u(wv,Bt);f=wv.prototype;f.kk=!0;f.Ud=function(a){if(this.vd().Ud(this,a))return!0;for(var b=Pk(this),c=0;c"+(a.i.o.Ab.length+" results in this book for ")+(uq(a.i.o)+"")));fv(a,!0)} function Dv(a){kn()||(Mv(a,A("search-result-prev"),function(){Nv(a,a.j,-1)},"Previous result"),Mv(a,A("search-result-next"),function(){Nv(a,a.j,1)},"Next result"));Mv(a,A("search-result-viewall"),function(){dv(a.i)},"View all");Mv(a,A("search-close"),function(){a.Ia()},"Close search")} function Ev(a){var b=C("SPAN");x(b,z("-  "));O(b,"search-bar-link-spacer");a.N.appendChild(b);Ov(a,a.N,"\u2039 Previous",function(){Nv(a,a.j,-1)},"Previous");b=C("SPAN");x(b,z("  "));O(b,"search-bar-link-spacer");a.N.appendChild(b);Ov(a,a.N,"Next \u203a",function(){Nv(a,a.j,1)},"Next");b=C("SPAN");x(b,z("  -  "));O(b,"search-bar-link-spacer");a.N.appendChild(b);Ov(a,a.N,"View all",function(){dv(a.i)})} function Gv(a){a.ma.appendChild(a.U);var b=C("SPAN");x(b,z("-  "));O(b,"search-bar-link-spacer");a.U.appendChild(b);a.U.appendChild(qf("Order by: "));a.U.appendChild(a.Ha);Ov(a,a.Ha,"relevance",function(){Pv(a,"r")},"Order by relevance");b=C("SPAN");x(b,z(" | pages"));a.Ha.appendChild(b);a.U.appendChild(a.Ja);b=C("SPAN");x(b,z("relevance | "));a.Ja.appendChild(b);Ov(a,a.Ja,"pages",function(){Pv(a,"n")},"Order by pages")} function Fv(a){a.V=a.o?A("sort-dropdown-button"):B("A",{"class":"search-bar-sort-dropdown-link"});var b=a.o?A("sort-dropdown-label"):B("SPAN",{"class":"search-bar-sort-dropdown-text"});G(b,"Order by ");a.na=B("SPAN",{"class":"search-bar-sort-dropdown-selected"});G(a.na,"pages");var c=a.V;dk(c,"Order by pages");c.setAttribute("title","Order by pages");b.appendChild(a.na);b=new yv;var d=new ov("relevance");d.Ph("Order by relevance");b.ab(d,!0);O(d.ha(),"search-bar-sort-dropdown-item");var e=new ov("pages"); e.Ph("Order by pages");b.ab(e,!0);xh(e.ha(),["search-bar-sort-dropdown-item","search-bar-sort-dropdown-item-selected"]);b.Sl=!0;a.va?b.render(a.U):b.render(document.body);O(b.ha(),"sort-dropdown-menu");c=C("SPAN");c.id="current-sort-label";G(c,"Current");N(c,!1);b.ha().appendChild(c);X(e.ha(),"describedby","current-sort-label");a.ua?(b.attach(a.V,12,13),O(b.ha(),"popup-menu")):b.attach(a.V,13,12);a.g.ka(b,"action",function(g){Qv(a,g,d.ha(),e.ha())});a.g.ka(b,"keydown",function(g){g.keyCode!=32&&g.keyCode!= 13||Qv(a,g,d.ha(),e.ha())});a.va&&a.g.ka(b,"beforeshow",function(){var g=a.V.offsetWidth-32;gh(d.ha(),g);gh(e.ha(),g)})}function Hv(a){var b=C("SPAN");O(b,"search-bar-close-link-container");a.ua?a.Da.appendChild(b):a.ma.appendChild(b);a.g.ka(b,"click",a.Ia);var c=Ov(a,b,"Clear search",function(){a.Ia()});O(c,"search-bar-close-link");c=C("IMG");c.src="/googlebooks/images/close_x.gif";O(c,"search-bar-close-img");b.appendChild(c)} function fv(a,b){N(Kv,!b);N(a.U,b);a.o?(N(a.N,!b),b=!b&&a.i.o.Ab.length==1,P(a.N,"toolbar-button-disabled",b),X(a.N,"disabled",b)):N(a.N,!b&&a.i.o.Ab.length>1);a.ma&&N(a.ma,!0);Rv!=null&&Rv.resize()}function Sv(a){a.V?Lv(a,!1):N(a.U,!1);a.va&&N(a.U,!0);N(a.N,!1);tf(a.l)}function $u(a){Sv(a);x(a.l,z("Loading..."));a.o&&a.l.removeAttribute("aria-label")} function bv(a){Sv(a);var b=a.i.o,c=vq(b),d=null;c&&!a.o&&(d=C("SPAN"),x(d,z("Did you mean: ")),Ov(a,d,c,function(){var h=a.i.i;if(h){var k=ed(c);xm(h.O.Ya(),k);h.N.wc(k);h.o&&h.o.update()}}));var e=C("SPAN");a.o?x(e,z("No results")):x(e,z(Xb("No results found in this book for "+uq(b))));b=C("A");a.o||(x(b,z("Search all books")),b.setAttribute("target","_top"),O(b,"sitb-action-link"));var g=Wm()=="patents"?new R("https://www.google.com/search?tbm=pts&tbo=p&hl=en"):new R("https://www.google.com/search?tbm=bks&tbo=p"); iv(g);T(g,"output")=="embed"&&gi(g,"output");S(g,"q",ed(uq(a.i.o)));Fc(b,g.toString());a.o?(a.l.appendChild(e),a.l.removeAttribute("aria-label")):a.ua?(a.l.appendChild(e),a.l.appendChild(b),d&&(Rc(d,"afterbegin",z("  ·  ")),a.l.appendChild(d))):(d&&(a.l.appendChild(d),a.l.appendChild(C("BR"))),Rc(e,"beforeend",z("  -  ")),a.l.appendChild(e),Rc(b,"beforeend",z(" »")),a.l.appendChild(b));Rv!=null&&Rv.resize()} function Tv(a,b,c,d,e){a.j+=e;a.j>=c.length&&(a.j=0);a.j<0&&(a.j=c.length-1);if(a.j!=d){var g=c[a.j];cv(a.i,g)?(e=Xh(S(S(S(new R(b.href),"pg",g.Na()),"num",a.j),"scoring",a.i.j),""),Fc(b,e.toString()),cv(a.i,c[d])):Tv(a,b,c,d,e)}}Bv.prototype.wa=function(){W.prototype.wa.call(this);Qf(this.Ca);N(Kv,!0);E(this.ma);Rv!=null&&Rv.resize();this.o&&(gv(this,!1),E(ef("sort-dropdown-menu")),tf(this.l))}; function Ov(a,b,c,d,e){var g=C("SPAN");O(g,"search-bar-link");Zj(g,"link");dk(g,e?e:c);Hf(g,!0);b.appendChild(g);g.innerText=c;a.g.ka(g,"click",d);a.g.ka(g,"keydown",function(h){h.keyCode!=32&&h.keyCode!=13||d()});return g}function Mv(a,b,c,d){dk(b,d);b.setAttribute("title",d);a.g.ka(b,"click",c);a.g.ka(b,"keydown",function(e){e.keyCode!=32&&e.keyCode!=13||c()})}Bv.prototype.Ia=function(){var a=this.i;xm(a.i.O.Ya(),"");kn()&&Fu(a.l,!1);(a=this.i.i)&&a.o&&a.o.update()}; function Nv(a,b,c){var d=a.i.o.Ab.length;a.j+=c;a.j>=d&&(a.j=0);a.j<0&&(a.j=d-1);a.j!=b&&(cv(a.i,a.i.o.Ab[a.j])||Nv(a,b,c))}function Pv(a,b){(a=a.i.i)&&a.update(b)} function Qv(a,b,c,d){if((b=b.target.Ac())&&a.na){var e=a.V;switch(b){case "pages":Pv(a,"n");G(a.na,"pages");dk(e,"Order by pages");e.setAttribute("title","Order by pages");P(d,"search-bar-sort-dropdown-item-selected",!0);X(d,"describedby","current-sort-label");P(c,"search-bar-sort-dropdown-item-selected",!1);c.removeAttribute("aria-describedby");break;case "relevance":Pv(a,"r"),G(a.na,"relevance"),dk(e,"Order by relevance"),e.setAttribute("title","Order by relevance"),P(c,"search-bar-sort-dropdown-item-selected", !0),X(c,"describedby","current-sort-label"),P(d,"search-bar-sort-dropdown-item-selected",!1),d.removeAttribute("aria-describedby")}}} function Lv(a,b){a.V&&(P(a.V,"search-bar-sort-dropdown-disabled",!b),X(a.V,"disabled",!b));var c=a.i.j=="n";b&&!c&&(G(a.na,"relevance"),b=a.V,dk(b,"Order by relevance"),b.setAttribute("title","Order by relevance"),b=df("search-bar-sort-dropdown-item"),P(b[0],"search-bar-sort-dropdown-item-selected",!0),X(b[0],"describedby","current-sort-label"),P(b[1],"search-bar-sort-dropdown-item-selected",!1),b[1].removeAttribute("aria-describedby"));a.o&&a.l.setAttribute("data-search-sort",a.i.j)} function gv(a,b){a.va?(N(A("gb-mobile-search"),b),N(A("gb-mobile-search-buttons"),b)):(P(A("entity-page-search-nav"),"hide-search-nav",!b),P(A("search-results-summ"),"hide-search-nav",!b),P(A("search-close"),"hide-search-nav",!b))}var Cv,Kv,Rv;function Uv(a,b,c,d){W.call(this);var e=this;this.O=a;this.N=b;this.o=c;this.U=d;this.V=Nd&&d&&d.isOgenEligibleMobileViewport;this.g.ka(a.Ya(),"change",function(){e.update("r")})}n(Uv,W); Uv.prototype.update=function(a,b,c){this.i?(this.i.dispose(),this.i=null):(this.O.U&&(this.l=this.O.U),this.j=new Bv(this.U));var d=this.O.Ya().getQuery();b&&!b.search_query_escaped&&b.number_of_results>0&&d&&(b.search_query_escaped=d);if(b&&b.search_query_escaped){if(this.i=new Yu(this),this.j.i=this.i,d=!zm(),av(this.i,d,b,c,a),a=this.j,kn()&&a.j!==void 0){b=a.i.o.Ab;d=b.length;c=new R(window.location.href);var e=Number(T(c,"num"));e&&d>0&&(d=b[Number(e)],e=T(c,"jtp"),c=T(c,"pg"),e?cv(a.i,d,"", e):c?cv(a.i,d,c):cv(a.i,d));c=a.j;d=A("search-result-prev");Tv(a,d,b,c,-1);dk(d,"Previous result");d.setAttribute("title","Previous result");d=A("search-result-next");Tv(a,d,b,c,1);dk(d,"Next result");d.setAttribute("title","Next result")}}else d?(this.i=new Yu(this),this.j.i=this.i,Zu(this.i,d,a),this.N.wc(d)):(this.i&&(this.i.dispose(),this.i=null),this.O.Ga()instanceof ns&&(this.O.Zb(this.l),this.V&&!kn()&&this.O.Ga().Wf(this.O.Ga().getSize().width)),this.j&&(this.j.dispose(),this.j=null),this.N.wc(""))};function Vv(a,b){var c=this;this.O=a;b&&(this.g=b);this.l=new Uq(document);this.i={};this.j={};I(this.l,"key",function(d){var e=c.i[String.fromCharCode(d.charCode)]||c.j[d.keyCode];e&&e(d)});Wv(this,33,function(){Xv(c,-1)},!1,!0);Wv(this,34,function(){Xv(c,1)},!1,!0);Wv(this,38,function(){Yv(c,0,-20)},!1,!0);Wv(this,40,function(){Yv(c,0,20)},!1,!0);this.g||(Wv(this,37,function(){c.O.U==Gr&&c.O.Ga().Hb().getSize().width>c.O.wb()?Yv(c,-20,0):c.O.rb("previous")},!1,!0),Wv(this,39,function(){c.O.U==Gr&& c.O.Ga().Hb().getSize().width>c.O.wb()?Yv(c,20,0):c.O.rb("next")},!1,!0),Wv(this,32,function(d){d.shiftKey?Xv(c,-1):Xv(c,1)},!0,!0),Wv(this,74,function(){c.O.rb("next")},!0),Wv(this,75,function(){c.O.rb("previous")},!0),Zv(this,"+",function(){c.O.rb("zoomin")}),Zv(this,"-",function(){c.O.rb("zoomout")}),Zv(this,"=",function(){c.O.rb("zoomin")}));Zv(this,"?",function(){c.O.rb("showkeyboardshortcuts")})}function Zv(a,b,c){a.i[b]=t($v,c,!0,void 0)}function Wv(a,b,c,d,e){a.j[b]=t($v,c,d,e)} function $v(a,b,c,d){b&&d.repeat||d.ctrlKey||d.altKey||d.metaKey||aw[d.target.tagName.toUpperCase()]||(c&&d.preventDefault(),a(d))}function Xv(a,b){var c=a.g?a.g.clientHeight:a.O.Ga().getSize().height;Yv(a,0,Math.floor(b*c*.75))}function Yv(a,b,c){a.g?a.g.scrollTop+=c:(a=a.O.Ga(),sp(a,new w(b,c),r(a.Ed,a)))}var aw={BUTTON:!0,INPUT:!0,SELECT:!0,TEXTAREA:!0};function bw(a){this.g=lo(a,void 0,void 0,2048)}n(bw,Do);var cw=function(a){return function(b){b=JSON.parse(b);if(!Array.isArray(b))throw Error("Expected jspb data to be an array, got "+Va(b)+": "+b);$n(b,34);return new a(b)}}(bw);var dw;function ew(){var a=dw||(dw=cw('[null,null,null,null,null,"(function(){\'use strict\';var f\\u003dtypeof Object.defineProperties\\u003d\\u003d\\"function\\"?Object.defineProperty:function(a,c,b){if(a\\u003d\\u003dArray.prototype||a\\u003d\\u003dObject.prototype)return a;a[c]\\u003db.value;return a};function g(a){a\\u003d[\\"object\\"\\u003d\\u003dtypeof globalThis\\u0026\\u0026globalThis,a,\\"object\\"\\u003d\\u003dtypeof window\\u0026\\u0026window,\\"object\\"\\u003d\\u003dtypeof self\\u0026\\u0026self,\\"object\\"\\u003d\\u003dtypeof global\\u0026\\u0026global];for(var c\\u003d0;c\\u003ca.length;++c){var b\\u003da[c];if(b\\u0026\\u0026b.Math\\u003d\\u003dMath)return b}throw Error(\\"Cannot find global object\\");}var h\\u003dg(this);\\nfunction k(a,c){if(c)a:{var b\\u003dh;a\\u003da.split(\\".\\");for(var d\\u003d0;d\\u003ca.length-1;d++){var e\\u003da[d];if(!(e in b))break a;b\\u003db[e]}a\\u003da[a.length-1];d\\u003db[a];c\\u003dc(d);c!\\u003dd\\u0026\\u0026c!\\u003dnull\\u0026\\u0026f(b,a,{configurable:!0,writable:!0,value:c})}}k(\\"globalThis\\",function(a){return a||h});/*\\n\\n Copyright Google LLC\\n SPDX-License-Identifier: Apache-2.0\\n*/\\nvar l\\u003dglobalThis.trustedTypes,m;function n(){var a\\u003dnull;if(!l)return a;try{var c\\u003dfunction(b){return b};a\\u003dl.createPolicy(\\"goog#html\\",{createHTML:c,createScript:c,createScriptURL:c})}catch(b){}return a};function p(a){this.g\\u003da}p.prototype.toString\\u003dfunction(){return this.g+\\"\\"};function q(a){m\\u003d\\u003d\\u003dvoid 0\\u0026\\u0026(m\\u003dn());a\\u003dm?m.createScriptURL(a):a;return new p(a)};if(!function(){if(self.origin)return self.origin\\u003d\\u003d\\u003d\\"null\\";if(location.host!\\u003d\\u003d\\"\\")return!1;try{return window.parent.escape(\\"\\"),!1}catch(a){return!0}}())throw Error(\\"sandboxing error\\");\\nwindow.addEventListener(\\"message\\",function(a){var c\\u003da.ports[0];a\\u003da.data;var b\\u003da.callbackName.split(\\".\\"),d\\u003dwindow;b[0]\\u003d\\u003d\\u003d\\"window\\"\\u0026\\u0026b.shift();for(var e\\u003d0;e\\u003cb.length-1;e++)d[b[e]]\\u003d{},d\\u003dd[b[e]];d[b[b.length-1]]\\u003dfunction(r){c.postMessage(JSON.stringify(r))};b\\u003ddocument.createElement(\\"script\\");a\\u003dq(a.url);if(a instanceof p)a\\u003da.g;else throw Error(\\"\\");b.src\\u003da;document.body.appendChild(b)},!0);}).call(this);\\n"]')); if(!a)return null;a=vo(a,6,void 0,uo);a=a==null||typeof a==="string"?a:void 0;if(a===null||a===void 0)a=null;else{var b=oc();a=b?b.createScript(a):a;a=new Mc(a)}return a};function fw(a){this.url=a;this.timeout=5E3;this.l="callback";this.g=this.i=null}function gw(a){var b=b===void 0?{}:b;a.g=ij();var c=new R(a.url),d=new Map;d.set("callback",a.l);c.j.aq(ji(b),d);hw(a).then(function(){iw(a,c.toString())}).then(function(){return a.g.promise}).then(function(){jw(a)},function(){jw(a)});a.timeout>0&&(a.j=setTimeout(function(){a.g.reject(Error("Timeout!"))},a.timeout));return a.g.promise} function iw(a,b){var c=new MessageChannel;a.i.contentWindow.postMessage({url:b,callbackName:a.l},"*",[c.port2]);c.port1.onmessage=function(d){var e={};a.j!==void 0&&(clearTimeout(a.j),a.j=void 0);d.data===void 0&&a.g.reject(Error("Callback called, but no data received"));typeof d.data!=="string"&&a.g.reject(Error("Exploitation attempt! Data is not a string!"));try{e=JSON.parse(d.data)}catch(g){a.g.reject(Error("Invalid Data received: "+g.message))}a.g.resolve(e)}} function hw(a){var b=ij(),c=C("IFRAME");if(!c.sandbox)throw Error("iframe sandboxes not supported");c.sandbox.value="allow-scripts";c.style.display="none";a.i=c;a=ew();a=ge([Hc(""),ne("body",{},fe(a))]);c.srcdoc=Jc(a);a=Wc("data:text/html;charset=UTF-8;base64,"+btoa(Jc(a).toString()));c.src=rc(a).toString();c.addEventListener("load",function(){return b.resolve(c)},!1);c.addEventListener("error",function(d){b.reject(d instanceof Error?d:Error(String(d)))},!1);document.documentElement.appendChild(c); return b.promise}function jw(a){a.i!==null&&(document.documentElement.removeChild(a.i),a.i=null)};function kw(a){vp.call(this,a);this.i=new fw(a);this.g=!0}n(kw,vp);kw.prototype.Td=function(a,b){vp.prototype.Td.call(this,a,b);this.g=!1;gw(this.i).then(r(this.o,this,a),r(this.l,this,b))};kw.prototype.o=function(a,b){this.g||(this.j=b,this.dispatchEvent("success"),a&&a(this.j),this.g=!0)};kw.prototype.l=function(a){this.g||(this.dispatchEvent("error"),a&&a(),this.g=!0)};kw.prototype.abort=function(){return this.g=!0};function lw(a,b,c,d,e){Array.isArray(a)||(a=[a]);this.g=a;this.j=b;this.i=c;b=new R((GBS_HOST||"https://books.google.com/")+"books?jscmd=viewapi");S(b,"bibkeys",a.join(","));S(b,"hl",e||"en");S(b,"source",d||"previewlib");(new kw(b)).Td(r(this.l,this))}lw.prototype.l=function(a){for(var b=0;b":g.push(m);c.push(b(g.join(""), h));e=0;g=[];k=h=null;break;default:g.push(m)}break;default:throw Error();}e===1&&l>=d&&(l=k+1,c.push("<"),e=0,g=[],k=h=null)}return c.join("")}function Gw(a){a!=null&&a.Ef===rw?(a=Bw(a.Ac()),a=String(a).replace(Hw,zw)):a=String(a).replace(yw,zw);return a} var Iw={"\x00":"�","\t":" ","\n":" ","\v":" ","\f":" ","\r":" "," ":" ",'"':""","&":"&","'":"'","-":"-","/":"/","<":"<","=":"=",">":">","`":"`","\u0085":"…","\u00a0":" ","\u2028":"
","\u2029":"
"};function zw(a){return Iw[a]} var yw=/[\x00\x22\x26\x27\x3c\x3e]/g,Hw=/[\x00\x22\x27\x3c\x3e]/g,Jw=/^(?!on|src|(?:action|archive|background|cite|classid|codebase|content|data|dsync|href|http-equiv|longdesc|style|usemap)\s*$)(?:[a-z0-9_$:-]*)$/i,Dw=/"+ww(c!=null?c:"")+"")};function Nw(a,b){this.j=a;this.N=!!b;this.l={0:this.j+"-arrowright",1:this.j+"-arrowup",2:this.j+"-arrowdown",3:this.j+"-arrowleft"}}n(Nw,Hp);f=Nw.prototype;f.Oh=function(a){this.i=a};f.setPosition=function(a,b,c,d){a!=null&&(this.uk=a);b!=null&&(this.nk=b);typeof c==="number"&&(this.zn=Math.max(c,15));typeof d==="number"&&(this.vl=d)};f.Lc=function(a,b,c){a=this.nk;a==2&&(a=0);Ow(this,this.uk,a,this.nk==2?Pw(this.uk)?this.g.offsetHeight/2:this.g.offsetWidth/2:this.zn,0,c)}; function Ow(a,b,c,d,e,g){if(a.i){var h=Qw(b,c);var k=a.i;var l=a.g,m=a.Ea,p=M(k);a:{p=(Pw(b)?p.height/2:p.width/2)-d;var y=Kp(k,h);if(m)m=m.clone(),l&&(l=Jp(l),m.left+=l.x,m.right+=l.x,m.top+=l.y,m.bottom+=l.y);else if(m=Yg(k),!m){k=p;break a}k=Fg(ih(k));Pw(b)?k.topm.bottom&&y&1&&(p-=k.bottom-m.bottom):k.leftm.right&&y&4&&(p-=k.right-m.right);k=p}k=Pw(b)?new w(a.vl,k):new w(k,a.vl);p=Pw(b)?6:9;a.lk&&e==2&&(p=Pw(b)?4:1); y=b^3;Pw(b)&&a.i.dir=="rtl"&&(y=b);h=Ip(a.i,Qw(y,c),a.g,h,k,g,a.Zk?p:0,void 0,a.Ea);if(e!=2&&h&496){Ow(a,b^3,c,d,a.lk&&e==0?1:2,g);return}!a.N||h&496||(e=parseFloat(a.g.style.left),g=parseFloat(a.g.style.top),isFinite(e)&&e%1==0&&isFinite(g)&&g%1==0||Tg(a.g,Math.round(e),Math.round(g)))}Rw(a,b,c,d)} function Rw(a,b,c,d){var e=a.o;Mb(a.l,function(g){P(e,g,!1)},a);O(e,a.l[b]);e.style.top=e.style.left=e.style.right=e.style.bottom="";a.i?(c=ch(a.i,a.g),d=Sw(a.i,b),Pw(b)?e.style.top=Tw(c.y+d.y,a.g.offsetHeight-15)+"px":e.style.left=Tw(c.x+d.x,a.g.offsetWidth-15)+"px"):e.style[c==0?Pw(b)?"top":"left":Pw(b)?"bottom":"right"]=d+"px"}function Tw(a,b){return 15>b?15:Gb(a,15,b)}function Qw(a,b){switch(a){case 2:return b==0?1:5;case 1:return b==0?0:4;case 0:return b==0?12:13;default:return b==0?8:9}} function Sw(a,b){var c=0,d=0;a=M(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 w(c,d)}function Pw(a){return a==0||a==3}f.Zk=!1;f.nk=2;f.zn=20;f.uk=3;f.Ea=null;f.vl=-5;f.lk=!1;function Uw(a){Rf.call(this);this.i=a||Xe()}n(Uw,Rf);Uw.prototype.o=function(){Zj(this.ha(),"tooltip");X(this.ha(),"live","polite")};function Vw(a){Uw.call(this,a);this.g=this.i.Pa("DIV",Ww()+"-contentId");this.j=this.i.Pa("DIV",Ww()+"-arrow",this.i.Pa("DIV",Ww()+"-arrowimplbefore"),this.i.Pa("DIV",Ww()+"-arrowimplafter"));this.l=this.i.Pa("DIV",{"class":Ww(),role:"tooltip"},this.g,this.j);this.o()}n(Vw,Uw);function Ww(){return"jfk-tooltip"}Vw.prototype.ha=function(){return this.l};Vw.prototype.wa=function(){Uw.prototype.wa.call(this);this.l&&E(this.l)};function Xw(a){Vw.call(this,a)}n(Xw,Vw);Xw.prototype.o=function(){Zj(this.ha(),"tooltip")};function Yw(a){return ed(Xb(a.replace(Zw,function(b,c){return $w.test(c)?"":" "}).replace(/[\t\n ]+/g," ")))}var $w=/^(?:abbr|acronym|address|b|em|i|small|strong|su[bp]|u)$/i,Zw=/<[!\/]?([a-z0-9]+)([\/ ][^>]*)?>/gi;function ax(a){a=a||Xe();var b=Ya(a.g);bx[b]||(bx[b]=new cx(a))}function dx(a,b){var c=b instanceof Gc?Yw(Jc(b).toString()):b;a.removeAttribute("title");a.removeAttribute("data-tooltip-contained");a.removeAttribute("data-tooltip");b?(b instanceof Gc?a.j=b:(a.setAttribute("data-tooltip",b),a.j=null),a.setAttribute("aria-label",c)):(a.j=null,a.removeAttribute("aria-label"));ax(Xe(a))}var bx={}; function cx(a){ug.call(this);this.va=a;this.ua=new Fj(this.Lv,0,this);Sf(this,this.ua);var b=mf();this.V=typeof b.MutationObserver==="function"?new b.MutationObserver(r(this.Xs,this)):null;a=a.g;this.ka(a,"mouseout mousedown click blur focusout keydown".split(" "),this.vs,!0);this.ka(a,["mouseover","focus","focusin"],this.vv,!0)}n(cx,ug);f=cx.prototype;f.wa=function(){ex(this);ug.prototype.wa.call(this)}; function fx(a,b){switch(b.type){case "mousedown":case "mouseover":case "mouseout":case "click":a.Ca=!1;break;case "keydown":a.Ca=!0}}f.vv=function(a){this.V&&this.V.disconnect();fx(this,a);var b=a.target;a=a.type=="focus"||a.type=="focusin";var c=this.g&&Cf(this.g.g,b);if(this.Ca||!a||c){this.Da=a;if(a=b&&b.getAttribute&&this.V)a=b.getAttribute("role")||null,a=rb(Yj,a);a&&(this.V.observe(b,{attributes:!0}),(a=bk(b))&&(b=a));this.o=b}else this.o=null;gx(this)}; f.vs=function(a){fx(this,a);var b=a.target;b=this.g&&Cf(this.g.g,b);if(a.type!="mousedown"&&a.type!="click"||!b)this.o=null,gx(this)};f.Xs=function(a){v(a,r(function(b){var c=bk(b.target);c&&b.attributeName=="aria-activedescendant"&&(this.o=c,gx(this))},this))};function gx(a){if(!(a.ua.isActive()&&a.i&&a.U)){ex(a);var b=a.U!=null?a.U:50;a.ua.start(a.i?b:300)}}function ex(a){a.ma&&(xj(a.ma),a.ma=0,a.i=null)} f.Lv=function(){if(!this.o)hx(this),this.U=this.i=null;else if(!(this.i&&this.g&&Cf(this.g.ha(),this.o))||this.i.getAttribute("data-tooltip-unhoverable")){var a=Mf(this.o,function(k){return k.getAttribute&&(k.getAttribute("data-tooltip-contained")||k.getAttribute("data-tooltip")||k.j)&&!k.getAttribute("data-tooltip-suspended")}),b=!1;this.i&&this.i!=a&&(hx(this),this.U=this.i=null,b=!0);if(!this.i&&a&&(this.i=a,!(a.getAttribute("data-tooltip-only-on-overflow")&&a.offsetWidth>=a.scrollWidth&&a.offsetHeight>= a.scrollHeight||this.Da&&"mouse"==a.getAttribute("data-tooltip-trigger")))){var c=Ic;if(a.getAttribute("data-tooltip-contained"))for(var d=df("jfk-tooltip-data",a),e=0;e=Dg(this.Ia,this.N))}if(b){if(this.Th(),this.Wb=null,b=this.ma)b.Wb=null}else Lu(this)==3&&this.ng();qx.oa.Bg.call(this,a)};f.Wk=function(){this.Wb!=this.ha()&&(this.Zh=!1,this.Wb=this.ha())};f.Qk=function(){return this.Zh?100:qx.oa.Qk.call(this)};function sx(a,b){a=new qx(a);a.Gl(De(Le,b.innerHTML));a.className="buy-tip-card";a.va=new Ag(5,5,5,5);a.Fi=!0;a.Kg=500;a.Dh=250};function tx(a,b){this.Db=a||200;this.ub=b||108;W.call(this)}u(tx,W);tx.prototype.Gb=function(){return this.Db};tx.prototype.wb=function(){return this.ub};function ux(a){Iu.call(this,a,void 0,void 0);this.Rn=!1;this.Fi=!0;this.Kg=500}n(ux,qx);ux.prototype.yj=function(a,b){b||(b=new Wr(a,9,!0));qx.prototype.yj.call(this,a,b)};ux.prototype.className="unified-hovercard";function vx(a,b,c){Rf.call(this);this.i=null;this.data=a;this.g=b;this.maxWidth=c||500}n(vx,Rf);vx.prototype.wa=function(){this.i&&this.i.dispose()};function wx(a){return a.i||(a.i=new ug(a))} vx.prototype.j=function(a){var b=B("DIV"),c=new R(this.data.Aa.Cg||this.data.Aa.fp);this.data.Aa.source&&S(c,"source",this.data.Aa.source);var d=this.data.kb();this.data.Aa.Fp&&(d+=": "+this.data.Aa.Fp);d=B("A",{},d);d.classList.add(this.g+"-title");Fc(d,c.toString());b.appendChild(d);a.appendChild(b);xx(this,a);this.data.Aa.Pl&&(c=new We.cw,b=B("DIV",this.g+"-snippet"),x(b,De(c,this.data.Aa.Pl+" ")),c=B("A",{},"more \u00bb"),c.classList.add(this.g+"-more-link"),Fc(c,this.data.Aa.Cg),b.appendChild(c), a.appendChild(b))}; function xx(a,b){var c="",d=B("DIV"),e=a.data.Aa.qk;if(!Wb(ld(e))){c=e.split(/\s*,\s*/g);e=c.length;if(!e)return;var g=B("SPAN","author"),h=e-1,k=qf(", ");v(c,function(l,m){var p=l?l.replace(yx,""):"";p=Yc(p);l=new R(Xc('/ebooks?output=ws2&as_brr=5&q=inauthor:"%s"',p));iv(l);p=B("A",{},p);Fc(p,l.toString());g.appendChild(p);m)|(<\/b>)/ig,Ax={VIEW_PAGES_PARTIAL:2,VIEW_PAGES_ALL:5,VIEW_PAGES_PARTIAL_FIXED:6,VIEW_PURCHASED:7,VIEW_GOOGLE_EDITIONS_PREVIEW:8};function Bx(){this.Aa={}}f=Bx.prototype;f.kb=function(){return this.Aa.title};f.Xb=function(){return this.Aa.Ul};f.Qd=function(){return this.Aa.Qd};f.dl=function(){return this.Aa.dl};f.Mf=function(){return this.Aa.Mf};f.Gh=function(){return this.Aa.Gh};function Cx(){this.g=[]}f=Cx.prototype;f.getId=function(){return this.yb};f.Ig=function(a){this.yb=a};f.kb=function(){return this.xc};f.wg=function(){return this.l};function Dx(a,b,c){Ex(a,b)||a.V==null||!a.j?c&&c(null):Fx(b,a.V.clone(),r(a.os,a,b,c||function(){}))}function Gx(a,b,c){Ex(a,b)&&a.ma!=null&&a.na?Fx(b,a.ma.clone(),r(a.Cs,a,b,c||function(){})):c&&c(null)}function Fx(a,b,c){S(b,"id",a);si(b,c,"POST")}f.os=function(a,b,c){var d=null;xi(c.target)&&(d=new Bx,d.Aa.Ul=a,this.g.push(d));b(d)}; f.Cs=function(a,b,c){var d=null;xi(c.target)&&(d=Ex(this,a),Hx(this,d));b(d)};function Hx(a,b){vb(a.g,function(c){return c.Xb()==b.Xb()})}function Ex(a,b){return pb(a.g,function(c){return c&&c.Xb()==b})};function Ix(a){this.Aa={};this.Aa.title=a.title;this.Aa.Fp=a.subtitle;this.Aa.qk=a.authors;this.Aa.fp=a.preview_url;this.Aa.Cg=a.info_url;this.Aa.lj=a.pub_date;this.Aa.So=a.num_pages;this.Aa.Qp=a.viewability;this.Aa.Mw=a.subject;this.Aa.Hp=a.thumbnail_url;this.Aa.Pl=a.snippet;this.Aa.Aw=a.list_price;this.Aa.vp=a.sale_price;this.Aa.Jw=a.sale_price_better;this.Aa.Gu=a.offer_price;this.Aa.wk=a.buy_url;this.Aa.ip=a.read_url;this.Aa.Yi=a.is_free_ebook||!1;this.Aa.Wi=a.in_my_ebooks||!1;this.Aa.Cw=a.my_ebooks_url|| "";this.Aa.Hw=a.rating_score||0;this.Aa.Dw=a.num_reviews||0;this.Aa.Qd=a.is_purchased||!1;this.Aa.Fh=a.is_ebook||!1;this.Aa.Qw=a.write_review_url||"";this.Aa.Ps=a.add_to_my_ebooks_url||"";this.Aa.av=a.preview_ebook_url||"";this.Aa.Iw=a.reviews_url||"";this.Aa.Dj=a.view_order_url||"";this.Aa.qw=a.add_to_my_ebooks_url;this.Aa.ns=a.add_to_my_ebooks_url_is_on_play||!1;this.Aa.Ui=a.has_flowing_text||!1;this.Aa.Vi=a.has_scanned_text||!1;var b=Vm(a.info_url);this.Aa.Ul=b;this.Aa.sw=a.canonical_atb_url|| "";this.Aa.dl=a.is_rentable||!1;this.Aa.Of=a.is_pre_order||!1;this.Aa.Yo=a.on_sale_date||"";this.Aa.Mf=a.is_pre_ordered||!1;this.Aa.zw=a.issue_volume_count||0;this.Aa.Gh=a.is_volume_cancelled||!1;this.Aa.rs=a.cancelled_reason||"0";switch(a.rental_state){case 1:this.Aa.nj=1;break;case 2:this.Aa.nj=2}this.Aa.mv=a.rental_end_utc||0}n(Ix,Bx);function Jx(a){this.g=[];this.Ig(a.id);this.o=a.owner_uid;this.xc=a.title;this.l=a.description;this.va=a.num_volumes;this.oe=a.access||"0";this.Ka=a.can_modify_metadata;this.U=a.predefined;this.na=a.can_remove_volumes;this.j=a.can_add_volumes;this.ua=a.can_only_add_ebooks||!1;this.V=new R(a.add_vol_base_url);this.ma=new R(a.del_vol_base_url);a.paused!==void 0&&(this.i=a.paused,this.N=a.pause_bookshelf_url);a.volumes&&(this.g=nb(a.volumes,function(b){return new Ix(b)}))}n(Jx,Cx);function Kx(){W.call(this);this.j=[];this.i=[]}u(Kx,W);function Lx(a){var b=new R(mf().location);b=new R(b);return a===parseInt(T(b,"as_coll"),10)}function Mx(a,b,c){Nx(a,b.getId())||(a=b.U?a.j:a.i,c?zb(a,void 0,0,b):a.push(b))}function Ox(a,b,c){var d=b.oe==1;a=new R(a);S(a,"cl_title",b.kb());S(a,"cl_mode",d?"public":"private");b="cl_des="+bd(b.wg());si(a,c,"POST",b)} Kx.prototype.N=function(a){a=a.target;if(xi(a)){a=new Jx(Ai(a));var b=Nx(this,a.getId());b.xc=a.kb();b.l=a.wg();b.oe=a.oe;b=new Uf("update",this);b.shelf=a;this.dispatchEvent(b)}};Kx.prototype.o=function(a,b){b=b.target;xi(b)&&(b=new Jx(Ai(b)),Mx(this,b,a),a=new Uf("add",this),a.shelf=b,this.dispatchEvent(a))};function Px(a,b){a.l=new R(b);S(a.l,"jscmd","ClCreate")}function Nx(a,b){return pb(Qx(a),function(c){return c.getId()==b})}function Qx(a){return Eb(a.j,a.i)};function Rx(a,b){var c=B("A",{},"View order");Fc(c,a);c.classList.add(b);return c};function Sx(a,b,c){vx.call(this,a,b,c);T(new R(this.data.Aa.Cg),"dapp")}n(Sx,vx); Sx.prototype.render=function(a){tf(a);var b=B("DIV",this.g),c=B("DIV",this.g+"-meta");this.j(c);var d=B("DIV",this.data.Aa.Fh?this.g+"-footer":this.g+"-footer-nonebook"),e=B("DIV",this.g+"-footer-inner");if(this.data.Aa.Fh)if(this.data.Gh()&&Lx(1))Tx(this,e);else if(this.data.Aa.Of&&!this.data.Qd()||this.data.Mf()){var g=B("DIV",this.g+"-pre-order-date");g.textContent="Available on: "+this.data.Aa.Yo;e.appendChild(g);this.data.Mf()&&Lx(1)&&Tx(this,e)}else if(this.data.Qd()&&Lx(1))Ux(this,e),Tx(this, e);else{Ux(this,e);g=!this.data.Qd()&&!this.data.Aa.Yi;var h=this.data.Aa.Yi&&!this.data.Aa.Wi;if(g||h){g=B("SPAN",{"class":this.g+"-footer-inner-right"});if(h=this.data.Aa.av||this.data.Aa.ip){for(var k=h.search(Qh),l=0,m,p=[];(m=Ph(h,l,"source",k))>=0;)p.push(h.substring(l,m)),l=Math.min(h.indexOf("&",m)+1||k,k);p.push(h.slice(l));h=p.join("").replace(Sh,"$1");h=Oh(h,"source","ebookstore")}h&&(k=B("A",{id:"unified-hovercard-preview-link"},"preview it"),Fc(k,h),g.appendChild(k));e.appendChild(g)}}d.appendChild(e); b.appendChild(c);b.appendChild(d);a.appendChild(b);M(a).width>this.maxWidth&&K(a,this.maxWidth,"")}; Sx.prototype.j=function(a){if(!(this.data.Qd()||this.data.Mf()||this.data.Gh())&&this.data.Aa.Dj&&Lx(1)){var b=B("IMG",{src:"/googlebooks/images/purchase_error.gif","class":this.g+"-error-icon"});b=B("DIV",this.g+"-card-error",b,"Credit card declined:");if(this.data.Aa.Dj){var c=Rx(this.data.Aa.Dj,"primary"),d=B("SPAN");d.innerText=" ";b.appendChild(d);b.appendChild(c)}a.appendChild(b)}vx.prototype.j.call(this,a);b=B("DIV",this.g+"-book-options");if(this.data.Aa.Fh){if(this.data.Aa.Yi)this.data.Aa.Wi? Vx(this,b):zx(this,b,"Read eBook",this.data.Aa.Ps,!this.data.Aa.ns,void 0,"unified-hovercard-free-btn");else if(this.data.Mf()){var e=B("SPAN",this.g+"-pre-ordered","Pre-ordered");b.appendChild(e)}else this.data.Gh()&&Lx(1)?(e=B("DIV",this.g+"-cancelled"),c=this.data.Aa.rs,c==0?G(e,"Cancelled - by customer request"):c==1?G(e,"Cancelled - problem with eBook"):c==2?G(e,"Cancelled - price change"):c==3?G(e,"Cancelled - publisher cancellation"):G(e,"Cancelled"),b.appendChild(e)):this.data.Qd()||this.data.Aa.Wi? !this.data.Qd()&&this.data.Aa.Wi?Wx(this,b):this.data.Qd()&&Vx(this,b):Wx(this,b);Lx(7)&&(e=B("SPAN",this.g+"-offline-remove-options"),c=B("SPAN",{id:"unified-hovercard-remove-from-ebooks","class":this.g+"-fake-link"},"Remove from My eBooks"),c.id="hovercard-remove-from-my-ebooks",e.appendChild(c),b.appendChild(e))}else{c=this.data.Aa.fp;a:{for(e in Ax)if(Ax[e]==this.data.Aa.Qp){e=!0;break a}e=!1}e&&!Wb(c)?zx(this,b,"Preview",c,void 0,void 0,"unified-hovercard-preview-sample"):zx(this,b,"Preview", c,!1,!0,"unified-hovercard-preview-sample")}a.appendChild(b)};function Tx(a,b){var c=B("DIV",{id:"unified-hovercard-purchased-shelf-links","class":a.g+"-order-links-container"}),d=a.data.Aa.Dj;d&&(d=Rx(d,""),c.appendChild(d));a.data.Mf()||(d=B("DIV",{id:"unified-hovercard-delete-forever","class":a.g+"-footer-fake-link"},"Delete forever"),O(d,a.g+"-footer-action-link"),d.id="hovercard-delete-forever",c.appendChild(d));b.appendChild(c)} function Wx(a,b){a.data.Aa.Of&&!a.data.Qd()?zx(a,b,"Pre-order eBook - "+a.data.Aa.vp,a.data.Aa.wk,void 0,void 0,"unified-hovercard-buy-btn"):a.data.dl()?zx(a,b,"EBOOK FROM "+a.data.Aa.Gu,a.data.Aa.wk,void 0,void 0,"unified-hovercard-buy-btn"):zx(a,b,"Buy eBook - "+a.data.Aa.vp,a.data.Aa.wk,void 0,void 0,"unified-hovercard-buy-btn")}function Vx(a,b){zx(a,b,"Read now",a.data.Aa.ip,void 0,void 0,"unified-hovercard-read-now")} function Ux(a,b){var c=B("DIV",a.g+"-supported-devices"),d=a.g+"-device-type",e=a.g+"-device-supported",g=a.g+"-device-not-supported",h=B("SPAN",d,"Web"),k=B("SPAN",d,"Tablet / iPad"),l=B("SPAN",d,"eReader");d=B("SPAN",d,"Smartphone");var m=B("SPAN","goog-inline-block"),p=B("SPAN","goog-inline-block"),y=B("SPAN","goog-inline-block"),D=B("SPAN","goog-inline-block");a.data.Aa.Ui?(O(m,e),O(p,e),O(y,e),O(D,e)):(a.data.Aa.Vi?(O(m,e),O(p,e)):(O(m,g),O(p,g)),O(y,g),O(D,g));c.appendChild(m);c.appendChild(h); c.appendChild(p);c.appendChild(k);c.appendChild(y);c.appendChild(l);c.appendChild(D);c.appendChild(d);b.appendChild(c)};function Xx(a,b,c){ux.call(this,a);this.Fb=yj();this.j=this.Ca=this.o=null;this.Lb=b;this.i=null;this.Ob=!!c;this.render(b);Yx(this)}n(Xx,ux);Xx.prototype.wa=function(){wx(this.i).dispose();E(this.ha())};Xx.prototype.Ih=function(a,b){ux.prototype.Ih.call(this,a,b);this.isVisible()&&(this.ol=this.Fb?new Ag(0,-2,0,0):new Ag(0,0,0,-2),this.isVisible()&&this.Xf(),this.o=this.g,Zx(this))}; Xx.prototype.render=function(a){this.i&&(this.i.dispose(),this.j=this.Ca=null);this.i=new Sx(a,this.className,435,this.Ob);this.i.render(this.ha());Yx(this);this.isVisible()&&Zx(this)}; function Zx(a){var b=C("DIV"),c=C("DIV");var d=ih(a.o||null);var e=ih(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=Ig(e,d);h||(h=new Eg(d.left,0,d.width,0));d=a.Fb?e.left+e.width-h.left-(h.width/2+12):h.left-e.left+(h.width/2-12);e={x:d>0?d:0,y:e.height-2,su:g}}else e=null;g=a.Fb?"marginRight":"marginLeft";J(c,g,e.x+"px");J(b,g,e.x-1+"px");O(a.ha(),a.className+"-tooltip");e.su?(J(c,"bottom",e.y+"px"),J(b,"bottom", e.y+1+"px"),O(c,a.className+"-arrow-up"),O(b,a.className+"-arrow-up-border")):(J(c,"top",e.y+"px"),J(b,"top",e.y+1+"px"),a.Lb.Aa.Fh||O(c,a.className+"-nofooter"),O(c,a.className+"-arrow-down"),O(b,a.className+"-arrow-down-border"));a.j?xf(b,a.j):a.ha().appendChild(b);a.Ca?xf(c,a.Ca):a.ha().appendChild(c);a.Ca=c;a.j=b} Xx.prototype.kc=function(a){var b=a.target||null;if(b){b.nodeType==3&&(b=b.parentNode);switch(b.id){case "hovercard-remove-from-my-ebooks":a.preventDefault();var c="c";break;case "hovercard-save-sample-for-later":case "hovercard-add-to-my-ebooks":a.preventDefault();c="a";break;case "hovercard-delete-forever":a.preventDefault();c="b";break;default:b.href&&(c="f",a.type=="touchstart"&&Vc(window.location,b.href))}c&&this.dispatchEvent(new Uf(c,this))}}; function Yx(a){var b=hk||ik?"touchstart":"click";xg(wx(a.i),a.ha(),b,a.kc,a)};function $x(a,b,c){tx.call(this,b);this.i=a;this.j=null;this.o=!1;if(c==(1).toString()||c==(7).toString())this.o=!0}u($x,tx);var ay=new Q; $x.prototype.Oc=function(a){var b=B("A",{className:"slider-link goog-inline-block"});K(b,"",this.Gb());var c=new R(this.i.Aa.Cg);this.i.Aa.source?S(c,"source",this.i.Aa.source):S(c,"source","gbs_slider_thumb");gi(c,"num");Fc(b,c.toString());a.appendChild(b);this.j=C("IMG");this.j.alt="";this.g.jf(this.j,"load",r(this.ma,this));ay.dispatchEvent("start");(a=this.i.Aa.Hp)?(a=new R(a),S(a,"h",this.Gb()),S(a,"stbn",1),gi(a,"edge"),this.j.src=a.toString()):this.j.src="/googlebooks/images/no_cover_thumb.gif"; K(this.j,"",this.Gb());b.appendChild(this.j);this.o&&this.i.Aa.nj==2?(this.l=B("SPAN",["bookcard-badge","bookcard-sample-label"],"Expired"),b.appendChild(this.l)):this.o&&this.i.Aa.nj==1?(a=this.i,a.Aa.nj==1?(a=a.Aa.mv-cb()/1E3,a=Math.round(a/3600),c=Math.round(a/24),a=a<=1?"Expiring soon":a<=48?a+" hours":c+" days"):a="",this.l=B("SPAN",["bookcard-badge","bookcard-sample-label"],a),b.appendChild(this.l)):!this.o||this.i.Qd()||this.i.Aa.Yi||(this.l=B("SPAN",["bookcard-badge","bookcard-sample-label"], "Sample"),b.appendChild(this.l));jg(b,"mouseover",this.na.bind(this,b))};$x.prototype.ma=function(){this.dispatchEvent("render");ay.dispatchEvent("complete");this.l&&gh(this.l,M(this.j).width)};$x.prototype.na=function(a,b){(new Xx(a,this.i)).Be(b)};function by(a,b,c){$x.call(this,a,b-40,c);this.N=B("DIV","slider-annotation");this.U=!1}n(by,$x);by.prototype.Oc=function(a){jg(this,"render",r(this.ua,this));$x.prototype.Oc.call(this,a);a.appendChild(this.N)};by.prototype.ua=function(a){if(!this.U){a.stopPropagation();a=this.N;var b=this.V();a.appendChild(b);this.U=!0;this.dispatchEvent("render")}};function cy(a,b,c){by.call(this,a,b,c)}n(cy,by);cy.prototype.Oc=function(a){by.prototype.Oc.call(this,a)};cy.prototype.V=function(){var a=this.i,b=C("DIV"),c=B("A",{className:"slider-annotation-title"},qf(a.kb()));Fc(c,a.Aa.Cg);b.appendChild(c);if(a=a.Aa.qk)a=B("DIV","slider-annotation-author",qf(a)),b.appendChild(a);K(b,M(this.j).width+5,"");return b};function dy(){this.g=ey;this.Ng=5E3}var fy=0;dy.prototype.send=function(a,b,c,d){if(a){var e={};for(g in a)e[g]=a[g];a=e}else a={};d=d||"_"+(fy++).toString(36)+Date.now().toString(36);e="_callbacks___"+d;b&&(q[e]=gy(d,b),a.callback=e);b={timeout:this.Ng,us:!0};var g=this.g;e=new Map(Object.entries(a));g=rc(g).toString();var h=g.split(/[?#]/),k=/[?]/.test(g)?"?"+h[1]:"";e=Pe(h[0],k,/[#]/.test(g)?"#"+(k?h[2]:h[1]):"",e);b=im(e,b);dm(b,null,hy(d,a,c));return{yb:d,In:b}}; dy.prototype.cancel=function(a){a&&(a.In&&a.In.cancel(),a.yb&&iy(a.yb,!1))};function hy(a,b,c){return function(){iy(a,!1);c&&c(b)}}function gy(a,b){return function(c){iy(a,!0);b.apply(void 0,arguments)}}function iy(a,b){a="_callbacks___"+a;if(q[a])if(b)try{delete q[a]}catch(c){q[a]=void 0}else q[a]=Ei};function jy(a,b,c){Q.call(this);this.V=a;this.na=c;this.j=b;I(b,["hilite","select","canceldismiss","dismiss"],this.handleEvent,!1,this);this.N=null;this.i=[];this.l=-1;this.g=0;this.o=this.U=null;this.va={}}u(jy,Q);f=jy.prototype;f.Qj=!0;f.mk=!1;f.vd=function(){return this.j}; f.handleEvent=function(a){var b=this.V;if(a.target==this.j)switch(a.type){case "hilite":this.De(a.rf);break;case "select":var c=!1;if(typeof a.rf==="number"){a=a.rf;var d=this.i[ky(this,a)];c=!!d&&b.el&&b.el(d);d&&!c&&this.l!=a&&this.De(a)}c||this.Qf();break;case "canceldismiss":ly(this);break;case "dismiss":my(this)}};f.ld=function(){return this.j.isVisible()}; function ny(a){for(var b=a.g+a.i.length-1,c=a.l,d=0;d=a.g&&c=0)&&d.length!=0&&this.N&&(b>=0?this.De(this.g+b):ny(this));this.dispatchEvent("suggestionsupdate")};function ky(a,b){b-=a.g;return b<0||b>=a.i.length?-1:b}f.update=function(a){this.na.update(a)};function py(a){var b=0,c=0;ry(a)&&(b=a.selectionStart,c=-1);return[b,c]}function ry(a){try{return typeof a.selectionStart=="number"}catch(b){return!1}};function sy(a,b,c,d){Rf.call(this);d=d||150;this.j=c!=null?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.ma=new RegExp("\\s*["+this.o+"]$");this.U=b||"";this.va=this.j;this.Ta=d>0?new vj(d):null;this.i=new ug(this);this.N=new ug(this);this.l=new Uq;this.V=-1}u(sy,Rf);f=sy.prototype;f.Ub=null;f.ll="";f.vf=!1;f.Dl=!1;f.Bb=function(){return this.Ub.value};f.wc=function(a){this.Ub.value=a}; function ty(a,b){Bf(b)&&(Zj(b,"combobox"),X(b,"autocomplete","list"));a.i.ka(b,"focus",a.xm);a.i.ka(b,"blur",a.Jq);a.Ub||(a.N.ka(b,"keydown",a.Qu),Bf(b)&&Nf(Ze(b))==b&&uy(a,b))}f.Iq=function(a){for(var b=0;bb.g)c--;else{b.mk&&c==b.g&&b.De(-1);break}if(b.De(c))break a}a.preventDefault();return!0}break;case 9:if(!this.g.ld()||a.shiftKey)this.g.ve();else if(this.update(),this.g.Qf()&&this.va)return a.preventDefault(),!0;break;case 13:if(this.g.ld()){if(this.update(),this.g.Qf())return a.preventDefault(), a.stopPropagation(),!0}else this.g.ve();break;case 27:if(this.g.ld())return this.g.ve(),a.preventDefault(),a.stopPropagation(),!0;break;case 229:if(!this.vf)return this.vf||(this.i.ka(this.Ub,"keyup",this.Uo),this.i.ka(this.Ub,"keypress",this.To),this.vf=!0),!0}(b=this.j&&a.charCode&&this.o.indexOf(String.fromCharCode(a.charCode))!=-1)&&this.update();b&&this.g.Qf()?(a.preventDefault(),a=!0):a=!1;return a};f.yt=function(){return!1};f.xm=function(a){uy(this,a.target||null)}; function uy(a,b){zg(a.N);a.g&&ly(a.g);b!=a.Ub&&(a.Ub=b,a.Ta&&(a.Ta.start(),a.i.ka(a.Ta,"tick",a.zm)),a.ll=a.Bb(),a.l.attach(a.Ub),a.i.ka(a.l,"key",a.ym),a.i.ka(a.Ub,"mousedown",a.Vo))}f.Jq=function(){this.Ub&&(this.i.Va(this.l,"key",this.ym),Yq(this.l),this.i.Va(this.Ub,"keyup",this.yt),this.i.Va(this.Ub,"mousedown",this.Vo),this.vf&&vy(this),this.Ub=null,this.Ta&&(this.Ta.stop(),this.i.Va(this.Ta,"tick",this.zm)),this.g&&my(this.g))};f.zm=function(){this.update()};f.Qu=function(a){this.xm(a)}; f.ym=function(a){this.V=a.keyCode;this.g&&this.Pc(a)};f.To=function(){this.vf&&this.V!=229&&vy(this)};f.Uo=function(a){this.vf&&(a.keyCode==13||a.keyCode==77&&a.ctrlKey)&&vy(this)};f.Vo=function(){};function vy(a){a.vf&&(a.vf=!1,a.i.Va(a.Ub,"keypress",a.To),a.i.Va(a.Ub,"keyup",a.Uo))} f.update=function(a){if(this.Ub&&(a||this.Bb()!=this.ll)){if(a||!this.Dl){a=py(this.Ub)[0];var b=this.Bb();a=qy(this,b)[oy(this,b,a)];a=this.na?String(a).replace(this.na,""):a;this.g&&(this.g.U=this.Ub,b=this.g,this.Bb(),b.N!=a&&(b.N=a,b.V.mp(b.N,10,r(b.xu,b)),ly(b)))}this.ll=this.Bb()}this.Dl=!1};function oy(a,b,c){a=qy(a,b);if(c==b.length)return a.length-1;for(var d=b=0,e=0;e=0&&b=0&&b=0&&zh(a.o[a.V],["ac-active","active"]),a.V=b,d&&(xh(d,["ac-active","active"]),a.j&&ck(a.j,d),$g(d,a.ya)))}f.De=function(a){if(a==-1)zy(this,-1);else for(var b=0;b1&&(d=c.slice(1));c=Cy(c);if(c.length!=0){var e=b.nodeValue,g=new RegExp("\\b(?:"+c+")","gi");c=[];for(var h=0,k=g.exec(e),l=0;k;)l++,c.push(e.substring(h,k.index)),c.push(e.substring(k.index,g.lastIndex)),h=g.lastIndex,k=g.exec(e);c.push(e.substring(h));if(c.length>1){for(d=0;d<1;d++)e=2*d,b.nodeValue=c[e],g=Of(a.g,"B"),g.className=a.Ia,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.Ca=!0}else d&&By(a,b,d)}}else for(b=b.firstChild;b;)d=b.nextSibling,By(a,b,c),b=d}function Cy(a){var b="";if(!a)return b;Array.isArray(a)&&(a=a.filter(function(c){return!Wb(ld(c))}));Array.isArray(a)?b=a.length>0?jd(a[0]):"":/^\W/.test(a)||(b=jd(a));return b}function Dy(a,b){for(;b&&b!=a.ya&&!wh(b,"ac-row");)b=b.parentNode;return b?a.o.indexOf(b):-1} f.Am=function(a){var b=Dy(this,a.target);b>=0&&this.dispatchEvent({type:"select",rf:this.i[b].id});a.stopPropagation()};f.Bm=function(a){a.stopPropagation();a.preventDefault()};f.Cm=function(a){a=Dy(this,a.target);a>=0&&!(cb()-this.va<300)&&this.dispatchEvent({type:"hilite",rf:this.i[a].id})};var Ey=sa(["//suggestqueries.google.com/complete/search"]);function Fy(a,b,c,d){this.ua=a;this.ma=null;this.Ia=c||null;this.Da=typeof b==="boolean"?b:!0;this.Ca=d||0;b=new Gy;c=new Hy(this.Ia||a,this.Ca);c.ua=!0;d=new sy(null,null,!1);jy.call(this,b,c,d);d.g=this;d.Iq(a);this.U=a;this.Qj=!1;this.mk=!0;I(this,"update",r(this.Ha,this))}u(Fy,jy);Fy.prototype.Qf=function(){this.Ja=this.ua.value;Fy.oa.Qf.call(this);return!1}; Fy.prototype.Ha=function(a){a.rf&&(a=this.ua.form,this.ma||(this.ma=B("INPUT",{type:"hidden",name:"oq"}),a.appendChild(this.ma)),this.ma.value=this.Ja,this.Da&&a.submit())};function Gy(){}var ey=Oe(Ey);Gy.prototype.mp=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 dy;this.i.send(a,c)};Gy.prototype.g=function(a,b){var c=Array.prototype.map.call(b[1],function(d){return d[0]});a(b[0],c)};function Hy(a,b){wy.call(this);this.Ha=a;this.Ja=b||0} u(Hy,wy);Hy.prototype.Rj=function(){Hy.oa.Rj.call(this);var a=0,b=A("gbfwa");b||(b=ef("gbqfwa"));b&&(a=b.offsetTop+b.offsetHeight-1);Array.prototype.forEach.call(bf("div","ac-renderer"),function(c){a&&J(c,"top",a+"px");J(c,"width",M(this.Ha).width-2+"px");J(c,"left",parseInt(c.style.left,10)+this.Ja+"px")},this)};function Iy(a,b,c,d,e){W.call(this);this.U=a;this.N=b;this.ua=e;this.Db=typeof d==="number"?d:this.N?200:80;this.N||O(this.U,"slider-small");this.V=[];this.j=C("A");this.j.textContent=yj()?"\u203a":"\u2039";this.j.setAttribute("title","Scroll left");nh(this.j,!0);this.U.appendChild(this.j);this.i=C("div");O(this.i,"slider-drawables");this.U.appendChild(this.i);this.o=C("A");this.o.textContent=yj()?"\u2039":"\u203a";this.o.setAttribute("title","Scroll right");nh(this.o,!0);this.U.appendChild(this.o); this.g.ka(this.j,"click",this.ul.bind(this,-.75));this.g.ka(this.o,"click",this.ul.bind(this,.75));this.ai();this.g.ka(this.j,"click",this.ul.bind(this,-.75));this.resize();this.ma=0;this.na=Bd()>=8&&!ce("9")&&yj();c&&Jy(this,c)}u(Iy,W);function Ky(a){var b=Math.ceil(Ly(a)*1.25);b=Math.min(a.V.length,a.ma+b);v(a.V.slice(a.ma,b),r(a.Hs,a));a.ai();a.ma=b;b>=a.V.length&&a.dispatchEvent("render")}f=Iy.prototype; f.Hs=function(a){var b=B("DIV",{"class":"goog-inline-block slider-loading"});this.i.appendChild(b);var c=B("DIV",{"class":"goog-inline-block slider-drawable"});N(c,!1);this.i.appendChild(c);this.g.jf(a,"render",this.Js.bind(this,b,c));a.Oc(c)};f.Js=function(a,b){E(a);this.ai();N(b,!0)};function Jy(a,b){b=b.map(function(c){return this.N?new cy(c,this.Db):new $x(c,this.Db,this.ua)},a);My(a,b)}function My(a,b){yb(a.V,b);Ky(a)} f.ul=function(a){(yj()?a<0:a>0)&&Ky(this);a*=this.na?-1:1;a*=M(this.i).width+20;this.l&&(this.l.dispose(),this.l=null);this.l=new Mj([this.i.scrollLeft,0],[this.i.scrollLeft+a,0],500,Pj);I(this.l,"animate",this.Kq.bind(this));I(this.l,"end",this.ai.bind(this));this.l.play()};f.Kq=function(a){a=a.coords.map(Math.round);this.i.scrollLeft=a[0]}; f.ai=function(){if(Ld&&yj()||this.na){var a=this.i.scrollLeft<=(this.i.scrollWidth-M(this.i).width)*-1;var b=this.i.scrollLeft==0}else a=this.i.scrollLeft==0,b=this.i.scrollLeft>=this.i.scrollWidth-M(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.ai()}; function Ly(a){var b=a.N?110:50;return Math.ceil(M(a.i).width/b)};function Ny(a,b,c){W.call(this);this.metadata=a;this.source=b?b:"gbs_bookshelf_slider";this.U=0;this.l=new Bh;this.na=this.l.getSize();this.V="";this.ua=typeof c==="boolean"?!c:!1;jg(this.l,"resize",r(this.Dm,this))}n(Ny,W);f=Ny.prototype;f.Dm=function(){this.l.getSize().width>this.na.width?this.kh():jg(this.l,"resize",r(this.Dm,this))};f.render=function(a){this.o=a;this.i=this.Rk(a);this.g.ka(this.i,"render",r(this.kh,this))};f.Rk=function(){return new Iy(this.o,!0,void 0,void 0,this.metadata.getId())}; f.kh=function(){this.i.resize();var a=Math.ceil(Ly(this.i)*1.25)+1,b=this.Xe(this.U,a);b&&(this.U+=a,si(b,r(this.Vt,this)))};f.ug=ba(12);f.Vt=function(a){a=a.target;if(xi(a)){if((a=(new Jx(Ai(a))).g)&&a.length){var b=Vm(a[a.length-1].Aa.Cg);this.V!=b&&(this.V=b,My(this.i,Oy(this,a)));(a=Lf(this.ha()))&&jh(a,1)}else this.i.ma==0&&this.lp();this.dispatchEvent("success")}}; function Oy(a,b){return a.Bk(b).map(function(c){return this.i.N?new cy(c,200,this.metadata.getId()):new $x(c,80,this.metadata.getId())},a)}f.lp=function(){};f.ha=function(){return this.o};f.Bk=function(a){return this.source?a.map(function(b){b.Aa.source=this.source;return b},this):a};function Py(a,b,c){ov.call(this,a,b,c);this.Qh(!0)}u(Py,ov);nr("goog-checkbox-menuitem",function(){return new Py(null)});function Qy(a){Py.call(this,ed(a.kb()),a.getId());this.i=a}n(Qy,Py);Qy.prototype.Pb=function(a){Py.prototype.Pb.call(this,a);if(this.i.oe){var b=(a=this.i.oe==1)?"Public bookshelf":"Private bookshelf";a=B("IMG",{src:"/googlebooks/images/sharing_"+(a?"public":"private")+".gif",alt:b,title:b,style:"padding-top:2px;padding-left:8px;float:"+(yj()?"left":"right")});a=B("DIV","goog-menuitem-accel",a,qf(String(this.i.va)));wf(this.Mb(),a,1)}};function Ry(a,b,c){c=c===void 0?!1:c;yv.call(this);this.j=a;this.o=b;this.V=c}n(Ry,yv);f=Ry.prototype;f.Ra=function(){yv.prototype.Ra.call(this);Qx(this.o).forEach(this.ks,this)};f.La=function(){yv.prototype.La.call(this);this.ha().style.maxHeight="200px";this.ha().style.overflowY="scroll";var a=Z(this);a.ka(this.ha(),"mouseout",this.Lq);a.ka(this.ha(),"scroll",this.Mq)};f.Lq=function(a){Cf(this.ha(),a.relatedTarget)||this.Ba(!1)}; f.vt=function(a){var b=a.target,c=b.i,d=this.j.Xb();hr(b,16)?Dx(c,d):Gx(c,d);this.dispatchEvent("g");a.stopPropagation()};f.Mq=function(a){a.stopPropagation()};f.ks=function(a){var b=!Wb(ld(a.kb())),c=a.j&&(!a.ua||this.j.ma),d=!!Ex(a,this.j.Xb());b&&(c||d)&&(b=new Qy(a),b.Sf(d),b.tb(this.o.ml!=a.getId()||this.V),this.ab(b,!0),Z(this).ka(b,"action",this.vt))};function Sy(a){var b=[];Ok(a,function(c){c instanceof Qy&&hr(c,16)&&b.push(c.i)});return b};function Ty(a,b,c){kx.call(this,null,null,c?5:0);this.i=new Ry(a,b);this.i.ee(this);Sf(this,this.i);this.o=new Image(16,16);this.o.src="/googlebooks/images/my_library_logo.png";this.Yb(64,!0)}n(Ty,kx);f=Ty.prototype;f.Ra=function(){kx.prototype.Ra.call(this);O(this.ha(),"add-to-library")}; function Uy(a){a.i.Ua||a.i.render();var b=Sy(a.i);switch(b.length){case 0:var c="Add to my library";break;case 1:c="Added to "+b[0].kb();break;default:c="Added to "+b.length+" shelves"}b.length>0&&(c=px(a.o,c));tr(a,c)}f.Sb=function(a){this.xk();kx.prototype.Sb.call(this,a);this.i.Ua||this.i.render();if(a){a=this.i;var b=this.ha();zv(a,new pv(b,8,!0),void 0,null)}else this.i.lb()}; f.La=function(){kx.prototype.La.call(this);var a=Z(this);a.ka(this,"enter",this.Gv);a.ka(this,"leave",this.xk);a.ka(this,"action",this.Nq);a.ka(this.i,"g",this.Ct);Uy(this)};f.Ct=function(){Uy(this)};f.Nq=function(){this.Sb(!0)};f.Gv=function(){this.xk();this.Zo=U(r(this.Sb,this,!0),200)};f.xk=function(){xj(this.Zo)};f.Zo=null;function Vy(a){Kx.call(this);a!=null&&a.bookshelf&&v(a.bookshelf,function(b){Mx(this,new Jx(b))},this)}n(Vy,Kx);function Wy(a,b,c){var d=new R("/books");iv(d);S(d,"op","cls_metadata");S(d,"jscmd","ClsMetadata");var e=T(new R(window.location),"uid");e&&S(d,"uid",e);b&&S(d,"uid",b);Kn(d.toString(),t(Xy,a,c))}function Yy(a,b){var c=new Vy(b);a&&a.forEach(function(d){Zy(d.Xb(),d.Ma,c)});return c}function Zy(a,b,c){b.forEach(function(d){var e=new Bx;e.Aa.Ul=a;(d=Nx(c,String(d)))&&d.g.push(e)})}function Xy(a,b,c){a(Yy(b,c))};function $y(a){return a.split(az).filter(function(b){return b.length>0})} var bz=/\s/,cz=/[ -]/,az=/[+,;]/,dz=/-?"[^"]+"|[^\s"]+/g,ez=RegExp('["\\u201C\\u201D\\u201E\\u201F\\u275D\\u275E\\u301D-\\u301F\\uFF02]',"g"),fz=RegExp("[,!-%'-/:-@\\[-^`{-~\\xA1\\xAB\\xBB\\xB7\\xBF\\u05F3\\u05F4\\u200B\\u2010-\\u2014\\u2018-\\u201A\\u2026\\u2039\\u203A\\u2060\\u3001\\u3002\\u3008-\\u3011\\u30FB\\uFF01-\\uFF05\\uFF07-\\uFF0F\\uFF1A-\\uFF20\\uFF3B-\\uFF3E\\uFF40\\uFF5B-\\uFF65,\"\\u201C\\u201D\\u201E\\u201F\\u275D\\u275E\\u301D-\\u301F\\uFF02,]"),gz=RegExp("^[\\s\\xA0!-%'-/:-@\\[-^`{-~\\xA1\\xAB\\xBB\\xB7\\xBF\\u05F3\\u05F4\\u200B\\u2010-\\u2014\\u2018-\\u201A\\u2026\\u2039\\u203A\\u2060\\u3001\\u3002\\u3008-\\u3011\\u30FB\\uFF01-\\uFF05\\uFF07-\\uFF0F\\uFF1A-\\uFF20\\uFF3B-\\uFF3E\\uFF40\\uFF5B-\\uFF65]+|[\\s\\xA0!-%'-/:-@\\[-^`{-~\\xA1\\xAB\\xBB\\xB7\\xBF\\u05F3\\u05F4\\u200B\\u2010-\\u2014\\u2018-\\u201A\\u2026\\u2039\\u203A\\u2060\\u3001\\u3002\\u3008-\\u3011\\u30FB\\uFF01-\\uFF05\\uFF07-\\uFF0F\\uFF1A-\\uFF20\\uFF3B-\\uFF3E\\uFF40\\uFF5B-\\uFF65]+$", "g");function hz(a){return Jd?a.toLowerCase():a.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").normalize("NFC")};function iz(a){var b={};jz(a).forEach(function(c){for(var d=b,e=0;el.endOffset)l={startOffset:e.startOffset, Lg:e.Lg,endOffset:l.endOffset,jh:l.jh};e=hb(d)}d.push(l);e=l}k.complete&&ub(g,h)}}function nz(a,b){this.startOffset=a;this.Lg=void 0;this.endOffset=a;this.jh=void 0;this.complete=!1;this.g=b};function oz(a,b){var c=void 0;c=c===void 0?Infinity:c;b=new lz(b);c=c===void 0?Infinity:c;var d=d===void 0?[]:d;var e=" ",g,h=hz(a);for(g=0;g=c&&(d.length=c);return d};function pz(a){var b=iz(a);a=qz();Array.prototype.forEach.call(a,function(c){rz(b,c)})}function qz(){var a=[],b=xb(df("patent-text")),c=ef("patent-title");for(c&&b.push(c);c=b.pop();)c.nodeType==3?a.push(c):yb(b,c.childNodes);return a} function rz(a,b){var c=Kf(b);a=oz(c,a);if(a.length){var d=[],e=0;a.forEach(function(g){d.push(c.substring(e,g.startOffset),ne("span",{"class":"patent-text-highlight"},c.substring(g.startOffset,g.endOffset)));e=g.endOffset});d.push(c.substring(e));a=C("span");x(a,he(d));xf(a,b)}};function sz(){ov.call(this,"Turn off highlighting");var a=Rh("dq")||Rh("q");a&&pz(a);this.Qb=!0}n(sz,ov);sz.prototype.La=function(){ov.prototype.La.call(this);Z(this).ka(this,"action",this.i)};sz.prototype.i=function(){this.Qb=!this.Qb;P(window.document.body,"patent-highlight-disabled",!this.Qb);tr(this,this.Qb?"Turn off highlighting":"Turn on highlighting")};function tz(){}u(tz,sv);Ua(tz);tz.prototype.Mc=function(a){return a.g.Pa("DIV",br(this,a).join(" ")+" goog-inline-block","\u00a0")};tz.prototype.Tb=function(a,b){b=tz.oa.Tb.call(this,a,b);O(b,"goog-inline-block");return b};tz.prototype.Sa=function(){return"goog-toolbar-separator"};function uz(){}u(uz,jr);Ua(uz);f=uz.prototype;f.Mc=function(a){var b=br(this,a);b=a.g.Pa("DIV","goog-inline-block "+b.join(" "),this.Ei(a.Ac(),a.g));this.tf(b,a.af());return b};f.eg=function(){return"button"};f.Ic=function(a){return a&&a.firstChild&&a.firstChild.firstChild};f.Ei=function(a,b){return b.Pa("DIV","goog-inline-block "+(this.Sa()+"-outer-box"),b.Pa("DIV","goog-inline-block "+(this.Sa()+"-inner-box"),a))};f.li=function(a){return a.tagName=="DIV"}; f.Tb=function(a,b){vz(b,!0);vz(b,!1);a:{var c=a.g.Zn(b);var d=this.Sa()+"-outer-box";if(c&&wh(c,d)&&(c=a.g.Zn(c),d=this.Sa()+"-inner-box",c&&wh(c,d))){c=!0;break a}c=!1}c||b.appendChild(this.Ei(b.childNodes,a.g));xh(b,["goog-inline-block",this.Sa()]);return uz.oa.Tb.call(this,a,b)};f.Sa=function(){return"goog-custom-button"}; function vz(a,b){if(a)for(var c=b?a.firstChild:a.lastChild,d;c&&c.parentNode==a;){d=b?c.nextSibling:c.previousSibling;if(c.nodeType==3){var e=c.nodeValue;if(Xb(e)=="")a.removeChild(c);else{c.nodeValue=b?e.replace(/^[\s\xa0]+/,""):e.replace(/[\s\xa0]+$/,"");break}}else break;c=d}};function wz(){}u(wz,uz);Ua(wz);wz.prototype.Sa=function(){return"goog-toolbar-button"};function xz(){this.g="toolbar"}u(xz,wt);Ua(xz);xz.prototype.rh=function(a){return a.tagName=="HR"?new tv(tz.Nb()):xz.oa.rh.call(this,a)};xz.prototype.ig=function(){return"goog-toolbar"};xz.prototype.Yn=function(){return"horizontal"};function yz(a){xz.call(this);this.i=a}u(yz,xz);var zz={};yz.prototype.ig=function(){return this.i||"ocean-chrome-toolbar"};function Az(a){Q.call(this);this.g=[];Bz(this,a)}u(Az,Q);f=Az.prototype;f.Rf=null;f.Sj=null;function Cz(a,b){a.Sj=b}function Bz(a,b){b&&(b.forEach(function(c){Dz(this,c,!1)},a),yb(a.g,b))}f.Qa=function(a){this.Ue(a,this.g.length)};f.Ue=function(a,b){a&&(Dz(this,a,!1),zb(this.g,b,0,a))};f.Kd=function(){return xb(this.g)};f.Le=function(a){a!=this.Rf&&(Dz(this,this.Rf,!1),this.Rf=a,Dz(this,a,!0));this.dispatchEvent("select")}; f.clear=function(){var a=this.g;if(!Array.isArray(a))for(var b=a.length-1;b>=0;b--)delete a[b];a.length=0;this.Rf=null};f.wa=function(){Az.oa.wa.call(this);delete this.g;this.Rf=null};function Dz(a,b,c){b&&(typeof a.Sj=="function"?a.Sj(b,c):typeof b.Hl=="function"&&b.Hl(c))};function Ez(a,b,c){Bt.call(this,b,a||xz.Nb(),c)}u(Ez,Bt);Ez.prototype.wi=function(a){Ez.oa.wi.call(this,a);this.be||Gt(this)};function Fz(a,b,c){Ar.call(this,a,b||wz.Nb(),c)}u(Fz,Ar);nr("goog-toolbar-button",function(){return new Fz(null)});function Gz(a,b){tv.call(this,a||tz.Nb(),b)}u(Gz,tv);nr("goog-toolbar-separator",function(){return new Gz});function Hz(a){a=a||"viewport-chrome-toolbar";a=zz[a]||(zz[a]=new yz(a));Ez.call(this,a);this.Ca={};this.l=new ug(this)}n(Hz,Ez);function Iz(a,b,c,d){b.Yb(16,!0);if(c){var e=a.Ca[c];e||(e=new Az,Cz(e,function(g,h){g&&g.Sf(h)}),a.Ca[c]=e);e.Qa(b);b.Cf&=-17;I(b,"action",function(g){e.Le(g.target)});d&&e.Le(b)}else b.Vc(16,!!d)}function Jz(a,b){a.Ca.viewport&&a.Ca.viewport.Le(b)}Hz.prototype.wa=function(){Ez.prototype.wa.call(this);this.l.dispose();Mb(this.Ca,function(a){a.dispose()})};function Kz(){}u(Kz,jr);Ua(Kz);f=Kz.prototype;f.Mc=function(a){var b=br(this,a);b=a.g.Pa("DIV","goog-inline-block "+b.join(" "),a.Ac());this.tf(b,a.af());return b};f.eg=function(){return"button"};f.li=function(a){return a.tagName=="DIV"};f.Tb=function(a,b){O(b,"goog-inline-block");return Kz.oa.Tb.call(this,a,b)};f.Bb=function(){return""};f.Sa=function(){return"goog-flat-button"};nr("goog-flat-button",function(){return new Ar(null,Kz.Nb())});function Lz(){}u(Lz,uz);Ua(Lz);Lz.prototype.Ic=function(a){return Lz.oa.Ic.call(this,a&&a.firstChild)};Lz.prototype.Tb=function(a,b){var c=bf("*","goog-menu",b)[0];if(c){N(c,!1);Ze(c).body.appendChild(c);var d=new wv;Nk(d,c);a.Ke(d)}return Lz.oa.Tb.call(this,a,b)};Lz.prototype.Ei=function(a,b){return Lz.oa.Ei.call(this,[b.Pa("DIV","goog-inline-block "+(this.Sa()+"-caption"),a),b.Pa("DIV","goog-inline-block "+(this.Sa()+"-dropdown"),"\u00a0")],b)};Lz.prototype.Sa=function(){return"goog-menu-button"};function Mz(){this.g=[]}u(Mz,jv);Ua(Mz);Mz.prototype.Mc=function(a){var b=Mz.oa.Mc.call(this,a);O(b,"goog-submenu");Nz(this,a,b);return b};Mz.prototype.Tb=function(a,b){b=Mz.oa.Tb.call(this,a,b);O(b,"goog-submenu");Nz(this,a,b);var c=bf("DIV","goog-menu",b);if(c.length){var d=new wv(a.g);c=c[0];N(c,!1);a.g.g.body.appendChild(c);Nk(d,c);a.Ke(d,!0)}return b};Mz.prototype.fg=function(a,b){var c=this.Ic(a),d=c&&c.lastChild;Mz.oa.fg.call(this,a,b);d&&c.lastChild!=d&&wh(d,"goog-submenu-arrow")&&c.appendChild(d)}; Mz.prototype.mi=function(a){Mz.oa.mi.call(this,a);var b=a.Mb(),c=cf(a.g.g,"SPAN","goog-submenu-arrow",b)[0];Oz(a,c);c!=b.lastChild&&b.appendChild(c);a=a.ha();X(a,"haspopup","true")};function Nz(a,b,c){var d=b.g.Pa("SPAN");d.className="goog-submenu-arrow";Oz(b,d);a.Ic(c).appendChild(d)}function Oz(a,b){Rk(a)?(O(b,"goog-submenu-arrow-rtl"),G(b,"\u25c4")):(yh(b,"goog-submenu-arrow-rtl"),G(b,"\u25ba"))};function Pz(a,b,c,d){ov.call(this,a,b,c,d||Mz.Nb())}u(Pz,ov);f=Pz.prototype;f.Wg=null;f.Ol=null;f.ql=!1;f.rc=null;f.Hi=!1;f.La=function(){Pz.oa.La.call(this);Z(this).ka(this.getParent(),"hide",this.Wo);this.rc&&Qz(this,this.rc,!0)};f.mc=function(){Z(this).Va(this.getParent(),"hide",this.Wo);this.rc&&(Qz(this,this.rc,!1),this.Hi||(this.rc.mc(),E(this.rc.ha())));Pz.oa.mc.call(this)};f.wa=function(){this.rc&&!this.Hi&&this.rc.dispose();this.rc=null;Pz.oa.wa.call(this)}; f.Sc=function(a){Pz.oa.Sc.call(this,a);a||(this.Wg&&xj(this.Wg),this.Wg=U(this.we,218,this))};f.Nl=function(){var a=this.getParent();a&&Ft(a)==this&&(Rz(this,!0),Sz(this))};f.we=function(){if(!this.qd){var a=this.rc;a&&a.getParent()==this&&(Rz(this,!1),Ok(a,function(b){typeof b.we=="function"&&b.we()}))}};function Tz(a){a.Wg&&xj(a.Wg);a.Ol&&xj(a.Ol)}f.Ba=function(a,b){(a=Pz.oa.Ba.call(this,a,b))&&!this.isVisible()&&this.we();return a}; function Sz(a){Ok(a.getParent(),function(b){b!=this&&typeof b.we=="function"&&(b.we(),Tz(b))},a)}f.Pc=function(a){var b=a.keyCode,c=Rk(this)?37:39,d=Rk(this)?39:37;if(!this.ql){if(!this.isEnabled()||b!=c&&b!=13&&b!=this.rl)return!1;this.Nl();Gt(Uz(this));Tz(this)}else if(!Uz(this).Pc(a))if(b==d)this.we();else return!1;a.preventDefault();return!0};f.Ju=function(){this.rc.getParent()==this&&(Tz(this),this.Ag().Sc(this),Sz(this))};f.Wo=function(a){a.target==this.Ag()&&(this.we(),Tz(this))}; f.Be=function(a){this.isEnabled()&&(Tz(this),this.Ol=U(this.Nl,218,this));Pz.oa.Be.call(this,a)};f.nf=function(a){Tz(this);if(gr(this,8)||gr(this,16))return Pz.oa.nf.call(this,a);this.Nl();return!0}; function Rz(a,b){!b&&Uz(a)&&Uz(a).Rd(-1);a.dispatchEvent(Kk(64,b));var c=Uz(a);b!=a.ql&&P(a.ha(),"goog-submenu-open",b);if(b!=c.isVisible()&&(b&&(c.Ua||c.render(),c.Rd(-1)),c.Ba(b),b)){c=new Wr(a.ha(),12,!1);var d=Uz(a),e=d.ha();d.isVisible()||(e.style.visibility="hidden",N(e,!0));c.Lc(e,8);d.isVisible()||(N(e,!1),e.style.visibility="visible")}a.ql=b}function Qz(a,b,c){var d=Z(a);(c?d.ka:d.Va).call(d,b,"enter",a.Ju)}f.Qa=function(a){Uz(this).ab(a,!0)};f.Ue=function(a,b){Uz(this).lg(a,b,!0)}; f.Kd=function(){return Uz(this).Kd()};function Uz(a){a.rc?a.Hi&&a.rc.getParent()!=a&&a.rc.ee(a):a.Ke(new wv(a.g),!0);a.rc.ha()||a.rc.Ra();return a.rc}f.Ke=function(a,b){var c=this.rc;a!=c&&(c&&(this.we(),this.Ua&&Qz(this,c,!1)),this.rc=a,this.Hi=!b,a&&(a.ee(this),a.Ba(!1,!0),xv(a,!1),Kt(a,!1),this.Ua&&Qz(this,a,!0)))};f.Ud=function(a){return Uz(this).Ud(a)};nr("goog-submenu",function(){return new Pz(null)});function Vz(a,b,c,d,e){Ar.call(this,a,c||Lz.Nb(),d);this.Yb(64,!0);this.o=new pv(null,9);b&&this.Ke(b);this.Ta=new vj(500);this.Wa=e||uv.Nb()}u(Vz,Ar);f=Vz.prototype;f.La=function(){Vz.oa.La.call(this);Wz(this,!0);this.i&&Xz(this,this.i,!0);X(this.ya,"haspopup",!!this.i)};f.mc=function(){Vz.oa.mc.call(this);Wz(this,!1);if(this.i){this.Sb(!1);this.i.mc();Xz(this,this.i,!1);var a=this.i.ha();a&&E(a)}};f.wa=function(){Vz.oa.wa.call(this);this.i&&(this.i.dispose(),delete this.i);delete this.Za;this.Ta.dispose()}; f.yf=function(a){Vz.oa.yf.call(this,a);if(this.isActive()&&(this.Sb(!this.ld(),a),this.i)){a=this.i;var b=this.ld();a.be=b}};f.Ce=function(a){Vz.oa.Ce.call(this,a);this.i&&!this.isActive()&&(this.i.be=!1)};f.nf=function(){vr(this,!1);return!0};f.ft=function(a){this.i&&this.i.isVisible()&&!this.Ud(a.target)&&this.Sb(!1)};f.Ud=function(a){return a&&Cf(this.ha(),a)||this.i&&this.i.Ud(a)||!1}; f.ae=function(a){if(a.keyCode==32){if(a.preventDefault(),a.type!="keyup")return!0}else if(a.type!="key")return!1;if(this.i&&this.i.isVisible()){var b=a.keyCode==13||a.keyCode==32,c=this.i.Pc(a);return c&&this.i&&this.i.hc instanceof Pz||a.keyCode!=27&&!b?c:(this.Sb(!1),!0)}return a.keyCode==40||a.keyCode==38||a.keyCode==32||a.keyCode==13?(this.Sb(!0,a),!0):!1};f.Tk=function(){this.Sb(!1)};f.ni=function(a){this.Sb(!1);Vz.oa.ni.call(this,a)}; function Yz(a){a.i||a.Ke(new wv(a.g,a.Wa));return a.i||null}f.Ke=function(a){var b=this.i;a!=b&&(b&&(this.Sb(!1),this.Ua&&Xz(this,b,!1),delete this.i),this.Ua&&X(this.ya,"haspopup",!!a),a&&(this.i=a,a.ee(this),a.Ba(!1),xv(a,!1),this.Ua&&Xz(this,a,!0)));return b};f.Qa=function(a){Yz(this).ab(a,!0)};f.Ue=function(a,b){Yz(this).lg(a,b,!0)};f.Ba=function(a,b){(a=Vz.oa.Ba.call(this,a,b))&&!this.isVisible()&&this.Sb(!1);return a};f.tb=function(a){Vz.oa.tb.call(this,a);this.isEnabled()||this.Sb(!1)}; f.Sb=function(a,b){Vz.oa.Sb.call(this,a);if(this.i&&hr(this,64)==a){if(a)this.i.Ua||this.i.render(),this.va=Yg(this.ha()),this.Ma=ih(this.ha()),Zz(this),!b||b.keyCode!=40&&b.keyCode!=38?this.i.Rd(-1):Gt(this.i);else{vr(this,!1);this.i.be=!1;var c=this.ha();c&&(X(c,"activedescendant",""),X(c,"owns",""));this.ua!=null&&(this.ua=void 0,(c=this.i.ha())&&K(c,"",""))}this.i.Ba(a,!1,b);this.qd||(b=Z(this),c=a?b.ka:b.Va,c.call(b,this.g.g,"mousedown",this.ft,!0),c.call(b,this.Ta,"tick",this.Rq),a?this.Ta.start(): this.Ta.stop())}this.i&&this.i.ha()&&this.i.ya.removeAttribute("aria-hidden")};function Zz(a){if(a.i.Ua){var b=a.Za||a.ha(),c=a.o;a.o.g=b;b=a.i.ha();a.i.isVisible()||(b.style.visibility="hidden",N(b,!0));!a.ua&&a.o.N&&a.o.j&32&&(a.ua=M(b));c.Lc(b,c.i^1,null,a.ua);a.i.isVisible()||(N(b,!1),b.style.visibility="visible")}} f.Rq=function(){var a=ih(this.ha()),b=Yg(this.ha());var c=this.Ma;(c=!(c==a||c&&a&&c.left==a.left&&c.width==a.width&&c.top==a.top&&c.height==a.height))||(c=this.va,c=!(c==b||c&&b&&c.top==b.top&&c.right==b.right&&c.bottom==b.bottom&&c.left==b.left));c&&(this.i.Ua&&b&&this.va&&b.wb()1)for(var e=0;e0){var e=pA(b,!0,c,d),g=B("UL",c+"-list");a.appendChild(e);a.appendChild(g);(new mA(e,g)).Je(!b.collapsed);v(b.child_node,function(h){oA(g,h,c,d)})}else a.appendChild(pA(b,!1,c,d))}function pA(a,b,c,d){var e;if(b){b=c+"-heading";var g=c+"-header"}else b=c+"-link",g=c+"-item";a.url!=""?e=B("A",{"class":b,href:a.url},ed(a.title)):e=B("DIV",b,a.title);e=B("DIV",g,e);d==a.id&&O(e,c+"-selected");return e} db("_OC_InitNavbar",function(a){var b=A("navbarContainer");if(b&&a.child_node){var c=B("UL","gb-left-nav-list");v(a.child_node,function(d){oA(c,d,"gb-left-nav",a.highlighted_node_id)});b.appendChild(c)}});function qA(a,b){Q.call(this);this.ya=a;this.g=b||null;O(a,"with-auto-dir-text");I(this.ya,"keyup",r(this.i,this));I(this.ya,"paste",r(this.j,this))}n(qA,Q);qA.prototype.i=function(){rA(this.ya,this.g)};qA.prototype.j=function(){sA(this.ya,this.g)};function sA(a,b){U(t(function(){rA(a,b)}))} function rA(a,b){var c=!1,d;if(a.value){for(var e=d=0,g=!1,h=a.value.split(pw),k=0;k.4?-1:1)==-1}else d=yj();d?(c=!0,J(a,"textAlign","right"),gf(a,{dir:"rtl"})):(J(a,"textAlign","left"),gf(a,{dir:"ltr"}));b&&(c?(yh(b,"input-direction-ltr"),O(b,"input-direction-rtl")):(O(b,"input-direction-ltr"),yh(b,"input-direction-rtl")))} function tA(a,b){if(a=A(a))b=b?A(b):null,rA(a,b),new qA(a,b)}db("_OC_autoDir",tA);function uA(a){this.g=A("gb-ogen-opt-in-banner");this.j=A("gb-ogen-opt-in-banner-dismiss");this.i=A("gb-ogen-opt-in-header-link");this.l=a;a=A("gbq");this.i&&a&&(a=a.parentElement||null)&&(O(a,"searchbar-with-opt-in"),vf(this.i,a),J(this.i,"display","block"));vA(this)} function vA(a){a.g&&a.j&&(window.localStorage.getItem("obclose")?N(a.g,!1):(O(a.g,"opt-in-banner-expanded"),I(a.j,"click",function(){yh(a.g,"opt-in-banner-expanded");window.localStorage.setItem("obclose","true");U(function(){N(a.g,!1);a.l.resize()},600)})))};function wA(a,b){a=A(a);b=A(b);a&&b&&I(a,"submit",t(xA,b))}function xA(a,b){a.value==""&&b.preventDefault()};function yA(a,b,c){if(Ld&&!Pd)return a;a='url("'+b+'")';Md&&(a+=" 7 5");return a+(", "+c)};function zA(a){W.call(this);this.O=a;this.i=new ug;this.g.ka(a,"viewportmodechange",this.Gm);this.O.Ga()&&this.Gm()}n(zA,W);f=zA.prototype;f.Gm=function(){zg(this.i);this.j&&this.j.dispose();this.l=this.O.Ga().N.j;var a=new nk(this.l);a.Ck=function(){};this.j=a;this.i.ka(this.l,"dblclick",r(this.et,this));this.i.ka(a,"start",r(this.Uq,this));this.i.ka(a,"drag",r(this.Vq,this));this.i.ka(a,"end",r(this.Tq,this));AA(this,!1)};f.et=function(){this.O.rb("next")}; function AA(a,b){a=a.l;if(Ld)b=b?"-moz-grabbing":"-moz-grab";else{var c=Tm("/googlebooks/images/");b=b?yA("-moz-grabbing",c+"closedhand.cur","move"):yA("-moz-grab",c+"openhand.cur","default")}J(a,"cursor",b)}f.Uq=function(){this.o=this.O.Ga().Ib;AA(this,!0)};f.Vq=function(){var a=this.j,b=this.o;this.O.Ga().Uc(new w(b.x-a.deltaX,b.y-a.deltaY))};f.Tq=function(){this.o=null;AA(this,!1)};f.wa=function(){W.prototype.wa.call(this)};function BA(a,b,c){c&&c.preventDefault();c=A(b.concat("-icon-right"));N(c,!a);c=A(b.concat("-icon-down"));N(c,a);b=A(b.concat("-expanded"));N(b,a)};function CA(a,b,c,d){dl.call(this,Qm.IsZipitFolderCollectionEnabled?void 0:"p13nd",!0);il(this,a);this.Mn=!0;ml(this,.5);this.mg=c;a=new fl;a.set("ok",b,!0);(d!==void 0?d:1)&&a.set("cancel","Cancel",!1,!0);ql(this,a);I(this,"dialogselect",this.Ma,!1,this)}u(CA,dl);CA.prototype.Ra=function(){CA.oa.Ra.call(this);J(rl(this.j,"ok"),"fontWeight","bold");J(this.ha(),"width","500px")};CA.prototype.Ma=function(a){a.key=="ok"&&this.Kb(a);return!0}; CA.prototype.wa=function(){qg(this,"dialogselect",this.Ma,!0,this);CA.oa.wa.call(this)};CA.prototype.Kb=function(a){this.mg(a)};function DA(a){Q.call(this);this.Ta=null;this.ya=a;this.g=new ug(this);this.g.ka(this.ya,"input",this)}u(DA,Q);DA.prototype.handleEvent=function(a){if(a.type=="input")EA(this),this.dispatchEvent(FA(a));else if(a.type!="keydown"||Eh(a)){var b=a.type=="keydown"?this.ya.value:null,c=FA(a);EA(this);this.Ta=setTimeout(function(){this.Ta=null;this.ya.value!=b&&this.dispatchEvent(c)}.bind(this),0)}};function EA(a){a.Ta!=null&&(clearTimeout(a.Ta),a.Ta=null)} function FA(a){a=new Xf(a.Rb);a.type="input";return a}DA.prototype.wa=function(){DA.oa.wa.call(this);this.g.dispose();EA(this);delete this.ya};function GA(a,b,c,d){Q.call(this);this.g=a;this.l=b;this.i=c;this.o=d||0;a.removeAttribute("maxlength");this.j=new DA(a);I(this.j,"input",this.N,!1,this);HA(this)}u(GA,Q);GA.prototype.N=function(){HA(this)};function HA(a){var b=a.g.value.length;if(b>a.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.l&&G(a.l,String(a.o==1?b:a.i-b))}GA.prototype.wa=function(){GA.oa.wa.call(this);delete this.g;this.j.dispose();this.j=null};function IA(a,b,c,d,e){CA.call(this,a,b,null,!0);this.Wa=c;this.Lb=d;this.Da=e}n(IA,CA); IA.prototype.Ra=function(){CA.prototype.Ra.call(this);this.o=JA(this,"Name","input");this.Za=JA(this,"Description (optional)","textarea");var a=this.Mb(),b=B("DIV",{"class":"ccd-label"}),c=C("span");c.textContent="Visibility";b.appendChild(c);a.appendChild(b);a=B("SPAN",{className:"ccd-mode-indicator"});c=B("IMG",{src:"/googlebooks/images/sharing_public.gif",style:"vertical-align:-2px;padding:0 2px"});var d=C("span");d.textContent="Public";a.appendChild(c);a.appendChild(d); b.appendChild(a);c=B("SPAN",{className:"ccd-mode-indicator"});d=B("IMG",{src:"/googlebooks/images/sharing_private.gif",style:"vertical-align:-2px;"});var e=C("span");e.textContent="Private";c.appendChild(d);c.appendChild(e);b.appendChild(c);d=B("SPAN",{"class":"ccd-mode-link"});d.textContent="Make public";b.appendChild(d);I(d,"click",r(this.Ia,this,!0));e=B("SPAN",{"class":"ccd-mode-link"});e.textContent="Make private";b.appendChild(e);I(e,"click",r(this.Ia,this,!1));this.Hd=[a,e];this.Gd=[c,d];this.Da!= null&&(gf(this.Da,{"class":"ccd-mode-link"}),b.appendChild(this.Da));this.Ia(!0);this.V=B("DIV",{"class":"ccd-error"});this.Mb().appendChild(this.V);this.Ob=B("P","ccd-footnote","Please note that the contents and title of Public bookshelves can be viewed and shared by others.");this.Mb().appendChild(this.Ob);this.i&&KA(this);Qm.IsZipitFolderCollectionEnabled||(b=this.j,a=rl(b,"ok"),J(a,"fontWeight","bold"),O(a,"gb-button"),O(rl(b,"cancel"),"gb-button"))}; function KA(a){a.o.value=ed(a.i.kb());a.o.disabled=a.i.U;a.Za.value=ed(a.i.wg());a.Ia(a.i.oe==1);a.o.disabled&&J(a.o,"background","#f2f2f2")} function JA(a,b,c){var d=a.Mb();a=B("DIV",{"class":"gb-bookshelf-dialog-container"});d.appendChild(a);d=B("DIV",{"class":"ccd-label"});var e=new Ne,g=new Set(e.g.l);g.add("class");e.g=new te(e.g.j,e.g.g,g,e.g.o,e.g.i);if(e.i)throw Error("this sanitizer has already called build");e.i=!0;x(d,De(new Ce(e.g,void 0,void 0,e.l,e.j),b));a.appendChild(d);b=B(c,{"class":"ccd-input"});c=="input"?(gf(b,{type:"text"}),b.setAttribute("maxlength",100)):c=="textarea"&&(gf(b,{rows:6,cols:50}),new GA(b,C("span"), 500));a.appendChild(b);return b}IA.prototype.Ia=function(a){this.nd=a;v(this.Hd,function(b){N(b,a)});v(this.Gd,function(b){N(b,!a)})}; IA.prototype.Ma=function(a){var b=this.o.value;if(a.key=="cancel")return!0;if(Wb(b))return this.V.textContent="Please enter a title for this bookshelf.",!1;if(this.Lb&&!this.Lb(b))return this.V.textContent="Another bookshelf already has that title. Please enter a different title.",!1;a=this.i||new Cx;a.xc=b;a.l=this.Za.value;a.oe=this.nd?1:2;if(this.i){b=this.Wa;var c=new R(b.Lp);S(c,"as_coll",a.getId());Ox(c,a,r(b.N,b))}else b=this.Wa,Ox(b.l,a,r(b.o,b,!0));return!0}; IA.prototype.wa=function(){delete this.Wa;delete this.Da;delete this.i;delete this.V;delete this.Ob;delete this.o;delete this.Za;delete this.Lb;CA.prototype.wa.call(this)};function LA(a,b,c,d,e){W.call(this);this.U=a;this.j=b;this.N=c;this.i=d;this.U&&(this.l=nb(this.U.childNodes,MA),this.i&&yb(this.l,nb(this.i.childNodes,MA)));this.o=e;U(r(this.Wq,this))}u(LA,W);f=LA.prototype;f.Wq=function(){this.j&&this.i&&this.g.ka(this.j,"click",this.Kp);this.N&&this.g.ka(this.N,"click",this.dt);this.g.ka(this.o,"add",this.ls)}; function MA(a){var b=bf("SPAN","sidebar-collection-title",a)[0];b||(b=bf("SPAN","hp-collection-title",a)[0]);if(!b)return"";a=If(b);return Xb(Xb(Zc(a)).split("(")[0])}f.dt=function(){var a=new IA("Create new bookshelf","Create bookshelf",this.o,r(this.ru,this));a.render();a.Ba(!0)};f.ru=function(a){var b=Xb(Zc(a)).toLowerCase();return!ob(this.l,function(c){return c.toLowerCase()==b})}; f.ls=function(a){var b=a.shelf;a=Xb(Zc(b.kb()));var c=b.oe==1;this.l.push(a);var d=new R("/books");iv(d);S(d,"as_coll",b.getId());S(d,"source","gbs_lp_bookshelf_list");if(Qm.IsBooksUnifiedLeftNavEnabled)b=B("LI",{"class":"left-nav-shelf-item"}),c=B("A",{"class":"sidebar-link"}),Fc(c,d.toString()),d=C("SPAN"),O(d,"sidebar-collection-title"),x(d,Je(a+" (0)")),c.appendChild(d),b.appendChild(c),a=A("hidden-my-library-expanded"),uf(b,a),BA(!0,"my-library");else{b=C("DIV");var e=B("A",{"class":"hp-bookshelf-link", style:"line-height:19px"});Fc(e,d.toString());d=B("SPAN",{"class":"hp-collection-title"});x(d,Je(a));e.appendChild(d);b.appendChild(e);a=c?"Public bookshelf":"Private bookshelf";a=B("IMG",{"class":"hp-bookshelf-access",src:"/googlebooks/images/sharing_"+(c?"public":"private")+".gif",title:a,alt:a,width:14,height:14});b.appendChild(a);a=B("DIV",{style:"clear:both"});b.appendChild(a);vf(b,A("csStart"))}}; f.Kp=function(a){a.preventDefault();a=!kh(this.i);N(this.i,a);a?(Ip(this.j,9,this.i,8),M(this.i).height>200&&(a=M(this.i).width,K(this.i,a,200),J(this.i,"overflow","auto"),J(this.i,"overflowX","hidden")),this.V=I(document,"mousedown",r(this.yu,this))):rg(this.V)};f.yu=function(a){Cf(this.i,a.target)||Cf(this.j,a.target)||this.Kp(a)}; var yH=[],zH=!1,AH=!1;db("google.books.load",function(a){a&&a.callback!=null?(typeof a.callback=="string"&&a.callback.match(/^[[\]A-Za-z0-9._]+$/)&&(a.callback=window.eval(a.callback)),(a&&a.callback!=null?AH:zH)?window.setTimeout(a.callback,0):(yH.push(a.callback),BH(a))):(a&&a.callback!=null?AH:zH)||(zH=!0,BH(a))}); db("google.books.setOnLoadCallback",function(a){if(window.addEventListener)window.addEventListener("load",a,!1);else if(window.attachEvent)window.attachEvent("onload",a);else{var b=window.onload;window.onload=b!=null?function(){a();b()}:a}});db("google.books.handleLoadCallback",function(){AH=!0;for(var a=0;a\x3c/script>',{oj:"01307eb5-2a99-481c-9e3f-cae6f279a712"}),document.write(Jc(a))):(a=B("SCRIPT",{src:a}),document.getElementsByTagName("head")[0].appendChild(a));zH=!0}; })();