You are on page 1of 33

/* :asset_packager_compatibility, 'config/asset_packages.

yml' @ 1484174566 */
/* public/javascripts/4gen.js @ 1484174566 */
init_4gen=function(){var t;"undefined"!=typeof jQuery&&(t=jQuery);var e,n=3,i=8,
r="/images/4gen/trans_1x1.gif",o=30,s=315,a=1,c=2,l=3,u=12;window.console||(wind
ow.console={log:function(){}});var d=function(){function d(){}function h(t,e){t.
prototype.addEvent=d.prototype.addEvent,t.prototype.removeEvent=d.prototype.remo
veEvent,t.prototype.fireEvent=d.prototype.fireEvent,t.prototype.initEventHelper=
d.prototype.initEventHelper,t.prototype.possibleEvents=e}function p(t,e,n,i,r,o)
{this.id=t,this.shortstyle=e,this.family=n,this.fallback=i,this.weight=r,this.st
yle=o}function f(t){this.fonts=[],this.docManager=t,this._cssRuleQueue=[],this._
fontLoadQueue=[]}function _(t,e){this.pages=[],this.loaded=!1,this.fonts={},this
.numFonts=0,this.fontLoader=e,this.groupNum=t||0}function m(t){for(var e in this
._defaultParams)this._defaultParams.hasOwnProperty(e)&&(this[e]=t[e]||this._defa
ultParams[e]);for(var n=0;n<this._requiredParams.length;n++){var i=this._require
dParams[n];if(!this[i])throw"Missing required Page param: "+i}if(!this.contentUr
l&&!this.innerPageElem)throw"Must initialize a page with either a contentUrl or
innerPageElem element";if(this.containerElem.boundToPageObj===!0)throw"Container
Elem is already bound to a page. We shouldn't get here";this.containerElem.bou
ndToPageObj=!0,this._targetWidth=null,this._innerPageVisible=!!this.innerPageEle
m,this._imagesTurnedOn=!1,this.boundingRect=null,this.isVisible=!1,this.displayD
irty=!0,this.displayOn=null,this.loadHasStarted=!!this.innerPageElem}function g(
){this.initEventHelper(),this.viewRect=null,this.enabled=!1;var t=this;this._scr
ollCallback=function(){t._eventHandler("scroll")},this._resizeCallback=function(
){t._eventHandler("resize")}}function v(){}function b(e,n,i){"undefined"==typeof
t&&"undefined"!=typeof scribd&&x.setJQuery(scribd.jQuery),t("html, body").anima
te({scrollTop:t(e).offset().top},{queue:!1,duration:n,easing:"linear",complete:i
})}function y(){this._name="book",this.currentPageId=null;var t=this;this._fulls
creenResizedCallback=function(e){t._fullscreenResized(e)}}function w(){this._nam
e="slideshow",this.currentPageId=null;var t=this;this._fullscreenResizedCallback
=function(e){t._fullscreenResized(e)}}function k(){this._name="scroll";var t=thi
s;this._verticalPositionChangeCallback=function(){t.checkAndUpdateVisiblePages()
},this._fullscreenResizedCallback=function(){t._fullscreenResized()}}function x(
e,n,i){this.options=i||{},this.options.extrasWidth=this.options.extrasWidth||s,t
his.defaultViewMode=e||"scroll",this.mobile=n||!1,t&&(this.view_manager_deferred
=t.Deferred()),this.initEventHelper(),this.pages={},this._pageWidths=null,this._
fontLoader=new f(this),this.viewManagers={scroll:new k,slideshow:new w,book:new
y},this.viewportManager=new g,this._currentFontAggregatorHostIdx=0,this.visibleP
ages=[],this.firstVisiblePage=null,this.lastVisiblePage=null,this.currentFontGro
up=new _(0,this._fontLoader),this.isScrolling=!1,this._scrollingCount=0}function
S(t,e,n){return Math.min(n,Math.max(e,t))}function C(t){return Math.floor(100*t
)/100}var T={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz012345
6789+/=",decode:function(t){var e,n,i,r,o,s,a,c="",l=0;for(t=t.replace(/[^A-Za-z
0-9\+\/\=]/g,"");l<t.length;)r=this._keyStr.indexOf(t.charAt(l++)),o=this._keySt
r.indexOf(t.charAt(l++)),s=this._keyStr.indexOf(t.charAt(l++)),a=this._keyStr.in
dexOf(t.charAt(l++)),e=r<<2|o>>4,n=(15&o)<<4|s>>2,i=(3&s)<<6|a,c+=String.fromCha
rCode(e),64!=s&&(c+=String.fromCharCode(n)),64!=a&&(c+=String.fromCharCode(i));r
eturn c=T._utf8_decode(c)},_utf8_decode:function(t){for(var e="",n=0,i=0,r=0;n<t
.length;)i=t.charCodeAt(n),128>i?(e+=String.fromCharCode(i),n++):i>191&&224>i?(r
=t.charCodeAt(n+1),e+=String.fromCharCode((31&i)<<6|63&r),n+=2):(r=t.charCodeAt(
n+1),c3=t.charCodeAt(n+2),e+=String.fromCharCode((15&i)<<12|(63&r)<<6|63&c3),n+=
3);return e}};d.prototype.initEventHelper=function(){this.eventListenerEnabled=!
0,this.eventListeners={};for(var t=0;t<this.possibleEvents.length;t++)this.event
Listeners[this.possibleEvents[t]]={}},d.prototype.addEvent=function(t,e){if(!thi
s.eventListeners[t])throw t+" is not a valid type of event";this.eventListeners[
t].next_uid||(this.eventListeners[t].next_uid=1),e._event_listener_uid||(e._even
t_listener_uid=this.eventListeners[t].next_uid,this.eventListeners[t].next_uid++
),this.eventListeners[t][e._event_listener_uid]=e},d.prototype.removeEvent=funct
ion(t,e){delete this.eventListeners[t][e._event_listener_uid]},d.prototype.fireE
vent=function(t){function e(t){t.apply(o,i)}if(this.eventListenerEnabled){var n=
this.eventListeners[t],i=[];if(arguments.length>1){i[arguments.length-2]=null;fo

r(var r=1;r<arguments.length;r++)i[r-1]=arguments[r]}var o=this;for(var s in n)"


next_uid"!=s&&n.hasOwnProperty(s)&&e(n[s])}};var E="font_preload_bed",D=function
(){return document.styleSheets[0]&&!document.styleSheets[0].insertRule},M=functi
on(t){return t%1==0},P=function(t,e){if(D()){var n=t.innerHTML;t.href=e,t.innerH
TML!=n&&(t.innerHTML=n)}else t.href=e},N=function(){var t=navigator.userAgent.to
LowerCase();return t.search("android 2.2")>-1}(),I=function(){var t=navigator.us
erAgent.toLowerCase();return t.search("mobile")>-1&&t.search("safari")>-1&&!N}()
,A=navigator.userAgent.indexOf("AppleWebKit/")>-1;e=function(){return D()?a:I?c:
c}(),D()&&(i=5,n=2),N&&(i=1,n=1),p.prototype.eotCssRule=function(t){var e="src:
url("+t+this.family+".eot); font-family: "+this.family+"; font-weight: "+this.we
ight+"; font-style: "+this.style;return"@font-face {"+e+"}"},p.prototype.ttfCssR
ule=function(t){var e="src: url("+t+this.family+".ttf) format('truetype'); fontfamily: "+this.family+"; font-weight: "+this.weight+"; font-style: "+this.style;
return"@font-face {"+e+"}"},p.prototype.svgCssRule=function(t){var e="src: url("
+t+"#"+this.family+") format('svg'); font-family: "+this.family+"; font-weight:
"+this.weight+"; font-style: "+this.style;return"@font-face {"+e+"}"},p.prototyp
e.createPreloadElem=function(){return"<span style='font-family: "+this.family+"'
>scribd.</span> "},f.prototype._makeNewStyleBlock=function(){var t=document.crea
teElement("style");window.createPopup||t.appendChild(document.createTextNode("")
);var e=document.getElementsByTagName("head")[0];return e.appendChild(t),t},f.pr
ototype._insertCssRule=function(t){this._cssRuleQueue.push(t)},f.prototype._flus
hCssRuleQueue=function(t){if(this._cssRuleQueue.length>0){var e=t&&document.getE
lementById(t)||this._makeNewStyleBlock(),n=this._cssRuleQueue.join("\n");D()?e.s
tyleSheet.cssText=n:window.createPopup?e.innerHTML=n:e.appendChild(document.crea
teTextNode(n)),this._cssRuleQueue=[]}},f.prototype.getFontAggregatorHostForFonts
=function(t){for(var n=[],i=0;i<t.length;i++)n.push(t[i].shortstyle+t[i].id);n.s
ort();var r=this.docManager.nextFontAggregatorHost()+"/"+this.docManager.assetPr
efix+"/"+n.join(",")+"/"+u+"/";switch(e){case a:break;case c:N||(r+="ttfs.css");
break;case l:r+="fonts.svg"}return r},f.prototype._addTTFRules=function(t,e){for
(var n=0;n<t.length;n++){var i=t[n];this._insertCssRule(i.ttfCssRule(e))}},f.pro
totype._addSVGRules=function(t,e){for(var n=0;n<t.length;n++){var i=t[n];this._i
nsertCssRule(i.svgCssRule(e))}},f.prototype._addEOTRules=function(t,e){for(var n
=0;n<t.length;n++){var i=t[n];this._insertCssRule(i.eotCssRule(e))}},f.prototype
._nextPreloadId=function(){this._preloadId||(this._preloadId=0);var t="preload_b
ed"+this._preloadId;return this._preloadId+=1,t},f.prototype._addCSSWebkit=funct
ion(t,e){function n(){{var t=document.createElement("div");i._nextPreloadId()}t.
innerHTML=s;var n=document.getElementById(E),o=window.setInterval(function(){r.c
ontentDocument.styleSheets.length>0&&(window.clearInterval(o),r.contentDocument.
body.getBoundingClientRect(),n.appendChild(t),window.setTimeout(function(){r.con
tentDocument.body.getBoundingClientRect(),i._addCSSLink(e)},500))},0)}var i=this
,r=document.createElement("iframe"),o=this._nextPreloadId();r.id=o;for(var s="",
a=0;a<t.length;a++){var c=t[a];s+=c.createPreloadElem()}this._makeNewStyleBlock(
);r.addEventListener("load",function(){n()},!1),r.style.display="none",document.
body.appendChild(r),r.contentDocument.body.innerHTML=s;var l=r.contentDocument.c
reateElement("link");l.href=e,l.rel="stylesheet",l.type="text/css",l.media="scre
en";var u=r.contentDocument.getElementsByTagName("head")[0];u.appendChild(l)},f.
prototype._addCSSLink=function(t){var e=document.createElement("link");e.href=t,
e.rel="stylesheet",e.type="text/css";var n=document.getElementsByTagName("head")
[0];n.appendChild(e)},f.prototype.flushFontQueue=function(){if(0!==this._fontLoa
dQueue.length&&"rasterize"!=this.docManager.displayType){var t=this._fontLoadQue
ue;this._fontLoadQueue=[];var n=this.getFontAggregatorHostForFonts(t);switch(e){
case a:this._addEOTRules(t,n);break;case c:N?this._addTTFRules(t,n):A?this._addC
SSWebkit(t,n):this._addCSSLink(n);break;case l:this._addSVGRules(t,n)}this._flus
hCssRuleQueue()}},f.prototype.addFontToQueue=function(t){var e=this.fonts[t];e._
loadQueued||(e._loadQueued=!0,this._fontLoadQueue.push(e))},f.prototype.addFont=
function(t,e,n,i,r,o){var s=new p(t,e,n,i,r,o);this.fonts[t]=s},f.prototype.setN
umFonts=function(t){for(var e=0;t>e;e++)this.fonts[e]=new p(e,"","ff"+e,"sans-se
rif","normal","normal")},f.prototype._initHidersCSS=function(){for(var t=[],e=0;
e<this.fonts.length;e++)t.push("."+this.fonts[e].family);this._insertCssRule(t.j
oin(", ")+" {display: none;}\n")},f.prototype._initFamilyCSS=function(){for(var

t=0;t<this.fonts.length;t++){var e=this.fonts[t].family,n=this.fonts[t].fallback
,i=this.fonts[t].weight,r=this.fonts[t].style,o="div."+e+" span";"undefined"!=ty
peof scribd&&"undefined"!=typeof scribd.embed_div_id&&(o="#"+scribd.embed_div_id
+" "+o),this._insertCssRule(D()?o+" {font-family: "+e+" !important;\n}":o+" {fon
t-family: "+e+", "+n+"; font-weight: "+i+"; font-style: "+r+";\n}")}},f.prototyp
e.initStyles=function(){if("rasterize"!=this.docManager.displayType){switch(this
._initFamilyCSS(),e){case a:break;case c:N||this._initHidersCSS();break;case l:}
this._flushCssRuleQueue("preload_styler")}},f.prototype.setupTestElements=functi
on(){if(e==c&&!A&&"rasterize"!=this.docManager.displayType){for(var t="",n=0;n<t
his.fonts.length;n++){var i=this.fonts[n];t+=i.createPreloadElem()}var r=documen
t.getElementById(E);r.innerHTML=t,document.body.appendChild(r),this._insertCssRu
le("#"+E+" span {display: block; visibility: hidden}"),this._flushCssRuleQueue()
}},_.prototype.addPage=function(t){for(var e=0;e<t.fonts.length;e++){var n=t.fon
ts[e];void 0===this.fonts[n]&&(this.fonts[n]=!0,this.numFonts+=1)}this.pages.pus
h(t)},_.prototype.isFull=function(){var t=this.pages.length,n=this.groupNum,r=th
is.numFonts;return e==a?this.hasLoaded||r>50||r>=20&&(0===n&&t>=i+3||t>=15):e==l
||N?this.hasLoaded||r>=5&&t>=i:this.hasLoaded||r>100||r>=20&&(0===n&&t>=i+3||t>=
100)},_.prototype.load=function(t){function e(){for(var t in n.fonts)n.fonts.has
OwnProperty(t)&&n.fontLoader.addFontToQueue(t);n.fontLoader.flushFontQueue()}if(
!this.hasLoaded){this.hasLoaded=!0;var n=this;t?window.setTimeout(function(){e()
},t):e()}},_.prototype.newNextGroup=function(){return new _(this.groupNum+1,this
.fontLoader)};var O=1,$=2,R=3,j=4,L=function(){return void 0!==document.document
Element.style.WebkitTransform?O:void 0!==document.documentElement.style.MozTrans
form?$:void 0!==document.documentElement.style.OTransform?j:R}();m.prototype._de
faultParams={containerElem:null,innerPageElem:null,contentUrl:null,origWidth:nul
l,origHeight:null,fonts:null,docManager:null,pageNum:null},m.prototype._required
Params=["origWidth","origHeight","fonts","docManager","containerElem","pageNum"]
,m.prototype._updateBoundingRect=function(){var t,e,n,i;if(this.containerElem.ge
tBoundingClientRect&&this.docManager.viewportManager.viewRect){var r=this.contai
nerElem.getBoundingClientRect(),o=this.docManager.viewportManager.viewRect;e=r.l
eft+o.left,t=r.top+o.top,o.offsetX&&(e-=o.offsetX),o.offsetY&&(t-=o.offsetY),n=r
.right-r.left,i=r.bottom-r.top,this.boundingRect={left:e,top:t,bottom:t+i,right:
e+n,width:n,height:i}}else t=this.containerElem.offsetTop,e=this.containerElem.o
ffsetLeft,n=this.containerElem.offsetWidth,i=this.containerElem.offsetHeight,thi
s.boundingRect={left:e,top:t,bottom:t+i,right:e+n,width:n,height:i}},m.prototype
._setContainerContents=function(e){var n=/<noscript *><img[^<>]*\/><\/noscript *
>/g,i=t(e.replace(n,""))[0];this.containerElem.appendChild(i);this.innerPageElem
=i,this.turnOnLinks(),this.turnOnImages(),this.fixSVGFonts(),this.displayDirty=!
0,this.displayOn?this.display():this.hide()},m.prototype.fixSVGFonts=function(){
if(this._svgFontsFixed)throw"Already fixed the svg fonts";if(this.innerPageElem)
{if(I){var t=function(e){if(e.nodeType==document.TEXT_NODE){var n=e.textContent.
search(/[ \n][^ \n ]/);n>=0&&t(e.splitText(n+1))}else for(var i=e.childNodes,r=
0;r<i.length;r++)t(i[r])},e=function(t){for(var n=t.childNodes,i=0;i<n.length;i+
+){var r=n[i];if(r.nodeType==document.ELEMENT_NODE)e(r);else{var o=n[i+1];o&&"#t
ext"==o.nodeName&&t.insertBefore(document.createElement("span"),o)}}};t(this.inn
erPageElem),e(this.innerPageElem)}this._svgFontsFixed=!0}},m.prototype.imagePage
Content=function(t){return str="<img src='"+t+"'></img>"},m.prototype.load=funct
ion(){if(this.currentlyLoading=!0,this.loadHasStarted=!0,this.innerPageElem)thro
w"We already have loaded this page, but it looks like you called loadPage again"
;this.loadFonts();var e="page"+this.pageNum+"_callback";if(window[e])try{delete
window[e]}catch(n){window[e]=void 0}if("rasterize"==this.docManager.displayType)
return delete this.currentlyLoading,void this._setContainerContents(this.imagePa
geContent(this.contentUrl));var i=document.createElement("script"),r=this;window
[e]=function(n){document.body.removeChild(i);var o=n[0];delete r.currentlyLoadin
g,r._setContainerContents(o),"undefined"!=typeof t&&($container=t("#"+r.containe
rElem.id),skip_blur=Scribd.eligible_for_archive_blur_test&&(document.referrer.ma
tch(/google|bing|yahoo/i)||window.location.hash.match(/\bscribd\b/))&&"control"!
=(Scribd.nway_test_choice_value("archive_blur")||"control"),!skip_blur&&$contain
er.hasClass("blurred_page")&&r.docManager.doDynamicBlurring(r.containerElem.id))
,r.docManager.fireEvent("pageLoaded",r.containerElem);try{delete window[e]}catch

(s){window[e]=void 0}},i.src=this.contentUrl,i.type="text/javascript",i.charset=
"UTF-8",document.body.appendChild(i)},m.prototype.remove=function(){if(this.inne
rPageElem){var t=this.innerPageElem.parentNode;t.removeChild(this.innerPageElem)
,delete this.innerPageElem,delete this.currentLoading,delete this.loadHasStarted
,this._linksTurnedOn=!1,this._imagesTurnedOn=!1,this._svgFontsFixed=!1}},m.proto
type.display=function(t,e){if((!this.displayOn||this.displayDirty)&&(this.displa
yOn=!0,!this.currentlyLoading)){if(!this.innerPageElem)return this.loadHasStarte
d?void 0:t?void this.load():void 0;this.displayDirty=!1,e||(this._linksTurnedOn|
|this.turnOnLinks(),this._imagesTurnedOn||this.turnOnImages(),this._svgFontsFixe
d||this.fixSVGFonts()),this.loadFonts(),this._innerPageVisible||(this.containerE
lem.className=this.containerElem.className.replace(/placeholder|not_visible/g,""
),this._innerPageVisible=!0,e||(this._fitContentsToWidth(),this.innerPageElem.st
yle.display="block"))}},m.prototype.hide=function(){(this.displayOn||this.displa
yDirty)&&(this.displayOn=!1,this.innerPageElem&&(this.displayDirty=!1,this.conta
inerElem.className=this.containerElem.className+" not_visible",this._innerPageVi
sible=!1,this.innerPageElem.style.display="none"))},m.prototype.setLoadFontGroup
=function(t){t.addPage(this),this.loadFontGroup=t},m.prototype.loadFonts=functio
n(){this.loadFontGroup.load()};var F=!!(document.all&&/msie 6./i.test(navigator.
appVersion)&&window.ActiveXObject);return m.prototype._setZoomScale=function(t){
var e=this.innerPageElem;switch(L){case O:e.style.WebkitTransform="scale("+t+")"
,e.style.WebkitTransformOrigin="top left";break;case $:e.style.MozTransform="sca
le("+t+")",e.style.MozTransformOrigin="top left";break;case j:e.style.OTransform
="scale("+t+")",e.style.OTransformOrigin="top left";break;case R:if(e.originalZo
om||(e.originalZoom="normal"==e.currentStyle.zoom?1:parseFloat(e.currentStyle.zo
om)/100,F&&!this.docManager._isEmbed&&(e.originalZoom*=1.35)),e.style.zoom=e.ori
ginalZoom*t*100+"%",F){var n=this.innerPageElem;setTimeout(function(){n.style.ma
rginLeft=""===n.style.marginLeft?0:""},500)}break;default:throw"Unknown scale me
thod "+L}},m.prototype._fitContentsToWidth=function(){if(this._targetWidth&&this
.innerPageElem&&this._innerPageVisible){var t=this._targetWidth/this.origWidth;t
his._setZoomScale(t),this._targetWidth=null}},m.prototype.setWidth=function(t){v
ar e=Math.ceil(t/this.origWidth*this.origHeight);this.containerElem.style.width=
t+"px",this.containerElem.style.height=e+"px",this._targetWidth=t,this._fitConte
ntsToWidth()},m.prototype.setBounds=function(t,e){this.origWidth/this.origHeight
>t/e?e=Math.ceil(t/this.origWidth*this.origHeight):t=Math.ceil(e/this.origHeight
*this.origWidth),this.containerElem.style.width=t+"px",this.containerElem.style.
height=e+"px",this._targetWidth=t,this._fitContentsToWidth()},m.prototype.turnOn
Images=function(){if(!this.innerPageElem)throw"Can't turn on images for a page t
hat's not loaded";if(this._imagesTurnedOn)throw"Images have already been turned
on for this document";this._imagesTurnedOn=!0;for(var t=this.innerPageElem.getEl
ementsByTagName("img"),e=0;e<t.length;e++){var n=t[e];if(n.className.toLowerCase
().search("absimg")>-1&&!n.src){var i=this.docManager.subImageSrc(n.getAttribute
("orig"));this.docManager.enablePNGHack?(n.style.filter="progid:DXImageTransform
.Microsoft.AlphaImageLoader(src='"+i+"', sizingMethod='scale')",n.src=r):n.src=i
,n.removeAttribute("orig"),n.style.display="block"}}},m.prototype.turnOnLinks=fu
nction(){if(!this.innerPageElem)throw"Can't turn on links for a page that's not
loaded";if(this._linksTurnedOn)throw"Links have already been turned on for this
document";this._linksTurnedOn=!0;for(var t=this.docManager,e=function(e){return
function(){t.gotoPage(e.substring(4))}},n=this.innerPageElem.getElementsByTagNam
e("a"),i=0;i<n.length;i++){var r=n[i];if(r.className.toLowerCase().search("ll")>
-1&&!r.href){var o=r.getAttribute("orig");if(o){var s=T.decode(o).replace(/^j[\W
]*a[\W]*v[\W]*a[\W]*s[\W]*c[\W]*r[\W]*i[\W]*p[\W]*t[\W]*:|^f[\W]*i[\W]*l[\W]*e[\
W]*:/gi,"");s.search(/^page/)>-1?r.onclick=e(s):(s.search(/^mailto:/)>=0||s.sear
ch(/^(http|ftp)/)<0&&(s="http://"+s),r.target="_blank",P(r,s),r.rel="nofollow")}
}}},h(g,["vertical","horizontal","either","resize"]),g.prototype._makeViewRect=f
unction(){var t=this.container,e=document.documentElement,n=t.scrollTop||t.scrol
lY||t.pageYOffset||e.scrollTop,i=t.scrollLeft||t.scrollX||t.pageXOffset||e.scrol
lLeft,r=t.clientWidth||t.innerWidth||e.clientWidth,o=t.clientHeight||t.innerHeig
ht||e.clientHeight,s=i+r,a=n+o,c={top:n,left:i,right:s,bottom:a,width:r,height:o
};if(this.container!=window){var l=this.container.getBoundingClientRect&&this.co
ntainer.getBoundingClientRect();l&&(c.offsetX=l.left,c.offsetY=l.top)}return c},

g.prototype._updateViewRect=function(){var t=this.viewRect;this.viewRect=this._m
akeViewRect();var e=!t||t.left!=this.viewRect.left||t.width!=this.viewRect.width
,n=!t||t.top!=this.viewRect.top||t.height!=this.viewRect.height;return{xChanged:
e,yChanged:n}},g.prototype._eventHandler=function(t){var e=this._updateViewRect(
);"resize"!=t&&"both"!=t||!e.xChanged&&!e.yChanged||this.fireEvent("resize",this
.viewRect),(e.xChanged||e.yChanged)&&this.fireEvent("either",this.viewRect),e.xC
hanged&&this.fireEvent("horizontal",this.viewRect),e.yChanged&&this.fireEvent("v
ertical",this.viewRect)},g.prototype.enable=function(){if(this.enabled)throw"Vie
wportManager has already been enabled";if(this.enabled=!0,this.container=x.scrol
lParent||window,this._eventHandler("both"),window.addEventListener){this.contain
er.addEventListener("resize",this._resizeCallback,!1);var t=x.scrollParent?this.
container:window.document;t.addEventListener("scroll",this._scrollCallback,!1)}e
lse window.attachEvent&&(this.container.attachEvent("onresize",this._resizeCallb
ack),this.container.attachEvent("onscroll",this._scrollCallback))},g.prototype.d
isable=function(){if(!this.enabled)throw"ViewportManager has already been disabl
ed";this.enabled=!1,this.container.removeEventListener?(window.removeEventListen
er("resize",this._resizeCallback,!1),this.container.removeEventListener("scroll"
,this._scrollCallback,!1)):window.detatchEvent&&(window.detatchEvent("onresize",
this._resizeCallback),this.container.detatchEvent("onscroll",this._scrollCallbac
k))},v.prototype.name=function(){return this._name},v.prototype.register=functio
n(t,e){if(this.registered)throw"This ViewManager is already registered";this.reg
istered=!0,this.documentManager=t,this.viewportManager=e,this._currentPageWidth=
defaultViewWidth,this._currentZoomMultiplier=1,this._updatePageWidths();var n=th
is.documentManager.firstVisiblePage;this._register(t,e),n&&this.documentManager.
gotoPage(n.pageNum,{}),t.view_manager_deferred&&t.view_manager_deferred.resolve(
t)},v.prototype._zoomedPageWidth=function(){return this._currentPageWidth*this._
currentZoomMultiplier},v.prototype._updatePageWidths=function(){this.documentMan
ager.setPageWidths(this._zoomedPageWidth())},v.prototype.isTopPageInView=functio
n(){return!0},v.prototype._register=function(){},v.prototype.unregister=function
(){if(!this.registered)throw"This ViewManager is already unregistered";this.isFu
llscreen&&this.exitFullscreen(),this._checkBodyWidth(),this._unregister(),this.r
egistered=!1,delete this.documentManager,delete this.viewportManager},v.prototyp
e._unregister=function(){},v.prototype._pagingStep=function(){return 1},v.protot
ype.gotoPage=function(t,e){if(!this.registered)throw"ViewManager must be registe
rd to call gotoPage";this._gotoPage(t,e)},v.prototype._gotoPage=function(){},v.p
rototype._fireHideExtras=function(){this.documentManager._fireHideExtras(),this.
_extrasHidden=!0},v.prototype._fireShowExtras=function(){this.documentManager._f
ireShowExtras(),this._extrasHidden=!1},v.prototype.enterFullscreen=function(){if
(this.isFullscreen)throw"Fullscreen is already set";this._checkBodyWidth(),this.
viewportManager.addEvent("resize",this._fullscreenResizedCallback),this._fireHid
eExtras(),this.resetZoom(),this._enterFullscreen(),this._fullscreenResized(this.
viewportManager.viewRect),this._currentPageWidth=this.viewportManager.viewRect.w
idth,this.isFullscreen=!0;var t=this.documentManager.firstVisiblePage;t&&this.do
cumentManager.gotoPage(t.pageNum,{}),this.documentManager._fireEnteredFullscreen
()},v.prototype.exitFullscreen=function(){if(!this.isFullscreen)throw"Fullscreen
is not set";this.viewportManager.removeEvent("resize",this._fullscreenResizedCa
llback),this._fireShowExtras(),this.resetZoom(),this._exitFullscreen(),this.isFu
llscreen=!1;var t=this.documentManager.firstVisiblePage;t&&this.documentManager.
gotoPage(t.pageNum,{}),this.documentManager._fireExitedFullscreen()},v.prototype
._viewBarWidth=function(){return this._extrasHidden?0:this.documentManager.optio
ns.extrasWidth},v.prototype._enterFullscreen=function(){},v.prototype._exitFulls
creen=function(){},v.prototype._fullscreenResized=function(){},v.prototype._scro
llWithZoom=function(t,e){window.scrollTo(0,t.top*e)},v.prototype.zoom=function(t
){var e=this.viewportManager.viewRect;e&&(this._currentZoomMultiplier*=t,this._c
heckBodyWidth(),this._updatePageWidths(),this.documentManager.setIsScrolling(!0)
,this._scrollWithZoom(e,t),this._zoomed(),this.documentManager.setIsScrolling(!1
),this.documentManager._fireZoomed(t))},v.prototype._zoomed=function(){},v.proto
type.resetZoom=function(){this._currentZoomMultiplier=1,this._checkBodyWidth(),t
his._updatePageWidths(),this._zoomed()},v.prototype._checkBodyWidth=function(){i
f(!x.scrollParent&&0!=x.updateBodyWidth){var t=document.documentElement.clientWi

dth,e=this._zoomedPageWidth()+this._viewBarWidth()+10;globalHeader=document.getE
lementById("global_header"),e>t?(document.body.style.width=e+"px",globalHeader&&
(globalHeader.style.width=t+"px")):(document.body.style.width="100%",globalHeade
r&&(globalHeader.style.width="100%"))}},y.prototype=new v,y.prototype._register=
function(){this._prepareDisplay()},y.prototype._unregister=function(){for(var e
in this.documentManager.pages)if(this.documentManager.pages.hasOwnProperty(e)){v
ar n=this.documentManager.pages[e];t(n.containerElem).removeClass("book_view"),n
.containerElem.style.display=""}},y.prototype._prepareDisplay=function(){for(var
e in this.documentManager.pages)if(this.documentManager.pages.hasOwnProperty(e)
){var n=this.documentManager.pages[e];t(n.containerElem).addClass("book_view"),n
.containerElem.style.display="none",n.hide()}this.documentManager.setPageMissing
ModulesVisible(!1),this.documentManager.gotoPage(this.documentManager.currentPag
eNum()||1)},y.prototype._zoomed=function(){this.documentManager.pages[this.curre
ntPageId]},y.prototype._updatePageWidths=function(){this.documentManager.setPage
Widths(this._zoomedPageWidth()/2)},y.prototype._pagingStep=function(){return 2},
y.prototype._showPage=function(t){var e=this.documentManager.pages[t];e&&(e.isVi
sible=!0,e.display(!0),e.containerElem.style.display="")},y.prototype._hidePage=
function(t){var e=this.documentManager.pages[t];e&&(e.isVisible=!1,e.containerEl
em.style.display="none",e.hide())},y.prototype._gotoPage=function(t){t=parseInt(
t,10),t%2==1&&(t-=1);var e=null,n=null;"number"==typeof this.currentPageId&&(thi
s._hidePage(this.currentPageId),this._hidePage(this.currentPageId+1)),e=this.doc
umentManager.pages[t],n=this.documentManager.pages[t+1],(e||n)&&(this.currentPag
eId=t,this.isFullscreen&&this._setPageBounds(this.viewportManager.viewRect),this
._showPage(t),this._showPage(t+1),this.documentManager.visiblePagesChanged())},y
.prototype._setWidth=function(t){this._currentPageWidth=t,this.documentManager.s
etPageWidths(t)},y.prototype._fullscreenResized=function(t){this._setWidth(t.wid
th-o)},y.prototype._enterFullscreen=function(){this._previousPageWidth=this._cur
rentPageWidth||defaultViewWidth,b(this.documentManager.pages[this.currentPageId]
.containerElem,300)},y.prototype._exitFullscreen=function(){this._setWidth(defau
ltViewWidth),this._checkBodyWidth()},w.prototype=new v,w.prototype._register=fun
ction(){this._prepareDisplay();var t=document.getElementById("scroll_preventer")
;t&&(t.style.overflow="hidden",t.style.height="100%")},w.prototype._unregister=f
unction(){var t=document.getElementById("scroll_preventer");t&&(t.style.overflow
="visible",t.style.height="auto")},w.prototype._prepareDisplay=function(){for(va
r t in this.documentManager.pages)if(this.documentManager.pages.hasOwnProperty(t
)){var e=this.documentManager.pages[t];e.containerElem.style.display="none",e.hi
de()}this.documentManager.setPageMissingModulesVisible(!1),this.documentManager.
gotoPage(this.documentManager.currentPageNum()||1)},w.prototype._setPageBounds=f
unction(t){var e=this.documentManager.pages[this.currentPageId];e&&e.setBounds(t
.width,t.height)},w.prototype._gotoPage=function(t){if(this.documentManager.page
s.hasOwnProperty(t)){var e;this.currentPageId&&(e=this.documentManager.pages[thi
s.currentPageId],e&&(e.isVisible=!1,e.containerElem.style.display="none",e.hide(
))),this.currentPageId=t,e=this.documentManager.pages[t],this.isFullscreen&&this
._setPageBounds(this.viewportManager.viewRect),e.isVisible=!0,e.display(!0),e.co
ntainerElem.style.display="",e._updateBoundingRect(),this.documentManager.visibl
ePagesChanged()}},w.prototype._setWidth=function(t){this._currentPageWidth=t,thi
s.documentManager.setPageWidths(t)},w.prototype._fullscreenResized=function(t){t
his._setPageBounds(t)},w.prototype._enterFullscreen=function(){this._previousPag
eWidth=this._currentPageWidth||defaultViewWidth,b(this.documentManager.pages[thi
s.currentPageId].containerElem,300)},w.prototype._exitFullscreen=function(){this
._setWidth(defaultViewWidth),this._checkBodyWidth()},k.prototype=new v,k.prototy
pe._updateInViewport=function(t){var e=this.viewportManager.viewRect,n=t.boundin
gRect,i=t.isVisible;return t.isVisible=e&&n?n.left<e.right&&n.right>e.left&&n.to
p<e.bottom&&n.bottom>e.top:!1,this.adjacentVisiblePages=2,i!=t.isVisible},k.prot
otype.checkAndUpdateVisiblePages=function(){var t=!1;for(var e in this.pages)if(
this.pages.hasOwnProperty(e)){var n=this.pages[e],i=this._updateInViewport(n);t=
t||i}t?this.documentManager.visiblePagesChanged():this.documentManager.scheduleL
ogPageView(),this._updateDisplayOnPages()},k.prototype._updateDisplayOnPages=fun
ction(){if(this.documentManager.firstVisiblePage&&this.documentManager.lastVisib
lePage){var t=this.documentManager.firstVisiblePage.pageNum-this.adjacentVisible

Pages,e=this.documentManager.lastVisiblePage.pageNum+this.adjacentVisiblePages;f
or(var n in this.pages)if(this.pages.hasOwnProperty(n)){var i=this.pages[n];i&&(
i.pageNum>=t&&i.pageNum<=e?i.display():(i.hide(),this.documentManager.fireEvent(
"pageHide",i)))}}},k.prototype._zoomed=function(){this.checkAndUpdateVisiblePage
s()},k.prototype._register=function(t){this.pages=t.pages,this.viewportManager.a
ddEvent("vertical",this._verticalPositionChangeCallback);for(var e in this.pages
)if(this.pages.hasOwnProperty(e)){var n=this.documentManager.pages[e];n.containe
rElem.style.display=""}this.documentManager.setPageMissingModulesVisible(!0),thi
s.documentManager._updatePageBoundingRects(),this.checkAndUpdateVisiblePages()},
k.prototype.isTopPageInView=function(){var t=this.documentManager.firstVisiblePa
ge;return t?this.documentManager._expectedFirstPageNum>t.pageNum?!0:t.boundingRe
ct.top+5>=this.viewportManager.viewRect.top:!0},k.prototype._unregister=function
(){this.viewportManager.removeEvent("vertical",this._verticalPositionChangeCallb
ack),delete this.pages},k.prototype._gotoPage=function(t,e){if(e=e||{},this.page
s.hasOwnProperty(t)){var n=this.documentManager.pages[t];this.documentManager.se
tIsScrolling(!0);var i=this.documentManager.viewportManager.container;return n._
updateBoundingRect(),i==window?scrollTo(n.boundingRect.left,n.boundingRect.top-(
e.offset||0)):i.scrollTop=n.boundingRect.top-(e.offset||0),this.documentManager.
setIsScrolling(!1),this.documentManager.isScrolling||this.documentManager.visibl
ePagesChanged(),n.pageNum}},k.prototype._gotoNextPage=function(){this.documentMa
nager.firstVisiblePage&&this.documentManager.gotoPage(this.documentManager.first
VisiblePage.pageNum+1,{direction:1})},k.prototype._gotoPreviousPage=function(){t
his.documentManager.firstVisiblePage&&this.documentManager.gotoPage(this.documen
tManager.firstVisiblePage.pageNum-1,{direction:-1})},k.prototype._setWidth=funct
ion(t){var e=this.pagePosition();this._currentPageWidth=t,this._updatePageWidths
(),this._checkBodyWidth(),this.restorePosition(e)},k.prototype._fullscreenResize
d=function(){this._setWidth((window.innerWidth||document.documentElement.clientW
idth)-o)},k.prototype._enterFullscreen=function(){this._previousPageWidth=this._
currentWidth||defaultViewWidth},k.prototype._exitFullscreen=function(){this._set
Width(this._previousPageWidth)},k.prototype.pagePosition=function(){var e=t(this
.viewportManager.container);if(e.is(window)){var n=this.documentManager.currentP
ageNum()||1,i=t("#outer_page_"+n),r=0;return i.length&&(r=(t(window).scrollTop()
-i.offset().top)/i.height()),[n,r]}var o=this.documentManager.pages[this.documen
tManager.currentPageNum()||1],s=e.scrollTop(),a=e.scrollLeft(),c=(s-o.boundingRe
ct.top)/o.boundingRect.height,l=(a-o.boundingRect.left)/o.boundingRect.width;ret
urn[o.pageNum,c,l]},k.prototype.restorePosition=function(e){if(!this._disableRes
torePosition){var n=t(this.pages[e[0]].containerElem);if(this._gotoPage(e[0],{of
fset:-Math.floor(e[1]*n.height())}),null!=e[2]){var i=t(this.viewportManager.con
tainer);if(!t(i).is(window)){var r=e[2];r=Math.floor(r*n.width());var o=n.width(
)-i.width();i[0].scrollLeft=Math.min(o,r)}}}},k.prototype.zoom=function(t){var e
=this.viewportManager.viewRect;if(e){var n=this.pagePosition();this._currentZoom
Multiplier*=t,this._checkBodyWidth(),this._updatePageWidths(),this.restorePositi
on(n),this._zoomed(),this.documentManager._fireZoomed(t)}},h(x,["expectedFirstPa
geChanged","viewmodeChanged","enteredFullscreen","exitedFullscreen","hideExtras"
,"showExtras","zoomed","pageHide","pageLoaded","allPagesAdded","pageView","visib
lePagesChanged","viewmodeInitialized"]),x.prototype.disableRestorePosition=funct
ion(){this.viewManagers.scroll._disableRestorePosition=!0},x.prototype._fireZoom
ed=function(t){this.fireEvent("zoomed",t)},x.prototype.nextFontAggregatorHost=fu
nction(){return this._currentFontAggregatorHostIdx=(this._currentFontAggregatorH
ostIdx+1)%this.fontAggregatorHosts.length,this.fontAggregatorHosts[this._current
FontAggregatorHostIdx]},x.prototype._fireHideExtras=function(){this.fireEvent("h
ideExtras")},x.prototype._fireShowExtras=function(){this.fireEvent("showExtras")
},x.prototype.currentPageNum=function(){return this._expectedFirstPageNum},x.pro
totype.setupTestElements=function(){this._fontLoader.setupTestElements()},x.prot
otype.pageCount=function(){if(this.hasOwnProperty("_pageCount"))return this._pag
eCount;var t=0;for(var e in this.pages)this.pages.hasOwnProperty(e)&&t++;return
this._pageCount=t,this._pageCount},x.prototype.setupPaidDocument=function(t,e){t
his.allowedPages=t,this.originalPageCount=e,this._allowedPagesHash=[],this._maxi
mumAllowedPage=Math.max.apply(null,this.allowedPages),this._minimumAllowedPage=M
ath.min.apply(null,this.allowedPages),this._isPaidDocument=!0,this._pageMissingE

lements=[];for(var n=0;n<t.length;n++)this._allowedPagesHash[t[n]]=!0,(n>0&&t[n]
>t[n-1]+1||0===n&&1!=t[n])&&this._pageMissingElements.push("page_missing_explana
tion_"+t[n].toString());this._maximumAllowedPage!=this.originalPageCount&&this._
pageMissingElements.push("page_missing_explanation_"+(this.originalPageCount+1).
toString())},x.prototype.minimumPageNumber=function(){return"book"==this.viewMod
e()?0:1},x.prototype.maximumPageNumber=function(){return this.allowedPages?this.
originalPageCount:this.pageCount()},x.prototype.getClosestPageNumber=function(t,
e){if(!this.allowedPages)return t;if(this._allowedPagesHash[t])return t;if(t>=th
is._maximumAllowedPage)return this._maximumAllowedPage;if(t<=this._minimumAllowe
dPage)return this._minimumAllowedPage;for(var n=1;n<=this.originalPageCount;n++)
{if(0>=e&&this._allowedPagesHash[t-n]===!0)return t-n;if(e>=0&&t+n<this.original
PageCount&&this._allowedPagesHash[t+n]===!0)return t+n}},x.prototype.setPageMiss
ingModulesVisible=function(e){if("undefined"==typeof t&&"undefined"!=typeof scri
bd&&x.setJQuery(scribd.jQuery),this._isPaidDocument)for(var n=0;n<this._pageMiss
ingElements.length;n++){var i=t(this._pageMissingElements[n]);i&&(e?i.show():i.h
ide())}},x.prototype.getNextAvailablePage=function(t){return getClosestPageNumbe
r(t,1)},x.prototype.getPreviousAvailablePage=function(t){return getClosestPageNu
mber(t,-1)},x.prototype.flushFontQueue=function(){this._fontLoader.flushFontQueu
e()},x.prototype.visiblePagesChanged=function(){var t=[];for(var e in this.pages
)if(this.pages.hasOwnProperty(e)){var n=this.pages[e];n.isVisible&&t.push(n)}if(
t.length){t.sort(function(t,e){return t.pageNum<e.pageNum?-1:1}),this.fireEvent(
"visiblePagesChanged",t),this.visiblePages=t;var i=this.firstVisiblePage;this.fi
rstVisiblePage=t.length>0?t[0]:null,this.lastVisiblePage=t.length>0?t[t.length-1
]:null,this.isScrolling||(this._loadAdjacentFonts(),this._loadAdjacentPages()),(
this.firstVisiblePage===i||this.firstVisiblePage&&i)&&this.firstVisiblePage.page
Num==i.pageNum||!this.isScrolling&&this.firstVisiblePage&&this._updateExpectedFi
rstPage(this.firstVisiblePage.pageNum),this.scheduleLogPageView()}},x.prototype.
boundingRatioForPage=function(t){var e=this.viewportManager.viewRect,n=t.boundin
gRect,i=n.bottom-n.top,r=n.right-n.left;return{left:(e.left-n.left)/r,right:(e.r
ight-n.right)/r+1,top:S((e.top-n.top)/i+t.pageNum,t.pageNum,t.pageNum+1),bottom:
S((e.bottom-n.bottom)/i+t.pageNum+1,t.pageNum,t.pageNum+1)}},x.prototype.schedul
eLogPageView=function(){this.logPageViewTimout&&window.clearTimeout(this.logPage
ViewTimout);var t=this;this.logPageViewTimout=window.setTimeout(function(){t.log
PageView(),t.logPageViewTimout=null},1e3)},x.prototype.getVisibleBBox=function()
{var t={};if(this.firstVisiblePage){var e=this.boundingRatioForPage(this.firstVi
siblePage);t.left=e.left,t.right=e.right,t.top=e.top}if(this.lastVisiblePage){va
r n=this.boundingRatioForPage(this.lastVisiblePage);t.bottom=n.bottom}return t},
x.prototype.logPageView=function(){var t=this.getVisibleBBox();for(var e in t)t.
hasOwnProperty(e)&&(t[e]=C(t[e]));var n=window.$rat;if(n){var i;i="2"==window.RA
T_API_VERSION?[[t.left,t.top],[t.right,t.bottom]]:"("+t.left+" "+t.top+") ("+t.r
ight+" "+t.bottom+")",n("fourgen.viewchange",i)}return this.fireEvent("pageView"
),t},x.prototype._updateExpectedFirstPage=function(t){this._expectedFirstPageNum
=t,this.fireEvent("expectedFirstPageChanged",this._expectedFirstPageNum)},x.prot
otype._loadAdjacentFonts=function(){if(this.firstVisiblePage&&this.lastVisiblePa
ge)for(var t=this.firstVisiblePage.pageNum-i,e=this.lastVisiblePage.pageNum+i,n=
t;e>=n;n++){var r=this.pages[n];r&&r.loadFonts()}},x.prototype._loadAdjacentPage
s=function(){if(this.firstVisiblePage&&this.lastVisiblePage){for(var t=this.firs
tVisiblePage.pageNum-n,e=this.lastVisiblePage.pageNum+n,i=t;e>=i;i++){var r=this
.pages[i];r&&!r.loadHasStarted&&(r.load(),this.mobile&&r.setWidth(this._pageWidt
hs))}this.mobile&&this._removeUnusedPages()}},x.prototype._removeUnusedPages=fun
ction(){for(var t=this.firstVisiblePage.pageNum-n,e=this.lastVisiblePage.pageNum
+n,i=this.pages,r=n+1;i[r];)(t>r||r>e)&&i[r].remove(),r++},x.prototype._updatePa
geBoundingRects=function(){for(var t in this.pages)this.pages.hasOwnProperty(t)&
&this.pages[t]._updateBoundingRect()},x.prototype.removeInsteadOfBlurring=functi
on(){return/iPhone|iPod|iPad|Android|BlackBerry/.test(navigator.userAgent)?!0:"u
ndefined"==typeof Scribd||"undefined"==typeof t?!0:!1},x.prototype.addPage=funct
ion(t){if(!t.blur||!this.removeInsteadOfBlurring()){if(void 0===t.pageNum)throw"
must have pageNum param";t.docManager=this;var e=new m(t);return this.pages[t.pa
geNum]=e,this._pageWidths&&e.setWidth(this._pageWidths),this.currentFontGroup.is
Full()&&(this.currentFontGroup=this.currentFontGroup.newNextGroup()),e.setLoadFo

ntGroup(this.currentFontGroup),e}t.containerElem.parentNode.removeChild(t.contai
nerElem)},x.prototype.setIsScrolling=function(t){t?this._scrollingCount+=1:this.
_scrollingCount-=1,this._scrollingCount<0&&(this._scrollingCount=0),this.isScrol
ling=0===this._scrollingCount?!1:!0},x.prototype.setViewManager=function(t,e){if
(this._currentViewManager)this._setViewManager(t),"function"==typeof e&&e();else
{var n=this;this.addEvent("viewmodeInitialized",function(){n.setViewManager(t,e)
})}},x.prototype._setViewManager=function(t,e){e||this._currentViewManager.unreg
ister();var n=this._currentViewManager;this._currentViewManager=this.viewManager
s[t],this._currentViewManager.register(this,this.viewportManager),this.fireEvent
("viewmodeChanged",this.viewMode(),n?n.name():null)},x.prototype.setInitialViewM
anager=function(t){if(this._currentViewManager)throw"This should be called befor
e any view manager exists";this._setViewManager(t,!0),this.fireEvent("viewmodeIn
itialized",this.viewMode(),null)},x.prototype.setDefaultWidth=function(t){this._
currentViewManager._currentPageWidth=t,this._currentViewManager._currentZoomMult
iplier=1,this._currentViewManager._updatePageWidths()},x.prototype.subImageSrc=f
unction(t){var e,n=0;for(e=0;e<t.length;e++)n+=t.charCodeAt(e);var i=this._image
DomainSubstitutionList[n%this._imageDomainSubstitutionList.length];return t.repl
ace(this._imageDomainSubstitutionFrom,i)},x.prototype.allPagesAdded=function(){i
f(this._allPagesAddedCalled)throw"can only call allPagesAdded once";this.viewpor
tManager.enable(),this._updatePageBoundingRects(),this.setInitialViewManager(thi
s.defaultViewMode),this.fireEvent("allPagesAdded")},x.prototype.setEmbeddedDoc=f
unction(t){this._isEmbed="True"===t},x.prototype.setPageWidths=function(t){this.
_pageWidths=t;for(var e in this.pages)this.pages.hasOwnProperty(e)&&this.pages[e
].setWidth(this._pageWidths);this._updatePageBoundingRects()},x.prototype.addFon
t=function(t,e,n,i,r,o){this._fontLoader.addFont(t,e,n,i,r,o)},x.prototype.setNu
mFonts=function(t){this._fontLoader.setNumFonts(t)},x.prototype.initStyles=funct
ion(){this._fontLoader.initStyles()},x.prototype.gotoPage=function(t,e){var n=!M
(t),i=null;if(n&&(i=+(t%1).toFixed(2),t=Math.floor(t)),!(t<this.minimumPageNumbe
r()||t>this.maximumPageNumber())){e||(e={}),n&&void 0==e.frac&&(e.frac=i);var r=
e.direction||0,o=this.pages[t];void 0===o&&this._isPaidDocument&&(t=this.getClos
estPageNumber(t,r),o=this.pages[t]),this.mobile&&this.pages[t]&&this.pages[t].se
tWidth(this._pageWidths),this._updateExpectedFirstPage(t),this._currentViewManag
er.gotoPage(this._expectedFirstPageNum,e)}},x.prototype.gotoPreviousPage=functio
n(){var t=this._currentViewManager._pagingStep();this._currentViewManager.isTopP
ageInView()?this.gotoPage(this._expectedFirstPageNum-t,{direction:-1}):this.goto
Page(this._expectedFirstPageNum,{direction:-1})},x.prototype.gotoNextPage=functi
on(){var t=this._currentViewManager._pagingStep();this.gotoPage(this._expectedFi
rstPageNum+t,{direction:1})},x.prototype.enterFullscreen=function(){this._curren
tViewManager.enterFullscreen()},x.prototype.exitFullscreen=function(){this._curr
entViewManager.exitFullscreen()},x.prototype.isFullscreen=function(){return this
._currentViewManager.isFullscreen},x.prototype._fireEnteredFullscreen=function()
{this.fireEvent("enteredFullscreen")},x.prototype._fireExitedFullscreen=function
(){this.fireEvent("exitedFullscreen")},x.prototype.viewMode=function(){return th
is._currentViewManager?this._currentViewManager.name():null},x.prototype.zoom=fu
nction(t){this._currentViewManager.zoom(t)},x.prototype.resetZoom=function(){thi
s._currentViewManager.resetZoom()},x.prototype.setImageDomainSubstitution=functi
on(t,e){this._imageDomainSubstitutionFrom=t,this._imageDomainSubstitutionList=e}
,x.prototype.disableViewManagerResizeWidth=function(){v.prototype._checkBodyWidt
h=function(){}},x.prototype.disable=function(){this.disabled||(this.disabled=!0,
this.viewportManager.disable())},x.prototype.doDynamicBlurring=function(e){var n
,i,r;this.removeInsteadOfBlurring()||(n=t("#"+e),n.on("dragstart, selectstart, c
ontextmenu",function(t){t.preventDefault()}),n.find("*").andSelf().attr("unselec
table","on"),r=Modernizr&&Modernizr.textshadow&&t.browser&&(t.browser.webkit&&!t
.browser.safari||t.browser.mozilla||t.browser.opera)&&!(t.browser.mozilla===!0&&
parseFloat(t.browser.version)<4&&parseFloat(t.browser.version)>=3),t.browser||co
nsole.log("Hi there, it seems as though you've upgraded jQuery and browser detec
tion is no longer working in 4gen.js"),t(document).ready(function(){i=t(t("#page
_blur_promo_template").html()).removeAttr("id").appendTo("#"+e).css("zIndex",8).
show(),not_shown_text=I18n.t("pdfs.show.page_page_is_not_shown",{page:e.split("_
").pop()}),i.find(".gap").html(not_shown_text),r||i.find(".page-blur-promo-overl

ay").height("100%").width("100%").css("zIndex",7).show()}),r&&(n.find(".text_lay
er").css({color:"transparent","text-shadow":"0px 0px 70px black"}),n.find(".text
_layer [style]").css({color:"transparent"}),n.find(".image_layer").imagesLoaded(
function(){n.find(".image_layer img").each(function(){this.height>250&&this.widt
h>250&&t(this).css({opacity:.04})})})))},x.setJQuery=function(e){t=e},x.ScrollVi
ewManager=k,x.SlideViewManager=w,x.BookViewManager=y,x}();window.DocumentManager
=d},void 0===window.DocumentManager&&init_4gen();
/* public/javascripts/storage.js @ 1484174566 */
window.localStorage&&window.sessionStorage||function(){var t=function(t){functio
n e(t,e,n){var i,r;n?(i=new Date,i.setTime(i.getTime()+24*n*60*60*1e3),r="; expi
res="+i.toGMTString()):r="",document.cookie=t+"="+e+r+"; path=/"}function n(t){v
ar e,n,i=t+"=",r=document.cookie.split(";");for(e=0;e<r.length;e++){for(n=r[e];"
"==n.charAt(0);)n=n.substring(1,n.length);if(0==n.indexOf(i))return n.substring
(i.length,n.length)}return null}function i(n){n=JSON.stringify(n),"session"==t?w
indow.name=n:e("localStorage",n,365)}function r(){"session"==t?window.name="":e(
"localStorage","",365)}function o(){var e="session"==t?window.name:n("localStora
ge");return e?JSON.parse(e):{}}function s(){var t=0;for(var e in a)a.hasOwnPrope
rty(e)&&(t+=1);return t}var a=o();return{clear:function(){a={},r(),this.length=s
()},getItem:function(t){return t=encodeURIComponent(t),void 0===a[t]?null:a[t]},
key:function(t){var e=0;for(var n in a){if(e==t)return decodeURIComponent(n);e++
}return null},removeItem:function(t){t=encodeURIComponent(t),delete a[t],i(a),th
is.length=s()},setItem:function(t,e){t=encodeURIComponent(t),a[t]=String(e),i(a)
,this.length=s()},length:0}};window.localStorage||(window.localStorage=new t("lo
cal")),window.sessionStorage||(window.sessionStorage=new t("session"))}();
/* public/javascripts/modernizr.custom.12353.js @ 1484174566 */
window.Modernizr=function(t,e,n){function i(t){v.cssText=t}function r(t,e){retur
n typeof t===e}function o(t,e){return!!~(""+t).indexOf(e)}function s(t,e){for(va
r i in t){var r=t[i];if(!o(r,"-")&&v[r]!==n)return"pfx"==e?r:!0}return!1}functio
n a(t,e,i){for(var o in t){var s=e[t[o]];if(s!==n)return i===!1?t[o]:r(s,"functi
on")?s.bind(i||e):s}return!1}function c(t,e,n){var i=t.charAt(0).toUpperCase()+t
.slice(1),o=(t+" "+w.join(i+" ")+i).split(" ");return r(e,"string")||r(e,"undefi
ned")?s(o,e):(o=(t+" "+k.join(i+" ")+i).split(" "),a(o,e,n))}var l,u,d,h="2.8.2"
,p={},f=!0,_=e.documentElement,m="modernizr",g=e.createElement(m),v=g.style,b=({
}.toString," -webkit- -moz- -o- -ms- ".split(" ")),y="Webkit Moz O ms",w=y.split
(" "),k=y.toLowerCase().split(" "),x={},S=[],C=S.slice,T=function(t,n,i,r){var o
,s,a,c,l=e.createElement("div"),u=e.body,d=u||e.createElement("body");if(parseIn
t(i,10))for(;i--;)a=e.createElement("div"),a.id=r?r[i]:m+(i+1),l.appendChild(a);
return o=["&#173;",'<style id="s',m,'">',t,"</style>"].join(""),l.id=m,(u?l:d).i
nnerHTML+=o,d.appendChild(l),u||(d.style.background="",d.style.overflow="hidden"
,c=_.style.overflow,_.style.overflow="hidden",_.appendChild(d)),s=n(l,t),u?l.par
entNode.removeChild(l):(d.parentNode.removeChild(d),_.style.overflow=c),!!s},E={
}.hasOwnProperty;d=r(E,"undefined")||r(E.call,"undefined")?function(t,e){return
e in t&&r(t.constructor.prototype[e],"undefined")}:function(t,e){return E.call(t
,e)},Function.prototype.bind||(Function.prototype.bind=function(t){var e=this;if
("function"!=typeof e)throw new TypeError;var n=C.call(arguments,1),i=function()
{if(this instanceof i){var r=function(){};r.prototype=e.prototype;var o=new r,s=
e.apply(o,n.concat(C.call(arguments)));return Object(s)===s?s:o}return e.apply(t
,n.concat(C.call(arguments)))};return i}),x.textshadow=function(){return""===e.c
reateElement("div").style.textShadow},x.csstransforms=function(){return!!c("tran
sform")},x.csstransforms3d=function(){var t=!!c("perspective");return t&&"webkit
Perspective"in _.style&&T("@media (transform-3d),(-webkit-transform-3d){#moderni
zr{left:9px;position:absolute;height:3px;}}",function(e){t=9===e.offsetLeft&&3==
=e.offsetHeight}),t};for(var D in x)d(x,D)&&(u=D.toLowerCase(),p[u]=x[D](),S.pus
h((p[u]?"":"no-")+u));return p.addTest=function(t,e){if("object"==typeof t)for(v
ar i in t)d(t,i)&&p.addTest(i,t[i]);else{if(t=t.toLowerCase(),p[t]!==n)return p;
e="function"==typeof e?e():e,"undefined"!=typeof f&&f&&(_.className+=" "+(e?"":"

no-")+t),p[t]=e}return p},i(""),g=l=null,function(t,e){function n(t,e){var n=t.c


reateElement("p"),i=t.getElementsByTagName("head")[0]||t.documentElement;return
n.innerHTML="x<style>"+e+"</style>",i.insertBefore(n.lastChild,i.firstChild)}fun
ction i(){var t=v.elements;return"string"==typeof t?t.split(" "):t}function r(t)
{var e=g[t[_]];return e||(e={},m++,t[_]=m,g[m]=e),e}function o(t,n,i){if(n||(n=e
),u)return n.createElement(t);i||(i=r(n));var o;return o=i.cache[t]?i.cache[t].c
loneNode():f.test(t)?(i.cache[t]=i.createElem(t)).cloneNode():i.createElem(t),!o
.canHaveChildren||p.test(t)||o.tagUrn?o:i.frag.appendChild(o)}function s(t,n){if
(t||(t=e),u)return t.createDocumentFragment();n=n||r(t);for(var o=n.frag.cloneNo
de(),s=0,a=i(),c=a.length;c>s;s++)o.createElement(a[s]);return o}function a(t,e)
{e.cache||(e.cache={},e.createElem=t.createElement,e.createFrag=t.createDocument
Fragment,e.frag=e.createFrag()),t.createElement=function(n){return v.shivMethods
?o(n,t,e):e.createElem(n)},t.createDocumentFragment=Function("h,f","return funct
ion(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+i().join().replace
(/[\w\-]+/g,function(t){return e.createElem(t),e.frag.createElement(t),'c("'+t+'
")'})+");return n}")(v,e.frag)}function c(t){t||(t=e);var i=r(t);return v.shivCS
S&&!l&&!i.hasCSS&&(i.hasCSS=!!n(t,"article,aside,dialog,figcaption,figure,footer
,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}te
mplate{display:none}")),u||a(t,i),t}var l,u,d="3.7.0",h=t.html5||{},p=/^<|^(?:bu
tton|map|select|textarea|object|iframe|option|optgroup)$/i,f=/^(?:a|b|code|div|f
ieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|
tr|ul)$/i,_="_html5shiv",m=0,g={};!function(){try{var t=e.createElement("a");t.i
nnerHTML="<xyz></xyz>",l="hidden"in t,u=1==t.childNodes.length||function(){e.cre
ateElement("a");var t=e.createDocumentFragment();return"undefined"==typeof t.clo
neNode||"undefined"==typeof t.createDocumentFragment||"undefined"==typeof t.crea
teElement}()}catch(n){l=!0,u=!0}}();var v={elements:h.elements||"abbr article as
ide audio bdi canvas data datalist details dialog figcaption figure footer heade
r hgroup main mark meter nav output progress section summary template time video
",version:d,shivCSS:h.shivCSS!==!1,supportsUnknownElements:u,shivMethods:h.shivM
ethods!==!1,type:"default",shivDocument:c,createElement:o,createDocumentFragment
:s};t.html5=v,c(e)}(this,e),p._version=h,p._prefixes=b,p._domPrefixes=k,p._cssom
Prefixes=w,p.testProp=function(t){return s([t])},p.testAllProps=c,p.testStyles=T
,p.prefixed=function(t,e,n){return e?c(t,e,n):c(t,"pfx")},_.className=_.classNam
e.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+S.join(" "):""),p}(this,this.doc
ument),function(t,e,n){function i(t){return"[object Function]"==m.call(t)}functi
on r(t){return"string"==typeof t}function o(){}function s(t){return!t||"loaded"=
=t||"complete"==t||"uninitialized"==t}function a(){var t=g.shift();v=1,t?t.t?f(f
unction(){("c"==t.t?h.injectCss:h.injectJs)(t.s,0,t.a,t.x,t.e,1)},0):(t(),a()):v
=0}function c(t,n,i,r,o,c,l){function u(e){if(!p&&s(d.readyState)&&(b.r=p=1,!v&&
a(),d.onload=d.onreadystatechange=null,e)){"img"!=t&&f(function(){w.removeChild(
d)},50);for(var i in T[n])T[n].hasOwnProperty(i)&&T[n][i].onload()}}var l=l||h.e
rrorTimeout,d=e.createElement(t),p=0,m=0,b={t:i,s:n,e:o,a:c,x:l};1===T[n]&&(m=1,
T[n]=[]),"object"==t?d.data=n:(d.src=n,d.type=t),d.width=d.height="0",d.onerror=
d.onload=d.onreadystatechange=function(){u.call(this,m)},g.splice(r,0,b),"img"!=
t&&(m||2===T[n]?(w.insertBefore(d,y?null:_),f(u,l)):T[n].push(d))}function l(t,e
,n,i,o){return v=0,e=e||"j",r(t)?c("c"==e?x:k,t,e,this.i++,n,i,o):(g.splice(this
.i++,0,t),1==g.length&&a()),this}function u(){var t=h;return t.loader={load:l,i:
0},t}var d,h,p=e.documentElement,f=t.setTimeout,_=e.getElementsByTagName("script
")[0],m={}.toString,g=[],v=0,b="MozAppearance"in p.style,y=b&&!!e.createRange().
compareNode,w=y?p:_.parentNode,p=t.opera&&"[object Opera]"==m.call(t.opera),p=!!
e.attachEvent&&!p,k=b?"object":p?"script":"img",x=p?"script":k,S=Array.isArray||
function(t){return"[object Array]"==m.call(t)},C=[],T={},E={timeout:function(t,e
){return e.length&&(t.timeout=e[0]),t}};h=function(t){function e(t){var e,n,i,t=
t.split("!"),r=C.length,o=t.pop(),s=t.length,o={url:o,origUrl:o,prefixes:t};for(
n=0;s>n;n++)i=t[n].split("="),(e=E[i.shift()])&&(o=e(o,i));for(n=0;r>n;n++)o=C[n
](o);return o}function s(t,r,o,s,a){var c=e(t),l=c.autoCallback;c.url.split(".")
.pop().split("?").shift(),c.bypass||(r&&(r=i(r)?r:r[t]||r[s]||r[t.split("/").pop
().split("?")[0]]),c.instead?c.instead(t,r,o,s,a):(T[c.url]?c.noexec=!0:T[c.url]
=1,o.load(c.url,c.forceCSS||!c.forceJS&&"css"==c.url.split(".").pop().split("?")
.shift()?"c":n,c.noexec,c.attrs,c.timeout),(i(r)||i(l))&&o.load(function(){u(),r

&&r(c.origUrl,a,s),l&&l(c.origUrl,a,s),T[c.url]=2})))}function a(t,e){function n
(t,n){if(t){if(r(t))n||(d=function(){var t=[].slice.call(arguments);h.apply(this
,t),p()}),s(t,d,e,0,l);else if(Object(t)===t)for(c in a=function(){var e,n=0;for
(e in t)t.hasOwnProperty(e)&&n++;return n}(),t)t.hasOwnProperty(c)&&(!n&&!--a&&(
i(d)?d=function(){var t=[].slice.call(arguments);h.apply(this,t),p()}:d[c]=funct
ion(t){return function(){var e=[].slice.call(arguments);t&&t.apply(this,e),p()}}
(h[c])),s(t[c],d,e,c,l))}else!n&&p()}var a,c,l=!!t.test,u=t.load||t.both,d=t.cal
lback||o,h=d,p=t.complete||o;n(l?t.yep:t.nope,!!u),u&&n(u)}var c,l,d=this.yepnop
e.loader;if(r(t))s(t,0,d,0);else if(S(t))for(c=0;c<t.length;c++)l=t[c],r(l)?s(l,
0,d,0):S(l)?h(l):Object(l)===l&&a(l,d);else Object(t)===t&&a(t,d)},h.addPrefix=f
unction(t,e){E[t]=e},h.addFilter=function(t){C.push(t)},h.errorTimeout=1e4,null=
=e.readyState&&e.addEventListener&&(e.readyState="loading",e.addEventListener("D
OMContentLoaded",d=function(){e.removeEventListener("DOMContentLoaded",d,0),e.re
adyState="complete"},0)),t.yepnope=u(),t.yepnope.executeStack=a,t.yepnope.inject
Js=function(t,n,i,r,c,l){var u,d,p=e.createElement("script"),r=r||h.errorTimeout
;p.src=t;for(d in i)p.setAttribute(d,i[d]);n=l?a:n||o,p.onreadystatechange=p.onl
oad=function(){!u&&s(p.readyState)&&(u=1,n(),p.onload=p.onreadystatechange=null)
},f(function(){u||(u=1,n(1))},r),c?p.onload():_.parentNode.insertBefore(p,_)},t.
yepnope.injectCss=function(t,n,i,r,s,c){var l,r=e.createElement("link"),n=c?a:n|
|o;r.href=t,r.rel="stylesheet",r.type="text/css";for(l in i)r.setAttribute(l,i[l
]);s||(_.parentNode.insertBefore(r,_),f(n,0))}}(this,document),Modernizr.load=fu
nction(){yepnope.apply(window,[].slice.call(arguments,0))};
/* public/javascripts/imagesloaded.pkgd.js @ 1484174566 */
!function(t){"use strict";function e(){}function n(t,e){if(r)return e.indexOf(t)
;for(var n=e.length;n--;)if(e[n]===t)return n;return-1}var i=e.prototype,r=Array
.prototype.indexOf?!0:!1;i._getEvents=function(){return this._events||(this._eve
nts={})},i.getListeners=function(t){var e,n,i=this._getEvents();if("object"==typ
eof t){e={};for(n in i)i.hasOwnProperty(n)&&t.test(n)&&(e[n]=i[n])}else e=i[t]||
(i[t]=[]);return e},i.getListenersAsObject=function(t){var e,n=this.getListeners
(t);return n instanceof Array&&(e={},e[t]=n),e||n},i.addListener=function(t,e){v
ar i,r=this.getListenersAsObject(t);for(i in r)r.hasOwnProperty(i)&&-1===n(e,r[i
])&&r[i].push(e);return this},i.on=i.addListener,i.defineEvent=function(t){retur
n this.getListeners(t),this},i.defineEvents=function(t){for(var e=0;e<t.length;e
+=1)this.defineEvent(t[e]);return this},i.removeListener=function(t,e){var i,r,o
=this.getListenersAsObject(t);for(r in o)o.hasOwnProperty(r)&&(i=n(e,o[r]),-1!==
i&&o[r].splice(i,1));return this},i.off=i.removeListener,i.addListeners=function
(t,e){return this.manipulateListeners(!1,t,e)},i.removeListeners=function(t,e){r
eturn this.manipulateListeners(!0,t,e)},i.manipulateListeners=function(t,e,n){va
r i,r,o=t?this.removeListener:this.addListener,s=t?this.removeListeners:this.add
Listeners;if("object"!=typeof e||e instanceof RegExp)for(i=n.length;i--;)o.call(
this,e,n[i]);else for(i in e)e.hasOwnProperty(i)&&(r=e[i])&&("function"==typeof
r?o.call(this,i,r):s.call(this,i,r));return this},i.removeEvent=function(t){var
e,n=typeof t,i=this._getEvents();if("string"===n)delete i[t];else if("object"===
n)for(e in i)i.hasOwnProperty(e)&&t.test(e)&&delete i[e];else delete this._event
s;return this},i.emitEvent=function(t,e){var n,i,r,o=this.getListenersAsObject(t
);for(i in o)if(o.hasOwnProperty(i))for(n=o[i].length;n--;)r=e?o[i][n].apply(nul
l,e):o[i][n](),r===!0&&this.removeListener(t,o[i][n]);return this},i.trigger=i.e
mitEvent,i.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return
this.emitEvent(t,e)},"function"==typeof define&&define.amd?define(function(){re
turn e}):t.EventEmitter=e}(this),function(t){"use strict";var e=document.documen
tElement,n=function(){};e.addEventListener?n=function(t,e,n){t.addEventListener(
e,n,!1)}:e.attachEvent&&(n=function(e,n,i){e[n+i]=i.handleEvent?function(){var e
=t.event;e.target=e.target||e.srcElement,i.handleEvent.call(i,e)}:function(){var
n=t.event;n.target=n.target||n.srcElement,i.call(e,n)},e.attachEvent("on"+n,e[n
+i])});var i=function(){};e.removeEventListener?i=function(t,e,n){t.removeEventL
istener(e,n,!1)}:e.detachEvent&&(i=function(t,e,n){t.detachEvent("on"+e,t[e+n]);
try{delete t[e+n]}catch(i){t[e+n]=void 0}});var r={bind:n,unbind:i};"function"==
typeof define&&define.amd?define(r):t.eventie=r}(this),function(t){"use strict";

function e(t,e){for(var n in e)t[n]=e[n];return t}function n(t){return"[object A


rray]"===c.call(t)}function i(t){var e=[];if(n(t))e=t;else if("number"==typeof t
.length)for(var i=0,r=t.length;r>i;i++)e.push(t[i]);else e.push(t);return e}func
tion r(t,n){function r(t,n,s){if(!(this instanceof r))return new r(t,n);"string"
==typeof t&&(t=document.querySelectorAll(t)),this.elements=i(t),this.options=e({
},this.options),"function"==typeof n?s=n:e(this.options,n),s&&this.on("always",s
),this.getImages(),o&&(this.jqDeferred=new o.Deferred);var a=this;setTimeout(fun
ction(){a.check()})}function c(t){this.img=t}r.prototype=new t,r.prototype.optio
ns={},r.prototype.getImages=function(){this.images=[];for(var t=0,e=this.element
s.length;e>t;t++){var n=this.elements[t];"IMG"===n.nodeName&&this.addImage(n);fo
r(var i=n.querySelectorAll("img"),r=0,o=i.length;o>r;r++){var s=i[r];this.addIma
ge(s)}}},r.prototype.addImage=function(t){var e=new c(t);this.images.push(e)},r.
prototype.check=function(){function t(t,r){return e.options.debug&&a&&s.log("con
firm",t,r),e.progress(t),n++,n===i&&e.complete(),!0}var e=this,n=0,i=this.images
.length;if(this.hasAnyBroken=!1,!i)return void this.complete();for(var r=0;i>r;r
++){var o=this.images[r];o.on("confirm",t),o.check()}},r.prototype.progress=func
tion(t){this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emit("progress",th
is,t),this.jqDeferred&&this.jqDeferred.notify(this,t)},r.prototype.complete=func
tion(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emit(t,t
his),this.emit("always",this),this.jqDeferred){var e=this.hasAnyBroken?"reject":
"resolve";this.jqDeferred[e](this)}},o&&(o.fn.imagesLoaded=function(t,e){var n=n
ew r(this,t,e);return n.jqDeferred.promise(o(this))});var l={};return c.prototyp
e=new t,c.prototype.check=function(){var t=l[this.img.src];if(t)return void this
.useCached(t);if(l[this.img.src]=this,this.img.complete&&void 0!==this.img.natur
alWidth)return void this.confirm(0!==this.img.naturalWidth,"naturalWidth");var e
=this.proxyImage=new Image;n.bind(e,"load",this),n.bind(e,"error",this),e.src=th
is.img.src},c.prototype.useCached=function(t){if(t.isConfirmed)this.confirm(t.is
Loaded,"cached was confirmed");else{var e=this;t.on("confirm",function(t){return
e.confirm(t.isLoaded,"cache emitted confirmed"),!0})}},c.prototype.confirm=func
tion(t,e){this.isConfirmed=!0,this.isLoaded=t,this.emit("confirm",this,e)},c.pro
totype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},c.prototyp
e.onload=function(){this.confirm(!0,"onload"),this.unbindProxyEvents()},c.protot
ype.onerror=function(){this.confirm(!1,"onerror"),this.unbindProxyEvents()},c.pr
ototype.unbindProxyEvents=function(){n.unbind(this.proxyImage,"load",this),n.unb
ind(this.proxyImage,"error",this)},r}var o=t.jQuery,s=t.console,a="undefined"!=t
ypeof s,c=Object.prototype.toString;"function"==typeof define&&define.amd?define
(["eventEmitter","eventie"],r):t.imagesLoaded=r(t.EventEmitter,t.eventie)}(windo
w);
/* public/javascripts/ouibounce.js @ 1484174566 */
!function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof
exports?module.exports=e(require,exports,module):t.ouibounce=e()}(this,function(
){return function(t,e){"use strict";function n(t,e){return"undefined"==typeof t?
e:t}function i(t){var e=24*t*60*60*1e3,n=new Date;return n.setTime(n.getTime()+e
),"; expires="+n.toUTCString()}function r(){u()||(S.addEventListener("mouseleave
",o),S.addEventListener("mouseenter",s),S.addEventListener("keydown",a))}functio
n o(t){t.clientY>_||(x=setTimeout(d,g))}function s(){x&&(clearTimeout(x),x=null)
}function a(t){C||t.metaKey&&76===t.keyCode&&(C=!0,x=setTimeout(d,g))}function c
(t,e){return l()[t]===e}function l(){for(var t=document.cookie.split("; "),e={},
n=t.length-1;n>=0;n--){var i=t[n].split("=");e[i[0]]=i[1]}return e}function u(){
return c(w,"true")&&!f}function d(){u()||(t&&(t.style.display="block"),v(),h())}
function h(t){var e=t||{};"undefined"!=typeof e.cookieExpire&&(b=i(e.cookieExpir
e)),e.sitewide===!0&&(k=";path=/"),"undefined"!=typeof e.cookieDomain&&(y=";doma
in="+e.cookieDomain),"undefined"!=typeof e.cookieName&&(w=e.cookieName),document
.cookie=w+"=true"+b+y+k,S.removeEventListener("mouseleave",o),S.removeEventListe
ner("mouseenter",s),S.removeEventListener("keydown",a)}var p=e||{},f=p.aggressiv
e||!1,_=n(p.sensitivity,20),m=n(p.timer,1e3),g=n(p.delay,0),v=p.callback||functi
on(){},b=i(p.cookieExpire)||"",y=p.cookieDomain?";domain="+p.cookieDomain:"",w=p
.cookieName?p.cookieName:"viewedOuibounceModal",k=p.sitewide===!0?";path=/":"",x

=null,S=document.documentElement;setTimeout(r,m);var C=!1;return{fire:d,disable:
h,isDisabled:u}}});
/* :asset_packager_compatibility, 'config/asset_packages.yml' @ 1484174481 */
/* :files, 'public/javascripts/shared', ... @ (none) */
/* :files, 'app/views', ... @ (none) */
/* :files, 'app/views', ... @ 1484174481 */
/* app/views/shared/recommendation_tracking.coffee @ 1484174481 */
(function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},
e=[].slice;Scribd.RecommendationTracking=function(){function n(){throw"Scribd.Re
commendationTracking is not instantiatable"}return n._page_count=0,n._compilatio
n_ids={},n.Module=function(){function n(e,n){this.opts=null!=n?n:{},this.ready=t
(this.ready,this),this.container=$(e),this.container.on("scribd:enclosing_tracki
ng_module",function(t){return function(e,n){return n(t)}}(this)),this.with_track
ing=$.Deferred(function(t){return function(e){return e.done(function(e){var n;re
turn t.tracking=e,"function"==typeof(n=t.opts).on_tracking?n.on_tracking(t.track
ing):void 0})}}(this)),this.opts.compilation_id?Scribd.RecommendationTracking.pa
ge_view_deferred(this.opts.compilation_id).done(function(t){return function(e){r
eturn t.ready(e,t.opts.widget_name)}}(this)):this.container.on("scribd:setup_tra
cking",function(t){return function(e,n,i){return t.ready(n,i)}}(this))}return n.
prototype.setup_inview_tracking=function(){return null==this.tracking?"undefined
"!=typeof console&&null!==console?console.error("missing tracking"):void 0:(this
.container.one("inview",function(t){return function(){var e;return Scribd.Recomm
endationTracking.track_module_view(t.tracking.view_id,t.tracking.module_id,t.tra
cking.widget_name),null!=(e=t.opts.on_in_view)?e.call(t,t.tracking):void 0}}(thi
s)),Scribd.RecommendationTracking.trigger_inview_check())},n.prototype.setup_cli
ck_tracking=function(t){var e,n,i,r;if(null==t&&(t=this.container.find("[data-tr
ack_uuid]")),null==this.tracking)return"undefined"!=typeof console&&null!==conso
le?console.error("missing tracking"):void 0;for(this.container.data("track_uuid"
)&&(t=t.add(this.container)),r=[],n=0,i=t.length;i>n;n++)e=t[n],e=$(e),e.attr("d
ata-track_rats",e.data("track_rats")||"rc"),r.push(e.attr("data-track_rats_value
",JSON.stringify({vi:this.tracking.view_id,ri:e.data("track_uuid")})));return r}
,n.prototype.ready=function(t,e){var n;return(n=this.opts.module_id||this.contai
ner.data("track_uuid"))?(this.with_tracking.resolve({widget_name:e,view_id:t,mod
ule_id:n}),this.setup_inview_tracking(),this.setup_click_tracking()):void 0},n.p
rototype.track_module_click=function(){var t;return t=1<=arguments.length?e.call
(arguments,0):[],this.with_tracking.done(function(){return function(n){var i;ret
urn(i=Scribd.RecommendationTracking).track_module_click.apply(i,[n.view_id,n.mod
ule_id].concat(e.call(t)))}}(this))},n}(),n.page_view_deferred=function(t){var e
;return t?(n._view_id_deferred||(n._view_id_deferred={}),e=n._view_id_deferred[t
],e||(e=$.Deferred(),n._view_id_deferred[t]=e,Scribd.RecommendationTracking.trac
k_page_view(t,function(t){return e.resolve(t)})),e):(console.debug("attempted pa
ge view without compilation id"),$.Deferred())},n.track_page_view=function(t,e){
var n;return n=this._compilation_ids[t],null==n&&(n=this._compilation_ids[t]=thi
s._page_count++),$rat.root().withVid(function(){return function(i){return i=i+".
"+n,$rat("pv",{vi:i,ci:t}),"function"==typeof e?e(i):void 0}}(this))},n.track_mo
dule_view=function(t,e,n){var i;return i={vi:t,mi:e},null!=n&&(i.w=n),$rat("mv",
i)},n.track_module_click=function(t,e,n){var i;return i={vi:t,mi:e},null!=n&&(i.
t=n),$rat("mc",i)},n.track_obj_view=function(t,e){return $rat("rv",{vi:t,ri:e})}
,n.track_obj_click=function(t,e){return $rat("rc",{vi:t,ri:e})},n.trigger_inview
_check=function(){return this.trigger_inview_check=_.debounce(function(){return
$.event.special.inview.run()},0),this.trigger_inview_check()},n}()}).call(this);

/* app/views/shared/reading_progress/base.coffee @ 1484174481 */
(function(){Scribd.ReadingProgress={},Scribd.ReadingProgress.Base=function(){fun
ction t(t){var e,n,i;this.opts=null!=t?t:{},this.enabled()&&(this.opts=_.extend(
this.default_opts(),this.opts),this.get_ms=(null!=(e=Scribd.ServerOptions)?e.rea
ding_progress_throttle_get_milliseconds:void 0)||this.opts.throttle_get,this.pos
t_ms=(null!=(n=Scribd.ServerOptions)?n.reading_progress_throttle_post_millisecon
ds:void 0)||this.opts.throttle_post,this.url=null!=(i=Scribd.current_doc.reading
_progress)?i.update_url:void 0,this.doc_id=Scribd.current_doc.id,this.offset=nul
l,this.offset_type=null,this.percentage=null,this.throttled_get_handler=_.thrott
le(function(t){return function(){return t.get()}}(this),this.get_ms,{leading:!0,
trailing:!1}),this.throttled_post_handler=_.throttle(function(t){return function
(){return t.post()}}(this),this.post_ms,{leading:!1,trailing:!0}),$(window).off(
this.events.focus).on(this.events.focus,this.throttled_get_handler))}return t.pr
ototype.events={focus:"focus.reading_progress",scroll:"scroll.reading_progress"}
,t.prototype.default_opts=function(){return{throttle_get:6e4,throttle_post:1e4}}
,t.prototype.enabled=function(){var t;return(null!=(t=Scribd.ServerOptions)?t.re
ading_progress_enabled:void 0)&&Scribd.logged_in?!0:!1},t.prototype.update_exter
nal_progress=function(t){return(null!=t?t.progress:void 0)&&!t.progress.from_cur
rent_device&&"browser"!==t.progress.device_name?$(window).trigger("scribd:extern
al_reading_progress",t.progress):void 0},t.prototype.get=function(){return $.get
(this.url,{doc_id:this.doc_id},this.update_external_progress)},t.prototype.post=
function(){var t;return t=Scribd.CSRF.with_token({doc_id:this.doc_id,offset:this
.offset,offset_type:this.offset_type,percentage:this.percentage}),$.post(this.ur
l,t,this.update_external_progress)},t}()}).call(this);
/* app/views/pdfs/highlighter.coffee @ 1484174480 */
(function(){var t=function(t,e){return function(){return t.apply(e,arguments)}};
Scribd.PdfHighlighter=function(){function e(e){this.scroll_to_el=t(this.scroll_t
o_el,this),this.container=$(e),docManager.addEvent("pageLoaded",function(t){retu
rn function(e){var n,i;return n=parseInt(e.id.match(/\d+$/)[0],10),(null!=(i=t.p
ages_to_highlight)?i[n]:void 0)?(t.highlight_element(e,t.last_query),delete t.pa
ges_to_highlight[n],t.selecting&&t.selecting.page===n?t.select_result(t.selectin
g.page,t.selecting.idx):void 0):void 0}}(this))}return e.prototype.highlight_cla
ss="fourgen_highlight",e.prototype.select_result=function(t,e){var n,i,r,o;retur
n delete this.selecting,(i=null!=(r=docManager.pages[t])?r.innerPageElem:void 0)
?(n=this.highlight_class+"_selected",null!=(o=this.selected)&&o.removeClass(n),t
his.selected=$(i).find("."+this.highlight_class+":eq("+e+")").addClass(n),docMan
ager.gotoPage(t),_.defer(function(t){return function(){return null!=t.selected[0
].scrollIntoView?t.scroll_to_el(t.selected):void 0}}(this))):(docManager.gotoPag
e(t),this.selecting={page:t,idx:e})},e.prototype.scroll_to_el=function(t){var e,
n;return"function"==typeof(e=t[0]).scrollIntoView&&e.scrollIntoView(),n=this.con
tainer.find(".document_scroller")[0],n.scrollTop-=300},e.prototype.highlight_fro
m_results=function(t,e){var n,i,r,o,s,a,c;for(this.last_query=t,this.last_result
s=e,this.pages_to_highlight={},s=_.uniq(function(){var t,n,i;for(i=[],t=0,n=e.le
ngth;n>t;t++)a=e[t],i.push(a.pageNum);return i}(),!0),c=[],n=0,i=s.length;i>n;n+
+)o=s[n],r=docManager.pages[o],c.push((null!=r?r.innerPageElem:void 0)?this.high
light_element(r.containerElem,t):this.pages_to_highlight[o]=!0);return c},e.prot
otype.clear=function(){var t,e,n,i,r,o;for(r=this.container.find("."+this.highli
ght_class),o=[],e=0,n=r.length;n>e;e++)t=r[e],i=t.parentNode,i.replaceChild(t.fi
rstChild,t),o.push(i.normalize());return o},e.prototype.highlight_element=functi
on(t,e){var n,i,r;return r=RegExp(Scribd.escape_regexp(e),"i"),i=0,n=function(t)
{return function(o){var s,a,c,l,u,d,h;if(d=0,3===o.nodeType)l=o.data.search(r),l
>=0&&(h=$("<span>"),h.addClass(t.highlight_class),s=o.splitText(l),s.splitText(e
.length),a=$(s).clone(),h.append(a),$(s).replaceWith(h),d=1,i++);else if(1===o.n
odeType&&o.childNodes&&!/(script|style)/i.test(o.tagName))if((null!=(u=o.classNa
me)?u.indexOf(t.highlight_class):void 0)<0||null==o.className)for(c=0;c<o.childN
odes.length;)c+=n(o.childNodes[c]),++c;else i++;return d}}(this),n(t),i},e}()}).
call(this);

/* app/views/pdfs/_seo_shared.coffee @ 1484174480 */
(function(){Scribd.SeoShared=function(){function t(){}return t.quote_duration=5e
3,t.display_interval=moment.duration(1,"days"),t.setup_assignment=function(){var
t,e,n;if(null!=(n=document.location.search)?n.match(/\bseo_roadblock\b/):void 0
)return!0;if(Scribd.eligible_for_seo_roadblock&&this.has_correct_referrer()&&(t=
new CookieJar({path:"/",expires:this.display_interval.asSeconds()}),!t.get("seo_
ld")||(e=moment(t.get("seo_ld")),moment().isAfter(e.add(this.display_interval)))
))return t.put("seo_ld",moment()),!0},t.has_correct_referrer=function(){return"e
n_US"===I18n.locale?!0:document.referrer.match(/google|bing|yahoo/i)||window.loc
ation.hash.match(/\bscribd\b/)},t.banner_variation=function(){return{value_prop:
Scribd.nway_test_choice_value("seo_banner_value_prop")||"default",cta:Scribd.nwa
y_test_choice_value("seo_banner_cta")||"default"}},t.seo_variation=function(){re
turn"new_basic"},t}()}).call(this);
/* app/views/pdfs/_seo_banner_text_dictionary.coffee @ 1484174480 */
(function(){Scribd.SeoBannerTextDictionary=function(){function t(){}return t.dat
a=function(){return{cta:{"default":I18n.t("pdfs.seo_banner_text_dictionary.read_
free_with_a_trial_"),trial:I18n.t("pdfs.seo_banner_text_dictionary.read_free_wit
h_a_trial_"),for_free:I18n.t("pdfs.seo_banner_text_dictionary.read_for_free"),"1
_month":I18n.t("pdfs.seo_banner_text_dictionary.read_free_for_1_month"),"30_days
":I18n.t("pdfs.seo_banner_text_dictionary.read_free_for_30_days"),one_month:I18n
.t("pdfs.seo_banner_text_dictionary.read_free_for_one_month")},value_prop:{"defa
ult":{header:I18n.t("pdfs.seo_banner_text_dictionary.never_pay_full_price_to_rea
d"),sub_header:I18n.t("pdfs.seo_banner_text_dictionary.join_scribd_and_get_the_b
est")},never:{header:I18n.t("pdfs.seo_banner_text_dictionary.never_pay_full_pric
e_to_read"),sub_header:I18n.t("pdfs.seo_banner_text_dictionary.join_scribd_and_g
et_the_best")},always:{header:I18n.t("pdfs.seo_banner_text_dictionary.there_s_al
ways_more_to_the_story"),sub_header:I18n.t("pdfs.seo_banner_text_dictionary.join
_scribd_and_never_stop_reading")},become:{header:I18n.t("pdfs.seo_banner_text_di
ctionary.become_an_expert_in_anything"),sub_header:I18n.t("pdfs.seo_banner_text_
dictionary.join_scribd_the_membership_for_readers")},save:{header:I18n.t("pdfs.s
eo_banner_text_dictionary.save_80_off_retail_prices_with"),sub_header:I18n.t("pd
fs.seo_banner_text_dictionary.the_best_books_audiobooks_and_more")},put:{header:
I18n.t("pdfs.seo_banner_text_dictionary.put_a_library_in_your_pocket"),sub_heade
r:I18n.t("pdfs.seo_banner_text_dictionary.the_best_books_audiobooks_documents_an
d")},listen:{header:I18n.t("pdfs.seo_banner_text_dictionary.listen_to_the_best_a
udiobooks_read"),sub_header:I18n.t("pdfs.seo_banner_text_dictionary.join_scribd_
and_save_80_off")},read:{header:I18n.t("pdfs.seo_banner_text_dictionary.read_wha
t_interests_you"),sub_header:I18n.t("pdfs.seo_banner_text_dictionary.broaden_you
r_knowledge_with_scribd")}}}},t}()}).call(this);
/* app/views/shared/reading_progress/pdf.coffee @ 1484174481 */
(function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},
e=function(t,e){function i(){this.constructor=t}for(var r in e)n.call(e,r)&&(t[r
]=e[r]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype
,t},n={}.hasOwnProperty;Scribd.ReadingProgress.Pdf=function(n){function i(e){thi
s.opts=null!=e?e:{},this.update=t(this.update,this),i.__super__.constructor.call
(this,this.opts),$(this.opts.scroll_node).off(this.events.scroll).on(this.events
.scroll,this.update)}return e(i,n),i.prototype.enabled=function(){return window.
docManager&&this.opts.scroll_node?i.__super__.enabled.apply(this,arguments):!1},
i.prototype.default_opts=function(){return _.extend(i.__super__.default_opts.app
ly(this,arguments),{scroll_node:null})},i.prototype.update=function(){var t;if(t
his.enabled())return t=window.docManager.currentPageNum()-1,this.offset_type="pa
ge",this.offset=t,this.percentage=t/this.opts.total_pages*100,this.throttled_pos
t_handler()},i}(Scribd.ReadingProgress.Base)}).call(this);

/* app/views/shared/reading_progress/epub.coffee @ 1484174481 */
(function(){var t=function(t,n){function i(){this.constructor=t}for(var r in n)e
.call(n,r)&&(t[r]=n[r]);return i.prototype=n.prototype,t.prototype=new i,t.__sup
er__=n.prototype,t},e={}.hasOwnProperty;Scribd.ReadingProgress.Epub=function(e){
function n(){return n.__super__.constructor.apply(this,arguments)}return t(n,e),
n.prototype.update=function(t,e,n){return this.enabled()?(this.offset_type=t,thi
s.offset=e,this.percentage=n,this.throttled_post_handler()):void 0},n.prototype.
track=function(){},n}(Scribd.ReadingProgress.Base)}).call(this);
/* app/views/shared/reading_progress/audio.coffee @ 1484174481 */
(function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},
e=function(t,e){function i(){this.constructor=t}for(var r in e)n.call(e,r)&&(t[r
]=e[r]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype
,t},n={}.hasOwnProperty;Scribd.ReadingProgress.Audio=function(n){function i(e){t
his.opts=null!=e?e:{},this.update=t(this.update,this),this.player=Scribd.audiobo
ok_player,this.previous_progress=this.get_progress(),i.__super__.constructor.cal
l(this,this.opts),this._player_listen_events=["scribd:audiobook:play","scribd:au
diobook:pause","scribd:audiobook:bookmark_location","scribd:audiobook:unload","s
cribd:audiobook:trackChanged","scribd:audiobook:next","scribd:audiobook:prev","s
cribd:audiobook:seekTo","scribd:audiobook:skipBack","scribd:audiobook:jumpTo"].j
oin(" "),this.player.on(this._player_listen_events,this.update),this.update_inte
rval=setInterval(this.update,this.post_ms)}return e(i,n),i.get_track_and_positio
n=function(t){var e,n,i,r,o,s;if(n=Scribd.audiobook_player.current_chapters(),t>
Scribd.audiobook_player.get_runtime())return{track_num:n.length-1,track_pos:n[n.
length-1].duration};for(i=0,o=r=0,s=n.length;s>r;o=++r){if(e=n[o],!(i+e.duration
<t))return{track_num:o,track_pos:t-i};i+=e.duration}},i.prototype.enabled=functi
on(){return this.player?i.__super__.enabled.apply(this,arguments):!1},i.prototyp
e.default_opts=function(){return _.extend(i.__super__.default_opts.apply(this,ar
guments),{preview_restricted:null,preview_threshold:null,player:null})},i.protot
ype.destroy=function(){return clearInterval(this.update_interval),this.player.of
f(this._player_listen_events,this.update)},i.prototype.update=function(){var t;i
f(this.enabled())return t=this.get_progress(),this.offset_type="ms",this.offset=
t,this.percentage=t/this.player.get_runtime()*100,this.player.isPlaying()?(this.
post(),this.track_for_payouts()):void 0},i.prototype.get_progress=function(t,e){
var n,i,r,o,s,a;if(null==t&&(t=this.player.get_track_num()),null==e&&(e=this.pla
yer.get_track_pos()),i=null!=(a=this.player.current_chapters())?a.slice(0,t):voi
d 0){for(s=0,r=0,o=i.length;o>r;r++)n=i[r],s+=n.duration;return s+=e,this.opts.p
review_restricted?s=Math.min(s,this.opts.preview_threshold):s}},i.prototype.trac
k_for_payouts=function(){var t;return t=this.get_progress(),$rat("abook_listen",
[Scribd.current_doc.id,void 0,void 0,this.previous_progress,t]),$rat.root().flus
hEvents(),this.previous_progress=t},i}(Scribd.ReadingProgress.Base)}).call(this)
;
/* :class_inlines, 'app/views', ... @ 1484174481 */
/* app/views/shared/my_library_reading_states.coffee @ 1484174481 */
(function(){Scribd.Shared.MyLibraryReadingStates=function(){function t(t,e){this
.container=t,this.opts=null!=e?e:{},this.default_opts(),this.container=$(this.co
ntainer),Scribd.Shared.MyLibraryReadingStates.instance=this,this.opts.masked_adm
in||(this.initial_state=this.opts.current_state,this.current_state=this.initial_
state,_.defer(function(t){return function(){return t.opts.currently_reading_acti
ve&&t.init_currently_reading_timer(),t.opts.finished_active&&!t.opts.is_preview&
&t.init_end_of_reading_listener(),t.opts.chapter_document_id&&!t.opts.is_preview
?t.init_chapter_document_listener():void 0}}(this)))}return t.prototype.THRESHOL
DS={book:18e4,audiobook:1,comic:18e4,"default":18e4,sheet_music_chapter:2e4},t.p
rototype.default_opts=function(){return this.opts=_.extend({current_state:0,fini
shed_state:-1,reading_state:-2,flash_duration:5e3,currently_reading_active:!0,fi
nished_active:!0},this.opts)},t.prototype.state_name=function(){switch(this.curr

ent_state){case this.opts.reading_state:return"currently_reading";case this.opts


.finished_state:return"finished";default:return this.current_state}},t.prototype
.init_currently_reading_timer=function(){var t;return t=this.THRESHOLDS.hasOwnPr
operty(this.opts.document_type)?this.THRESHOLDS[this.opts.document_type]:"sheet_
music"===this.opts.document_type&&location.hash.indexOf("block=")>=0?this.THRESH
OLDS.sheet_music_chapter:this.THRESHOLDS["default"],this.timer=setTimeout(functi
on(t){return function(){return Scribd.Epub?$(document.body).one("scribd:epub_pro
gress",function(){return null==t.opts.current_state&&t.show_flash_template("curr
ently_reading_flash"),t.add_to_currently_reading_state()}):t.opts.is_audiobook&&
!t.opts.is_audiobook_preview?t.add_to_currently_reading_state():$(window).add("u
ndefined"!=typeof DocumentManager&&null!==DocumentManager?DocumentManager.scroll
Parent:void 0).one("scroll",function(){return t.add_to_currently_reading_state()
})}}(this),t)},t.prototype.init_end_of_reading_listener=function(){var t;return
t=function(t){return function(){return t.finished||t.opts.current_state===t.opts
.finished_state?void 0:(t.add_to_finished_state(),t.show_flash_template("finishe
d_reading_flash"))}}(this),Scribd.epub_book_page&&(Scribd.epub_book_page.opts.is
_comic?Scribd.epub_book_page.epub.registerRedrawCallback(function(){return Scrib
d.epub_book_page.comic_end_of_reading()?t():void 0}):Scribd.epub_book_page.epub.
registerEndOfContentCallback(function(e){return e?t():void 0})),Scribd.epub_doc_
page&&(Scribd.epub_doc_page.opts.is_comic?Scribd.epub_doc_page.register_update_c
allback(function(){return Scribd.epub_doc_page.comic_end_of_reading()?t():void 0
}):Scribd.epub_doc_page.epub.registerEndOfContentCallback(function(e){return e?t
():void 0})),Scribd.audiobooks?Scribd.audiobooks.end_of_reading_callbacks.push(t
):void 0},t.prototype.init_chapter_document_listener=function(){var t,e,n;if(thi
s.opts.chapter_document_id&&null!=(null!=(n=Scribd.epub_book_page)?n.epub:void 0
))return e=!1,t=Scribd.epub_book_page.epub.currentPage(),Scribd.epub_book_page.e
pub.registerRedrawCallback(function(n){return function(){var i;if(!e)return i=Sc
ribd.epub_book_page.epub.currentPage(),i!==t?(e=!0,n.add_to_currently_reading_st
ate(n.opts.chapter_document_id),n.show_flash_template("currently_reading_flash")
):void 0}}(this))},t.prototype.add_to_currently_reading_state=function(t){return
null==t&&(t=this.opts.document_id),Scribd.Bookmarks.update_bookmarks_states({do
cument_ids:[t],state:this.opts.reading_state}),this.container.trigger("scribd:st
ate_changed",this.state_name())},t.prototype.add_to_finished_state=function(){re
turn this.finished=!0,Scribd.Bookmarks.update_bookmarks_states({document_ids:[th
is.opts.document_id],state:this.opts.finished_state}),this.container.trigger("sc
ribd:state_changed",this.state_name())},t.prototype.revert_state=function(){retu
rn Scribd.Bookmarks.update_bookmarks_states({document_ids:[this.opts.document_id
],state:this.opts.current_state,complete:function(t){return function(){return fl
asher.dismiss(),t.finished=t.opts.current_state===t.opts.finished_state,t.contai
ner.trigger("scribd:state_changed",t.state_name())}}(this)})},t.prototype.remove
_bookmark=function(){return Scribd.Bookmarks.remove_bookmark(this.opts.document_
id,{complete:function(t){return function(){return t.container.trigger("scribd:bo
okmark_removed"),flasher.dismiss()}}(this)})},t.prototype.show_flash_template=fu
nction(t,e){var n,i;return null==e&&(e={}),i=_.template($("#tpl_"+t).html()),n=i
(e),this.show_flash(n)},t.prototype.show_flash=function(t,e){var n,i;return null
==e&&(e="info"),n=$(".flash_container"),i=new Scribd.Flasher(n,{raw:!0,duration:
this.opts.flash_duration}),i.show(e,t),n.dispatch("click",{remove_bookmark:funct
ion(t){return function(){return null!=t.opts.current_state?t.revert_state():t.re
move_bookmark()}}(this)})},t}()}).call(this),(Scribd.translations=Scribd.transla
tions||[]).push({en_US:{shared:{my_library_reading_states:{we_ve_added_this_book
_to_your:"We\u2019ve added this book to your library so you can find it again.",
undo:"Undo",document_title_has_been_marked_as_finished:"%{document_title} has be
en marked as finished."}}}});
/* app/views/shared/filtered_document_page.coffee @ 1484174481 */
(function(){Scribd.UI||(Scribd.UI={}),Scribd.UI.FilteredDocumentPage=function(){
function t(t){var e;this.container=$(t),e=this.container.find(".filter_picker"),
e.is(".open")&&this.container.find(".toggle_filters_btn").addClass("open"),this.
container.on("click",".toggle_filters_btn",function(){return function(t){return

$(t.currentTarget).toggleClass("open"),e.slideToggle("fast")}}(this)),this.conta
iner.find(".language_filter_picker").fancy_select(),this.container.on("change","
.language_filter_picker",function(){return function(t){return window.location=$(
t.currentTarget).val()}}(this))}return t}()}).call(this),(Scribd.translations=Sc
ribd.translations||[]).push({en_US:{shared:{filtered_document_page:{search:"Sear
ch...",filters:"Filters"}}}});
/* app/views/shared/app_download_promo/lightbox.coffee @ 1484174481 */
(function(){var t=function(t,n){function i(){this.constructor=t}for(var r in n)e
.call(n,r)&&(t[r]=n[r]);return i.prototype=n.prototype,t.prototype=new i,t.__sup
er__=n.prototype,t},e={}.hasOwnProperty;Scribd.AppDownloadPromoLightbox=function
(e){function n(t,e){this.opts=e,this.container=$(t),n.__super__.constructor.appl
y(this,arguments),this.opts.load_once&&this.setup_cookie_jar(),this.opts.open_on
_load&&_.defer(function(t){return function(){return t.another_lightbox_is_open()
?void 0:t.show()}}(this))}return t(n,e),n.prototype.setup_cookie_jar=function(){
return this.jar=new CookieJar({domain:window.location.host,expires:31536e4,path:
"/"})},n.prototype.show=function(){var t,e;if(!this.opts.load_once||!this.jar.ge
t(this.opts.cookie))return n.__super__.show.apply(this,arguments),t={page:this.o
pts.track_page},(null!=(e=Scribd.current_doc)?e.id:void 0)&&(t.doc_id=Scribd.cur
rent_doc.id),this.container.track_rats("download_app_promo:lightbox:view",t)},n.
prototype.close=function(){var t,e;return this.opts.load_once&&this.jar.put(this
.opts.cookie,1),t={item:"close lightbox",page:this.opts.track_page},(null!=(e=Sc
ribd.current_doc)?e.id:void 0)&&(t.doc_id=Scribd.current_doc.id),n.__super__.clo
se.apply(this,arguments),_.defer(function(e){return function(){return e.containe
r.track_rats("download_app_promo:lightbox:click",t)}}(this))},n}(Scribd.StackedL
ightbox)}).call(this);
/* app/views/pdfs/errors/deleted.coffee @ 1484174480 */
(function(){var t=function(t,n){function i(){this.constructor=t}for(var r in n)e
.call(n,r)&&(t[r]=n[r]);return i.prototype=n.prototype,t.prototype=new i,t.__sup
er__=n.prototype,t},e={}.hasOwnProperty;Scribd.PdfsDeleted=function(e){function
n(){n.__super__.constructor.apply(this,arguments),this.fit_to_width(),Scribd.hoo
k_tooltips(this.container),this.container.find("[data-default_text]").placeholde
r_text(),new Scribd.UI.FilteredDocumentPage(this.container)}return t(n,e),n}(Scr
ibd.UI.ObjectGrid)}).call(this),(Scribd.translations=Scribd.translations||[]).pu
sh({en_US:{pdfs:{errors:{deleted:{notice:"Notice",your_document_was_successfully
_expired:"Your document was successfully expired.",go_to_uploads_187:"Go to Uplo
ads &#187;",why:"Why?",your_document_was_successfully_deleted:"Your document was
successfully deleted.",this_document_has_been_removed_from:"This document has b
een removed from Scribd.",reading_suggestions:"Reading suggestions",the_document
_strong_document_title_strong_is_no_longer:"The document <strong>%{document_titl
e}</strong> is no longer available on Scribd.",the_document_strong_document_titl
e_strong_has_been_deleted:"The document <strong>%{document_title}</strong> has b
een deleted.",the_document_strong_document_title_strong_has_been_automatically:"
The document <strong>%{document_title}</strong> has been automatically removed b
y <a href='%{bookid_url}'>BookID</a>, Scribd\u2019s copyright protection system.
",like_all_automated_systems_bookid_sometimes:"Like all automated systems, BookI
D sometimes makes mistakes. If you believe this document is not infringing and w
as removed in error, please contact <a href='mailto:copyright@scribd.com'>copyri
ght@scribd.com</a>.",please_see_scribd_s_a_href_copyright_url_copyright_resource
:"Please see Scribd's <a href='%{copyright_url}'>Copyright Resource Center</a> t
o learn more."}}}}});
/* app/views/pdfs/errors/unconverted.coffee @ 1484174480 */
(function(){Scribd.UnconvertedDocument=function(){function t(t){this.container=$
(t),this.container.dispatch("click",{download_btn:function(){return function(t){
var e,n;return n=t.data("download_url"),e=t.data("document_id"),Scribd.Lightbox.

show_loading(),Scribd.download_actions.download(e,"read","toolbar_download",func
tion(){return $.post(n).done(function(t){return t.props.download_url=n,Scribd.Li
ghtbox.open_react("document_download_lb",Scribd.R.Pdfs.Lightboxes.DownloadLightb
ox(t.props))})})}}(this)})}return t}()}).call(this),(Scribd.translations=Scribd.
translations||[]).push({en_US:{pdfs:{errors:{unconverted:{this_document_is_being
_prepared:"This document is being prepared",the_scribd_version_of_this_document:
"The Scribd version of this document is currently being processed, and will be a
vailable shortly.",ahead_of_this_document_in_the:" ahead of this document in the
queue.)",we_could_not_convert_this_document:"We could not convert this document
",we_re_unable_to_display_this_document:"We're unable to display this document a
nd there are no formats available for download.",download_to_view_this_document:
"Download to view this document",we_re_unable_to_display_this_document_:"We're u
nable to display this document. To view it, download it in its original format."
,formats_available_document_currently_downloadable_extensions_join_upcase:"Forma
ts available: %{document_currently_downloadable_extensions_join_upcase}",downloa
d:"Download"}}}}});
/* app/views/pdfs/lightboxes/_description_lightbox.coffee @ 1484174480 */
(function(){var t,e,n,i,r;i=React.DOM,n=i.h1,e=i.div,t=Scribd.R.component_builde
r("Pdfs.Lightboxes.DescriptionLightbox",{css_class:"autogen_class_views_pdfs_lig
htboxes_description_lightbox"}),r=React.PropTypes,t({propTypes:{description_cont
ent:r.string},enclosing_element_type:function(){return Scribd.R.Shared.Lightbox}
,componentDidMount:function(){return this.container().dispatch("click",{flag_doc
ument_btn:function(){return function(t){return Scribd.pdfs_show.flag_document(t.
attr("lightbox_url"))}}(this)})},render:function(){return[n({},I18n.t("pdfs.ligh
tboxes.description_lightbox.description")),e({dangerouslySetInnerHTML:{__html:th
is.props.description_content}})]}})}).call(this),(Scribd.translations=Scribd.tra
nslations||[]).push({en_US:{pdfs:{lightboxes:{description_lightbox:{description:
"Description"}}}}});
/* app/views/pdfs/lightboxes/_download_lightbox.coffee @ 1484174480 */
(function(){var t,e,n,i,r,o,s,a,c,l,u=function(t,e){function n(){this.constructo
r=t}for(var i in e)d.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.pro
totype=new n,t.__super__=e.prototype,t},d={}.hasOwnProperty;a=React.DOM,s=a.p,i=
a.em,n=a.div,c=a.span,o=a.label,r=a.input,t=a.a,e=Scribd.R.component_builder("Pd
fs.Lightboxes.DownloadLightbox",{css_class:"autogen_class_views_pdfs_lightboxes_
download_lightbox",track_category:"download_dialog"}),l=React.PropTypes,e({propT
ypes:{show_paywall:l.bool,archive_url:l.string,base_url:l.string,recommendation_
html:l.string,download_url:l.string,document:l.shape({secret_password:l.string})
.isRequired,filename:l.string.isRequired,formats:l.arrayOf(l.shape({extension:l.
string,filesize:l.string})).isRequired},enclosing_element_type:function(){return
function(t){return function(e){return Scribd.R.Shared.Lightbox($.extend({title:
t.state.download_started?void 0:I18n.t("pdfs.lightboxes.download_lightbox.downlo
ad_document")},e))}}(this)},getInitialState:function(){var t;return{selected_ext
ension:null!=(t=this.props.formats[0])?t.extension:void 0,formats:this.props.for
mats,download_started:!1,nag:this.props.nag}},componentLightboxShow:function(){r
eturn this.setState({download_started:!1})},componentDidMount:function(){return
this.container().on("Scribd:lightbox:closed",function(){return function(){return
$(document.body).track_rats("doc:download_modal:hide")}}(this))},componentDidUp
date:function(t,e){var n;return!e.download_started&&this.state.download_started?
new(n=function(t){function e(){return e.__super__.constructor.apply(this,argumen
ts)}return u(e,t),e.prototype.min_spacing=20,e.prototype.min_min_spacing=20,e.pr
ototype.margin=10,e}(Scribd.UI.ObjectGrid))(this.container().find(".document_gri
d")):void 0},widget_css_classes:function(t){return classNames(t,"lightbox")},do_
download:function(){var t;return $(document.body).track_rats("doc:final_download
_button:click",{format:this.state.selected_extension}),t=this.props.show_paywall
?this.props.archive_url:$.param.querystring(this.props.base_url,{secret_password
:this.props.document.secret_password,extension:this.state.selected_extension}),s

etTimeout(function(){return window.location=t},200)},render:function(){var t;ret


urn(null!=(t=this.state.nag)?t.paused:void 0)?this.render_paused():this.state.do
wnload_started?this.render_after_download():this.render_downloader()},render_pau
sed:function(){return[s({children:[I18n.t("pdfs.lightboxes.download_lightbox.you
r_membership_is_currently_paused_until",{state_nag_next_payment_due:this.state.n
ag.next_payment_due})+" ",i({},this.props.document.title),"?"]}),n({className:"b
uttons",children:[this.state.loading?void 0:this.common_button({href:"javascript
:void(0)",className:"outline_btn button_sub_action",onClick:function(){return fu
nction(t){return t.preventDefault(),Scribd.Lightbox.close()}}(this)},I18n.t("pdf
s.lightboxes.download_lightbox.no_thanks"))," ",this.common_button({className:cl
assNames({disabled:this.state.loading}),disabled:this.state.loading,onClick:func
tion(t){return function(e){return e.preventDefault(),t.setState({loading:!0}),t.
unpause_account()}}(this)},I18n.t(this.state.loading?"pdfs.lightboxes.download_l
ightbox.resuming":"pdfs.lightboxes.download_lightbox.resume_membership"))]})]},u
npause_account:function(){return $.getJSON(this.state.nag.fix_url).fail(function
(t){return function(){return window.location=t.state.nag.fix_url}}(this)).done(f
unction(t){return function(){return $(document.body).trigger("scribd:unpause_acc
ount"),$.post(t.props.download_url).done(function(e){var n;return t.setState({na
g:null,loading:!1,just_resumed:!0,selected_extension:null!=(n=e.props.formats[0]
)?n.extension:void 0,formats:e.props.formats})})}}(this))},render_downloader:fun
ction(){return[this.state.just_resumed?s({},I18n.t("pdfs.lightboxes.download_lig
htbox.your_membership_has_been_resumed")):void 0,this.render_current_format(),th
is.render_format_picker(),n({className:"buttons"},this.common_button({onClick:fu
nction(t){return function(){return t.do_download(),t.setState({download_started:
!0})}}(this)},I18n.t("pdfs.lightboxes.download_lightbox.download_current_format_
extension",{current_format_extension:this.current_format().extension})))]},curre
nt_format:function(){return _.find(this.state.formats,function(t){return functio
n(e){return e.extension===t.state.selected_extension}}(this))},render_current_fo
rmat:function(){var t;return t=this.current_format(),n({className:"document_data
",children:[n({className:"data_row",children:[I18n.t("pdfs.lightboxes.download_l
ightbox.file_name")+" ",c({className:"data_value"},this.props.filename+"."+t.ext
ension)]}),n({className:"data_row",children:[I18n.t("pdfs.lightboxes.download_li
ghtbox.file_size")+" ",c({className:"data_value"},t.filesize)]})]})},render_form
at_picker:function(){return 1!==this.state.formats.length?n({className:"format_p
icker",children:this.state.formats.map(function(t){return function(e){return n({
className:"format_row"},o({children:[r({type:"radio",name:"download_extension",c
hecked:e.extension===t.state.selected_extension,value:e.extension,onChange:funct
ion(){return t.setState({selected_extension:e.extension})}})," "+e.extension.toU
pperCase()]}))}}(this))}):void 0},render_after_download:function(){return[n({cla
ssName:"primary_message",children:[I18n.t("pdfs.lightboxes.download_lightbox.you
r_download_has_started")+" ",t({href:"javascript:void(0)",onClick:function(){ret
urn function(){return Scribd.Lightbox.close()}}(this)},I18n.t("pdfs.lightboxes.d
ownload_lightbox.close_this_dialog"))]}),n({className:"secondary_message",childr
en:[I18n.t("pdfs.lightboxes.download_lightbox.having_trouble_downloading")+" ",t
({href:"javascript:void(0)",onClick:function(t){return function(){return t.setSt
ate({download_started:!1})}}(this)},I18n.t("pdfs.lightboxes.download_lightbox.tr
y_again"))]}),this.props.recommendation_html?n({key:"recommendations",className:
"rec_wrapper",dangerouslySetInnerHTML:{__html:this.props.recommendation_html}}):
void 0]}})}).call(this),(Scribd.translations=Scribd.translations||[]).push({en_U
S:{pdfs:{lightboxes:{download_lightbox:{download_document:"Download document",yo
ur_membership_is_currently_paused_until:"Your membership is currently paused unt
il %{state_nag_next_payment_due}. Would you like to resume your membership now t
o download",no_thanks:"No Thanks",resuming:"Resuming",resume_membership:"Resume
Membership",your_membership_has_been_resumed:"Your membership has been resumed."
,download_current_format_extension:"Download %{current_format_extension}",file_n
ame:"File name:",file_size:"File size:",your_download_has_started:"Your download
has started.",close_this_dialog:"Close this dialog",having_trouble_downloading:
"Having trouble downloading?",try_again:"Try again",similar_to_document_pretty_t
itle:"Similar to %{document_pretty_title}.",check_out_more_from:"Check out more
from"}}}}});

/* app/views/pdfs/lightboxes/embed_lightbox.coffee @ 1484174480 */
(function(){Scribd.UI||(Scribd.UI={}),Scribd.UI.CustomSize=function(){function t
(t,e,n){_.bindAll(this),this.embed_ui=t,this.container=$(e),this.book_mode=!1,th
is.options=_.extend({min_width:400,min_height:300,aspect_ratio:.75},n||{}),this.
lock_aspect_ratio=!0,this.width_input=this.container.find(".custom_width"),this.
height_input=this.container.find(".custom_height"),this.update_from_width=this.u
pdater_for("width"),this.update_from_height=this.updater_for("height"),this.widt
h_input.on("change",this.update_from_width),this.height_input.on("change",this.u
pdate_from_height),this.lock_button=this.container.find(".lock_button"),this.loc
k_button.on("click",function(t){return function(){return t.lock_button.toggleCla
ss("unlocked"),t.lock_aspect_ratio=!t.lock_aspect_ratio,t.lock_aspect_ratio&&0==
=!t.width_input.val().length?t.update_from_width():void 0}}(this))}return t.prot
otype.values=function(){return[parseInt(this.width_input.val(),10),parseInt(this
.height_input.val(),10)]},t.prototype.has_values=function(){return 0===!this.wid
th_input.val().length&&0===!this.height_input.val().length},t.prototype.updater_
for=function(t){var e,n,i,r,o,s;return r="width"===t?"height":"width",e=this.opt
ions.aspect_ratio,"height"===t&&(e=1/e),n=this[t+"_input"],o=this[r+"_input"],i=
"min_"+t,s="min_"+r,function(a){return function(){var c,l;if(0!==n.val().length)
return a.book_mode&&(e=1/e),l=parseInt(n.val(),10),l<a.options[i]&&(l=a.options[
i],n.val(l)),c=void 0,a.lock_aspect_ratio||0===o.val().length?(c=Math.max(Math.f
loor(l/e),a.options[s]),o.val(c)):c=a.embed_ui.custom_options[r],"width"===t?a.e
mbed_ui.set_size(l,c):a.embed_ui.set_size(c,l)}}(this)},t}(),Scribd.UI.EmbedDial
og=function(){function t(t){var e,n;_.bindAll(this),this.container=$(t),this.doc
ument=this.container.data("document"),(e=this.document).aspect_ratio||(e.aspect_
ratio=.75),this.options={num_pages:this.document.page_count,aspect_ratio:this.do
cument.aspect_ratio,doc_url:this.document.url,title:this.document.title,user_url
:this.document.word_user.url,user_title:this.document.word_user.name,doc_id:this
.document.id,access_key:this.document.access_key,secret_password:this.document.s
ecret_password},this.input=this.container.find(".code_input"),this.preview_conta
iner=this.container.find(".doc_preview"),this.custom_options={},this.generators=
{html:new Scribd.Embed.HTML5CodeGenerator(_.clone(this.options)),wordpress:new S
cribd.Embed.WordpressCodeGenerator(_.clone(this.options))},this.container.find("
.content").css("padding",0),this.starting_page=this.container.find(".misc_option
s .starting_page"),this.container.find(".custom_size input").add(this.starting_p
age).restrict_numeric({allow_period:!1}),this.custom_size=new Scribd.UI.CustomSi
ze(this,this.container.find(".custom_size")),this.starting_page.on("change",func
tion(t){return function(){var e,n;return n=0===t.starting_page.val().length?1:pa
rseInt(t.starting_page.val(),10),e=t.options.num_pages,null!==e&&0!==e&&n>e&&(n=
e,t.starting_page.val(n)),t.custom_options.page=n,t.update_code()}}(this)),this.
container.on("change",".view_style",function(t){return function(e){var n;return
n=$(e.currentTarget).val(),t.custom_options.mode=n,t.update_code()}}(this)),this
.input.select_on_focus(),this.container.find(".include_link_input").on("change",
function(t){return function(e){return t.custom_options.show_title=$(e.target).pr
op("checked"),t.update_code(),!0}}(this)),this.container.find(".include_recommen
dations_input").on("change",function(t){return function(e){return t.custom_optio
ns.show_recommendations=$(e.target).prop("checked"),t.update_code(),!0}}(this)),
this.container.on("click",".close",function(){return function(){return Scribd.Li
ghtbox.close()}}(this)),this.container.on("click","#embed_format",function(t){re
turn function(e){var n;return n=$(e.target),n.hasClass("inactive")?(n.removeClas
s("inactive"),t.container.find(".option.active").removeClass("active").addClass(
"inactive"),n.addClass("active"),t.update_format(n.data("format"))):void 0}}(thi
s)),n=this.container.find(".size_picker"),n.find("li").on("click",function(t){re
turn function(e){var i,r,o,s,a;return r=$(e.target).parent("li").andSelf().filte
r("li"),r&&(n.find("li").removeClass("active"),r.addClass("active"),s=r.data("si
ze"),s?(a=null,i=null,o=s.match(/(\d+)x(\d+)/),o&&(a=o[1],i=o[2]),t.set_size(a,i
)):t.custom_size.has_values()&&t.set_size.apply(t,t.custom_size.values())),!1}}(
this)),this.update_format("html"),this.setup_copy_link()}return t.prototype.set_
size=function(t,e){return t!==this.custom_options.width||e!==this.custom_options

.height?(this.custom_options.width=t,this.custom_options.height=e,this.custom_op
tions.auto_width=!t,this.custom_options.auto_height=!e,this.update_code()):void
0},t.prototype.update_format=function(t){return this.current_format=t,this.updat
e_code()},t.prototype.update_code=function(t){var e;return"book"===this.custom_o
ptions.mode?this.showing_book||(this.showing_book=!0,this.custom_size.book_mode=
!0,this.toggle_sizes()):this.showing_book&&(this.showing_book=!1,this.custom_siz
e.book_mode=!1,this.toggle_sizes()),this.input.val(this.generators[this.current_
format].render(this.custom_options)),e=this.generators.html.render(),this.previe
w_container.show().html(e),_.defer(function(t){return function(){var e;return t.
custom_options.auto_height&&t.custom_options.auto_width?(e={width:t.preview_cont
ainer.width(),height:t.preview_container.height()},t.preview_container.find(".sc
ribd_iframe_embed").css(e)):void 0}}(this)),t?void 0:this.flash()},t.prototype.t
oggle_sizes=function(){return $(".size_picker:first").children().toggleClass("hi
dden"),$(".custom_size:first").removeClass("hidden")},t.prototype.flash=function
(){var t;return t=this.container.find(".tab_bodies input").flash()},t.prototype.
setup_copy_link=function(){var t,e,n,i;return t=this.container.find(".copy_link"
),i=t.find(".document_url_input"),e=t.find("form"),i.on("click",function(){retur
n function(){return i[0].select()}}(this)),("undefined"!=typeof docManager&&null
!==docManager?docManager.firstVisiblePage:void 0)||t.find(".position_picker").re
move(),n=function(t){return function(){var n,r,o,s,a,c,l,u,d;for(s={},c=e.serial
izeArray(),n=0,r=c.length;r>n;n++)l=c[n],o=l.name,d=l.value,s[o]=d;return a={},"
current"===s.doc_position&&(a.page=docManager.firstVisiblePage.pageNum),s.fullsc
reen&&(a.fullscreen=1),u=t.options.doc_url,$.isEmptyObject(a)||(u+="#"+$.param(a
)),i.val(u)}}(this),e.on("change",function(){return function(){return n()}}(this
)),n()},t}()}).call(this),(Scribd.translations=Scribd.translations||[]).push({en
_US:{pdfs:{lightboxes:{embed_lightbox:{custom:"Custom",width:"Width: ",height:"H
eight: ",select:"Select",slideshow:"Slideshow",scroll:"Scroll",include_link:"Inc
lude link",include_recommendations:"Include Recommendations",embed:"Embed",embed
_this_in_your_website:"Embed this in your website",sup_sup_the_code_will_be_upda
ted:"<sup>*</sup> The code will be updated based on your changes.",format:"Forma
t",customize_for:"Customize for:",html:"HTML",wordpress:"Wordpress",size:"Size",
options:"Options",copy_link:"Copy Link",beginning_of_document:"Beginning of docu
ment",current_page:"Current page",fullscreen:"Fullscreen",start_at_page:"Start a
t page:",style:"Style:",autosize:"Autosize"}}}}});
/* app/views/pdfs/lightboxes/flag_doc_lightbox.coffee @ 1484174480 */
(function(){Scribd.FlagDocDialog=function(){function t(t){this.container=$(t).on
("submit",function(t){return function(){return t.container.addClass("loading")}}
(this)).on("ajax:complete",function(t){return function(){return t.container.remo
veClass("loading"),Scribd.Lightbox.close()}}(this))}return t}()}).call(this),(Sc
ribd.translations=Scribd.translations||[]).push({en_US:{pdfs:{lightboxes:{flag_d
oc_lightbox:{report_this_document:"Report this Document",please_tell_us_reason_s
_for_reporting:"Please tell us reason(s) for reporting this document",if_you_are
_the_copyright_owner:"If you are the copyright owner of this document and want t
o report it, please follow ",these_directions:"these directions",to_submit_a_cop
yright_infringement_notice:" to submit a copyright infringement notice.",cancel:
"Cancel",submit:"Submit"}}}}});
/* app/views/pdfs/lightboxes/_print_lightbox.coffee @ 1484174480 */
(function(){var t,e,n,i,r,o;i=React.DOM,e=i.div,r=i.span,n=i.p,t=Scribd.R.compon
ent_builder("Pdfs.Lightboxes.PrintLightbox",{css_class:"autogen_class_views_pdfs
_lightboxes_print_lightbox",track_category:"print_dialog"}),o=React.PropTypes,t(
{propTypes:{download_fn:o.func.isRequired},widget_css_classes:function(t){return
classNames(t,"lightbox")},render:function(){return e({className:"wrapper",child
ren:[e({className:"close_button"},r({className:"icon-close"})),e({className:"tit
le"},I18n.t("pdfs.lightboxes.print_lightbox.print_document")),e({className:"cont
ent",children:[n({},I18n.t("pdfs.lightboxes.print_lightbox.in_order_to_print_thi
s_document")),e({className:"buttons"},this.common_button({className:"download_bt

n",onClick:this.props.download_fn},I18n.t("pdfs.lightboxes.print_lightbox.downlo
ad_and_print")))]})]})}})}).call(this),(Scribd.translations=Scribd.translations|
|[]).push({en_US:{pdfs:{lightboxes:{print_lightbox:{print_document:"Print docume
nt",in_order_to_print_this_document:"In order to print this document from Scribd
you'll first need to download it.",download_and_print:"Download and print"}}}}}
);
/* app/views/pdfs/_seo_banner.coffee @ 1484174480 */
(function(){Scribd.SeoBanner=function(){function t(t,e){var n;null==e&&(e={}),th
is.container=$(t),this.variation=Scribd.SeoShared.seo_variation(),Scribd.pdfs_sh
ow.render(),this.container.track({action:"show",label:"seo_banner"}),$(document.
body).track_rats("doc:bottom_banner:show"),n=Scribd.SeoShared.banner_variation()
,this.render_text_copy(n),this.container.dispatch("click",{subscribe_btn:functio
n(){return function(){return $(document.body).track_rats("doc:subscribe_button:c
lick",{location:"bottom banner"}),Scribd.SignIn.open({initial_view:"join_archive
",next_url:e.subscribe_url,track_location:"seo_banner"})}}(this),seo_banner:func
tion(){return function(){return Scribd.logged_in?window.open(e.plans_landing_url
):Scribd.SignIn.open({initial_view:"join_archive",next_url:e.subscribe_url,track
_location:"seo_banner"})}}(this)})}return t.prototype.render_text_copy=function(
t){var e,n,i;return i=Scribd.SeoBannerTextDictionary.data(),n=i.value_prop[t.val
ue_prop],e=i.cta[t.cta],this.container.find(".seo_banner_header").text(n.header)
,this.container.find(".seo_banner_sub_header").text(n.sub_header),this.container
.find(".seo_banner_cta_button").text(e)},t}()}).call(this),(Scribd.translations=
Scribd.translations||[]).push({en_US:{read2:{seo_banner:{close:"Close",no_commit
ment:"No commitment.",cancel_anytime:"Cancel anytime."}},pdfs:{seo_banner:{join_
the_membership_for_readers:"Join the membership for readers.",books_audiobooks_d
ocuments_sheet_music_and:"Books, audiobooks, documents, sheet music and more.",s
tart_your_free_trial:"Start your free trial",cancel_anytime:"Cancel anytime."},s
eo_banner_text_dictionary:{start_your_free_30_days:"Start your free 30 days",sta
rt_your_free_trial:"Start your free trial",read_free_for_30_days:"Read free for
30 days",read_free_with_a_trial:"Read free with a trial",join_scribd_for_free:"J
oin Scribd for free",never_pay_full_price_to_read:"Never pay full price to read
again",join_scribd_and_get_the_best:"Join Scribd and get the best books and audi
obooks",there_s_always_more_to_the_story:"There's always more to the story",join
_scribd_and_never_stop_reading:"Join Scribd and never stop reading",become_an_ex
pert_in_anything:"Become an expert in anything",join_scribd_the_membership_for_r
eaders:"Join Scribd, the membership for readers",save_80_off_retail_prices_with:
"Save 80% off retail prices with a Scribd membership",the_best_books_audiobooks_
and_more:"The best books, audiobooks, and more",put_a_library_in_your_pocket:"Pu
t a library in your pocket",the_best_books_audiobooks_documents_and:"The best bo
oks, audiobooks, documents, and more",listen_to_the_best_audiobooks_read:"Listen
to the best audiobooks, read the best books",join_scribd_and_save_80_off:"Join
Scribd and save 80% off retail prices",read_what_interests_you:"Read what intere
sts you",broaden_your_knowledge_with_scribd:"Broaden your knowledge with Scribd"
,read_free_with_a_trial_:"Read Free With A Trial",read_for_free:"Read For Free",
read_free_for_1_month:"Read Free For 1 Month",read_free_for_one_month:"Read Free
For One Month"}}}});
/* app/views/pdfs/_seo_lightbox.coffee @ 1484174480 */
(function(){var t=function(t,n){function i(){this.constructor=t}for(var r in n)e
.call(n,r)&&(t[r]=n[r]);return i.prototype=n.prototype,t.prototype=new i,t.__sup
er__=n.prototype,t},e={}.hasOwnProperty;Scribd.SeoLightbox=function(e){function
n(){n.__super__.constructor.apply(this,arguments),this.setup_carousel(this.conta
iner.find(".seo_images")),this.setup_events(),this.setup_signup()}return t(n,e),
n.prototype.setup_carousel=function(t){var e;return t=$(t),e=$("<div class='scro
ller'></div>"),e.append(t.children().detach()),t.append(e)},n.prototype.setup_ev
ents=function(){return this.variation=Scribd.SeoShared.seo_variation(),this.cont
ainer.attr("data-track_category","seo_lightbox:"+this.variation),this.container.

dispatch("click",{close_button:function(t){return function(){return t.close()}}(


this),start_trial_btn:function(t){return function(){return t.start_trail()}}(thi
s)}),this.container.on("Scribd:lightbox:closed",function(t){return function(){re
turn t.container.track({action:"close",label:"close"})}}(this)),this.container.o
n("Scribd:Facebook:login_success",function(t){return function(){return Scribd.Li
ghtbox.open("login_successful_lb"),t.redirect_to_billing()}}(this)),this.contain
er.on("scribd:signup_error:email_taken",function(t){return function(){return t.s
ignup.find(".signup .input_error").text(I18n.t("pdfs.seo_lightbox.that_email_is_
already_taken")),t.signup.find(".signup .email_input").addClass("input_err field
_err")}}(this)),this.container.track({action:"show",label:"show"})},n.prototype.
setup_signup=function(){return this.signup=this.container.find(".seo_signup"),0=
==this.signup.length?void(this.signup=null):(this.signup.html(this.signup.html()
.replace(/DocPromoOne/g,this.campaign())),new Scribd.LoginForms(this.signup),new
Scribd.FacebookLoginButton(this.signup.find(".facebook_login_button")))},n.prot
otype.campaign=function(){switch(this.variation){case"control":case"new_control"
:return"DocPromoOne";case"new_basic":return"DocPromoTwo";case"new_doc_only_subsc
ribe":return"DocPromoFour";case"new_doc_only_archive":return"DocPromoFive"}},n.p
rototype.redirect_to_subscribe=function(){var t,e,n;return t=this.campaign(),thi
s.variation.match(/archive/)?(e=encodeURIComponent(JSON.stringify({page:"archive
_plans",context:"archive",action:t,logged_in:Scribd.logged_in,platform:"web"})),
window.open("/archive/plans?metadata="+e+"&doc="+(null!=(n=Scribd.current_doc)?n
.id:void 0))):window.open("/subscribe?action="+t)},n.prototype.redirect_to_billi
ng=function(){return window.location=this.signup.find('[name="login_params[next_
url]"]').val()},n.prototype.show_signup=function(){return this.signup.addClass("
open"),setTimeout(function(t){return function(){return t.signup.find(".signup .u
sername_input").focus()}}(this),200)},n.prototype.start_trail=function(){return
$(document.body).track_rats("doc:subscribe_button:click",{location:"lightbox"}),
null!=this.signup?Scribd.logged_in?this.redirect_to_billing():this.show_signup()
:this.redirect_to_subscribe()},n}(Scribd.Lightbox)}).call(this),(Scribd.translat
ions=Scribd.translations||[]).push({en_US:{pdfs:{seo_lightbox:{that_email_is_alr
eady_taken:"That email is already taken.",join_the_membership:"Join the membersh
ip",for_readers:"for readers",get_monthly_access_to_books_audiobooks:"Get monthl
y access to books, audiobooks, documents, <br />and more"}}}});
/* app/views/pdfs/show.coffee @ 1484174480 */
(function(){var t,e=function(t,e){return function(){return t.apply(e,arguments)}
};Scribd.Ads={addBetweenPageUnit:function(){}},t=function(t,e){var n;return n=na
vigator.platform.match(/Mac/),$(document).keydown(function(){return function(i){
return i.keyCode===t.charCodeAt(0)&&(n&&i.metaKey||!n&&i.ctrlKey)?e(i):void 0}}(
this))},Scribd.PdfsShow=function(){function n(t,n){var i;this.opts=n,this.setup_
inview_tracking=e(this.setup_inview_tracking,this),this.track_performance=e(this
.track_performance,this),this.container=$(t),this.setup_events(),this.fullscreen
=!1,Scribd.nway_test_force_group("ugcinterests",""+(this.opts.interests_variatio
n||0)),this.document=$.extend(this.opts.document,{total_pages:this.get_highest_p
age()}),this.render(),this.setup_sharing(),window.docManager&&(this.highlighter=
new Scribd.PdfHighlighter(this.container)),this.setup_sizing(),this.fetch_data()
,this.setup_sticky_footer(),this.setup_seo_roadblock(),this.setup_embed_referral
(),this.setup_print_detection(),this.setup_find_hotkey(),this.setup_buy_manager(
),this.track_performance(),this.send_tracking(),this.setup_inview_tracking(),thi
s.setup_reading_progress(),Scribd.hook_tooltips(this.container.parent()),i=windo
w.location.hash.match(/\bdownload\b/),i&&_.defer(function(t){return function(){r
eturn t.download_document("url")}}(this)),$(document.body).on("scribd:credit_red
eemed",function(){return document.location.reload()})}return n.min_zoom=.3,n.max
_zoom=3,n.prototype.track_performance=function(){return $(window).on("load",func
tion(){return function(){return window.performance?_.defer(function(){var t,e,n;
return t=performance.timing.domInteractive-performance.timing.navigationStart,e=
performance.timing.loadEventEnd-performance.timing.navigationStart,n=performance
.timing.loadEventEnd-performance.timing.responseEnd,$(document.body).track_rats(
"doc:performance",{dom_interactive:t,load_event_end:e,response_end:n})}):void 0}

}(this))},n.prototype.setup_sizing=function(){var t,e;return t=this.container.fi


nd(".document_scroller"),e=60,this.update_page_width=function(n){return function
(){var i,r,o;return i=n.fullscreen?1300:1e3,r=Math.min(i,t.width()-e),"undefined
"!=typeof docManager&&null!==docManager&&null!=(o=docManager._currentViewManager
)?o._setWidth(r):void 0}}(this),this.refresh_pages=function(t){return function()
{return t.update_page_width(),setTimeout(function(){return docManager._updatePag
eBoundingRects(),docManager._currentViewManager.checkAndUpdateVisiblePages()},10
0)}}(this),this.update_page_width(),$(window).on("resize",_.debounce(function(t)
{return function(){return t.update_page_width()}}(this),20))},n.prototype.send_t
racking=function(){return this.opts.pmp_data&&"function"==typeof $rat&&$rat("pmp
_read",this.opts.pmp_data),"function"==typeof $rat&&$rat("doc_view_mode",{value:
"doc_view_mode",doc_id:Scribd.current_doc.id}),"undefined"!=typeof $rat&&null!==
$rat&&$rat.root().flushEvents(),this.opts.pingback_url?Scribd.send_pingback(this
.opts.pingback_url):void 0},n.prototype.setup_inview_tracking=function(){var t,e
,n,i;return t={".page_missing_explanation":"doc:read_full_version_link:show",".p
age_blur_promo":"doc:free_preview_blur_button:show"},i=function(e){return functi
on(n){var i,r,o;r=[];for(o in t)if(n.closest(o).length&&(i=t[o])){delete t[o],$(
document.body).track_rats(i,{doc_id:e.document.id});break}return r}}(this),n=thi
s.container.find(".document_scroller"),e=_.throttle(function(r){return function(
){var o,s,a,c,l,u,d,h,p;if($.isEmptyObject(t))return void n.off("scroll",e);if(h
=function(){var t,e,n,i;for(n=this.container.find(".missing_page_buy_button"),i=
[],t=0,e=n.length;e>t;t++)s=n[t],s=$(s),s.data("tracked")||i.push(s);return i}.c
all(r),h.length){for(p=n.offset().top,o=p+n.height(),d=[],l=0,u=h.length;u>l;l++
)s=h[l],c=s.offset().top,a=c+s.height(),o>c&&a>p?(s.data("tracked",!0),d.push(i(
s))):d.push(void 0);return d}}}(this),400),n.on("scroll",e)},n.prototype.fetch_d
ata=function(){var t,e;return t=$(document.body),e=this.opts.data_url,_.isArray(
e)&&(e=e.join("")),$.get(e).done(function(){return function(e){return t.toggleCl
ass("buy_disabled",!!e.disabled_store_sale&&Scribd.current_doc.is_paid),t.toggle
Class("pmp_disabled",!!e.disabled_pmp_sale&&Scribd.current_doc.is_pmp)}}(this))}
,n.prototype.setup_sticky_footer=function(){var t,e;return t=this.container.find
(".document_footer"),t.length?(e=t.closest(".document_scroller"),e.on("scroll",f
unction(){return function(){return t.css({marginLeft:e.scrollLeft()+"px"})}}(thi
s))):void 0},n.prototype.setup_sharing=function(){var t,e,n,i,r,o;o=this.contain
er.find(".sharing_buttons"),n=o.data("sharing_opts"),new Scribd.SharingButtons(o
,n),r={"scribd:share:email":"doc:share_via_email_button:click","scribd:share:fac
ebook":"doc:share_via_facebook_button:click","scribd:share:twitter":"doc:share_v
ia_twitter_button:click","scribd:share:googleplus":"doc:share_via_googleplus_but
ton:click","scribd:share:pinterest":"doc:share_via_pinterest_button:click"},e=fu
nction(t){return function(e,n){return t.container.on(e,function(){return $(docum
ent.body).track_rats(n)})}}(this);for(t in r)i=r[t],e(t,i);return this.container
.dispatch("click",{embed_btn:function(){return function(t){return $(document.bod
y).track_rats("doc:embed_button:click"),Scribd.Lightbox.remote_open("embed_dialo
g",t.data("lightbox_url"))}}(this),flag_document_btn:function(t){return function
(e){return t.flag_document(e.data("lightbox_url"))}}(this)})},n.prototype.setup_
find_hotkey=function(){return t("F",function(t){return function(){var e;return e
=t.toolbar.container().find(".search_input"),e.length?(e.focus(),!1):void 0}}(th
is))},n.prototype.setup_print_detection=function(){var e;if(Scribd.current_doc.d
ownloadable_for_premium_users)return"function"==typeof window.matchMedia&&window
.matchMedia("print").addListener(_.debounce(function(t){return function(){return
t.print_document()}}(this),3e3,!0)),e=window.onbeforeprint,window.onbeforeprint
=function(t){return function(){return t.print_document(),"function"==typeof old_
onbeforeprint&&old_onbeforeprint(),!1}}(this),t("P",function(t){return function(
){return t.print_document(),!1}}(this))},n.prototype.get_highest_page=function()
{var t,e,n;if(!window.docManager)return 0;if(t=null!=(n=Scribd.current_doc)?n.pa
ge_count:void 0,!t){t=0;for(e in docManager.pages)t=Math.max(t,e)}return t},n.pr
ototype.render=function(){return window.docManager?(this.current_zoom=docManager
._currentViewManager._currentZoomMultiplier,this.render_toolbar(),this.container
.toggleClass("fullscreen",this.fullscreen)):void 0},n.prototype.render_toolbar=f
unction(){return this.toolbar_drop||(this.toolbar_drop=this.container.find(".too
lbar_drop")),this.toolbar=ReactDOM.render(Scribd.R.Pdfs.Toolbar({document:this.d

ocument,fullscreen:this.fullscreen,current_zoom:this.current_zoom,current_page:t
his.current_page||1,search_results:this.search_results,highlight_callback:functi
on(t){return function(e,n){return t.highlighter.clear(),t.highlighter.highlight_
from_results(e,n)}}(this)}),this.toolbar_drop[0])},n.prototype.setup_app_downloa
d_link_in_viewport_tracking=function(){return $(".download_app_promo_lightbox").
one("inview",function(t,e){return e?$(this).track_rats("download_app_promo:text_
link:view",{doc_id:Scribd.current_doc.id}):void 0})},n.prototype.setup_events=fu
nction(){var t,e;return this.setup_app_download_link_in_viewport_tracking(),t={}
,"undefined"!=typeof docManager&&null!==docManager&&docManager.addEvent("visible
PagesChanged",function(e){return function(n){var i,r,o,s,a;for(i=function(e){ret
urn setTimeout(function(){return t[e.pageNum]=!1},500)},a=[],r=0,o=n.length;o>r;
r++)s=n[r],t[s.pageNum]||(t[s.pageNum]=!0,i(s),a.push("function"==typeof $rat?$r
at("doc:page:show",{page:s.pageNum,of:e.document.total_pages}):void 0));return a
}}(this)),"undefined"!=typeof docManager&&null!==docManager&&docManager.addEvent
("expectedFirstPageChanged",function(t){return function(e){var n;return t.curren
t_page=e,t.render(),(n=t.going_to_page)?(delete t.going_to_page,n.to_page=""+e,$
(document.body).track_rats("doc:pager:engage",n)):void 0}}(this)),this.container
.on("click",".trial_learn_more_btn",function(){return function(){$(document.body
).track_rats("doc:subscribe_button:click",{location:"top bar banner"})}}(this)),
this.container.dispatch("click",{more_description_btn:function(t){return functio
n(){var e;return e=t.container.find(".collapse_data"),$(document.body).track_rat
s("doc:more_information_button:click",{action:e.is(".show_more")?"hide":"show"})
,e.toggleClass("show_more")}}(this),download_btn:function(t){return function(){r
eturn t.download_document("sidebar")}}(this),download_app_promo_lightbox:functio
n(t){return function(){return t.container.track_rats("download_app_promo:text_li
nk:click",{doc_id:Scribd.current_doc.id}),Scribd.Lightbox.open("app_download_pro
mo_lightbox")}}(this),trial_learn_more_btn:function(t){return function(){return
Scribd.SignIn.open({initial_view:"join_archive",next_url:t.opts.subscribe_url,tr
ack_location:"learn_more"})}}(this)}),$(document.body).on("scribd:unpause_accoun
t",function(t){return function(){return t.container.removeClass("has_toolbar_nag
")}}(this)),e=function(t){return function(e){return $(document.body).track_rats(
"doc:zoom_"+e+"_button:click",{to_zoom_level:Math.floor(100*t.current_zoom)+"%"}
)}}(this),Scribd.R.dispatch(this.container,{"toolbar:goto_page":function(t){retu
rn function(e,n,i){var r,o;return null==i&&(i=!1),r=n>t.current_page?1:-1,o=docM
anager.getClosestPageNumber(n,r),i||(t.going_to_page={text:""+n,from_page:""+(t.
current_page||1)}),docManager.gotoPage(o,{direction:r})}}(this),"toolbar:zoom_in
":function(t){return function(){return t.current_zoom>=t.constructor.max_zoom?vo
id 0:("undefined"!=typeof docManager&&null!==docManager&&docManager.zoom(1.25),t
.render(),e("in"))}}(this),"toolbar:zoom_out":function(t){return function(){retu
rn t.current_zoom<=t.constructor.min_zoom?void 0:("undefined"!=typeof docManager
&&null!==docManager&&docManager.zoom(.8),t.render(),e("out"))}}(this),"toolbar:d
ownload":function(t){return function(){return t.download_document(t.fullscreen?"
toolbar right fullscreen":"toolbar right default")}}(this),"toolbar:print":funct
ion(t){return function(){return $(document.body).track_rats("doc:print_button:cl
ick"),t.print_document()}}(this),"toolbar:fullscreen":function(t){return functio
n(){return $(document.body).track_rats("doc:fullscreen_button:click",{action:t.f
ullscreen?"exit fullscreen":"fullscreen"}),t.set_fullscreen(!t.fullscreen)}}(thi
s),"toolbar:clear_search":function(t){return function(){return t.highlighter.cle
ar()}}(this),"toolbar:goto_search_result":function(t){return function(e,n,i){var
r,o,s;return(o=t.last_search_results[n])?(i||$(document.body).track_rats("doc:s
earch_doc_result:click",{index:n}),s=_.filter(t.last_search_results,function(t){
return t.pageNum===o.pageNum}),r=_.indexOf(s,o),t.highlighter.select_result(o.pa
geNum,r)):void 0}}(this),"toolbar:search":function(t){return function(e,n){retur
n $(document.body).track_rats("doc:search_doc:engage",{text:n}),$.post(t.documen
t.toolbar.search_url,{query:n}).done(function(e){return t.last_search_results=e,
t.toolbar.set_search_results(n,e)})}}(this)})},n.prototype.set_fullscreen=functi
on(t){return this.fullscreen=t,this.render(),this.refresh_pages()},n.prototype.p
rint_document=function(){return $(document.body).track_rats("doc:print_modal:sho
w"),Scribd.Lightbox.open_react("print_document_lb",Scribd.R.Pdfs.Lightboxes.Prin
tLightbox({download_fn:function(t){return function(){return t.download_document(

"print modal")}}(this)}))},n.prototype.flag_document=function(t){return $(docume


nt.body).track_rats("doc:flag_button:click"),Scribd.with_login({initial_view:"lo
gin",login_header_text:I18n.t("pdfs.show.sign_in_to_flag_this_title")},function(
){return function(){return Scribd.Lightbox.remote_open("lightbox_flag_document",
t)}}(this))},n.prototype.download_document=function(t){return t&&$(document.body
).track_rats("doc:download_button:click",{location:t}),Scribd.Lightbox.show_load
ing(),Scribd.download_actions.download(this.document.id,"read","toolbar_download
",function(t){return function(){return $.post(t.document.download_url).done(func
tion(e){return $(document.body).track_rats("doc:download_modal:show"),e.props.do
wnload_url=t.document.download_url,Scribd.Lightbox.open_react("document_download
_lb",Scribd.R.Pdfs.Lightboxes.DownloadLightbox(e.props))})}}(this))},n.prototype
.setup_reading_progress=function(){var t,e,n,i;return t=null!=(e=window.location
.hash.match(/\bpage=(\d+)/))?e[1]:void 0,t||(t=null!=(n=Scribd.current_doc)&&nul
l!=(i=n.reading_progress)?i.offset:void 0),new Scribd.ReadingProgress.Pdf({scrol
l_node:DocumentManager.scrollParent,total_pages:this.opts.document.total_pages})
,docManager.view_manager_deferred.then(function(e){return function(){var n;retur
n n=window.location.hash.match(/\bfullscreen\b/),t&&+t>1&&!Scribd.ReadingProgres
s.PastPreviewLightbox.should_be_shown()&&docManager.gotoPage(+t),n?_.defer(funct
ion(){return e.set_fullscreen(!0)}):void 0}}(this)),$(window).on("scribd:externa
l_reading_progress",function(){return function(t,e){return docManager.gotoPage(+
e.offset+1)}}(this))},n.prototype.setup_embed_referral=function(){var t,e;return
e=window.location.hash.search(/from_embed/)>0,t=$("#seo_banner_template"),e&&t.
length>0?_.defer(function(t){return function(){return t.show_seo_banner()}}(this
)):void 0},n.prototype.setup_seo_roadblock=function(){return window.docManager&&
Scribd.SeoShared.setup_assignment()&&(_.defer(function(t){return function(){retu
rn t.show_seo_banner()}}(this)),!this.opts.view_restricted)?ouibounce(!1,{callba
ck:function(){return function(){var t,e,n;if(!Scribd.Lightbox.current_open)retur
n n=Scribd.SeoShared.seo_variation(),e="seo_roadblock_lb_"+n,t=Scribd.Lightbox.o
pen(e,Scribd.SeoLightbox)}}(this)}):void 0},n.prototype.show_seo_banner=function
(){var t;if(this.is_english_locale()&&!this.container.is(".has_seo_banner"))retu
rn t=this.container.find(".seo_banner_drop"),t.html($("#seo_banner_template").da
ta("content")),this.container.addClass("has_seo_banner")},n.prototype.setup_buy_
manager=function(){var t;return t=Scribd.BuyDocManager.for_current_doc(),this.co
ntainer.find(".primary_buy_btn").attr("href",t.buy_url)},n.prototype.is_english_
locale=function(){return"en_US"===I18n.locale},n}()}).call(this),(Scribd.transla
tions=Scribd.translations||[]).push({en_US:{pdfs:{show:{sign_in_to_flag_this_tit
le:"Sign in to flag this title",page_page_is_not_shown:"Page %{page} is not show
n in this preview.",pages_start_page_to_end_page_is_not_shown:"Pages <span class
='missing_page_number notranslate'>%{start_page}</span> to <span class='missing_
page_number notranslate'>%{end_page}</span> are not shown in this preview.",sign
_up_to_print_document_after:"Sign up to print document after downloading",welcom
e_to_scribd:"Welcome to Scribd!",start_your_free_trial_and_access:"Start your fr
ee trial and access books, documents and more.",find_out_more:"Find out more"}}}
});
/* app/views/pdfs/_sidebar.coffee @ 1484174480 */
(function(){var t=function(t,e){return function(){return t.apply(e,arguments)}};
Scribd.PdfsSidebar=function(){function e(e,n){null==n&&(n={}),this.track_interes
ts=t(this.track_interests,this),this.setup_download_copy=t(this.setup_download_c
opy,this),this.container=$(e),this.track_interests(),this.setup_download_copy(),
"left"===n.side&&this.container.find(".document_cell").addClass("no_hovercard"),
this.container.dispatch("click",{interest_link:function(){return function(t){ret
urn $(document.body).track_rats("doc:interests:click",{interest:{id:t.data("cate
gory_id"),name:t.text()}}),"continue"}}(this),see_more_btn:function(t){return fu
nction(){return $(document.body).track_rats("doc:more_information_button:click",
{action:"show"}),Scribd.Lightbox.open_react("description_lightbox",Scribd.R.Pdfs
.Lightboxes.DescriptionLightbox({description_content:t.container.find(".full_des
cription").html()}))}}(this)})}return e.prototype.setup_download_copy=function()
{var t,e,n,i;return n=this.container.find(".action_button.download_btn"),e=n.fin

d(".flat_btn_content"),Scribd.current_user||(i=n.data("variations"),(t=null!=i?i
[Scribd.nway_test_choice_value("doc_download_copy")]:void 0)&&e.text(t)),e.css({
opacity:"1"})},e.prototype.track_interests=function(){var t,e;return e=function(
){var e,n,i,r;for(i=this.container.find(".interest_link"),r=[],e=0,n=i.length;n>
e;e++)t=i[e],t=$(t),r.push({id:t.data("category_id"),name:t.text()});return r}.c
all(this),e.length?$(document.body).track_rats("doc:interests:show",{interests:e
}):void 0},e}()}).call(this),(Scribd.translations=Scribd.translations||[]).push(
{en_US:{pdfs:{sidebar:{download:"Download",resume:"Resume",read_all:"Read all",b
uy_paid_document_price_currency:"Buy %{paid_document_price_currency}",edit_docum
ent:"Edit document",by:"by",embed:"Embed",read_anywhere_with_the_scribd_app:"Rea
d anywhere with the Scribd app",description:"Description",read_on_scribd_mobile:
"Read on Scribd mobile:",iphone:"iPhone",ipad:"iPad",and:"and",android:"Android"
,copyright:"Copyright:",list_price:"List price:",flag_for_inappropriate_content:
"Flag for inappropriate content",show_more:"Show more",more_information:"More in
formation",show_less:"Show less",interests:"Interests:",view:"view",strong_downl
oad_strong_as_available_extensions_map_upcase_join_or_read_online:"<strong>Downl
oad</strong> as %{available_extensions_map_upcase_join} or read online from Scri
bd",related_interests:"Related interests",download_with_free_trial:"Download Wit
h Free Trial",download_this_document:"Download This Document",isbn:"ISBN:"}}}});
/* app/views/pdfs/sidebar/_admin_panel.coffee @ 1484174480 */
(function(){Scribd.ReadPageAdmin=function(){function t(t){var e;this.container=$
(t),e=!0,this.container.dispatch("click",{toggle_admin_btn:function(t){return fu
nction(){return t.container.toggleClass("open")}}(this)})}return t}()}).call(thi
s);
/* app/views/pdfs/_sidebar_paginator.coffee @ 1484174480 */
(function(){var t,e,n,i,r;i=React.DOM,n=i.div,t=i.a,e=Scribd.R.component_builder
("Pdfs.SidebarPaginator",{css_class:"autogen_class_views_pdfs_sidebar_paginator"
}),r=React.PropTypes,e({propTypes:{num_pages:r.number},getInitialState:function(
){return{current_page:1}},widget_css_classes:function(t){return classNames(t,"re
lated_pager")},goto_page:function(t){return this.setState({current_page:t}),this
.trigger("sidebar:goto_page",t)},render:function(){return 1!==this.props.num_pag
es?[n({className:"pager_navigate",children:[t({className:classNames({active:1!==
this.state.current_page}),herf:"javascript:void(0)",onClick:function(t){return f
unction(e){return $(e.target).is(".active")?(e.preventDefault(),t.goto_page(Math
.max(1,t.state.current_page-1))):void 0}}(this)},I18n.t("pdfs.sidebar_paginator.
previous")),n({className:"bar"}),t({className:classNames({active:this.state.curr
ent_page!==this.props.num_pages}),herf:"javascript:void(0)",onClick:function(t){
return function(e){return $(e.target).is(".active")?(e.preventDefault(),t.goto_p
age(Math.min(t.props.num_pages,t.state.current_page+1))):void 0}}(this)},I18n.t(
"pdfs.sidebar_paginator.next"))]}),n({className:"related_current_page"},I18n.t("
pdfs.sidebar_paginator.page_state_current_page_of_props_num_pages",{state_curren
t_page:this.state.current_page,props_num_pages:this.props.num_pages}))]:void 0}}
)}).call(this),(Scribd.translations=Scribd.translations||[]).push({en_US:{pdfs:{
sidebar_paginator:{previous:"Previous",next:"Next",page_state_current_page_of_pr
ops_num_pages:"Page %{state_current_page} of %{props_num_pages}"}}}});
/* app/views/pdfs/_ssi_recommendations.coffee @ 1484174480 */
(function(){var t=function(t,e){return function(){return t.apply(e,arguments)}};
Scribd.PdfsGroupedRecommendations=function(){function e(e){this.track_module=t(t
his.track_module,this),this.setup_tracking=t(this.setup_tracking,this),this.cont
ainer=$(e),this.setup_tracking()}return e.prototype.setup_tracking=function(){va
r t,e,n,i,r;for(i=this.container.find("[data-track_opts]"),r=[],t=0,e=i.length;e
>t;t++)n=i[t],r.push(this.track_module($(n)));return r},e.prototype.track_module
=function(t){var e;return e=t.data("track_opts"),e.compilation_id?new Scribd.Rec
ommendationTracking.Module(t,{compilation_id:e.compilation_id,module_id:e.module

_id,widget_name:"sidebar",on_in_view:function(){return function(e){var n,i,r,o,s


;for(o=t.find("[data-track_uuid]"),s=[],i=0,r=o.length;r>i;i++)n=o[i],n=$(n),s.p
ush(function(t){return t.on("inview",function(){return function(){return Scribd.
RecommendationTracking.track_obj_view(e.view_id,t.data("track_uuid"))}}(this))}(
n));return s}}(this)}):void 0},e}(),Scribd.PdfsPaginatedRecommendations=function
(){function t(t,e){this.module=e,this.container=$(t),this.setup_tracking(),Scrib
d.R.dispatch(this.container,{"sidebar:goto_page":function(t){return function(e,n
){var i;return i=t.container.find(".documents_page"),i.removeClass("visible").eq
(n-1).addClass("visible"),t.track_visible_sidebar()}}(this)})}return t.prototype
.setup_tracking=function(){return this.module.compilation_id?new Scribd.Recommen
dationTracking.Module(this.container,{compilation_id:this.module.compilation_id,
module_id:this.module.module_id,widget_name:"right sidebar",on_tracking:function
(t){return function(e){t.tracking=e}}(this),on_in_view:function(t){return functi
on(){return t.track_visible_sidebar()}}(this)}):void 0},t.prototype.track_visibl
e_sidebar=function(){var t,e,n,i,r,o,s;if(this.tracking){for(s=this.container.fi
nd(".documents_page.visible"),r=s.find(".document_cell"),o=[],e=0,n=r.length;n>e
;e++)t=r[e],t=$(t),t.is(".visibility_tracked")||(i=t.data("track_uuid"),Scribd.R
ecommendationTracking.track_obj_view(this.tracking.view_id,i),o.push(t.addClass(
"visibility_tracked")));return o}},t}(),Scribd.PdfsSsiRecommendations=function()
{function t(t,e){this.opts=e,this.container=$(t),this.setup_sidebar(),Scribd.jsb
lock.done(function(t){return function(){return t.setup_footer_docs()}}(this))}re
turn t.prototype.setup_sidebar=function(){var t;if(t=this.container.find(".sideb
ar_recommender"),t.length)switch(this.opts.template){case"default":return new Sc
ribd.PdfsPaginatedRecommendations(t,this.opts.sidebar[0]);case"discovery":return
new Scribd.PdfsGroupedRecommendations(t);default:return console.error("Unknown
template: "+this.opts.template)}},t.prototype.setup_footer_docs=function(){var t
,e,n,i,r,o,s;if(e=this.container.find(".footer_rec_docs"),n=this.container.close
st(".document_columns_wrapper").find(".footer_recommended_docs_drop"),e.length)f
or(n.replaceWith(e),s=e.find("[data-recommender_init]"),r=0,o=s.length;o>r;r++)t
=s[r],t=$(t),new Scribd.UI.Carousel(t,t.data("recommender_init"));return i=this.
container.find(".footer_rec_docs_html"),i.length?n.replaceWith(i.data("html")):v
oid 0},t}(),Scribd.PdfsSsiFooterRecommendations=function(){function t(t,e){this.
opts=e}return t}()}).call(this),(Scribd.translations=Scribd.translations||[]).pu
sh({en_US:{pdfs:{ssi_recommendations:{related:"Related",by:"by"}}}});
/* app/views/pdfs/_toolbar.coffee @ 1484174480 */
(function(){var t,e,n,i,r,o,s,a,c,l,u,d,h=[].slice;c=React.DOM,o=c.input,i=c.div
,t=c.a,e=c.button,s=c.label,l=c.span,r=c.form,a=c.p,u=c.strong,n=Scribd.R.compon
ent_builder("Pdfs.Toolbar",{css_class:"autogen_class_views_pdfs_toolbar"}),d=Rea
ct.PropTypes,n({propTypes:{fullscreen:d.bool.isRequired,current_zoom:d.number.is
Required,current_page:d.number.isRequired,highlight_callback:d.func,document:d.s
hape({is_downloadable:d.bool,total_pages:d.number.isRequired,toolbar:d.shape({se
ctions:d.array,search_url:d.string}).isRequired}).isRequired},widget_css_classes
:function(t){return classNames(t,{narrow_tools:this.state.narrow})},getInitialSt
ate:function(){return{table_of_contents_open:!1,search_results_open:!1,search_re
sults:void 0,search_active:!1,selected_search_result:void 0,search_input:"",chan
ging_to_page:null}},update_width:function(){var t,e;if(t=this.container(),e=t.ou
terWidth(),850>e){if(!this.state.narrow)return this.setState({narrow:!0})}else i
f(this.state.narrow)return this.setState({narrow:!1})},componentDidMount:functio
n(){return $(window).on("resize",_.debounce(this.update_width,100)),this.update_
width(),$(document.body).on("click",function(t){return function(e){var n;return
t.state.search_results_open&&(n=$(e.target).closest(t.refs.search_wrapper),n.len
gth||t.setState({search_results_open:!1})),t.state.table_of_contents_open&&(n=$(
e.target).closest(t.refs.toc_wrapper),!n.length)?t.setState({table_of_contents_o
pen:!1}):void 0}}(this))},componentDidUpdate:function(t,e){return this.state.sea
rch_active&&!e.search_active?Scribd.init_spinners(this.container()):void 0},set_
search_results:function(t,e){var n;if(t===this.state.last_search_query)return"fu
nction"==typeof(n=this.props).highlight_callback&&n.highlight_callback(t,e),e.le
ngth>0&&this.trigger("toolbar:goto_search_result",0,!0),this.setState({search_re

sults:e,search_results_open:!0,search_active:!1,table_of_contents_open:!1,select
ed_search_result:e[0]&&0})},render:function(){return[i({className:"left_tools",c
hildren:this.render_left_tools()}),i({className:"center_tools",children:this.ren
der_center_tools()}),i({className:"right_tools",children:this.render_right_tools
()})]},render_left_tools:function(){return[this.props.fullscreen?t({href:"/",cla
ssName:"toolbar_scribd_logo"}):void 0,this.props.document.toolbar.sections?i({re
f:"toc_wrapper",className:"toc_wrapper",children:[e({type:"button","data-tooltip
":!0,"aria-label":I18n.t("pdfs.toolbar.table_of_contents"),className:classNames(
"toc_btn icon-toc","toolbar_btn",{active:this.state.table_of_contents_open}),onC
lick:function(t){return function(){return $(document.body).track_rats("doc:table
_of_contents_button:click",{action:t.state.table_of_contents_open?"hide":"show"}
),t.setState({table_of_contents_open:!t.state.table_of_contents_open,search_resu
lts_open:!1})}}(this)}),this.state.table_of_contents_open?this.render_toc():void
0]}):void 0,this.props.document.toolbar.search_url?i({ref:"search_wrapper",clas
sName:"search_wrapper",children:[this.render_search(),this.state.search_results_
open&&this.state.search_results?this.render_search_results():void 0]}):void 0]},
render_center_tools:function(){var t,n,r;return t=_.string.numberFormat,r=this.p
rops.current_zoom<=Scribd.PdfsShow.min_zoom,n=this.props.current_zoom>=Scribd.Pd
fsShow.max_zoom,[i({className:"toolbar_pager",children:[o({type:"text",className
:"page_input","aria-label":"Edit page",value:null!=this.state.changing_to_page?t
his.state.changing_to_page:this.props.current_page,onFocus:function(){return fun
ction(){return $(document.body).track_rats("doc:pager:click")}}(this),onBlur:fun
ction(t){return function(e){var n;if(null!=t.state.changing_to_page)return e.tar
get.value.match(/\d/)&&(n=parseInt(e.target.value,10),n!==t.props.current_page&&
t.trigger("toolbar:goto_page",n)),t.setState({changing_to_page:null})}}(this),on
KeyDown:function(t){return function(e){if(t.state.changing_to_page)switch(e.keyC
ode){case 13:return t.trigger("toolbar:goto_page",parseInt(e.target.value,10)),t
.setState({changing_to_page:null});case 27:return t.setState({changing_to_page:n
ull})}}}(this),onChange:function(t){return function(e){return t.setState({changi
ng_to_page:e.target.value})}}(this)}),l({className:"total_pages"},I18n.t("pdfs.t
oolbar.of_numberformat_props_document_total_pages",{numberformat_props_document_
total_pages:t(this.props.document.total_pages)}))]}),e({type:"button","data-tool
tip":!0,"aria-label":I18n.t("pdfs.toolbar.zoom_in"),className:classNames("toolba
r_btn zoom_btn icon-zoom-in-default",{disabled:n}),onClick:function(t){return fu
nction(){return n?void 0:t.trigger("toolbar:zoom_in")}}(this)}),e({type:"button"
,"data-tooltip":!0,"aria-label":I18n.t("pdfs.toolbar.zoom_out"),className:classN
ames("toolbar_btn zoom_btn icon-zoom-out-default",{disabled:r}),onClick:function
(t){return function(){return r?void 0:t.trigger("toolbar:zoom_out")}}(this)})]},
render_right_tools:function(){return[this.props.document.is_downloadable?this.pr
ops.fullscreen?this.common_button({onClick:function(t){return function(){return
t.trigger("toolbar:download")}}(this)},I18n.t("pdfs.toolbar.download")):e({type:
"button","data-tooltip":!0,"aria-label":I18n.t("pdfs.toolbar.download"),classNam
e:"toolbar_btn icon-download",onClick:function(t){return function(){return t.tri
gger("toolbar:download")}}(this)}):void 0,this.props.document.is_downloadable?e(
{"data-tooltip":!0,"aria-label":I18n.t("pdfs.toolbar.print"),className:"toolbar_
btn icon-print",onClick:function(t){return function(){return t.trigger("toolbar:
print")}}(this)}):void 0,e({"data-tooltip":!0,"aria-label":I18n.t(this.props.ful
lscreen?"pdfs.toolbar.exit_fullscreen":"pdfs.toolbar.fullscreen"),type:"button",
className:classNames("toolbar_btn",{"icon-ic_fullscreen":!this.props.fullscreen,
"icon-fullscreen_collapse":this.props.fullscreen}),onClick:function(t){return fu
nction(){return t.trigger("toolbar:fullscreen")}}(this)})]},render_search:functi
on(){return r({className:classNames("doc_search",{focused:this.state.search_focu
sed,open:this.state.search_results_open,has_text:""!==this.state.search_input}),
action:this.props.document.toolbar.search_url,onSubmit:function(t){return functi
on(e){var n;return e.preventDefault(),n=$(t.refs.search_input).val(),n.match(/^\
s*$/)?void t.setState({search_results_open:!1}):(n=n.match(/^\s*(.*?)\s*$/)[0],n
!==t.state.last_search_query?(t.trigger("toolbar:search",n),t.setState({search_a
ctive:!0,search_results_open:!1,last_search_query:n,search_results:void 0,select
ed_search_result:void 0})):void 0)}}(this),children:[s({children:[i(this.state.s
earch_active?{className:"scribd_spinner","data-size":20}:{className:"search_icon

icon-search"}),o({type:"text",ref:"search_input","aria-label":I18n.t("pdfs.tool
bar.search_document"),placeholder:I18n.t("pdfs.toolbar.search_document"),classNa
me:"search_input",value:this.state.search_input,onChange:function(t){return func
tion(e){return t.setState({search_input:e.target.value})}}(this),onBlur:function
(t){return function(e){return t.setState({search_focused:!1}),e.target.value!==t
.state.last_search_query?t.trigger("toolbar:clear_search"):void 0}}(this),onFocu
s:function(t){return function(e){return t.setState({search_focused:!0}),$(docume
nt.body).track_rats("doc:search_doc:click"),t.state.search_active||!t.state.sear
ch_results||t.state.search_results_open||e.target.value!==t.state.last_search_qu
ery?void 0:t.setState({search_results_open:!0})}}(this),onKeyDown:function(t){re
turn function(e){return 27===e.keyCode?t.state.search_results_open?t.setState({s
earch_results_open:!1,last_search_query:null}):t.state.search_active&&t.state.la
st_search_query?t.setState({search_active:!1,last_search_query:null}):(t.trigger
("toolbar:clear_search"),t.setState({search_input:""})):void 0}}(this)}),""!==th
is.state.search_input?e({type:"button",className:"search_close_icon icon-close",
onClick:function(t){return function(){return t.setState({search_input:"",search_
active:!1,search_results_open:!1,last_search_query:null}),t.trigger("toolbar:cle
ar_search")}}(this)}):void 0]})]})},render_search_results:function(){var e,n,r,o
,s,a;return n=_.string.numberFormat,o=this.state.last_search_query,s=this.state.
search_results.filter(function(t){return!!t.snippet}),e=s.length,r=function(t,e,
i){return n(t)+" "+(1===t&&e||i)},a=1===e?I18n.t("pdfs.toolbar.showing_strong_1_
strong_result_for_query"):I18n.t("pdfs.toolbar.showing_strong_num_results_strong
_results_for_query",{num_results:e}),i({className:classNames("search_results res
ults_popup",{empty:0===e}),children:[i({className:"results_header results_header
",children:[l({dangerouslySetInnerHTML:{__html:a}}),l({}," \u2018"+o+"\u2019")]}
),s.map(function(e){return function(r,s){return i({className:classNames("results
_row available",{selected:s===e.state.selected_search_result}),children:[l({clas
sName:"result_page_number"},n(r.pageNum)),t.apply(null,[{href:"javascript:void(0
)",onClick:function(t){return t.preventDefault(),e.trigger("toolbar:goto_search_
result",s),e.setState({selected_search_result:s})}}].concat(h.call(e.render_snip
pet(r.snippet,o))))]})}}(this))]})},render_snippet:function(t,e){var n,i,r,o,s,c
;if(!e)return t;for(r=RegExp(Scribd.escape_regexp(e),"ig"),i=[],o=0;s=r.exec(t);
)a=s.index,n=s[0],a-o>0&&i.push(t.substring(o,a)),i.push(u({},n)),o=a+n.length;r
eturn(c=t.substring(o))&&i.push(c),i},render_toc:function(){var e,n;return n=_.s
tring.numberFormat,e=null,i({className:"table_of_contents results_popup",childre
n:[i({className:"toc_header results_header"},I18n.t("pdfs.toolbar.table_of_conte
nts")),this.props.document.toolbar.sections.map(function(r){return function(o){r
eturn!e&&o.first_page>=r.props.current_page&&(e=o),i({className:classNames("toc_
row results_row",{available:o.allowed,current:e===o}),title:o.allowed?void 0:I18
n.t("pdfs.toolbar.this_section_not_available_in_preview"),children:[o.first_page
?l({className:"result_page_number"},n(o.first_page)):void 0,o.allowed?t({href:"j
avascript:void(0)",onClick:function(t){return r.trigger("toolbar:goto_page",o.fi
rst_page,!0),r.setState({table_of_contents_open:!1}),t.preventDefault()}},o.titl
e):l({className:"disabled_section"},o.title)]})}}(this))]})}})}).call(this),(Scr
ibd.translations=Scribd.translations||[]).push({en_US:{pdfs:{toolbar:{table_of_c
ontents:"Table of contents",of_numberformat_props_document_total_pages:"of %{num
berformat_props_document_total_pages}",zoom_in:"Zoom in",zoom_out:"Zoom out",dow
nload:"Download",print:"Print",exit_fullscreen:"Exit fullscreen",fullscreen:"Ful
lscreen",search_document:"Search document",this_section_not_available_in_preview
:"This section not available in preview",showing_strong_1_strong_result_for_quer
y:"Showing <strong>1</strong> result for",showing_strong_num_results_strong_resu
lts_for_query:"Showing <strong>%{num_results}</strong> results for"}}}});
/* app/views/shared/reading_progress/external_progress_lightbox.coffee @ 1484174
481 */
(function(){var t=function(t,n){function i(){this.constructor=t}for(var r in n)e
.call(n,r)&&(t[r]=n[r]);return i.prototype=n.prototype,t.prototype=new i,t.__sup
er__=n.prototype,t},e={}.hasOwnProperty;Scribd.ReadingProgress.ExternalProgressL
ightbox=function(e){function n(t,e){var i;this.opts=e,this.container=$(t),n.__su

per__.constructor.apply(this,arguments),this.show(this.progress=null!=(i=Scribd.
current_doc)?i.reading_progress:void 0),$(window).on("scribd:external_reading_pr
ogress",function(t){return function(e,n){return t.show(n)}}(this))}return t(n,e)
,n.should_be_shown=function(t){return(null!=t?t.offset:void 0)?t.from_current_de
vice?!1:"browser"===t.device_name?!1:!0:!1},n.prototype.show=function(t){var e;r
eturn this.progress=t,Scribd.ReadingProgress.ExternalProgressLightbox.should_be_
shown(this.progress)?(this.container.find(".device_name").text(this.progress.dev
ice_name),n.__super__.show.apply(this,arguments),e=Scribd.current_doc.is_comic?"
comic":Scribd.current_doc.is_sheet_music?"sheet music":"book",this.container.tra
ck_rats("reading_progress:progress_moved:show",{doc_id:Scribd.current_doc.id,des
tination_offset:this.progress.offset,offset_type:this.progress.offset_type,docum
ent_type:e})):void 0},n}(Scribd.StackedLightbox)}).call(this),(Scribd.translatio
ns=Scribd.translations||[]).push({en_US:{shared:{reading_progress:{external_prog
ress_lightbox:{we_ve_moved_you_to_where_you:"We've moved you to where you read o
n your <span class='device_name'>%{device_name}</span>."}}}}});
/* app/views/shared/reading_progress/past_preview_lightbox.coffee @ 1484174481 *
/
(function(){var t=function(t,n){function i(){this.constructor=t}for(var r in n)e
.call(n,r)&&(t[r]=n[r]);return i.prototype=n.prototype,t.prototype=new i,t.__sup
er__=n.prototype,t},e={}.hasOwnProperty;Scribd.ReadingProgress.PastPreviewLightb
ox=function(e){function n(t,e){this.opts=null!=e?e:{},this.container=$(t),n.__su
per__.constructor.apply(this,arguments),this.show(),this.container.dispatch("cli
ck",{restart_preview:function(t){return function(){return null!=Scribd.read_page
?Scribd.read_page.goto_progress({offset_type:"character",offset:0}):"undefined"!
=typeof docManager&&null!==docManager&&docManager.gotoPage(1),t.close(!0)}}(this
),get_full_title:function(t){return function(){return t.close(!0),"continue"}}(t
his)})}return t(n,e),n.should_be_shown=function(){var t;return t=!0,function(){v
ar e,n;return t&&Scribd.logged_in?(t=!1,e=(null!=(n=Scribd.current_doc.reading_p
rogress)?n.offset:void 0)||0,null!=Scribd.read_page?Scribd.read_page.epub.isProg
ressBeyondBounds(null,e):"undefined"!=typeof docManager&&null!==docManager?e+1>d
ocManager._maximumAllowedPage:void 0):!1}}(),n.prototype.show=function(){var t;i
f(Scribd.ReadingProgress.PastPreviewLightbox.should_be_shown()&&this.opts.credit
_restricted)return n.__super__.show.apply(this,arguments),t=Scribd.current_doc.i
s_comic?"comic":Scribd.current_doc.is_sheet_music?"sheet music":"book",this.cont
ainer.track_rats("reading_progress:progress_moved:show",{doc_id:Scribd.current_d
oc.id,desired_offset:Scribd.current_doc.reading_progress.offset,offset_type:Scri
bd.current_doc.reading_progress.offset_type,document_type:t,is_preview:!0})},n.p
rototype.close=function(t){return null==t&&(t=!1),t?n.__super__.close.apply(this
,arguments):void 0},n}(Scribd.StackedLightbox)}).call(this),(Scribd.translations
=Scribd.translations||[]).push({en_US:{shared:{reading_progress:{past_preview_li
ghtbox:{get_the_full_title_to_continue:"Get the full title to continue",get_the_
full_title_to_continue_:"Get the full title to continue reading from where you l
eft off, or restart the preview.",restart_preview:"Restart preview"}}}}});
/* :class_inlines, 'spec_javascripts/js_spec', ... @ (none) */

You might also like