Professional Documents
Culture Documents
F
F
F
wnProperty.call(b,d)&&(f=b[d],"function"!=typeof f&&(c.push(e),$a(d,c),c.push(":
"),Za(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":$a(b,c);
break;case "number":c.push(isFinite(b)&&
!isNaN(b)?b:"null");break;case "boolean":c.push(b);break;case "function":break;d
efault:throw Error("Unknown type: "+typeof b);}}}var ab={'"':'\\"',"\\":"\\\\","
/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"
},bb=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\
xff]/g;function $a(a,b){b.push('"',a.replace(bb,function(a){var b=ab[a];b||(b="\
\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),ab[a]=b);return b}),'"')};fun
ction I(a,b,c){if(r(b))(b=cb(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var
e=b[d],f=cb(c,d);f&&(c.style[f]=e)}}var db={};function cb(a,b){var c=db[b];if(!c
){var d=ta(b),c=d;void 0===a.style[d]&&(d=(F?"Webkit":E?"Moz":D?"ms":Ha?"O":null
)+ua(d),void 0!==a.style[d]&&(c=d));db[b]=c}return c}function eb(a,b,c){var d;b
instanceof z?(d=b.x,b=b.y):(d=b,b=c);a.style.left=fb(d,!1);a.style.top=fb(b,!1)}
function gb(a,b,c){if(b instanceof A)c=b.height,b=b.width;else if(void 0==c)thro
w Error("missing height argument");a.style.width=fb(b,!0);a.style.height=fb(c,!0
)}function fb(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}fun
ction hb(a,b){var c=a.style;"opacity"in c?c.opacity=b:"MozOpacity"in c?c.MozOpac
ity=b:"filter"in c&&(c.filter=""===b?"":"alpha(opacity="+100*b+")")};var ib="Sto
pIteration"in l?l.StopIteration:{message:"StopIteration",stack:""};function jb()
{}jb.prototype.next=function(){throw ib;};jb.prototype.R=function(){return this}
;function kb(a,b){this.b={};this.a=[];this.i=this.g=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){var e;if(a instanceof kb)e=a.D(),d=a
.B();else{var c=[],f=0;for(e in a)c[f++]=e;e=c;c=[];f=0;for(d in a)c[f++]=a[d];d
=c}for(c=0;c<e.length;c++)this.set(e[c],d[c])}}k=kb.prototype;k.B=function(){lb(
this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.b[this.a[b]]);return a};
k.D=function(){lb(this);return this.a.concat()};k.remove=function(a){return J(th
is.b,a)?(delete this.b[a],this.g--,this.i++,this.a.length>2*this.g&&lb(this),!0)
:!1};function lb(a){if(a.g!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a
[b];J(a.b,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.g!=a.a.length){for(var e={},c=b
=0;b<a.a.length;)d=a.a[b],J(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}}k.get=fu
nction(a,b){return J(this.b,a)?this.b[a]:b};
k.set=function(a,b){J(this.b,a)||(this.g++,this.a.push(a),this.i++);this.b[a]=b}
;k.forEach=function(a,b){for(var c=this.D(),d=0;d<c.length;d++){var e=c[d],f=thi
s.get(e);a.call(b,f,e,this)}};k.clone=function(){return new kb(this)};k.R=functi
on(a){lb(this);var b=0,c=this.i,d=this,e=new jb;e.next=function(){if(c!=d.i)thro
w Error("The map has changed since the iterator was created");if(b>=d.a.length)t
hrow ib;var e=d.a[b++];return a?e:d.b[e]};return e};
function J(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var mb=/^(?:([
^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?
(?:\?([^#]*))?(?:#(.*))?$/;function nb(a){if(ob){ob=!1;var b=l.location;if(b){va
r c=b.href;if(c&&(c=(c=nb(c)[3]||null)?decodeURI(c):c)&&c!=b.hostname)throw ob=!
0,Error();}}return a.match(mb)}var ob=F;
function pb(a,b){for(var c=a.split("&"),d=0;d<c.length;d++){var e=c[d].indexOf("
="),f=null,g=null;0<=e?(f=c[d].substring(0,e),g=c[d].substring(e+1)):f=c[d];b(f,
g?decodeURIComponent(g.replace(/\+/g," ")):"")}};function K(a,b){this.b=this.u=t
his.i="";this.s=null;this.j=this.o="";this.g=!1;var c;a instanceof K?(this.g=m(b
)?b:a.g,qb(this,a.i),this.u=a.u,this.b=a.b,rb(this,a.s),this.o=a.o,sb(this,a.a.c
lone()),this.j=a.j):a&&(c=nb(String(a)))?(this.g=!!b,qb(this,c[1]||"",!0),this.u
=L(c[2]||""),this.b=L(c[3]||"",!0),rb(this,c[4]),this.o=L(c[5]||"",!0),sb(this,c
[6]||"",!0),this.j=L(c[7]||"")):(this.g=!!b,this.a=new M(null,0,this.g))}
K.prototype.toString=function(){var a=[],b=this.i;b&&a.push(N(b,tb,!0),":");if(b
=this.b){a.push("//");var c=this.u;c&&a.push(N(c,tb,!0),"@");a.push(encodeURICom
ponent(String(b)).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.s;null!=b&&a.pus
h(":",String(b))}if(b=this.o)this.b&&"/"!=b.charAt(0)&&a.push("/"),a.push(N(b,"/
"==b.charAt(0)?ub:vb,!0));(b=this.a.toString())&&a.push("?",b);(b=this.j)&&a.pus
h("#",N(b,wb));return a.join("")};K.prototype.clone=function(){return new K(this
)};
function qb(a,b,c){a.i=c?L(b,!0):b;a.i&&(a.i=a.i.replace(/:$/,""))}function rb(a
.J,this):this.v=!0;this.a||(a=new Nc,Oc(this),Pc(this,!1,a))}};X.prototype.C=fun
ction(a,b){this.s=!1;Pc(this,a,b)};function Pc(a,b,c){a.a=!0;a.g=c;a.i=!b;Qc(a)}
function Oc(a){if(a.a){if(!a.v)throw new Rc;a.v=!1}}X.prototype.callback=functio
n(a){Oc(this);Pc(this,!0,a)};function Sc(a,b,c,d){a.j.push([b,c,d]);a.a&&Qc(a)}X
.prototype.then=function(a,b,c){var d,e,f=new S(function(a,b){d=a;e=b});Sc(this,
d,function(a){a instanceof Nc?f.cancel():e(a)});return f.then(a,b,c)};wc(X);func
tion Tc(a){return xa(a.j,function(a){return t(a[1])})}
function Qc(a){if(a.o&&a.a&&Tc(a)){var b=a.o,c=Uc[b];c&&(l.clearTimeout(c.w),del
ete Uc[b]);a.o=0}a.b&&(a.b.u--,delete a.b);for(var b=a.g,d=c=!1;a.j.length&&!a.s
;){var e=a.j.shift(),f=e[0],g=e[1],e=e[2];if(f=a.i?g:f)try{var h=f.call(e||a.J,b
);m(h)&&(a.i=a.i&&(h==b||h instanceof Error),a.g=b=h);if(xc(b)||"function"===typ
eof l.Promise&&b instanceof l.Promise)d=!0,a.s=!0}catch(n){b=n,a.i=!0,Tc(a)||(c=
!0)}}a.g=b;d&&(h=u(a.C,a,!0),d=u(a.C,a,!1),b instanceof X?(Sc(b,h,d),b.P=!0):b.t
hen(h,d));c&&(b=new Vc(b),
Uc[b.w]=b,a.o=b.w)}function Rc(){x.call(this)}w(Rc,x);Rc.prototype.message="Defe
rred has already fired";Rc.prototype.name="AlreadyCalledError";function Nc(){x.c
all(this)}w(Nc,x);Nc.prototype.message="Deferred was canceled";Nc.prototype.name
="CanceledError";function Vc(a){this.w=l.setTimeout(u(this.b,this),0);this.a=a}V
c.prototype.b=function(){delete Uc[this.w];throw this.a;};var Uc={};function Wc(
a,b){var c=b||{},d=c.document||document,e=H("SCRIPT"),f={N:e,I:void 0},g=new X(X
c,f),h=null,n=null!=c.timeout?c.timeout:5E3;0<n&&(h=window.setTimeout(function()
{Yc(e,!0);var b=new Zc(1,"Timeout reached for loading script "+a);Oc(g);Pc(g,!1,
b)},n),f.I=h);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e
.readyState&&"complete"!=e.readyState||(Yc(e,c.S||!1,h),g.callback(null))};e.one
rror=function(){Yc(e,!0,h);var b=new Zc(0,"Error while loading script "+a);Oc(g)
;Pc(g,!1,
b)};Qa(e,{type:"text/javascript",charset:"UTF-8",src:a});$c(d).appendChild(e);re
turn g}function $c(a){var b=a.getElementsByTagName("HEAD");return b&&0!=b.length
?b[0]:a.documentElement}function Xc(){if(this&&this.N){var a=this.N;a&&"SCRIPT"=
=a.tagName&&Yc(a,!0,this.I)}}function Yc(a,b,c){null!=c&&l.clearTimeout(c);a.onl
oad=p;a.onerror=p;a.onreadystatechange=p;b&&window.setTimeout(function(){Xa(a)},
0)}function Zc(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);x.call(t
his,c)}w(Zc,x);function ad(a,b){this.b=new K(a);this.a=b?b:"callback";this.I=5E3
}var bd=0;
ad.prototype.send=function(a,b,c,d){a=a||null;d=d||"_"+(bd++).toString(36)+ha().
toString(36);l._callbacks_||(l._callbacks_={});var e=this.b.clone();if(a)for(var
f in a)if(!a.hasOwnProperty||a.hasOwnProperty(f)){var g=e,h=f,n=a[f];q(n)||(n=[
String(n)]);Bb(g.a,h,n)}b&&(l._callbacks_[d]=cd(d,b),b=this.a,f="_callbacks_."+d
,q(f)||(f=[String(f)]),Bb(e.a,b,f));b=Wc(e.toString(),{timeout:this.I,S:!0});Sc(
b,null,dd(d,a,c),void 0);return{w:d,M:b}};
ad.prototype.cancel=function(a){a&&(a.M&&a.M.cancel(),a.w&&ed(a.w,!1))};function
dd(a,b,c){return function(){ed(a,!1);c&&c(b)}}function cd(a,b){return function(
c){ed(a,!0);b.apply(void 0,arguments)}}function ed(a,b){l._callbacks_[a]&&(b?del
ete l._callbacks_[a]:l._callbacks_[a]=p)};function Y(){Fb.call(this);this.A=new
Kb(this);this.o=this}w(Y,Fb);Y.prototype[Gb]=!0;Y.prototype.addEventListener=fun
ction(a,b,c,d){Rb(this,a,b,c,d)};Y.prototype.removeEventListener=function(a,b,c,
d){Zb(this,a,b,c,d)};function fd(a,b){var c=a.o,d=b,e=d.type||d;if(r(d))d=new Q(
d,c);else if(d instanceof Q)d.b=d.b||c;else{var f=d,d=new Q(e,c);Ca(d,f)}c=d.a=c
;gd(c,e,!0,d);gd(c,e,!1,d)}Y.prototype.listen=function(a,b,c,d){return Lb(this.A
,String(a),b,!1,c,d)};
function gd(a,b,c,d){if(b=a.A.a[String(b)]){b=b.concat();for(var e=!0,f=0;f<b.le
ngth;++f){var g=b[f];if(g&&!g.removed&&g.G==c){var h=g.listener,n=g.H||g.src;g.F
&&Nb(a.A,g);e=!1!==h.call(n,d)&&e}}}};function hd(){Y.call(this);this.j=null;thi
s.i=!0}w(hd,Y);hd.prototype.b=function(){if(this.i)this.i=!1;else throw Error();
};function Z(a){hd.call(this);this.v=new ad(a);this.a=!0}w(Z,hd);Z.prototype.b=f
unction(a,b){Z.O.b.call(this,a,b);this.a=!1;this.v.send({},u(this.u,this,a),u(th
is.s,this,b))};Z.prototype.u=function(a,b){this.a||(this.j=b,fd(this,"success"),
a&&a(this.j),this.a=!0)};Z.prototype.s=function(a){this.a||(fd(this,"error"),a&&
a(),this.a=!0)};function id(a,b,c,d){q(a)||(a=[a]);this.a=a;this.g=b;this.b=c;b=
new K((GBS_HOST||"http://books.google.com/")+"books?jscmd=viewapi");b.a.set("bib
keys",a.join(","));b.a.set("hl","es");b.a.set("source",d||"previewlib");(new Z(b
)).b(u(this.i,this))}id.prototype.i=function(a){for(var b=0;b<this.a.length;b++)
{var c=a[this.a[b]];if(c){var d=c.preview_url,e;if(e=d)e=c.preview,c=c.embeddabl
e,m(c)||(c=!0),e=("full"==e||"partial"==e)&&c;if(e){this.g&&this.g(d);return}}}t
his.b&&this.b()};v("GBS_insertPreviewButtonLink",function(a,b){jd(a,fa(kd,(b||{}
).alternativeUrl),"GBS_insertPreviewButtonLink")});v("GBS_insertPreviewButtonPop
up",function(a){jd(a,ld,"GBS_insertPreviewButtonPopup")});v("GBS_insertEmbeddedV
iewer",function(a,b,c){jd(a,fa(md,b,c),"GBS_insertEmbeddedViewer")});function jd
(a,b,c){var d=nd();new id(a,function(a){b(d,a)},null,c)}
function kd(a,b,c){a||(a=new K(c),od&&(c=new K(GBS_HOST),qb(a,c.i),a.b=c.b,rb(a,
c.s),a.o="/books/p/"+od),a=a.toString().replace(/#.*/g,""),a=new K(a),a.a.set("h
l","es"),a=a.toString());new fc(b,a,pd)}function ld(a,b){new gc(a,fa(qd,b),pd)}f
unction md(a,b,c,d){var e=H("div");c.appendChild(e);gb(e,a,b);rd(e,d)}
function rd(a,b){var c=Ua("iframe",{frameBorder:"0",width:"100%",height:"100%"})
;a.appendChild(c);var d=new K(b);d.a.set("output","embed");if(sd){var e=[];Za(ne
w Ya,sd,e);d.j=encodeURIComponent(String(e.join("")))}c.src=d.toString()}functio
n qd(a){new hc(a,rd)}var pd="en";v("GBS_setLanguage",function(a){pd=a});v("GBS_s
etViewerOptions",function(a){sd=a});var od=null;v("GBS_setCobrandName",function(
a){od=a});var sd={};
function nd(){var a="__GBS_Button"+td++;document.write(ia('<span id="%s"></span>
',a));var b=document;return r(a)?b.getElementById(a):a}var td=0;
})();