(function(){var GBS_HOST = "https://books.google.com/";(function(){var f,aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(c.get||c.set)throw new TypeError("ES3 does not support getters and setters.");a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},ba="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;function ca(){ca=function(){};ba.Symbol||(ba.Symbol=da)}var ea=0;function da(a){return"jscomp_symbol_"+(a||"")+ea++}
function fa(){ca();var a=ba.Symbol.iterator;a||(a=ba.Symbol.iterator=ba.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&aa(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ha(this)}});fa=function(){}}function ha(a){var b=0;return ia(function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}})}function ia(a){fa();a={next:a};a[ba.Symbol.iterator]=function(){return this};return a}function ja(a){fa();var b=a[Symbol.iterator];return b?b.call(a):ha(a)}
function ka(a,b){if(b){for(var c=ba,d=a.split("."),e=0;e<d.length-1;e++){var g=d[e];g in c||(c[g]={});c=c[g]}d=d[d.length-1];e=c[d];g=b(e);g!=e&&null!=g&&aa(c,d,{configurable:!0,writable:!0,value:g})}}
ka("String.prototype.startsWith",function(a){return a?a:function(a,c){var b;if(null==this)throw new TypeError("The 'this' value for String.prototype.startsWith must not be null or undefined");if(a instanceof RegExp)throw new TypeError("First argument to String.prototype.startsWith must not be a regular expression");b=this+"";a+="";for(var e=b.length,g=a.length,h=Math.max(0,Math.min(c|0,b.length)),k=0;k<g&&h<e;)if(b[h++]!=a[k++])return!1;return k>=g}});
function la(a,b){return Object.prototype.hasOwnProperty.call(a,b)}
ka("WeakMap",function(a){function b(a){this.Ia=(g+=Math.random()+1).toString();if(a){ca();fa();a=ja(a);for(var b;!(b=a.next()).done;)b=b.value,this.set(b[0],b[1])}}function c(a){la(a,e)||aa(a,e,{value:{}})}function d(a){var b=Object[a];b&&(Object[a]=function(a){c(a);return b(a)})}if(function(){if(!a||!Object.seal)return!1;try{var b=Object.seal({}),c=Object.seal({}),d=new a([[b,2],[c,3]]);if(2!=d.get(b)||3!=d.get(c))return!1;d["delete"](b);d.set(c,4);return!d.has(b)&&4==d.get(c)}catch(p){return!1}}())return a;
var e="$jscomp_hidden_"+Math.random().toString().substring(2);d("freeze");d("preventExtensions");d("seal");var g=0;b.prototype.set=function(a,b){c(a);if(!la(a,e))throw Error("WeakMap key fail: "+a);a[e][this.Ia]=b;return this};b.prototype.get=function(a){return la(a,e)?a[e][this.Ia]:void 0};b.prototype.has=function(a){return la(a,e)&&la(a[e],this.Ia)};b.prototype["delete"]=function(a){return la(a,e)&&la(a[e],this.Ia)?delete a[e][this.Ia]:!1};return b});
ka("Map",function(a){function b(){var a={};return a.lc=a.next=a.head=a}function c(a,b){var c=a.b;return ia(function(){if(c){for(;c.head!=a.b;)c=c.lc;for(;c.next!=c.head;)return c=c.next,{done:!1,value:b(c)};c=null}return{done:!0,value:void 0}})}function d(a,b){var c;c=b&&typeof b;"object"==c||"function"==c?g.has(b)?c=g.get(b):(c=""+ ++h,g.set(b,c)):c="p_"+b;var d=a.g[c];if(d&&la(a.g,c))for(var e=0;e<d.length;e++){var k=d[e];if(b!==b&&k.key!==k.key||b===k.key)return{id:c,list:d,index:e,qb:k}}return{id:c,
list:d,index:-1,qb:void 0}}function e(a){this.g={};this.b=b();this.size=0;if(a){a=ja(a);for(var c;!(c=a.next()).done;)c=c.value,this.set(c[0],c[1])}}if(function(){if(!a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var b=Object.seal({x:4}),c=new a(ja([[b,"s"]]));if("s"!=c.get(b)||1!=c.size||c.get({x:4})||c.set({x:4},"t")!=c||2!=c.size)return!1;var d=c.entries(),e=d.next();if(e.done||e.value[0]!=b||"s"!=e.value[1])return!1;e=d.next();return e.done||4!=e.value[0].x||"t"!=e.value[1]||
!d.next().done?!1:!0}catch(x){return!1}}())return a;ca();fa();var g=new WeakMap;e.prototype.set=function(a,b){var c=d(this,a);c.list||(c.list=this.g[c.id]=[]);c.qb?c.qb.value=b:(c.qb={next:this.b,lc:this.b.lc,head:this.b,key:a,value:b},c.list.push(c.qb),this.b.lc.next=c.qb,this.b.lc=c.qb,this.size++);return this};e.prototype["delete"]=function(a){a=d(this,a);return a.qb&&a.list?(a.list.splice(a.index,1),a.list.length||delete this.g[a.id],a.qb.lc.next=a.qb.next,a.qb.next.lc=a.qb.lc,a.qb.head=null,
this.size--,!0):!1};e.prototype.clear=function(){this.g={};this.b=this.b.lc=b();this.size=0};e.prototype.has=function(a){return!!d(this,a).qb};e.prototype.get=function(a){return(a=d(this,a).qb)&&a.value};e.prototype.entries=function(){return c(this,function(a){return[a.key,a.value]})};e.prototype.keys=function(){return c(this,function(a){return a.key})};e.prototype.values=function(){return c(this,function(a){return a.value})};e.prototype.forEach=function(a,b){for(var c=this.entries(),d;!(d=c.next()).done;)d=
d.value,a.call(b,d[1],d[0],this)};e.prototype[Symbol.iterator]=e.prototype.entries;var h=0;return e});
ka("Set",function(a){function b(a){this.b=new Map;if(a){a=ja(a);for(var b;!(b=a.next()).done;)this.add(b.value)}this.size=this.b.size}if(function(){if(!a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var b=Object.seal({x:4}),d=new a(ja([b]));if(!d.has(b)||1!=d.size||d.add(b)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),g=e.next();if(g.done||g.value[0]!=b||g.value[1]!=b)return!1;g=e.next();return g.done||g.value[0]==b||4!=g.value[0].x||g.value[1]!=g.value[0]?
!1:e.next().done}catch(h){return!1}}())return a;ca();fa();b.prototype.add=function(a){this.b.set(a,a);this.size=this.b.size;return this};b.prototype["delete"]=function(a){a=this.b["delete"](a);this.size=this.b.size;return a};b.prototype.clear=function(){this.b.clear();this.size=0};b.prototype.has=function(a){return this.b.has(a)};b.prototype.entries=function(){return this.b.entries()};b.prototype.values=function(){return this.b.values()};b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=
b.prototype.values;b.prototype.forEach=function(a,b){var c=this;this.b.forEach(function(d){return a.call(b,d,d,c)})};return b});ka("Array.from",function(a){return a?a:function(a,c,d){fa();c=c?c:function(a){return a};var b=[],g=a[Symbol.iterator];if("function"==typeof g)for(a=g.call(a);!(g=a.next()).done;)b.push(c.call(d,g.value));else for(var g=a.length,h=0;h<g;h++)b.push(c.call(d,a[h]));return b}});if(window.jstiming){window.jstiming.Qg={};window.jstiming.ll=1;var ma=function(a,b,c){var d=a.t[b],e=a.t.start;if(d&&(e||c))return d=a.t[b][0],void 0!=c?e=c:e=e[0],Math.round(d-e)},na=function(a,b,c){var d="";window.jstiming.srt&&(d+="&srt="+window.jstiming.srt,delete window.jstiming.srt);window.jstiming.pt&&(d+="&tbsrt="+window.jstiming.pt,delete window.jstiming.pt);try{window.external&&window.external.tran?d+="&tran="+window.external.tran:window.gtbExternal&&window.gtbExternal.tran?d+="&tran="+
window.gtbExternal.tran():window.chrome&&window.chrome.csi&&(d+="&tran="+window.chrome.csi().tran)}catch(x){}var e=window.chrome;if(e&&(e=e.loadTimes)){e().wasFetchedViaSpdy&&(d+="&p=s");if(e().wasNpnNegotiated){var d=d+"&npn=1",g=e().npnNegotiatedProtocol;g&&(d+="&npnv="+(encodeURIComponent||escape)(g))}e().wasAlternateProtocolAvailable&&(d+="&apa=1")}var h=a.t,k=h.start,e=[],g=[],n;for(n in h)if("start"!=n&&n.indexOf("_")){var p=h[n][1];p?h[p]&&g.push(n+"."+ma(a,n,h[p][0])):k&&e.push(n+"."+ma(a,
n))}delete h.start;if(b)for(var q in b)d+="&"+q+"="+b[q];(b=c)||(b="https:"==document.location.protocol?"https://csi.gstatic.com/csi":"http://csi.gstatic.com/csi");return[b,"?v=3","&s="+(window.jstiming.sn||"books")+"&action=",a.name,g.length?"&it="+g.join(","):"",d,"&rt=",e.join(",")].join("")},oa=function(a,b,c){a=na(a,b,c);if(!a)return"";b=new Image;var d=window.jstiming.ll++;window.jstiming.Qg[d]=b;b.onload=b.onerror=function(){window.jstiming&&delete window.jstiming.Qg[d]};b.src=a;b=null;return a};
window.jstiming.report=function(a,b,c){if("prerender"==document.webkitVisibilityState){var d=!1,e=function(){if(!d){b?b.prerender="1":b={prerender:"1"};var g;"prerender"==document.webkitVisibilityState?g=!1:(oa(a,b,c),g=!0);g&&(d=!0,document.removeEventListener("webkitvisibilitychange",e,!1))}};document.addEventListener("webkitvisibilitychange",e,!1);return""}return oa(a,b,c)}};var pa=pa||{},l=this;function m(a){return void 0!==a}function r(){}function qa(a){a.eg=void 0;a.Qa=function(){return a.eg?a.eg:a.eg=new a}}
function ra(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function sa(a){return"array"==ra(a)}function ta(a){var b=ra(a);return"array"==b||"object"==b&&"number"==typeof a.length}function t(a){return"string"==typeof a}function u(a){return"number"==typeof a}function ua(a){return"function"==ra(a)}function va(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function wa(a){return a[xa]||(a[xa]=++ya)}var xa="closure_uid_"+(1E9*Math.random()>>>0),ya=0;
function Aa(a,b,c){return a.call.apply(a.bind,arguments)}function Ba(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}function v(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?v=Aa:v=Ba;return v.apply(null,arguments)}
function w(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}}var Ca=Date.now||function(){return+new Date};function Ea(a,b){var c=a.split("."),d=l;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&m(b)?d[e]=b:d[e]&&d[e]!==Object.prototype[e]?d=d[e]:d=d[e]={}}
function y(a,b){function c(){}c.prototype=b.prototype;a.V=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Ol=function(a,c,g){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];return b.prototype[c].apply(a,d)}};function Fa(a){if(Error.captureStackTrace)Error.captureStackTrace(this,Fa);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}y(Fa,Error);Fa.prototype.name="CustomError";var Ga;function Ha(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")}function Ia(a){return a.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")}function Ja(a){return/^[\s\xa0]*$/.test(a)}function Ka(a){return a.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")}var La=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};
function Ma(a){return decodeURIComponent(a.replace(/\+/g," "))}function Na(a){if(!Oa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Pa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Qa,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Ra,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Sa,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Ta,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Ua,"&#0;"));return a}var Pa=/&/g,Qa=/</g,Ra=/>/g,Sa=/"/g,Ta=/'/g,Ua=/\x00/g,Oa=/[\x00&<>"']/;
function Va(a){return-1!=a.indexOf("&")?"document"in l?Wa(a):Xa(a):a}function Wa(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},c;c=l.document.createElement("div");return a.replace(Ya,function(a,e){var d=b[a];if(d)return d;if("#"==e.charAt(0)){var h=Number("0"+e.substr(1));isNaN(h)||(d=String.fromCharCode(h))}d||(c.innerHTML=a+" ",d=c.firstChild.nodeValue.slice(0,-1));return b[a]=d})}
function Xa(a){return a.replace(/&([^;]+);/g,function(a,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:if("#"==c.charAt(0)){var b=Number("0"+c.substr(1));if(!isNaN(b))return String.fromCharCode(b)}return a}})}var Ya=/&([^;\s<&]+);?/g;function Za(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")}function $a(a){return null==a?"":String(a)}function ab(a,b){return a<b?-1:a>b?1:0}
function bb(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})}function cb(a){var b=t(void 0)?Za(void 0):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})};function db(a){return a[a.length-1]}var eb=Array.prototype.indexOf?function(a,b,c){return Array.prototype.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(t(a))return t(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},z=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=t(a)?a.split(""):a,g=0;g<d;g++)g in e&&b.call(c,e[g],g,a)};
function fb(a,b){for(var c=a.length,d=t(a)?a.split(""):a,c=c-1;0<=c;--c)c in d&&b.call(void 0,d[c],c,a)}
var gb=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],g=0,h=t(a)?a.split(""):a,k=0;k<d;k++)if(k in h){var n=h[k];b.call(c,n,k,a)&&(e[g++]=n)}return e},hb=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),g=t(a)?a.split(""):a,h=0;h<d;h++)h in g&&(e[h]=b.call(c,g[h],h,a));return e},ib=Array.prototype.reduce?function(a,b,c,d){d&&(b=v(b,d));return Array.prototype.reduce.call(a,
b,c)}:function(a,b,c,d){var e=c;z(a,function(c,h){e=b.call(d,e,c,h,a)});return e},kb=Array.prototype.some?function(a,b,c){return Array.prototype.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=t(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&b.call(c,e[g],g,a))return!0;return!1},lb=Array.prototype.every?function(a,b,c){return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=t(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&!b.call(c,e[g],g,a))return!1;return!0};
function mb(a,b){var c=nb(a,b);return 0>c?null:t(a)?a.charAt(c):a[c]}function nb(a,b){for(var c=a.length,d=t(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return e;return-1}function ob(a,b){return 0<=eb(a,b)}function pb(a,b){ob(a,b)||a.push(b)}function qb(a,b){var c=eb(a,b),d;(d=0<=c)&&rb(a,c);return d}function rb(a,b){Array.prototype.splice.call(a,b,1)}function sb(a,b){var c=nb(a,b);0<=c&&rb(a,c)}function tb(a){return Array.prototype.concat.apply([],arguments)}
function ub(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}function vb(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(ta(d)){var e=a.length||0,g=d.length||0;a.length=e+g;for(var h=0;h<g;h++)a[e+h]=d[h]}else a.push(d)}}function wb(a,b,c,d){Array.prototype.splice.apply(a,xb(arguments,1))}function xb(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)}function zb(a,b){return a>b?1:a<b?-1:0}
function Ab(a,b){for(var c={},d=0;d<a.length;d++){var e=a[d],g=b.call(void 0,e,d,a);m(g)&&(c[g]||(c[g]=[])).push(e)}return c}function Bb(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];if(sa(d))for(var e=0;e<d.length;e+=8192)for(var g=Bb.apply(null,xb(d,e,e+8192)),h=0;h<g.length;h++)b.push(g[h]);else b.push(d)}return b}function Cb(a){var b;a.length&&(b=1%a.length,0<b?Array.prototype.unshift.apply(a,a.splice(-b,b)):0>b&&Array.prototype.push.apply(a,a.splice(0,-b)));return a};function Db(a){if(a.classList)return a.classList;a=a.className;return t(a)&&a.match(/\S+/g)||[]}function Eb(a,b){return a.classList?a.classList.contains(b):ob(Db(a),b)}function A(a,b){a.classList?a.classList.add(b):Eb(a,b)||(a.className+=0<a.className.length?" "+b:b)}function Fb(a,b){if(a.classList)z(b,function(b){A(a,b)});else{var c={};z(Db(a),function(a){c[a]=!0});z(b,function(a){c[a]=!0});a.className="";for(var d in c)a.className+=0<a.className.length?" "+d:d}}
function Gb(a,b){a.classList?a.classList.remove(b):Eb(a,b)&&(a.className=gb(Db(a),function(a){return a!=b}).join(" "))}function Hb(a,b){a.classList?z(b,function(b){Gb(a,b)}):a.className=gb(Db(a),function(a){return!ob(b,a)}).join(" ")}function Ib(a,b,c){c?A(a,b):Gb(a,b)};function Jb(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Kb(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1}function Lb(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Mb(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function Nb(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c}function Ob(){var a=Pb,b;for(b in a)return!1;return!0}function Qb(a,b,c){if(null!==a&&b in a)throw Error('The object already contains the key "'+b+'"');a[b]=c}var Rb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function Sb(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var g=0;g<Rb.length;g++)c=Rb[g],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}}function Tb(a){var b=arguments.length;if(1==b&&sa(arguments[0]))return Tb.apply(null,arguments[0]);if(b%2)throw Error("Uneven number of arguments");for(var c={},d=0;d<b;d+=2)c[arguments[d]]=arguments[d+1];return c}
function Ub(a){var b=arguments.length;if(1==b&&sa(arguments[0]))return Ub.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};var Vb={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 Wb=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),Xb=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),Yb=/^http:\/\/.*/,Zb=/\s+/,$b=/[\d\u06f0-\u06f9]/;var ac;a:{var bc=l.navigator;if(bc){var cc=bc.userAgent;if(cc){ac=cc;break a}}ac=""}function B(a){return-1!=ac.indexOf(a)};function dc(){this.b="";this.g=ec}dc.prototype.Qc=!0;dc.prototype.sc=function(){return this.b};dc.prototype.toString=function(){return"Const{"+this.b+"}"};function fc(a){return a instanceof dc&&a.constructor===dc&&a.g===ec?a.b:"type_error:Const"}var ec={};function gc(a){var b=new dc;b.b=a;return b}gc("");function hc(){this.b="";this.g=ic}hc.prototype.Qc=!0;var ic={};hc.prototype.sc=function(){return this.b};function jc(a){var b=new hc;b.b=a;return b}var kc=jc(""),lc=/^([-,."'%_!# a-zA-Z0-9]+|(?:rgb|hsl)a?\([0-9.%, ]+\))$/;function mc(){this.b="";this.g=nc}mc.prototype.Qc=!0;mc.prototype.sc=function(){return this.b};mc.prototype.ag=!0;mc.prototype.Lc=function(){return 1};function oc(a){if(a instanceof mc&&a.constructor===mc&&a.g===nc)return a.b;ra(a);return"type_error:TrustedResourceUrl"}var nc={};function pc(a){var b=new mc;b.b=a;return b};function qc(){this.b="";this.g=rc}qc.prototype.Qc=!0;qc.prototype.sc=function(){return this.b};qc.prototype.ag=!0;qc.prototype.Lc=function(){return 1};var sc=/^(?:(?:https?|mailto|ftp):|[^&:/?#]*(?:[/?#]|$))/i,rc={};function tc(a){var b=new qc;b.b=a;return b}tc("about:blank");function uc(){this.b="";this.i=vc;this.g=null}uc.prototype.ag=!0;uc.prototype.Lc=function(){return this.g};uc.prototype.Qc=!0;uc.prototype.sc=function(){return this.b};function wc(a){if(a instanceof uc&&a.constructor===uc&&a.i===vc)return a.b;ra(a);return"type_error:SafeHtml"}function xc(a){if(a instanceof uc)return a;var b=null;a.ag&&(b=a.Lc());a=Na(a.Qc?a.sc():String(a));return yc(a,b)}
function zc(a){if(a instanceof uc)return a;a=xc(a);var b=wc(a).replace(/(\r\n|\r|\n)/g,"<br>");return yc(b,a.Lc())}var Ac=/^[a-zA-Z0-9-]+$/,Bc={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},Cc={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0};
function Dc(a,b,c){var d=String(a);if(!Ac.test(d))throw Error("Invalid tag name <"+d+">.");if(d.toUpperCase()in Cc)throw Error("Tag name <"+d+"> is not allowed for SafeHtml.");return Ec(String(a),b,c)}function Fc(a){function b(a){sa(a)?z(a,b):(a=xc(a),d+=wc(a),a=a.Lc(),0==c?c=a:0!=a&&c!=a&&(c=null))}var c=0,d="";z(arguments,b);return yc(d,c)}var vc={};function yc(a,b){var c=new uc;c.b=a;c.g=b;return c}
function Ec(a,b,c){var d=null,e,g="";if(b)for(e in b){if(!Ac.test(e))throw Error('Invalid attribute name "'+e+'".');var h=b[e];if(null!=h){var k,n=a;k=e;var p=h;if(p instanceof dc)p=fc(p);else if("style"==k.toLowerCase()){h=void 0;n=p;if(!va(n))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof n+" given: "+n);if(!(n instanceof hc)){p="";for(h in n){if(!/^[-_a-zA-Z0-9]+$/.test(h))throw Error("Name allows only [-_a-zA-Z0-9], got: "+h);var q=n[h];if(null!=
q){if(q instanceof dc)q=fc(q);else if(lc.test(q)){for(var x=!0,H=!0,P=0;P<q.length;P++){var Da=q.charAt(P);"'"==Da&&H?x=!x:'"'==Da&&x&&(H=!H)}x&&H||(q="zClosurez")}else q="zClosurez";p+=h+":"+q+";"}}n=p?jc(p):kc}n instanceof hc&&n.constructor===hc&&n.g===ic?h=n.b:(ra(n),h="type_error:SafeStyle");p=h}else{if(/^on/i.test(k))throw Error('Attribute "'+k+'" requires goog.string.Const value, "'+p+'" given.');if(k.toLowerCase()in Bc)if(p instanceof mc)p=oc(p);else if(p instanceof qc)p instanceof qc&&p.constructor===
qc&&p.g===rc?p=p.b:(ra(p),p="type_error:SafeUrl");else if(t(p))h=p,h instanceof qc||(h=h.Qc?h.sc():String(h),sc.test(h)||(h="about:invalid#zClosurez"),h=tc(h)),p=h.sc();else throw Error('Attribute "'+k+'" on tag "'+n+'" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+p+'" given.');}p.Qc&&(p=p.sc());k=k+'="'+Na(String(p))+'"';g+=" "+k}}e="<"+a+g;null!=c?sa(c)||(c=[c]):c=[];!0===Vb[a.toLowerCase()]?e+=">":(d=Fc(c),e+=">"+wc(d)+"</"+a+">",d=d.Lc());(a=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(a)?
d=0:d=null);return yc(e,d)}yc("<!DOCTYPE html>",0);var Gc=yc("",0),Hc=yc("<br>",0);function C(a,b){this.x=m(a)?a:0;this.y=m(b)?b:0}f=C.prototype;f.clone=function(){return new C(this.x,this.y)};function Ic(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1}function Jc(a,b){return new C(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.scale=function(a,b){var c=u(b)?b:a;this.x*=a;this.y*=c;return this};function D(a,b){this.width=a;this.height=b}function Kc(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1}f=D.prototype;f.clone=function(){return new D(this.width,this.height)};f.Ji=function(){return this.width*this.height};function Lc(a){return a.width/a.height}f.isEmpty=function(){return!this.Ji()};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};f.scale=function(a,b){var c=u(b)?b:a;this.width*=a;this.height*=c;return this};function Mc(a){Mc[" "](a);return a}Mc[" "]=r;function Nc(a,b){try{return Mc(a[b]),!0}catch(c){}return!1}function Oc(a,b){var c=Pc;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};var Qc=B("Opera"),E=B("Trident")||B("MSIE"),Rc=B("Edge"),Sc=Rc||E,Tc=B("Gecko")&&!(-1!=ac.toLowerCase().indexOf("webkit")&&!B("Edge"))&&!(B("Trident")||B("MSIE"))&&!B("Edge"),Uc=-1!=ac.toLowerCase().indexOf("webkit")&&!B("Edge"),Vc=Uc&&B("Mobile"),Wc=B("Macintosh"),Xc=B("Windows");function Yc(){var a=l.document;return a?a.documentMode:void 0}var Zc;
a:{var $c="",ad=function(){var a=ac;if(Tc)return/rv\:([^\);]+)(\)|;)/.exec(a);if(Rc)return/Edge\/([\d\.]+)/.exec(a);if(E)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Uc)return/WebKit\/(\S+)/.exec(a);if(Qc)return/(?:Version)[ \/]?(\S+)/.exec(a)}();ad&&($c=ad?ad[1]:"");if(E){var bd=Yc();if(null!=bd&&bd>parseFloat($c)){Zc=String(bd);break a}}Zc=$c}var cd=Zc,Pc={};
function F(a){return Oc(a,function(){for(var b=0,c=La(String(cd)).split("."),d=La(String(a)).split("."),e=Math.max(c.length,d.length),g=0;!b&&g<e;g++){var h=c[g]||"",k=d[g]||"";do{h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];k=/(\d*)(\D*)(.*)/.exec(k)||["","","",""];if(0==h[0].length&&0==k[0].length)break;b=ab(0==h[1].length?0:parseInt(h[1],10),0==k[1].length?0:parseInt(k[1],10))||ab(0==h[2].length,0==k[2].length)||ab(h[2],k[2]);h=h[3];k=k[3]}while(!b)}return 0<=b})}
function dd(a){return Number(ed)>=a}var fd;var gd=l.document;fd=gd&&E?Yc()||("CSS1Compat"==gd.compatMode?parseInt(cd,10):5):void 0;var ed=fd;var hd=!E||dd(9),id=!Tc&&!E||E&&dd(9)||Tc&&F("1.9.1"),jd=E&&!F("9");function kd(a){return a?new ld(md(a)):Ga||(Ga=new ld)}function G(a){return t(a)?document.getElementById(a):a}function nd(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):od(document,"*",a,b)}function pd(a,b){var c=b||document,d=null;c.getElementsByClassName?d=c.getElementsByClassName(a)[0]:c.querySelectorAll&&c.querySelector?d=c.querySelector("."+a):d=od(document,"*",a,b)[0];return d||null}
function od(a,b,c,d){a=d||a;b=b&&"*"!=b?String(b).toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){d={};for(var e=0,g=0,h;h=a[g];g++)b==h.nodeName&&(d[e++]=h);d.length=e;return d}return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(g=e=0;h=a[g];g++)b=h.className,"function"==typeof b.split&&ob(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a}
function qd(a,b){Jb(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:rd.hasOwnProperty(d)?a.setAttribute(rd[d],b):d.lastIndexOf("aria-",0)&&d.lastIndexOf("data-",0)?a[d]=b:a.setAttribute(d,b)})}var rd={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};
function sd(a){a=a.document;a=td(a)?a.documentElement:a.body;return new D(a.clientWidth,a.clientHeight)}function ud(a){var b=vd(a);a=wd(a);return E&&F("10")&&a.pageYOffset!=b.scrollTop?new C(b.scrollLeft,b.scrollTop):new C(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}function vd(a){return a.scrollingElement?a.scrollingElement:!Uc&&td(a)?a.documentElement:a.body||a.documentElement}function xd(a){return a?wd(a):window}function wd(a){return a.parentWindow||a.defaultView}
function I(a,b,c){return yd(document,arguments)}function yd(a,b){var c=String(b[0]),d=b[1];if(!hd&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',Na(d.name),'"');if(d.type){c.push(' type="',Na(d.type),'"');var e={};Sb(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(t(d)?c.className=d:sa(d)?c.className=d.join(" "):qd(c,d));2<b.length&&zd(a,c,b,2);return c}
function zd(a,b,c,d){function e(c){c&&b.appendChild(t(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var g=c[d];!ta(g)||va(g)&&0<g.nodeType?e(g):z(Ad(g)?ub(g):g,e)}}function J(a){return document.createElement(String(a))}function Bd(a){return document.createTextNode(String(a))}
function Cd(a){var b=document,c=b.createElement("DIV");E?(a=Fc(Hc,a),c.innerHTML=wc(a),c.removeChild(c.firstChild)):c.innerHTML=wc(a);if(1==c.childNodes.length)c=c.removeChild(c.firstChild);else{for(b=b.createDocumentFragment();c.firstChild;)b.appendChild(c.firstChild);c=b}return c}function td(a){return"CSS1Compat"==a.compatMode}function Dd(a,b){a.appendChild(b)}function Ed(a){for(var b;b=a.firstChild;)a.removeChild(b)}function K(a){return a&&a.parentNode?a.parentNode.removeChild(a):null}
function Fd(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)}function Gd(a){return id&&a.children?a.children:gb(a.childNodes,function(a){return 1==a.nodeType})}function Hd(a){return m(a.firstElementChild)?a.firstElementChild:Id(a.firstChild,!0)}function Id(a,b){for(;a&&1!=a.nodeType;)a=b?a.nextSibling:a.previousSibling;return a}
function Jd(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}function md(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function Kd(a){return a.contentDocument||a.contentWindow.document}
function Ld(a,b){if("textContent"in a)a.textContent=b;else if(3==a.nodeType)a.data=b;else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=b}else Ed(a),a.appendChild(md(a).createTextNode(String(b)))}var Md={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Nd={IMG:" ",BR:"\n"};function Od(a,b){b?a.tabIndex=0:(a.tabIndex=-1,a.removeAttribute("tabIndex"))}
function Pd(a){return E&&!F("9")?(a=a.getAttributeNode("tabindex"),!!a&&a.specified):a.hasAttribute("tabindex")}function Qd(a){a=a.tabIndex;return u(a)&&0<=a&&32768>a}function Rd(a){if(jd&&null!==a&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var b=[];Sd(a,b,!0);a=b.join("")}a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");jd||(a=a.replace(/ +/g," "));" "!=a&&(a=a.replace(/^\s*/,""));return a}function Td(a){var b=[];Sd(a,b,!1);return b.join("")}
function Sd(a,b,c){if(!(a.nodeName in Md))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in Nd)b.push(Nd[a.nodeName]);else for(a=a.firstChild;a;)Sd(a,b,c),a=a.nextSibling}function Ad(a){if(a&&"number"==typeof a.length){if(va(a))return"function"==typeof a.item||"string"==typeof a.item;if(ua(a))return"function"==typeof a.item}return!1}
function Ud(a,b,c){if(!b&&!c)return null;var d=b?String(b).toUpperCase():null;return Vd(a,function(a){return(!d||a.nodeName==d)&&(!c||t(a.className)&&ob(a.className.split(/\s+/),c))},void 0)}function Vd(a,b,c){for(var d=0;a&&(null==c||d<=c);){if(b(a))return a;a=a.parentNode;d++}return null}function Wd(a){try{return a&&a.activeElement}catch(b){}return null}function ld(a){this.b=a||l.document||document}f=ld.prototype;f.S=function(a){return t(a)?this.b.getElementById(a):a};
f.Ja=function(a,b,c){return yd(this.b,arguments)};f.createElement=function(a){return this.b.createElement(String(a))};f.appendChild=Dd;f.fh=function(a,b){zd(md(a),a,arguments,1)};f.hh=Ed;f.dj=K;f.dh=Hd;f.contains=Jd;var Xd=!E||dd(9),Yd=!E||dd(9),Zd=E&&!F("9");function $d(){this.Qb=this.Qb;this.rb=this.rb}$d.prototype.Qb=!1;$d.prototype.isDisposed=function(){return this.Qb};$d.prototype.wa=function(){this.Qb||(this.Qb=!0,this.ma())};function ae(a,b){var c=w(be,b);a.Qb?m(void 0)?c.call(void 0):c():(a.rb||(a.rb=[]),a.rb.push(m(void 0)?v(c,void 0):c))}$d.prototype.ma=function(){if(this.rb)for(;this.rb.length;)this.rb.shift()()};function be(a){a&&"function"==typeof a.wa&&a.wa()};function ce(a,b){this.type=a;this.j=this.target=b;this.o=!1;this.mi=!0}ce.prototype.g=function(){this.o=!0};ce.prototype.preventDefault=function(){this.mi=!1};function de(a){a.preventDefault()};var ee=E?"focusin":"DOMFocusIn",fe=E?"focusout":"DOMFocusOut";function ge(a,b){ce.call(this,a?a.type:"");this.relatedTarget=this.j=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.s=this.b=0;this.R=this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.i=null;a&&this.init(a,b)}y(ge,ce);var he=[1,4,2];
ge.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.j=b;var e=a.relatedTarget;e?Tc&&(Nc(e,"nodeName")||(e=null)):"mouseover"==c?e=a.fromElement:"mouseout"==c&&(e=a.toElement);this.relatedTarget=e;null===d?(this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0):(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=
void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0);this.button=a.button;this.b=a.keyCode||0;this.key=a.key||"";this.s=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.R=Wc?a.metaKey:a.ctrlKey;this.i=a;a.defaultPrevented&&this.preventDefault()};function ie(a){return(Xd?!a.i.button:"click"==a.type?!0:!!(a.i.button&he[0]))&&!(Uc&&Wc&&a.ctrlKey)}
ge.prototype.g=function(){ge.V.g.call(this);this.i.stopPropagation?this.i.stopPropagation():this.i.cancelBubble=!0};ge.prototype.preventDefault=function(){ge.V.preventDefault.call(this);var a=this.i;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Zd)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var je="closure_listenable_"+(1E6*Math.random()|0);function ke(a){return!(!a||!a[je])}var le=0;function me(a,b,c,d,e){this.listener=a;this.b=null;this.src=b;this.type=c;this.capture=!!d;this.Ce=e;this.key=++le;this.vd=this.ne=!1}function ne(a){a.vd=!0;a.listener=null;a.b=null;a.src=null;a.Ce=null};function oe(a){this.src=a;this.b={};this.g=0}function pe(a,b,c,d,e,g){var h=b.toString();b=a.b[h];b||(b=a.b[h]=[],a.g++);var k=qe(b,c,e,g);-1<k?(a=b[k],d||(a.ne=!1)):(a=new me(c,a.src,h,!!e,g),a.ne=d,b.push(a));return a}oe.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.b))return!1;var e=this.b[a];b=qe(e,b,c,d);return-1<b?(ne(e[b]),rb(e,b),e.length||(delete this.b[a],this.g--),!0):!1};
function re(a,b){var c=b.type;c in a.b&&qb(a.b[c],b)&&(ne(b),a.b[c].length||(delete a.b[c],a.g--))}oe.prototype.Kd=function(a,b,c,d){a=this.b[a.toString()];var e=-1;a&&(e=qe(a,b,c,d));return-1<e?a[e]:null};oe.prototype.hasListener=function(a,b){var c=m(a),d=c?a.toString():"",e=m(b);return Kb(this.b,function(a){for(var g=0;g<a.length;++g)if(!(c&&a[g].type!=d||e&&a[g].capture!=b))return!0;return!1})};
function qe(a,b,c,d){for(var e=0;e<a.length;++e){var g=a[e];if(!g.vd&&g.listener==b&&g.capture==!!c&&g.Ce==d)return e}return-1};var se="closure_lm_"+(1E6*Math.random()|0),te={},ue=0;function L(a,b,c,d,e){if(sa(b)){for(var g=0;g<b.length;g++)L(a,b[g],c,d,e);return null}c=ve(c);return ke(a)?a.listen(b,c,d,e):we(a,b,c,!1,d,e)}
function we(a,b,c,d,e,g){if(!b)throw Error("Invalid event type");var h=!!e,k=xe(a);k||(a[se]=k=new oe(a));c=pe(k,b,c,d,e,g);if(c.b)return c;d=ye();c.b=d;d.src=a;d.listener=c;if(a.addEventListener)a.addEventListener(b.toString(),d,h);else if(a.attachEvent)a.attachEvent(ze(b.toString()),d);else throw Error("addEventListener and attachEvent are unavailable.");ue++;return c}
function ye(){var a=Ae,b=Yd?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);if(!c)return c};return b}function Be(a,b,c,d,e){if(sa(b)){for(var g=0;g<b.length;g++)Be(a,b[g],c,d,e);return null}c=ve(c);return ke(a)?a.Bc(b,c,d,e):we(a,b,c,!0,d,e)}function Ce(a,b,c,d,e){if(sa(b))for(var g=0;g<b.length;g++)Ce(a,b[g],c,d,e);else c=ve(c),ke(a)?a.Ta(b,c,d,e):a&&(a=xe(a))&&(b=a.Kd(b,c,!!d,e))&&De(b)}
function De(a){if(!u(a)&&a&&!a.vd){var b=a.src;if(ke(b))re(b.Sb,a);else{var c=a.type,d=a.b;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent&&b.detachEvent(ze(c),d);ue--;(c=xe(b))?(re(c,a),c.g||(c.src=null,b[se]=null)):ne(a)}}}function ze(a){return a in te?te[a]:te[a]="on"+a}function Ee(a,b,c,d){var e=!0;if(a=xe(a))if(b=a.b[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var g=b[a];g&&g.capture==c&&!g.vd&&(g=Fe(g,d),e=e&&!1!==g)}return e}
function Fe(a,b){var c=a.listener,d=a.Ce||a.src;a.ne&&De(a);return c.call(d,b)}
function Ae(a,b){if(a.vd)return!0;if(!Yd){var c;if(!(c=b))a:{c=["window","event"];for(var d=l,e;e=c.shift();)if(null!=d[e])d=d[e];else{c=null;break a}c=d}e=c;c=new ge(e,this);d=!0;if(!(0>e.keyCode||void 0!=e.returnValue)){a:{var g=!1;if(!e.keyCode)try{e.keyCode=-1;break a}catch(n){g=!0}if(g||void 0==e.returnValue)e.returnValue=!0}e=[];for(g=c.j;g;g=g.parentNode)e.push(g);for(var g=a.type,h=e.length-1;!c.o&&0<=h;h--){c.j=e[h];var k=Ee(e[h],g,!0,c),d=d&&k}for(h=0;!c.o&&h<e.length;h++)c.j=e[h],k=Ee(e[h],
g,!1,c),d=d&&k}return d}return Fe(a,new ge(b,this))}function xe(a){a=a[se];return a instanceof oe?a:null}var Ge="__closure_events_fn_"+(1E9*Math.random()>>>0);function ve(a){if(ua(a))return a;a[Ge]||(a[Ge]=function(b){return a.handleEvent(b)});return a[Ge]};function He(a){Ie();return yc(a,null)}var Ie=r;function Je(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}function Ke(a){for(var b=new Je(arguments[0].y,arguments[0].x,arguments[0].y,arguments[0].x),c=1;c<arguments.length;c++){var d=b,e=arguments[c];d.top=Math.min(d.top,e.y);d.right=Math.max(d.right,e.x);d.bottom=Math.max(d.bottom,e.y);d.left=Math.min(d.left,e.x)}return b}f=Je.prototype;f.Hb=function(){return this.right-this.left};f.Ob=function(){return this.bottom-this.top};
f.clone=function(){return new Je(this.top,this.right,this.bottom,this.left)};f.contains=function(a){return this&&a?a instanceof Je?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};function Le(a,b){var c=b.x<a.left?b.x-a.left:b.x>a.right?b.x-a.right:0,d=b.y<a.top?b.y-a.top:b.y>a.bottom?b.y-a.bottom:0;return Math.sqrt(c*c+d*d)}
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};
f.scale=function(a,b){var c=u(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};function Me(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}f=Me.prototype;f.clone=function(){return new Me(this.left,this.top,this.width,this.height)};function Ne(a){return new Je(a.top,a.left+a.width,a.top+a.height,a.left)}function Oe(a){return new Me(a.left,a.top,a.right-a.left,a.bottom-a.top)}
function Pe(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),g=Math.min(a.top+a.height,b.top+b.height);if(e<=g)return new Me(c,e,d-c,g-e)}return null}function Qe(a,b){if(!a||!b)return null;var c=new Me(a.left,a.top,a.width,a.height),d=Math.max(c.left+c.width,b.left+b.width),e=Math.max(c.top+c.height,b.top+b.height);c.left=Math.min(c.left,b.left);c.top=Math.min(c.top,b.top);c.width=d-c.left;c.height=e-c.top;return c}
f.contains=function(a){return a instanceof C?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};f.distance=function(a){var b=a.x<this.left?this.left-a.x:Math.max(a.x-(this.left+this.width),0);a=a.y<this.top?this.top-a.y:Math.max(a.y-(this.top+this.height),0);return Math.sqrt(b*b+a*a)};f.ua=function(){return new D(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};
f.scale=function(a,b){var c=u(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};function M(a,b,c){if(t(b))(b=Re(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],g=Re(c,d);g&&(c.style[g]=e)}}var Se={};function Re(a,b){var c=Se[b];if(!c){var d=bb(b),c=d;void 0===a.style[d]&&(d=(Uc?"Webkit":Tc?"Moz":E?"ms":Qc?"O":null)+cb(d),void 0!==a.style[d]&&(c=d));Se[b]=c}return c}function Te(a,b){var c=a.style[bb(b)];return"undefined"!==typeof c?c:a.style[Re(a,b)]||""}
function Ue(a,b){var c=md(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function Ve(a,b){return Ue(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}function We(a,b,c){var d;b instanceof C?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Xe(d,!1);a.style.top=Xe(b,!1)}function Ye(a){return new C(a.offsetLeft,a.offsetTop)}
function Ze(a){a=a?md(a):document;return!E||dd(9)||td(kd(a).b)?a.documentElement:a.body}function $e(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}E&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
function af(a){if(E&&!dd(8))return a.offsetParent;var b=md(a),c=Ve(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host),c=Ve(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null}
function bf(a){for(var b=new Je(0,Infinity,Infinity,0),c=kd(a),d=c.b.body,e=c.b.documentElement,g=vd(c.b);a=af(a);)if(!(E&&!a.clientWidth||Uc&&!a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=Ve(a,"overflow")){var h=cf(a),k=new C(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=sd(wd(c.b)||
window);b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,g+c.height);return 0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null}
function df(a,b){var c=b||vd(document),d;d=c||vd(document);var e=cf(a),g=cf(d),h=ef(d);if(d==vd(document)){var k=e.x-d.scrollLeft,e=e.y-d.scrollTop;E&&!dd(10)&&(k+=h.left,e+=h.top)}else k=e.x-g.x-h.left,e=e.y-g.y-h.top;var h=ff(a),g=d.clientHeight-h.height,n=d.scrollLeft,p=d.scrollTop,n=n+Math.min(k,Math.max(k-(d.clientWidth-h.width),0)),p=p+Math.min(e,Math.max(e-g,0));d=new C(n,p);c.scrollLeft=d.x;c.scrollTop=d.y}
function cf(a){var b=md(a),c=new C(0,0),d=Ze(b);if(a==d)return c;a=$e(a);b=ud(kd(b).b);c.x=a.left+b.x;c.y=a.top+b.y;return c}function gf(a,b){var c=hf(a),d=hf(b);return new C(c.x-d.x,c.y-d.y)}function jf(a){a=$e(a);return new C(a.left,a.top)}function hf(a){if(1==a.nodeType)return jf(a);a=a.changedTouches?a.changedTouches[0]:a;return new C(a.clientX,a.clientY)}
function N(a,b,c){if(b instanceof D)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=Xe(b,!0);a.style.height=Xe(c,!0)}function Xe(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function kf(a){var b=ff;if("none"!=Ve(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,g=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=g;c.visibility=e;return a}
function ff(a){var b=a.offsetWidth,c=a.offsetHeight,d=Uc&&!b&&!c;return m(b)&&!d||!a.getBoundingClientRect?new D(b,c):(a=$e(a),new D(a.right-a.left,a.bottom-a.top))}function lf(a){var b=cf(a);a=kf(a);return new Me(b.x,b.y,a.width,a.height)}function mf(a,b){var c=a.style;"opacity"in c?c.opacity=b:"MozOpacity"in c?c.MozOpacity=b:"filter"in c&&(c.filter=""===b?"":"alpha(opacity="+100*Number(b)+")")}function O(a,b){a.style.display=b?"":"none"}function nf(a){return"rtl"==Ve(a,"direction")}
var of=Tc?"MozUserSelect":Uc||Rc?"WebkitUserSelect":null;function pf(a,b,c){c=c?null:a.getElementsByTagName("*");if(of){if(b=b?"none":"",a.style&&(a.style[of]=b),c){a=0;for(var d;d=c[a];a++)d.style&&(d.style[of]=b)}}else if(E||Qc)if(b=b?"on":"",a.setAttribute("unselectable",b),c)for(a=0;d=c[a];a++)d.setAttribute("unselectable",b)}
function qf(a,b){var c=td(kd(md(a)).b);if(!E||F("10")||c&&F("8"))rf(a,b,"border-box");else{var d=a.style;if(c){var c=sf(a),e=ef(a);d.pixelWidth=b.width-e.left-c.left-c.right-e.right;d.pixelHeight=b.height-e.top-c.top-c.bottom-e.bottom}else d.pixelWidth=b.width,d.pixelHeight=b.height}}
function tf(a){var b=md(a),c=E&&a.currentStyle;if(c&&td(kd(b).b)&&"auto"!=c.width&&"auto"!=c.height&&!c.boxSizing)return b=uf(a,c.width,"width","pixelWidth"),a=uf(a,c.height,"height","pixelHeight"),new D(b,a);c=new D(a.offsetWidth,a.offsetHeight);b=sf(a);a=ef(a);return new D(c.width-a.left-b.left-b.right-a.right,c.height-a.top-b.top-b.bottom-a.bottom)}
function rf(a,b,c){a=a.style;Tc?a.MozBoxSizing=c:Uc?a.WebkitBoxSizing=c:a.boxSizing=c;a.width=Math.max(b.width,0)+"px";a.height=Math.max(b.height,0)+"px"}function uf(a,b,c,d){if(/^\d+px?$/.test(b))return parseInt(b,10);var e=a.style[c],g=a.runtimeStyle[c];a.runtimeStyle[c]=a.currentStyle[c];a.style[c]=b;b=a.style[d];a.style[c]=e;a.runtimeStyle[c]=g;return+b}function vf(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?uf(a,c,"left","pixelLeft"):0}
function sf(a){if(E){var b=vf(a,"paddingLeft"),c=vf(a,"paddingRight"),d=vf(a,"paddingTop");a=vf(a,"paddingBottom");return new Je(d,c,a,b)}b=Ue(a,"paddingLeft");c=Ue(a,"paddingRight");d=Ue(a,"paddingTop");a=Ue(a,"paddingBottom");return new Je(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}var wf={thin:2,medium:4,thick:6};
function xf(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:null))return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:null;return c in wf?wf[c]:uf(a,c,"left","pixelLeft")}
function ef(a){if(E&&!dd(9)){var b=xf(a,"borderLeft"),c=xf(a,"borderRight"),d=xf(a,"borderTop");a=xf(a,"borderBottom");return new Je(d,c,a,b)}b=Ue(a,"borderLeftWidth");c=Ue(a,"borderRightWidth");d=Ue(a,"borderTopWidth");a=Ue(a,"borderBottomWidth");return new Je(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}function yf(a,b){a.style[E?"styleFloat":"cssFloat"]=b};var zf=function(a){return function(){return a}}(!0);function Af(a,b){function c(){}c.prototype=a.prototype;var d=new c;a.apply(d,Array.prototype.slice.call(arguments,1));return d};function Q(){$d.call(this);this.Sb=new oe(this);this.Di=this;this.yg=null}y(Q,$d);Q.prototype[je]=!0;f=Q.prototype;f.ue=function(){return this.yg};f.Zd=function(a){this.yg=a};f.addEventListener=function(a,b,c,d){L(this,a,b,c,d)};f.removeEventListener=function(a,b,c,d){Ce(this,a,b,c,d)};
f.dispatchEvent=function(a){var b,c=this.ue();if(c)for(b=[];c;c=c.ue())b.push(c);var c=this.Di,d=a.type||a;if(t(a))a=new ce(a,c);else if(a instanceof ce)a.target=a.target||c;else{var e=a;a=new ce(d,c);Sb(a,e)}var e=!0,g;if(b)for(var h=b.length-1;!a.o&&0<=h;h--)g=a.j=b[h],e=Bf(g,d,!0,a)&&e;a.o||(g=a.j=c,e=Bf(g,d,!0,a)&&e,a.o||(e=Bf(g,d,!1,a)&&e));if(b)for(h=0;!a.o&&h<b.length;h++)g=a.j=b[h],e=Bf(g,d,!1,a)&&e;return e};
f.ma=function(){Q.V.ma.call(this);if(this.Sb){var a=this.Sb,b=0,c;for(c in a.b){for(var d=a.b[c],e=0;e<d.length;e++)++b,ne(d[e]);delete a.b[c];a.g--}}this.yg=null};f.listen=function(a,b,c,d){return pe(this.Sb,String(a),b,!1,c,d)};f.Bc=function(a,b,c,d){return pe(this.Sb,String(a),b,!0,c,d)};f.Ta=function(a,b,c,d){return this.Sb.remove(String(a),b,c,d)};
function Bf(a,b,c,d){b=a.Sb.b[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,g=0;g<b.length;++g){var h=b[g];if(h&&!h.vd&&h.capture==c){var k=h.listener,n=h.Ce||h.src;h.ne&&re(a.Sb,h);e=!1!==k.call(n,d)&&e}}return e&&0!=d.mi}f.Kd=function(a,b,c,d){return this.Sb.Kd(String(a),b,c,d)};f.hasListener=function(a,b){return this.Sb.hasListener(m(a)?String(a):void 0,b)};function Cf(a,b,c){this.o=c;this.i=a;this.j=b;this.g=0;this.b=null}Cf.prototype.get=function(){var a;0<this.g?(this.g--,a=this.b,this.b=a.next,a.next=null):a=this.i();return a};function Df(a,b){a.j(b);a.g<a.o&&(a.g++,b.next=a.b,a.b=b)};function Ef(a){l.setTimeout(function(){throw a;},0)}var Ff;
function Gf(){var a=l.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!B("Presto")&&(a=function(){var a=document.createElement("IFRAME");a.style.display="none";a.src="";document.documentElement.appendChild(a);var b=a.contentWindow,a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host,a=v(function(a){if(("*"==d||a.origin==d)&&a.data==
c)this.port1.onmessage()},this);b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});if("undefined"!==typeof a&&!B("Trident")&&!B("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(m(c.next)){c=c.next;var a=c.cb;c.cb=null;a()}};return function(a){d.next={cb:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?function(a){var b=document.createElement("SCRIPT");
b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null};document.documentElement.appendChild(b)}:function(a){l.setTimeout(a,0)}};function Hf(){this.g=this.b=null}var Jf=new Cf(function(){return new If},function(a){a.reset()},100);Hf.prototype.remove=function(){var a=null;this.b&&(a=this.b,this.b=this.b.next,this.b||(this.g=null),a.next=null);return a};function If(){this.next=this.g=this.b=null}If.prototype.set=function(a,b){this.b=a;this.g=b;this.next=null};If.prototype.reset=function(){this.next=this.g=this.b=null};function Kf(a,b){Lf||Mf();Nf||(Lf(),Nf=!0);var c=Of,d=Jf.get();d.set(a,b);c.g?c.g.next=d:c.b=d;c.g=d}var Lf;function Mf(){if(-1!=String(l.Promise).indexOf("[native code]")){var a=l.Promise.resolve(void 0);Lf=function(){a.then(Pf)}}else Lf=function(){var a=Pf;!ua(l.setImmediate)||l.Window&&l.Window.prototype&&!B("Edge")&&l.Window.prototype.setImmediate==l.setImmediate?(Ff||(Ff=Gf()),Ff(a)):l.setImmediate(a)}}var Nf=!1,Of=new Hf;
function Pf(){for(var a;a=Of.remove();){try{a.b.call(a.g)}catch(b){Ef(b)}Df(Jf,a)}Nf=!1};function Qf(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0}function Rf(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};function Sf(a,b){this.b=0;this.R=void 0;this.j=this.g=this.i=null;this.o=this.s=!1;if(a!=r)try{var c=this;a.call(b,function(a){Tf(c,2,a)},function(a){Tf(c,3,a)})}catch(d){Tf(this,3,d)}}function Uf(){this.next=this.i=this.g=this.j=this.b=null;this.o=!1}Uf.prototype.reset=function(){this.i=this.g=this.j=this.b=null;this.o=!1};var Vf=new Cf(function(){return new Uf},function(a){a.reset()},100);function Wf(a,b,c){var d=Vf.get();d.j=a;d.g=b;d.i=c;return d}
Sf.prototype.then=function(a,b,c){return Xf(this,ua(a)?a:null,ua(b)?b:null,c)};Qf(Sf);Sf.prototype.cancel=function(a){0==this.b&&Kf(function(){var b=new Yf(a);Zf(this,b)},this)};function Zf(a,b){if(0==a.b)if(a.i){var c=a.i;if(c.g){for(var d=0,e=null,g=null,h=c.g;h&&(h.o||(d++,h.b==a&&(e=h),!(e&&1<d)));h=h.next)e||(g=h);e&&(0==c.b&&1==d?Zf(c,b):(g?(d=g,d.next==c.j&&(c.j=d),d.next=d.next.next):$f(c),ag(c,e,3,b)))}a.i=null}else Tf(a,3,b)}
function bg(a,b){a.g||2!=a.b&&3!=a.b||cg(a);a.j?a.j.next=b:a.g=b;a.j=b}function Xf(a,b,c,d){var e=Wf(null,null,null);e.b=new Sf(function(a,h){e.j=b?function(c){try{var e=b.call(d,c);a(e)}catch(p){h(p)}}:a;e.g=c?function(b){try{var e=c.call(d,b);!m(e)&&b instanceof Yf?h(b):a(e)}catch(p){h(p)}}:h});e.b.i=a;bg(a,e);return e.b}Sf.prototype.ha=function(a){this.b=0;Tf(this,2,a)};Sf.prototype.ka=function(a){this.b=0;Tf(this,3,a)};
function Tf(a,b,c){if(0==a.b){a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));a.b=1;var d;a:{var e=c,g=a.ha,h=a.ka;if(e instanceof Sf)bg(e,Wf(g||r,h||null,a)),d=!0;else if(Rf(e))e.then(g,h,a),d=!0;else{if(va(e))try{var k=e.then;if(ua(k)){dg(e,k,g,h,a);d=!0;break a}}catch(n){h.call(a,n);d=!0;break a}d=!1}}d||(a.R=c,a.b=b,a.i=null,cg(a),3!=b||c instanceof Yf||eg(a,c))}}
function dg(a,b,c,d,e){function g(a){k||(k=!0,d.call(e,a))}function h(a){k||(k=!0,c.call(e,a))}var k=!1;try{b.call(a,h,g)}catch(n){g(n)}}function cg(a){a.s||(a.s=!0,Kf(a.U,a))}function $f(a){var b=null;a.g&&(b=a.g,a.g=b.next,b.next=null);a.g||(a.j=null);return b}Sf.prototype.U=function(){for(var a;a=$f(this);)ag(this,a,this.b,this.R);this.s=!1};
function ag(a,b,c,d){if(3==c&&b.g&&!b.o)for(;a&&a.o;a=a.i)a.o=!1;if(b.b)b.b.i=null,fg(b,c,d);else try{b.o?b.j.call(b.i):fg(b,c,d)}catch(e){gg.call(null,e)}Df(Vf,b)}function fg(a,b,c){2==b?a.j.call(a.i,c):a.g&&a.g.call(a.i,c)}function eg(a,b){a.o=!0;Kf(function(){a.o&&gg.call(null,b)})}var gg=Ef;function Yf(a){Fa.call(this,a)}y(Yf,Fa);Yf.prototype.name="cancel";function hg(a,b){Q.call(this);this.g=a||1;this.b=b||l;this.i=v(this.Bl,this);this.j=Ca()}y(hg,Q);f=hg.prototype;f.Md=!1;f.Ib=null;function ig(a,b){a.g=b;a.Ib&&a.Md?(a.stop(),a.start()):a.Ib&&a.stop()}f.Bl=function(){if(this.Md){var a=Ca()-this.j;0<a&&a<.8*this.g?this.Ib=this.b.setTimeout(this.i,this.g-a):(this.Ib&&(this.b.clearTimeout(this.Ib),this.Ib=null),this.dispatchEvent("tick"),this.Md&&(this.Ib=this.b.setTimeout(this.i,this.g),this.j=Ca()))}};
f.start=function(){this.Md=!0;this.Ib||(this.Ib=this.b.setTimeout(this.i,this.g),this.j=Ca())};f.stop=function(){this.Md=!1;this.Ib&&(this.b.clearTimeout(this.Ib),this.Ib=null)};f.ma=function(){hg.V.ma.call(this);this.stop();delete this.b};function R(a,b,c){if(ua(a))c&&(a=v(a,c));else if(a&&"function"==typeof a.handleEvent)a=v(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:l.setTimeout(a,b||0)};function jg(a,b,c){$d.call(this);this.b=a;this.j=b||0;this.g=c;this.i=v(this.bj,this)}y(jg,$d);f=jg.prototype;f.Ia=0;f.ma=function(){jg.V.ma.call(this);this.stop();delete this.b;delete this.g};f.start=function(a){this.stop();this.Ia=R(this.i,m(a)?a:this.j)};f.stop=function(){this.Ia&&l.clearTimeout(this.Ia);this.Ia=0};f.bj=function(){this.Ia=0;this.b&&this.b.call(this.g)};var Pb={},kg=null;function lg(a){a=wa(a);delete Pb[a];Ob()&&kg&&kg.stop()}function mg(){kg||(kg=new jg(function(){ng()},20));var a=kg;a.Ia||a.start()}function ng(){var a=Ca();Jb(Pb,function(b){og(b,a)});Ob()||mg()};function pg(){Q.call(this);this.i=0;this.U=this.g=null}y(pg,Q);pg.prototype.o=function(){this.ac("begin")};pg.prototype.j=function(){this.ac("end")};pg.prototype.ac=function(a){this.dispatchEvent(a)};function qg(a,b,c,d){pg.call(this);if(!sa(a)||!sa(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.s=a;this.ra=b;this.duration=c;this.ka=d;this.coords=[];this.b=0}y(qg,pg);f=qg.prototype;
f.play=function(a){if(a||0==this.i)this.b=0,this.coords=this.s;else if(1==this.i)return!1;lg(this);this.g=a=Ca();-1==this.i&&(this.g-=this.duration*this.b);this.U=this.g+this.duration;this.b||this.o();this.ac("play");-1==this.i&&this.ac("resume");this.i=1;var b=wa(this);b in Pb||(Pb[b]=this);mg();og(this,a);return!0};f.stop=function(a){lg(this);this.i=0;a&&(this.b=1);rg(this,this.b);this.ac("stop");this.j()};f.ma=function(){0==this.i||this.stop(!1);this.ac("destroy");qg.V.ma.call(this)};
function og(a,b){b<a.g&&(a.U=b+a.U-a.g,a.g=b);a.b=(b-a.g)/(a.U-a.g);1<a.b&&(a.b=1);rg(a,a.b);1==a.b?(a.i=0,lg(a),a.ac("finish"),a.j()):1==a.i&&a.wg()}function rg(a,b){ua(a.ka)&&(b=a.ka(b));a.coords=Array(a.s.length);for(var c=0;c<a.s.length;c++)a.coords[c]=(a.ra[c]-a.s[c])*b+a.s[c]}f.wg=function(){this.ac("animate")};f.ac=function(a){this.dispatchEvent(new sg(a,this))};function sg(a,b){ce.call(this,a);this.coords=b.coords;this.x=b.coords[0];this.y=b.coords[1];this.duration=b.duration}y(sg,ce);function tg(a,b,c,d,e){qg.call(this,b,c,d,e);this.element=a}y(tg,qg);tg.prototype.R=r;tg.prototype.wg=function(){this.R();tg.V.wg.call(this)};tg.prototype.j=function(){this.R();tg.V.j.call(this)};tg.prototype.o=function(){this.R();tg.V.o.call(this)};function ug(a,b,c,d,e){u(b)&&(b=[b]);u(c)&&(c=[c]);tg.call(this,a,b,c,d,e);if(1!=b.length||1!=c.length)throw Error("Start and end points must be 1D");this.ha=-1}y(ug,tg);var vg=1/1024;
ug.prototype.R=function(){var a=this.coords[0];Math.abs(a-this.ha)>=vg&&(mf(this.element,a),this.ha=a)};ug.prototype.o=function(){this.ha=-1;ug.V.o.call(this)};ug.prototype.j=function(){this.ha=-1;ug.V.j.call(this)};function wg(a,b,c){ug.call(this,a,1,0,b,c)}y(wg,ug);wg.prototype.o=function(){this.element.style.display="";wg.V.o.call(this)};wg.prototype.j=function(){this.element.style.display="none";wg.V.j.call(this)};
function xg(a,b,c,d,e){if(3!=b.length||3!=c.length)throw Error("Start and end points must be 3D");tg.apply(this,arguments)}y(xg,tg);xg.prototype.R=function(){for(var a=[],b=0;b<this.coords.length;b++)a[b]=Math.round(this.coords[b]);this.element.style.backgroundColor="rgb("+a.join(",")+")"};function yg(a){return Math.pow(a,3)}function zg(a){return 3*a*a-2*a*a*a};var Ag="StopIteration"in l?l.StopIteration:{message:"StopIteration",stack:""};function Bg(){}Bg.prototype.next=function(){throw Ag;};Bg.prototype.lf=function(){return this};function Cg(a,b){this.g={};this.b=[];this.j=this.i=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a){a instanceof Cg?(c=a.yb(),d=a.hb()):(c=Mb(a),d=Lb(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}}f=Cg.prototype;f.qc=function(){return this.i};f.hb=function(){Dg(this);for(var a=[],b=0;b<this.b.length;b++)a.push(this.g[this.b[b]]);return a};f.yb=function(){Dg(this);return this.b.concat()};
f.isEmpty=function(){return!this.i};f.clear=function(){this.g={};this.j=this.i=this.b.length=0};f.remove=function(a){return Eg(this.g,a)?(delete this.g[a],this.i--,this.j++,this.b.length>2*this.i&&Dg(this),!0):!1};function Dg(a){if(a.i!=a.b.length){for(var b=0,c=0;b<a.b.length;){var d=a.b[b];Eg(a.g,d)&&(a.b[c++]=d);b++}a.b.length=c}if(a.i!=a.b.length){for(var e={},c=b=0;b<a.b.length;)d=a.b[b],Eg(e,d)||(a.b[c++]=d,e[d]=1),b++;a.b.length=c}}f.get=function(a,b){return Eg(this.g,a)?this.g[a]:b};
f.set=function(a,b){Eg(this.g,a)||(this.i++,this.b.push(a),this.j++);this.g[a]=b};f.forEach=function(a,b){for(var c=this.yb(),d=0;d<c.length;d++){var e=c[d],g=this.get(e);a.call(b,g,e,this)}};f.clone=function(){return new Cg(this)};f.lf=function(a){Dg(this);var b=0,c=this.j,d=this,e=new Bg;e.next=function(){if(c!=d.j)throw Error("The map has changed since the iterator was created");if(b>=d.b.length)throw Ag;var e=d.b[b++];return a?e:d.g[e]};return e};
function Eg(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function Fg(a){if(a.hb&&"function"==typeof a.hb)return a.hb();if(t(a))return a.split("");if(ta(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Lb(a)}function Gg(a){if(a.yb&&"function"==typeof a.yb)return a.yb();if(!a.hb||"function"!=typeof a.hb){if(ta(a)||t(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Mb(a)}}
function Hg(a,b){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,void 0);else if(ta(a)||t(a))z(a,b,void 0);else for(var c=Gg(a),d=Fg(a),e=d.length,g=0;g<e;g++)b.call(void 0,d[g],c&&c[g],a)};var Ig=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Jg(a,b){if(a)for(var c=a.split("&"),d=0;d<c.length;d++){var e=c[d].indexOf("="),g,h=null;0<=e?(g=c[d].substring(0,e),h=c[d].substring(e+1)):g=c[d];b(g,h?Ma(h):"")}}
function Kg(a,b,c){a=[a,"&",b];null!=c&&a.push("=",encodeURIComponent(String(c)));a[1]&&(c=a[0],b=c.indexOf("#"),0<=b&&(a.push(c.substr(b)),a[0]=c=c.substr(0,b)),b=c.indexOf("?"),0>b?a[1]="?":b==c.length-1&&(a[1]=void 0));return a.join("")}function Lg(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var g=a.charCodeAt(b-1);if(38==g||63==g)if(g=a.charCodeAt(b+e),!g||61==g||38==g||35==g)return b;b+=e+1}return-1}var Mg=/#|$/;
function Ng(a){var b=window.location.href,c=b.search(Mg),d=Lg(b,0,a,c);if(0>d)return null;var e=b.indexOf("&",d);if(0>e||e>c)e=c;d+=a.length+1;return Ma(b.substr(d,e-d))}var Og=/[?&]($|#)/;function S(a,b){this.R=this.U=this.s="";this.ha=null;this.g=this.o="";this.i=!1;var c;a instanceof S?(this.i=m(b)?b:a.i,Pg(this,a.s),this.U=a.U,this.R=a.R,Qg(this,a.ha),this.o=a.o,Rg(this,a.b.clone()),this.g=a.g):a&&(c=String(a).match(Ig))?(this.i=!!b,Pg(this,c[1]||"",!0),this.U=Sg(c[2]||""),this.R=Sg(c[3]||"",!0),Qg(this,c[4]),this.o=Sg(c[5]||"",!0),Rg(this,c[6]||"",!0),this.g=Sg(c[7]||"")):(this.i=!!b,this.b=new Tg(null,0,this.i))}
S.prototype.toString=function(){var a=[],b=this.s;b&&a.push(Ug(b,Vg,!0),":");var c=this.R;if(c||"file"==b)a.push("//"),(b=this.U)&&a.push(Ug(b,Vg,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.ha,null!=c&&a.push(":",String(c));if(c=this.o)this.R&&"/"!=c.charAt(0)&&a.push("/"),a.push(Ug(c,"/"==c.charAt(0)?Wg:Xg,!0));(c=this.b.toString())&&a.push("?",c);(c=this.g)&&a.push("#",Ug(c,Yg));return a.join("")};S.prototype.clone=function(){return new S(this)};
function Pg(a,b,c){a.s=c?Sg(b,!0):b;a.s&&(a.s=a.s.replace(/:$/,""))}function Qg(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.ha=b}else a.ha=null}function Rg(a,b,c){b instanceof Tg?(a.b=b,Zg(a.b,a.i)):(c||(b=Ug(b,$g)),a.b=new Tg(b,0,a.i));return a}S.prototype.j=function(a,b){return Rg(this,a,b)};S.prototype.Ab=function(){return this.b.toString()};function T(a,b,c){a.b.set(b,c);return a}function ah(a,b){return a.b.get(b)}
function Sg(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}function Ug(a,b,c){return t(a)?(a=encodeURI(a).replace(b,bh),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function bh(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var Vg=/[#\/\?@]/g,Xg=/[\#\?:]/g,Wg=/[\#\?]/g,$g=/[\#\?@]/g,Yg=/#/g;function Tg(a,b,c){this.g=this.b=null;this.i=a||null;this.j=!!c}
function ch(a){a.b||(a.b=new Cg,a.g=0,a.i&&Jg(a.i,function(b,c){dh(a,Ma(b),c)}))}f=Tg.prototype;f.qc=function(){ch(this);return this.g};function dh(a,b,c){ch(a);a.i=null;b=eh(a,b);var d=a.b.get(b);d||a.b.set(b,d=[]);d.push(c);a.g+=1}f.remove=function(a){ch(this);a=eh(this,a);return Eg(this.b.g,a)?(this.i=null,this.g-=this.b.get(a).length,this.b.remove(a)):!1};f.clear=function(){this.b=this.i=null;this.g=0};f.isEmpty=function(){ch(this);return 0==this.g};
function fh(a,b){ch(a);b=eh(a,b);return Eg(a.b.g,b)}f.yb=function(){ch(this);for(var a=this.b.hb(),b=this.b.yb(),c=[],d=0;d<b.length;d++)for(var e=a[d],g=0;g<e.length;g++)c.push(b[d]);return c};f.hb=function(a){ch(this);var b=[];if(t(a))fh(this,a)&&(b=tb(b,this.b.get(eh(this,a))));else{a=this.b.hb();for(var c=0;c<a.length;c++)b=tb(b,a[c])}return b};f.set=function(a,b){ch(this);this.i=null;a=eh(this,a);fh(this,a)&&(this.g-=this.b.get(a).length);this.b.set(a,[b]);this.g+=1;return this};
f.get=function(a,b){var c=a?this.hb(a):[];return 0<c.length?String(c[0]):b};function gh(a,b,c){a.remove(b);0<c.length&&(a.i=null,a.b.set(eh(a,b),ub(c)),a.g+=c.length)}f.toString=function(){if(this.i)return this.i;if(!this.b)return"";for(var a=[],b=this.b.yb(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.hb(d),g=0;g<d.length;g++){var h=e;""!==d[g]&&(h+="="+encodeURIComponent(String(d[g])));a.push(h)}return this.i=a.join("&")};
f.clone=function(){var a=new Tg;a.i=this.i;this.b&&(a.b=this.b.clone(),a.g=this.g);return a};function eh(a,b){var c=String(b);a.j&&(c=c.toLowerCase());return c}function Zg(a,b){b&&!a.j&&(ch(a),a.i=null,a.b.forEach(function(a,b){var c=b.toLowerCase();b!=c&&(this.remove(b),gh(this,c,a))},a));a.j=b};function hh(){}hh.prototype.Bb=function(){};function ih(a,b,c,d,e,g,h,k,n){var p=jh(c),q=lf(a),x=bf(a);if(x){var H=Oe(x),x=Math.max(q.left,H.left),P=Math.min(q.left+q.width,H.left+H.width);if(x<=P){var Da=Math.max(q.top,H.top),H=Math.min(q.top+q.height,H.top+H.height);Da<=H&&(q.left=x,q.top=Da,q.width=P-x,q.height=H-Da)}}x=kd(a);Da=kd(c);if(x.b!=Da.b){P=x.b.body;var Da=wd(Da.b),H=new C(0,0),za=xd(md(P));if(Nc(za,"parent")){var yb=P;do{var dn=za==Da?cf(yb):jf(yb);H.x+=dn.x;H.y+=dn.y}while(za&&za!=Da&&za!=za.parent&&(yb=za.frameElement)&&(za=
za.parent))}P=Jc(H,cf(P));!E||dd(9)||td(x.b)||(P=Jc(P,ud(x.b)));q.left+=P.x;q.top+=P.y}a=kh(a,b);b=q.left;a&4?b+=q.width:a&2&&(b+=q.width/2);q=new C(b,q.top+(a&1?q.height:0));q=Jc(q,p);e&&(q.x+=(a&4?-1:1)*e.x,q.y+=(a&1?-1:1)*e.y);var jb;if(h)if(n)jb=n;else if(jb=bf(c))jb.top-=p.y,jb.right-=p.x,jb.bottom-=p.y,jb.left-=p.x;return lh(q,c,d,g,jb,h,k)}
function jh(a){var b;if(a=a.offsetParent){var c="HTML"==a.tagName||"BODY"==a.tagName;c&&"static"==Ve(a,"position")||(b=cf(a),c||(c=(c=nf(a))&&Tc?-a.scrollLeft:!c||Sc&&F("8")||"visible"==Ve(a,"overflowX")?a.scrollLeft:a.scrollWidth-a.clientWidth-a.scrollLeft,b=Jc(b,new C(c,a.scrollTop))))}return b||new C}
function lh(a,b,c,d,e,g,h){a=a.clone();var k=kh(b,c);c=kf(b);h=h?h.clone():c.clone();a=a.clone();h=h.clone();var n=0;if(d||0!=k)k&4?a.x-=h.width+(d?d.right:0):k&2?a.x-=h.width/2:d&&(a.x+=d.left),k&1?a.y-=h.height+(d?d.bottom:0):d&&(a.y+=d.top);if(g){if(e){d=a;k=h;n=0;65==(g&65)&&(d.x<e.left||d.x>=e.right)&&(g&=-2);132==(g&132)&&(d.y<e.top||d.y>=e.bottom)&&(g&=-5);d.x<e.left&&g&1&&(d.x=e.left,n|=1);if(g&16){var p=d.x;d.x<e.left&&(d.x=e.left,n|=4);d.x+k.width>e.right&&(k.width=Math.min(e.right-d.x,
p+k.width-e.left),k.width=Math.max(k.width,0),n|=4)}d.x+k.width>e.right&&g&1&&(d.x=Math.max(e.right-k.width,e.left),n|=1);g&2&&(n|=(d.x<e.left?16:0)|(d.x+k.width>e.right?32:0));d.y<e.top&&g&4&&(d.y=e.top,n|=2);g&32&&(p=d.y,d.y<e.top&&(d.y=e.top,n|=8),d.y+k.height>e.bottom&&(k.height=Math.min(e.bottom-d.y,p+k.height-e.top),k.height=Math.max(k.height,0),n|=8));d.y+k.height>e.bottom&&g&4&&(d.y=Math.max(e.bottom-k.height,e.top),n|=2);g&8&&(n|=(d.y<e.top?64:0)|(d.y+k.height>e.bottom?128:0));e=n}else e=
256;n=e}e=new Me(0,0,0,0);e.left=a.x;e.top=a.y;e.width=h.width;e.height=h.height;a=n;if(a&496)return a;We(b,new C(e.left,e.top));h=e.ua();Kc(c,h)||qf(b,h);return a}function kh(a,b){return(b&8&&nf(a)?b^4:b)&-9};function mh(a,b){this.b=a instanceof C?a:new C(a,b)}y(mh,hh);mh.prototype.Bb=function(a,b,c,d){lh(this.b,a,b,c,null,null,d)};function nh(a){Q.call(this);this.qa=a;a=E?"focusout":"blur";this.b=L(this.qa,E?"focusin":"focus",this,!E);this.g=L(this.qa,a,this,!E)}y(nh,Q);nh.prototype.handleEvent=function(a){var b=new ge(a.i);b.type="focusin"==a.type||"focus"==a.type?"focusin":"focusout";this.dispatchEvent(b)};nh.prototype.ma=function(){nh.V.ma.call(this);De(this.b);De(this.g);delete this.qa};function oh(a,b,c){this.element=a;this.b=b;this.s=c}y(oh,hh);oh.prototype.Bb=function(a,b,c){ih(this.element,this.b,a,b,void 0,c,this.s)};function ph(a,b){this.b=a instanceof C?a:new C(a,b)}y(ph,hh);ph.prototype.Bb=function(a,b,c,d){ih(Ze(a),0,a,b,this.b,c,null,d)};function qh(a){this.b=new Cg;if(a){a=Fg(a);for(var b=a.length,c=0;c<b;c++){var d=a[c];this.b.set(rh(d),d)}}}function rh(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+wa(a):b.charAt(0)+a}f=qh.prototype;f.qc=function(){return this.b.qc()};f.remove=function(a){return this.b.remove(rh(a))};f.clear=function(){this.b.clear()};f.isEmpty=function(){return this.b.isEmpty()};f.contains=function(a){a=rh(a);return Eg(this.b.g,a)};f.hb=function(){return this.b.hb()};f.clone=function(){return new qh(this)};
f.lf=function(){return this.b.lf(!1)};function U(a){$d.call(this);this.ha=a;this.i={}}y(U,$d);var sh=[];f=U.prototype;f.listen=function(a,b,c,d){return th(this,a,b,c,d)};function th(a,b,c,d,e,g){sa(c)||(c&&(sh[0]=c.toString()),c=sh);for(var h=0;h<c.length;h++){var k=L(b,c[h],d||a.handleEvent,e||!1,g||a.ha||a);if(!k)break;a.i[k.key]=k}return a}f.Bc=function(a,b,c,d){return uh(this,a,b,c,d)};
function uh(a,b,c,d,e,g){if(sa(c))for(var h=0;h<c.length;h++)uh(a,b,c[h],d,e,g);else{b=Be(b,c,d||a.handleEvent,e,g||a.ha||a);if(!b)return a;a.i[b.key]=b}return a}f.Ta=function(a,b,c,d,e){if(sa(b))for(var g=0;g<b.length;g++)this.Ta(a,b[g],c,d,e);else c=c||this.handleEvent,e=e||this.ha||this,c=ve(c),d=!!d,b=ke(a)?a.Kd(b,c,d,e):a?(a=xe(a))?a.Kd(b,c,d,e):null:null,b&&(De(b),delete this.i[b.key]);return this};function vh(a){Jb(a.i,function(a,c){this.i.hasOwnProperty(c)&&De(a)},a);a.i={}}
f.ma=function(){U.V.ma.call(this);vh(this)};f.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function wh(a,b,c,d,e,g){if(!(E||Rc||Uc&&F("525")))return!0;if(Wc&&e)return xh(a);if(e&&!d)return!1;u(b)&&(b=yh(b));e=17==b||18==b||Wc&&91==b;if((!c||Wc)&&e||Wc&&16==b&&(d||g))return!1;if((Uc||Rc)&&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}if(E&&d&&b==a)return!1;switch(a){case 13:return!0;case 27:return!(Uc||Rc)}return xh(a)}
function xh(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||(Uc||Rc)&&!a)return!0;switch(a){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return!0;default:return!1}}function yh(a){if(Tc)a=zh(a);else if(Wc&&Uc)switch(a){case 93:a=91}return a}
function zh(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 Ah(a,b){Q.call(this);this.i=new U(this);this.Sf(a||null);b&&(this.nd=b)}y(Ah,Q);f=Ah.prototype;f.qa=null;f.Og=!0;f.Ng=null;f.rd=!1;f.lg=-1;f.Yg=!0;f.nd="toggle_display";f.S=function(){return this.qa};f.Sf=function(a){Bh(this);this.qa=a};function Bh(a){if(a.rd)throw Error("Can not change this state of the popup while showing.");}f.Aa=function(){return this.rd};
f.setVisible=function(a){this.Ga&&this.Ga.stop();this.ta&&this.ta.stop();if(a){if(!this.rd&&this.xg()){if(!this.qa)throw Error("Caller must call setElement before trying to show the popup");this.ld();a=md(this.qa);if(this.Og)if(this.i.listen(a,"mousedown",this.Wh,!0),E){var b;try{b=a.activeElement}catch(d){}for(;b&&"IFRAME"==b.nodeName;){try{var c=Kd(b)}catch(d){break}a=c;b=a.activeElement}this.i.listen(a,"mousedown",this.Wh,!0);this.i.listen(a,"deactivate",this.Vh)}else this.i.listen(a,"blur",this.Vh);
"toggle_display"==this.nd?(this.qa.style.visibility="visible",O(this.qa,!0)):"move_offscreen"==this.nd&&this.ld();this.rd=!0;this.lg=Ca();this.Ga?(Be(this.Ga,"end",this.Re,!1,this),this.Ga.play()):this.Re()}}else Ch(this)};f.ld=r;function Ch(a,b){a.rd&&a.dispatchEvent({type:"beforehide",target:b})&&(a.i&&vh(a.i),a.rd=!1,Ca(),a.ta?(Be(a.ta,"end",w(a.Tg,b),!1,a),a.ta.play()):a.Tg(b))}f.Tg=function(a){"toggle_display"==this.nd?this.jk():"move_offscreen"==this.nd&&(this.qa.style.top="-10000px");this.Xd(a)};
f.jk=function(){this.qa.style.visibility="hidden";O(this.qa,!1)};f.xg=function(){return this.dispatchEvent("beforeshow")};f.Re=function(){this.dispatchEvent("show")};f.Xd=function(a){this.dispatchEvent({type:"hide",target:a})};f.Wh=function(a){a=a.target;Jd(this.qa,a)||Dh(this,a)||150>Ca()-this.lg||Ch(this,a)};
f.Vh=function(a){if(this.Yg){var b=md(this.qa);if("undefined"!=typeof document.activeElement){if(a=b.activeElement,!a||Jd(this.qa,a)||"BODY"==a.tagName)return}else if(a.target!=b)return;150>Ca()-this.lg||Ch(this)}};function Dh(a,b){return kb(a.Ng||[],function(a){return b===a||Jd(a,b)})}f.ma=function(){Ah.V.ma.call(this);this.i.wa();be(this.Ga);be(this.ta);delete this.qa;delete this.i;delete this.Ng};function Eh(a,b){this.je=8;this.Za=b||void 0;Ah.call(this,a)}y(Eh,Ah);Eh.prototype.getPosition=function(){return this.Za||null};Eh.prototype.setPosition=function(a){this.Za=a||void 0;this.Aa()&&this.ld()};Eh.prototype.ld=function(){if(this.Za){var a=!this.Aa()&&"move_offscreen"!=this.nd,b=this.S();a&&(b.style.visibility="hidden",O(b,!0));this.Za.Bb(b,this.je,this.ng);a&&O(b,!1)}};function Fh(a,b,c){this.j=c||(a?kd(G(a)):kd());Eh.call(this,this.j.Ja("DIV",{style:"position:absolute;display:none;"}));this.o=new C(1,1);this.U=new qh;this.s=null;a&&(c=a=G(a),this.U.b.set(rh(c),c),L(a,"mouseover",this.Uf,!1,this),L(a,"mouseout",this.Be,!1,this),L(a,"mousemove",this.od,!1,this),L(a,"focus",this.mh,!1,this),L(a,"blur",this.Be,!1,this));null!=b&&Ld(this.S(),b)}y(Fh,Eh);var Gh=[];f=Fh.prototype;f.Xa=null;f.className="goog-tooltip";f.Ze=500;f.Zf=0;f.Ef=function(){return this.Zf};
f.Sf=function(a){var b=this.S();b&&K(b);Fh.V.Sf.call(this,a);a?(b=this.j.b.body,b.insertBefore(a,b.lastChild),be(this.s),this.s=new nh(this.S()),ae(this,this.s),L(this.s,"focusin",this.Xc,void 0,this),L(this.s,"focusout",this.$d,void 0,this)):(be(this.s),this.s=null)};f.getState=function(){return this.ra?this.Aa()?4:1:this.ha?3:this.Aa()?2:0};f.He=function(a){if(!this.Aa())return!1;var b=cf(this.S()),c=kf(this.S());return b.x<=a.x&&a.x<=b.x+c.width&&b.y<=a.y&&a.y<=b.y+c.height};
f.xg=function(){if(!Ah.prototype.xg.call(this))return!1;if(this.anchor)for(var a,b=0;a=Gh[b];b++)Jd(a.S(),this.anchor)||a.setVisible(!1);pb(Gh,this);a=this.S();a.className=this.className;this.Xc();L(a,"mouseover",this.Yf,!1,this);L(a,"mouseout",this.zh,!1,this);Hh(this);return!0};
f.Xd=function(){qb(Gh,this);for(var a=this.S(),b,c=0;b=Gh[c];c++)b.anchor&&Jd(a,b.anchor)&&b.setVisible(!1);this.Ic&&this.Ic.$d();Ce(a,"mouseover",this.Yf,!1,this);Ce(a,"mouseout",this.zh,!1,this);this.anchor=void 0;0==this.getState()&&(this.lb=!1);Ah.prototype.Xd.call(this)};f.Ud=function(a,b){this.anchor==a&&this.U.contains(this.anchor)&&(this.lb||!this.Ll?(this.setVisible(!1),this.Aa()||(this.anchor=a,this.setPosition(b||Ih(this,0)),this.setVisible(!0))):this.anchor=void 0);this.ra=void 0};
f.Fh=function(a){this.ha=void 0;if(a==this.anchor){a=this.j;var b;a=(b=Wd(a.b))&&this.S()&&a.contains(this.S(),b);this.Xa&&(this.Xa==this.S()||this.U.contains(this.Xa))||a||this.R&&this.R.Xa||this.setVisible(!1)}};function Jh(a,b){var c=ud(a.j.b);a.o.x=b.clientX+c.x;a.o.y=b.clientY+c.y}f.Uf=function(a){var b=Kh(this,a.target);this.Xa=b;this.Xc();b!=this.anchor&&(this.anchor=b,this.df(b),Lh(this),Jh(this,a))};
function Kh(a,b){try{for(;b&&!a.U.contains(b);)b=b.parentNode;return b}catch(c){return null}}f.od=function(a){Jh(this,a);this.lb=!0};f.mh=function(a){this.Xa=a=Kh(this,a.target);this.lb=!0;if(this.anchor!=a){this.anchor=a;var b=Ih(this,1);this.Xc();this.df(a,b);Lh(this)}};function Ih(a,b){if(0==b){var c=a.o.clone();return new Mh(c)}return new Nh(a.Xa)}function Lh(a){if(a.anchor)for(var b,c=0;b=Gh[c];c++)Jd(b.S(),a.anchor)&&(b.R=a,a.Ic=b)}
f.Be=function(a){var b=Kh(this,a.target),c=Kh(this,a.relatedTarget);b!=c&&(b==this.Xa&&(this.Xa=null),Hh(this),this.lb=!1,!this.Aa()||a.relatedTarget&&Jd(this.S(),a.relatedTarget)?this.anchor=void 0:this.$d())};f.Yf=function(){var a=this.S();this.Xa!=a&&(this.Xc(),this.Xa=a)};f.zh=function(a){var b=this.S();this.Xa!=b||a.relatedTarget&&Jd(b,a.relatedTarget)||(this.Xa=null,this.$d())};f.df=function(a,b){this.ra||(this.ra=R(v(this.Ud,this,a,b),this.Ze))};
function Hh(a){a.ra&&(l.clearTimeout(a.ra),a.ra=void 0)}f.$d=function(){2==this.getState()&&(this.ha=R(v(this.Fh,this,this.anchor),this.Ef()))};f.Xc=function(){this.ha&&(l.clearTimeout(this.ha),this.ha=void 0)};
f.ma=function(){var a;this.setVisible(!1);Hh(this);for(var b=this.U.hb(),c=0;a=b[c];c++)Ce(a,"mouseover",this.Uf,!1,this),Ce(a,"mouseout",this.Be,!1,this),Ce(a,"mousemove",this.od,!1,this),Ce(a,"focus",this.mh,!1,this),Ce(a,"blur",this.Be,!1,this);this.U.clear();this.S()&&K(this.S());this.Xa=null;delete this.j;Fh.V.ma.call(this)};function Mh(a,b){ph.call(this,a,b)}y(Mh,ph);
Mh.prototype.Bb=function(a,b,c){b=Ze(a);b=bf(b);c=c?new Je(c.top+10,c.right,c.bottom,c.left+10):new Je(10,0,0,10);lh(this.b,a,8,c,b,9)&496&&lh(this.b,a,8,c,b,5)};function Nh(a){oh.call(this,a,5)}y(Nh,oh);Nh.prototype.Bb=function(a,b,c){var d=new C(10,0);ih(this.element,this.b,a,b,d,c,9)&496&&ih(this.element,4,a,1,d,c,5)};function Oh(a,b,c){Fh.call(this,a,b,c)}y(Oh,Fh);f=Oh.prototype;f.yf=!1;f.ee=!1;f.Re=function(){Oh.V.Re.call(this);this.Na=Ne(lf(this.S()));this.anchor&&(this.mb=Ne(lf(this.anchor)));this.ee=this.yf;L(this.j.b,"mousemove",this.od,!1,this)};f.Xd=function(){Ce(this.j.b,"mousemove",this.od,!1,this);this.mb=this.Na=null;this.ee=!1;Oh.V.Xd.call(this)};
f.He=function(a){if(this.va){var b=cf(this.S()),c=kf(this.S());return b.x-this.va.left<=a.x&&a.x<=b.x+c.width+this.va.right&&b.y-this.va.top<=a.y&&a.y<=b.y+c.height+this.va.bottom}return Oh.V.He.call(this,a)};function Ph(a,b){if(a.mb&&a.mb.contains(b)||a.He(b))return!0;var c=a.R;return!!c&&c.He(b)}f.Fh=function(a){this.ha=void 0;a!=this.anchor||Ph(this,this.o)||this.Xa||this.R&&this.R.Xa||Tc&&!this.o.x&&!this.o.y||this.setVisible(!1)};
f.od=function(a){var b=this.Aa();if(this.Na){var c=ud(this.j.b),c=new C(a.clientX+c.x,a.clientY+c.y);Ph(this,c)?b=!1:this.ee&&(b=Le(this.Na,c)>=Le(this.Na,this.o))}if(b){if(this.$d(),this.Xa=null,b=this.R)b.Xa=null}else 3==this.getState()&&this.Xc();Oh.V.od.call(this,a)};f.Yf=function(){this.Xa!=this.S()&&(this.ee=!1,this.Xa=this.S())};f.Ef=function(){return this.ee?100:Oh.V.Ef.call(this)};function Qh(a,b){var c=new Oh(a),d=He(b.innerHTML),e=c.S();e&&(e.innerHTML=wc(d));c.className="buy-tip-card";c.va=new Je(5,5,5,5);c.yf=!0;c.Ze=500;c.Zf=250};/*
 Portions of this code are from MochiKit, received by
 The Closure Authors under the MIT license. All other code is Copyright
 2005-2009 The Closure Authors. All Rights Reserved.
*/
function Rh(a,b){this.o=[];this.Qb=a;this.rb=b||null;this.j=this.b=!1;this.i=void 0;this.ha=this.ra=this.R=!1;this.s=0;this.g=null;this.U=0}Rh.prototype.cancel=function(a){if(this.b)this.i instanceof Rh&&this.i.cancel();else{if(this.g){var b=this.g;delete this.g;a?b.cancel(a):(b.U--,0>=b.U&&b.cancel())}this.Qb?this.Qb.call(this.rb,this):this.ha=!0;this.b||(a=new Sh,Th(this),Uh(this,!1,a))}};Rh.prototype.ka=function(a,b){this.R=!1;Uh(this,a,b)};function Uh(a,b,c){a.b=!0;a.i=c;a.j=!b;Vh(a)}
function Th(a){if(a.b){if(!a.ha)throw new Wh;a.ha=!1}}Rh.prototype.callback=function(a){Th(this);Uh(this,!0,a)};function Xh(a,b,c,d){a.o.push([b,c,d]);a.b&&Vh(a)}Rh.prototype.then=function(a,b,c){var d,e,g=new Sf(function(a,b){d=a;e=b});Xh(this,d,function(a){a instanceof Sh?g.cancel():e(a)});return g.then(a,b,c)};Qf(Rh);function Yh(a){return kb(a.o,function(a){return ua(a[1])})}
function Vh(a){if(a.s&&a.b&&Yh(a)){var b=a.s,c=Zh[b];c&&(l.clearTimeout(c.Ia),delete Zh[b]);a.s=0}a.g&&(a.g.U--,delete a.g);for(var b=a.i,d=c=!1;a.o.length&&!a.R;){var e=a.o.shift(),g=e[0],h=e[1],e=e[2];if(g=a.j?h:g)try{var k=g.call(e||a.rb,b);m(k)&&(a.j=a.j&&(k==b||k instanceof Error),a.i=b=k);if(Rf(b)||"function"===typeof l.Promise&&b instanceof l.Promise)d=!0,a.R=!0}catch(n){b=n,a.j=!0,Yh(a)||(c=!0)}}a.i=b;d&&(k=v(a.ka,a,!0),d=v(a.ka,a,!1),b instanceof Rh?(Xh(b,k,d),b.ra=!0):b.then(k,d));c&&(b=
new $h(b),Zh[b.Ia]=b,a.s=b.Ia)}function Wh(){Fa.call(this)}y(Wh,Fa);Wh.prototype.message="Deferred has already fired";Wh.prototype.name="AlreadyCalledError";function Sh(){Fa.call(this)}y(Sh,Fa);Sh.prototype.message="Deferred was canceled";Sh.prototype.name="CanceledError";function $h(a){this.Ia=l.setTimeout(v(this.g,this),0);this.b=a}$h.prototype.g=function(){delete Zh[this.Ia];throw this.b;};var Zh={};function ai(a,b){var c=b||{},d=c.document||document,e=oc(a),g=J("SCRIPT"),h={oi:g,Wc:void 0},k=new Rh(bi,h),n=null,p=null!=c.timeout?c.timeout:5E3;0<p&&(n=window.setTimeout(function(){ci(g,!0);var a=new di(1,"Timeout reached for loading script "+e);Th(k);Uh(k,!1,a)},p),h.Wc=n);g.onload=g.onreadystatechange=function(){g.readyState&&"loaded"!=g.readyState&&"complete"!=g.readyState||(ci(g,c.Oi||!1,n),k.callback(null))};g.onerror=function(){ci(g,!0,n);var a=new di(0,"Error while loading script "+e);Th(k);
Uh(k,!1,a)};h=c.attributes||{};Sb(h,{type:"text/javascript",charset:"UTF-8",src:e});qd(g,h);ei(d).appendChild(g);return k}function ei(a){var b=(a||document).getElementsByTagName("HEAD");return b&&b.length?b[0]:a.documentElement}function bi(){if(this&&this.oi){var a=this.oi;a&&"SCRIPT"==a.tagName&&ci(a,!0,this.Wc)}}function ci(a,b,c){null!=c&&l.clearTimeout(c);a.onload=r;a.onerror=r;a.onreadystatechange=r;b&&window.setTimeout(function(){K(a)},0)}
function di(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);Fa.call(this,c);this.code=a}y(di,Fa);function fi(a,b){this.g=new S(a);this.b=b?b:"callback";this.Wc=5E3}var gi=0;fi.prototype.send=function(a,b,c,d){a=a||null;d=d||"_"+(gi++).toString(36)+Ca().toString(36);var e="_callbacks___"+d,g=this.g.clone();if(a)for(var h in a)if(!a.hasOwnProperty||a.hasOwnProperty(h)){var k=g,n=h,p=a[h];sa(p)||(p=[String(p)]);gh(k.b,n,p)}b&&(l[e]=hi(d,b),b=this.b,h=e,sa(h)||(h=[String(h)]),gh(g.b,b,h));b={timeout:this.Wc,Oi:!0};g=g.toString();Ie();g=pc(g);g=ai(g,b);Xh(g,null,ii(d,a,c),void 0);return{Ia:d,Vg:g}};
fi.prototype.cancel=function(a){a&&(a.Vg&&a.Vg.cancel(),a.Ia&&ji(a.Ia,!1))};function ii(a,b,c){return function(){ji(a,!1);c&&c(b)}}function hi(a,b){return function(c){ji(a,!0);b.apply(void 0,arguments)}}function ji(a,b){var c="_callbacks___"+a;if(l[c])if(b)try{delete l[c]}catch(d){l[c]=void 0}else l[c]=r};function ki(a,b,c){Q.call(this);this.U=a;this.ka=c;this.i=b;L(b,["hilite","select","canceldismiss","dismiss"],this.handleEvent,!1,this);this.j=null;this.b=[];this.o=-1;this.g=0;this.s=this.R=null;this.ra={}}y(ki,Q);f=ki.prototype;f.Pg=!0;f.qf=!1;f.getToken=function(){return this.j};
f.handleEvent=function(a){var b=this.U;if(a.target==this.i)switch(a.type){case "hilite":this.jc(a.row);break;case "select":var c=!1;if(u(a.row)){a=a.row;var d=this.b[li(this,a)],c=!!d&&b.ig&&b.ig(d);d&&!c&&this.o!=a&&this.jc(a)}c||this.wd();break;case "canceldismiss":mi(this);break;case "dismiss":ni(this)}};
f.setToken=function(a){if(this.j!=a){this.j=a;a=this.U;var b=this.j,c=v(this.rk,this),d=new S("//suggestqueries.google.com/complete/search");T(d,"client","books");T(d,"ds","bo");T(d,"q",b);b=v(a.g,a,c);a.b&&a.b.cancel();a.b=new fi(d);a.b.send(null,b);mi(this)}};function oi(a){for(var b=a.g+a.b.length-1,c=a.o,d=0;d<a.b.length;d++){if(c>=a.g&&c<b)c++;else if(-1==c)c=a.g;else{a.qf&&c==b&&a.jc(-1);break}if(a.jc(c))break}}
f.jc=function(a){var b=li(this,a),c=this.b[b];return c&&this.U.ig&&this.U.ig(c)?!1:(this.o=a,this.i.jc(a),-1!=b)};
f.wd=function(){var a=li(this,this.o);if(-1!=a){var b=this.b[a],c=this.ka;if(c.Oa){var d=b.toString();if(m(void 0)?0:c.j){var e=pi(c,c.ab(),qi(c.Oa)[0]),g=ri(c,c.ab());c.va.test(d)||(d=d.replace(/[\s\xa0]+$/,"")+c.ra);e&&!Ja(g[e-1])&&(d=" "+d);e==g.length-1&&(d+=" ");if(d!=g[e]){g[e]=d;d=c.Oa;(Tc||E&&F("9"))&&d.blur();d.value=g.join("");for(var h=0,k=0;k<=e;k++)h+=g[k].length;d.focus();e=h;g=c.Oa;d=e;si(g)?g.selectionStart=d:E&&!F("9")&&(h=ti(g),k=h[0],k.inRange(h[1])&&(d=ui(g,d),k.collapse(!0),k.move("character",
d),k.select()));g=c.Oa;si(g)?g.selectionEnd=e:E&&!F("9")&&(h=ti(g),d=h[1],h[0].inRange(d)&&(e=ui(g,e),g=ui(g,qi(g)[0]),d.collapse(!0),d.moveEnd("character",e-g),d.select()))}}else c.Oa.value=d;c.Ag=!0}this.dismiss();this.dispatchEvent({type:"update",row:b,index:a});return!0}this.dismiss();this.dispatchEvent({type:"update",row:null,index:null});return!1};
f.dismiss=function(){this.o=-1;this.j=null;this.g+=this.b.length;this.b=[];window.clearTimeout(this.s);this.s=null;this.i.dismiss();this.dispatchEvent("suggestionsupdate");this.dispatchEvent("dismiss")};function ni(a){a.s||(a.s=window.setTimeout(v(a.dismiss,a),100))}f.Ch=function(){return this.s?(window.clearTimeout(this.s),this.s=null,!0):!1};function mi(a){a.Ch()||window.setTimeout(v(a.Ch,a),10)}f.ma=function(){ki.V.ma.call(this);delete this.ra;this.i.wa();this.ka.wa();this.U=null};
f.rk=function(a,b,c){this.j==a&&this.zg(b,c)};f.zg=function(a,b){var c="object"==ra(b)&&b,d=(c?c.Ql():b)?li(this,this.o):-1;this.g+=this.b.length;this.b=a;for(var e=[],g=0;g<a.length;++g)e.push({id:this.g+g,data:a[g]});g=null;this.R&&(g=this.ra[wa(this.R)]||this.R);this.i.Bg(g);this.i.zg(e,this.j,this.R);g=this.Pg;c&&void 0!==c.$i()&&(g=c.$i());this.o=-1;(g||0<=d)&&e.length&&this.j&&(0<=d?this.jc(this.g+d):oi(this));this.dispatchEvent("suggestionsupdate")};
function li(a,b){var c=b-a.g;return 0>c||c>=a.b.length?-1:c}f.update=function(a){this.ka.update(a)};var vi;Ub("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var wi="combobox grid group listbox menu menubar radiogroup row rowgroup tablist textbox toolbar tree treegrid".split(" ");function xi(a,b){b?a.setAttribute("role",b):a.removeAttribute("role")}
function yi(a,b,c){sa(c)&&(c=c.join(" "));var d="aria-"+b;""===c||void 0==c?(vi||(vi={atomic:!1,autocomplete:"none",dropeffect:"none",haspopup:!1,live:"off",multiline:!1,multiselectable:!1,orientation:"vertical",readonly:!1,relevant:"additions text",required:!1,sort:"none",busy:!1,disabled:!1,hidden:!1,invalid:"false"}),c=vi,b in c?a.setAttribute(d,c[b]):a.removeAttribute(d)):a.setAttribute(d,c)}
function zi(a){var b=a.getAttribute("aria-activedescendant");return md(a).getElementById(null==b||void 0==b?"":String(b))}function Ai(a,b){var c="";b&&(c=b.id);yi(a,"activedescendant",c)};function qi(a){var b=0,c=0;if(si(a))b=a.selectionStart,c=-1;else if(E&&!F("9")){var d=ti(a),e=d[0],d=d[1];if(e.inRange(d)){e.setEndPoint("EndToStart",d);if("textarea"==a.type){d.duplicate();b=a=e.text;for(c=!1;!c;)0==e.compareEndPoints("StartToEnd",e)?c=!0:(e.moveEnd("character",-1),e.text==a?b+="\r\n":c=!0);e=[b.length,-1];return e}b=e.text.length;c=-1}}return[b,c]}
function ti(a){var b=a.ownerDocument||a.document,c=b.selection.createRange();"textarea"==a.type?(b=b.body.createTextRange(),b.moveToElementText(a)):b=a.createTextRange();return[b,c]}function ui(a,b){"textarea"==a.type&&(b=a.value.substring(0,b).replace(/(\r\n|\r|\n)/g,"\n").length);return b}function si(a){try{return"number"==typeof a.selectionStart}catch(b){return!1}};function Bi(a,b){Q.call(this);a&&Ci(this,a,b)}y(Bi,Q);f=Bi.prototype;f.qa=null;f.Le=null;f.jg=null;f.Me=null;f.Cb=-1;f.Ac=-1;f.rf=!1;
var Di={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},Ei={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},Fi=E||Rc||Uc&&F("525"),Gi=Wc&&Tc;f=Bi.prototype;
f.Jj=function(a){if(Uc||Rc)if(17==this.Cb&&!a.ctrlKey||18==this.Cb&&!a.altKey||Wc&&91==this.Cb&&!a.metaKey)this.Ac=this.Cb=-1;-1==this.Cb&&(a.ctrlKey&&17!=a.b?this.Cb=17:a.altKey&&18!=a.b?this.Cb=18:a.metaKey&&91!=a.b&&(this.Cb=91));Fi&&!wh(a.b,this.Cb,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey)?this.handleEvent(a):(this.Ac=yh(a.b),Gi&&(this.rf=a.altKey))};f.ej=function(a){this.Ac=this.Cb=-1;this.rf=a.altKey};
f.handleEvent=function(a){var b=a.i,c,d,e=b.altKey;E&&"keypress"==a.type?(c=this.Ac,d=13!=c&&27!=c?b.keyCode:0):(Uc||Rc)&&"keypress"==a.type?(c=this.Ac,d=0<=b.charCode&&63232>b.charCode&&xh(c)?b.charCode:0):Qc&&!Uc?(c=this.Ac,d=xh(c)?b.keyCode:0):(c=b.keyCode||this.Ac,d=b.charCode||0,Gi&&(e=this.rf),Wc&&63==d&&224==c&&(c=191));var g=c=yh(c);c?63232<=c&&c in Di?g=Di[c]:25==c&&a.shiftKey&&(g=9):b.keyIdentifier&&b.keyIdentifier in Ei&&(g=Ei[b.keyIdentifier]);a=g==this.Cb;this.Cb=g;b=new Hi(g,d,a,b);
b.altKey=e;this.dispatchEvent(b)};f.S=function(){return this.qa};function Ci(a,b,c){a.Me&&Ii(a);a.qa=b;a.Le=L(a.qa,"keypress",a,c);a.jg=L(a.qa,"keydown",a.Jj,c,a);a.Me=L(a.qa,"keyup",a.ej,c,a)}function Ii(a){a.Le&&(De(a.Le),De(a.jg),De(a.Me),a.Le=null,a.jg=null,a.Me=null);a.qa=null;a.Cb=-1;a.Ac=-1}f.ma=function(){Bi.V.ma.call(this);Ii(this)};function Hi(a,b,c,d){ge.call(this,d);this.type="key";this.b=a;this.s=b;this.repeat=c}y(Hi,ge);var Ji=B("iPhone")&&!B("iPod")&&!B("iPad")||B("iPod"),Ki=B("iPad"),Li=B("Android")&&!((B("Chrome")||B("CriOS"))&&!B("Edge")||B("Firefox")||B("Opera")||B("Silk"));function Mi(a,b,c,d){$d.call(this);d=d||150;this.j=null!=c?c:!0;this.s=a||",;";this.ra=this.s.charAt(0);a=this.j?"[\\s"+this.s+"]+":"[\\s]+";this.ka=new RegExp("^"+a+"|"+a+"$","g");this.va=new RegExp("\\s*["+this.s+"]$");this.ha=b||"";this.ta=this.j;this.i=0<d?new hg(d):null;this.g=new U(this);this.R=new U(this);this.o=new Bi;this.U=-1}y(Mi,$d);var Ni=(Ji||Ki)&&!F("533.17.9");f=Mi.prototype;f.mf=null;f.Oa=null;f.mg="";f.Gc=!1;f.Ag=!1;f.ab=function(){return this.Oa.value};
f.pj=function(a){for(var b=0;b<arguments.length;b++){var c=arguments[b];va(c)&&1==c.nodeType&&(xi(c,"combobox"),yi(c,"autocomplete","list"));this.g.listen(c,"focus",this.nh);this.g.listen(c,"blur",this.qj);this.Oa||(this.R.listen(c,"keydown",this.Qk),va(c)&&1==c.nodeType&&Wd(md(c))==c&&Oi(this,c))}};f.ma=function(){Mi.V.ma.call(this);null!=this.mf&&window.clearTimeout(this.mf);this.g.wa();delete this.g;this.R.wa();this.o.wa();be(this.i)};
f.Kb=function(a){switch(a.b){case 40:if(this.b.i.Aa())return oi(this.b),a.preventDefault(),!0;if(!this.j)return this.update(!0),a.preventDefault(),!0;break;case 38:if(this.b.i.Aa()){a:for(var b=this.b,c=b.o,d=0;d<b.b.length;d++){if(c>b.g)c--;else{b.qf&&c==b.g&&b.jc(-1);break}if(b.jc(c))break a}a.preventDefault();return!0}break;case 9:if(!this.b.i.Aa()||a.shiftKey)this.b.dismiss();else if(this.update(),this.b.wd()&&this.ta)return a.preventDefault(),!0;break;case 13:if(this.b.i.Aa()){if(this.update(),
this.b.wd())return a.preventDefault(),a.g(),!0}else this.b.dismiss();break;case 27:if(this.b.i.Aa())return this.b.dismiss(),a.preventDefault(),a.g(),!0;break;case 229:if(!this.Gc)return this.Gc||(this.g.listen(this.Oa,"keyup",this.Zh),this.g.listen(this.Oa,"keypress",this.Yh),this.Gc=!0),!0}return Pi(this,a)};function Pi(a,b){var c=a.j&&b.s&&-1!=a.s.indexOf(String.fromCharCode(b.s));c&&a.update();return c&&a.b.wd()?(b.preventDefault(),!0):!1}f.Kj=function(){return!1};
f.nh=function(a){Oi(this,a.target||null)};function Oi(a,b){vh(a.R);a.b&&mi(a.b);b!=a.Oa&&(a.Oa=b,a.i&&(a.i.start(),a.g.listen(a.i,"tick",a.oh)),a.mg=a.ab(),Ci(a.o,a.Oa),a.g.listen(a.o,"key",a.$h),a.g.listen(a.Oa,"mousedown",a.ai),E&&a.g.listen(a.Oa,"keypress",a.Xh))}f.qj=function(){Ni?this.mf=window.setTimeout(v(this.ii,this),0):this.ii()};
f.ii=function(){this.Oa&&(this.g.Ta(this.o,"key",this.$h),Ii(this.o),this.g.Ta(this.Oa,"keyup",this.Kj),this.g.Ta(this.Oa,"mousedown",this.ai),E&&this.g.Ta(this.Oa,"keypress",this.Xh),this.Gc&&Qi(this),this.Oa=null,this.i&&(this.i.stop(),this.g.Ta(this.i,"tick",this.oh)),this.b&&ni(this.b))};f.oh=function(){this.update()};f.Qk=function(a){this.nh(a)};f.$h=function(a){this.U=a.b;this.b&&this.Kb(a)};f.Yh=function(){this.Gc&&229!=this.U&&Qi(this)};
f.Zh=function(a){this.Gc&&(13==a.b||77==a.b&&a.ctrlKey)&&Qi(this)};f.ai=function(){};function Qi(a){a.Gc&&(a.Gc=!1,a.g.Ta(a.Oa,"keypress",a.Yh),a.g.Ta(a.Oa,"keyup",a.Zh))}f.Xh=function(a){Pi(this,a)};f.update=function(a){if(this.Oa&&(a||this.ab()!=this.mg)){if(a||!this.Ag){a=qi(this.Oa)[0];var b=this.ab();a=ri(this,b)[pi(this,b,a)];a=this.ka?String(a).replace(this.ka,""):a;this.b&&(this.b.R=this.Oa,this.b.setToken(a,this.ab()))}this.mg=this.ab()}this.Ag=!1};
function pi(a,b,c){a=ri(a,b);if(c==b.length)return a.length-1;for(var d=b=0,e=0;d<a.length&&e<=c;d++)e+=a[d].length,b=d;return b}function ri(a,b){if(!a.j)return[b];for(var c=String(b).split(""),d=[],e=[],g=0,h=!1;g<c.length;g++)a.ha&&-1!=a.ha.indexOf(c[g])?(h||(d.push(e.join("")),e.length=0),e.push(c[g]),h=!h):h||-1==a.s.indexOf(c[g])?e.push(c[g]):(e.push(c[g]),d.push(e.join("")),e.length=0);d.push(e.join(""));return d};function Ri(){}qa(Ri);Ri.prototype.b=0;function Si(a){return":"+(a.b++).toString(36)};function Ti(a,b,c,d){Q.call(this);this.ha=a||document.body;this.g=kd(this.ha);this.ra=!a;this.qa=null;this.ka="";this.b=[];this.o=[];this.ta=this.U=-1;this.R=!1;this.className="ac-renderer";this.Na="ac-highlighted";this.s=b||null;this.wb=null!=d?d:!0;this.mb=!!c}y(Ti,Q);f=Ti.prototype;f.S=function(){return this.qa};f.Bg=function(a){this.Ga=a};f.zg=function(a,b,c){this.ka=b;this.b=a;this.U=-1;this.ta=Ca();this.i=c;this.o=[];Ui(this)};f.dismiss=function(){this.R&&(this.R=!1,Vi(this,!1),O(this.qa,!1))};
function Wi(a){a.R||(a.R=!0,Vi(a,!0),O(a.qa,!0))}function Vi(a,b){a.i&&(yi(a.i,"haspopup",b),yi(a.qa,"expanded",b),yi(a.i,"expanded",b),b?yi(a.i,"owns",a.qa.id):(a.i.removeAttribute("aria-owns"),Ai(a.i,null)))}f.Aa=function(){return this.R};
function Xi(a,b){var c=0<=b&&b<a.b.length?a.b[b]:void 0,d=0<=b&&b<a.o.length?a.o[b]:void 0;a.dispatchEvent({type:"rowhilite",ha:d,row:c?c.data:null})&&(0<=a.U&&Hb(a.o[a.U],["ac-active","active"]),a.U=b,d&&(Fb(d,["ac-active","active"]),a.i&&Ai(a.i,d),df(d,a.qa)))}f.jc=function(a){if(-1==a)Xi(this,-1);else for(var b=0;b<this.b.length;b++)if(this.b[b].id==a){Xi(this,b);break}};
function Yi(a){if(!a.qa){var b=a.g.Ja("DIV",{style:"display:none"});a.qa=b;Fb(b,La(a.className).split(" "));xi(b,"listbox");b.id=Si(Ri.Qa());a.g.appendChild(a.ha,b);L(b,"click",a.qh,!1,a);L(b,"mousedown",a.rh,!1,a);L(b,"mouseover",a.uh,!1,a)}}
function Ui(a){Yi(a);a.Hc&&(a.qa.style.minWidth=a.Hc.clientWidth-0+"px");a.o.length=0;a.g.hh(a.qa);a.s&&a.s.render?a.s.render(a,a.qa,a.b,a.ka):z(a.b,function(a){var b=this.ka,d=this.g.Ja("DIV",{className:"ac-row",id:Si(Ri.Qa())});xi(d,"option");this.s&&this.s.jl?this.s.jl(a,b,d):Ld(d,a.data.toString());b&&this.wb&&(this.va=!1,Zi(this,d,b));A(d,"ac-row");this.o.push(d);this.g.appendChild(this.qa,d)},a);a.b.length?(Wi(a),a.Vf(),pf(a.qa,!0)):a.dismiss()}
f.Vf=function(){if(this.i&&this.ra){var a=this.Ga||this.i,b;b=this.mb?5:1;ih(a,b,this.qa,b^1,null,null,65)}};f.ma=function(){this.qa&&(Ce(this.qa,"click",this.qh,!1,this),Ce(this.qa,"mousedown",this.rh,!1,this),Ce(this.qa,"mouseover",this.uh,!1,this),this.g.dj(this.qa),this.qa=null,this.R=!1);be(this.j);this.ha=null;Ti.V.ma.call(this)};
function Zi(a,b,c){if(!a.va)if(3==b.nodeType){var d=null;sa(c)&&1<c.length&&(d=xb(c,1));c=$i(c);if(c.length){var e=b.nodeValue,g=new RegExp("\\b(?:"+c+")","gi");c=[];for(var h=0,k=g.exec(e),n=0;k;)n++,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(1<c.length){for(d=0;1>d;d++)e=2*d,b.nodeValue=c[e],g=a.g.createElement("B"),g.className=a.Na,a.g.appendChild(g,a.g.b.createTextNode(String(c[e+1]))),g=b.parentNode.insertBefore(g,
b.nextSibling),b.parentNode.insertBefore(a.g.b.createTextNode(""),g.nextSibling),b=g.nextSibling;b.nodeValue=xb(c,2).join("");a.va=!0}else d&&Zi(a,b,d)}}else for(b=b.firstChild;b;)d=b.nextSibling,Zi(a,b,c),b=d}function $i(a){var b="";if(!a)return b;sa(a)&&(a=gb(a,function(a){return!Ja($a(a))}));sa(a)?b=0<a.length?Za(a[0]):"":/^\W/.test(a)||(b=Za(a));return b}function aj(a,b){for(;b&&b!=a.qa&&!Eb(b,"ac-row");)b=b.parentNode;return b?eb(a.o,b):-1}
f.qh=function(a){var b=aj(this,a.target);0<=b&&this.dispatchEvent({type:"select",row:this.b[b].id});a.g()};f.rh=function(a){a.g();a.preventDefault()};f.uh=function(a){a=aj(this,a.target);0<=a&&!(300>Ca()-this.ta)&&this.dispatchEvent({type:"hilite",row:this.b[a].id})};function bj(a,b,c,d){this.ta=a;this.ha=null;this.lb=c||null;this.va="boolean"==typeof b?b:!0;this.Za=d||0;b=new cj;c=new dj(this.lb||a,this.Za);c.ra=!0;d=new Mi(null,null,!1);ki.call(this,b,c,d);d.b=this;d.pj(a);this.R=a;this.Pg=!1;this.qf=!0;L(this,"update",v(this.Ga,this))}y(bj,ki);bj.prototype.wd=function(){this.Na=this.ta.value;bj.V.wd.call(this);return!1};
bj.prototype.Ga=function(a){a.row&&(a=this.ta.form,this.ha||(this.ha=I("INPUT",{type:"hidden",name:"oq"}),a.appendChild(this.ha)),this.ha.value=this.Na,this.va&&a.submit())};function cj(){}cj.prototype.g=function(a,b){var c=hb(b[1],function(a){return a[0]});a(b[0],c)};function dj(a,b){Ti.call(this);this.Za=a;this.lb=b||0}y(dj,Ti);
dj.prototype.Vf=function(){dj.V.Vf.call(this);var a=0,b=G("gbfwa");b||(b=pd("gbqfwa"));b&&(a=b.offsetTop+b.offsetHeight-1);z(od(document,"div","ac-renderer",void 0),function(b){a&&M(b,"top",a+"px");M(b,"width",kf(this.Za).width-2+"px");M(b,"left",parseInt(b.style.left,10)+this.lb+"px")},this)};function ej(a){Q.call(this);this.b=a||window;this.i=L(this.b,"resize",this.j,!1,this);this.g=sd(this.b||window)}y(ej,Q);ej.prototype.ua=function(){return this.g?this.g.clone():null};ej.prototype.ma=function(){ej.V.ma.call(this);this.i&&(De(this.i),this.i=null);this.g=this.b=null};ej.prototype.j=function(){var a=sd(this.b||window);Kc(a,this.g)||(this.g=a,this.dispatchEvent("resize"))};function V(){Q.call(this);this.b=new U(this)}y(V,Q);V.prototype.ma=function(){this.dispatchEvent("dispose");V.V.ma.call(this);this.b.wa()};function fj(a,b){this.o=a||200;this.j=b||108;V.call(this)}y(fj,V);fj.prototype.Ob=function(){return this.o};fj.prototype.Hb=function(){return this.j};function gj(a){return/^\s*$/.test(a)?!1:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""))}function hj(a){a=String(a);if(gj(a))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);};var ij={update:function(a){for(var b in a)ij[b]=a[b]},Fi:function(a){if(t(a))try{a=hj(a)}catch(c){a=null}for(var b in a)ij.Ei(b,a[b])},Ei:function(a,b){ij[a]=b}};Ea("_OC_addFlags",ij.Fi);function jj(a){a=new S(a);var b=a.o.split("/");b[0]||b.shift();return 3<b.length?b[3]:ah(a,"id")||""}function kj(){var a=window.location.pathname.split("/");return 1>a.length?"":a[1]};function lj(a){this.b=a.giver_gaia_id||0;this.g=a.giver_name||"";this.j=a.receiver_name||"";this.i=a.receiver_email||""}lj.prototype.isEmpty=function(){return this.b&&""!=this.g&&""!=this.j&&""!=this.i?!1:!0};function mj(a,b){return'<a href="'+a+'"'+(" "+('class="'+b+'">View order</a>'))};function nj(){this.b={}}f=nj.prototype;f.dc=function(){return this.b.volumeId};f.isPurchased=function(){return this.b.isPurchased};f.hg=function(){return this.b.hg};f.zc=function(){return this.b.zc};f.Td=function(){return this.b.Td};function oj(a){return a.g&&!a.g.isEmpty()};function pj(a){this.b={};this.b.title=a.title;this.b.subtitle=a.subtitle;this.b.authors=a.authors;this.b.fi=a.preview_url;this.b.Rc=a.info_url;this.b.ji=a.pub_date;this.b.Ih=a.num_pages;this.b.viewability=a.viewability;this.b.Vl=a.subject;this.b.zl=a.thumbnail_url;this.b.snippet=a.snippet;this.b.listPrice=a.list_price;this.b.ni=a.sale_price;this.b.Ul=a.sale_price_better;this.b.Lk=a.offer_price;this.b.uf=a.buy_url;this.b.ki=a.read_url;this.b.Ke=a.is_free_ebook||!1;this.b.Fe=a.in_my_ebooks||!1;this.b.Sl=
a.my_ebooks_url||"";this.b.rating=a.rating_score||0;this.b.uk=a.num_reviews||0;this.b.isPurchased=a.is_purchased||!1;this.b.Ie=a.is_ebook||!1;this.b.Wl=a.write_review_url||"";this.b.Zi=a.add_to_my_ebooks_url||"";this.b.dl=a.preview_ebook_url||"";this.b.ol=a.reviews_url||"";this.b.viewOrderUrl=a.view_order_url||"";this.b.Nl=a.add_to_my_ebooks_url;this.b.Hi=a.add_to_my_ebooks_url_is_on_play||!1;this.b.De=a.has_flowing_text||!1;this.b.Ee=a.has_scanned_text||!1;var b=jj(a.info_url);this.b.volumeId=b;
this.b.Li=a.canonical_atb_url||"";this.b.hg=a.is_rentable||!1;this.b.Rb=a.is_pre_order||!1;this.b.Qe=a.on_sale_date||"";this.b.zc=a.is_pre_ordered||!1;this.b.Rl=a.issue_volume_count||0;this.b.Td=a.is_volume_cancelled||!1;this.b.Ki=a.cancelled_reason||"0";this.g=new lj(a.gift_details||{});switch(a.rental_state){case 1:this.b.rentalState=1;break;case 2:this.b.rentalState=2}this.b.kl=a.rental_end_utc||0}y(pj,nj);var qj,rj;
(function(){function a(a,b){if(!b)return"";var c=a.createElement("a");c.setAttribute("href",b);return c.href}function b(a,b,c){b in a?a[b].push(c):a[b]=[c]}function c(a,b,c){var d;for(d=a.firstChild;d;d=d.nextSibling)b.apply(null,[d].concat(Array.prototype.slice.call(arguments,2)))}function d(a,b){3==a.nodeType?b.push(a.nodeValue):c(a,d,b);return b}function e(a){return(a.textContent||a.innerText||d(a,[]).join("")).replace(/^\s+|\s+$/g,"")}function g(d,k,x){if(1==d.nodeType){if(d.id){if(x[d.id])return;x[d.id]=
!0}if(null!=d.getAttribute("itemprop")){"properties"in k||(k.properties={});for(var p=d.getAttribute("itemprop").split(" "),q=0;q<p.length;q++){var Da=p[q],za=void 0;d.tagName in n&&(za=n[d.tagName]);var yb;null!=d.getAttribute("itemscope")?yb=h(d):"src"==za?yb=a(d.ownerDocument,d.src):"href"==za?(yb=a(d.ownerDocument,d.href),"url_name"==Da&&(Da="url",e(d)&&b(k.properties,"name",e(d)))):"data"==za?yb=d.data:yb="content"==za?d.getAttribute("content"):za?d.getAttribute(za):null!=d.getAttribute("datetime")?
d.getAttribute("datetime"):e(d);b(k.properties,Da,yb)}}null!=d.getAttribute("itemscope")||c(d,g,k,x)}}function h(a){var b={};null!=a.getAttribute("itemtype")&&(b.type=a.getAttribute("itemtype"));null!=a.getAttribute("itemid")&&(b.id=a.getAttribute("itemid"));var d={},e=a.getAttribute("itemref");if(e)for(var e=e.split(/\s+/),h=0;h<e.length;h++){var k=a.ownerDocument.getElementById(e[h]);k&&g(k,b,d)}c(a,g,b,d);return b}function k(a,d){1==a.nodeType&&(null!=a.getAttribute("itemscope")&&null==a.getAttribute("itemprop")&&
b(d,"items",h(a)),c(a,k,d))}var n={META:"content",AUDIO:"src",EMBED:"src",IFRAME:"src",IMG:"src",SOURCE:"src",TRACK:"src",VIDEO:"src",A:"href",AREA:"href",LINK:"href",OBJECT:"data"};rj=function(a){var b={};k(a,b);return b};qj=function(a,b){a.gbar&&a.gbar.asmc&&a.gbar.asmc(function(){var a;"function"==typeof b?a=b():a=b;return a?rj(a):null})}})();var sj,tj,uj,vj,wj,xj,yj,zj,Aj,Bj,Cj,Dj,Ej,Fj,Gj,Hj;
sj=function(){var a=tj||window;a.iframes.setHandler("shareboxDialog",{onOpen:function(a){a.openInto(a.getOpenParams().element,{"class":"abc",scrolling:"auto",width:"100%",height:"100%",allowtransparency:"true"});var b=a.getIframeEl();0<navigator.userAgent.indexOf("MSIE")&&(b.style.visibility="hidden",b.onreadystatechange=function(){b.style.visibility="";delete b.onreadystatechange});b.focus();return a},onReady:function(b){window.setTimeout(function(){uj=b;vj&&b.setPrefill(vj);b.setParamBag(wj);xj&&
(yj=a.document.documentElement.style.overflow,a.document.documentElement.style.overflow="hidden");zj&&zj({})},0)},onClose:function(b,c){c&&(c.loggedOut&&Aj&&Aj(),c.footerCallback&&Bj&&Bj());a.document.body.removeChild(a.document.getElementById("googleShareboxIframeDiv"));xj&&(a.document.documentElement.style.overflow=yj);Cj.b=!1;Dj&&Dj(c)}})};Ej=function(){if(!uj){var a=tj||window;a.document.body.removeChild(a.document.getElementById("googleShareboxIframeDiv"));Cj.b=!1;Fj&&Fj({})}};
Cj=function(a,b){if(!Cj.b){vj=a;b&&(zj=b.onShareOpened,Dj=b.onShareClosed,Fj=b.onShareTimedOut,Aj=b.onNotLoggedInForGooglePlus,Bj=b.footerCallback,Gj=b.sessionIndex,Hj=b.socialHost,tj=b.window,b.window=null,xj=b.hideDoubleScrollBar,wj=b);var c=tj||window,d=c.document;Gj=Gj||"0";Hj=Hj||"https://plus.google.com";sj();Cj.b=!0;var e=Hj+"/u/"+Gj+"/_/sharebox/dialog",g={};g.claimedOrigin=d.location.protocol+"//"+d.location.host;var h=!1;b&&(b.hl&&(g.hl=b.hl),b.sourceForLogging&&(g.source=b.sourceForLogging),
b.dialogTitle&&(g.dialogTitle=b.dialogTitle),b.dialogSubtitle&&(g.dialogSubtitle=b.dialogSubtitle),b.shareButtonText&&(g.shareButtonText=b.shareButtonText),b.cancelButtonText&&(g.cancelButtonText=b.cancelButtonText),b.showIcons&&(g.showIcons="true"),b.editorText&&(g.editorText=b.editorText),b.editorHelperText&&(g.editorHelperText=b.editorHelperText),b.segments&&(g.segments=c.JSON.stringify(b.segments)),b.birthday&&(g.birthday=b.birthday),b.secb&&(g.secb=b.secb),b.recipients&&(g.rcpt=b.recipients.join(",")),
h=!!b.updateMetadata,b.footer&&(g.footer=b.footer));var k=null;if(!h){var n;if(a&&a.items&&1==a.items.length&&a.items[0].properties){var h=a.items[0].properties,p=!1,q;for(q in h)if("url"!=q){p=!0;break}!p&&h.url&&h.url[0]&&(n=h.url[0])}n?(g.url=n,k="url"):a&&(g.md=c.gadgets.json.stringify(a),k="md")}k&&(g.prm=k);g.sts=(+new Date).toString(36);750>d.documentElement.clientHeight&&(g.susp=!0);d.documentMode&&(g.hostiemode=d.documentMode);g.wpp="1";k=d.createElement("div");k.id="googleShareboxIframeDiv";
k.style.cssText="left:0;top:0;width:100%;height:100%;position:fixed;z-index:99999";d.body.appendChild(k);c.iframes.open(e,{element:k,allowPost:!0,style:"shareboxDialog"},g,{});var x=d.createElement("div");x.style.cssText="left:0;top:0;width:100%;height:100%;position:absolute;background:#fff;opacity:0;transition:opacity 0.25s;-webkit-transition:opacity 0.25s;filter:alpha(opacity=75);z-index:-1";k.appendChild(x);window.setTimeout(function(){x.style.opacity=".75"},0);window.setTimeout(Ej,15E3)}};
Cj.b=!1;function Ij(a){Q.call(this);this.g=a||kd();this.Ga=Jj;this.Ia=null;this.Fa=!1;this.qa=null;this.ha=void 0;this.R=this.o=this.s=this.Na=null;this.Hc=!1}y(Ij,Q);Ij.prototype.je=Ri.Qa();var Jj=null;
function Kj(a,b){switch(a){case 1:return b?"disable":"enable";case 2:return b?"highlight":"unhighlight";case 4:return b?"activate":"deactivate";case 8:return b?"select":"unselect";case 16:return b?"check":"uncheck";case 32:return b?"focus":"blur";case 64:return b?"open":"close"}throw Error("Invalid component state");}f=Ij.prototype;f.getId=function(){return this.Ia||(this.Ia=Si(this.je))};function Lj(a,b){if(a.s&&a.s.R){var c=a.s.R,d=a.Ia;d in c&&delete c[d];Qb(a.s.R,b,a)}a.Ia=b}f.S=function(){return this.qa};
function Mj(a){a.ha||(a.ha=new U(a));return a.ha}f.Vc=function(a){if(this==a)throw Error("Unable to set parent component");if(a&&this.s&&this.Ia&&Nj(this.s,this.Ia)&&this.s!=a)throw Error("Unable to set parent component");this.s=a;Ij.V.Zd.call(this,a)};f.vc=function(){return this.s};f.Zd=function(a){if(this.s&&this.s!=a)throw Error("Method not supported");Ij.V.Zd.call(this,a)};f.Ub=function(){this.qa=this.g.createElement("DIV")};f.render=function(a){Oj(this,a)};
function Oj(a,b,c){if(a.Fa)throw Error("Component already rendered");a.qa||a.Ub();b?b.insertBefore(a.qa,c||null):a.g.b.body.appendChild(a.qa);a.s&&!a.s.Fa||a.La()}function Pj(a,b){if(a.Fa)throw Error("Component already rendered");if(b&&a.Kf(b)){a.Hc=!0;var c=md(b);a.g&&a.g.b==c||(a.g=kd(b));a.Fb(b);a.La()}else throw Error("Invalid element to decorate");}f.Kf=function(){return!0};f.Fb=function(a){this.qa=a};f.La=function(){this.Fa=!0;Qj(this,function(a){!a.Fa&&a.S()&&a.La()})};
f.Gb=function(){Qj(this,function(a){a.Fa&&a.Gb()});this.ha&&vh(this.ha);this.Fa=!1};f.ma=function(){this.Fa&&this.Gb();this.ha&&(this.ha.wa(),delete this.ha);Qj(this,function(a){a.wa()});!this.Hc&&this.qa&&K(this.qa);this.s=this.Na=this.qa=this.R=this.o=null;Ij.V.ma.call(this)};function W(a,b,c){a.Cd(b,Rj(a),c)}
f.Cd=function(a,b,c){if(a.Fa&&(c||!this.Fa))throw Error("Component already rendered");if(0>b||b>Rj(this))throw Error("Child component index out of bounds");this.R&&this.o||(this.R={},this.o=[]);if(a.vc()==this){var d=a.getId();this.R[d]=a;qb(this.o,a)}else Qb(this.R,a.getId(),a);a.Vc(this);wb(this.o,b,0,a);a.Fa&&this.Fa&&a.vc()==this?(c=this.dd(),b=c.childNodes[b]||null,b!=a.S()&&c.insertBefore(a.S(),b)):c?(this.qa||this.Ub(),b=Sj(this,b+1),Oj(a,this.dd(),b?b.qa:null)):this.Fa&&!a.Fa&&a.qa&&a.qa.parentNode&&
1==a.qa.parentNode.nodeType&&a.La()};f.dd=function(){return this.qa};function Tj(a){null==a.Ga&&(a.Ga=nf(a.Fa?a.qa:a.g.b.body));return a.Ga}function Rj(a){return a.o?a.o.length:0}function Nj(a,b){var c;a.R&&b?(c=a.R,c=(null!==c&&b in c?c[b]:void 0)||null):c=null;return c}function Sj(a,b){return a.o?a.o[b]||null:null}function Qj(a,b,c){a.o&&z(a.o,b,c)}function Uj(a,b){return a.o&&b?eb(a.o,b):-1}
f.removeChild=function(a,b){if(a){var c=t(a)?a:a.getId();a=Nj(this,c);if(c&&a){var d=this.R;c in d&&delete d[c];qb(this.o,a);b&&(a.Gb(),a.qa&&K(a.qa));a.Vc(null)}}if(!a)throw Error("Child is not in parent component");return a};var Vj={},Wj={},Xj={};function Yj(){throw Error("Do not instantiate directly");}Yj.prototype.oe=null;Yj.prototype.getContent=function(){return this.content};Yj.prototype.toString=function(){return this.content};function Zj(a,b){this.content=String(a);this.oe=null!=b?b:null}y(Zj,Yj);Zj.prototype.Zc=Xj;function ak(){Yj.call(this)}y(ak,Yj);ak.prototype.Zc=Vj;function bk(a){if(!va(a))return String(a);if(a instanceof Yj){if(a.Zc===Vj)return a.getContent();if(a.Zc===Xj)return Na(a.getContent())}return"zSoyz"};function ck(){}var dk;qa(ck);var ek={button:"pressed",checkbox:"checked",menuitem:"selected",menuitemcheckbox:"checked",menuitemradio:"checked",radio:"checked",tab:"selected",treeitem:"selected"};f=ck.prototype;f.jd=function(){};f.Jb=function(a){return a.g.Ja("DIV",fk(this,a).join(" "),a.getContent())};f.Pb=function(a){return a};function gk(a,b,c){if(a=a.S?a.S():a){var d=[b];E&&!F("7")&&(d=hk(Db(a),b),d.push(b));(c?Fb:Hb)(a,d)}}f.ye=function(){return!0};
f.Ua=function(a,b){b.id&&Lj(a,b.id);var c=this.Pb(b);c&&c.firstChild?ik(a,c.firstChild.nextSibling?ub(c.childNodes):c.firstChild):a.Pc=null;var d=0,e=this.Ba(),g=this.Ba(),h=!1,k=!1,n=!1,p=ub(Db(b));z(p,function(a){h||a!=e?k||a!=g?d|=this.ve(a):k=!0:(h=!0,g==e&&(k=!0));1==this.ve(a)&&Pd(c)&&Qd(c)&&Od(c,!1)},this);a.yc=d;h||(p.push(e),g==e&&(k=!0));k||p.push(g);var q=a.Nb;q&&p.push.apply(p,q);if(E&&!F("7")){var x=hk(p);0<x.length&&(p.push.apply(p,x),n=!0)}if(!h||!k||q||n)b.className=p.join(" ");return b};
f.jh=function(a){Tj(a)&&this.lh(a.S(),!0);a.isEnabled()&&this.Od(a,a.Aa())};function jk(a,b,c){if(a=c||a.jd())c=b.getAttribute("role")||null,a!=c&&xi(b,a)}function kk(a,b,c){b.Aa()||yi(c,"hidden",!b.Aa());b.isEnabled()||a.Yb(c,1,!b.isEnabled());lk(b,8)&&a.Yb(c,8,X(b,8));lk(b,16)&&a.Yb(c,16,X(b,16));lk(b,64)&&a.Yb(c,64,X(b,64))}f.Of=function(a,b){pf(a,!b,!E&&!Qc)};f.lh=function(a,b){gk(a,this.Ba()+"-rtl",b)};f.kh=function(a){var b;return lk(a,32)&&(b=a.S())?Pd(b)&&Qd(b):!1};
f.Od=function(a,b){var c;if(lk(a,32)&&(c=a.S())){if(!b&&X(a,32)){try{c.blur()}catch(d){}X(a,32)&&a.ze(null)}(Pd(c)&&Qd(c))!=b&&Od(c,b)}};f.setVisible=function(a,b){O(a,b);a&&yi(a,"hidden",!b)};f.vb=function(a,b,c){var d=a.S();if(d){var e=this.Hd(b);e&&gk(a,e,c);this.Yb(d,b,c)}};f.Yb=function(a,b,c){dk||(dk={1:"disabled",8:"selected",16:"checked",64:"expanded"});b=dk[b];var d=a.getAttribute("role")||null;d&&(d=ek[d]||b,b="checked"==b||"selected"==b?d:b);b&&yi(a,b,c)};
f.Nd=function(a,b){var c=this.Pb(a);if(c&&(Ed(c),b))if(t(b))Ld(c,b);else{var d=function(a){if(a){var b=md(c);c.appendChild(t(a)?b.createTextNode(a):a)}};sa(b)?z(b,d):!ta(b)||"nodeType"in b?d(b):z(ub(b),d)}};f.Ba=function(){return"goog-control"};function fk(a,b){var c=a.Ba(),d=[c],e=a.Ba();e!=c&&d.push(e);c=b.getState();for(e=[];c;){var g=c&-c;e.push(a.Hd(g));c&=~g}d.push.apply(d,e);(c=b.Nb)&&d.push.apply(d,c);E&&!F("7")&&d.push.apply(d,hk(d));return d}
function hk(a,b){var c=[];b&&(a=tb(a,[b]));z([],function(d){!lb(d,w(ob,a))||b&&!ob(d,b)||c.push(d.join("_"))});return c}f.Hd=function(a){this.b||mk(this);return this.b[a]};f.ve=function(a){if(!this.rb){this.b||mk(this);var b=this.b,c={},d;for(d in b)c[b[d]]=d;this.rb=c}a=parseInt(this.rb[a],10);return isNaN(a)?0:a};function mk(a){var b=a.Ba();a.b={1:b+"-disabled",2:b+"-hover",4:b+"-active",8:b+"-selected",16:b+"-checked",32:b+"-focused",64:b+"-open"}};function nk(){}y(nk,ck);qa(nk);f=nk.prototype;f.jd=function(){return"button"};f.Yb=function(a,b,c){switch(b){case 8:case 16:yi(a,"pressed",c);break;default:case 64:case 1:nk.V.Yb.call(this,a,b,c)}};f.Jb=function(a){var b=nk.V.Jb.call(this,a);ok(b,a.U);var c=a.ab();c&&this.Jf(b,c);lk(a,16)&&this.Yb(b,16,X(a,16));return b};f.Ua=function(a,b){b=nk.V.Ua.call(this,a,b);var c=this.ab(b);a.mb=c;a.U=b.title;lk(a,16)&&this.Yb(b,16,X(a,16));return b};f.ab=r;f.Jf=r;
function ok(a,b){a&&(b?a.title=b:a.removeAttribute("title"))}f.Ba=function(){return"goog-button"};function pk(a,b){if(!a)throw Error("Invalid class name "+a);if(!ua(b))throw Error("Invalid decorator function "+b);qk[a]=b}var rk={},qk={};function sk(a,b,c){Ij.call(this,c);if(!b){b=this.constructor;for(var d;b;){d=wa(b);if(d=rk[d])break;b=b.V?b.V.constructor:null}b=d?ua(d.Qa)?d.Qa():new d:null}this.i=b;this.Pc=m(a)?a:null}y(sk,Ij);f=sk.prototype;f.Pc=null;f.yc=0;f.de=39;f.Jc=255;f.ae=0;f.Ae=!0;f.Nb=null;f.Pf=!0;function tk(a,b){a.Fa&&b!=a.Pf&&uk(a,b);a.Pf=b}function vk(a,b){b&&(a.Nb?ob(a.Nb,b)||a.Nb.push(b):a.Nb=[b],gk(a,b,!0))}function wk(a,b,c){c?vk(a,b):b&&a.Nb&&qb(a.Nb,b)&&(a.Nb.length||(a.Nb=null),gk(a,b,!1))}
f.Ub=function(){var a=this.i.Jb(this);this.qa=a;jk(this.i,a,this.Ld());this.i.Of(a,!1);this.Aa()||this.i.setVisible(a,!1)};f.Ld=function(){return null};f.dd=function(){return this.i.Pb(this.S())};f.Kf=function(a){return this.i.ye(a)};f.Fb=function(a){this.qa=a=this.i.Ua(this,a);jk(this.i,a,this.Ld());this.i.Of(a,!1);this.Ae="none"!=a.style.display};
f.La=function(){sk.V.La.call(this);kk(this.i,this,this.qa);this.i.jh(this);if(this.de&-2&&(this.Pf&&uk(this,!0),lk(this,32))){var a=this.S();if(a){var b=this.ka||(this.ka=new Bi);Ci(b,a);Mj(this).listen(b,"key",this.Kb).listen(a,"focus",this.kj).listen(a,"blur",this.ze)}}};
function uk(a,b){var c=Mj(a),d=a.S();b?(c.listen(d,"mouseover",a.Qf).listen(d,"mousedown",a.xc).listen(d,"mouseup",a.Vb).listen(d,"mouseout",a.Xf),a.Pd!=r&&c.listen(d,"contextmenu",a.Pd),E&&(F(9)||c.listen(d,"dblclick",a.sh),a.ra||(a.ra=new xk(a),ae(a,a.ra)))):(c.Ta(d,"mouseover",a.Qf).Ta(d,"mousedown",a.xc).Ta(d,"mouseup",a.Vb).Ta(d,"mouseout",a.Xf),a.Pd!=r&&c.Ta(d,"contextmenu",a.Pd),E&&(F(9)||c.Ta(d,"dblclick",a.sh),be(a.ra),a.ra=null))}
f.Gb=function(){sk.V.Gb.call(this);this.ka&&Ii(this.ka);this.Aa()&&this.isEnabled()&&this.i.Od(this,!1)};f.ma=function(){sk.V.ma.call(this);this.ka&&(this.ka.wa(),delete this.ka);delete this.i;this.ra=this.Nb=this.Pc=null};f.getContent=function(){return this.Pc};function ik(a,b){a.Pc=b}f.te=function(){var a=this.getContent();if(!a)return"";a=t(a)?a:sa(a)?hb(a,Td).join(""):Rd(a);return Ka(a)};f.Aa=function(){return this.Ae};
f.setVisible=function(a,b){if(b||this.Ae!=a&&this.dispatchEvent(a?"show":"hide")){var c=this.S();c&&this.i.setVisible(c,a);this.isEnabled()&&this.i.Od(this,a);this.Ae=a;return!0}return!1};f.isEnabled=function(){return!X(this,1)};f.Ma=function(a){var b=this.vc();b&&"function"==typeof b.isEnabled&&!b.isEnabled()||!yk(this,1,!a)||(a||(zk(this,!1),Ak(this,!1)),this.Aa()&&this.i.Od(this,a),this.vb(1,!a,!0))};function Ak(a,b){yk(a,2,b)&&a.vb(2,b)}function zk(a,b){yk(a,4,b)&&a.vb(4,b)}
f.Cg=function(a){yk(this,8,a)&&this.vb(8,a)};f.Dc=function(a){yk(this,16,a)&&this.vb(16,a)};f.Xe=function(a){yk(this,32,a)&&this.vb(32,a)};f.Sa=function(a){yk(this,64,a)&&this.vb(64,a)};f.getState=function(){return this.yc};function X(a,b){return!!(a.yc&b)}f.vb=function(a,b,c){c||1!=a?lk(this,a)&&b!=X(this,a)&&(this.i.vb(this,a,b),this.yc=b?this.yc|a:this.yc&~a):this.Ma(!b)};function lk(a,b){return!!(a.de&b)}
f.Wa=function(a,b){if(this.Fa&&X(this,a)&&!b)throw Error("Component already rendered");!b&&X(this,a)&&this.vb(a,!1);this.de=b?this.de|a:this.de&~a};function Bk(a,b){return!!(a.Jc&b)&&lk(a,b)}function yk(a,b,c){return lk(a,b)&&X(a,b)!=c&&(!(a.ae&b)||a.dispatchEvent(Kj(b,c)))&&!a.isDisposed()}f.Qf=function(a){(!a.relatedTarget||!Jd(this.S(),a.relatedTarget))&&this.dispatchEvent("enter")&&this.isEnabled()&&Bk(this,2)&&Ak(this,!0)};
f.Xf=function(a){a.relatedTarget&&Jd(this.S(),a.relatedTarget)||!this.dispatchEvent("leave")||(Bk(this,4)&&zk(this,!1),Bk(this,2)&&Ak(this,!1))};f.Pd=r;f.xc=function(a){this.isEnabled()&&(Bk(this,2)&&Ak(this,!0),ie(a)&&(Bk(this,4)&&zk(this,!0),this.i&&this.i.kh(this)&&this.S().focus()));ie(a)&&a.preventDefault()};f.Vb=function(a){this.isEnabled()&&(Bk(this,2)&&Ak(this,!0),X(this,4)&&this.Uc(a)&&Bk(this,4)&&zk(this,!1))};f.sh=function(a){this.isEnabled()&&this.Uc(a)};
f.Uc=function(a){Bk(this,16)&&this.Dc(!X(this,16));Bk(this,8)&&this.Cg(!0);Bk(this,64)&&this.Sa(!X(this,64));var b=new ce("action",this);a&&(b.altKey=a.altKey,b.ctrlKey=a.ctrlKey,b.metaKey=a.metaKey,b.shiftKey=a.shiftKey,b.R=a.R);return this.dispatchEvent(b)};f.kj=function(){Bk(this,32)&&this.Xe(!0)};f.ze=function(){Bk(this,4)&&zk(this,!1);Bk(this,32)&&this.Xe(!1)};f.Kb=function(a){return this.Aa()&&this.isEnabled()&&this.kd(a)?(a.preventDefault(),a.g(),!0):!1};f.kd=function(a){return 13==a.b&&this.Uc(a)};
if(!ua(sk))throw Error("Invalid component class "+sk);if(!ua(ck))throw Error("Invalid renderer class "+ck);var Ck=wa(sk);rk[Ck]=ck;pk("goog-control",function(){return new sk(null)});function xk(a){$d.call(this);this.g=a;this.b=!1;this.i=new U(this);ae(this,this.i);a=this.g.qa;this.i.listen(a,"mousedown",this.o).listen(a,"mouseup",this.s).listen(a,"click",this.j)}y(xk,$d);var Dk=!E||dd(9);xk.prototype.o=function(){this.b=!1};xk.prototype.s=function(){this.b=!0};
function Ek(a,b){if(!Dk)return a.button=0,a.type=b,a;var c=document.createEvent("MouseEvents");c.initMouseEvent(b,a.bubbles,a.cancelable,a.view||null,a.detail,a.screenX,a.screenY,a.clientX,a.clientY,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,0,a.relatedTarget||null);return c}xk.prototype.j=function(a){if(this.b)this.b=!1;else{var b=a.i,c=b.button,d=b.type,e=Ek(b,"mousedown");this.g.xc(new ge(e,a.j));e=Ek(b,"mouseup");this.g.Vb(new ge(e,a.j));Dk||(b.button=c,b.type=d)}};
xk.prototype.ma=function(){this.g=null;xk.V.ma.call(this)};function Fk(){}y(Fk,nk);qa(Fk);f=Fk.prototype;f.jd=function(){};f.Jb=function(a){tk(a,!1);a.Jc&=-256;a.Wa(32,!1);return a.g.Ja("BUTTON",{"class":fk(this,a).join(" "),disabled:!a.isEnabled(),title:a.U||"",value:a.ab()||""},a.te()||"")};f.ye=function(a){return"BUTTON"==a.tagName||"INPUT"==a.tagName&&("button"==a.type||"submit"==a.type||"reset"==a.type)};f.Ua=function(a,b){tk(a,!1);a.Jc&=-256;a.Wa(32,!1);if(b.disabled){var c=this.Hd(1);A(b,c)}return Fk.V.Ua.call(this,a,b)};
f.jh=function(a){Mj(a).listen(a.S(),"click",a.Uc)};f.Of=r;f.lh=r;f.kh=function(a){return a.isEnabled()};f.Od=r;f.vb=function(a,b,c){Fk.V.vb.call(this,a,b,c);(a=a.S())&&1==b&&(a.disabled=c)};f.ab=function(a){return a.value};f.Jf=function(a,b){a&&(a.value=b)};f.Yb=r;function Gk(a,b,c){sk.call(this,a,b||Fk.Qa(),c)}y(Gk,sk);f=Gk.prototype;f.ab=function(){return this.mb};f.ih=function(a){this.U=a;ok(this.S(),a)};function Hk(a,b){var c=a.i,d=Tj(a),e=c.Ba()+"-collapse-left",c=c.Ba()+"-collapse-right";wk(a,d?c:e,!!(b&1));wk(a,d?e:c,!!(b&2))}f.ma=function(){Gk.V.ma.call(this);delete this.mb;delete this.U};f.La=function(){Gk.V.La.call(this);if(lk(this,32)){var a=this.S();a&&Mj(this).listen(a,"keyup",this.kd)}};
f.kd=function(a){return 13==a.b&&"key"==a.type||32==a.b&&"keyup"==a.type?this.Uc(a):32==a.b};pk("goog-button",function(){return new Gk(null)});function Ik(a){return Va(La(a.replace(Jk,function(a,c){return Kk.test(c)?"":" "}).replace(/[\t\n ]+/g," ")))}var Kk=/^(?:abbr|acronym|address|b|em|i|small|strong|su[bp]|u)$/i,Jk=/<[!\/]?([a-z0-9]+)([\/ ][^>]*)?>/gi;function Lk(a,b){this.i=a;this.s=!!b;this.j={0:this.i+"-arrowright",1:this.i+"-arrowup",2:this.i+"-arrowdown",3:this.i+"-arrowleft"}}y(Lk,hh);f=Lk.prototype;f.Dh=!1;f.sf=2;f.Lg=20;f.tf=3;f.vg=-5;f.nf=!1;f.Bg=function(a){this.g=a};f.setPosition=function(a,b,c,d){null!=a&&(this.tf=a);null!=b&&(this.sf=b);u(c)&&(this.Lg=Math.max(c,15));u(d)&&(this.vg=d)};f.Bb=function(a,b,c){a=this.sf;2==a&&(a=0);Mk(this,this.tf,a,2==this.sf?Nk(this.tf)?this.b.offsetHeight/2:this.b.offsetWidth/2:this.Lg,0,c)};
function Mk(a,b,c,d,e,g){if(a.g){var h=Ok(b,c),k;k=a.g;var n=kf(k);var n=(Nk(b)?n.height/2:n.width/2)-d,p=kh(k,h),q;if(q=bf(k))k=Ne(lf(k)),Nk(b)?k.top<q.top&&!(p&1)?n-=q.top-k.top:k.bottom>q.bottom&&p&1&&(n-=k.bottom-q.bottom):k.left<q.left&&!(p&4)?n-=q.left-k.left:k.right>q.right&&p&4&&(n-=k.right-q.right);k=n;k=Nk(b)?new C(a.vg,k):new C(k,a.vg);n=Nk(b)?6:9;a.nf&&2==e&&(n=Nk(b)?4:1);p=b^3;Nk(b)&&"rtl"==a.g.dir&&(p=b);h=ih(a.g,Ok(p,c),a.b,h,k,g,a.Dh?n:0,void 0,null);if(2!=e&&h&496){Mk(a,b^3,c,d,a.nf&&
0==e?1:2,g);return}!a.s||h&496||(e=parseFloat(a.b.style.left),g=parseFloat(a.b.style.top),!(!isFinite(e)||e%1||!isFinite(g)||g%1)||We(a.b,Math.round(e),Math.round(g)))}Pk(a,b,c,d)}
function Pk(a,b,c,d){var e=a.o;Jb(a.j,function(a){Ib(e,a,!1)},a);A(e,a.j[b]);e.style.top=e.style.left=e.style.right=e.style.bottom="";a.g?(c=gf(a.g,a.b),d=Qk(a.g,b),Nk(b)?e.style.top=Rk(c.y+d.y,a.b.offsetHeight-15)+"px":e.style.left=Rk(c.x+d.x,a.b.offsetWidth-15)+"px"):e.style[0==c?Nk(b)?"top":"left":Nk(b)?"bottom":"right"]=d+"px"}function Rk(a,b){return 15>b?15:Math.min(Math.max(a,15),b)}
function Ok(a,b){switch(a){case 2:return 0==b?1:5;case 1:return 0==b?0:4;case 0:return 0==b?12:13;default:return 0==b?8:9}}function Qk(a,b){var c=0,d=0,e=kf(a);switch(b){case 2:c=e.width/2;break;case 1:c=e.width/2;d=e.height;break;case 0:d=e.height/2;break;case 3:c=e.width,d=e.height/2}return new C(c,d)}function Nk(a){return 0==a||3==a};function Sk(a){$d.call(this);this.g=a||kd()}y(Sk,$d);Sk.prototype.o=function(){xi(this.S(),"tooltip");yi(this.S(),"live","polite")};function Tk(a){Sk.call(this,a);this.b=this.g.Ja("DIV",Uk()+"-contentId");this.j=this.g.Ja("DIV",Uk()+"-arrow",this.g.Ja("DIV",Uk()+"-arrowimplbefore"),this.g.Ja("DIV",Uk()+"-arrowimplafter"));this.i=this.g.Ja("DIV",{"class":Uk(),role:"tooltip"},this.b,this.j);this.o()}y(Tk,Sk);function Uk(){return"jfk-tooltip"}Tk.prototype.S=function(){return this.i};Tk.prototype.ma=function(){this.i&&K(this.i)};function Vk(a){Tk.call(this,a)}y(Vk,Tk);Vk.prototype.o=function(){xi(this.S(),"tooltip")};var Wk={};function Xk(a){U.call(this);this.ta=a;this.ka=new jg(this.yl,0,this);ae(this,this.ka);var b=xd();this.s=ua(b.MutationObserver)?new b.MutationObserver(v(this.tj,this)):null;a=a.b;this.listen(a,["mouseout","mousedown","click","blur",fe,"keydown"],this.Pi,!0);this.listen(a,["mouseover","focus",ee],this.tl,!0)}y(Xk,U);f=Xk.prototype;f.ma=function(){Yk(this);Xk.V.ma.call(this)};
function Zk(a,b){switch(b.type){case "mousedown":case "mouseover":case "mouseout":case "click":a.ra=!1;break;case "keydown":a.ra=!0}}f.tl=function(a){this.s&&this.s.disconnect();Zk(this,a);var b=a.target;a="focus"==a.type||a.type==ee;var c=this.b&&Jd(this.b.b,b);if(this.ra||!a||c){this.va=a;if(a=b&&b.getAttribute&&this.s)a=b.getAttribute("role")||null,a=ob(wi,a);a&&(this.s.observe(b,{attributes:!0}),(a=zi(b))&&(b=a));this.j=b}else this.j=null;$k(this)};
f.Pi=function(a){Zk(this,a);var b=a.target;a="mousedown"==a.type||"click"==a.type;b=this.b&&Jd(this.b.b,b);a&&b||(this.j=null,$k(this))};f.tj=function(a){z(a,v(function(a){var b=zi(a.target);b&&"aria-activedescendant"==a.attributeName&&(this.j=b,$k(this))},this))};function $k(a){Yk(a);a.ka.start(a.g?50:300)}function Yk(a){a.R&&(l.clearTimeout(a.R),a.R=0,a.g=null)}
f.yl=function(){if(!this.j)al(this),this.g=null;else if(!(this.g&&this.b&&Jd(this.b.S(),this.j))||this.g.getAttribute("data-tooltip-unhoverable")){var a=Vd(this.j,function(a){return a.getAttribute&&(a.getAttribute("data-tooltip-contained")||a.getAttribute("data-tooltip")||a.b)&&!a.getAttribute("data-tooltip-suspended")}),b=!1;this.g&&this.g!=a&&(al(this),this.g=null,b=!0);if(!this.g&&a&&(this.g=a,bl(this,a))){var c=Gc;if(a.getAttribute("data-tooltip-contained"))for(var d=nd("jfk-tooltip-data",a),
e=0;e<d.length;e++){if(d[e].parentNode==a){c=d[e].cloneNode(!0);break}}else c=a.b?a.b:zc(a.getAttribute("data-tooltip"));var d=a.getAttribute("data-tooltip-align"),e=a.getAttribute("data-tooltip-class"),g=a.getAttribute("data-tooltip-offset"),g=Ja($a(g))?-1:Number(g);if(!b&&(a=a.getAttribute("data-tooltip-delay"),a=Math.max(0,a-300))){this.R=R(w(this.ui,this.g,c,d,g,e),a,this);return}this.ui(this.g,c,d,g,e)}}};
function bl(a,b){return b.getAttribute("data-tooltip-only-on-overflow")&&b.offsetWidth>=b.scrollWidth&&b.offsetHeight>=b.scrollHeight||a.va&&"mouse"==b.getAttribute("data-tooltip-trigger")?!1:!0}function cl(a){if(a)switch(a.toLowerCase().split(",")[0]){case "l":return 0;case "t":return 2;case "r":return 3}return 1}
f.ui=function(a,b,c,d,e){this.R=0;if(!this.b){this.b=new Vk(this.ta);al(this);this.ta.b.body.appendChild(this.b.S());ae(this,this.b);this.o=new Lk(Uk(),!0);this.o.Dh=!0;this.o.nf=!0;var g=this.o,h=this.b.j;g.b=this.b.S();g.o=h}a:{if(c)switch(c.toLowerCase().split(",")[1]){case "l":g=0;break a;case "r":g=1;break a}g=2}this.o.setPosition(cl(c),g,void 0,d);Gb(this.b.S(),"jfk-tooltip-hide");this.U!=e&&(this.U&&!Ja($a(this.U))&&Gb(this.b.S(),this.U),Ja($a(e))||A(this.b.S(),e),this.U=e);We(this.b.S(),0,
0);if(b instanceof uc)this.b.b.innerHTML=wc(b);else for(Ed(this.b.b);c=b.firstChild;)this.b.b.appendChild(c);this.o.Bg(a);this.o.Bb(null,0)};function al(a){a.b&&A(a.b.S(),"jfk-tooltip-hide")};function dl(a,b){var c=a.match(el);return c?Number(c[1])*b[c[2]]:NaN}var el=/^([-]?\d+\.?\d*)([K,M,G,T,P,k,m,u,n]?)[B]?$/,fl={"":1,n:1E-9,u:1E-6,m:.001,k:1E3,K:1E3,M:1E6,G:1E9,T:1E12,P:1E15},gl={"":1,n:Math.pow(1024,-3),u:Math.pow(1024,-2),m:1/1024,k:1024,K:1024,M:Math.pow(1024,2),G:Math.pow(1024,3),T:Math.pow(1024,4),P:Math.pow(1024,5)};function hl(a){if(null!=a)switch(a.oe){case 1:return 1;case -1:return-1;case 0:return 0}return null}var il=function(a){function b(a){this.content=a}b.prototype=a.prototype;return function(a,d){var c=new b(String(a));void 0!==d&&(c.oe=d);return c}}(ak);(function(a){function b(a){this.content=a}b.prototype=a.prototype;return function(a,d){var c=String(a);if(!c)return"";c=new b(c);void 0!==d&&(c.oe=d);return c}})(ak);
function jl(a){return null!=a&&a.Zc===Vj?String(String(a.getContent()).replace(kl,"").replace(ll,"&lt;")).replace(ml,nl):Na(String(a))}var ol={"\x00":"&#0;","\t":"&#9;","\n":"&#10;","\x0B":"&#11;","\f":"&#12;","\r":"&#13;"," ":"&#32;",'"':"&quot;","&":"&amp;","'":"&#39;","-":"&#45;","/":"&#47;","<":"&lt;","=":"&#61;",">":"&gt;","`":"&#96;","\u0085":"&#133;","\u00a0":"&#160;","\u2028":"&#8232;","\u2029":"&#8233;"};function nl(a){return ol[a]}
var ml=/[\x00\x22\x27\x3c\x3e]/g,pl=/^(?!on|src|(?:style|action|archive|background|cite|classid|codebase|data|dsync|href|longdesc|usemap)\s*$)(?:[a-z0-9_$:-]*)$/i,kl=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,ll=/</g;function Y(a,b,c,d){Gk.call(this,a,ql.Qa(),b);this.ta=c||0;this.j=d||0;this.Za=!1}y(Y,Gk);f=Y.prototype;f.getStyle=function(){return this.ta};f.Hb=function(){return this.j};
f.ih=function(a){this.U=a;var b=this.S();if(b)if(this.Za){var c;c=a instanceof uc?Ik(wc(a)):a;b.removeAttribute("title");b.removeAttribute("data-tooltip-contained");b.removeAttribute("data-tooltip");a?(a instanceof uc?b.b=a:(b.setAttribute("data-tooltip",a),b.b=null),b.setAttribute("aria-label",c)):(b.b=null,b.removeAttribute("aria-label"));a=kd(b)||kd();b=wa(a.b);Wk[b]||(Wk[b]=new Xk(a))}else a?b.title=a:b.removeAttribute("title")};f.Ma=function(a){this.isEnabled()!=a&&(Y.V.Ma.call(this,a),rl(this))};
f.focus=function(){var a=this.qa;try{a.focus()}catch(b){}};f.Xe=function(a){Y.V.Xe.call(this,a);sl(this,!1)};f.xc=function(a){Y.V.xc.call(this,a);this.isEnabled()&&sl(this,!0)};f.Vb=function(a){Y.V.Vb.call(this,a);this.isEnabled()&&sl(this,!0)};function sl(a,b){a.S()&&Ib(a.S(),"jfk-button-clear-outline",b)}function rl(a){a.S()&&tl(a.i,a)}
function ul(a,b){if(t(a)){var c=a;a=I("IMG");a.src=c;N(a,21,21)}A(a,"jfk-button-img");c=[];c.push(a);if(b){var d=I("SPAN","jfk-button-label",b);c.push(d)}return c}function ql(){this.ka=this.Ba()+"-standard";this.g=this.Ba()+"-action";this.ha=this.Ba()+"-primary";this.o=this.Ba()+"-default";this.s=this.Ba()+"-flat";this.U=this.Ba()+"-narrow";this.R=this.Ba()+"-mini";this.j=this.Ba()+"-contrast"}y(ql,nk);qa(ql);f=ql.prototype;f.Fc=function(a,b,c){a&&c.ta!=a&&(c.ta=a,rl(c));b&&c.j!=b&&(c.j=b,rl(c))};
f.Ba=function(){return"jfk-button"};
f.Jb=function(a){var b=a.g,c,d={disabled:!a.isEnabled(),checked:X(a,16),style:a.getStyle(),title:a.U,Fl:a.Za,value:a.ab(),width:a.Hb()},d=d||{},e='<div role="button"'+(d.id?' id="'+jl(d.id)+'"':"")+' class="',g;g=d||{};var h="goog-inline-block jfk-button ",k=g.style;switch(va(k)?k.toString():k){case 0:h+="jfk-button-standard";break;case 2:h+="jfk-button-action";break;case 3:h+="jfk-button-primary";break;case 1:h+="jfk-button-default";break;case 4:h+="jfk-button-flat";break;case 5:h+="jfk-button-mini";
break;case 6:h+="jfk-button-contrast";break;default:h+="jfk-button-standard"}h+=(1==g.width?" jfk-button-narrow":"")+(g.checked?" jfk-button-checked":"")+(g.Mi?" "+g.Mi:"")+(g.disabled?" jfk-button-disabled":"");e=e+jl(new Zj(h,void 0))+'"'+(d.disabled?' aria-disabled="true"':' tabindex="'+(d.xl?jl(d.xl):"0")+'"')+(d.title?" "+(d.Fl?"data-tooltip":"title")+'="'+jl(d.title)+'"':"")+(d.value?' value="'+jl(d.value)+'"':"");d.attributes?(g=d.attributes,null!=g&&g.Zc===Wj?g=g.getContent().replace(/([^"'\s])$/,
"$1 "):(g=String(g),g=pl.test(g)?g:"zSoyz"),g=" "+g):g="";e=e+g+">";d=null==(c=d.content)?"":c;c=null!=d&&d.Zc===Vj?d:d instanceof uc?il(wc(d),d.Lc()):il(Na(String(String(d))),hl(d));d=il(e+c+"</div>");c=(b||kd()).createElement("DIV");d=bk(d);c.innerHTML=d;1==c.childNodes.length&&(d=c.firstChild,1==d.nodeType&&(c=d));b.fh(c,a.getContent());this.Ua(a,c);return c};
f.Ua=function(a,b){ql.V.Ua.call(this,a,b);this.i||(this.i=Tb(this.ka,w(this.Fc,0,null),this.g,w(this.Fc,2,null),this.ha,w(this.Fc,3,null),this.o,w(this.Fc,1,null),this.s,w(this.Fc,4,null),this.R,w(this.Fc,5,null),this.j,w(this.Fc,6,null),this.U,w(this.Fc,null,1)));for(var c=Db(b),d=0;d<c.length;++d){var e=this.i[c[d]];e&&e(a)}if(c=b.getAttribute("data-tooltip"))a.U=c,a.Za=!0;return b};f.ab=function(a){return a.getAttribute("value")||""};f.Jf=function(a,b){a&&a.setAttribute("value",b)};
function tl(a,b){function c(a,b){(a?d:e).push(b)}var d=[],e=[],g=b.getStyle();c(0==g,a.ka);c(2==g,a.g);c(3==g,a.ha);c(4==g,a.s);c(5==g,a.R);c(1==g,a.o);c(6==g,a.j);c(1==b.Hb(),a.U);c(!b.isEnabled(),a.Ba()+"-disabled");Hb(b.S(),e);Fb(b.S(),d)};Math.floor(2147483648*Math.random()).toString(36);Math.abs(Math.floor(2147483648*Math.random())^Ca()).toString(36);function vl(a){$d.call(this);this.i=a||kd()}y(vl,$d);function wl(a,b){vl.call(this,b);this.b=a;this.ra=this.b.g().ppu;this.lb=this.b.g().lpu;this.R=[]}var xl,yl;y(wl,vl);f=wl.prototype;f.al=5;f.If=0;f.Ad=!1;f.Ge=!1;f.li=null;function zl(a){return"googlexpc_"+a.b.name+"_msg"}function Al(a){return"googlexpc_"+a.b.name+"_ack"}function Bl(a){try{if(!a.isDisposed()&&a.b.j())return a.b.s().frames||{}}catch(b){}return{}}function Cl(a,b){return Bl(a)[b]}
f.connect=function(){if(!this.isDisposed()&&this.b.j()){if(!this.Ge){var a=zl(this);this.j=Dl(this,a);this.ha=wd(this.i.b).frames[a];a=Al(this);this.g=Dl(this,a);this.U=wd(this.i.b).frames[a];this.Ge=!0}if(El(this,zl(this))&&El(this,Al(this)))this.Ga=new Fl(this,Cl(this,zl(this)),v(this.fl,this)),this.ta=new Fl(this,Cl(this,Al(this)),v(this.el,this)),this.Sg();else{if(1==this.b.i()){if(!(this.li||0<this.al--)){for(var b=10,a="";0<b--;)a+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(Math.floor(62*
Math.random()));this.b.ha(a);Gl(this);this.Ge=!1;this.li=Dl(this,"googlexpc_reconnect_"+this.b.name)}}else if(!this.b.i())for(var a=Bl(this),c=a.length,d=0;d<c;d++){try{a[d]&&a[d].name&&(b=a[d].name)}catch(g){}if(b){var e=b.split("_");if(3==e.length&&"googlexpc"==e[0]&&"reconnect"==e[1]){this.b.name=e[2];Gl(this);this.Ge=!1;break}}}wd(this.i.b).setTimeout(v(this.connect,this),100)}}};
function Dl(a,b){var c=J("IFRAME"),d=c.style;d.position="absolute";d.top="-10px";d.left="10px";d.width="1px";d.height="1px";c.id=c.name=b;c.src=a.ra+"#INITIAL";wd(a.i.b).document.body.appendChild(c);return c}function Gl(a){a.j&&(a.j.parentNode.removeChild(a.j),a.j=null,a.ha=null);a.g&&(a.g.parentNode.removeChild(a.g),a.g=null,a.U=null)}function El(a,b){try{var c=Cl(a,b);if(!c||c.location.href.indexOf(a.lb))return!1}catch(d){return!1}return!0}
f.Sg=function(){var a=Bl(this);a[Al(this)]&&a[zl(this)]?(this.Na=new Hl(this.ra,this.ha),this.s=new Hl(this.ra,this.U),wd(this.i.b).setTimeout(v(function(){this.Na.send("SETUP");this.Ad=!0},this),100)):(this.va||(this.va=v(this.Sg,this)),wd(this.i.b).setTimeout(this.va,100))};function Il(a){if(a.Za&&a.mb&&(a.b.R(),a.o)){for(var b=0,c;b<a.o.length;b++)c=a.o[b],a.b.o(c.rl,c.$k);delete a.o}}
f.fl=function(a){if("SETUP"==a)this.s&&(this.s.send("SETUP_ACK"),this.Za=!0,Il(this));else if(this.b.b()||this.Za){var b=a.indexOf("|"),c=a.substring(0,b);a=a.substring(b+1);b=c.indexOf(",");if(-1==b){var d;this.s.send("ACK:"+c);Jl(this,a)}else d=c.substring(0,b),this.s.send("ACK:"+d),c=c.substring(b+1).split("/"),b=parseInt(c[0],10),c=parseInt(c[1],10),1==b&&(this.ka=[]),this.ka.push(a),b==c&&(Jl(this,this.ka.join("")),delete this.ka)}};
f.el=function(a){"SETUP_ACK"==a?(this.Ad=!1,this.mb=!0,Il(this)):this.b.b()&&this.Ad&&parseInt(a.split(":")[1],10)==this.If&&(this.Ad=!1,Kl(this))};function Kl(a){if(!a.Ad&&a.R.length){var b=a.R.shift();++a.If;a.Na.send(a.If+b);a.Ad=!0}}function Jl(a,b){var c=b.indexOf(":"),d=b.substr(0,c),c=b.substring(c+1);a.b.b()?a.b.o(d,c):(a.o||(a.o=[])).push({rl:d,$k:c})}
f.send=function(a,b){var c=a+":"+b;if(!E||3800>=b.length)this.R.push("|"+c);else for(var d=b.length,e=Math.ceil(d/3800),g=0,h=1;g<d;)this.R.push(","+h+"/"+e+"|"+c.substr(g,3800)),h++,g+=3800;Kl(this)};f.ma=function(){wl.V.ma.call(this);var a=Ll;qb(a,this.Ga);qb(a,this.ta);this.Ga=this.ta=null;K(this.j);K(this.g);this.ha=this.U=this.j=this.g=null};
var Ll=[],Ml=v(function(){var a=Ll,b,c=!1;try{for(var d=0;b=a[d];d++){var e;if(!(e=c)){var g=b,h=g.g.location.href;if(h!=g.b){g.b=h;var k=h.split("#")[1];k&&(k=k.substr(1),g.i(decodeURIComponent(k)));e=!0}else e=!1}c=e}}catch(n){if(b.j.b.U(),!a.length)return}a=Ca();c&&(xl=a);yl=window.setTimeout(Ml,1E3>a-xl?10:100)},wl);function Nl(){xl=Ca();yl&&window.clearTimeout(yl);yl=window.setTimeout(Ml,10)}
function Hl(a,b){if(!/^https?:\/\//.test(a))throw Error("URL "+a+" is invalid");this.i=a;this.g=b;this.b=0}Hl.prototype.send=function(a){this.b=++this.b%2;a=this.i+"#"+this.b+encodeURIComponent(a);try{Uc?this.g.location.href=a:this.g.location.replace(a)}catch(b){}Nl()};function Fl(a,b,c){this.j=a;this.g=b;this.i=c;this.b=this.g.location.href.split("#")[0]+"#INITIAL";Ll.push(this);Nl()};function Ol(){$d.call(this);this.i=1;this.j=[];this.b=[];this.g={}}y(Ol,$d);f=Ol.prototype;f.subscribe=function(a,b,c){var d=this.g[a];d||(d=this.g[a]=[]);var e=this.i;this.b[e]=a;this.b[e+1]=b;this.b[e+2]=c;this.i=e+3;d.push(e);return e};f.Dl=function(a){var b=this.b[a];if(b){var c=this.g[b];c&&qb(c,a);delete this.b[a];delete this.b[a+1];delete this.b[a+2]}return!!b};f.clear=function(a){if(a){var b=this.g[a];b&&(z(b,this.Dl,this),delete this.g[a])}else this.b.length=0,this.g={}};
f.qc=function(a){if(a){var b=this.g[a];return b?b.length:0}a=0;for(b in this.g)a+=this.qc(b);return a};f.ma=function(){Ol.V.ma.call(this);this.clear();this.j.length=0};new Ol;function Pl(a,b,c){var d=l._gaq;d&&(c?d.push(["_trackEvent",a,b,c]):d.push(["_trackEvent",a,b]))}function Ql(){var a="gb-get-book-content";t(a)&&(a=G(a));a&&L(a,"click",w(Pl,"Buy","Click","Play Books Viewport"))}Ea("_OC_analyticsTrack",Pl);function Rl(){var a=G("books-microdata");a&&qj(window.top,function(){Pl("Social","Click On","Share button");return a})}function Sl(a,b){A(a,"with_share_button");var c;c=new Y("Share",void 0,5);c.render(a);L(c,"action",w(Tl,b))}function Tl(a){a=rj(a);Cj(a,{Tl:function(){Pl("Social","Click On","Standalone Share button")}})}function Ul(a,b,c){var d=window.gbar;d&&d.lPWF&&d.lPWF(w(Vl,a,"small",!0,b,c))}
function Vl(a,b,c,d,e){var g=I("DIV");a.appendChild(g);b={callback:"_OC_plusOneCallback",size:b,count:String(c),source:"google:BOOKS"};e&&(b.href=e);gapi.plusone.render(g,b);d&&(a.style.display="block")}Ea("_OC_plusOneCallback",function(a){"on"==a.state?Pl("Social","Click On","+1 Button"):Pl("Social","Click Off","+1 Button")});function Wl(a,b,c,d){oh.call(this,a,b);this.g=c?5:0;this.j=d||void 0}y(Wl,oh);Wl.prototype.o=function(){return this.g};Wl.prototype.i=function(a){this.g=a};Wl.prototype.Bb=function(a,b,c,d){var e=ih(this.element,this.b,a,b,null,c,10,d,this.j);if(e&496){var g=Xl(e,this.b);b=Xl(e,b);e=ih(this.element,g,a,b,null,c,10,d,this.j);e&496&&(g=Xl(e,g),b=Xl(e,b),ih(this.element,g,a,b,null,c,this.g,d,this.j))}};function Xl(a,b){a&48&&(b^=4);a&192&&(b^=1);return b};function Yl(a){Fh.call(this,a,void 0,void 0);this.Yg=!1;this.yf=!0;this.Ze=500}y(Yl,Oh);Yl.prototype.className="unified-hovercard";Yl.prototype.df=function(a,b){b||(b=new Wl(a,9,!0));Yl.V.df.call(this,a,b)};function Zl(){}Zl.prototype.b=null;function $l(a){var b;(b=a.b)||(b={},am(a)&&(b[0]=!0,b[1]=!0),b=a.b=b);return b};var bm;function cm(){}y(cm,Zl);function dm(a){return(a=am(a))?new ActiveXObject(a):new XMLHttpRequest}function am(a){if(!a.g&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.g=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.g}bm=new cm;function em(a){Q.call(this);this.headers=new Cg;this.R=a||null;this.g=!1;this.s=this.b=null;this.ka="";this.i=this.ha=this.j=this.U=!1;this.ra=0;this.o=null;this.va="";this.ta=this.Ga=!1}y(em,Q);var fm=/^https?$/i,gm=["POST","PUT"],hm=[];function im(a,b,c){var d=new em;hm.push(d);b&&d.listen("complete",b);d.Bc("ready",d.Ni);d.send(a,c,void 0,void 0)}f=em.prototype;f.Ni=function(){this.wa();qb(hm,this)};
f.send=function(a,b,c,d){if(this.b)throw Error("[goog.net.XhrIo] Object is active with another request="+this.ka+"; newUri="+a);b=b?b.toUpperCase():"GET";this.ka=a;this.U=!1;this.g=!0;this.b=this.R?dm(this.R):dm(bm);this.s=this.R?$l(this.R):$l(bm);this.b.onreadystatechange=v(this.bi,this);try{this.ha=!0,this.b.open(b,String(a),!0),this.ha=!1}catch(g){jm(this);return}a=c||"";var e=this.headers.clone();d&&Hg(d,function(a,b){e.set(b,a)});d=mb(e.yb(),km);c=l.FormData&&a instanceof l.FormData;!ob(gm,b)||
d||c||e.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");e.forEach(function(a,b){this.b.setRequestHeader(b,a)},this);this.va&&(this.b.responseType=this.va);"withCredentials"in this.b&&this.b.withCredentials!==this.Ga&&(this.b.withCredentials=this.Ga);try{lm(this),0<this.ra&&((this.ta=mm(this.b))?(this.b.timeout=this.ra,this.b.ontimeout=v(this.Wc,this)):this.o=R(this.Wc,this.ra,this)),this.j=!0,this.b.send(a),this.j=!1}catch(g){jm(this)}};
function mm(a){return E&&F(9)&&u(a.timeout)&&m(a.ontimeout)}function km(a){return"content-type"==a.toLowerCase()}f.Wc=function(){"undefined"!=typeof pa&&this.b&&(this.dispatchEvent("timeout"),this.abort(8))};function jm(a){a.g=!1;a.b&&(a.i=!0,a.b.abort(),a.i=!1);nm(a);om(a)}function nm(a){a.U||(a.U=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))}f.abort=function(){this.b&&this.g&&(this.g=!1,this.i=!0,this.b.abort(),this.i=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),om(this))};
f.ma=function(){this.b&&(this.g&&(this.g=!1,this.i=!0,this.b.abort(),this.i=!1),om(this,!0));em.V.ma.call(this)};f.bi=function(){this.isDisposed()||(this.ha||this.j||this.i?pm(this):this.Sk())};f.Sk=function(){pm(this)};
function pm(a){if(a.g&&"undefined"!=typeof pa&&(!a.s[1]||4!=(a.b?a.b.readyState:0)||2!=qm(a)))if(a.j&&4==(a.b?a.b.readyState:0))R(a.bi,0,a);else if(a.dispatchEvent("readystatechange"),4==(a.b?a.b.readyState:0)){a.g=!1;try{a.Sd()?(a.dispatchEvent("complete"),a.dispatchEvent("success")):nm(a)}finally{om(a)}}}function om(a,b){if(a.b){lm(a);var c=a.b,d=a.s[0]?r:null;a.b=null;a.s=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}}
function lm(a){a.b&&a.ta&&(a.b.ontimeout=null);u(a.o)&&(l.clearTimeout(a.o),a.o=null)}f.Sd=function(){var a=qm(this),b;a:switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:b=!0;break a;default:b=!1}if(!b){if(a=!a)a=String(this.ka).match(Ig)[1]||null,!a&&l.self&&l.self.location&&(a=l.self.location.protocol,a=a.substr(0,a.length-1)),a=!fm.test(a?a.toLowerCase():"");b=a}return b};function qm(a){try{return 2<(a.b?a.b.readyState:0)?a.b.status:-1}catch(b){return-1}}
function rm(a){if(a.b)return hj(a.b.responseText)};function sm(){this.b=[]}f=sm.prototype;f.getId=function(){return this.Ia};f.addVolume=function(a){this.b.push(a)};f.Ii=function(a,b,c){var d=null;c.target.Sd()&&(d=new nj,d.b.volumeId=a,this.addVolume(d));b(d)};f.Si=function(a,b,c){var d=null;c.target.Sd()&&(d=tm(this,a),this.removeVolume(d));b(d)};f.removeVolume=function(a){sb(this.b,function(b){return b.dc()==a.dc()})};function tm(a,b){return mb(a.b,function(a){return a&&a.dc()==b})};function um(a){this.b=[];this.Ia=a.id;this.yd=a.title;this.U=a.num_volumes;this.g=a.access||"0";this.ha=a.predefined;this.R=a.can_remove_volumes;this.o=a.can_add_volumes;this.s=a.can_only_add_ebooks||!1;this.i=new S(a.add_vol_base_url);this.j=new S(a.del_vol_base_url);a.volumes&&(this.b=hb(a.volumes,function(a){return new pj(a)}))}y(um,sm);function vm(){V.call(this);this.i=[];this.g=[]}y(vm,V);function wm(a){var b=new S(xd().location),b=new S(b);return a===parseInt(ah(b,"as_coll"),10)}function xm(a,b){return mb(Bb(a.i,a.g),function(a){return a.getId()==b})};function ym(a,b){a&&Be(a,"click",function(){var c=I("IFRAME",{src:"//fls.doubleclick.net/activityi;src=2542116;type=books995;cat="+b+";ord="+1E13*(Math.random()+""),style:"width:1px; height:1px; display:none; border:0",frameborder:0});md(a).body.appendChild(c)})};var zm="ganpub ganclk dapp source_ip source_country source_domain authuser".split(" ");function Am(a){var b=new S(window.location.href);T(a,"hl","en");var c=ah(b,"output");c&&T(a,"output",c);c=ah(b,"source");"ge-ipad-app"==c?(T(a,"dapp","2"),a.b.remove("output")):"ge-tablet-app"==c?(T(a,"dapp","4"),a.b.remove("output")):"ge-ip-app"==c?T(a,"dapp","1"):"ge-android-app"==c&&T(a,"dapp","3");ah(b,"authuser")||a.b.remove("authuser");z(zm,function(c){var d=ah(b,c);d&&T(a,c,d)})};function Bm(a,b,c){$d.call(this);this.g=null;this.data=a;this.b=b;this.maxWidth=c||500}y(Bm,$d);var Cm=/(<b\s*>)|(<\/b>)/ig,Dm={VIEW_PAGES_PARTIAL:2,VIEW_PAGES_ALL:5,VIEW_PAGES_PARTIAL_FIXED:6,VIEW_PURCHASED:7,VIEW_GOOGLE_EDITIONS_PREVIEW:8,VIEW_PUBLISHER_PROOFREADING:9};Bm.prototype.ma=function(){this.g&&this.g.wa()};function Em(a){return a.g||(a.g=new U(a))}
Bm.prototype.i=function(a){var b=I("DIV"),c=new S(this.data.b.Rc||this.data.b.fi);this.data.b.source&&T(c,"source",this.data.b.source);var d=this.data.b.title;this.data.b.subtitle&&(d+=": "+this.data.b.subtitle);c=I("A",{href:c.toString(),className:this.b+"-title"},d);b.appendChild(c);this.j(b);a.appendChild(b);Fm(this,a);b=I("DIV");if(u(this.data.b.rating||0)){for(var d=this.data.b.rating||0,c=Math.floor(d),d=0<d-c?1:0,e=5-c-d,g=I("SPAN",this.b+"-stars goog-inline-block");0<c;){c--;var h=I("SPAN",
"card-star-on goog-inline-block");g.appendChild(h)}for(;0<d;)d--,h=I("SPAN","card-star-half goog-inline-block"),g.appendChild(h);for(;0<e;)e--,h=I("SPAN","card-star-off goog-inline-block"),g.appendChild(h);b.appendChild(g)}c=I("A",{className:this.b+"-reviews-link goog-inline-block",href:this.data.b.ol},this.data.b.uk+" reviews");b.appendChild(c);a.appendChild(b);this.data.b.snippet&&(b=I("DIV",this.b+"-snippet",Cd(He(this.data.b.snippet+" "))),c=I("A",{href:this.data.b.Rc,className:this.b+"-more-link"},
"more \u00bb"),b.appendChild(c),a.appendChild(b))};
function Fm(a,b){var c="",d=I("DIV"),e=a.data.b.authors;if(!Ja($a(e))){c=e.split(/\s*,\s*/g);e=c.length;if(!e)return;var g=I("SPAN","author"),h=e-1,k=Bd(", ");z(c,function(a,b){var c=a?a.replace(Cm,""):"",c=Ia(c),d=new S(Ha('/ebooks?output=ws2&as_brr=5&q=inauthor:"%s"',c));Am(d);c=I("A",{href:d},c);g.appendChild(c);b<h&&(c=k.cloneNode(!0),g.appendChild(c))},a);d.appendChild(g);c="\u00a0-\u00a0"}a.data.b.ji&&(Dd(d,I("SPAN",a.b+"-pubdate",c+a.data.b.ji)),c="\u00a0-\u00a0");a.data.b.Ih&&(d.appendChild(Bd(c)),
Dd(d,I("SPAN",a.b+"-pagesnum",a.data.b.Ih+" pages")));b.appendChild(d)}function Gm(a,b,c,d,e,g,h){var k=a.b+"-button",k=k+(" "+(a.b+"-button-hilite"));g&&(k+=" disabled");c=I("A",{id:h||"",href:e?"#":d,className:k},c);e&&(e=Ki||Li?"touchstart":"click",Em(a).Bc(c,e,function(a){a.preventDefault();a=I("FORM",{action:d,method:"POST"});M(a,{position:"absolute",overflow:"hidden",width:"1px",height:"1px",visibility:"hidden"});b.appendChild(a);a.submit()},!1));b.appendChild(c)}Bm.prototype.j=function(){};function Hm(a,b,c){Bm.call(this,a,b,c);ah(new S(this.data.b.Rc),"dapp")}y(Hm,Bm);
Hm.prototype.render=function(a){Ed(a);var b=I("DIV",this.b),c=I("DIV",this.b+"-meta");this.i(c);var d=I("DIV",this.data.b.Ie?this.b+"-footer":this.b+"-footer-nonebook"),e=I("DIV",this.b+"-footer-inner");if(this.data.b.Ie)if(ij.IsGiftingEnabled&&wm(1)&&oj(this.data))Im(this,e);else if(this.data.Td()&&wm(1))Jm(this,e);else if(this.data.b.Rb&&!this.data.isPurchased()||this.data.zc()){var g=I("DIV",this.b+"-pre-order-date");g.innerHTML="Available on: "+this.data.b.Qe;e.appendChild(g);this.data.zc()&&
wm(1)&&Jm(this,e)}else if(this.data.isPurchased()&&wm(1))Im(this,e),Jm(this,e);else{Im(this,e);var g=!this.data.isPurchased()&&!this.data.b.Ke,h=this.data.b.Ke&&!this.data.b.Fe;if(g||h){g=I("SPAN",{"class":this.b+"-footer-inner-right"});if(h=this.data.b.dl||this.data.b.ki){for(var k=h.search(Mg),n=0,p,q=[];0<=(p=Lg(h,n,"source",k));)q.push(h.substring(n,p)),n=Math.min(h.indexOf("&",p)+1||k,k);q.push(h.substr(n));h=q.join("").replace(Og,"$1");h=Kg(h,"source","ebookstore")}h&&(h=I("A",{id:"unified-hovercard-preview-link",
href:h},"preview it"),g.appendChild(h),ym(e,"books500"));e.appendChild(g)}}d.appendChild(e);b.appendChild(c);b.appendChild(d);a.appendChild(b);kf(a).width>this.maxWidth&&N(a,this.maxWidth,"")};
Hm.prototype.i=function(a){if(!(this.data.isPurchased()||this.data.zc()||this.data.Td())&&this.data.b.viewOrderUrl&&wm(1)){var b=I("IMG",{src:"/googlebooks/images/purchase_error.gif","class":this.b+"-error-icon"}),b=I("DIV",this.b+"-card-error",b,"Credit card declined:");if(this.data.b.viewOrderUrl){var c=Cd(He("&nbsp;"+mj(this.data.b.viewOrderUrl,"primary")));b.appendChild(c)}a.appendChild(b)}Hm.V.i.call(this,a);b=I("DIV",this.b+"-book-options");if(this.data.b.Ie){if(this.data.b.Ke)this.data.b.Fe?
Km(this,b):(Gm(this,b,"eBook - FREE",this.data.b.Zi,!this.data.b.Hi,void 0,"unified-hovercard-free-btn"),ym(b,"books165"));else if(this.data.zc()){var d=I("SPAN",this.b+"-pre-ordered","Pre-ordered");b.appendChild(d)}else this.data.Td()&&wm(1)?(d=I("DIV",this.b+"-cancelled"),c=this.data.b.Ki,0==c?Ld(d,"Cancelled - by customer request"):1==c?Ld(d,"Cancelled - problem with eBook"):2==c?Ld(d,"Cancelled - price change"):3==c?Ld(d,"Cancelled - publisher cancellation"):Ld(d,"Cancelled"),b.appendChild(d)):
this.data.isPurchased()||this.data.b.Fe?!this.data.isPurchased()&&this.data.b.Fe?Lm(this,b):this.data.isPurchased()&&Km(this,b):Lm(this,b);wm(7)&&(d=I("SPAN",this.b+"-offline-remove-options"),c=I("SPAN",{id:"unified-hovercard-remove-from-ebooks","class":this.b+"-fake-link"},"Remove from My eBooks"),c.id="hovercard-remove-from-my-ebooks",d.appendChild(c),b.appendChild(d))}else{c=this.data.b.fi;a:{for(d in Dm)if(Dm[d]==this.data.b.viewability){d=!0;break a}d=!1}d&&!Ja(c)?Gm(this,b,"Preview",c,void 0,
void 0,"unified-hovercard-preview-sample"):Gm(this,b,"Preview",c,!1,!0,"unified-hovercard-preview-sample")}a.appendChild(b)};
function Jm(a,b){var c=I("DIV",{id:"unified-hovercard-purchased-shelf-links","class":a.b+"-order-links-container"}),d=a.data.b.viewOrderUrl;d&&(d=Cd(He(mj(d,""))),c.appendChild(d));a.data.zc()||(d=I("DIV",{id:"unified-hovercard-delete-forever","class":a.b+"-footer-fake-link"},"Delete forever"),A(d,a.b+"-footer-action-link"),d.id="hovercard-delete-forever",c.appendChild(d));b.appendChild(c)}
function Lm(a,b){a.data.b.Rb&&!a.data.isPurchased()?Gm(a,b,"Pre-order eBook - "+a.data.b.ni,a.data.b.uf,void 0,void 0,"unified-hovercard-buy-btn"):a.data.hg()?Gm(a,b,"EBOOK FROM "+a.data.b.Lk,a.data.b.uf,void 0,void 0,"unified-hovercard-buy-btn"):Gm(a,b,"Buy eBook - "+a.data.b.ni,a.data.b.uf,void 0,void 0,"unified-hovercard-buy-btn");ym(b,"books576")}function Km(a,b){Gm(a,b,"Read now",a.data.b.ki,void 0,void 0,"unified-hovercard-read-now")}
function Im(a,b){var c=I("DIV",a.b+"-supported-devices"),d=a.b+"-device-type",e=a.b+"-device-supported",g=a.b+"-device-not-supported",h=I("SPAN",d,"Web"),k=I("SPAN",d,"Tablet / iPad"),n=I("SPAN",d,"eReader"),d=I("SPAN",d,"Smartphone"),p=I("SPAN","goog-inline-block"),q=I("SPAN","goog-inline-block"),x=I("SPAN","goog-inline-block"),H=I("SPAN","goog-inline-block");a.data.b.De?(A(p,e),A(q,e),A(x,e),A(H,e)):(a.data.b.Ee?(A(p,e),A(q,e)):(A(p,g),A(q,g)),A(x,g),A(H,g));c.appendChild(p);c.appendChild(h);c.appendChild(q);
c.appendChild(k);c.appendChild(x);c.appendChild(n);c.appendChild(H);c.appendChild(d);b.appendChild(c)}Hm.prototype.j=function(a){var b=I("DIV",[this.b+"-plusone-container","goog-inline-block"]);a.appendChild(b)};function Mm(a,b){if(Nm()){var c=b,d=/\s*([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)/g,e=/left/g,g=/right/g,h=/Left/g,k=/Right/g,n=/%%%%/g,p={},q;for(q in c){var x=c[q].replace(d,"$1 $4 $3 $2"),x=x.replace(e,"%%%%").replace(g,"left").replace(n,"right"),H=q.replace(e,"%%%%").replace(g,"left").replace(n,"right"),H=H.replace(h,"%%%%").replace(k,"Left").replace(n,"Right");p[H]=x}b=p}M(a,b)}function Nm(){return"rtl"==document.body.dir}
var Om={border:!0,padding:!0,margin:!0},Pm=["Top","Bottom","Right","Left"],Qm={color:"#0000cc",textDecoration:"underline"};function Rm(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"};z(a,function(a){Jb(b,w(Sm,a))})}
function Sm(a,b,c){var d=""==Te(a,c);Om[c]?z(Pm,function(e){d&&""==Te(a,c+e)&&M(a,c+e,b)}):d&&("a"==a.tagName.toLowerCase()&&Qm[c]?M(a,c,Qm[c]):M(a,c,b))}function Tm(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||Jb(c,function(b,c){vb(d,ub(a.getElementsByTagName(c)))});Rm(d)};function Um(a,b){Yl.call(this,a);this.wb=Nm();this.g=this.ka=this.Hc=null;this.Ai=b;this.b=null;this.render(b);Vm(this)}y(Um,Yl);var Wm={};function Xm(a){z(od(document,"IMG","coverthumb",a),function(a){a.title="";var b=Ud(a,"A"),b=ah(new S(b.href),"id");(b=Wm[b])&&new Um(a,b)})}Ea("_OC_registerHover",function(a){a=new pj(a);var b=ah(new S(a.b.Rc),"id");Wm[b]=a});Um.prototype.ma=function(){Em(this.b).wa();K(this.S())};
Um.prototype.Ud=function(a,b){Um.V.Ud.call(this,a,b);this.Aa()&&(this.ng=this.wb?new Je(0,-2,0,0):new Je(0,0,0,-2),this.Aa()&&this.ld(),this.Hc=this.anchor,Ym(this))};Um.prototype.render=function(a){this.b&&(this.b.wa(),this.g=this.ka=null);this.b=new Hm(a,this.className,435);this.b.render(this.S());Vm(this);if(a=a.b.Li){var b=pd(this.className+"-plusone-container",this.S());b&&Ul(b,!1,a)}this.Aa()&&Ym(this)};
function Ym(a){var b=I("DIV"),c=I("DIV"),d;var e=lf(a.Hc||null);d=lf(a.S());if(e){e.top=Math.ceil(e.top);d.top=Math.ceil(d.top);e.left=Math.ceil(e.left);d.left=Math.ceil(d.left);var g=d.top>=e.top,h=Pe(d,e);h||(h=new Me(e.left,0,e.width,0));e=a.wb?d.left+d.width-h.left-(h.width/2+12):h.left-d.left+(h.width/2-12);d={x:0<e?e:0,y:d.height-2,nk:g}}else d=null;g=a.wb?"marginRight":"marginLeft";M(c,g,d.x+"px");M(b,g,d.x-1+"px");A(a.S(),a.className+"-tooltip");d.nk?(M(c,"bottom",d.y+"px"),M(b,"bottom",d.y+
1+"px"),A(c,a.className+"-arrow-up"),A(b,a.className+"-arrow-up-border")):(M(c,"top",d.y+"px"),M(b,"top",d.y+1+"px"),a.Ai.b.Ie||A(c,a.className+"-nofooter"),A(c,a.className+"-arrow-down"),A(b,a.className+"-arrow-down-border"));a.g?Fd(b,a.g):a.S().appendChild(b);a.ka?Fd(c,a.ka):a.S().appendChild(c);a.ka=c;a.g=b}
Um.prototype.Bd=function(a){var b=a.target||null;if(b){3==b.nodeType&&(b=b.parentNode);var c;switch(b.id){case "hovercard-remove-from-my-ebooks":a.preventDefault();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","touchstart"==a.type&&(window.location.href=b.href))}c&&this.dispatchEvent(new ce(c,this))}};
function Vm(a){var b=Ki||Li?"touchstart":"click",c=Em(a.b);th(c,a.S(),b,a.Bd,!1,a)};function Zm(a,b,c,d){fj.call(this,b);this.g=a;this.s=null;this.ta=d||{};this.R=!1;if(c==(1).toString()||c==(7).toString())this.R=!0}y(Zm,fj);var $m=new Q;
Zm.prototype.draw=function(a){var b=I("A",{className:"slider-link goog-inline-block"});N(b,"",this.Ob());var c=new S(this.g.b.Rc);this.g.b.source?T(c,"source",this.g.b.source):T(c,"source","gbs_slider_thumb");c.b.remove("num");b.href=c.toString();a.appendChild(b);this.s=J("img");this.s.alt="";this.b.Bc(this.s,"load",v(this.va,this));$m.dispatchEvent("start");(a=this.g.b.zl)?(a=new S(a),T(a,"h",this.Ob()),T(a,"stbn",1),a.b.remove("edge"),this.s.src=a.toString()):this.s.src="/googlebooks/images/no_cover_thumb.gif";
N(this.s,"",this.Ob());b.appendChild(this.s);(ij.IsPreOrdersEnabled||this.ta.future_on_sale_volumes)&&this.g.b.Rb&&this.g.zc()&&this.R?(this.i=I("SPAN",["bookcard-badge","bookcard-preorder-label"],"Pre-ordered"),b.appendChild(this.i)):ij.IsGiftingEnabled&&oj(this.g)&&this.R?(this.i=I("SPAN",["bookcard-badge","bookcard-gift-label"],"Gift Received"),b.appendChild(this.i)):this.R&&2==this.g.b.rentalState?(this.i=I("SPAN",["bookcard-badge","bookcard-sample-label"],"Expired"),b.appendChild(this.i)):this.R&&
1==this.g.b.rentalState?(a=this.g,1==a.b.rentalState?(a=a.b.kl-Ca()/1E3,a=Math.round(a/3600),c=Math.round(a/24),a=1>=a?"Expiring soon":48>=a?a+" hours":c+" days"):a="",this.i=I("SPAN",["bookcard-badge","bookcard-sample-label"],a),b.appendChild(this.i)):!this.R||this.g.isPurchased()||this.g.b.Ke||(this.i=I("SPAN",["bookcard-badge","bookcard-sample-label"],"Sample"),b.appendChild(this.i));Be(b,"mouseover",v(this.ka,this,b))};
Zm.prototype.va=function(){this.dispatchEvent("render");$m.dispatchEvent("complete");if(this.i){var a=kf(this.s).width;this.i.style.width=Xe(a,!0)}};Zm.prototype.ka=function(a,b){(new Um(a,this.g)).Uf(b)};function an(a,b,c){Zm.call(this,a,b-40,c);this.U=I("DIV","slider-annotation");this.ha=!1}y(an,Zm);an.prototype.draw=function(a){Be(this,"render",v(this.ra,this));an.V.draw.call(this,a);a.appendChild(this.U)};
an.prototype.ra=function(a){if(!this.ha){a.g();a=this.U;var b=this.g,c=J("DIV"),d=I("A",{href:b.b.Rc,className:"slider-annotation-title"},Bd(b.b.title));c.appendChild(d);if(b=b.b.authors)b=I("DIV","slider-annotation-author",Bd(b)),c.appendChild(b);N(c,kf(this.s).width+5,"");a.appendChild(c);this.ha=!0;this.dispatchEvent("render")}};function bn(a,b,c){an.call(this,a,b,c)}y(bn,an);function cn(a,b,c,d,e,g){V.call(this);this.ka=a;this.R=b;this.va=e;this.ta=g||{};this.o=u(d)?d:this.R?200:80;this.R||A(this.ka,"slider-small");this.U=[];this.i=J("A");this.i.innerHTML=Nm()?"&rsaquo;":"&lsaquo;";this.i.setAttribute("title","Scroll left");pf(this.i,!0);this.ka.appendChild(this.i);this.g=J("div");A(this.g,"slider-drawables");this.ka.appendChild(this.g);this.s=J("A");this.s.innerHTML=Nm()?"&lsaquo;":"&rsaquo;";this.s.setAttribute("title","Scroll right");pf(this.s,!0);this.ka.appendChild(this.s);
this.b.listen(this.i,"click",v(this.Hh,this,-.75));this.b.listen(this.s,"click",v(this.Hh,this,.75));this.fe();a=new ej;this.b.listen(a,"resize",this.sg);this.sg();this.ha=0;this.ra=E&&F("8")&&!F("9")&&Nm();c&&en(this,c)}y(cn,V);function fn(a){var b=Math.ceil(1.25*gn(a)),b=Math.min(a.U.length,a.ha+b);z(xb(a.U,a.ha,b),v(a.Vi,a));a.fe();a.ha=b;b>=a.U.length&&a.dispatchEvent("render")}f=cn.prototype;
f.Vi=function(a){var b=I("DIV",{"class":"goog-inline-block slider-loading"});this.g.appendChild(b);var c=I("DIV",{"class":"goog-inline-block slider-drawable"});O(c,!1);this.g.appendChild(c);this.b.Bc(a,"render",v(this.Wi,this,b,c));a.draw(c)};f.Wi=function(a,b){K(a);this.fe();O(b,!0)};function en(a,b){var c=hb(b,function(a){return this.R?new bn(a,this.o):new Zm(a,this.o,this.va,this.ta)},a);hn(a,c)}function hn(a,b){vb(a.U,b);fn(a)}
f.Hh=function(a){(Nm()?0>a:0<a)&&fn(this);a*=this.ra?-1:1;a*=kf(this.g).width+20;this.j&&(this.j.wa(),this.j=null);this.j=new qg([this.g.scrollLeft,0],[this.g.scrollLeft+a,0],500,zg);L(this.j,"animate",v(this.Ck,this));L(this.j,"end",v(this.fe,this));this.j.play()};f.Ck=function(a){a=hb(a.coords,Math.round);this.g.scrollLeft=a[0]};
f.fe=function(){var a,b;Tc&&Nm()||this.ra?(a=this.g.scrollLeft<=-1*(this.g.scrollWidth-kf(this.g).width),b=!this.g.scrollLeft):(a=!this.g.scrollLeft,b=this.g.scrollLeft>=this.g.scrollWidth-kf(this.g).width);this.i.className=a?"slider-button slider-button-left slider-button-disabled":"slider-button slider-button-left";this.s.className=b?"slider-button slider-button-right slider-button-disabled":"slider-button slider-button-right"};f.sg=function(){this.fe()};
function gn(a){var b=a.R?110:50;return Math.ceil(kf(a.g).width/b)};function jn(a,b){V.call(this);this.U=a;this.source=b?b:"gbs_bookshelf_slider";this.R=0;this.j=new ej;this.ka=this.j.ua();this.ha="";Be(this.j,"resize",v(this.Jh,this))}y(jn,V);f=jn.prototype;f.Jh=function(){this.j.ua().width>this.ka.width?this.se():Be(this.j,"resize",v(this.Jh,this))};f.render=function(a){this.o=a;this.g=new cn(this.o,!0,void 0,void 0,this.U.getId());this.b.listen(this.g,"render",v(this.se,this))};
f.se=function(){this.g.sg();var a=Math.ceil(1.25*gn(this.g))+1,b=kn(this,this.R,a);b&&(this.R+=a,im(b,v(this.ek,this)))};f.ek=function(a){a=a.target;if(a.Sd()){if((a=(new um(rm(a))).b)&&a.length){var b=jj(a[a.length-1].b.Rc);this.ha!=b&&(this.ha=b,hn(this.g,ln(this,a)));(a=Ud(this.S(),"div","slider-box"))&&mf(a,1)}else this.g.ha||this.il();this.dispatchEvent("success")}};function ln(a,b){return hb(a.zf(b),function(a){return this.g.R?new bn(a,200,this.U.getId()):new Zm(a,80,this.U.getId())},a)}
f.il=r;f.S=function(){return this.o};f.zf=function(a){return this.source?hb(a,function(a){a.b.source=this.source;return a},this):a};function mn(a,b,c,d,e){jn.call(this,a,e);this.i=b;this.s=c||!1;this.ra=d||[]}y(mn,jn);function kn(a,b,c){var d=new S("/books?jscmd=SearchVolume");Am(d);T(d,"start",b);T(d,"num",c);a.s?(T(d,"as_pt","MAGAZINES"),T(d,"as_coll2",a.i)):(T(d,"as_brr",3),T(d,"q",a.i),fb(a.ra,function(a){T(d,a.name,a.value)}));return d}mn.prototype.render=function(a){this.o=a;this.g=new cn(a,!this.s);this.b.listen(this.g,"render",v(this.se,this))};
mn.prototype.zf=function(a){return this.s?hb(a,function(a){a.b.source="gbs_other_issues";return a},this):mn.V.zf.call(this,a)};function nn(a,b,c){Q.call(this);this.o=a;this.i=b;this.g=kf(b).width;this.s=c;this.$a=!1;this.j=Nm()}y(nn,Q);function on(a,b){if(b!=a.$a){a.$a=b;var c=a.o.Ea().i.g;O(c,!1);kf(c);c=[w(pn,a.i,a.s,a.g,a.j,b),v(a.b,a),w(O,c,!0)];z(c,R)}}nn.prototype.b=function(){this.dispatchEvent("change")};function pn(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="");O(a,!e)};function qn(a,b,c){Yl.call(this,a);this.Ca=b;this.wb=c}y(qn,Yl);
qn.prototype.render=function(){var a=this.S();A(a,this.className+"-tooltip");A(a,this.className+"-device-and-format");M(a,"z-index",1E4);if(this.Ca.i){for(var b=this.className,c=I("DIV",this.className+"-meta"),d=document,e=d.createElement("TABLE"),g=e.appendChild(d.createElement("TBODY")),h=0;1>h;h++){for(var k=d.createElement("TR"),n=0;2>n;n++)k.appendChild(d.createElement("TD"));g.appendChild(k)}A(e,this.className+"-table-layout");d=e.rows[0].cells;g=rn(this);d[0].appendChild(g);g=sn(this);d[1].appendChild(g);
g=I("DIV",this.className+"-link");h=new S(window.location.href);k=new S("/support/bin/answer.py?answer=1062949");h=ah(h,"hl")?T(k,"hl",ah(h,"hl")).toString():"/support/bin/answer.py?answer=1062949";h=I("A",{target:"_blank",href:h},"Help with devices & formats");g.appendChild(h);ij.IsPreOrdersEnabled&&this.Ca.Rb&&(h=I("DIV",null,I("A",{href:this.wb},"Help with pre-orders")),g.appendChild(h));d[1].appendChild(g);c.appendChild(e);d=this.Ca;(e=d.Ga)&&!d.Rb&&d.ka&&(e=I("P",this.className+"-additional",
I("A",{href:e},d.Qb?"Read the book for FREE":"Read the first chapter - FREE!")),c.appendChild(e));if(d.s||d.o)if(g=d.U,h=d.ha,g||h)e=I("P",this.className+"-additional",Bd("Download ")),g&&(k=I("A",{href:g},"EPUB"),e.appendChild(k)),h&&(g&&e.appendChild(Bd(", ")),g=I("A",{href:h},"PDF"),e.appendChild(g)),e.appendChild(Bd(" - ")),d=d.dc(),g=(new S(window.location.href)).o.split("/"),g=new S("/"+g[1]),Am(g),T(g,"output","acs_help"),T(g,"id",d),d=I("A",{href:g.toString()},"read eReader instructions"),
e.appendChild(d),c.appendChild(e);e=I("A",{href:"https://books.google.com/support/bin/topic.py?topic=28528",target:"_blank"},"Learn more about books on Google Play");ij.IsPreOrdersEnabled&&this.Ca.Rb?(d=I("DIV",{"class":this.className+"-date"},"Available on: "+this.Ca.Qe),this.g=I("DIV",this.className+"-footer",e,d)):this.g=I("DIV",this.className+"-footer",e);b=I("DIV",b,c,this.g);A(b,this.className+"-device-content");a.appendChild(b)}};
function rn(a){var b=I("UL",a.className+"-list"),c=I("H4",null,"Good for:");b.appendChild(c);var d=a.className+"-device-type",c=a.className+"-device-supported",e=a.className+"-device-not-supported",g=a.className+"-device-unknown-supported",h=I("A",{"class":d,href:"/help/ebooks/webreader.html"},"Web"),k=I("A",{"class":d,href:"/help/ebooks/devices.html"},"Tablet / iPad"),n=I("A",{"class":d,href:"/help/ebooks/ereader.html"},"eReader"),p=I("A",{"class":d,href:"/help/ebooks/devices.html"},"Smartphone"),
q=a.Ca.De,x=a.Ca.Ee,H=a.Ca.Rb,d=new U(a),h=I("LI",null,h);H?d.listen(h,"mouseover",w(a.b,"The format of this book is currently unknown. We will update this when we receive the information from the publisher.")):(q||x)&&d.listen(h,"mouseover",w(a.b,"This eBook, like all Google eBooks, is formatted to be readable on the web."));d.listen(h,"mouseout",a.ka);b.appendChild(h);k=I("LI",null,k);H?d.listen(k,"mouseover",w(a.b,"The format of this book is currently unknown. We will update this when we receive the information from the publisher.")):
(q||x)&&d.listen(k,"mouseover",w(a.b,"This eBook, like all Google eBooks, is formatted to be readable on tablet devices like Android tablets and the iPad."));d.listen(k,"mouseout",a.ka);b.appendChild(k);n=I("LI",null,n);d.listen(n,"mouseover",function(){H?this.b("The format of this book is currently unknown. We will update this when we receive the information from the publisher."):q?this.b("This Google eBook includes flowing text, so you can adjust the font to read comfortably on an eReader."):this.b("This Google eBook does not include flowing text, so you cannot adjust the font on an eReader.")});
d.listen(n,"mouseout",a.ka);b.appendChild(n);p=I("LI",null,p);d.listen(p,"mouseover",function(){H?this.b("The format of this book is currently unknown. We will update this when we receive the information from the publisher."):q&&x?this.b("This eBook is good for smartphones like Android and iPhone / iPod touch."):q?this.b("This Google eBook includes flowing text  so you can adjust the font to read comfortably on the small screen of a smartphone."):this.b("This eBook may be hard to read on smartphones like Android and iPhone / iPod touch.")});
d.listen(p,"mouseout",a.ka);b.appendChild(p);H?(A(h,g),A(k,g),A(n,g),A(p,g)):q?(A(h,c),A(k,c),A(n,c),A(p,c)):(x?(A(h,c),A(k,c)):(A(h,e),A(k,e)),A(n,e),A(p,e));return b}
function sn(a){var b=I("UL",a.className+"-list"),c=I("H4",null,"Features:");b.appendChild(c);var d=a.className+"-device-supported",e=a.className+"-device-not-supported",g=a.className+"-device-unknown-supported",c=I("A",{href:"/support/bin/answer.py?answer=1062949"},"Flowing text"),h=I("A",{href:"/support/bin/answer.py?answer=1062949"},"Scanned pages"),k=a.Ca.De,n=a.Ca.Ee,p=a.Ca.Rb;p?(c=I("LI",g,c),d=I("LI",g,h)):(c=I("LI",k?d:e,c),d=I("LI",n?d:e,h));e=new U(a);e.listen(c,"mouseover",function(){p?
this.b("The format of this book is currently unknown. We will update this when we receive the information from the publisher."):k?this.b("This eBook includes flowing text, so you can adjust the font size and style to read comfortably on any device."):this.b("This book does not include flowing text, so you cannot adjust the font. Instead, you see images of pages, with a fixed layout. This is good for larger screens,  but not always ideal for eReaders and smartphones.")});e.listen(c,"mouseout",a.ka);
e.listen(d,"mouseover",function(){p?this.b("The format of this book is currently unknown. We will update this when we receive the information from the publisher."):n?this.b("This eBook includes scanned pages, so pages appear as they would in a printed book."):this.b("This eBook does not include scanned pages, which retain the format of a printed book. Instead, the text can be  adjusted and it flows to fit any screen.")});e.listen(d,"mouseout",a.ka);b.appendChild(c);b.appendChild(d);return b}
qn.prototype.ka=function(){Ed(this.g);var a=I("A",{href:"https://books.google.com/support/bin/topic.py?topic=28528",target:"_blank"},"Learn more about books on Google Play");this.g.appendChild(a);ij.IsPreOrdersEnabled&&this.Ca.Rb&&(a=I("DIV",{"class":this.className+"-date"},"Available on: "+this.Ca.Qe),this.g.appendChild(a))};qn.prototype.b=function(a){Ed(this.g);t(a)?this.g.appendChild(Bd(a)):this.g.appendChild(a)};function tn(a,b,c){Y.call(this,b,void 0,3);this.Ca=a;this.va=c}y(tn,Y);tn.prototype.render=function(a){tn.V.render.call(this,a);A(this.S(),"gb-get-book");ij.IsPreOrdersEnabled&&this.Ca.Rb&&M(this.S(),"line-height","18px")};tn.prototype.La=function(){tn.V.La.call(this);this.b=new qn(this.S(),this.Ca,this.va);this.b.render();var a=pd("about_title",G("menu_container"));a&&K(a)};
function un(){var a=G("gb-buy-options-trigger");if(a&&a.parentNode&&a.parentNode.parentNode?!Eb(a.parentNode.parentNode,"jfk-button"):1){var a=G("gb-buy-options-trigger"),b=G("buy");if(a&&b){Gb(b,"about_content");var c=I("SPAN","gb-buy-options-arrow","\u25bc");a.appendChild(c);A(b,"gb-buy-options-list");A(b,"unified-hovercard");ih(a,9,b,8);O(b,!1);L(document,"mousedown",w(vn,a,b))}}}
function vn(a,b,c){a=Jd(a,c.target);c=Jd(b,c.target);var d="none"!=b.style.display;a||c||!d?a&&(O(b,!d),d||mf(b,1)):O(b,!1)};function wn(a,b,c){Q.call(this);var d=J("a");M(d,{whiteSpace:"nowrap",textDecoration:"none",cursor:"pointer"});a.appendChild(d);a=J("img");a.src=b;a.border="0";M(a,{verticalAlign:"bottom"});d.appendChild(a);d.appendChild(Bd(" "));b=J("span");b.innerHTML=c;M(b,{textDecoration:"underline"});d.appendChild(b);L(d,"click",v(this.b,this))}y(wn,Q);wn.prototype.b=function(a){this.g&&(a.preventDefault(),a.g());this.dispatchEvent("click")};function xn(a,b,c,d,e){function g(a){if(a){a.tabIndex=0;xi(a,"tab");A(a,"goog-zippy-header");a&&h.ha.listen(a,"click",h.ka);var b=h;a&&(Ci(b.R,a),b.U.listen(b.R,"key",b.ra))}}Q.call(this);this.s=e||kd();this.b=this.s.S(a)||null;this.j=this.s.S(d||null);this.i=(this.o=ua(b)?b:null)||!b?null:this.s.S(b);this.g=1==c;m(c)||this.o||(this.j?this.g="none"!=this.j.style.display:this.b&&(this.g=Eb(this.b,"goog-zippy-expanded")));this.U=new U(this);this.R=new Bi;this.ha=new U(this);var h=this;g(this.b);g(this.j);
yn(this,this.g)}y(xn,Q);xn.prototype.ma=function(){xn.V.ma.call(this);be(this.U);be(this.R);be(this.ha)};function yn(a,b){a.i?O(a.i,b):b&&a.o&&(a.i=a.o());a.i&&A(a.i,"goog-zippy-content");a.j?(O(a.b,!b),O(a.j,b)):a.b&&(Ib(a.b,"goog-zippy-expanded",b),Ib(a.b,"goog-zippy-collapsed",!b),yi(a.b,"expanded",b));a.g=b;a.dispatchEvent(new zn("toggle",a))}xn.prototype.ra=function(a){if(13==a.b||32==a.b)yn(this,!this.g),this.dispatchEvent(new ce("action",this)),a.preventDefault(),a.g()};
xn.prototype.ka=function(){yn(this,!this.g);this.dispatchEvent(new ce("action",this))};function zn(a,b){ce.call(this,a,b)}y(zn,ce);function An(a,b,c,d){if(b.child_node&&0<b.child_node.length){var e=Bn(b,!0,c,d),g=I("UL",c+"-list");a.appendChild(e);a.appendChild(g);yn(new xn(e,g),!b.collapsed);z(b.child_node,function(a){An(g,a,c,d)})}else a.appendChild(Bn(b,!1,c,d))}function Bn(a,b,c,d){var e,g;b?(b=c+"-heading",g=c+"-header"):(b=c+"-link",g=c+"-item");""!=a.url?e=I("A",{"class":b,href:a.url},Va(a.title)):e=I("DIV",b,a.title);e=I("DIV",g,e);d==a.id&&A(e,c+"-selected");return e}
Ea("_OC_InitNavbar",function(a){var b=G("navbarContainer");if(b&&a.child_node){var c=I("UL","gb-left-nav-list");z(a.child_node,function(b){An(c,b,"gb-left-nav",a.highlighted_node_id)});b.appendChild(c)}});function Cn(a,b){this.x=a;this.y=b}y(Cn,C);function Dn(a){return new Cn(a.x,a.y)}Cn.prototype.clone=function(){return new Cn(this.x,this.y)};Cn.prototype.scale=C.prototype.scale;function En(a,b){a.x+=b.x;a.y+=b.y;return a};function Fn(a,b,c){this.o=a||null;this.i=!!b;this.j=c;this.g=new Cg;this.b=new Gn("",void 0);this.b.next=this.b.b=this.b}function Hn(a,b){var c=a.g.get(b);c&&a.i&&(c.remove(),In(a,c));return c}f=Fn.prototype;f.get=function(a,b){var c=Hn(this,a);return c?c.value:b};f.set=function(a,b){var c=Hn(this,a);c?c.value=b:(c=new Gn(a,b),this.g.set(a,c),In(this,c))};f.shift=function(){return Jn(this,this.b.next)};f.pop=function(){return Jn(this,this.b.b)};
f.remove=function(a){return(a=this.g.get(a))?(a.remove(),this.g.remove(a.key),!0):!1};f.qc=function(){return this.g.qc()};f.isEmpty=function(){return this.g.isEmpty()};f.yb=function(){return this.map(function(a,b){return b})};f.hb=function(){return this.map(function(a){return a})};f.contains=function(a){return Kn(this,function(b){return b==a})};f.clear=function(){Ln(this,0)};f.forEach=function(a,b){for(var c=this.b.next;c!=this.b;c=c.next)a.call(b,c.value,c.key,this)};
f.map=function(a,b){for(var c=[],d=this.b.next;d!=this.b;d=d.next)c.push(a.call(b,d.value,d.key,this));return c};function Kn(a,b){for(var c=a.b.next;c!=a.b;c=c.next)if(b.call(void 0,c.value,c.key,a))return!0;return!1}f.every=function(a,b){for(var c=this.b.next;c!=this.b;c=c.next)if(!a.call(b,c.value,c.key,this))return!1;return!0};function In(a,b){a.i?(b.next=a.b.next,b.b=a.b,a.b.next=b,b.next.b=b):(b.b=a.b.b,b.next=a.b,a.b.b=b,b.b.next=b);null!=a.o&&Ln(a,a.o)}
function Ln(a,b){for(;a.qc()>b;){var c=a.i?a.b.b:a.b.next,d=a,e=c;e.remove();d.g.remove(e.key);a.j&&a.j(c.key,c.value)}}function Jn(a,b){a.b!=b&&(b.remove(),a.g.remove(b.key));return b.value}function Gn(a,b){this.key=a;this.value=b}Gn.prototype.remove=function(){this.b.next=this.next;this.next.b=this.b;delete this.b;delete this.next};function Mn(){Q.call(this);this.b=new Fn}y(Mn,Q);function Nn(a,b){b.sort(On);z(b,function(a){a.Vc(this)},a);a.b=new Fn;z(b,function(a){this.b.set(a.Ha(),a)},a);a.dispatchEvent("update")}function On(a,b){return Z(a)-Z(b)}function Pn(a){return a.b.hb()}function Qn(a,b,c){a=Pn(a);for(var d=-1,e=0;e<a.length;e++)if(a[e].Ha()==b){d=e;break}if(0<=d)return a[c+d]}function Rn(a,b){return a.b.get(b)}function Sn(a,b){b=La(b);if(b.length)return mb(Pn(a),function(a){return Tn(a)==b})};function Un(a){Q.call(this);this.j(a||"")}y(Un,Q);Un.prototype.Ab=function(){return this.i};Un.prototype.j=function(a){this.i!=a&&(this.i=a,this.dispatchEvent("change"))};function Vn(){this.b={}};function Wn(a){this.g=a}Wn.prototype.Db=function(a){this.b&&(this.b.wa(),Ed(this.g.Ea().i.g));this.b=new a(this.g);this.b.U&&this.b.U(this.g.ya());this.b.ha&&this.b.ha()};Wn.prototype.Ea=function(){return this.b};function Xn(a){V.call(this);this.U=a;Ed(a);M(a,"overflow","hidden");this.o=J("div");M(this.U,{position:"relative",padding:"0px"});a=this.U;a.insertBefore(this.o,a.childNodes[0]||null);this.ra=new Vn;this.ha=[];this.j=[];a=v(this.Ah,this,1);this.j.push(["next",a]);a=v(this.Ah,this,-1);this.j.push(["previous",a]);a=v(this.ak,this);this.j.push(["turntopage",a]);a=v(this.hk,this);this.j.push(["zoomin",a]);a=v(this.ik,this);this.j.push(["zoomout",a]);this.s=new Wn(this);a=J("div");Tm(a,!0);M(a,{position:"absolute",
left:"0px",top:"0px"});this.U.appendChild(a);this.ka=a;this.setSize(tf(this.U));Yn.push(this);this.Ra=new Un;L(this.Ra,"change",this.Xj,!1,this)}y(Xn,V);var Yn=[];f=Xn.prototype;
f.setSize=function(a){a.width=Math.max(a.width,0);a.height=Math.max(a.height,0);if(!this.g||!Kc(this.g,a)){var b=this.o,c=td(kd(md(b)).b);if(!E||F("10")||c&&F("8"))rf(b,a,"content-box");else{var d=b.style;c?(d.pixelWidth=a.width,d.pixelHeight=a.height):(c=sf(b),b=ef(b),d.pixelWidth=a.width+b.left+c.left+c.right+b.right,d.pixelHeight=a.height+b.top+c.top+c.bottom+b.bottom)}this.g=a;(d=this.s.Ea())&&d.setSize(a);this.dispatchEvent("resize")}};f.ua=function(){return this.g};f.Hb=function(){return this.g.width};
f.Ob=function(){return this.g.height};f.go=function(){this.dispatchEvent("load")};f.Db=function(a){this.R!=a&&(this.R=a,this.s.Db(a),this.dispatchEvent("viewportmodechange"))};f.Ea=function(){return this.s.Ea()};function Zn(a,b){if(a.Da)throw"";a.Da=b;L(b,"update",v(a.Tj,a))}f.Tj=function(){this.dispatchEvent("pagesupdate")};function $n(a,b){var c=Rn(a.Da,b);c&&a.nb(c)}f.nb=function(a){this.i!=a&&(this.i=a,this.dispatchEvent("pagechange"))};
function ao(a,b){bo(a,b,v(function(a){R(v(this.nb,this,a))},a))}function bo(a,b,c){a=a.Da;new S(b);b=new a.g({url:b});b.Vc(a);c=v(a.o,a,c);co(b,eo(b),c)}f.Wj=function(a,b,c,d){(c=fo(d,c))&&go(this,a,b,c)};function go(a,b,c,d){if(d&&d.length){for(var e=d[0],g=1;g<d.length;g++)e=Qe(e,d[g]);d=b.ya().Oe();d=b.ua().width/d;e=new Cn(e.left,e.top);e.scale(d);e.x=Math.round(e.x);e.y=Math.round(e.y);b=Dn(b.getPosition());En(b,e);b.x-=c.x;b.y-=c.y;a.Ea().Th(b)}}f.Ha=function(){return this.i.Ha()};f.ya=function(){return this.i};
f.Cc=function(a){for(var b=[],c=0;c<arguments.length;c++)b.push(arguments[c]);this.ha.push(b);1==this.ha.length&&ho(this)};function ho(a){var b=a.ha.shift();if(b){for(var c=b.shift(),d=0;d<a.j.length;d++)a.j[d][0]==c&&a.j[d][1].apply(a,b);ho(a)}}f.Ah=function(a){var b=this.s.Ea(),c;b.va?c=b.va(this.ya(),a):c=Qn(this.Da,this.ya().Ha(),a);c&&(this.nb(c),this.dispatchEvent("pageturn"))};f.ak=function(a){(a=Rn(this.Da,a))&&this.nb(a)};f.hk=function(){var a=this.s.Ea();a.jf&&a.jf()};
f.ik=function(){var a=this.s.Ea();a.Jg&&a.Jg()};f.Xj=function(){this.dispatchEvent("searchupdate")};function io(a,b,c,d,e){var g={cursor:"pointer"};M(c,g);L(c,"click",v(this.o,this));M(d,g);L(d,"click",v(this.j,this));e.innerHTML?this.s=e:(e.form.action="javascript:",L(e.form,"submit",v(this.i,this)),e.go&&M(e.go,{display:"none"}),this.g=e.input);this.b=a;this.Da=b;L(a,"pagechange",v(this.update,this));this.update()}
io.prototype.i=function(){var a=this.g.value,b;b=this.b;var c=Sn(b.Da,a);c?(b.nb(c),b=!0):b=!1;if(b)this.update();else if(!Ja(a)&&!/[^0-9]/.test(a)){a:{b=Pn(this.Da);for(c=b.length-1;0<=c;c--){var d=Tn(b[c]);if(!Ja(d)&&!/[^0-9]/.test(d)){b=parseInt(d,10);break a}}b=-1}a=parseInt(a,10);0<b&&a>b&&(this.b.nb(db(Pn(this.Da))),this.update())}return!1};io.prototype.o=function(){this.b.Cc("previous")};io.prototype.j=function(){this.b.Cc("next")};
io.prototype.update=function(){var a=this.b.ya();a&&(this.g?this.g.value=Tn(a)||"":this.s.innerHTML=a.getLabel())};function jo(){}f=jo.prototype;f.setSize=function(a){this.j=a.width;this.o=a.height};f.ua=function(){return new D(this.j,this.o)};f.Ff=function(){return this.s};f.ad=function(){return this.g};f.Hb=function(){return this.j};f.Ob=function(){return this.o};f.getPosition=function(){return new C(this.s,this.g)};function ko(a){return new Me(a.s,a.g,a.j,a.o)};function lo(){this.g=[]}lo.prototype.Eb=function(a){this.g.push(a)};lo.prototype.ua=function(){var a=this.Hb(),b=this.Ob();return null===a||null===b?null:new D(a,b)};lo.prototype.Jd=function(a){return gb(this.g,a||zf)};function mo(a,b){for(var c=0;c<a.g.length;c++){var d=a.g[c];if(b(d))return d}return null}function no(a,b){return mo(a,function(a){return a.ad()<=b&&a.ad()+a.ua().height>=b})}function oo(a,b){return mb(a.g,function(a){return Ne(ko(a)).contains(b)})};function po(a){this.i=a}y(po,jo);po.prototype.ya=function(){return this.i};po.prototype.setSize=function(a){void 0==a.width?(this.o=a.height,this.j=Math.round(a.height*qo(this.i))):void 0==a.height?(this.j=a.width,this.o=Math.round(a.width/qo(this.i))):(this.j=a.width,this.o=a.height)};function ro(a,b){this.b=a;this.g=b};function so(a){V.call(this);this.i=a;this.ra=a.i;this.setSize(tf(this.ra));this.s=new C(0,0)}y(so,V);f=so.prototype;f.setSize=function(a){if(!this.g||!Kc(this.g,a)){this.g=a;var b=this.i;b.ha=a;to(b);this.dispatchEvent("resize")}};function uo(a,b){a.o=b;a.R.Pa();var c=a.i,d=a.ua();c.ha=d;to(c);c=a.i;d=new D(b.Hb(),b.Ob());c.ka=d;c.s=!0;N(c.g,d);R(c.ra,0,c);to(c);a.dispatchEvent("layoutchange")}function vo(a,b){a.R=b}f.Lb=function(){var a=this.o.Jd();this.ta&&(a=this.ta.Df(a));wo(this.R,a);this.dispatchEvent("update")};
function xo(a,b){a.ta=b}function yo(a,b){var c=a.s.x,d=a.s.y;u(b.x)&&(b.x=Math.min(Math.max(b.x,0),Math.max(a.o.Hb()-a.g.width,0)));u(b.y)&&(b.y=Math.min(Math.max(b.y,0),Math.max(a.o.Ob()-a.g.height,0)));u(b.x)&&(c=b.x);u(b.y)&&(1<b.y-d?a.dispatchEvent("scrolldown"):1<d-b.y&&a.dispatchEvent("scrollup"),d=b.y);a.s=new C(c,d);d=a.i;c=a.s;d.U||(d=d.i,null!=c.y&&(d.scrollTop=c.y),null!=c.x&&(d.scrollLeft=c.x));a.dispatchEvent("move")}
function zo(a){var b=a.s;return b?new Me(b.x,b.y,a.g.width,a.g.height):null}f.ua=function(){return this.g};f.Sc=function(a){this.dispatchEvent("movestart");yo(this,a);this.dispatchEvent("moveend")};function Ao(a,b,c){a=a.s;c(new C(a.x+b.x,a.y+b.y))}
f.Th=function(a){var b=this.s,c=this.ua();if(!b||Math.abs(b.x-a.x)>c.width||Math.abs(b.y-a.y)>c.height)this.Sc(a);else{this.j&&(this.j.wa(),this.j=null);var c=b.x-a.x,d=b.y-a.y;this.j=new qg([b.x,b.y],[a.x,a.y],250+250*Math.min(Math.max(Math.sqrt(c*c+d*d)/800,0),1),zg);L(this.j,"animate",v(this.Sh,this));L(this.j,"end",v(this.sj,this));this.dispatchEvent("movestart");Be(this,"movestart",v(this.j.wa,this.j));this.j.play()}};f.Sh=function(a){a=hb(a.coords,Math.round);yo(this,new C(a[0],a[1]))};
f.sj=function(a){this.Sh(a);this.dispatchEvent("moveend")};function Bo(a){return new C(Math.round(a.s.x+a.g.width/2),Math.round(a.s.y+a.g.height/2))}f.ma=function(){so.V.ma.call(this);this.R.Pa()};f.Af=function(a){a.style.opacity=0};f.Yi=function(a){a.style.display="";(new jg(function(){a.style.opacity=1},10)).start()};f.Kg=1;function Co(a,b){so.call(this,b);this.Ka=a;this.b.listen(a,"pagechange",this.ha);this.b.listen(this.Ka,"searchupdate",this.lb);var c=G("subscription-bar");c&&(this.b.listen(this,"scrolldown",w(this.Af,c)),this.b.listen(this,"scrollup",w(this.Yi,c)))}y(Co,so);
function Do(a,b){var c=[];"fixed_width"==a.o.Ph()&&c.push(a.ua().width);if(a.tc){var d;a:{var e=a.tc();d=a.o.Hf();c=Eo(e,c);if(0<b)for(e=0;e<c.length;e++){if(c[e]>d){d=c[e];break a}}else for(e=c.length-1;0<=e;e--)if(c[e]<d){d=c[e];break a}}d&&a.kf(a.Ed(d))}}
Co.prototype.kf=function(a){var b=this.o;uo(this,a);if(b){b=new ro(b,a);a=Bo(this);var c=oo(b.b,a);if(!c)a:{for(var c=Number.POSITIVE_INFINITY,d=b.b.Jd(),e=d[0],g=0;g<d.length;g++){var h=d[g],k=Le(Ne(ko(h)),a);if(k<c){c=k;if(!k){c=h;break a}e=h}}c=e}b=b.g.ha(c);a=Dn(a);d=c.getPosition();a.x-=d.x;a.y-=d.y;d=b.ua().width/c.ua().width;c=b.ua().height/c.ua().height;a=new C(Math.round(a.x*d),Math.round(a.y*c));a=En(Dn(b.getPosition()),a);a=new C(Math.round(a.x+this.g.width/2*-1),Math.round(a.y+this.g.height/
2*-1));this.Sc(a)}};Co.prototype.ha=function(){this.Ga||this.U(this.Ka.ya())};Co.prototype.U=function(a){this.o.Mc&&(a=this.o.Mc(a))&&yo(this,new C(Math.round(a.Ff()),Math.round(a.ad())))};Co.prototype.lb=function(){Fo&&(this.R.Pa(),this.Na&&this.Na(),this.Lb())};var Fo=!0;function Go(){this.b=new Cg}function Ho(a,b){var c={};b&&(c=Ub(hb(b,wa)));var d=a.b.yb();z(d,function(a){if(!c[a]){var b=this.b.get(a);b&&b.Pa();this.b.remove(a)}},a)};function Io(){this.b={};this.g=new Go}Io.prototype.Pa=function(){Ho(this.g)};function wo(a,b){b=gb(b,function(a){return!!this.b[wa(a.constructor)]},a);Ho(a.g,b);z(b,function(a){if(!this.g.b.get(wa(a))){var b=this.b[wa(a.constructor)].render(a);this.g.b.set(wa(a),b)}},a)};function Jo(){};function Ko(a,b){this.g=a;this.b=b}y(Ko,Jo);Ko.prototype.render=function(a){var b=this.b(),c=a.ya(),d=db(this.g.tc().Uh)/a.ua().width,e=a.ua();b.Ve=e.width;b.Se=e.height;d=a.ua().clone().scale(d);b.lk=d.width;b.kk=d.height;b.setPosition(a.Ff(),a.ad());b.nb(c);b.draw();return b};function Lo(){};function Mo(a){this.b=a}y(Mo,Lo);Mo.prototype.Df=function(a){var b=No(this,a);a=b[0]||[];b=b[1]||[];b.sort(w(Oo,Bo(this.b)));var c=[];vb(c,a,b);return c};function Oo(a,b,c){return Le(Ne(ko(b)),a)-Le(Ne(ko(c)),a)}function No(a,b){var c=zo(a.b),d=new Me(c.left-800,c.top-800,c.width+1600,c.height+1600);return Ab(b,function(a){a=ko(a);if(Pe(d,a))return Pe(c,a)?0:1})};function Po(a,b){this.b=b;this.g=a}y(Po,Mo);Po.prototype.Df=function(a){var b=Po.V.Df.call(this,a),c=this.g.ya();if(c){var d=[],e=this.g.Da;z([1,-1],function(){var a=Qn(e,c.Ha(),1);a&&d.push(a)});z(a,function(a){a.ya&&ob(d,a.ya())&&pb(b,a)})}return b};function Qo(){V.call(this)}y(Qo,V);function Ro(){V.call(this)}y(Ro,V);Ro.prototype.kc=function(a){this.g=a;this.i=So(a)};Ro.prototype.ma=function(){Ro.V.ma.call(this);K(this.i)};function To(a){V.call(this);this.U=a;this.R=[]}y(To,Ro);f=To.prototype;f.kc=function(a){To.V.kc.call(this,a);this.Qd();this.ya()&&this.b.listen(this.ya(),"update",this.Qd)};f.ya=function(){return this.g.ya()};f.Fd=function(a,b,c,d){var e=J("div");Tm(e,!0);this.i.appendChild(e);a=Uo(this,a,b,c,d);M(e,{position:"absolute",left:a[0]+"px",top:a[1]+"px",width:a[2]+"px",height:a[3]+"px"});this.U&&(M(e,{backgroundColor:this.U}),mf(e,.3));this.R.push(new Me(a[0],a[1],a[2],a[3]));return e};
function Vo(a){return a.g.ua().width/a.g.ya().Da.nc.width}function Uo(a,b,c,d,e){var g=Vo(a);return hb([b,c,d,e],function(a){return Math.round(a*g)})}function Wo(a,b){z(b,function(a){this.Fd.apply(this,a)},a)}f.Xg=function(a){return this.Fd(a.left,a.top,a.width,a.height)};f.Yc=function(){Ed(this.i);this.R=[]};f.Qd=r;function Xo(){To.call(this)}y(Xo,To);f=Xo.prototype;f.Qd=function(){if(!this.j){var a=this.ya();a&&(a=Yo(a))&&(Wo(this,a),this.j=!0)}};
f.Fd=function(a,b,c,d){this.o=Xo.V.Fd.call(this,a,b,c,d);M(this.o,{border:"2px #aaaaff dashed"});this.s=J("img");this.o.appendChild(this.s);this.s.src="/googlebooks/images/dialog_close_x.gif";a=Uo(this,a,b,c,d);M(this.s,{position:"absolute",cursor:"pointer",left:a[2]-19+"px",top:"4px",display:"none"});L(this.o,"mouseout",v(this.Hk,this));L(this.o,"mouseover",v(this.Bh,this,!0));Be(this.s,"click",v(this.Pa,this));return this.o};f.Pa=function(){K(this.o)};f.Hk=function(a){Jd(this.o,a.target)||this.Bh(!1)};
f.Bh=function(a){M(this.s,{display:a?"":"none"})};function Zo(a){To.call(this);this.o=a}y(Zo,To);Zo.prototype.Qd=function(){if(!this.j){var a=this.ya();a&&(a=$o(a))&&(z(a,function(a){var b=a.pop(),d=a.pop();a=this.Fd.apply(this,a);M(a,{cursor:"pointer"});this.b.listen(a,"click",v(this.s,this,d,b))},this),this.j=!0)}};Zo.prototype.s=function(a,b){var c=Rn(this.o.Da,a);c?this.o.nb(c):ao(this.o,b)};function ap(a,b){this.i=a;this.b=b}ap.prototype.ya=function(){return this.i};ap.prototype.j=function(){return this.i.bc(this.b)};function bp(a,b,c){ap.call(this,a,b);this.g=c}y(bp,ap);bp.prototype.j=function(){return this.g.width>this.b.width?this.i.bc(this.g):bp.V.j.call(this)};function cp(a,b,c){if(E&&!F("9")){var d=[];d[0]=L(a,"readystatechange",w(dp,a,w(ep,b),d))}else Be(a,"load",w(ep,b));c&&Be(a,"error",w(ep,c))}function ep(a){R(a)}function dp(a,b,c){if("complete"!=a.readyState)return!0;De(c[0]);b();return!1}var fp=J("div");function gp(a){if(E){fp.appendChild(a);var b=w(K,a);cp(a,b,b);a.src="//www.google.com/images/cleardot.gif"}else a.src="//www.google.com/images/cleardot.gif",K(a)};function hp(a){Q.call(this);this.b={};a&&this.Wd(a)}y(hp,Q);f=hp.prototype;f.Oe=function(){return this.b.w||this.Da.nc.width};f.Gf=function(){return this.b.h||this.Da.nc.height};function qo(a){return a.Oe()/a.Gf()}f.ua=function(){return new D(this.Oe(),this.Gf())};f.Wd=function(a){for(var b in a)this.b[b]=a[b];this.dispatchEvent("update")};f.Vc=function(a){this.Da=a};function Tn(a){return a.b.title}f.getLabel=function(){var a=Tn(this);return a?"Page "+a:""};function Z(a){return a.b.order}
f.bc=function(a){if(this.b.src&&a){var b=new S(this.b.src);T(b,"w",a.width);return b.toString()}return this.b.src};f.Ha=function(){return this.b.pid};function ip(a){this.Hg={};for(var b=0;b<a.length;b++){var c=a[b];this.Hg[c.z]=new D(c.w,c.h)}}function jp(a,b){var c=Nb(a.Hg,function(a){return a.height==b});return c?Number(c):null};function kp(a){hp.call(this,a);this.We={};this.ha={};this.j={};this.U=this.ka=null}var lp;y(kp,hp);f=kp.prototype;f.Wd=function(a,b){kp.V.Wd.call(this,a);b&&(this.R=b)};function eo(a){var b=mp(a);T(b,"jscmd","click3");var c;a.Ra&&(c=a.Ra.Ab());np(a,"vq",c);Jb(a.We,function(a,c){T(b,c,a)});return b}
function co(a,b,c){b=b.toString();if(b==a.R)c&&c(a);else if(c&&(a.j[b]=a.j[b]||[]).push(c),b!=a.o){a.o=b;a.i&&l.clearTimeout(a.i);a.i=l.setTimeout(v(a.Ej,a,b),6E3);var d;a.Ra&&(d=a.Ra.Ab());lp(b,v(a.Dk,a,b,d))}}function np(a,b,c){c?a.We[b]=c:delete a.We[b]}f.We=null;f.Dk=function(a,b,c){this.o==a&&(this.o=null,this.i&&(l.clearTimeout(this.i),this.i=null),this.R=a,op(this,c.page[0]),this.Da.dg(c),b=this.j[a])&&(z(b,function(a){a(this)},this),delete this.j[a])};f.Ej=function(a){this.i=this.o=null;delete this.j[a]};
function mp(a){var b=a.b.url;b?b=new S(b):(b=new S(a.Da.cl),T(b,"pg",a.Ha()),a.b.sig&&T(b,"sig",a.b.sig));return b}f.Oe=function(){return this.b.w||this.Da.nc.width};f.Gf=function(){return this.b.h||this.Da.nc.height};var pp={additional_info:"additional_info",content:"content",feedbackUrl:"uf",flags:"flags",highlights:"highlights",links:"links",order:"order",pid:"pid",src:"src",snippetSrc:"snippet_src"};
function op(a,b){var c={},d;for(d in pp){var e=pp[d],g=b[e];m(g)&&("highlights"==e?a.ha[b.vq]=g:c[d]=g)}c.additional_info&&(d=c.additional_info["[NewspaperJSONPageInfo]"])&&(a.ka=new ip(d.tileres),d=d.page_scanjob_coordinates)&&(a.U=""+d.x+","+d.y);a.Wd(c)}kp.prototype.getContent=function(){return this.b.content};var qp={Jl:1,Il:2,Ml:4,Ci:8,Bi:16,Kl:32,Hl:64};kp.prototype.g=function(a){return!!(this.b.flags&a)};
function rp(a,b){b=Na(b);b=b.replace(/\'/g,"&#39;");var c=a.ha[b];if(c){var d=[];z(c,function(a){d.push([a.X,a.Y,a.W,a.H])});return d}}function fo(a,b){var c=rp(a,b);if(c)return hb(c,w(sp,1))}function sp(a,b){var c=hb(b,function(b){return Math.round(b*a)});return new Me(c[0],c[1],c[2],c[3])}function $o(a){if(a.b.links)return hb(a.b.links,function(a){var b=a.region;return[b.X,b.Y,b.W,b.H,a.target_pid,a.url]})}
function Yo(a){if(a.b.clip_highlight||a.b.clip_highlights){var b=[];z(a.b.clip_highlights||[a.b.clip_highlight],function(a){var c=[];z(["X","Y","W","H"],function(b){c.push(a[b])});b.push(c)});return b}return null}kp.prototype.bc=function(a){if(this.b.src&&a){var b=new S(this.b.src);a&&Jb(this.s(),function(c,d){"height"==d&&a.height?T(b,c,a.height):"width"==d&&a.width&&T(b,c,a.width)});return b.toString()}return this.b.src};kp.prototype.s=function(){return{width:"w",height:"h"}};function tp(a,b,c,d,e){V.call(this);this.Zd(a.Ea());this.o=a;this.g=c;this.ka=[];this.Wg=d;N(d,c);this.va=So(this);M(this.va,"backgroundColor","#fff");N(this.va,c);if(this.Ga=m(e)?e:!0)a=So(this),N(a,c),this.ta=new up(a),M(this.ta.b,{display:""});b&&(this.i=b,this.b.listen(b,"update",this.qd),co(b,eo(b),void 0))}y(tp,V);f=tp.prototype;f.ua=function(){return this.g};f.ya=function(){return this.i};function vp(a,b){a.ka.push(b);b.kc(a)}f.qd=r;
function wp(a){a.dispatchEvent("load");a.Ga&&M(a.ta.b,{display:"none"})}function So(a){var b=J("div");Tm(b,!0);M(b,{position:"absolute",left:0,top:0});a.Wg.appendChild(b);return b}f.Pa=function(){z(this.ka,function(a){a.wa()});this.ka=null;this.s&&K(this.s)};function xp(a){a.R=So(a);N(a.R,a.ua());M(a.R,{backgroundImage:"url(//www.google.com/images/cleardot.gif)",backgroundRepeat:"repeat"});a.b.listen(a.R,"mousedown",a.Ik);a.b.listen(a.R,"dragstart",de)}f.Ik=function(a){a.display=this;yp.dispatchEvent(a)};
var yp=new Q;function up(a){this.b=a;a={position:"absolute",left:0,color:"#808080",fontSize:"13px",backgroundColor:"white"};for(var b=0;2>b;b++){var c=J("div");Tm(c);M(c,a);this.b.appendChild(c);c.innerHTML="Loading...";a.bottom=0}}function zp(a,b){a.s&&K(a.s);a.s=So(a);new Ap(a.s,a.ua(),b)}function Ap(a,b,c){this.b=a;M(a,{backgroundColor:"#FFF",textAlign:"center"});N(a,b);a.innerHTML=c||"";Tm(this.b)};function Bp(a,b,c){tp.call(this,a,b.ya(),b.b,c);this.Zd(Cp);a=So(this);this.ha=new Dp(b.b,a);a=So(this);this.U=new Dp(b.b,a);xp(this);pf(c,!0);A(c,"pageImageDisplay");this.Na=b;b.ya()&&this.qd()}y(Bp,tp);var Cp=new Q;Bp.prototype.nb=function(a){np(a,"output",null);Bp.V.nb.call(this,a);a.bc()&&this.qd()};
Bp.prototype.qd=function(){var a=this.ya(),b=this.Na.j();if(b&&!this.j){b=Ep(b);Be(this.ha,"load",v(this.ra,this,a,b,this.ua().width));Fp(this.ha,[b]);var c=this.o.ra,d=a.Ha(),e=[];if(c.b[d]){var g=[],h;for(h in c.b[d])g.push(h);g.sort(zb);for(h=0;h<g.length;h++)e.push(c.b[d][g[h]])}e.push(b);Fp(this.U,e);this.j=!0;a==this.o.ya()&&this.dispatchEvent("fetch")}kb([qp.Bi,qp.Ci],v(a.g,a))&&(a=Ha('<table width=100% height=100%><tr><td><img src="%s"/><br/>%s</td></tr></table>',"/googlebooks/restricted_logo.gif",
"You have either reached a page that is unavailable for viewing or reached your viewing limit for this book."),zp(this,a),wp(this))};function Ep(a){return a}Bp.prototype.ra=function(a,b,c){a==this.o.ya()&&this.dispatchEvent("loaded");this.U.empty();var d=this.o.ra;a=a.Ha();d.b[a]=d.b[a]||{};d.b[a][c]=b;wp(this)};Bp.prototype.Pa=function(){this.j=!1;this.ha.empty();this.U.empty();Bp.V.Pa.call(this)};
function Dp(a,b){Q.call(this);this.g=a;this.i=b;this.b=J("img");this.b.width=this.g.width;this.i.appendChild(this.b);Tm(this.i)}y(Dp,Q);Dp.prototype.empty=function(){for(var a;a=Hd(this.i);)gp(a)};function Fp(a,b){cp(a.b,v(a.j,a,a.b));for(var c=0;c<b.length;c++)a.b.src=b[c]}Dp.prototype.j=function(a){this.b==a&&this.dispatchEvent("load")};function Gp(a,b,c,d,e,g,h){Q.call(this);this.U=a;this.j=b;this.o=c;this.i=d;this.g=e;this.ka=g;this.ha=h;this.s=Math.ceil(this.j/this.i);this.R=Math.ceil(this.o/this.g);this.b=[];for(a=0;a<this.s;++a){b=[];for(c=0;c<this.R;++c)b.push(null);this.b.push(b)}}y(Gp,Q);Gp.prototype.empty=function(){for(var a;a=this.U.firstChild;)gp(a)};Gp.prototype.ta=function(a,b){M(a,{display:""});this.ha&&this.ha(b)};Gp.prototype.ra=function(){};function Hp(a,b,c,d){tp.call(this,a,b.ya(),b.b,c,d);this.U=So(this);xp(this);b.ya()&&this.qd();this.ha=L(this.o.Ea(),"update",this.ra,!1,this)}y(Hp,tp);Hp.prototype.qd=function(){var a=this.ya(),b=a.bc(),c=this.o.Ca.ff,d=a.ka;if(b&&d&&!this.j){var e=jp(d,this.ua().height);u(e)&&(d=(d=d.Hg[e])?d.width:null,b=new S(b),T(b,"zoom",e),T(b,"pg",a.U),b=b.toString(),this.Na=new Gp(this.U,d,this.ua().height,c.Oh,c.Nh,v(c.getTileUrl,c,b,d,this.ua().height),null),this.j=!0,this.ra())}};
Hp.prototype.ra=function(){if(this.j){var a=bf(this.U);if(a){var b=hf(this.U);a.top-=b.y;a.bottom-=b.y;a.left-=b.x;a.right-=b.x;if(0<a.bottom-a.top&&0<a.right-a.left){for(var b=this.Na,a=Oe(a),c=Math.floor(a.left/b.i),d=Math.floor(a.top/b.g),e=Math.ceil((a.left+a.width)/b.i),g=Math.ceil((a.top+a.height)/b.g),e=Math.min(e,b.s),g=Math.min(g,b.R);c<e;c++)for(var h=d;h<g;h++)if(!b.b[c][h]){var k;k=b;var n=c,p=h;if(!k.b[n][p]){var q=J("img");M(q,{position:"absolute",left:n*k.i+"px",top:p*k.g+"px",display:"none"});
k.b[n][p]=q;k.U.appendChild(q)}k=k.b[n][p];n=b.ka(c,h);cp(k,v(b.ta,b,k,n),v(b.ra,b,k,n));k.src=n}for(c=0;c<b.s;++c)for(h=0;h<b.R;++h){if(d=!!b.b[c][h])d=new Me(c*b.i,h*b.g,(c+1)*b.i,(h+1)*b.g),d=!(d.left<=a.left+a.width&&a.left<=d.left+d.width&&d.top<=a.top+a.height&&a.top<=d.top+d.height);d&&(gp(b.b[c][h]),b.b[c][h]=null)}}}}};Hp.prototype.Pa=function(){this.j&&(this.Na.empty(),this.j=!1);this.ha&&(De(this.ha),this.ha=null);Hp.V.Pa.call(this)};function Ip(a){this.Ra=a;To.call(this,"#ffff00")}y(Ip,To);Ip.prototype.Qd=function(){var a=this.g.ya();if(a){var b=this.Ra.Ab();b!=this.j&&(a=fo(a,b),this.Yc(),a&&(hb(a,v(this.Xg,this)),this.j=b))}};function Jp(a){Q.call(this);this.url=a;this.s=null;this.o=!0}y(Jp,Q);Jp.prototype.Pe=function(){if(this.o)this.o=!1;else throw Error();};function Kp(a,b){Jp.call(this,a);this.R=b||"GET";this.i=new U;this.b=new em}y(Kp,Jp);f=Kp.prototype;f.Pe=function(a,b,c){Kp.V.Pe.call(this,a,b);this.j=a;this.g=b;this.i.listen(this.b,"success",v(this.$j,this));this.i.listen(this.b,"error",v(this.Dj,this));this.b.send(this.url.toString(),this.R,c)};f.$j=function(a){var b;a=a.target;try{b=a.b?a.b.responseText:""}catch(c){b=""}this.s=hj(b);R(v(this.dispatchEvent,this,"success"));this.j&&R(w(this.j,this.s));R(v(this.vf,this))};
f.Dj=function(){R(v(this.dispatchEvent,this,"error"));this.g&&R(this.g);R(v(this.vf,this))};f.abort=function(){this.b.abort();this.vf();return!1};f.vf=function(){vh(this.i);this.g=this.j=null};function Lp(a){return a.length?ib(a,function(a,c){return Qe(a,c)},a[0].clone()):null};function Mp(a,b,c,d,e){V.call(this);this.s=a;this.ka=b;this.ta=e;this.i=d;this.g=!1;this.o=J("div");c.appendChild(this.o);this.b.listen(b,"mousemove",this.R);this.b.listen(b,"mouseup",this.U)}y(Mp,V);Mp.prototype.R=function(a){if(!this.ra){a=Jc(new C(a.clientX,a.clientY),cf(this.ka));a=Ke(a,this.ta);M(this.o,{border:"2px dashed #99AAEE",position:"absolute"});var b=a.right-a.left,c=a.bottom-a.top;We(this.o,a.left,a.top);N(this.o,b,c);this.j=a}};
Mp.prototype.U=function(a){this.R(a);this.ra=!0;a=this.i;var b=Oe(this.j),c=Vo(this.s),c=Np(b,1/c),b=Op(Np(c,1/a.ua().width*1E3));a=new S(mp(a).toString());T(a,"ci",[b.left,b.top,b.width,b.height].join());T(a,"jscmd","click3");T(a,"output","text");c=Op(c);Pp(this.s,[c]);K(this.o);(new Kp(a)).Pe(v(this.ha,this,c,b));this.dispatchEvent("endsize")};
Mp.prototype.ha=function(a,b,c){c=c.page[0];var d=!1,e=c.clip_highlights;if(e){var g=[];z(e,function(a){g.push(new Me(a.X,a.Y,a.W,a.H))});if(c=c.content)Pp(this.s,[a],c,b),d=!0}d||this.s.Yc();this.wa()};function Np(a,b){return new Me(a.left*b,a.top*b,a.width*b,a.height*b)}function Op(a){return new Me(Math.round(a.left),Math.round(a.top),Math.round(a.width),Math.round(a.height))}Mp.prototype.ma=function(){Mp.V.ma.call(this);K(this.o)};function Qp(a,b){V.call(this);this.U=a;this.s=b}var Rp;y(Qp,Ro);f=Qp.prototype;f.kc=function(a){Qp.V.kc.call(this,a);a=this.i;var b=J("div");Tm(b,!0);a.appendChild(b);b.className="selection-layer";N(a,this.g.ua());N(b,this.g.ua());this.b.listen(b,"click",this.Jk);this.b.listen(b,"mousedown",this.Kk)};
f.Kk=function(a){if(Rp){a.g();this.j&&this.j.wa();var b=this.g.Wg;a=Jc(new C(a.clientX,a.clientY),cf(b));this.j=new Mp(this.U,b,this.i,this.g.ya(),a);this.R=L(document.body,"mousemove",v(this.Pj,this));Be(this.j,["endsize","dispose"],v(this.Xi,this))}};f.Jk=function(a){Rp&&a.g()};
f.Pj=function(a){if(this.j&&!this.j.isDisposed()){var b=new C(a.clientX,a.clientY),c=Ne(lf(this.s.ra));if(c.contains(b)){var d=new C(0,0);z([[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(a){40>Math.abs(a[0])&&(d.x=a[1]||d.x,d.y=a[2]||d.y)});this.o||(this.o=new hg(100),this.b.listen(this.o,"tick",this.ql));this.ha=d;d.x||d.y?this.o.start():this.o.stop()}}};f.ql=function(){var a=this.ha,b=this.s;Ao(b,new C(15*a.x,15*a.y),v(b.Sc,b))};
f.Xi=function(){De(this.R);be(this.o);this.o=null};function Sp(a,b){this.b=a instanceof C?a:new C(a,b)}y(Sp,hh);Sp.prototype.Bb=function(a,b,c,d){var e;e=md(a);var g=e.body;e=e.documentElement;e=new C(g.scrollLeft||e.scrollLeft,g.scrollTop||e.scrollTop);g=this.b.x+e.x;e=this.b.y+e.y;var h=jh(a),g=g-h.x;e-=h.y;lh(new C(g,e),a,b,c,null,null,d)};function Tp(a,b){Sp.call(this,a,b)}y(Tp,Sp);Tp.prototype.g=0;Tp.prototype.i=function(a){this.g=a};Tp.prototype.Bb=function(a,b,c,d){var e=Ze(a),e=bf(e),g=vd(kd(a).b),g=new C(this.b.x+g.scrollLeft,this.b.y+g.scrollTop),h=b,k=lh(g,a,h,c,e,10,d);if(k&496){if(k&16||k&32)h^=4;if(k&64||k&128)h^=1;k=lh(g,a,h,c,e,10,d);k&496&&lh(g,a,b,c,e,this.g,d)}};function Up(a){Eh.call(this,a);Bh(this);this.Og=!1;this.b=new U;A(a,"viewport-selection-popup");Vp&&Vp.wa();Vp=this}y(Up,Eh);var Vp=null;Up.prototype.g=function(){this.dispatchEvent("close");this.wa()};function Wp(a,b,c){var d=a.S(),e=J("div");M(e,{padding:"4px 3px 3px 1px"});d.appendChild(e);d=J("div");e.appendChild(d);d.appendChild(Bd(b));e.appendChild(J("div"));b=J("input");b.value=c;A(b,"viewport-input");e.appendChild(b);pf(b,!1);a.b.listen(b,"mousedown",Xp)}function Xp(a){a.g()}
Up.prototype.ma=function(){K(this.S());Up.V.ma.call(this);this.b.wa()};function Yp(){To.call(this,"#4a95d6")}y(Yp,To);Yp.prototype.kc=function(a){Yp.V.kc.call(this,a);M(this.i,{cursor:"pointer"});this.b.listen(this.i,"mousedown",Zp)};function Zp(a){a.g()}
function Pp(a,b,c,d){a.Yc();hb(b,v(a.Xg,a));a.o&&De(a.o);a.j&&a.j.wa();var e=J("div");document.body.appendChild(e);if(b=Lp(a.R)){var g=cf(a.i),e=new Up(e);if(c&&d){var h=a.ya(),k=h.bc(),n,p;k&&(n=new S(k),d=[d.left,d.top,d.width,d.height].join(),T(n,"ci",d),T(n,"edge",0),n=n.toString(),p=new S(mp(h).toString()),T(p,"ci",d),T(p,"source","bookclip"),p=Ha('<a href="%s"><img src="%s"/></a>',p.toString(),n));d=p;Ed(e.S());p=e.S();h=J("img");h.src="/googlebooks/images/close_x.gif";h.width=14;h.height=13;
M(h,{backgroundColor:"#FFF",cursor:"pointer",position:"absolute",right:"5px",top:"5px"});p.appendChild(h);e.b.Bc(h,"click",v(e.g,e));h=I("DIV",{innerHTML:"Share this clip"});M(h,{fontWeight:"bold",paddingBottom:"4px"});p.appendChild(h);c&&(Wp(e,"Selection text",c),p=J("div"),M(p,{textAlign:"right"}),e.S().appendChild(p),h=new S("https://translate.google.com/translate_t"),T(h,"text",c),T(h,"sl","auto"),T(h,"tl","auto"),c=J("a"),c.href=h.toString(),c.target="_blank",c.innerHTML="Translate&raquo;",p.appendChild(c));
n&&Wp(e,"Image",n);d&&Wp(e,"Embed",d)}else e.S().innerHTML="Loading...";e.je=4;e.Aa()&&e.ld();a.j=e;R(w($p,e,new Tp(new C(g.x+b.left+b.width,g.y+b.top+b.height))));a.o=Be(e,"close",v(a.Yc,a))}}function $p(a,b){a.isDisposed()||(a.setPosition(b),a.setVisible(!0))}Yp.prototype.Yc=function(){Yp.V.Yc.call(this);this.j&&this.j.wa()};Yp.prototype.ma=function(){Yp.V.ma.call(this);this.j&&this.j.wa();this.o&&De(this.o)};function aq(a,b,c){return a.Ca.ff?new Hp(a,b,c):new Bp(a,b,c)}function bq(a,b){if(b instanceof Bp){vp(b,new Ip(a.Ra));vp(b,new Xo);var c=new Yp,d=new Qp(c,a.Ea());vp(b,d);vp(b,c);vp(b,new Zo(a))}};function cq(a,b,c){V.call(this);this.U=a;this.j=J("div");Tm(this.j,!0);M(this.j,{position:"absolute",display:"none"});c.appendChild(this.j);this.R=J("div");Tm(this.R,!0);M(this.R,{position:"absolute"});this.j.appendChild(this.R);this.o=J("div");Tm(this.o,!0);this.j.appendChild(this.o);this.s=J("div");Tm(this.s,!0);this.o.appendChild(this.s);O(this.j,!1)}y(cq,Qo);f=cq.prototype;
f.draw=function(){var a=this.Ve-2,b=this.Se-2,c=this.lk-2,d=this.kk-2;M(this.o,{backgroundColor:"#cccccc",position:"absolute"});We(this.o,0,0);N(this.o,this.Ve,this.Se);M(this.s,{overflow:"hidden",backgroundColor:"#fcfcfc",position:"absolute"});We(this.s,1,1);N(this.s,a,b);O(this.j,!0);var e=this.U,a=aq(e,new bp(this.ya(),new D(a,b),new D(c,d)),this.s);a instanceof Bp?bq(e,a):a instanceof Hp&&a instanceof Hp&&vp(a,new Ip(e.Ra));this.g=a};f.Pa=function(){this.g&&this.g.Pa();K(this.j)};
f.setPosition=function(a,b){We(this.j,a,b)};f.ad=function(){return Ye(this.j).x};f.Ff=function(){return Ye(this.j).y};f.nb=function(a){this.i=a};f.ya=function(){return this.i};f.Ob=function(){return this.Se};f.Hb=function(){return this.Ve};function dq(a){return a+2}f.ua=function(){return new D(this.Ve,this.Se)};function eq(a){V.call(this);Ed(a);Tm(a);this.i=a;this.g=J("div");Tm(this.g,!0);Nm()&&(qd(a,{dir:"ltr"}),qd(this.g,{dir:"rtl"}));a.appendChild(this.g)}y(eq,V);function fq(a,b){eq.call(this,b);this.o=a;this.b.listen(b,"scroll",this.R);M(b,"position","relative");M(this.g,"position","absolute");this.j=J("div");Tm(this.j,!0);b.appendChild(this.j);this.j.appendChild(this.g)}y(fq,eq);function to(a){var b=a.ka;a.ha&&b&&(M(a.g,"left",Math.floor(Math.max(0,a.o.i.i.clientWidth-b.width)/2)+"px"),M(a.j,"height",b.height+"px"))}fq.prototype.ra=function(){this.s=!1;this.R()};
fq.prototype.R=function(){if(!this.s){var a=this.o.s;if(a){var a=a.clone(),b;b=this.i;b=new C(b.scrollLeft,b.scrollTop);Ic(a,b)||(this.U=!0,this.o.Sc(b),this.U=!1)}}};function gq(a){this.Uh=a}function Eo(a,b){var c=b||[],d=gb(a.Uh,function(a){return!kb(c,function(b){return 50>Math.abs(b-a)})});d.push.apply(d,c);d.sort(zb);return d};function hq(a,b,c){this.R=a;this.i=b;this.U=c||!1;a=this.ua();this.b()?a.height=120:a.height=65;this.setSize(a)}y(hq,jo);hq.prototype.b=function(){var a=G("gb-mobile-menu-pubinfo");return a?(a=Gd(a),Vc&&0<a.length&&!!this.R&&!Z(this.R)):!1};function iq(){this.g=[];this.cells=[]}y(iq,lo);f=iq.prototype;f.marginLeft=0;f.marginTop=0;f.marginRight=0;f.tg=0;f.$f=0;f.hf=0;f.Gl=!1;f.Hb=function(){return this.j};f.Ob=function(){return this.o};
function jq(a){kq(a);for(var b=a.marginLeft,c=0;c<a.s;c++){var d=lq(a,c);z(a.cells[c],function(a){if(a){var c=b+Math.round((d-a.ua().width)/2);a.s=c}});b+=d+a.$f}a.j=b+a.marginRight;for(var e=a.marginTop,c=0;c<a.b;c++){var g=mq(a,c);z(nq(a,c),function(a){if(a)if(this.Gl){var b=e+Math.round((g-a.ua().height)/2);a.g=b}else a.g=e});e+=g+a.hf}a.o=e+a.tg}function nq(a,b){return hb(a.cells,function(a){return a[b]})}
function lq(a,b){var c=0;z(a.cells[b],function(a){a&&(c=Math.max(c,a.ua().width))});return c}function mq(a,b){var c=0;z(nq(a,b),function(a){a&&(c=Math.max(c,a.ua().height))});return c};function oq(a){iq.call(this);this.s=a}y(oq,iq);function kq(a){a.b=Math.ceil(a.g.length/a.s);for(var b=0;b<a.b;b++)for(var c=0;c<a.s;c++){var d=b*a.s+c;a.cells[c]=a.cells[c]||[];a.cells[c][b]=a.g[d]}};function pq(a){oq.call(this,a);this.R=new Cg}y(pq,oq);pq.prototype.Mc=function(a){return this.R.get(qq(po,a))};pq.prototype.ha=function(a){if(a instanceof hq)a=qq(a.constructor,a.i);else if(a instanceof po)a=qq(a.constructor,a.ya());else throw Error("Input item must be a LayoutPage or LayoutSeparator.");return this.R.get(a)};
pq.prototype.Eb=function(a){if(a instanceof hq){var b=qq(a.constructor,a.i);this.R.set(b,a)}else a instanceof po&&(b=qq(a.constructor,a.ya()),this.R.set(b,a));pq.V.Eb.call(this,a)};function qq(a,b){return wa(a)+"#"+b.Ha()};function rq(a,b,c,d,e){pq.call(this,1);this.U=b;this.i=c;var g=d||!1,h;a=Pn(a);z(a,function(a){g&&h&&1<Z(a)-Z(h)&&sq(this,h,a);var b=G("gb-mobile-menu-pubinfo");b&&(b=Gd(b),Vc&&0<b.length&&!g&&h&&a&&!Z(h)&&sq(this,h,a,!0));var b=new po(a),c=b.ua();"fixed_height"==this.U?c.height=this.i:c.width=this.i;b.setSize(c);this.Eb(b);h=a},this);g&&h&&e&&Z(h)<Z(e)&&sq(this,h,e);jq(this)}y(rq,pq);
function sq(a,b,c,d){b=new hq(b,c,d||!1);c=b.ua();"fixed_height"==a.U?c.height=a.i:c.width=a.i;b.setSize(c);a.Eb(b)}rq.prototype.Hf=function(){return this.i};rq.prototype.Ph=function(){return this.U};rq.prototype.hf=8;function tq(a,b){this.b=b}y(tq,Jo);tq.prototype.render=function(a){var b=this.b(a);b.setSize(a.ua());b.setPosition(a.getPosition());return b};function uq(a,b){var c=vq(a),d=vq(b);Z(a)&&Z(b)?!u(c)||!u(d)||c>=d||1==Math.abs(c-d)?d="Some pages are omitted from this book preview.":wq(a,b)?d="Page "+(--d+" is not part of this book preview."):(c=++c+"",d=--d+"",d="Pages "+(c+(" to "+(d+" are not shown in this preview.")))):d="This is a preview. The total pages displayed will be limited.";return d}function vq(a){a=Tn(a);if(/[^0-9]/.test(a)||Ja(a))a=null;else{var b=a.length-1;a=0<=b&&a.indexOf("B",b)==b?dl(a,gl):dl(a,fl)}return a}
function wq(a,b){var c=vq(a),d=vq(b);return!(c+1-(d-1))};function xq(a,b){V.call(this);this.s=a;this.o=b;this.j=b.R;this.i=b.i;this.g=J("DIV");this.g.className="separator-container";this.s.appendChild(this.g);var c=J("TABLE");c.className="separator-outer-table";this.g.appendChild(c);var d=c.insertRow(-1).insertCell(-1);d.align="center";var e=J("DIV");e.className="separator-background";d.appendChild(e);d=J("TABLE");d.className="separator-inner-table";e.appendChild(d);d.align="center";if(b.b()){var g=G("gb-mobile-menu-pubinfo");if(g){var h=(g||document).getElementsByTagName("IMG");
if(1==h.length){var h=h[0].cloneNode(!0),k=d.insertRow(-1).insertCell(-1);k.insertBefore(h,k.childNodes[0]||null);A(k,"separator-message");A(k,"separator-pubinfo-message")}h=uq(this.j,this.i);g=Rd(g);d=d.insertRow(-1).insertCell(-1);k=this.o;d.innerHTML=k.b&&k.U?g:h+"<br>"+g;A(d,"separator-message");A(d,"separator-pubinfo-message")}A(c,"separator-pubinfo");A(e,"separator-pubinfo")}else c=d.insertRow(-1).insertCell(-1),A(c,"separator-message"),c.innerHTML=uq(this.j,this.i);pf(this.g,!0);Tm(this.g)}
y(xq,Qo);xq.prototype.setSize=function(a){N(this.g,a)};xq.prototype.setPosition=function(a){We(this.g,a)};xq.prototype.Pa=function(){K(this.g)};function yq(a){var b=a.o,c=new fq(this,b);zq(b);Co.call(this,a,c);xo(this,new Po(a,this));vo(this,Aq(this));var d=a.Da,e=a.Ca.qg;this.ka=a.Ca.$g?function(a){return new rq(d,e,a)}:a.Ca.Eh?function(b){return new rq(d,e,b,!0,a.Ca.Eh)}:function(a){return new rq(d,e,a,!0)};b=this.Ka.Ca;"fixed_height"==b.qg?(b=b.tc(),b=b[Math.floor(b.length/2)]+2):b=(b.g?b.g:b.b&&b.b.width?b.b.width:575)+2;this.kf(this.Ed(b));this.b.listen(this.Ka,"pagesupdate",this.Uj);this.b.listen(this.Ka,"pagemodechange",this.xk);this.b.listen(this,
"move",this.Lb);this.b.listen(this,"move",this.El)}y(yq,Co);function zq(a){M(a,"overflow","auto");M(a,{overflowX:"auto",overflowY:"scroll"});A(a,"overflow-scrolling");qd(a,{dir:"ltr"})}f=yq.prototype;f.jf=function(){Do(this,1)};f.Jg=function(){Do(this,-1)};f.tc=function(){var a=this.Ka.Ca,b=ub(a.tc());"fixed_width"==a.qg&&(a=this.Ka.Ca.sk)&&150<a-db(b)&&(1500>a?pb(b,a):pb(b,1500));return new gq(hb(b,dq))};f.Ed=function(a){return this.ka(a)};
f.ua=function(){var a;this.ra.hasChildNodes()?(a=tf(this.ra.childNodes[0]).width,a=new D(a,this.g.height)):a=this.g;return a};function Aq(a){var b=new Ko(a,w(Af,cq,a.Ka,a,a.i.g)),c=new Io;c.b[wa(po)]=b;a=new tq(0,w(Af,xq,a.i.g));c.b[wa(hq)]=a;return c}f.El=function(){if(this.mb){var a=no(this.o,Bo(this).y);a&&a.ya&&(a=a.ya(),this.Ka.ya()!=a&&(this.Ga=!0,$n(this.Ka,a.Ha()),this.Ga=!1))}this.mb=!0};
f.Uj=function(){var a=this.Ka.ya(),b=this.Ka.Da,c=Rn(b,a.Ha());if(!c)a:{c=Z(a);b=Pn(b);for(a=b.length-1;0<=a;a--){var d=b[a];if(Z(d)<=c){c=d;break a}}c=null}a=this.s;b=this.o;d=b.Mc(c);a=Jc(a,d.getPosition());b=this.Ed(b.Hf());c=b.Mc(c).getPosition();c=new C(c.x+a.x,c.y+a.y);uo(this,b);this.Sc(c)};f.xk=function(){this.R.Pa();this.Lb()};function Bq(a){V.call(this);this.i=a;this.j=new U;this.g=J("div");M(this.g,{backgroundColor:"#AAA",display:"",position:"absolute",cursor:"pointer"});mf(this.g,0);a.ka.appendChild(this.g);this.b.listen(a,"resize",this.rg);this.b.listen(this.g,"click",this.zk);this.b.listen(this.g,"mouseout",this.Ak);this.b.listen(this.g,"mouseover",v(this.Ye,this,!0));this.b.listen(a,"viewportmodechange",this.Mh);if(a=this.i.Ea())a instanceof yq&&(this.Kc=!0),this.Mh()}y(Bq,V);f=Bq.prototype;
f.Ma=function(a){O(this.g,a)};f.rg=function(){R(v(this.Bk,this),10)};f.Bk=function(){var a=this.i.Ea();a&&(a.ua(),a=a.i.i,N(this.g,a.clientWidth,40),We(this.g,0,a.clientHeight-40))};f.zk=function(){var a=this.i.Ea(),b=a.ua().height-40,c=J("div");M(c,{backgroundColor:"#000",position:"absolute",width:"100%",height:"1px",overflow:"hidden"});mf(c,.15);We(c,0,a.s.y+b);a.i.j.appendChild(c);R(w(Cq,c),1E3);this.Kc=!1;a=this.i.Ea();Ao(a,new C(void 0,b-20),v(a.Th,a))};
function Cq(a){var b=new ug(a,.15,0,200);b.play();Be(b,"end",w(Dq,b,a))}function Dq(a,b){K(b);a.wa()}f.Kc=!1;f.Ak=function(){this.Kc||this.Ye(!1)};f.Ye=function(a){if(a){if(!this.o){var b=J("div");M(b,{backgroundColor:"#000",height:"1px",overflow:"hidden"});this.g.appendChild(b);R(v(this.Ui,this),10)}this.o=!0}mf(this.g,a?.15:0)};
f.Ui=function(){z(["left","right"],function(a){var b=I("DIV",{"class":"SPRITE_page_down"});this.g.appendChild(b);yf(b,a);M(b,{marginTop:"14px"});M(b,"margin-"+a,"16px")},this)};f.Mh=function(){var a=this.i.Ea(),b=a instanceof yq;b?this.rg():this.Kc=!1;this.Ma(b);this.Ye(this.Kc);vh(this.j);this.j.Bc(a,"move",v(this.dk,this));this.j.listen(a,"layoutchange",v(this.rg,this))};f.dk=function(){this.Kc&&this.Ye(!1);this.Kc=!1};function Eq(a){Q.call(this);a=a||kd();this.b=a.Ja(E?"DIV":"IFRAME",{style:"position:absolute;width:9em;height:9em;top:-99em",tabIndex:-1,"aria-hidden":"true"});a=a.b.body;a.insertBefore(this.b,a.firstChild);var b;if(E)b=this.b;else a:{a=this.b;try{b=a.contentWindow||(a.contentDocument?xd(a.contentDocument):null);break a}catch(c){}b=null}b=this.j=b;Tc&&(a=b.document,a.open(),a.close());L(b,"resize",this.g,!1,this);this.i=this.b.offsetWidth}y(Eq,Q);
Eq.prototype.ma=function(){Eq.V.ma.call(this);Ce(this.j,"resize",this.g,!1,this);this.j=null;Tc&&!F("1.9")||K(this.b);delete this.b};Eq.prototype.g=function(){var a=this.b.offsetWidth;this.i!=a&&(this.i=a,this.dispatchEvent("fontsizechange"))};function Fq(a,b,c,d,e){this.s=a;this.R=b;this.o=kf(c);this.g=e;M(this.g,{overflow:"auto"});a=v(this.j,this);this.i=new ej;L(this.i,"resize",a);b=new Eq;L(b,"fontsizechange",a);L(window,"DOMContentLoaded",v(this.b,this))}Fq.prototype.j=function(){this.b();R(v(this.b,this),100)};
Fq.prototype.b=function(){var a=!1;this.$a&&(a=this.$a.$a);var b=this.i.ua(),a=a?0:this.o.width,c=Math.round(cf(this.R).y);this.s.setSize(new D(Math.max(0,b.width-a),Math.max(0,b.height-c)));a=this.g;M(a,"border","0px");c=Math.round(cf(a).y);b=Math.max(0,b.height-c);M(a,"height",b+"px");a.clientWidth<a.offsetWidth&&M(a,{borderTop:Ha("%spx solid #ebeff9",2),height:Math.max(0,b-2)+"px"})};function Gq(a,b){a.$a=b;L(b,"change",v(a.b,a))};function Hq(a,b){Ij.call(this,b);this.b=a||""}var Iq;y(Hq,Ij);f=Hq.prototype;f.Tb=null;function Jq(){null!=Iq||(Iq="placeholder"in J("INPUT"));return Iq}f.Rd=!1;f.Ub=function(){this.qa=this.g.Ja("INPUT",{type:"text"})};f.Fb=function(a){Hq.V.Fb.call(this,a);this.b||(this.b=a.getAttribute("label")||"");Wd(md(a))==a&&(this.Rd=!0,Gb(this.S(),"label-input-label"));Jq()&&(this.S().placeholder=this.b);yi(this.S(),"label",this.b)};
f.La=function(){Hq.V.La.call(this);var a=new U(this);a.listen(this.S(),"focus",this.th);a.listen(this.S(),"blur",this.uj);Jq()?this.i=a:(Tc&&a.listen(this.S(),["keypress","keydown","keyup"],this.Cj),a.listen(xd(md(this.S())),"load",this.fk),this.i=a,Kq(this));Lq(this);this.S().g=this};f.Gb=function(){Hq.V.Gb.call(this);this.i&&(this.i.wa(),this.i=null);this.S().g=null};function Kq(a){!a.j&&a.i&&a.S().form&&(a.i.listen(a.S().form,"submit",a.Fj),a.j=!0)}
f.ma=function(){Hq.V.ma.call(this);this.i&&(this.i.wa(),this.i=null)};f.th=function(){this.Rd=!0;Gb(this.S(),"label-input-label");if(!Jq()&&!Mq(this)&&!this.U){var a=this,b=function(){a.S()&&(a.S().value="")};E?R(b,10):b()}};f.uj=function(){Jq()||(this.i.Ta(this.S(),"click",this.th),this.Tb=null);this.Rd=!1;Lq(this)};f.Cj=function(a){27==a.b&&("keydown"==a.type?this.Tb=this.S().value:"keypress"==a.type?this.S().value=this.Tb:"keyup"==a.type&&(this.Tb=null),a.preventDefault())};
f.Fj=function(){Mq(this)||(this.S().value="",R(this.rj,10,this))};f.rj=function(){Mq(this)||(this.S().value=this.b)};f.fk=function(){Lq(this)};function Mq(a){return!!a.S()&&""!=a.S().value&&a.S().value!=a.b}f.clear=function(){this.S().value="";null!=this.Tb&&(this.Tb="")};f.reset=function(){Mq(this)&&(this.clear(),Lq(this))};function Nq(a,b){null!=a.Tb&&(a.Tb=b);a.S().value=b;Lq(a)}f.ab=function(){return null!=this.Tb?this.Tb:Mq(this)?this.S().value:""};f.getLabel=function(){return this.b};
function Lq(a){var b=a.S();Jq()?a.S().placeholder!=a.b&&(a.S().placeholder=a.b):Kq(a);yi(b,"label",a.b);Mq(a)?(b=a.S(),Gb(b,"label-input-label")):(a.U||a.Rd||(b=a.S(),A(b,"label-input-label")),Jq()||R(a.nl,10,a))}f.Ma=function(a){this.S().disabled=!a;Ib(this.S(),"label-input-label-disabled",!a)};f.isEnabled=function(){return!this.S().disabled};f.nl=function(){!this.S()||Mq(this)||this.Rd||(this.S().value=this.b)};function Oq(a,b,c){Hq.call(this,null!=c?c:"Search in this book");this.Fb(a);this.La();b&&Nq(this,b)}y(Oq,Hq);function Pq(a,b){Q.call(this);this.qa=a;this.b=b||null;A(a,"with-auto-dir-text");L(this.qa,"keyup",v(this.i,this));L(this.qa,"paste",v(this.g,this))}y(Pq,Q);Pq.prototype.i=function(){Qq(this.qa,this.b)};Pq.prototype.g=function(){Rq(this.qa,this.b)};function Rq(a,b){R(w(function(){Qq(a,b)}))}
function Qq(a,b){var c=!1,d;if(a.value){for(var e=d=0,g=!1,h=a.value.split(Zb),k=0;k<h.length;k++){var n=h[k];Xb.test(n)?(d++,e++):Yb.test(n)?g=!0:Wb.test(n)?e++:$b.test(n)&&(g=!0)}d=-1==(e?.4<d/e?-1:1:g?1:0)}else d=Nm();d?(c=!0,M(a,"textAlign","right"),qd(a,{dir:"rtl"})):(M(a,"textAlign","left"),qd(a,{dir:"ltr"}));b&&(c?(Gb(b,"input-direction-ltr"),A(b,"input-direction-rtl")):(A(b,"input-direction-ltr"),Gb(b,"input-direction-rtl")))}
function Sq(a,b){var c=G(a);if(c){var d=b?G(b):null;Qq(c,d);new Pq(c,d)}}Ea("_OC_autoDir",Sq);function Tq(a,b,c){im(a,w(Uq,b,c))}function Uq(a,b,c){c=c.target;c.Sd()?a(rm(c)):b&&b()};function Vq(){return!(B("iPad")||B("Android")&&!B("Mobile")||B("Silk"))&&(B("iPod")||B("iPhone")||B("Android")||B("IEMobile"))};function Wq(a,b){for(var c=[a],d=b.length-1;0<=d;--d)c.push(typeof b[d],b[d]);return c.join("\x0B")};function Xq(a){ce.call(this,"navigate");this.U=a}y(Xq,ce);function Yq(a,b,c,d){Q.call(this);if(a&&!b)throw Error("Can't use invisible history without providing a blank page.");var e;if(c)e=c;else{e="history_state"+Zq;var g=Dc("input",{type:"text",name:e,id:e,style:gc("display:none")});document.write(wc(g));e=G(e)}this.R=e;this.b=c?xd(md(c)):window;this.ra=b;E&&!b&&(this.ra="https"==window.location.protocol?pc(fc(gc("https:///"))):pc(fc(gc('javascript:""'))));this.g=new hg(150);ae(this,this.g);this.j=!a;this.i=new U(this);if(a||$q){var h;if(d)h=d;else{a=
"history_iframe"+Zq;d=this.ra;b={id:a,style:gc("display:none"),sandbox:void 0};d&&oc(d);c={};c.src=d||null;c.srcdoc=null;d={sandbox:""};e={};for(h in c)e[h]=c[h];for(h in d)e[h]=d[h];for(h in b){g=h.toLowerCase();if(g in c)throw Error('Cannot override "'+g+'" attribute, got "'+h+'" with value "'+b[h]+'"');g in d&&delete e[g];e[h]=b[h]}h=Ec("iframe",e,void 0);document.write(wc(h));h=G(a)}this.ha=h;this.va=!0}$q&&(this.i.listen(this.b,"load",this.Ok),this.ta=this.ka=!1);this.j?ar(this,this.getToken(),
!0):br(this,this.R.value);Zq++}y(Yq,Q);Yq.prototype.U=!1;Yq.prototype.s=!1;Yq.prototype.o=null;var cr=function(a,b){var c=b||Wq;return function(){var b=this||l,b=b.closure_memoize_cache_||(b.closure_memoize_cache_={}),e=c(wa(a),arguments);return b.hasOwnProperty(e)?b[e]:b[e]=a.apply(this,arguments)}}(function(){return E?dd(8):"onhashchange"in l}),$q=E&&!dd(8);f=Yq.prototype;f.sd=null;f.ma=function(){Yq.V.ma.call(this);this.i.wa();this.Ma(!1)};
f.Ma=function(a){if(a!=this.U)if($q&&!this.ka)this.ta=a;else if(a)if(Qc?this.i.listen(this.b.document,dr,this.Xk):Tc&&this.i.listen(this.b,"pageshow",this.Uk),cr()&&this.j)this.i.listen(this.b,"hashchange",this.Pk),this.U=!0,this.dispatchEvent(new Xq(this.getToken()));else{if(!E||Vq()||this.ka)this.i.listen(this.g,"tick",v(this.eh,this,!0)),this.U=!0,$q||(this.o=this.getToken(),this.dispatchEvent(new Xq(this.getToken()))),this.g.start()}else this.U=!1,vh(this.i),this.g.stop()};
f.Ok=function(){this.ka=!0;this.R.value&&br(this,this.R.value,!0);this.Ma(this.ta)};f.Uk=function(a){a.i.persisted&&(this.Ma(!1),this.Ma(!0))};f.Pk=function(){var a=er(this.b);a!=this.o&&fr(this,a)};f.getToken=function(){return null!=this.sd?this.sd:this.j?er(this.b):gr(this)||""};f.setToken=function(a,b){this.getToken()!=a&&(this.j?(ar(this,a,!1),cr()||E&&!Vq()&&br(this,a,!1,b),this.U&&this.eh()):(br(this,a,!1),this.sd=this.o=this.R.value=a,this.dispatchEvent(new Xq(a))))};
function er(a){a=a.location.href;var b=a.indexOf("#");return 0>b?"":a.substring(b+1)}function ar(a,b,c){a=a.b.location;var d=a.href.split("#")[0],e=-1!=a.href.indexOf("#");if($q||e||b)d+="#"+b;d!=a.href&&(c?a.replace(d):a.href=d)}
function br(a,b,c,d){if(a.va||b!=gr(a))if(a.va=!1,b=encodeURIComponent(String(b)),E){var e=Kd(a.ha);e.open("text/html",c?"replace":void 0);c=Fc(Dc("title",{},d||a.b.document.title),Dc("body",{},b));e.write(wc(c));e.close()}else if(e=oc(a.ra)+"#"+b,a=a.ha.contentWindow)c?a.location.replace(e):a.location.href=e}
function gr(a){if(E)return a=Kd(a.ha),a.body?Ma(a.body.innerHTML):null;var b=a.ha.contentWindow;if(b){var c;try{c=Ma(er(b))}catch(d){return a.s||(1!=a.s&&ig(a.g,1E4),a.s=!0),null}a.s&&(0!=a.s&&ig(a.g,150),a.s=!1);return c||null}return null}f.eh=function(){if(this.j){var a=er(this.b);a!=this.o&&fr(this,a)}if(!this.j||$q)if(a=gr(this)||"",null==this.sd||a==this.sd)this.sd=null,a!=this.o&&fr(this,a)};
function fr(a,b){a.o=a.R.value=b;a.j?($q&&br(a,b),ar(a,b)):br(a,b);a.dispatchEvent(new Xq(a.getToken()))}f.Xk=function(){this.g.stop();this.g.start()};var dr=["mousedown","keydown","mousemove"],Zq=0;function hr(a,b,c,d){this.hf=this.$f=10;this.tg=this.marginTop=20;b=Math.floor((b-20)/(100+this.$f));d&&2<b&&(b-=b%2);pq.call(this,b);Pn(a);a=hb(Pn(a),function(a){a=new po(a);var b=a.ua();b.width=100;a.setSize(b);return a});c&&(c=a[0].ua(),d=new jo,d.setSize(c),this.Eb(d));z(a,v(this.Eb,this));jq(this)}y(hr,pq);function ir(a,b,c,d,e){V.call(this);this.j=a;this.i=c;var g=J("div");M(g,{position:"absolute"});e=e.width-2;We(g,d.x+(Nm()?e:0),d.y);b.i.g.appendChild(g);this.o=g;g=new D(e,Math.floor(e/qo(c)));this.g=J("div");this.o.appendChild(this.g);M(this.g,{padding:"1px",position:"absolute"});this.s();b=J("div");this.g.appendChild(b);M(b,{overflow:"hidden",backgroundColor:"#fcfcfc"});N(b,g);this.g.appendChild(b);d=J("img");d.title=c.getLabel();this.U=d;e=S;var h=new S(c.Da.mk);T(h,"pg",c.Ha());c.b.sig&&T(h,
"sig",c.b.sig);e=new e(h.toString());T(e,"zoom","1");T(e,"img","1");T(e,"w",g.width);if(g=this.j.Ca.Al)T(e,"imgtk",g),T(e,"jtp",Z(c));d.src=e.toString();b.appendChild(d);M(this.g,"cursor","pointer");this.b.listen(this.g,"click",this.R);this.b.listen(a,"pagechange",this.s)}y(ir,Qo);ir.prototype.s=function(){var a=!1,b=this.j.ya();b&&b==this.i&&(a=!0);M(this.g,"backgroundColor",a?"#6B90DA":"#ccc")};ir.prototype.R=function(){this.j.Db(yq);this.j.nb(this.i);jr.dispatchEvent("click")};
ir.prototype.Pa=function(){gp(this.U);K(this.o)};var jr=new Q;function kr(a,b){this.b=a;this.g=b}y(kr,Jo);kr.prototype.render=function(a){return new ir(this.b,this.g,a.ya(),a.getPosition(),a.ua())};function lr(a){var b=a.o;M(b,{overflow:"hidden"});var c=new fq(this,b);Co.call(this,a,c);this.b.listen(this,"move",this.Lb);M(b,{overflow:"auto"});vo(this,mr(this));uo(this,nr(this));xo(this,new Mo(this));R(v(this.Lb,this),0);this.b.listen(this,"resize",this.ka);var d=G("subscription-bar");d&&(this.Af(d),R(function(){O(d,!1)},600))}y(lr,Co);lr.prototype.U=function(a){a=this.o.Mc(a).getPosition();this.Sc(new C(void 0,a.y-40))};
function nr(a){var b=a.Ka.Ca.Zk;return new hr(a.Ka.Da,a.ua().width,b,b)}lr.prototype.ka=function(){uo(this,nr(this));this.U(this.Ka.ya())};function mr(a){var b=new Io;a=new kr(a.Ka,a);b.b[wa(po)]=a;return b};function or(){}y(or,jo);function pr(a){V.call(this);this.j=a}y(pr,Ro);pr.prototype.setVisible=function(a){O(this.i,a)};
pr.prototype.kc=function(a){pr.V.kc.call(this,a);var b=this.g.ua();a=this.i;var c=b.width,d=b.height,e=Math.floor(.035*c),b=this.j?"/googlebooks/images/burn-left.png":"/googlebooks/images/burn-right.png";We(a,this.j?c-e:0,0);N(a,e,d);M(a,{position:"absolute"});E?(a=a.style,E?a.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+b+'", sizingMethod="scale")':(a.backgroundImage="url("+b+")",a.backgroundRepeat="no-repeat")):(c=I("IMG",{src:b,width:e,height:d,border:0,position:"absolute",
top:0,left:0}),a.appendChild(c))};function qr(a,b){this.s=a;var c=Math.floor(b/2);this.g=new D(c,Math.floor(c/Lc(this.s.Da.nc)));this.i=J("div");M(this.i,{position:"absolute",backgroundColor:"white",top:0,left:0});this.ra=[];a.Ea().i.g.appendChild(this.i);this.j=J("div");this.R=J("div");this.ra.push(L(this.j,"dblclick",v(this.Lj,this)));c={overflow:"hidden",backgroundColor:"#fcfcfc",position:"absolute",border:"1px solid #ccc"};M(this.j,c);M(this.R,c);this.i.appendChild(this.j);this.i.appendChild(this.R);this.ha=J("div");this.ka=J("div");
this.j.appendChild(this.ha);this.R.appendChild(this.ka);rr(this)}y(qr,Qo);function rr(a){a.o&&a.o.Pa();a.U&&a.U.Pa();Ed(a.ha);Ed(a.ka);qf(a.j,a.g);qf(a.R,a.g);a.o=aq(a.s,new ap(a.ta,a.g),a.ha);bq(a.s,a.o);a.va=new pr(!0);vp(a.o,a.va);a.U=aq(a.s,new ap(a.Ga,a.g),a.ka);a.Na=new pr(!1);bq(a.s,a.U);vp(a.U,a.Na)}f=qr.prototype;f.setPosition=function(a){0>a.x&&(a.x=0);We(this.i,a)};f.Lj=function(a){a.preventDefault();a.g();this.s.Cc("previous")};f.setVisible=function(a){M(this.i,{display:a?"":"none"})};
f.draw=function(){M(this.j,{left:0,top:0});M(this.R,{left:this.g.width+"px",top:0})};function sr(a){return gb([a.ta,a.Ga],function(a){return!!a})}f.Pa=function(){this.o.Pa();this.U.Pa();for(var a;a=this.ra.pop();)De(a);this.i.parentNode&&K(this.i)};function tr(a){return 2*a};function ur(a){this.g=a}y(ur,Jo);ur.prototype.render=function(a){var b=new qr(this.g,a.ua().width);b.setPosition(a.getPosition());b.draw();b.setVisible(!0);return this.b=b};function vr(a,b,c){this.ha=a;this.U=b;this.s=c;a=J("div");M(a,{whiteSpace:"nowrap",padding:"5px",border:"1px solid #fff588",backgroundColor:"#ffffcc",fontSize:"13.28px",position:"relative"});this.b=a;this.ha.appendChild(this.b);vr.prototype.g.apply(this);L(this.s,"change",v(this.i,this));L(new ej,"resize",v(R,null,v(this.i,this)))}vr.prototype.i=function(){var a=kf(this.b);if(0<a.width){var b=Math.round(kf(this.U).width/2);We(this.b,b-Math.round(a.width/2),0)}};
vr.prototype.j=function(){O(this.b,!0);this.i()};vr.prototype.g=function(){O(this.b,!1)};function wr(a,b,c){vr.apply(this,arguments);this.o=new wg(this.b,500);this.R=new jg(v(this.g,this))}y(wr,vr);wr.prototype.j=function(a){mf(this.b,1);vr.prototype.j.apply(this);a&&this.R.start(a)};wr.prototype.g=function(){this.o.play()};var xr=null;function yr(a,b){U.call(this);this.g=xr;this.j=a;this.b=b;this.j.Ca.$g||(this.listen(this.j,"pageturn",this.o),this.listen(this.b,"dispose",this.wa))}y(yr,U);yr.prototype.o=function(){var a=sr(this.b.ka.b)[0]||new hp,b=sr(this.b.ka.b)[1]||new hp,c=this.R,d=this.s,e=d?Z(d):-1,g=Z(a)||-1,h=Z(b)||-1,k=Math.max(c?Z(c):-1,e),n=Math.max(g,h);if(Math.abs(n-k)>this.b.Kg){var p,q;0<n-k&&(p=k==e?d:c,q=a);0>n-k&&(p=-1!=h?b:a,q=d);1<h-g&&(p=a,q=b);!wq(p,q)&&m(p)&&m(q)&&(a=uq(p,q),this.g.b.innerHTML=a,this.g.j(3E3))}};function zr(a,b){Mn.call(this);this.j={};if(a){this.cl=a.prefix;this.mk=a.image_prefix||a.prefix;var c=hb(a.page,function(a){a=new this.g(a);b&&(a.Ra=b);return a},this);Nn(this,c)}}y(zr,Mn);zr.prototype.dg=function(a){a=a.page;for(var b=0;b<a.length;b++){var c=a[b],d=Rn(this,c.pid);d&&op(d,c)}};zr.prototype.g=kp;zr.prototype.o=function(a,b){if(!Rn(this,b.Ha())){var c=ub(Pn(this));vb(c,b);Nn(this,c)}this.j[b.Ha()]=!0;a&&a(b)};function Ar(a){kp.call(this,a)}y(Ar,kp);Ar.prototype.getLabel=function(){return this.g(32)?"Front Cover":this.g(64)?"Back Cover":Ar.V.getLabel.call(this)};Ar.prototype.s=function(){return{width:"w"}};function Br(a){zr.apply(this,arguments);this.i();L(this,"update",v(this.i,this))}y(Br,zr);function Cr(a,b){var c={};z(b.page,function(a){var b=Rn(this,a.pid);b&&op(b,a);c[a.pid]=!0},a);var d=Pn(a),e=gb(d,function(a){return!!c[a.Ha()]||!!this.j[a.Ha()]},a);d.length!=e.length&&Nn(a,e)}Br.prototype.dg=function(a){this.s?Cr(this,a):Br.V.dg.call(this,a)};
Br.prototype.i=function(){var a={},b=0;z(Pn(this),function(c){var d=Z(c);a[d]=c;b=Math.max(b,d)});for(var c=[],d=-1;d<=b;d+=2){var e=a[d],g=a[d+1];(e||g)&&c.push([e,g])}this.ei=c};Br.prototype.g=Ar;function Dr(a){oq.call(this,1);var b=new or;b.setSize(a);this.Eb(b);jq(this)}y(Dr,oq);Dr.prototype.ha=function(){return this.g[0]};Dr.prototype.Hf=function(){return this.Hb()||0};Dr.prototype.Ph=function(){return"fixed_width"};function Er(a){var b=a.o,c=new fq(this,b);M(b,{overflow:"hidden"});Co.call(this,a,c);this.ka=new ur(a);b=new Io;c=this.ka;b.b[wa(or)]=c;this.R=b;b=Lc(a.Da.nc);c=this.ua();b=this.Ed(Math.min(2*Math.floor(c.height*b),c.width));uo(this,b);this.mb=new yr(a,this);this.b.listen(this.Ka,"pagemodechange",this.wk);R(this.Lb,0,this)}y(Er,Co);f=Er.prototype;f.tc=function(){var a=tb(Fr,this.Ka.Ca.tc());return new gq(hb(a,tr))};f.kf=function(a){Er.V.kf.call(this,a);this.R.Pa();this.Lb()};
f.jf=function(){Do(this,1)};f.Jg=function(){Do(this,-1)};f.wk=function(){this.R.Pa();this.Lb()};f.Kg=2;f.Ed=function(a){this.ua();return new Dr(new D(a,Math.floor(Math.floor(a/2)/Lc(this.Ka.Da.nc))))};var Fr=[180,220,280];
Er.prototype.ha=function(){var a=Gr(this,this.Ka.ya()),b=this.ka.b;if(b){var c=this.mb,d=sr(b);c.s=d[0];c.R=d[1];var c=a[0],d=a[1],e=!0,a=!0;b.ta=c;b.Ga=d;rr(b);if(c){if(c.g(64)||!d)a=!1}else zp(b.o);if(d){if(d.g(32)||!c)e=!1}else zp(b.U);c=e;d=a?"":"hidden";M(b.j,"visibility",c?"":"hidden");M(b.R,"visibility",d);c=c&&a;b.va.setVisible(c);b.Na.setVisible(c)}this.dispatchEvent("pagechange")};function Gr(a,b){return mb(a.Ka.Da.ei,function(a){return ob(a,b)})}
Er.prototype.Lb=function(){Er.V.Lb.call(this);this.ha()};Er.prototype.va=function(a,b){for(var c=this.Ka.Da.ei,d=Z(a),e,g,h=0;h<c.length;++h){var k=c[h];if(k[0]&&d==Z(k[0])||k[1]&&d==Z(k[1])){e=h;break}else if(g){var n=k[0]||k[1];if(d>=Z(g[0]||g[1])&&d<Z(n)){e=0<b?h-b:h;break}}g=k}return(c=c[u(e)?e+b:0])?c[0]||c[1]:null};function Hr(a,b){V.call(this);this.s=a;this.i=b;this.g=J("div");a.i.g.appendChild(this.g);M(this.g,{border:"1px solid #c0c0c0",position:"absolute",fontSize:"83%",background:"white"});A(this.g,"sitb_result");We(this.g,b.getPosition());N(this.g,b.ua());var c=J("div");this.g.appendChild(c);M(c,{backgroundColor:"#f5f5f5",borderBottom:"1px solid #c0c0c0",textAlign:"left",overflow:"hidden",height:"26px"});this.j=J("div");M(this.j,{padding:"5px 10px"});var d=b.b.b;this.j.innerHTML=d?"Page "+d:"Page";c.appendChild(this.j);
this.o=J("div");this.g.appendChild(this.o);if(c=Rn(this.s.ka.Da,this.i.b.Ha())){var d=this.s.ka.Ra.Ab(),e=c.b.snippetSrc,g;if(g=e)g=new S(e),g=ah(g,"q")||ah(g,"vq")||ah(g,"dq"),g=d==g;g?Ir(this,e):(d=eo(c),T(d,"source","gbs_snippet"),co(c,d,v(this.R,this)))}else Jr(this)}y(Hr,Qo);Hr.prototype.U=function(a){this.s.uc(a.b)};Hr.prototype.R=function(a){(a=a.b.snippetSrc)?Ir(this,a):Jr(this)};
function Ir(a,b){Ed(a.o);var c=J("img");c.src=b;Kr(a);var d=a.i.ua().width-25;M(c,{width:d+"px"});a.o.appendChild(c)}function Kr(a){M(a.g,{border:"1px solid #c0c0c0",cursor:"pointer"});a.b.listen(a.g,"click",v(a.U,a,a.i));Lr(a.j);a.j.innerHTML+="&nbsp;&raquo;"}function Lr(a){M(a,{textDecoration:"underline",fontWeight:"normal",color:"#0000cc"})}
function Jr(a){Ed(a.o);var b=J("div");a.o.appendChild(b);M(b,{width:Math.floor(.75*a.i.ua().width)+"px",padding:"5px 0px",textAlign:"left",marginLeft:"auto",marginRight:"auto"});b.innerHTML=a.i.b.g;b=J("div");M(b,{position:"absolute",bottom:"10px",left:"0px",width:"100%",fontWeight:"bold",color:"#666"});a.o.appendChild(b);var c=Rn(a.s.ka.Da,a.i.b.Ha()),d;if(d=c&&c.bc())d=!kb([4,8,16],v(c.g,c));d&&c.g(2)?(Kr(a),b.innerHTML="We couldn't make an image for this result.&nbsp;&nbsp;",a=J("span"),a.innerHTML=
"Click to view the whole page.",b.appendChild(a),Lr(a)):(b.innerHTML="No preview available for this page.&nbsp;&nbsp;",a=J("a"),a.innerHTML="Buy this book.",b.appendChild(a),M(a,{fontWeight:"normal"}),b=new S(window.location.href),T(b,"sitesec","buy"),T(b,"source","gbs_snippet"),b.b.remove("printsec"),a.href=b.toString())}Hr.prototype.Pa=function(){K(this.g);this.wa()};function Mr(a){this.b=a}y(Mr,Jo);Mr.prototype.render=function(a){return new Hr(this.b,a)};function Nr(a){this.i=a.page_id;this.b=a.page_number||"";this.g=a.snippet_text||""}Nr.prototype.Ha=function(){return this.i};function Or(a){this.mc=a;0<this.mc.number_of_results?(this.tb=hb(this.mc.search_results,function(a){return new Nr(a)},this),this.id=this.mc.search_results[0].page_id+Pr(this)+this.mc.search_results[this.mc.number_of_results-1].page_id):this.tb=[]}function Pr(a){return a.mc.search_query_escaped};function Qr(a){this.b=a}y(Qr,jo);function Rr(a){oq.call(this,1);this.Va=a;this.hf=this.tg=this.marginTop=20;a.tb&&(z(a.tb,v(this.i,this)),jq(this))}y(Rr,oq);Rr.prototype.i=function(a){a=new Qr(a);a.setSize(new D(600,150));this.Eb(a)};function Sr(a){var b=a.o;M(b,"overflow","hidden");var c=new fq(this,b);so.call(this,c);this.ka=a;xo(this,new Mo(this));this.b.listen(this,"move",this.Lb);var d=G("subscription-bar");d&&(this.Af(d),R(function(){O(d,!1)},600));vo(this,Tr(this));Ur(b)}y(Sr,so);function Ur(a){M(a,"overflow","auto");M(a,{overflowX:"auto",overflowY:"scroll"});qd(a,{dir:"ltr"})}function Tr(a){var b=new Io;a=new Mr(a);b.b[wa(Qr)]=a;return b}Sr.prototype.uc=function(a,b){return this.Za(a,b)};function Vr(a){this.b=a||{}}Vr.prototype.hb=function(){return this.b};Vr.prototype.Db=function(a){var b=Nb(Wr,function(b){return b==a});this.b.v=b};Vr.prototype.j=function(a){this.b.q=a};Vr.prototype.Ab=function(){return this.b.q};var Wr={onepage:yq,twopage:Er,thumbnail:lr,snippet:Sr};function Xr(a,b){this.g=new Yq;L(this.g,"navigate",v(this.o,this));this.b=a;this.$a=b}Xr.prototype.o=function(a){Yr(this,a.U)};function Yr(a,b){if(!(a.j&&""==b||a.i))if((E||Uc)&&""==b)window.history.go(-2);else if(b){var c={},d=new Tg(b);z(d.yb(),function(a){var b=d.get(a);b in Zr&&(b=Zr[b]);c[a]=b});var e=new Vr(c);a.b.Db(Wr[e.b.v]||yq);on(a.$a,!!e.b.f);m(e.Ab())&&a.b.Ra.j(e.Ab())}}var Zr={"true":!0,"false":!1};
Xr.prototype.Ma=function(a){this.j=!0;this.g.Ma(a);E&&(a=(new S(window.location)).g,Yr(this,a));this.j=!1};Xr.prototype.update=function(){var a=new Vr;a.Db(this.b.R);a.j(this.b.Ra.Ab());a.b.f=this.$a.$a;var b=a.hb(),a=Gg(b);if("undefined"==typeof a)throw Error("Keys are undefined");for(var c=new Tg(null,0,void 0),b=Fg(b),d=0;d<a.length;d++){var e=a[d],g=b[d];sa(g)?gh(c,e,g):dh(c,e,g)}a=c.toString();this.i=!0;this.g.setToken(a);this.i=!1};var $r=null;function as(){$r||($r={},$r[1]=yq,$r[2]=Er)}function bs(a){var b={},c=(new S(window.location.href)).g;c&&(c=c.split(","),z(c,function(a){b[a.charAt(0)]=a.substring(1)}));return b[a]};function cs(a,b,c,d){Wl.call(this,a,b,c||d);(c||d)&&this.i(65|(d?32:132))}y(cs,Wl);function ds(a){this.b=a}qa(ds);function es(a,b){a&&(a.tabIndex=b?0:-1)}f=ds.prototype;f.Lf=function(a){return"DIV"==a.tagName};function fs(a,b,c){c.id&&Lj(b,c.id);var d=a.hd(),e=!1,g=Db(c);g&&z(g,function(a){a==d?e=!0:a&&(a==d+"-disabled"?b.Ma(!1):a==d+"-horizontal"?gs(b,"horizontal"):a==d+"-vertical"&&gs(b,"vertical"))},a);e||A(c,d);hs(a,b,c);return c}
function hs(a,b,c){if(c)for(var d=c.firstChild,e;d&&d.parentNode==c;){e=d.nextSibling;if(1==d.nodeType){var g=a.Id(d);g&&(g.qa=d,b.isEnabled()||g.Ma(!1),W(b,g),Pj(g,d))}else d.nodeValue&&""!=La(d.nodeValue)||c.removeChild(d);d=e}}f.Id=function(a){a:{var b;a=Db(a);for(var c=0,d=a.length;c<d;c++)if(b=a[c],b=b in qk?qk[b]():null){a=b;break a}a=null}return a};f.Mf=function(a){a=a.S();pf(a,!0,Tc);E&&(a.hideFocus=!0);var b=this.b;b&&xi(a,b)};f.hd=function(){return"goog-container"};
function is(a,b){var c=a.hd(),d=[c,"horizontal"==b.Tc?c+"-horizontal":c+"-vertical"];b.isEnabled()||d.push(c+"-disabled");return d}f.ah=function(){return"vertical"};function js(a,b,c){Ij.call(this,c);this.wc=b||ds.Qa();this.Tc=a||this.wc.ah()}y(js,Ij);f=js.prototype;f.kg=null;f.Oc=null;f.wc=null;f.Tc=null;f.hc=!0;f.Nc=!0;f.$c=!0;f.Ya=-1;f.kb=null;f.Wb=!1;f.$b=null;function ks(a){return a.kg||a.S()}f.Ub=function(){this.qa=this.g.Ja("DIV",is(this.wc,this).join(" "))};f.dd=function(){return this.S()};f.Kf=function(a){return this.wc.Lf(a)};f.Fb=function(a){this.qa=fs(this.wc,this,a);"none"==a.style.display&&(this.hc=!1)};
f.La=function(){js.V.La.call(this);Qj(this,function(a){a.Fa&&ls(this,a)},this);var a=this.S();this.wc.Mf(this);this.setVisible(this.hc,!0);Mj(this).listen(this,"enter",this.Wf).listen(this,"highlight",this.hj).listen(this,"unhighlight",this.jj).listen(this,"open",this.Rj).listen(this,"close",this.fj).listen(a,"mousedown",this.ij).listen(md(a),"mouseup",this.yj).listen(a,["mousedown","mouseup","mouseover","mouseout","contextmenu"],this.vj);this.$c&&ms(this,!0)};
function ms(a,b){var c=Mj(a),d=ks(a);b?c.listen(d,"focus",a.xe).listen(d,"blur",a.we).listen(a.Oc||(a.Oc=new Bi(ks(a))),"key",a.Kb):c.Ta(d,"focus",a.xe).Ta(d,"blur",a.we).Ta(a.Oc||(a.Oc=new Bi(ks(a))),"key",a.Kb)}f.Gb=function(){this.Ec(-1);this.kb&&this.kb.Sa(!1);this.Wb=!1;js.V.Gb.call(this)};f.ma=function(){js.V.ma.call(this);this.Oc&&(this.Oc.wa(),this.Oc=null);this.wc=this.kb=this.$b=this.kg=null};f.Wf=function(){return!0};
f.hj=function(a){var b=Uj(this,a.target);if(-1<b&&b!=this.Ya){var c=ns(this);c&&Ak(c,!1);this.Ya=b;c=ns(this);this.Wb&&zk(c,!0);this.kb&&c!=this.kb&&(lk(c,64)?c.Sa(!0):this.kb.Sa(!1))}b=this.S();null!=a.target.S()&&yi(b,"activedescendant",a.target.S().id)};f.jj=function(a){a.target==ns(this)&&(this.Ya=-1);this.S().removeAttribute("aria-activedescendant")};f.Rj=function(a){(a=a.target)&&a!=this.kb&&a.vc()==this&&(this.kb&&this.kb.Sa(!1),this.kb=a)};
f.fj=function(a){a.target==this.kb&&(this.kb=null);var b=this.S(),c=a.target.S();b&&X(a.target,2)&&c&&Ai(b,c)};f.ij=function(a){this.Nc&&(this.Wb=!0);var b=ks(this);b&&Pd(b)&&Qd(b)?b.focus():a.preventDefault()};f.yj=function(){this.Wb=!1};
f.vj=function(a){var b;a:{b=a.target;if(this.$b)for(var c=this.S();b&&b!==c;){var d=b.id;if(d in this.$b){b=this.$b[d];break a}b=b.parentNode}b=null}if(b)switch(a.type){case "mousedown":b.xc(a);break;case "mouseup":b.Vb(a);break;case "mouseover":b.Qf(a);break;case "mouseout":b.Xf(a);break;case "contextmenu":b.Pd(a)}};f.xe=function(){};f.we=function(){this.Ec(-1);this.Wb=!1;this.kb&&this.kb.Sa(!1)};
f.Kb=function(a){return this.isEnabled()&&this.Aa()&&(Rj(this)||this.kg)&&this.Nf(a)?(a.preventDefault(),a.g(),!0):!1};
f.Nf=function(a){var b=ns(this);if(b&&"function"==typeof b.Kb&&b.Kb(a)||this.kb&&this.kb!=b&&"function"==typeof this.kb.Kb&&this.kb.Kb(a))return!0;if(a.shiftKey||a.ctrlKey||a.metaKey||a.altKey)return!1;switch(a.b){case 27:if(this.$c)ks(this).blur();else return!1;break;case 36:os(this);break;case 35:ps(this);break;case 38:if("vertical"==this.Tc)qs(this);else return!1;break;case 37:if("horizontal"==this.Tc)Tj(this)?rs(this):qs(this);else return!1;break;case 40:if("vertical"==this.Tc)rs(this);else return!1;
break;case 39:if("horizontal"==this.Tc)Tj(this)?qs(this):rs(this);else return!1;break;default:return!1}return!0};function ls(a,b){var c=b.S(),c=c.id||(c.id=b.getId());a.$b||(a.$b={});a.$b[c]=b}f.Cd=function(a,b,c){a.ae|=2;a.ae|=64;a.Wa(32,!1);tk(a,!1);var d=a.vc()==this?Uj(this,a):-1;js.V.Cd.call(this,a,b,c);a.Fa&&this.Fa&&ls(this,a);a=d;-1==a&&(a=Rj(this));a==this.Ya?this.Ya=Math.min(Rj(this)-1,b):a>this.Ya&&b<=this.Ya?this.Ya++:a<this.Ya&&b>this.Ya&&this.Ya--};
f.removeChild=function(a,b){if(a=t(a)?Nj(this,a):a){var c=Uj(this,a);-1!=c&&(c==this.Ya?(Ak(a,!1),this.Ya=-1):c<this.Ya&&this.Ya--);var d=a.S();d&&d.id&&this.$b&&(c=this.$b,d=d.id,d in c&&delete c[d])}a=js.V.removeChild.call(this,a,b);tk(a,!0);return a};function gs(a,b){if(a.S())throw Error("Component already rendered");a.Tc=b}f.Aa=function(){return this.hc};
f.setVisible=function(a,b){if(b||this.hc!=a&&this.dispatchEvent(a?"show":"hide")){this.hc=a;var c=this.S();c&&(O(c,a),this.$c&&es(ks(this),this.Nc&&this.hc),b||this.dispatchEvent(this.hc?"aftershow":"afterhide"));return!0}return!1};f.isEnabled=function(){return this.Nc};
f.Ma=function(a){this.Nc!=a&&this.dispatchEvent(a?"enable":"disable")&&(a?(this.Nc=!0,Qj(this,function(a){a.zi?delete a.zi:a.Ma(!0)})):(Qj(this,function(a){a.isEnabled()?a.Ma(!1):a.zi=!0}),this.Wb=this.Nc=!1),this.$c&&es(ks(this),a&&this.hc))};function ss(a,b){b!=a.$c&&a.Fa&&ms(a,b);a.$c=b;a.Nc&&a.hc&&es(ks(a),b)}f.Ec=function(a){(a=Sj(this,a))?Ak(a,!0):-1<this.Ya&&Ak(ns(this),!1)};function ns(a){return Sj(a,a.Ya)}function os(a){ts(a,function(a,c){return(a+1)%c},Rj(a)-1)}
function ps(a){ts(a,function(a,c){a--;return 0>a?c-1:a},0)}function rs(a){ts(a,function(a,c){return(a+1)%c},a.Ya)}function qs(a){ts(a,function(a,c){a--;return 0>a?c-1:a},a.Ya)}function ts(a,b,c){c=0>c?Uj(a,a.kb):c;var d=Rj(a);c=b.call(a,c,d);for(var e=0;e<=d;){var g=Sj(a,c);if(g&&a.Rg(g)){a.Ec(c);break}e++;c=b.call(a,c,d)}}f.Rg=function(a){return a.Aa()&&a.isEnabled()&&lk(a,2)};function us(){}y(us,ck);qa(us);us.prototype.Ba=function(){return"goog-menuheader"};function vs(a,b,c){sk.call(this,a,c||us.Qa(),b);this.Wa(1,!1);this.Wa(2,!1);this.Wa(4,!1);this.Wa(32,!1);this.yc=1}y(vs,sk);pk("goog-menuheader",function(){return new vs(null)});function ws(){this.g=[]}y(ws,ck);qa(ws);function xs(a,b){var c=a.g[b];if(!c){switch(b){case 0:c=a.Ba()+"-highlight";break;case 1:c=a.Ba()+"-checkbox";break;case 2:c=a.Ba()+"-content"}a.g[b]=c}return c}f=ws.prototype;f.jd=function(){return"menuitem"};f.Jb=function(a){var b=a.g.Ja("DIV",fk(this,a).join(" "),ys(this,a.getContent(),a.g));zs(this,a,b,lk(a,8)||lk(a,16));return b};f.Pb=function(a){return a&&a.firstChild};
f.Ua=function(a,b){var c=Hd(b),d=xs(this,2);c&&Eb(c,d)||b.appendChild(ys(this,b.childNodes,a.g));Eb(b,"goog-option")&&(a.Wa(16,!0),a&&b&&zs(this,a,b,!0));return ws.V.Ua.call(this,a,b)};f.Nd=function(a,b){var c=this.Pb(a),d=As(this,a)?c.firstChild:null;ws.V.Nd.call(this,a,b);d&&!As(this,a)&&c.insertBefore(d,c.firstChild||null)};function ys(a,b,c){a=xs(a,2);return c.Ja("DIV",a,b)}function As(a,b){var c=a.Pb(b);if(c){var c=c.firstChild,d=xs(a,1);return!!c&&va(c)&&1==c.nodeType&&Eb(c,d)}return!1}
function zs(a,b,c,d){jk(a,c,b.Ld());kk(a,b,c);d!=As(a,c)&&(Ib(c,"goog-option",d),c=a.Pb(c),d?(a=xs(a,1),c.insertBefore(b.g.Ja("DIV",a),c.firstChild||null)):c.removeChild(c.firstChild))}f.Hd=function(a){switch(a){case 2:return xs(this,0);case 16:case 8:return"goog-option-selected";default:return ws.V.Hd.call(this,a)}};f.ve=function(a){var b=xs(this,0);switch(a){case "goog-option-selected":return 16;case b:return 2;default:return ws.V.ve.call(this,a)}};f.Ba=function(){return"goog-menuitem"};function Bs(a,b,c,d){sk.call(this,a,d||ws.Qa(),c);this.Na=b}y(Bs,sk);f=Bs.prototype;f.ab=function(){var a=this.Na;return null!=a?a:this.te()};f.Wa=function(a,b){Bs.V.Wa.call(this,a,b);switch(a){case 8:X(this,16)&&!b&&this.Dc(!1);var c=this.S();c&&this&&c&&zs(this.i,this,c,b);break;case 16:(c=this.S())&&this&&c&&zs(this.i,this,c,b)}};
f.te=function(){var a=this.getContent();return sa(a)?(a=hb(a,function(a){return va(a)&&1==a.nodeType&&(Eb(a,"goog-menuitem-accel")||Eb(a,"goog-menuitem-mnemonic-separator"))?"":Td(a)}).join(""),Ka(a)):Bs.V.te.call(this)};f.Vb=function(a){var b=this.vc();if(b){var c=b.j;b.j=null;if(c&&u(a.clientX)&&Ic(c,new C(a.clientX,a.clientY)))return}Bs.V.Vb.call(this,a)};f.kd=function(a){return a.b==this.Gh&&this.Uc(a)?!0:Bs.V.kd.call(this,a)};f.aj=function(){return this.Gh};pk("goog-menuitem",function(){return new Bs(null)});
Bs.prototype.Ld=function(){return lk(this,16)?"menuitemcheckbox":lk(this,8)?"menuitemradio":Bs.V.Ld.call(this)};Bs.prototype.vc=function(){return sk.prototype.vc.call(this)};Bs.prototype.ue=function(){return sk.prototype.ue.call(this)};function Cs(){}y(Cs,ck);qa(Cs);Cs.prototype.Jb=function(a){return a.g.Ja("DIV",this.Ba())};Cs.prototype.Ua=function(a,b){b.id&&Lj(a,b.id);if("HR"==b.tagName){var c=b;b=this.Jb(a);c.parentNode&&c.parentNode.insertBefore(b,c);K(c)}else A(b,this.Ba());return b};Cs.prototype.Nd=function(){};Cs.prototype.Ba=function(){return"goog-menuseparator"};function Ds(a,b){sk.call(this,null,a||Cs.Qa(),b);this.Wa(1,!1);this.Wa(2,!1);this.Wa(4,!1);this.Wa(32,!1);this.yc=1}y(Ds,sk);Ds.prototype.La=function(){Ds.V.La.call(this);xi(this.S(),"separator")};pk("goog-menuseparator",function(){return new Ds});function Es(a){this.b=a||"menu"}y(Es,ds);qa(Es);Es.prototype.Lf=function(a){return"UL"==a.tagName||Es.V.Lf.call(this,a)};Es.prototype.Id=function(a){return"HR"==a.tagName?new Ds:Es.V.Id.call(this,a)};Es.prototype.hd=function(){return"goog-menu"};Es.prototype.Mf=function(a){Es.V.Mf.call(this,a);yi(a.S(),"haspopup","true")};pk("goog-menuseparator",function(){return new Ds});function Fs(a,b){js.call(this,"vertical",b||Es.Qa(),a);ss(this,!1)}y(Fs,js);f=Fs.prototype;f.le=!0;function Gs(a,b){if(Jd(a.S(),b))return!0;for(var c=0,d=Rj(a);c<d;c++){var e=Sj(a,c);if("function"==typeof e.Rf&&e.Rf(b))return!0}return!1}f.Eb=function(a){W(this,a,!0)};f.ke=function(a,b){this.Cd(a,b,!0)};f.Jd=function(){var a=[];Qj(this,function(b){a.push(b)});return a};
f.setPosition=function(a,b){var c=this.Aa();c||O(this.S(),!0);var d=this.S(),e=a,g=b,h=cf(d);e instanceof C&&(g=e.y,e=e.x);We(d,d.offsetLeft+(e-h.x),d.offsetTop+(Number(g)-h.y));c||O(this.S(),!1)};f.getPosition=function(){return this.Aa()?cf(this.S()):null};f.setVisible=function(a,b,c){(b=Fs.V.setVisible.call(this,a,b))&&a&&this.Fa&&this.le&&ks(this).focus();a&&c&&u(c.clientX)?this.j=new C(c.clientX,c.clientY):this.j=null;return b};
f.Wf=function(a){this.le&&ks(this).focus();return Fs.V.Wf.call(this,a)};f.Rg=function(a){return a.isEnabled()&&a.Aa()&&lk(a,2)};f.Fb=function(a){for(var b=this.wc,c=od(this.g.b,"DIV",b.hd()+"-content",a),d=c.length,e=0;e<d;e++)hs(b,this,c[e]);Fs.V.Fb.call(this,a)};f.Nf=function(a){var b=Fs.V.Nf.call(this,a);b||Qj(this,function(c){!b&&c.aj&&c.Gh==a.b&&(this.isEnabled()&&this.Ec(Uj(this,c)),b=c.Kb(a))},this);return b};f.Ec=function(a){Fs.V.Ec.call(this,a);(a=Sj(this,a))&&df(a.S(),this.S())};function Hs(a,b){Fs.call(this,a,b);this.le=!0;ss(this,!0);this.setVisible(!1,!0);this.b=new Cg}y(Hs,Fs);f=Hs.prototype;f.pk=0;f.Fb=function(a){Hs.V.Fb.call(this,a);if(a=a.getAttribute("for")||a.htmlFor){a=this.g.S(a);var b;a?(b=wa(a),b=Eg(this.b.g,b)):b=!1;b||(a?(b={qa:a,xi:1,tk:void 0,Zg:"mousedown",ng:void 0},this.b.set(wa(a),b)):b=null,this.Fa&&this.Mg(b),a=w(this.Rk,a),this.S()&&Mj(this).listen(this.S(),"keydown",a))}};
f.La=function(){Hs.V.La.call(this);this.b.forEach(this.Mg,this);var a=Mj(this);a.listen(this,"action",this.Mk);a.listen(this.g.b,"mousedown",this.Nk,!0)};f.Rk=function(a,b){if(27==b.b)a.focus();else{var c=Sj(this,this.Ya);if(c){var c=c.S(),d=new ge(b.i,c);d.target=c;if(32==b.b||13==b.b)ke(c)?Bf(c,"keydown",!1,d):Ee(c,"keydown",!1,d);32==b.b&&Is(this)}}};f.Mg=function(a){Mj(this).listen(a.qa,a.Zg,this.Vk);"contextmenu"!=a.Zg&&Mj(this).listen(a.qa,"keydown",this.Wk)};
function Js(a,b,c,d){var e=a.Aa();a.Aa()||Ca();a.dispatchEvent("beforeshow")&&(c="undefined"!=typeof c?c:8,e||(a.S().style.visibility="hidden"),O(a.S(),!0),b.Bb(a.S(),c,d),e||(a.S().style.visibility="visible"),a.Ec(-1),a.setVisible(!0))}function Is(a){a.Aa()&&(a.setVisible(!1),a.Aa()||(a.pk=Ca()))}f.Mk=function(){Is(this)};f.Vk=function(a){Ks(this,a)};f.Wk=function(a){32!=a.b&&13!=a.b&&40!=a.b||Ks(this,a);40==a.b&&os(this)};
function Ks(a,b){for(var c=a.b.yb(),d=0;d<c.length;d++){var e=a.b.get(c[d]);if(e.qa==b.j){c=a;d=m(e.xi)?new Wl(e.qa,e.xi,!0):new Tp(b.clientX,b.clientY);d.i&&d.i(5);Js(c,d,e.tk,e.ng);b.preventDefault();b.g();break}}}f.Nk=function(a){this.Aa()&&!Gs(this,a.target)&&Is(this)};f.we=function(a){Hs.V.we.call(this,a);Is(this)};f.ma=function(){Hs.V.ma.call(this);this.b&&(this.b.clear(),delete this.b)};function Ls(a,b,c){Bs.call(this,a,b,c);this.Wa(16,!0)}y(Ls,Bs);pk("goog-checkbox-menuitem",function(){return new Ls(null)});function Ms(a){Ls.call(this,Va(a.yd),a.getId());this.b=a}y(Ms,Ls);Ms.prototype.Fb=function(a){Ms.V.Fb.call(this,a);if(this.b.g){var b=(a=1==this.b.g)?"Public bookshelf":"Private bookshelf";a=I("IMG",{src:"/googlebooks/images/sharing_"+(a?"public":"private")+".gif",alt:b,title:b,style:"padding-top:2px;padding-left:8px;float:"+(Nm()?"left":"right")});a=I("DIV","goog-menuitem-accel",a,Bd(String(this.b.U)));b=this.dd();b.insertBefore(a,b.childNodes[1]||null)}};function Ns(a,b){Hs.call(this);this.i=a;this.U=b}y(Ns,Hs);f=Ns.prototype;f.Ub=function(){Ns.V.Ub.call(this);var a;a=this.U;a=Bb(a.i,a.g);z(a,this.Gi,this)};f.La=function(){Ns.V.La.call(this);this.S().style.maxHeight="200px";this.S().style.overflowY="scroll";var a=Mj(this);a.listen(this.S(),"mouseout",this.Ek);a.listen(this.S(),"scroll",this.Vj)};f.Ek=function(a){Jd(this.S(),a.relatedTarget)||this.setVisible(!1)};
f.Hj=function(a){var b=a.target,c=b.b,d=this.i.dc();X(b,16)?!tm(c,d)&&null!=c.i&&c.o&&(b=c.i.clone(),c=v(c.Ii,c,d,r),T(b,"id",d),im(b,c,"POST")):tm(c,d)&&null!=c.j&&c.R&&(b=c.j.clone(),c=v(c.Si,c,d,r),T(b,"id",d),im(b,c,"POST"));this.dispatchEvent("g");a.g()};f.Vj=function(a){a.g()};f.Gi=function(a){var b=!Ja($a(a.yd)),c=a.o&&(!a.s||this.i.i),d=!!tm(a,this.i.dc());b&&(c||d)&&(b=new Ms(a),b.Dc(d),b.Ma(this.U.j!=a.getId()),W(this,b,!0),Mj(this).listen(b,"action",this.Hj))};
function Os(a){var b=[];Qj(a,function(a){a instanceof Ms&&X(a,16)&&b.push(a.b)});return b};function Ps(a,b,c){Y.call(this,null,null,c?5:0);this.b=new Ns(a,b);this.b.Vc(this);ae(this,this.b);this.va=new Image(16,16);this.va.src="/googlebooks/images/my_library_logo.png";this.Wa(64,!0)}y(Ps,Y);f=Ps.prototype;f.di=null;f.Ub=function(){Ps.V.Ub.call(this);A(this.S(),"add-to-library")};
function Qs(a){a.b.Fa||a.b.render();var b=Os(a.b),c;switch(b.length){case 0:c="Add to my library";break;case 1:c="Added to "+b[0].yd;break;default:c="Added to "+(b.length+" shelves")}0<b.length&&(c=ul(a.va,c));b=c;a.i.Nd(a.S(),b);a.Pc=b}f.Sa=function(a){this.wf();Ps.V.Sa.call(this,a);this.b.Fa||this.b.render();a?Js(this.b,new cs(this.S(),8,!0),void 0,null):Is(this.b)};
f.La=function(){Ps.V.La.call(this);var a=Mj(this);a.listen(this,"enter",this.wl);a.listen(this,"leave",this.wf);a.listen(this,"action",this.Fk);a.listen(this.b,"g",this.Oj);Qs(this)};f.Oj=function(){Qs(this)};f.Fk=function(){this.Sa(!0)};f.wl=function(){this.wf();this.di=R(v(this.Sa,this,!0),200)};f.wf=function(){l.clearTimeout(this.di)};function Rs(a,b,c,d){this.Oh=a||256;this.Nh=b||256;this.g=c||3;this.i=d||3;this.b=null}function Ss(a,b){a.b=b}Rs.prototype.getTileUrl=function(a,b,c,d,e){var g=this.g,h=this.i;b=Math.ceil(b/this.Oh);c=Math.ceil(c/this.Nh);var k=Math.floor(e/g),n=Math.floor(d/h),p=g*b*k;e-=k*g;g=Math.min(g,c-k*g);p+=g*h*n;d-=n*h;h=Math.min(h,b-n*h);d=p+(e*h+d);a=new S(a);T(a,"tid",d);this.b&&(a=this.b(a,d));return a.toString()};function Ts(){};function Us(a){this.b=a.Url}Us.prototype.getUrl=function(){return this.b};function Vs(a){this.yd=a.Title;this.b=a.Pid;this.Yk=a.PgNum}Vs.prototype.getId=function(){return this.b};function Ws(a){this.yd=a.title||"";this.$g=!!a.fullview;this.Ig=a.table_of_contents_page_id||"";this.vk=a.num_toc_pages||"";this.g=a.initial_zoom_width_override;this.sk=a.max_resolution_image_width;this.Zk=!!a.paired_thumbnails;this.Al=a.thumbnail_token||"";this.R=a.containing_bookshelves||[];this.Na=a.volume_id||"";this.ta=a.other_issues_query||"";this.ka=!!a.is_browsable;this.Qb=!!a.is_public_domain;a.last_page&&(this.Eh=new kp(a.last_page));this.b=new D(a.page_width,a.page_height);this.i=a.is_ebook||
!1;var b=a.additional_info,c={};b&&(c=b["[JsonBookInfo]"]);c.BuyLinks&&hb(c.BuyLinks,function(a){return new Us(a)},this);c.TocLine&&(this.og=hb(c.TocLine,function(a){return new Vs(a)}));c=null;b&&(c=b["[NewspaperJSONVolumeInfo]"]);this.ff=null==c?null:new Rs(c.tile_h,c.tile_w,c.x_win,c.y_win);this.Ga=a.sample_url||"";this.rb=a.is_newspaper||!1;(this.j=a.newspaper_tile_base_url)&&this.ff&&Ss(this.ff,v(this.va,this));this.ra=c?c.res_h:Xs;this.qg=this.rb?"fixed_height":"fixed_width";this.Rb=a.is_pre_order||
!1;this.Qe=a.on_sale_date||"";this.De=a.volumeresult&&a.volumeresult.has_flowing_text;this.Ee=a.volumeresult&&a.volumeresult.has_scanned_text;this.s=a.volumeresult&&a.volumeresult.can_download_pdf;this.o=a.volumeresult&&a.volumeresult.can_download_epub;this.ha=a.volumeresult?a.volumeresult.download_pdf_url:"";this.U=a.volumeresult?a.volumeresult.download_epub_url:""}y(Ws,Ts);Ws.prototype.dc=function(){return this.Na};var Xs=[350,410,495,575,685,800,910,1025];Ws.prototype.tc=function(){return this.ra};
Ws.prototype.va=function(a){a=a.toString();var b=a.indexOf("?");0<=b&&(a=this.j+a.substring(b));return new S(a)};function Ys(a){vm.call(this);a&&a.bookshelf&&z(a.bookshelf,function(a){a=new um(a);xm(this,a.getId())||(a.ha?this.i:this.g).push(a)},this)}y(Ys,vm);function Zs(a,b){var c=new Ys(b);a&&z(a,function(a){$s(a.dc(),a.R,c)});return c}function $s(a,b,c){z(b,function(b){var d=new nj;d.b.volumeId=a;(b=xm(c,String(b)))&&b.addVolume(d)})};function at(a,b){Ij.call(this,b);this.b=a}y(at,Ij);at.prototype.i="info";at.prototype.j=!1;var bt={info:"jfk-butterBar-info",error:"jfk-butterBar-error",warning:"jfk-butterBar-warning",promo:"jfk-butterBar-promo"};at.prototype.Aa=function(){var a=this.S();return!!a&&Eb(a,"jfk-butterBar-shown")};at.prototype.setVisible=function(a){Ib(this.S(),"jfk-butterBar-shown",a)};
at.prototype.Ub=function(){this.qa=this.g.Ja("DIV","jfk-butterBar");var a=this.S();a&&(yi(a,"live","assertive"),yi(a,"atomic","true"));this.b=this.b;if(a=this.S()){var b=this.g;b.hh(a);b.fh(a,this.b)}this.j=this.j;(a=this.S())&&Ib(a,"jfk-butterBar-mini",this.j);a=this.i;if(this.dd()){var b=this.S(),c=bt[a];Gb(b,bt[this.i]);A(b,c)}this.i=a};function ct(a,b){Q.call(this);this.Zb=J("div");a.appendChild(this.Zb);M(this.Zb,{position:"absolute",backgroundColor:"#b2c4e9",width:"100%",height:"5px",cursor:"pointer"});this.b=new dt(this.Zb,b);L(this.Zb,"click",v(this.dispatchEvent,this,"click"));L(this.b.S(),"click",v(this.dispatchEvent,this,"click"));L(this.Zb,"mouseover",v(this.g,this,!0));L(this.Zb,"mouseout",v(this.g,this,!1))}y(ct,Q);function et(a,b){M(a.Zb,{backgroundColor:b?"#ffcc00":"#b2c4e9"});a.i=b}
ct.prototype.g=function(a){this.i||M(this.Zb,{backgroundColor:a?"#ffffcc":"#b2c4e9"})};ct.prototype.ma=function(){this.b.wa();ct.V.ma.call(this)};function dt(a,b){Fh.call(this,a);this.b=a;this.Ze=200;this.Zf=500;var c=this.S();M(c,{backgroundColor:"#FFF",color:"#333",border:"1px solid #6b90da",padding:"6px",fontSize:"83%",width:"350px",cursor:"pointer"});var d=J("div");M(d,{fontWeight:"bold"});d.appendChild(Bd("Page "+b.b));c.appendChild(d);d=J("div");d.innerHTML=b.g;c.appendChild(d)}y(dt,Fh);
dt.prototype.Ud=function(a){var b=cf(this.b),c=kf(this.S());dt.V.Ud.call(this,a,new mh(b.x-c.width,Math.min(b.y,sd(window).height-c.height)))};function ft(a){V.call(this);this.g=a;this.i=this.g.ub.g;this.o={};this.R=new U;this.j=J("div");M(this.j,{backgroundColor:"#fcfcff",position:"absolute"});this.i.ka.appendChild(this.j);z(this.g.Va.tb,v(this.Qi,this));this.b.listen(this.i,"pagechange",this.yi);this.yi();this.b.listen(this.i,"resize",this.ug);this.b.listen(this.i,"viewportmodechange",this.Qh);this.i.Ea()&&this.Qh()}y(ft,V);f=ft.prototype;
f.yi=function(){this.s&&(et(this.s,!1),this.s=null);var a=this.o[this.i.ya().Ha()];a&&(this.s=a,et(a,!0))};f.Qh=function(){var a=this.i.Ea(),b=a instanceof yq;b&&this.ug();vh(this.R);this.R.listen(a,"layoutchange",v(this.ug,this));O(this.j,b)};f.ug=function(){R(v(this.Gk,this),10)};f.Gk=function(){var a=this.i.Ea();a&&a instanceof yq&&(a.ua(),a=a.i.i,N(this.j,15,a.clientHeight),We(this.j,a.clientWidth-15,0),gt(this))};
function gt(a){var b=a.i.Ea().o.Jd(function(a){return a instanceof po}),c={};z(b,function(a){c[a.ya().Ha()]=a});z(a.g.Va.tb,v(a.bl,a,c))}f.bl=function(a,b){var c=this.i.Ea().i.g.clientHeight,d=a[b.Ha()];if(d){var e=Wc?5:15;We(this.o[b.Ha()].Zb,0,Math.floor(d.ad()/c*(this.j.clientHeight-e-(Wc?30:15)))+e)}};f.Qi=function(a){var b=new ct(this.j,a);this.o[a.Ha()]=b;this.b.listen(b,"click",v(this.g.uc,this.g,a,null))};f.ma=function(){K(this.j);Jb(this.o,function(a){a.ma.call(a)});ft.V.ma.call(this)};function ht(a){V.call(this);this.ub=a;this.vi="n"}y(ht,V);ht.prototype.g=function(a,b,c){this.Va=new Or(b);b=this.ub.g;b.R||b.Db(yq);this.Va.tb.length?a?c?(a=mb(this.Va.tb,function(a){return c==a.Ha()}))?this.uc(a):this.uc(this.Va.tb[0],c):this.uc(this.Va.tb[0]):it(this):jt(this.ub.o);this.i=new ft(this)};
function it(a){var b=a.ub.g,c=b.R;if(c==yq||c==Er)a.ub.s=c;b.Db(Sr);var b=b.Ea(),c=a.ub.o,d="n"==c.g.vi;O(c.ha,d);O(c.ka,!d);c.s.innerHTML="Showing "+("<b>"+c.g.Va.tb.length+"</b>"+(" results in this book for "+("<b>"+Pr(c.g.Va)+"</b>")));kt(c,!0);c=a.Va;c!=b.Va&&(b.Va=c,c=new Rr(b.Va,b.ua().width),uo(b,c),b.Lb());a=v(a.uc,a);b.Za=a;yo(b,new C(0,0))}
ht.prototype.uc=function(a,b){Fo=!0;var c=this.ub.o;kt(c,!1);c.i=eb(c.g.Va.tb,a);c.s.innerHTML="Result "+("<b>"+(c.i+1)+"</b>"+(" of "+("<b>"+c.g.Va.tb.length+"</b>"+(" in this book for "+("<b>"+Pr(c.g.Va)+"</b>")))));var c=this.ub.g,d=Rn(c.Da,a.Ha());if(!d)return null;var e=c.Ea();e instanceof yq||e instanceof Er||(this.ub.s==Er?c.Db(Er):c.Db(yq));if(b)return $n(c,b),null;a:{if((e=c.s.Ea().o)&&e.Mc&&(e=e.Mc(d))){var g=new C(40,80),h=c.Ra.Ab();if(!h)break a;var k=fo(d,h);if(k){go(c,e,g,k);break a}e=
v(c.Wj,c,e,g,h);co(d,eo(d),e)}c.nb(d)}return d};ht.prototype.ma=function(){be(this.i);ht.V.ma.call(this)};function lt(){V.call(this);this.j=J("div");this.U=new at(this.j);this.U.render(mt);this.U.setVisible(!0);var a=this.U.S();a&&(Mm(a,{"text-align":"left"}),a.style.height="100%");O(this.j,!1);a=J("span");this.j.appendChild(a);Mm(a,{cursor:"pointer",margin:"0 0 0 25px",whiteSpace:"nowrap"});Nm()?yf(a,"left"):yf(a,"right");this.b.listen(a,"click",this.xh);nt(this,a,"Clear search",v(this.xh,this));var b=J("img");b.src="/googlebooks/images/close_x.gif";Mm(b,{backgroundColor:"#fff",margin:"0 6px",verticalAlign:"middle"});
a.appendChild(b);this.s=J("span");this.j.appendChild(this.s);this.R=J("span");this.j.appendChild(this.R);Mm(this.R,{marginLeft:"5px",whiteSpace:"nowrap"});this.R.innerHTML="-&nbsp;&nbsp;";this.R.appendChild(Bd("Order by: "));this.ha=J("span");this.R.appendChild(this.ha);nt(this,this.ha,"relevance",v(this.yh,this,"r"));a=J("span");a.innerHTML="&nbsp;|&nbsp;<b>pages</b>";this.ha.appendChild(a);this.ka=J("span");this.R.appendChild(this.ka);a=J("span");a.innerHTML="<b>relevance</b>&nbsp;|&nbsp;";this.ka.appendChild(a);
nt(this,this.ka,"pages",v(this.yh,this,"n"));this.o=J("span");this.j.appendChild(this.o);Mm(this.o,{marginLeft:"8px",whiteSpace:"nowrap"});this.o.innerHTML="-&nbsp;&nbsp;";nt(this,this.o,"&#8249; Previous",v(this.wh,this,-1));a=J("span");a.innerHTML="&nbsp;&nbsp;";this.o.appendChild(a);nt(this,this.o,"Next &#8250;",v(this.wh,this,1));a=J("span");a.innerHTML="&nbsp;&nbsp;-&nbsp;&nbsp;";this.o.appendChild(a);nt(this,this.o,"View all",v(this.bk,this));pf(this.j,!0)}var mt,ot,pt;y(lt,V);
function kt(a,b){O(ot,!b);O(a.R,b);O(a.o,!b&&1<a.g.Va.tb.length);O(a.j,!0);pt.b()}function qt(a){O(a.R,!1);O(a.o,!1);Ed(a.s)}
function jt(a){qt(a);var b=a.g.Va,c=b.mc.spellresults&&b.mc.spellresults.correct_spell?b.mc.spellresults.correct_spell:null;if(c){var d=J("span");d.innerHTML="Did you mean: ";nt(a,d,c,v(a.Zj,a,c));a.s.appendChild(d);a.s.appendChild(J("br"))}c=J("span");c.innerHTML=La("No results found in this book for "+Pr(b))+"&nbsp;&nbsp;-&nbsp;&nbsp;";a.s.appendChild(c);b=J("a");a.s.appendChild(b);b.innerHTML="Search all books &raquo;";c="patents"==kj()?new S("https://www.google.com/search?tbm=pts&tbo=p&hl=en"):
new S("https://www.google.com/search?tbm=bks&tbo=p");Am(c);T(c,"q",Va(Pr(a.g.Va)));b.href=c.toString();O(a.j,!0);pt.b()}f=lt.prototype;f.ma=function(){lt.V.ma.call(this);be(this.U);O(ot,!0);K(this.j);pt.b()};function nt(a,b,c,d){var e=J("span");M(e,{textDecoration:"underline",color:"#0000cc",cursor:"pointer"});b.appendChild(e);e.innerHTML=c;a.b.listen(e,"click",d)}f.xh=function(){this.g.ub.g.Ra.j("");this.g.ub.U.update()};f.wh=function(a){rt(this,this.i,a)};
function rt(a,b,c){var d=a.g.Va.tb.length;a.i+=c;a.i>=d&&(a.i=0);0>a.i&&(a.i=d-1);a.i!=b&&(a.g.uc(a.g.Va.tb[a.i])||rt(a,b,c))}f.yh=function(a){this.g.ub.update(a)};f.bk=function(){it(this.g)};f.Zj=function(a){this.g.ub.j(Va(a))};function st(a,b,c){V.call(this);this.g=a;this.R=b;this.U=c;this.b.listen(a.Ra,"change",v(this.update,this,"r",null))}y(st,V);
st.prototype.update=function(a,b,c){this.i?(this.i.wa(),this.i=null):(this.g.R&&(this.s=this.g.R),this.o=new lt);var d=this.g.Ra.Ab();b&&!b.search_query_escaped&&0<b.number_of_results&&d&&(b.search_query_escaped=d);b&&b.search_query_escaped?(this.i=new ht(this),this.o.g=this.i,a=!ah(new S(window.location.toString()),"q"),this.i.g(a,b,c)):d?(this.i=new ht(this),b=this.o.g=this.i,c=b.ub.o,qt(c),c.s.innerHTML="Loading...",c=new S(window.location.href),T(c,"jscmd","SearchWithinVolume"),T(c,"q",d),T(c,
"scoring",a),(new Kp(c)).Pe(v(b.g,b,!1)),b.vi=a,Nq(this.R,d)):(this.i&&(this.i.wa(),this.i=null),this.g.Ea()instanceof Sr&&this.g.Db(this.s),this.o&&(this.o.wa(),this.o=null),Nq(this.R,""))};st.prototype.j=function(a){this.g.Ra.j(a);Nq(this.R,a)};function tt(a,b){var c=G(a),d=G(b);c&&d&&L(c,"submit",w(ut,d))}function ut(a,b){""==a.value&&b.preventDefault()};function vt(a,b,c){Q.call(this);this.target=a;this.o=b||a;this.R=c||new Me(NaN,NaN,NaN,NaN);this.i=md(a);this.b=new U(this);ae(this,this.b);this.deltaY=this.deltaX=this.ha=this.U=this.screenY=this.screenX=this.clientY=this.clientX=0;this.j=!0;this.g=!1;L(this.o,["touchstart","mousedown"],this.wi,!1,this)}y(vt,Q);var wt=l.document&&l.document.documentElement&&!!l.document.documentElement.setCapture&&!!l.document.releaseCapture;f=vt.prototype;f.Ma=function(a){this.j=a};
f.ma=function(){vt.V.ma.call(this);Ce(this.o,["touchstart","mousedown"],this.wi,!1,this);vh(this.b);wt&&this.i.releaseCapture();this.o=this.target=null};
f.wi=function(a){var b="mousedown"==a.type;if(!this.j||this.g||b&&!ie(a))this.dispatchEvent("earlycancel");else if(this.dispatchEvent(new xt("start",this,a.clientX,a.clientY))){this.g=!0;b&&a.preventDefault();var b=this.i,c=b.documentElement,d=!wt;this.b.listen(b,["touchmove","mousemove"],this.Qj,d);this.b.listen(b,["touchend","mouseup"],this.re,d);wt?(c.setCapture(!1),this.b.listen(c,"losecapture",this.re)):this.b.listen(xd(b),"blur",this.re);this.ka&&this.b.listen(this.ka,"scroll",this.Tk,d);this.clientX=
this.U=a.clientX;this.clientY=this.ha=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;this.deltaX=this.target.offsetLeft;this.deltaY=this.target.offsetTop;this.s=ud(kd(this.i).b)}};f.re=function(a){vh(this.b);wt&&this.i.releaseCapture();this.g?(this.g=!1,this.dispatchEvent(new xt("end",this,a.clientX,a.clientY,0,yt(this,this.deltaX),zt(this,this.deltaY)))):this.dispatchEvent("earlycancel")};
f.Qj=function(a){if(this.j){var b=1*(a.clientX-this.clientX),c=a.clientY-this.clientY;this.clientX=a.clientX;this.clientY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;if(!this.g){var d=this.U-this.clientX,e=this.ha-this.clientY;if(0<d*d+e*e)if(this.dispatchEvent(new xt("start",this,a.clientX,a.clientY)))this.g=!0;else{this.isDisposed()||this.re(a);return}}c=At(this,b,c);b=c.x;c=c.y;this.g&&this.dispatchEvent(new xt("beforedrag",this,a.clientX,a.clientY,0,b,c))&&(Bt(this,a,b,c),a.preventDefault())}};
function At(a,b,c){var d=ud(kd(a.i).b);b+=d.x-a.s.x;c+=d.y-a.s.y;a.s=d;a.deltaX+=b;a.deltaY+=c;return new C(yt(a,a.deltaX),zt(a,a.deltaY))}f.Tk=function(a){var b=At(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;Bt(this,a,b.x,b.y)};function Bt(a,b,c,d){a.Ug(c,d);a.dispatchEvent(new xt("drag",a,b.clientX,b.clientY,0,c,d))}function yt(a,b){var c=a.R,d=isNaN(c.left)?null:c.left,c=isNaN(c.width)?0:c.width;return Math.min(null!=d?d+c:Infinity,Math.max(null!=d?d:-Infinity,b))}
function zt(a,b){var c=a.R,d=isNaN(c.top)?null:c.top,c=isNaN(c.height)?0:c.height;return Math.min(null!=d?d+c:Infinity,Math.max(null!=d?d:-Infinity,b))}f.Ug=function(a,b){this.target.style.left=a+"px";this.target.style.top=b+"px"};function xt(a,b,c,d,e,g,h){ce.call(this,a);this.clientX=c;this.clientY=d;this.left=m(g)?g:b.deltaX;this.top=m(h)?h:b.deltaY}y(xt,ce);function Ct(a,b,c){if(Tc&&!Xc)return a;a='url("'+b+'")';Uc&&(a+=" 7 5");return a+(", "+c)};function Dt(a){V.call(this);this.g=a;this.i=new U;this.b.listen(a,"viewportmodechange",this.Rh);this.g.Ea()&&this.Rh()}y(Dt,V);f=Dt.prototype;f.Rh=function(){vh(this.i);this.j&&this.j.wa();this.o=this.g.Ea().i.j;var a=new vt(this.o);a.Ug=r;this.j=a;this.i.listen(this.o,"dblclick",v(this.wj,this));this.i.listen(a,"start",v(this.Aj,this));this.i.listen(a,"drag",v(this.Bj,this));this.i.listen(a,"end",v(this.zj,this));Et(this,!1)};f.wj=function(){this.g.Cc("next")};
function Et(a,b){var c=a.o,d;d=Tc?b?"-moz-grabbing":"-moz-grab":b?Ct("-moz-grabbing","/googlebooks/images/closedhand.cur","move"):Ct("-moz-grab","/googlebooks/images/openhand.cur","default");M(c,"cursor",d)}f.Aj=function(){this.s=this.g.Ea().s;Et(this,!0)};f.Bj=function(){var a=this.j,b=this.s;yo(this.g.Ea(),new C(b.x-a.deltaX,b.y-a.deltaY))};f.zj=function(){this.s=null;Et(this,!1)};function Ft(a){this.s=a;this.ha=new Bi(document);this.j={};this.R={};L(this.ha,"key",v(this.U,this));Gt(this,33,v(this.o,this,-1),!1,!0);Gt(this,34,v(this.o,this,1),!1,!0);Gt(this,38,v(this.b,this,0,-Ft.prototype.g),!1,!0);Gt(this,40,v(this.b,this,0,Ft.prototype.g),!1,!0);Gt(this,37,v(this.b,this,-Ft.prototype.g,0),!1,!0);Gt(this,39,v(this.b,this,Ft.prototype.g,0),!1,!0);Gt(this,32,v(this.o,this,1),!0,!0);Gt(this,74,v(this.i,this,"next"),!0);Gt(this,75,v(this.i,this,"previous"),!0);a=v(this.i,this,
"zoomin");this.j["+"]=w(Ht,a,!0,void 0);a=v(this.i,this,"zoomout");this.j["-"]=w(Ht,a,!0,void 0)}function Gt(a,b,c,d,e){a.R[b]=w(Ht,c,d,e)}Ft.prototype.U=function(a){var b=this.j[String.fromCharCode(a.s)]||this.R[a.b];b&&b(a)};function Ht(a,b,c,d){b&&d.repeat||d.ctrlKey||d.altKey||d.metaKey||It[d.target.tagName.toUpperCase()]||(c&&d.preventDefault(),a())}var It={BUTTON:!0,INPUT:!0,SELECT:!0,TEXTAREA:!0};Ft.prototype.i=function(a){this.s.Cc(a)};
Ft.prototype.o=function(a){a=Math.floor(a*this.s.Ea().ua().height*.75);this.b(0,a)};Ft.prototype.b=function(a,b){var c=this.s.Ea();Ao(c,new C(a,b),v(c.Sc,c))};Ft.prototype.g=20;function Jt(){}y(Jt,nk);qa(Jt);f=Jt.prototype;f.Jb=function(a){var b={"class":"goog-inline-block "+fk(this,a).join(" ")},b=a.g.Ja("DIV",b,a.getContent());ok(b,a.U);return b};f.jd=function(){return"button"};f.ye=function(a){return"DIV"==a.tagName};f.Ua=function(a,b){A(b,"goog-inline-block");return Jt.V.Ua.call(this,a,b)};f.ab=function(){return""};f.Ba=function(){return"goog-flat-button"};pk("goog-flat-button",function(){return new Gk(null,Jt.Qa())});function Kt(){}y(Kt,nk);qa(Kt);f=Kt.prototype;f.Jb=function(a){var b={"class":"goog-inline-block "+fk(this,a).join(" ")},b=a.g.Ja("DIV",b,this.qe(a.getContent(),a.g));ok(b,a.U);return b};f.jd=function(){return"button"};f.Pb=function(a){return a&&a.firstChild&&a.firstChild.firstChild};f.qe=function(a,b){return b.Ja("DIV","goog-inline-block "+(this.Ba()+"-outer-box"),b.Ja("DIV","goog-inline-block "+(this.Ba()+"-inner-box"),a))};f.ye=function(a){return"DIV"==a.tagName};
f.Ua=function(a,b){Lt(b,!0);Lt(b,!1);var c;a:{c=a.g.dh(b);var d=this.Ba()+"-outer-box";if(c&&Eb(c,d)&&(c=a.g.dh(c),d=this.Ba()+"-inner-box",c&&Eb(c,d))){c=!0;break a}c=!1}c||b.appendChild(this.qe(b.childNodes,a.g));Fb(b,["goog-inline-block",this.Ba()]);return Kt.V.Ua.call(this,a,b)};f.Ba=function(){return"goog-custom-button"};
function Lt(a,b){if(a)for(var c=b?a.firstChild:a.lastChild,d;c&&c.parentNode==a;){d=b?c.nextSibling:c.previousSibling;if(3==c.nodeType){var e=c.nodeValue;if(""==La(e))a.removeChild(c);else{c.nodeValue=b?e.replace(/^[\s\xa0]+/,""):e.replace(/[\s\xa0]+$/,"");break}}else break;c=d}};function Mt(){}y(Mt,Kt);qa(Mt);Mt.prototype.Pb=function(a){return Mt.V.Pb.call(this,a&&a.firstChild)};Mt.prototype.Ua=function(a,b){var c=od(document,"*","goog-menu",b)[0];if(c){O(c,!1);md(c).body.appendChild(c);var d=new Fs;Pj(d,c);Nt(a,d)}return Mt.V.Ua.call(this,a,b)};Mt.prototype.qe=function(a,b){return Mt.V.qe.call(this,[b.Ja("DIV","goog-inline-block "+(this.Ba()+"-caption"),a),b.Ja("DIV","goog-inline-block "+(this.Ba()+"-dropdown"),"\u00a0")],b)};Mt.prototype.Ba=function(){return"goog-menu-button"};function Ot(a,b,c,d,e){Gk.call(this,a,c||Mt.Qa(),d);this.Wa(64,!0);this.ta=new cs(null,9);b&&Nt(this,b);this.j=new hg(500);!Ji&&!Ki||F("533.17.9")||(this.Je=!0);this.Ic=e||Es.Qa()}y(Ot,Gk);f=Ot.prototype;f.Je=!1;f.La=function(){Ot.V.La.call(this);Pt(this,!0);this.b&&Qt(this,this.b,!0);yi(this.qa,"haspopup",!!this.b)};f.Gb=function(){Ot.V.Gb.call(this);Pt(this,!1);if(this.b){this.Sa(!1);this.b.Gb();Qt(this,this.b,!1);var a=this.b.S();a&&K(a)}};
f.ma=function(){Ot.V.ma.call(this);this.b&&(this.b.wa(),delete this.b);delete this.Bd;this.j.wa()};f.xc=function(a){Ot.V.xc.call(this,a);X(this,4)&&(this.Sa(!X(this,64),a),this.b&&(this.b.Wb=X(this,64)))};f.Vb=function(a){Ot.V.Vb.call(this,a);this.b&&!X(this,4)&&(this.b.Wb=!1)};f.Uc=function(){zk(this,!1);return!0};f.xj=function(a){this.b&&this.b.Aa()&&!this.Rf(a.target)&&this.Sa(!1)};f.Rf=function(a){return a&&Jd(this.S(),a)||this.b&&Gs(this.b,a)||!1};
f.kd=function(a){if(32==a.b){if(a.preventDefault(),"keyup"!=a.type)return!0}else if("key"!=a.type)return!1;if(this.b&&this.b.Aa()){var b=13==a.b||32==a.b,c=this.b.Kb(a);return 27==a.b||b?(this.Sa(!1),!0):c}return 40==a.b||38==a.b||32==a.b||13==a.b?(this.Sa(!0,a),!0):!1};f.Mj=function(){this.Sa(!1)};f.Nj=function(){X(this,4)||this.Sa(!1)};f.ze=function(a){this.Je||this.Sa(!1);Ot.V.ze.call(this,a)};function Rt(a){a.b||Nt(a,new Fs(a.g,a.Ic));return a.b||null}
function Nt(a,b){var c=a.b;b!=c&&(c&&(a.Sa(!1),a.Fa&&Qt(a,c,!1),delete a.b),a.Fa&&yi(a.qa,"haspopup",!!b),b&&(a.b=b,b.Vc(a),b.setVisible(!1),c=a.Je,(b.le=c)&&ss(b,!0),a.Fa&&Qt(a,b,!0)))}f.Eb=function(a){W(Rt(this),a,!0)};f.ke=function(a,b){Rt(this).Cd(a,b,!0)};f.setVisible=function(a,b){var c=Ot.V.setVisible.call(this,a,b);c&&!this.Aa()&&this.Sa(!1);return c};f.Ma=function(a){Ot.V.Ma.call(this,a);this.isEnabled()||this.Sa(!1)};
f.Sa=function(a,b){Ot.V.Sa.call(this,a);if(this.b&&X(this,64)==a){if(a)this.b.Fa||this.b.render(),this.wb=bf(this.S()),this.lb=lf(this.S()),St(this),!b||40!=b.b&&38!=b.b?this.b.Ec(-1):os(this.b);else{zk(this,!1);this.b.Wb=!1;var c=this.S();c&&(yi(c,"activedescendant",""),yi(c,"owns",""));this.va&&(this.va=void 0,(c=this.b.S())&&N(c,"",""))}this.b.setVisible(a,!1,b);if(!this.isDisposed()){var c=Mj(this),d=a?c.listen:c.Ta;d.call(c,this.g.b,"mousedown",this.xj,!0);this.Je&&d.call(c,this.b,"blur",this.Nj);
d.call(c,this.j,"tick",this.oj);a?this.j.start():this.j.stop()}}this.b&&this.b.S()&&this.b.qa.removeAttribute("aria-hidden")};function St(a){if(a.b.Fa){var b=a.ta;a.ta.element=a.Bd||a.S();var c=a.b.S();a.b.Aa()||(c.style.visibility="hidden",O(c,!0));!a.va&&a.ta.o&&a.ta.g&32&&(a.va=kf(c));b.Bb(c,b.b^1,null,a.va);a.b.Aa()||(O(c,!1),c.style.visibility="visible")}}
f.oj=function(){var a=lf(this.S()),b=bf(this.S()),c;c=this.lb;(c=!(c==a||c&&a&&c.left==a.left&&c.width==a.width&&c.top==a.top&&c.height==a.height))||(c=this.wb,c=!(c==b||c&&b&&c.top==b.top&&c.right==b.right&&c.bottom==b.bottom&&c.left==b.left));c&&(this.lb=a,this.wb=b,St(this))};function Qt(a,b,c){var d=Mj(a);c=c?d.listen:d.Ta;c.call(d,b,"action",a.Mj);c.call(d,b,"close",a.lj);c.call(d,b,"highlight",a.mj);c.call(d,b,"unhighlight",a.nj)}
function Pt(a,b){var c=Mj(a);(b?c.listen:c.Ta).call(c,a.S(),"keydown",a.Ij)}f.mj=function(a){(a=a.target.S())&&Tt(this,a)};f.Ij=function(a){lk(this,32)&&this.S()&&this.b&&this.b.Aa()&&a.g()};f.nj=function(){if(!ns(this.b)){var a=this.S();yi(a,"activedescendant","");yi(a,"owns","")}};f.lj=function(a){if(X(this,64)&&a.target instanceof Bs){a=a.target;var b=a.S();a.Aa()&&X(a,2)&&b&&Tt(this,b)}};function Tt(a,b){var c=a.S(),d=zi(b)||b;if(!d.id){var e=Ri.Qa();d.id=Si(e)}Ai(c,d);yi(c,"owns",d.id)}
pk("goog-menu-button",function(){return new Ot(null)});function Ut(){}y(Ut,Jt);qa(Ut);Ut.prototype.Jb=function(a){var b={"class":"goog-inline-block "+fk(this,a).join(" ")},b=a.g.Ja("DIV",b,[Vt(this,a.getContent(),a.g),Wt(this,a.g)]);ok(b,a.U);return b};Ut.prototype.Pb=function(a){return a&&a.firstChild};
Ut.prototype.Ua=function(a,b){var c=od(document,"*","goog-menu",b)[0];if(c){O(c,!1);a.g.b.body.appendChild(c);var d=new Fs;Pj(d,c);Nt(a,d)}od(document,"*",this.Ba()+"-caption",b)[0]||b.appendChild(Vt(this,b.childNodes,a.g));od(document,"*",this.Ba()+"-dropdown",b)[0]||b.appendChild(Wt(this,a.g));return Ut.V.Ua.call(this,a,b)};function Vt(a,b,c){return c.Ja("DIV","goog-inline-block "+(a.Ba()+"-caption"),b)}
function Wt(a,b){return b.Ja("DIV",{"class":"goog-inline-block "+(a.Ba()+"-dropdown"),"aria-hidden":!0},"\u00a0")}Ut.prototype.Ba=function(){return"goog-flat-menu-button"};pk("goog-flat-menu-button",function(){return new Ot(null,null,Ut.Qa())});function Xt(a){V.call(this);this.ha=a;this.g=null}y(Xt,V);f=Xt.prototype;
f.render=function(a,b){this.s=a;var c=a.S(),d=cf(c).y,e=kf(c),d=d+e.height+3,e="";b&&(e=cf(c).x);this.g=I("DIV",{"class":"linkbar-panel-div"});We(this.g,e,d);this.U=I("DIV",{"class":"SPRITE_close_v2 linkbar-panel-close"});this.g.appendChild(this.U);Tc&&Wc&&!F("1.9")&&(this.o=I("IFRAME",{style:"position: absolute;",Pl:"0"}),this.ha.appendChild(this.o));this.ha.appendChild(this.g);this.o&&(N(this.o,kf(this.g)),We(this.o,Ye(this.g)));R(v(this.Eg,this))};
f.Eg=function(){this.b.listen(this.U,"click",this.wa);this.b.listen(this.s,"action",this.yk);this.b.listen(document,"mousedown",this.Ti)};f.yk=function(){X(this.s,16)||this.wa()};f.Ti=function(a){Jd(this.g,a.target)||Jd(this.s.S(),a.target)||this.wa()};f.ma=function(){Xt.V.ma.call(this);K(this.g);K(this.o)};f.S=function(){return this.g};function Yt(a,b,c){Xt.call(this,a);this.ka=b;this.R=c}y(Yt,Xt);
Yt.prototype.render=function(a,b){Yt.V.render.call(this,a,b);var c=I("DIV",{innerHTML:"Paste link in <b>email</b> or <b>IM</b>",style:"padding-top:5px; font-size: 13px;"});this.S().appendChild(c);this.i=J("input");N(this.i,"100%","auto");this.S().appendChild(this.i);this.R&&(c=I("DIV",{innerHTML:"Embed",style:"font-size: 13px; padding-top: 7px;"}),this.S().appendChild(c),this.j=J("input"),N(this.j,"100%","auto"),this.S().appendChild(this.j));var c=this.ka.ya(),d;d=(new S(window.location)).g;var e=
new S(mp(c).toString());e.g=d;this.i.value=e.toString();R(w(Zt,this.i));this.R&&(c=new S(mp(c).toString()),T(c,"output","embed"),this.j.value=Ha('<iframe frameborder="0" scrolling="no" style="border:0px" src="%s" width=500 height=500></iframe>',c.toString()))};Yt.prototype.Eg=function(){Yt.V.Eg.call(this);this.b.listen(this.i,"click",w(Zt,this.i));this.R&&this.b.listen(this.j,"click",w(Zt,this.j))};function Zt(a){a.select()};function $t(a){return a.split(au).filter(function(a){return 0<a.length})}
var bu=/\s/,cu=/[ -]/,au=/[+,;]/,du=/-?"[^"]+"|[^\s"]+/g,eu=RegExp('["\\u201C\\u201D\\u201E\\u201F\\u275D\\u275E\\u301D-\\u301F\\uFF02]',"g"),fu=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,]"),gu=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 hu(a){var b={};iu(a).forEach(function(a){for(var c=b,e=0;e<a.length;e++){var g=a.charAt(e),g=fu.test(g)?"-":g;c[g]||(c[g]={});c=c[g]}c!=b&&(c.$=ju)});return b}
function iu(a){a=Ia(a.toLowerCase());var b=a.match(eu);b&&(a=a.replace(eu,'"'),b.length&1&&(a+='"'));b=a.match(du);if(!b)return[];a=new Set;for(var b=ja(b),c=b.next();!c.done;c=b.next())if(c=c.value,c.startsWith('"'))a.add(c.replace(gu,""));else if(!c.startsWith("-"))for(var c=$t(c.replace(gu,"")),c=ja(c),d=c.next();!d.done;d=c.next())a.add(d.value);a["delete"]("");return Array.from(a)}var ju={};function ku(a,b){var c=void 0,c=void 0===c?Infinity:c,d=lu,e;a:{e=[a];var g=!0,c=void 0===c?Infinity:c,g=void 0===g?!1:g,h=[],k=[],n=" ",p,q,x=0;for(q=0;q<e.length;q++)for(var H=e[q],x=0;x<H.length;x++){var P=H.charAt(x).toLowerCase();p=cu.test(n);if(bu.test(P)){if(P=" ",p)continue}else if(fu.test(P)){if(P="-",p)continue}else p&&b[P]&&k.push(new mu(q,x,b));nu(P,q,x,k,h,g);if(h.length>=c){h.length=c;e=h;break a}n=P}cu.test(n)||nu(" ",q,x,k,h,g);e=h}return d(e)}
function lu(a){return a.map(function(a){return{startOffset:a.startOffset,endOffset:a.endOffset}})}
function nu(a,b,c,d,e,g){for(var h=db(e),k=d.length-1,n;n=d[k];k--){var p,q=n;p=a;var x=b,H=c,P=!1;if(q.b)if(cu.test(p)){if(P=!!q.b.$,q.b=q.b[" "]||q.b["-"],q.b)for(;p=q.b[" "]||q.b["-"];)q.b=p}else q.endOffset=H+1,q.Gd=x,q.b=q.b[p];q.g=!q.b;if(P){q={ef:n.ef,startOffset:n.startOffset,Gd:n.Gd,endOffset:n.endOffset};if(g)for(;h&&h.startOffset<=q.endOffset&&q.startOffset<=h.endOffset;){e.pop();if(h.startOffset<q.startOffset||h.endOffset>q.endOffset)q={ef:h.ef,startOffset:h.startOffset,Gd:q.Gd,endOffset:q.endOffset};
h=db(e)}e.push(q);h=q}n.g&&rb(d,k)}}function mu(a,b,c){this.ef=a;this.startOffset=b;this.Gd=a;this.endOffset=b;this.g=!1;this.b=c};function ou(a){var b=hu(a);a=pu();z(a,function(a){qu(b,a)})}function pu(){var a=[],b=ub(nd("patent-text")),c=pd("patent-title");for(c&&b.push(c);c=b.pop();)3==c.nodeType?a.push(c):vb(b,c.childNodes);return a}function qu(a,b){var c=Td(b),d=ku(c,a);if(d.length){var e="",g=0;z(d,function(a){e+=Na(c.substring(g,a.startOffset))+'<span class="patent-text-highlight">'+Na(c.substring(a.startOffset,a.endOffset))+"</span>";g=a.endOffset});e+=Na(c.substring(g));d=J("span");d.innerHTML=e;Fd(d,b)}};function ru(){Bs.call(this,"Turn off highlighting");var a=Ng("dq")||Ng("q");a&&ou(a);this.b=!0}y(ru,Bs);ru.prototype.La=function(){ru.V.La.call(this);Mj(this).listen(this,"action",this.j)};ru.prototype.j=function(){this.b=!this.b;Ib(window.document.body,"patent-highlight-disabled",!this.b);var a=this.b?"Turn off highlighting":"Turn on highlighting";this.i.Nd(this.S(),a);this.Pc=a};function su(a){Q.call(this);this.b=[];tu(this,a)}y(su,Q);f=su.prototype;f.Yd=null;f.Tf=null;function uu(a,b){a.Tf=b}function tu(a,b){b&&(z(b,function(a){vu(this,a,!1)},a),vb(a.b,b))}f.Eb=function(a){this.ke(a,this.b.length)};f.ke=function(a,b){a&&(vu(this,a,!1),wb(this.b,b,0,a))};f.Jd=function(){return ub(this.b)};function wu(a,b){b!=a.Yd&&(vu(a,a.Yd,!1),a.Yd=b,vu(a,b,!0));a.dispatchEvent("select")}
f.clear=function(){var a=this.b;if(!sa(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0;this.Yd=null};f.ma=function(){su.V.ma.call(this);delete this.b;this.Yd=null};function vu(a,b,c){b&&("function"==typeof a.Tf?a.Tf(b,c):"function"==typeof b.Cg&&b.Cg(c))};function xu(){}y(xu,Cs);qa(xu);xu.prototype.Jb=function(a){return a.g.Ja("DIV",fk(this,a).join(" ")+" goog-inline-block","\u00a0")};xu.prototype.Ua=function(a,b){b=xu.V.Ua.call(this,a,b);A(b,"goog-inline-block");return b};xu.prototype.Ba=function(){return"goog-toolbar-separator"};function yu(){this.b="toolbar"}y(yu,ds);qa(yu);yu.prototype.Id=function(a){return"HR"==a.tagName?new Ds(xu.Qa()):yu.V.Id.call(this,a)};yu.prototype.hd=function(){return"goog-toolbar"};yu.prototype.ah=function(){return"horizontal"};function zu(a,b,c){js.call(this,b,a||yu.Qa(),c)}y(zu,js);zu.prototype.xe=function(a){zu.V.xe.call(this,a);this.Wb||os(this)};function Au(){}y(Au,Kt);qa(Au);Au.prototype.Ba=function(){return"goog-toolbar-button"};function Bu(a,b,c){Gk.call(this,a,b||Au.Qa(),c)}y(Bu,Gk);pk("goog-toolbar-button",function(){return new Bu(null)});function Cu(a,b){Ds.call(this,a||xu.Qa(),b)}y(Cu,Ds);pk("goog-toolbar-separator",function(){return new Cu});function Du(a){yu.call(this);this.g=a}y(Du,yu);var Eu={};Du.prototype.hd=function(){return this.g||"ocean-chrome-toolbar"};function Fu(a){return Eu[a]||(Eu[a]=new Du(a))};function Gu(a){zu.call(this,Fu(a||"viewport-chrome-toolbar"));this.ta={};this.i=new U(this)}y(Gu,zu);function Hu(a,b,c,d){b.Wa(16,!0);if(c){var e=a.ta[c];e||(e=new su,uu(e,function(a,b){a&&a.Dc(b)}),a.ta[c]=e);e.Eb(b);b.Jc&=-17;L(b,"action",function(a){wu(e,a.target)});d&&wu(e,b)}else b.vb(16,!!d)}function Iu(a,b){a.ta.viewport&&wu(a.ta.viewport,b)}Gu.prototype.ma=function(){Gu.V.ma.call(this);this.i.wa();Jb(this.ta,function(a){a.wa()})};function Ju(a,b){V.call(this);this.g=a;this.o=b;this.j=this.g.Ca.og;this.s=!!this.g.Ca.og;this.U=!!this.g.Ca.Ig;if(this.s){var c;a:{c=this.g.Da;for(var d=0;d<this.j.length;d++){var e=Rn(c,this.j[d].getId());if(e){var g;b:{for(g=d+1;g<this.j.length;g++){var h=Rn(this.g.Da,this.j[g].getId());if(h){g=h;break b}}g=null}g=g?Z(g)-1:Z(db(Pn(c)));h=Z(this.g.ya());if(h>=Z(e)&&h<=g){c=d;break a}}}c=-1}this.R=c}}y(Ju,V);f=Ju.prototype;
f.render=function(a){this.i=J("div");document.body.appendChild(this.i);R(v(this.ul,this));this.ha=a;if(this.s)Ku(this);else if(this.U){A(this.i,"base-image-toc-div");a=this.g.Ca.Ig;var b=Rn(this.g.Da,a);b&&Lu(this,b);1<this.g.Ca.vk&&(a=Qn(this.g.Da,a,1))&&Lu(this,a);this.Ne()}else this.wa()};f.ul=function(){this.b.listen(document,"click",this.wa);this.b.listen(this.g,"resize",this.Ne)};
function Lu(a,b){var c=new D(128,0),d=I("IMG",{width:128});A(d,"toc-page-image");a.b.listen(d,"click",v(a.g.nb,a.g,b));Tc&&Nm()&&a.b.listen(d,"load",a.Ne);b.bc(c)?a.ri(d,b,c):(c=w(a.ri,d,b,c),co(b,eo(b),c));a.i.appendChild(d)}f.ri=function(a,b,c){qd(a,{src:b.bc(c)})};
function Ku(a){var b=I("DIV",{"class":"toc-div"}),c;z(a.j,function(a,e){var d=a.getId(),d=Rn(this.g.Da,d),h=a.Yk,k=this.j[e+1]?"":"-last",n="toc-middle-cell"+k,k="toc-right-cell"+k,p=I("DIV",{"class":d?"toc-row":""}),q=J("div");A(q,"goog-inline-block");A(q,"toc-left-cell");e==this.R&&A(q,Nm()?"SPRITE_toc_selected_item_arrow_right":"SPRITE_toc_selected_item_arrow_left");var x=J("div");A(x,"goog-inline-block");A(x,n);Tc&&!F("1.9")&&M(x,"overflow","hidden");var H=J("div");A(H,"goog-inline-block");A(H,
k);var P=a.yd;35<P.length&&(P=P.substring(0,32)+"...");x.innerHTML=P;H.innerHTML=Ja($a(h))?"&nbsp;":h;p.appendChild(q);p.appendChild(x);p.appendChild(H);d?this.b.listen(p,"click",v(this.g.nb,this.g,d)):(Gb(x,n),A(x,"toc-middle-disabled-cell"),Gb(H,k),A(H,"toc-right-disabled-cell"));b.appendChild(p);e==this.R&&(c=p)},a);c&&R(v(a.pl,a,c));a.i.appendChild(b);300<kf(a.i).height&&(M(a.i,"height","300px"),A(a.i,"scroll-toc-div-wide"));A(a.i,"scroll-toc-div");a.Ne()}
f.pl=function(a){300<a.offsetTop+kf(a).height&&(a=m(a.previousElementSibling)?a.previousElementSibling:Id(a.previousSibling,!1))&&(this.i.scrollTop=a.offsetTop)};f.Ne=function(){ih(this.o.S(),13,this.i,12,new C(0,-this.ha))};f.ma=function(){Ju.V.ma.call(this);K(this.i);this.o.Dc(!1)};function Mu(a){Gu.call(this);this.b=a.Ka;this.$a=a.Cf;this.wb=a.history;this.Ca=a.volumeInfo;this.va=a.userInfo;this.j=a.Bf;this.Za=a.xf;this.mb="patents"==kj();if(!a.fg){var b=G("appbar-patents-prior-art-finder-link");if(b&&(b=b.getAttribute("href"))){var c=new Y("Find prior art",void 0,2);W(this,c,!0);this.i.listen(c,"action",v(this.Xb,this,b))}if(c=G("appbar-patents-discuss-this-link"))if(b=c.getAttribute("href")){var d;"true"==c.getAttribute("data-is-grant")?(d="Discuss this patent",c="Discuss this patent on Stack Exchange"):
(d="Discuss this application",c="Discuss this application on Stack Exchange");d=new Y(d,void 0,2);d.ih(c);W(this,d,!0);this.i.listen(d,"action",v(this.Xb,this,b))}!this.b&&(b=G("appbar-read-patent-link"))&&(b=b.getAttribute("href"))&&(c=new Y("View PDF"),W(this,c,!0),this.i.listen(c,"action",v(this.Xb,this,b)))}if(this.b){this.Bd=!!a.af||!!a.$e;a.fg&&(b=ul("/googlebooks/images/kennedy/zoom_tool.png"),this.he=new Y(b,void 0,void 0,1),Hk(this.he,2),W(this,this.he,!0),L(this.he,"action",v(this.Lh,this,
"zoomin")),b=ul("/googlebooks/images/kennedy/zoom_out.png"),this.ie=new Y(b,void 0,void 0,1),Hk(this.ie,1),W(this,this.ie,!0),L(this.ie,"action",v(this.Lh,this,"zoomout")));c=!!a.af;b=!!a.$e;if(c||b){d=ul("/googlebooks/images/kennedy/one_up_page_view.png");this.ud=new Y(d,void 0,void 0,1);Hk(this.ud,2);L(this.ud,"action",v(this.Dg,this,yq));W(this,this.ud,!0);Hu(this,this.ud,"viewport",!0);if(c){d=ul("/googlebooks/images/kennedy/two_up_page_view.png");this.zd=new Y(d,void 0,void 0,1);c=1;if(this.$a||
b)c=3;Hk(this.zd,c);L(this.zd,"action",v(this.Dg,this,Er));W(this,this.zd,!0);Hu(this,this.zd,"viewport")}b&&(d=ul("/googlebooks/images/kennedy/thumbnail.png"),this.xd=new Y(d,void 0,void 0,1),c=1,this.$a&&(c=3),Hk(this.xd,c),L(this.xd,"action",v(this.Dg,this,lr)),W(this,this.xd,!0),Hu(this,this.xd,"viewport"));this.i.listen(this.b,"viewportmodechange",this.Kh);this.Kh()}this.$a&&(b=ul("/googlebooks/images/kennedy/maximize.png"),this.ra=new Y(b,void 0,void 0,1),this.ra.Wa(16,!0),this.ra.Dc(!1),this.Bd&&
Hk(this.ra,1),W(this,this.ra,!0),this.i.listen(this.ra,"action",this.Cl),this.i.listen(this.$a,"change",this.Gj));this.Za&&(b=ul("/googlebooks/images/kennedy/clip.png"),this.ka=new Y(b,void 0,void 0,1),this.ka.Wa(16,!0),Hk(this.ka,2),this.ka.Dc(!1),W(this,this.ka,!0),L(this.ka,"action",v(this.Yj,this)));a.Fg&&(b=ul("/googlebooks/images/kennedy/insert_link.png"),this.U=new Y(b,void 0,void 0,1),this.U.Wa(16,!0),this.ka&&Hk(this.U,1),W(this,this.U,!0),L(this.U,"action",v(this.Ri,this)));a.Gg&&(b=!!this.b.Ca.og,
c=!!Rn(this.b.Da,this.b.Ca.Ig),d=this.b.ya().getLabel()||"Contents",b||c?(b=ul("/googlebooks/images/kennedy/menu_down_arrow.png",d),b=Cb(b),this.Dd=b[0],this.Mb=new Y(b),Hk(this.Mb,2),W(this,this.Mb,!0),this.i.listen(this.Mb,"action",this.qk),Hu(this,this.Mb)):(this.Dd=I("SPAN","jfk-button-label",d),this.Mb=new Y(this.Dd),this.Mb.Ma(!1),Hk(this.Mb,2),W(this,this.Mb,!0)),b=ul("/googlebooks/images/kennedy/page_left.png"),this.Te=new Y(b,void 0,void 0,1),Hk(this.Te,3),W(this,this.Te,!0),L(this.Te,"action",
v(this.b.Cc,this.b,"previous")),b=ul("/googlebooks/images/kennedy/page_right.png"),this.Ue=new Y(b,void 0,void 0,1),Hk(this.Ue,1),W(this,this.Ue,!0),L(this.Ue,"action",v(this.b.Cc,this.b,"next")),this.i.listen(this.b,"pagechange",this.Sj))}if(a.ti&&(b=G("appbar-view-print-sample-link"))&&(b=b.getAttribute("href"))){var c=G("appbar-view-ebook-sample-link"),e;c&&(e=c.getAttribute("href"));c=new Y("View sample");vk(c,"gb-view-sample-button");W(this,c,!0);this.i.listen(c,"action",v(this.Xb,this,b));e&&
(Hk(c,2),c=new Fs,d=new Bs("Sample print book"),this.i.listen(d,"action",v(this.Xb,this,b)),W(c,d,!0),vk(d,"gb-sample-print-book-menuitem"),b=new Bs("Sample eBook"),this.i.listen(b,"action",v(this.Xb,this,e)),W(c,b,!0),vk(b,"gb-sample-ebook-menuitem"),e=new Ot("",c,Ut.Qa()),vk(e,"gb-jfk-margin-fix"),vk(e,"gb-view-sample-dropdown"),Hk(e,1),W(this,e,!0))}this.j&&!this.j.is_cobrand&&this.Ca&&!this.mb&&(e=this.va&&this.va.uid,new S(this.j.add_vol_to_collection_base_url||this.j.addVol2CollectionBaseUrl),
new S(this.j.remove_vol_from_collection_base_url||this.j.removeVolFromCollectionBaseUrl),b=Zs([this.Ca],this.va),e?(this.Vd=new Ps(this.Ca,b),W(this,this.Vd,!0)):(e=ul("/googlebooks/images/kennedy/menu_down_arrow.png","Add to my library"),e=Cb(e),this.Vd=new Y(e),W(this,this.Vd,!0),e=v(this.Xb,this,this.j.sign_in_url||this.j.signInUrl),Be(this.Vd,"action",e)));if(a.fg){if(e=G("appbar-write-review-link"))if(e=e.getAttribute("href"))this.Ic=new Y("Write review"),W(this,this.Ic,!0),this.i.listen(this.Ic,
"action",v(this.Xb,this,e));Nu(this,"appbar-application-grant-link","application-grant");Nu(this,"appbar-content-language-link","content-language")}else if(e=G("appbar-download-pdf-link"))if(e=e.getAttribute("href"))b=new Y("Download PDF"),W(this,b,!0),this.i.listen(b,"action",v(this.Xb,this,e));a.vl&&(a=ul("/googlebooks/images/kennedy/settings.png"),A(a[0],"goog-flat-menu-button-img"),e=I("DIV",{"class":"toc-div"}),b=new Fs,W(b,new sk(e),!0),(c=document.getElementById("ofe-gear-menu-contents"))&&
e.appendChild(c.cloneNode(!0)),this.lb=new Ot(a,b,Ut.Qa()),W(this,this.lb,!0),this.mb&&!this.b&&(a=new ru,this.lb.ke(a,0)))}y(Mu,Gu);f=Mu.prototype;f.Cl=function(){var a=this.$a;on(a,!a.$a);this.wb.update()};f.Gj=function(){this.ra.vb(16,this.$a.$a)};f.Yj=function(){this.Za(X(this.ka,16))};f.Ri=function(){if(X(this.U,16)){var a=new Yt(document.body,this.b,!0);a.render(this.U,!0);Be(a,"dispose",v(this.U.Dc,this.U,!1))}};f.Dg=function(a){this.b.Db(a);this.b.Ra.Ab()||this.wb.update()};
f.Kh=function(){var a=this.b.Ea();a instanceof yq&&Iu(this,this.ud);a instanceof Er&&Iu(this,this.zd);a instanceof lr&&Iu(this,this.xd);a=a.jf;this.ie.Ma(a);this.he.Ma(a)};f.Lh=function(a){this.b.Cc(a)};
function Nu(a,b,c){if(b=nd(b)){var d=b.length;if(1<d)for(var e=0;e<d;++e){var g=b[e],h=g.getAttribute("href"),k=g.getAttribute("data-label"),g=g.getAttribute("data-selected"),k=new Y(k);e||e==d-1?e==d-1&&e?Hk(k,1):e&&e!=d-1&&Hk(k,3):Hk(k,2);W(a,k,!0);Hu(a,k,c,!!g);g||a.i.listen(k,"action",v(a.Xb,a,h))}}}f.Sj=function(){var a=this.b.ya().getLabel()||"Contents";this.Dd&&(this.Dd.innerHTML=a)};f.qk=function(){this.Mb.getState()&16&&(new Ju(this.b,this.Mb)).render(3)};
f.Xb=function(a){window.location=a};f.ud=null;f.zd=null;f.xd=null;f.he=null;f.ie=null;f.Ue=null;f.Te=null;f.Mb=null;f.Dd=null;f.Vd=null;Ea("_OC_Run",function(a,b,c,d,e,g,h){Ou("js_exec_start");ij.update(c);var k=G("gb-get-book-container"),n=G("gb-get-book-content");k&&n&&(e=new Ws(b),(new tn(e,n,new S(c.purchaseHelpUrl))).render(k));un();lp=Tq;Tm=r;e=G("viewport");L(document,"selectionchange",Pu);c.stereoscopic&&(Ep=Qu);k=new Xn(e);Ou("created_viewer_obj");M(document.body,{overflow:"hidden"});G("titlebar")&&M(G("titlebar"),"white-space","nowrap");n=new Fq(k,e,G("volume-left"),0,G("menu_scroll"));n.b();pt=n;Ou("created_resize_manager");
e=new Ws(b);Ou("created_volume_info");var p=new Br(a,k.Ra);p.s=ij.pseudocontinuous;Ou("created_page_info_set");Zn(k,p);k.Ca=e;p.nc=e.b;a=yq;b.disable_twopage||(as(),a=$r[bs("M")]||yq);d=Ru(p,d);var q;as();q=bs("P");var x;d&&(x=d.Ha());d=new nn(k,G("volume-left"),G("volume-center"));Gq(n,d);Ou("created_fullscreen");x=[q,x,p.b.hb()[0].Ha()];var H;kb(x,function(a){return a&&Rn(p,a)?(H=a,!0):!1});x=k.Ra;g&&x.j(Va(g.search_query_escaped));$n(k,H);x=new Xr(k,d);Ou("created_history");mt=G("search_bar");
ot=G("toolbar_container");n=Su(k,w(Tu,k,x));n=new st(k,n,x);Ou("created_search_manager");g?(n.s=a,n.update("n",g,H)):k.Db(a);Ou("created_viewport");xr=new wr(k.ka,k.o,d);Uu(k,p);Vu(k);Wu();Xu();Ou("created_basic_controls");new Dt(k);g=new Bq(k);Be(Cp,"fetch",w(Ou,"lp_fetch"));Be(Cp,"loaded",w(Ou,"lp_loaded"));Ou("viewer_go_start");k.go();Ou("viewer_go_end");x.Ma(!0);x.update();L(jr,"click",v(x.update,x));Yu(e.ta);Ou("js_exec_end");if(a=G("gb-viewport-plusone-container")||G("gb-atb-patents-plusone-container"))(n=
G("books-microdata"))&&ij.enableShareButton&&Sl(a,n),Ul(a,!0);Rl();R(w(Zu,k,d,x,!b.disable_twopage,ij.enableThumbnailViewport,c,e,h,ij.enableClips?w($u,g):void 0));R(av);h&&bv(e,h);_OC_InitHooks(w(cv,k),r,r,r,r,r);L(document,"keydown",dv);tt("vheadf","vheadq");tt("gbqf","gbqfq");b=G("buy-tooltip");c=G("buy-tooltip-box");b&&c&&Qh(b,c);Ql();new bj(G("gbqfq"),!0,G("gbqfqw"),-9)});function Ou(a){window._OC_reportEvent&&window._OC_reportEvent(a)}
function bv(a,b){var c=Zs([a],b),d=G("addToLibraryLink"+a.dc());d&&(c=new Ps(a,c),A(d,"jfk-button-standard"),Pj(c,d),c.setVisible(!0))}
function Zu(a,b,c,d,e,g,h,k,n){b={Ka:a,Cf:b,history:c,af:d,$e:e,Gg:!0,volumeInfo:h,userInfo:k,Bf:g,xf:n,Fg:!0};c=G("left-toolbar-buttons");d=G("right-toolbar-buttons");(new Mu({Ka:b.Ka,Cf:b.Cf,history:b.history,af:b.af,$e:b.$e,volumeInfo:b.volumeInfo,userInfo:b.userInfo,Bf:b.Bf,xf:b.xf,Fg:b.Fg,fg:!0,ti:b.ti})).render(c);(new Mu({Ka:b.Ka,Gg:b.Gg,vl:!0})).render(d);b=G("toolbar_container");Ed(b);b.style.padding="0";Ou("toolbar_done");new Ft(a)}function av(){var a=G("similarbooks_v");a&&Xm(a)}
function Pu(){if(E&&document.selection&&!ev){var a=document.selection.createRange();Jd(a.parentElement(),G("viewport"))&&(ev=!0,document.selection.empty(),R(fv))}}function fv(){ev=!1}var ev=!1;function cv(a,b,c){(b=Rn(a.Da,b))?a.nb(b):c&&(window.location.href=c)}function Ru(a,b){var c=b.page[0],d=Rn(a,c.pid);return d?(d.Wd(c,eo(d).toString()),op(d,c),d):null}function Xu(){for(var a=["footer_table"],b=0;b<a.length;b++){var c=G(a[b]);c&&M(c,{display:"none"})}}
function Uu(a,b){var c=G("page_label");c||(c={form:G("jtp_form"),input:G("jtp")});new io(a,b,G("prev_btn"),G("next_btn"),c)}function Vu(a){a.dispatchEvent("pagemodechange");var b=G("text_mode");b&&(M(b,{cursor:"pointer"}),L(b,"click",w(gv,a)))}function Tu(a,b,c){a.Ra.j(c);b.update()}function Su(a,b){Sq("search_form_input");var c=new Oq(G("search_form_input"),a.Ra.Ab());L(G("search_form"),"submit",w(hv,c,b));return c}
function hv(a,b,c){var d=G("sits");d&&d.checked&&""!=G("search_form_input").value||(c.preventDefault(),Fo=!1,G("search_form_input").blur(),b(a.ab()))}function Wu(){var a=G("action_buttons"),b=!1;ij.enableHighlightUI&&(b=J("DIV"),a.insertBefore(b,a.childNodes[0]||null),new wn(b,"/googlebooks/images/hilite_icon.gif","Turn on highlighting"),b=!0);b&&M(G("action_buttons_container"),{display:""})}
function Yu(a){var b=G("magazine_other_issues");if(b&&a){a=new mn(new sm,a,!0);var c=I("DIV",{"class":"other_issues_content"});b.appendChild(c);a.render(c);a.se()}}function gv(a,b){b.preventDefault();var c=new S(mp(a.ya()).toString());T(c,"output","text");window.location.href=c.toString()}function $u(a,b){Ib(G("viewport"),"selection-mode",b);Rp=b;a.Ma(!b)}
function dv(a){(Wc?a.metaKey:a.ctrlKey)&&70==a.b&&(a.preventDefault(),a=G("search_form_input"),iv=iv||new xg(a,[255,255,136],[255,255,255],700,yg),iv.play(!0),a.focus())}var iv=null;function Qu(a){return Kg(a,"edge","3d")}Ea("_OC_MenuHideHook",r);(function(){function a(){window.jstiming&&(window._OC_reportEvent("ol"),window._OC_reportEvents&&window._OC_reportEvents())}window._OC_timingAction=function(a){window.jstiming.load.name=a};window._OC_reportEvent=function(a){window.jstiming.load.tick(a)};window._OC_reportEvents=function(){window.jstiming.report(window.jstiming.load)};window.attachEvent?window.attachEvent("onload",a):window.addEventListener&&window.addEventListener("load",a,!1)})();}).call(this);
})();