PageSourceSearch

https://www.energy-omni.com/static/web/scripts/plugins/flipbook/flipbook.min.js

js energy-omni.com collected 2026-09-26 06:54:44 UTC 117,962 bytes, 6 lines download raw bytes

1/*
2Real3D FlipBook
3version 3.32
4author http://codecanyon.net/user/creativeinteractivemedia/portfolio?ref=creativeinteractivemedia
5*/
6var FLIPBOOK=FLIPBOOK||{};!function(e,t,o,i){e.fn.flipBook=function(e){return new FLIPBOOK.Main(e,this)},e.fn.swipeBook=function(e){return e.viewMode="swipe",new FLIPBOOK.Main(e,this)},e.fn.flipBook.options={name:"",pages:[],tableOfContent:[],tableOfContentCloseOnClick:!0,thumbsCloseOnClick:!0,deeplinkingEnabled:!1,deeplinkingPrefix:"",assets:{preloader:"images/preloader.jpg",overlay:"images/overlay.png",flipMp3:"./styles/scss/plugins/flipbook/mp3/turnPage.mp3",spinner:"images/spinner.gif",backgroundMp3:"mp3/background.mp3"},pdfUrl:null,pdfBrowserViewerIfMobile:!1,pdfBrowserViewerIfIE:!1,pdfBrowserViewerFullscreen:!0,pdfBrowserViewerFullscreenTarget:"_blank",pdfPageScale:1,pdfOutline:!0,rangeChunkSize:64,disableRange:!1,disableStream:!0,disableAutoFetch:!0,htmlLayer:!0,rightToLeft:!1,startPage:0,sound:!0,backgroundColor:"rgb(81, 85, 88)",backgroundImage:"",backgroundPattern:"",backgroundTransparent:!1,thumbSize:130,loadAllPages:!1,loadPagesF:2,loadPagesB:1,autoplayOnStart:!1,autoplayInterval:3e3,autoplayLoop:!0,skin:"light",layout:"1",menuOverBook:!1,menuFloating:!1,menuBackground:"",menuShadow:"",menuMargin:0,menuPadding:0,menuTransparent:!1,menu2OverBook:!0,menu2Floating:!1,menu2Background:"",menu2Shadow:"",menu2Margin:0,menu2Padding:0,menu2Transparent:!0,skinColor:"",skinBackground:"",btnColor:"",btnBackground:"none",btnSize:14,btnRadius:2,btnMargin:2,btnPaddingV:10,btnPaddingH:10,btnShadow:"",btnTextShadow:"",btnBorder:"",btnColorHover:"",btnBackgroundHover:"",sideBtnColor:"#FFF",sideBtnBackground:"#00000033",sideBtnSize:30,sideBtnRadius:0,sideBtnMargin:0,sideBtnPaddingV:5,sideBtnPaddingH:0,sideBtnShadow:"",sideBtnTextShadow:"",sideBtnBorder:"",sideBtnColorHover:"#FFF",sideBtnBackgroundHover:"#00000066",floatingBtnColor:"#EEE",floatingBtnBackground:"#00000044",floatingBtnSize:null,floatingBtnRadius:null,floatingBtnMargin:null,floatingBtnPadding:null,floatingBtnShadow:"",floatingBtnTextShadow:"",floatingBtnBorder:"",floatingBtnColorHover:"",floatingBtnBackgroundHover:"",btnOrder:["currentPage","btnFirst","btnPrev","btnNext","btnLast","btnZoomIn","btnZoomOut","btnRotateLeft","btnRotateRight","btnAutoplay","btnSearch","btnSelect","btnBookmark","btnToc","btnThumbs","btnShare","btnPrint","btnDownloadPages","btnDownloadPdf","btnSound","btnExpand","btnClose"],currentPage:{enabled:!0,title:"Current page",vAlign:"top",hAlign:"left",marginH:0,marginV:0,color:"",background:""},btnFirst:{enabled:!1,title:"First page",iconFA:"flipbook-icon-angle-double-left",iconM:"flipbook-icon-first_page"},btnPrev:{enabled:!0,title:"Previous page",iconFA:"flipbook-icon-angle-left",iconM:"flipbook-icon-keyboard_arrow_left"},btnNext:{enabled:!0,title:"Next page",iconFA:"flipbook-icon-angle-right",iconM:"flipbook-icon-keyboard_arrow_right"},btnLast:{enabled:!1,title:"Last page",iconFA:"flipbook-icon-angle-double-right",iconM:"flipbook-icon-last_page"},btnZoomIn:{enabled:!0,title:"Zoom in",iconFA:"flipbook-icon-plus",iconM:"flipbook-icon-add"},btnZoomOut:{enabled:!0,title:"Zoom out",iconFA:"flipbook-icon-minus",iconM:"flipbook-icon-remove1"},btnRotateLeft:{enabled:!1,title:"Rotate left",iconFA:"flipbook-icon--undo"},btnRotateRight:{enabled:!1,title:"Rotate right",iconFA:"flipbook-icon--redo"},btnAutoplay:{enabled:!0,title:"Autoplay",iconFA:"flipbook-icon-play",iconM:"flipbook-icon-play_arrow",iconFA_alt:"flipbook-icon-pause",iconM_alt:"flipbook-icon-pause1"},btnSearch:{enabled:!1,title:"Search",iconFA:"flipbook-icon-search",iconM:"flipbook-icon-search1"},btnSelect:{enabled:!0,title:"Select tool",iconFA:"flipbook-icon-i-cursor",iconM:"flipbook-icon-text_format"},btnBookmark:{enabled:!0,title:"Bookmark",iconFA:"flipbook-icon-bookmark",iconM:"flipbook-icon-bookmark1"},btnToc:{enabled:!0,title:"Table of Contents",iconFA:"flipbook-icon-list-ol",iconM:"flipbook-icon-toc"},btnThumbs:{enabled:!0,title:"Pages",iconFA:"flipbook-icon-th-large",iconM:"flipbook-icon-view_module"}
6,btnShare:{enabled:!0,title:"Share",iconFA:"flipbook-icon-share-alt",iconM:"flipbook-icon-share1",hideOnMobile:!0},btnPrint:{enabled:!0,title:"Print",iconFA:"flipbook-icon-print",iconM:"flipbook-icon-local_printshop",hideOnMobile:!0},btnDownloadPages:{enabled:!0,title:"Download pages",iconFA:"flipbook-icon-download",iconM:"flipbook-icon-file_download",url:"images/pages.zip",name:"allPages.zip"},btnDownloadPdf:{forceDownload:!1,enabled:!0,title:"Download PDF",iconFA:"flipbook-icon-file",iconM:"flipbook-icon-picture_as_pdf",url:null,openInNewWindow:!0,name:"allPages.pdf"},btnSound:{enabled:!0,title:"Volume",iconFA:"flipbook-icon-volume-up",iconFA_alt:"flipbook-icon-volume-off",iconM:"flipbook-icon-volume_up",iconM_alt:"flipbook-icon-volume_mute",hideOnMobile:!0},btnExpand:{enabled:!0,title:"Toggle fullscreen",iconFA:"flipbook-icon-expand",iconM:"flipbook-icon-fullscreen",iconFA_alt:"flipbook-icon-compress",iconM_alt:"flipbook-icon-fullscreen_exit"},btnClose:{title:"Close",iconFA:"flipbook-icon-times",iconM:"flipbook-icon-clear",hAlign:"right",vAlign:"top",size:20},btnShareIfMobile:!1,btnSoundIfMobile:!1,btnPrintIfMobile:!1,sideNavigationButtons:!0,hideMenu:!1,shareUrl:null,shareTitle:null,shareImage:null,whatsapp:{enabled:!0,icon:"flipbook-icon-whatsapp"},twitter:{enabled:!0,icon:"flipbook-icon-twitter"},facebook:{enabled:!0,icon:"flipbook-icon-facebook"},pinterest:{enabled:!0,icon:"flipbook-icon-pinterest-p"},email:{enabled:!0,icon:"flipbook-icon-envelope"},linkedin:{enabled:!0,icon:"flipbook-icon-linkedin"},digg:{enabled:!1,icon:"flipbook-icon-digg"},reddit:{enabled:!1,icon:"flipbook-icon-reddit-alien"},pdf:{annotationLayer:!1},pageTextureSize:2048,pageTextureSizeSmall:1500,thumbTextureSize:300,pageTextureSizeMobile:1500,pageTextureSizeMobileSmall:1024,viewMode:"webgl",singlePageMode:!1,singlePageModeIfMobile:!1,zoomMin:.95,zoomMax2:null,zoomSize:null,zoomStep:2,zoomTime:300,zoomReset:!1,zoomResetTime:300,wheelDisabledNotFullscreen:!1,arrowsDisabledNotFullscreen:!1,arrowsAlwaysEnabledForNavigation:!1,touchSwipeEnabled:!0,responsiveView:!0,responsiveViewRatio:1,responsiveViewTreshold:768,minPixelRatio:1,pageFlipDuration:1,contentOnStart:!1,thumbnailsOnStart:!1,searchOnStart:!1,sideMenuOverBook:!0,sideMenuOverMenu:!1,sideMenuOverMenu2:!0,sideMenuPosition:"left",lightBox:!1,lightBoxOpened:!1,lightBoxFullscreen:!1,lightboxCloseOnClick:!1,lightboxResetOnOpen:!0,lightboxBackground:null,lightboxBackgroundColor:null,lightboxBackgroundPattern:null,lightboxBackgroundImage:null,lightboxStartPage:null,lightboxMarginV:"0",lightboxMarginH:"0",lightboxCSS:"",lightboxPreload:!1,lightboxShowMenu:!1,lightboxCloseOnBack:!0,disableImageResize:!0,pan:0,panMax:10,panMax2:2,panMin:-10,panMin2:-2,tilt:0,tiltMax:0,tiltMax2:0,tiltMin:-20,tiltMin2:-5,rotateCameraOnMouseMove:!1,rotateCameraOnMouseDrag:!0,lights:!0,lightColor:16777215,lightPositionX:0,lightPositionZ:1400,lightPositionY:350,lightIntensity:.6,shadows:!0,shadowMapSize:1024,shadowOpacity:.2,shadowDistance:0,pageRoughness:1,pageMetalness:0,pageHardness:2,coverHardness:2,pageSegmentsW:10,pageSegmentsH:1,pageMiddleShadowSize:2,pageMiddleShadowColorL:"#999999",pageMiddleShadowColorR:"#777777",antialias:!1,preloaderText:"",fillPreloader:{enabled:!1,imgEmpty:"images/logo_light.png",imgFull:"images/logo_dark.png"},logoImg:"",logoUrl:"",logoCSS:"position:absolute;",logoHideOnMobile:!1,printMenu:!0,downloadMenu:!0,cover:!0,backCover:!0,pdfTextLayer:!0,annotationLayer:!0,googleAnalyticsTrackingCode:null,minimumAndroidVersion:6,linkColor:"rgba(0, 0, 0, 0)",linkColorHover:"rgba(255, 255, 0, .2)",rightClickEnabled:!0,pageNumberOffset:0,flipSound:!0,backgroundMusic:!1,strings:{print:"Print",printLeftPage:"Print left page",printRightPage:"Print right page",printCurrentPage:"Print current page",printAllPages:"Print all pages",download:"Download",downloadLeftPage:"Download left page",downloadRightPage:"Download right page",downloadCurrentPage:"Download current page",downloadAllPages:"Download all pages",bookmarks:"Bookmarks",bookmarkLeftPage:"Bookmark left page",bookmarkRightPage:"Bookmark right page",bookmarkCurrentPage:"Bookmark current page",search:"Search",findInDocument:"Find in document",pagesFoundContaining:"pages found containing",thumbnails:"Thumbnails",tableOfContent:"Table of Contents",share:"Share",pressEscToClose:"Press ESC to close",password:"Password"},mobile:{shadows:!1,pageSegmentsW:5}},FLIPBOOK.Main=function(e,i){var n=this;this.elem=i,this.$elem=jQuery(i),this.$body=jQuery("body"),this.body=this.$body[0],this.$window=jQuery(t),this.bodyHasVerticalScrollbar=function(){return n.body.scrollHeight>
6t.innerHeight},this.isZoomed=function(){return n.zoom>1},this.options={};var r,s=o.createElement("div").style,a=function(){for(var e="t,webkitT,MozT,msT,OT".split(","),t=0,o=e.length;t<o;t++)if(e[t]+"ransform"in s)return e[t].substr(0,e[t].length-1);return!1}(),l=/android/gi.test(navigator.appVersion),d=(/iphone|ipad/gi.test(navigator.appVersion),r="perspective",(""===a?r:(r=r.charAt(0).toUpperCase()+r.substr(1),a+r))in s);this.msie=t.navigator.userAgent.indexOf("MSIE "),this.isAndroid=l,this.has3d=d,void 0===FLIPBOOK.hasWebGl&&function(e){if(t.WebGLRenderingContext){for(var i=o.createElement("canvas"),n=["webgl","experimental-webgl","moz-webgl","webkit-3d"],r=!1,s=0;s<4;s++)try{if((r=i.getContext(n[s]))&&"function"==typeof r.getParameter)return e?{name:n[s],gl:r}:(FLIPBOOK.hasWebGl=!0,!0)}catch(e){}return FLIPBOOK.hasWebGl=!1,!1}FLIPBOOK.hasWebGl=!1}(),this.hasWebGl=FLIPBOOK.hasWebGl,function(){var e=-1;if("Microsoft Internet Explorer"==navigator.appName){var t=navigator.userAgent;null!=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(t)&&(e=parseFloat(RegExp.$1))}else"Netscape"==navigator.appName&&(t=navigator.userAgent,null!=new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})").exec(t)&&(e=parseFloat(RegExp.$1)));return e}()>0&&(this.hasWebGl=!1,this.options.isIE=!0),this.thumbsShowing=!1,this.bookmarkShowing=!1,this.searchingString=!1,this.tocShowing=!1,this.menuShowing=!0,this.fullscreenActive=!1;var p={2:{currentPage:{vAlign:"bottom",hAlign:"center"},btnAutoplay:{hAlign:"left"},btnSound:{hAlign:"left"},btnExpand:{hAlign:"right"},btnZoomIn:{hAlign:"right"},btnZoomOut:{hAlign:"right"},btnSearch:{hAlign:"left"},btnBookmark:{hAlign:"left"},btnToc:{hAlign:"left"},btnThumbs:{hAlign:"left"},btnShare:{hAlign:"right"},btnPrint:{hAlign:"right"},btnDownloadPages:{hAlign:"right"},btnDownloadPdf:{hAlign:"right"},btnSelect:{hAlign:"right"}},3:{menuTransparent:!0,menu2Transparent:!1,menu2OverBook:!1,menu2Padding:5,btnMargin:5,currentPage:{vAlign:"top",hAlign:"center"},btnPrint:{vAlign:"top",hAlign:"right"},btnDownloadPdf:{vAlign:"top",hAlign:"right"},btnDownloadPages:{vAlign:"top",hAlign:"right"},btnThumbs:{vAlign:"top",hAlign:"left"},btnToc:{vAlign:"top",hAlign:"left"},btnBookmark:{vAlign:"top",hAlign:"left"},btnSearch:{vAlign:"top",hAlign:"left"},btnSelect:{vAlign:"top",hAlign:"right"},btnShare:{vAlign:"top",hAlign:"right"},btnAutoplay:{hAlign:"right"},btnExpand:{hAlign:"right"},btnZoomIn:{hAlign:"right"},btnZoomOut:{hAlign:"right"},btnSound:{hAlign:"right"},menuPadding:5},4:{menu2Transparent:!1,menu2OverBook:!1,sideMenuOverMenu2:!1,currentPage:{vAlign:"top",hAlign:"center"},btnAutoplay:{vAlign:"top",hAlign:"left"},btnSound:{vAlign:"top",hAlign:"left"},btnExpand:{vAlign:"top",hAlign:"right"},btnZoomIn:{vAlign:"top",hAlign:"right"},btnZoomOut:{vAlign:"top",hAlign:"right"},btnSearch:{vAlign:"top",hAlign:"left"},btnBookmark:{vAlign:"top",hAlign:"left"},btnToc:{vAlign:"top",hAlign:"left"},btnThumbs:{vAlign:"top",hAlign:"left"},btnShare:{vAlign:"top",hAlign:"right"},btnPrint:{vAlign:"top",hAlign:"right"},btnDownloadPages:{vAlign:"top",hAlign:"right"},btnDownloadPdf:{vAlign:"top",hAlign:"right"},btnSelect:{vAlign:"top",hAlign:"right"}}},h={dark:{skinColor:"#EEE",btnColorHover:"#FFF",skinBackground:"#313538"},light:{skinColor:"#222",btnColorHover:"#000",skinBackground:"#FFF",floatingBtnColor:"#FFF",floatingBtnBackground:"#00000055"},gradient:{skinColor:"#EEE",btnColor:"#EEE",btnColorHover:"#FFF",skinBackground:"#313538DD",zoomMin:.85,menuOverBook:!0,menu2OverBook:!0,sideMenuOverMenu:!0,sideMenuOverMenu2:!0,menuBackground:"linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 100%)",menu2Background:"linear-gradient(to bottom, rgba(0, 0, 0, 0.65) 0%, transparent 100%)"}};for(var c in h)e.skin==c&&(e=jQuery.extend(!0,{},h[c],e));for(var c in p)String(e.layout)===c&&(e=jQuery.extend(!0,{},p[c],e));this.options=jQuery.extend(!0,{},jQuery.fn.flipBook.options,e);var u,g,f=this.options;if(f.isMobile=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent),f.isMobile)for(var c in f.mobile)f[c]=f.mobile[c];if(this.strings=f.strings,f.pageShininess=f.pageShininess/2,this.s=0,f.googleAnalyticsTrackingCode&&(this.gaCode=f.googleAnalyticsTrackingCode,t.ga||function(e,t,o,i,n,r,s){e.GoogleAnalyticsObject=n,e.ga=e.ga||function(){(e.ga.q=e.ga.q||[]).push(arguments)},e.ga.l=1*new Date,r=t.createElement(o),s=t.getElementsByTagName(o)[0],r.async=1,r.src="https://www.google-analytics.com/analytics.js",s.parentNode.insertBefore(r,
6s)}(t,o,"script",0,"ga"),ga("create",this.gaCode,"auto")),f.isMobile&&(f.singlePageMode=!!f.singlePageModeIfMobile||f.singlePageMode,f.viewModeMobile&&(f.viewMode=f.viewModeMobile),f.pageTextureSizeMobile&&(f.pageTextureSize=f.pageTextureSizeMobile),f.pageTextureSizeMobileSmall&&(f.pageTextureSizeSmall=f.pageTextureSizeMobileSmall),f.touchSwipeEnabled=!0),"3dSinglePage"==f.viewMode&&(f.singlePageMode=!0),"2dSinglePage"==f.viewMode&&(f.singlePageMode=!0,f.viewMode="2d"),f.singlePageMode&&("2d"!=f.viewMode&&"swipe"!=f.viewMode&&(f.viewMode="3d"),f.rightToLeft&&(f.viewMode="swipe"),f.cover=!0),f.singlePageMode&&"3d"==f.viewMode&&(f.rightToLeft=!1),"simple"==f.viewMode&&(f.viewMode="3d",f.instantFlip=!0),f.cover||(f.responsiveView=!1),f.sideMenuPosition=f.rightToLeft?"right":"left","webgl"==f.viewMode&&(!this.hasWebGl||parseFloat(!!(g=(u=(u||navigator.userAgent).toLowerCase()).match(/android\s([0-9\.]*)/))&&g[1])<f.minimumAndroidVersion&&this.isAndroid)&&(f.viewMode="3d"),"3d"!=f.viewMode||n.has3d||(f.viewMode="2d"),this.webgl="webgl"==f.viewMode,f.menuFloating&&(f.menuOverBook=!0,f.sideMenuOverMenu=!0),f.menu2Floating&&(f.menu2OverBook=!0,f.sideMenuOverMenu2=!0),f.menuTransparent&&(f.menuOverBook=!0,f.sideMenuOverMenu=!0,f.menuBackground="none"),f.menu2Transparent?(f.menu2OverBook=!0,f.sideMenuOverMenu2=!0,f.menu2Background="none"):f.sideMenuOverMenu2=!1,f.menuOverBook&&(f.sideMenuOverMenu=!0),f.menu2OverBook&&(f.sideMenuOverMenu2=!0),f.isMobile&&f.pdfBrowserViewerIfMobile&&f.pdfUrl)f.lightBox&&!f.lightBoxOpened?this.$elem.on("touched click",function(){m()}).css("cursor","pointer"):m();else if(f.isIE&&f.pdfBrowserViewerIfIE&&f.pdfUrl)f.lightBox&&!f.lightBoxOpened?this.$elem.on("touched click",function(){m()}).css("cursor","pointer"):m();else{f.pdfMode=Boolean(f.pdfUrl&&""!=f.pdfUrl)||f.pdfBase64,f.backgroundTransparent&&(f.backgroundColor="none"),this.wrapper=jQuery(o.createElement("div")).addClass("flipbook-main-wrapper"),""!=f.backgroundColor&&this.wrapper.css("background",f.backgroundColor),""!=f.backgroundPattern&&this.wrapper.css("background","url("+f.backgroundPattern+") repeat"),""!=f.backgroundImage&&(this.wrapper.css("background","url("+f.backgroundImage+") no-repeat"),this.wrapper.css("background-size","cover"),this.wrapper.css("background-position","center center")),this.bookLayer=jQuery(o.createElement("div")).addClass("flipbook-bookLayer").appendTo(n.wrapper),f.rightClickEnabled||this.bookLayer.bind("contextmenu",function(e){return!1}),f.hideMenu&&(this.bookLayer.css("bottom","0"),f.menuOverBook=!0),f.pagesOriginal=JSON.parse(JSON.stringify(f.pages)),this.book=jQuery(o.createElement("div")).addClass("book").appendTo(n.bookLayer),f.preloader?this.preloader=f.preloader:!jQuery(".flipbook-preloader").length&&f.lightBox?this.preloader=jQuery('<div class="flipbook-preloader cssload-container"><div class="cssload-speeding-wheel"></div><div class="flipbook-loading-text">'+f.preloaderText+'</div><div class="flipbook-loading-bg"></div></div>'):f.lightBox?this.preloader=jQuery(".flipbook-preloader"):this.preloader=jQuery('<div class="flipbook-preloader-2 cssload-container"><div class="cssload-speeding-wheel"></div><div class="flipbook-loading-text">'+f.preloaderText+'</div><div class="flipbook-loading-bg"></div></div>'),this.setLoadingProgress(0),!f.deeplinkingPrefix&&f.deeplinking&&f.deeplinking.prefix&&(f.deeplinkingPrefix=f.deeplinking.prefix),f.deeplinkingEnabled=f.deeplinkingPrefix||f.deeplinkingEnabled||f.deeplinking&&f.deeplinking.enabled,f.deeplinkingEnabled&&(k(),jQuery(t).bind("hashchange",function(e){k()})),this.dispose=function(){this.disposed=!0},f.main=this;var b={_events:{},on:function(e,t){this._events[e]||(this._events[e]=[]),this._events[e].push(t)},off:function(e,t){if(this._events[e]){var o=this._events[e].indexOf(t);o>-1&&this._events[e].splice(o,1)}},trigger:function(e){if(this._events[e]){var t=0,o=this._events[e].length;if(o)for(;t<o;t++)this._events[e][t].apply(this,[].slice.call(arguments,1))}}};b.on("pageLoaded",function(e){f.pages[e.index]=f.pages[e.index]||{},f.pages[e.index].canvas=f.pages[e.index].canvas||{},f.pages[e.index].canvas[e.size]=e.canvas,n.searchingString&&n.mark(n.searchingString,!0)}
6),b.on("pageUnloaded",function(e){e.unloadedPages.forEach(function(e){if(n.Book.onPageUnloaded){var t=e.index;n.options.cover||t++,n.Book.onPageUnloaded(t,e.size)}})}),b.on("pdfinit",function(){f.tableOfContent=n.pdfService.outline||f.tableOfContent,f.doublePage=n.pdfService.double,f.doublePage||(f.backCover=n.pdfService.numPages%2==0,f.cover||(f.backCover=!f.backCover)),n.viewportOriginal=n.pdfService.viewports[0],f.firstPage={width:n.pdfService.viewports[0].width,height:n.pdfService.viewports[0].height,ratio:n.pdfService.viewports[0].width/n.pdfService.viewports[0].height},n.pdfService.numPages>1&&(f.secondPage={width:n.pdfService.viewports[1].width,height:n.pdfService.viewports[1].height,ratio:n.pdfService.viewports[1].width/n.pdfService.viewports[1].height}),f.numPages=n.pdfService.numPages,1==f.numPages&&(f.viewMode="swipe",f.singlePageMode=!0,f.btnNext.enabled=!1,f.btnPrev.enabled=!1,f.btnFirst.enabled=!1,f.btnLast.enabled=!1,f.sideNavigationButtons=!1,f.btnAutoplay.enabled=!1,f.printMenu=!1,f.downloadMenu=!1,n.webgl=!1);for(var e=[],t=0;t<f.numPages;t++){var o={canvas:{}};f.pages&&f.pages[t]?jQuery.extend(o,f.pages[t]):o.title=t+1,e[t]=o}f.pages=e;n.book.height();var i=f.pageTextureSize;f.pageWidth=parseInt(i*n.viewportOriginal.width/n.viewportOriginal.height),f.pageHeight=i,f.pw=f.pageWidth,f.ph=f.pageHeight,f.zoomSize=f.zoomSize||f.pageTextureSize,n.start()}),b.on("toolSelect",function(){n.bookLayer.removeClass("flipbook-move"),n.btnSelect&&n.btnSelect.addClass("flipbook-btn-active"),n.bookLayer.removeClass("flipbook-disable-text-selection")}),b.on("toolMove",function(){n.bookLayer.addClass("flipbook-move"),n.btnSelect&&n.btnSelect.removeClass("flipbook-btn-active"),n.bookLayer.addClass("flipbook-disable-text-selection")}),this.model=b,f.lightBox?(f.btnClose.enabled=!0,this.lightbox=new FLIPBOOK.Lightbox(this,this.wrapper,f),this.lightboxStartedTimes=0,this.wrapper.css("background","none"),this.bookLayer.css("background","none"),this.book.css("background","none"),this.preloader.appendTo(this.$body).css("position","fixed"),this.$elem.css("cursor","pointer").bind("tap click",function(e){e.preventDefault(),n.lightboxStartPage=jQuery(this).attr("data-page"),n.started?(n.lightboxStart(),f.lightBoxFullscreen&&setTimeout(function(){n.toggleExpand()},0)):(v(),f.lightBoxFullscreen&&setTimeout(function(){n.toggleExpand()},100))}),f.lightBoxOpened?(v(),jQuery(t).trigger("r3d-lightboxloadingstarted")):f.lightboxPreload&&("undefined"!=typeof IScroll||FLIPBOOK.scriptsAdded[FLIPBOOK.iscrollSrc]||n.loadScript(FLIPBOOK.iscrollSrc,function(){}),void 0!==FLIPBOOK.PdfService||FLIPBOOK.scriptsAdded[FLIPBOOK.pdfServiceSrc]||n.loadScript(FLIPBOOK.pdfServiceSrc,function(){}),f.pdfMode&&("undefined"!=typeof pdfjsLib||FLIPBOOK.scriptsAdded[FLIPBOOK.pdfjsSrc]||n.loadScript(FLIPBOOK.pdfjsSrc,function(){}),void 0!==FLIPBOOK.PdfService||FLIPBOOK.scriptsAdded[FLIPBOOK.pdfServiceSrc]||n.loadScript(FLIPBOOK.pdfServiceSrc,function(){}),f.btnSearch.enabled&&(FLIPBOOK.scriptsAdded[FLIPBOOK.markSrc]||n.loadScript(FLIPBOOK.markSrc,function(){}))),"webgl"==f.viewMode&&("undefined"!=typeof THREE||FLIPBOOK.scriptsAdded[FLIPBOOK.threejsSrc]||n.loadScript(FLIPBOOK.threejsSrc,function(){}))),this.fullscreenElement=o.documentElement):(f.btnClose.enabled=!1,this.preloader.appendTo(this.wrapper),this.wrapper.appendTo(this.$elem),this.fullscreenElement=this.$elem[0],P(this.wrapper[0])?v():this.containerVisibleInterval=setInterval(function(){P(n.wrapper[0])>0&&(clearInterval(n.containerVisibleInterval),v())},300))}function m(){f.pdfBrowserViewerFullscreen?t.open(f.pdfUrl,f.pdfBrowserViewerFullscreenTarget):jQuery('<object type="application/pdf"/>').width("100%").height("100%").attr("data",f.pdfUrl).appendTo(n.$elem)}function k(){if(!n.disposed){var e=t.location.hash,o=n.getPageFromHash();f.cover||o++,startPage=o,o<1?o=1:n.numPages&&o>n.numPages&&(o=n.numPages),o&&(o=f.rightToLeft&&f.pages&&f.pages.length?f.pages.length-o+1:o,n.started?n.Book&&(n.lightbox&&!FLIPBOOK.lightboxOpened&&(n.lightbox.openLightbox(),n.lightboxStart()),n.goToPage(o,-1==e.indexOf("flip"))):(f.startPage=startPage,f.lightBox&&(v(),f.lightBoxFullscreen&&setTimeout(function(){n.toggleExpand()},100))))}}function v(){if(f.fillPreloader.enabled){n.$fillPreloader=jQuery("<div>").addClass("flipbook-fillPreloader");var e=new Image;e.src=f.fillPreloader.imgEmpty,e.onload=function(){var t=new Image;t.src=f.fillPreloader.imgFull,t.onload=function(){jQuery(e).appendTo(n.$fillPreloader),n.$fillPreloaderImg=jQuery(t).appendTo(n.$fillPreloader),n.$fillPreloader.appendTo(n.wrapper),w()}}}else w()}function w(){n.initialized||(n.id=Date.now(),n.addPageItems(),f.pdfMode?n.initPdf():n.initJpg(),n.setLoa
6dingProgress(.1),n.lightbox&&n.options.lightboxShowMenu&&n.createMenu(),n.initialized=!0)}function P(e){const i=e.getBoundingClientRect();return i.height>0&&i.top+i.height>=0&&i.top<=(t.innerHeight||o.documentElement.clientHeight)}},FLIPBOOK.Main.prototype={start:function(){this.options.dp&&(this.options.doublePage=!0),this.started||(this.model.pageW=this.options.pageWidth,this.model.bookW=2*this.options.pageWidth,this.options.singlePageMode&&(this.model.bookW/=2),this.model.pageH=this.options.pageHeight,this.model.bookH=this.options.pageHeight,this.options.numPages%2==0?this.options.numSheets=(this.options.numPages+2)/2:this.options.numSheets=(this.options.numPages+1)/2,this.started=!0,this.options.lightBox&&(this.lightbox.openLightbox(),this.lightboxStart()),this.createBook(),this.updateSkinColors())},updateSkinColors:function(){var e=this.options;e.skinColor&&this.wrapper.find(".skin-color").css("color",e.skinColor),e.skinBackground&&this.wrapper.find(".skin-color-bg").css("background",e.skinBackground)},lightboxStart:function(){var e=this;this.started||this.start(),void 0!==this.Book?(this.Book.enable(),this.lightboxStartPage?this.goToPage(this.lightboxStartPage,!0):this.options.lightboxStartPage&&this.goToPage(this.options.lightboxStartPage,!0),this.lightboxStartedTimes++,this.gaCode&&ga("send",{hitType:"event",eventCategory:"Flipbook : "+this.options.name,eventAction:"lightbox open",eventLabel:"lightbox open",eventValue:this.lightboxStartedTimes,nonInteraction:!0}),this.updateCurrentPage(),this.initColors(),this.resize()):setTimeout(function(){e.lightboxStart()},100)},setHash:function(e){e<1&&(e=1),"#"+this.options.deeplinkingPrefix+e!=t.location.hash&&this.options.deeplinkingEnabled&&this.Book.enabled&&this.hash!=e&&(t.location.hash="#"+this.options.deeplinkingPrefix+String(e),this.hash=e)},clearHash:function(){var e,i,n=t.location;"pushState"in history?history.pushState("",o.title,n.pathname+n.search):(e=o.body.scrollTop,i=o.body.scrollLeft,n.hash="",o.body.scrollTop=e,o.body.scrollLeft=i)},getPageFromHash:function(){var e,o=t.location.hash,i="#"+this.options.deeplinkingPrefix;return-1!==o.indexOf(i)&&(e=parseInt(t.location.hash.replace(/#/g,"").replace(this.options.deeplinkingPrefix,""))),e},initColors:function(){this.wrapper.find(".skin-color-bg").removeClass("flipbook-bg-light").removeClass("flipbook-bg-dark").addClass("flipbook-bg-"+this.options.skin),this.wrapper.find(".skin-color").removeClass("flipbook-color-light").removeClass("flipbook-color-dark").addClass("flipbook-color-"+this.options.skin),this.updateSkinColors()},lightboxEnd:function(){"undefined"!=typeof screenfull&&screenfull.isFullscreen&&screenfull.exit(),t.location.hash&&this.clearHash(),this.setLoadingProgress(1),this.Book&&this.Book.disable()},turnPageComplete:function(){this.animating=!1,this.updateCurrentPage();var e=this.Book.rightIndex||0;this.options.rightToLeft&&(e=this.options.pages.length-e),this.pdfService&&this.pdfService.setRightIndex(e),this.options.zoomReset&&this.Book.zoomTo(this.options.zoomMin)},updateCurrentPage:function(){var e,o=this.options.rightToLeft,i=this.options.numPages,n=i-this.options.pageNumberOffset,r=this.Book.rightIndex||0;if(r%2==1&&r++,o&&(r=this.options.pages.length-r),this.options.singlePageMode||this.Book.singlePage||1==this.Book.view?(this.Book.getCurrentPageNumber?e=this.Book.getCurrentPageNumber():(o&&r--,e=r+1),this.options.cover||(e=Number(e)-1),this.setHash(e),this.cPage=[e-1]):(r>i||r==i&&i%2==0?(e=i,this.cPage=[i-1],this.options.cover||(e=String(r-1)+"-"+String(r),this.cPage=[r-2,r-1])):r<1?(e=1,this.cPage=[0]):(e=String(r)+"-"+String(r+1),this.options.cover||(e=String(r-1)+"-"+String(r)),this.cPage=[r-1,r]),this.options.cover?this.setHash(r):this.setHash(r-1)),o?(this.enableNext(r>0),this.options.cover||this.enableNext(r>2),this.enablePrev(this.Book.canFlipPrev()||r<i-1)):(this.enablePrev(r>0),this.options.cover||this.enablePrev(r>2),this.enableNext(this.Book.canFlipNext()||r<i-1)),2==this.cPage.length?(this.wrapper.find(".c-l-p").show(),this.wrapper.find(".c-r-p").show(),this.wrapper.find(".c-p").hide()):(this.wrapper.find(".c-l-p").hide(),this.wrapper.find(".c-r-p").hide(),this.wrapper.find(".c-p").show()),void 0!==this.currentPage&&(this.s&&this.options.pdfPageScale>0&&this.goToPage(0),e!=this.currentPageValue)){this.currentPageValue=String(e);var s=Number(String(e).split("-")[0]),a=Number(String(e).split("-")[1]);s&&this.options.pages[Number(s-1)]&&this.options.pages[Number(s-1)].name&&(e=this.options.pages[Number(s-1)].name),a&&this.options.pages[Number(a-1)]&&this.options.pages[Number(a-1)].name&&(e+="-"+this.options.pages[Number(a-1)].name),this.currentPage.text(e+" / "+String(n)),this.currentPageInput.width(this.currentPageHolder.width()),this.resize(),jQuery(this).trigger({type:"pagechange",page:this.currentPageValue,name:this.options.name}),jQuery(t).trigger({type:"r3d-pagechange",page:this.currentPageValue,name:this.options.name}),this.gaCode&&ga("send",{hitType:"event",eventCategory:"Flipbook : "+this.options.name,eventAction:"page "+this.currentPageValue,eventLabel:"page"+this.currentPageValue,nonInteraction:!0})}},initJpg:function(){var e=this;1==this.options.numPages&&(this.options.viewMode="swipe",this.options.singlePageMode=!0,this.webgl=!1);var t=0,o=1;this.options.cover||(t=1,o=2),this.loadPage(t,this.options.pageTextureSize,function(){e.setLoadingProgress(.5);var t=e.options;if(1==t.pages.length){var i=t.pages[0].img;t.pw=i.width,t.ph=i.height,t.pageWidth=i.width,t.pageHeight=i.height,t.pageMode="singlePage",t.doublePage=!1,t.zoomSize=t.zoomSize||i.height,e.setLoadingProgress(.7),t.btnNext.enabled=!1,t.btnPrev.enabled=!1,t.btnFirst.enabled=!1,t.btnLast.enabled=!1,t.sideNavigationButtons=!1,t.btnAutoplay.enabled=!1,e.start()}else e.loadPage(o,t.pageTextureSize,function(){var o=t.pages[0].img,i=t.pages[1].img,n=o.width/o.height,r=i.width/i.height;t.pw=o.width,t.ph=o.height,t.pageWidth=o.width,t.pageHeight=o.height,t.doublePage=r/n>1.5,t.doublePage||(t.backCover=t.pages.length%2==0,t.cover||(t.backCover=!t.backCover)),t.zoomSize=t.zoomSize||o.height,e.setLoadingProgress(.7),e.start()})})},initPdf:function(){if(!this.started){var e=this;if("undefined"==typeof pdfjsLib){if(!FLIPBOOK.scriptsAdded[FLIPBOOK.pdfjsSrc])return void e.loadScript(FLIPBOOK.pdfjsSrc,function(){e.initPdf()});if(!FLIPBOOK.scriptsLoaded[FLIPBOOK.pdfjsSrc])return void setTimeout(function(){e.initPdf()},100)}if(this.setLoadingProgress(.2),void 0===FLIPBOOK.PdfService){if(!FLIPBOOK.scriptsAdded[FLIPBOOK.pdfServiceSrc])return void e.loadScript(FLIPBOOK.pdfServiceSrc,function(){e.initPdf()});if(!FLIPBOOK.scriptsLoaded[FLIPBOOK.pdfServiceSrc])return void setTimeout(function(){e.initPdf()},100)}this.setLoadingProgress(.3),t.CanvasPixelArray&&(CanvasPixelArray.prototype.set=function(e){for(var t=this.length,o=0;o<t;o++)this[o]=e[o]}),PDFJS=pdfjsLib,pdfjsLib.externalLinkTarget=pdfjsLib.LinkTarget.BLANK,pdfjsLib.GlobalWorkerOptions.workerSrc=this.options.pdfjsworkerSrc||FLIPBOOK.pdfjsworkerSrc;var o={cMapPacked:!0,cMapUrl:this.options.cMapUrl||"cmaps/",disableRange:this.options.disableRange,disableAutoFetch:this.options.disableAutoFetch,disableStream:this.options.disableStream,rangeChunkSize:1024*Number(e.options.rangeChunkSize)};if(e.options.pdfUrl?(!1!==e.options.matchProtocol&&("https:"==location.protocol?e.options.pdfUrl=e.options.pdfUrl.replace("http://","https://"):"http:"==location.protocol&&(e.options.pdfUrl=e.options.pdfUrl.replace("https://","http://"))),o.url=e.options.pdfUrl):e.options.pdfBase64&&(o.data=atob(e.options.pdfBase64)),this.options.password){var i=prompt("Please enter PDF password","");if(null==i)return this.lightbox&&this.lightbox.closeLightbox(!0),this.setLoadingProgress(1),void(this.pdfinitStarted=!1);o.password=i}if(!this.pdfinitStarted)this.pdfinitStarted=!0,pdfjsLib.getDocument(o).promise.then(function(t){e.pdfDocument=t,e.pdfService=new FLIPBOOK.PdfService(t,e.model,e.options),e.options.thumbLoaded=function(t){e.options.thumbs=e.options.thumbs||[],e.options.thumbs[t.index]=t},e.setLoadingProgress(.5),e.pdfService.init()},function(t){"PasswordException"==t.name?(e.pdfinitStarted=!1,e.options.password=!0,e.initPdf()):alert(t)})}},loadPageHTML:function(e,t){var i=this,n=(e=e,this.options);this.options.cover||e--,this.options.pdfMode?this.options.pages[e]?this.pdfService.loadTextLayer(e,function(o){t.call(i,i.options.pages[e].htmlContent,e)}):t.call(this,{}):n.pages[e].json?this.loadPageJSON(e,function(r){var s=n.pages[e]||{};if(!s.htmlContentInitialized){var a=o.createElement("div");a.classList.add("flipbook-page-htmlContent"),a.classList.add("page"+String(e)),a.innerHTML=decodeURIComponent(r.data),s.htmlContent&&jQuery(a).append(jQuery(s.htmlContent)),s.htmlContent=a,jQuery(s.htmlContent).find(".internalLink").each(function(){var e=i;this.onclick=function(){var t=Number(this.dataset.page);return t=e.options.rightToLeft?e.options.pages.length-t+1:t,e.goToPage(t),!1}}),s.htmlContentInitialized=!0}t.call(i,s.htmlContent,e)}):t.call(this,n.pages[e].htmlContent,e)},loadPageJSON:function(e,t){var o=this.options.pages[e]||{},i=this;if(!1!==i.options.matchProtocol&&("https:"==location.protocol?o.json=o.json.replace("http:","https:"):"http:"==location.protocol&&(o.json=o.json.replace("https:","http:"))),!o.jsonLoading&&!o.jsonLoaded)return o.jsonLoading=!0,void jQuery.getJSON(o.json,function(e){o.jsonLoaded=!0,o.jsonLoading=!1,t.call(i,e)});o.jsonLoaded?t.call(i):setTimeout(function(){i.loadPageJSON(e,t)},100)},loadPage:function(e,t,i){this.options.cover||e--;var n=this,r=this.options.pages&&this.options.pages[e]&&this.options.pages[e].src,s=this.options.pages[e];s?this.options.pdfMode&&!r?this.loadPageFromPdf(e,t,i):t==this.options.thumbTextureSize&&s.thumb?s.thumbImg?s.thumbLoaded?n.pageLoaded({index:e,size:t,image:s.thumb},i):setTimeout(function(){n.loadPage(e,t,i)},300):(s.thumbImg=o.createElement("img"),s.thumbImg.setAttribute("data-id",e),s.thumbImg.onload=function(){s.thumbLoaded=!0,n.pageLoaded({index:e,size:t,image:s.thumbImg},i)},"webgl"==this.options.viewMode&&(s.thumbImg.crossOrigin="Anonymous"),!1!==n.options.matchProtocol&&("https:"==location.protocol?s.thumb=s.thumb.replace("http://","https://"):"http:"==location.protocol&&(s.thumb=s.thumb.replace("https://","http://"))),s.thumbImg.src=s.thumb):s.img?s.imgLoaded?n.pageLoaded({index:e,size:t,image:s.img},i):setTimeout(function(){n.loadPage(e,t,i)},300):(s.img=o.createElement("img"),s.img.setAttribute("data-id",e),s.img.onload=function(){s.imgLoaded=!0,n.pageLoaded({index:e,size:t,image:s.img},i)},"webgl"==this.options.viewMode&&(s.img.crossOrigin="Anonymous"),!1!==n.options.matchProtocol&&("https:"==location.protocol?s.src=s.src.replace("http://","https://"):"http:"==location.protocol&&(s.src=s.src.replace("https://","http://"))),s.img.src=s.src):i.call(this)},pageLoaded:function(e,t){t.call(this,e,t),this.options.loadAllPages&&e.index<this.options.numPages-1&&this.loadPage(e.index+1,e.size,function(){}),this.searchingString&&this.mark(this.searchingString,!0)},loadPageFromPdf:function(e,t,o){t=t||this.options.pageTextureSize,this.pdfService.renderBookPage(e,t,o)},getString:function(e){return this.options.strings[e]},mark:function(e,t){(e!=this.markedStr||t)&&(this.markedStr=e,this.options.pages.forEac
6h(function(t){var o=jQuery(t.htmlContent).find(".flipbook-textLayer");t.marked!=e&&o.length&&(t.marked=e,o.unmark({done:function(){o.mark(e,{acrossElements:!0,separateWordSearch:!1})}}))}))},unmark:function(){this.searchingString=null,this.markedStr=null,this.options.pages.forEach(function(e){e.marked&&(e.marked=null,jQuery(e.htmlContent).unmark())})},setTool:function(e){this.tool=e,this.model.trigger(e)},toggleTool:function(){var e="toolSelect"==this.tool?"toolMove":"toolSelect";this.setTool(e)},toggleSound:function(){var e=this.options;e.sound=!e.sound,this.backgroundMusic&&(e.sound?this.backgroundMusic.play():this.backgroundMusic.pause()),this.toggleIcon(this.btnSound,e.sound)},toggleIcon:function(e,t){var o=t?e.iconAlt:e.icon,i=t?e.icon:e.iconAlt;e.find("."+o).removeClass(o).addClass(i)},scrollPageIntoView:function(e){var t=this.options.rightToLeft?this.options.pages.length-e.pageNumber+1:e.pageNumber;this.goToPage(t)},loadScript:function(e,t){var n=this,r=o.createElement("script"),s=o.getElementsByTagName("script")[0];r.async=1,s.parentNode.insertBefore(r,s),FLIPBOOK.scriptsAdded[e]=!0,r.onload=r.onreadystatechange=function(o,s){(s||!r.readyState||/loaded|complete/.test(r.readyState))&&(r.onload=r.onreadystatechange=null,r=i,s||t&&t.call(n),FLIPBOOK.scriptsLoaded[e]=!0)},r.src=e},createBook:function(){var e=this,t=this.model,o=this.options;if("undefined"==typeof IScroll){if(!FLIPBOOK.scriptsAdded[FLIPBOOK.iscrollSrc])return void e.loadScript(FLIPBOOK.iscrollSrc,e.createBook);if(!FLIPBOOK.scriptsLoaded[FLIPBOOK.iscrollSrc])return void setTimeout(function(){e.createBook()},100)}if(this.options.searchOnStart&&(this.options.btnSearch.enabled=!0),this.options.btnSearch.enabled){if(!FLIPBOOK.scriptsAdded[FLIPBOOK.markSrc])return void e.loadScript(FLIPBOOK.markSrc,e.createBook);if(!FLIPBOOK.scriptsLoaded[FLIPBOOK.markSrc])return void setTimeout(function(){e.createBook()},100)}if(e.setLoadingProgress(.9),"webgl"==e.options.viewMode){if("undefined"==typeof THREE){if(!FLIPBOOK.scriptsAdded[FLIPBOOK.threejsSrc])return void e.loadScript(FLIPBOOK.threejsSrc,e.createBook);if(!FLIPBOOK.scriptsLoaded[FLIPBOOK.threejsSrc])return void setTimeout(function(){e.createBook()},100)}if(void 0===FLIPBOOK.BookWebGL){if(!FLIPBOOK.scriptsAdded[FLIPBOOK.flipbookWebGlSrc])return void e.loadScript(FLIPBOOK.flipbookWebGlSrc,e.createBook);if(!FLIPBOOK.scriptsLoaded[FLIPBOOK.flipbookWebGlSrc])return void setTimeout(function(){e.createBook()},100)}}else if("swipe"==e.options.viewMode){if(void 0===FLIPBOOK.BookSwipe){if(!FLIPBOOK.scriptsAdded[FLIPBOOK.flipBookSwipeSrc])return void e.loadScript(FLIPBOOK.flipBookSwipeSrc,e.createBook);if(!FLIPBOOK.scriptsLoaded[FLIPBOOK.flipBookSwipeSrc])return void setTimeout(function(){e.createBook()},100)}}else if(void 0===FLIPBOOK.Book3){if(!FLIPBOOK.scriptsLoaded[FLIPBOOK.flipbookBook3Src])return void e.loadScript(FLIPBOOK.flipbookBook3Src,e.createBook);if(!FLIPBOOK.scriptsAdded[FLIPBOOK.flipbookBook3Src])return void setTimeout(function(){e.createBook()},100)}if(this.setLoadingProgress(1),this.initEasing(),e.options.doublePage&&e.options.pages.length>2){for(var i=[e.options.pages[0]],n=1;n<=e.options.pages.length-2;n++){var r={src:(a=e.options.pages[n]).src,thumb:a.thumb,title:2*n,htmlContent:a.htmlContent,json:a.json,side:"left"},s={src:a.src,thumb:a.thumb,title:2*n+1,htmlContent:a.htmlContent,json:a.json,side:"right"};i.push(r),i.push(s)}if(e.options.backCover)i.push(e.options.pages[e.options.pages.length-1]);else{var a;r={src:(a=e.options.pages[e.options.pages.length-1]).src,thumb:a.thumb,title:a.title,htmlContent:a.htmlContent,json:a.json,side:"left"},s={src:a.src,thumb:a.thumb,title:a.title,htmlContent:a.htmlContent,json:a.json,side:"right"};i.push(r),i.push(s)}e.options.pages=i}if(this.options.numPages=this.options.pages.length,this.options.numPages%2==0||this.options.singlePageMode||(this.options.backCover=!1,this.options.cover||(this.options.backCover=!this.options.backCover),this.options.pages.push({src:this.options.assets.preloader,thumb:this.options.assets.preloader,empty:!0})),e.options.pages.length>0)for(n=0;n<e.options.pages.length;n++)void 0!==e.options.pages[n].htmlContent&&(e.options.hasHtmlContent=!0,e.options.pages[n].htmlContent=jQuery(e.options.pages[n].htmlContent));
6function l(){e.options.flipSound&&(e.flipSound=jQuery('<audio><source src="'+e.options.assets.flipMp3+'" type="audio/mpeg"></audio>')[0]),e.options.backgroundMusic&&(e.backgroundMusic=jQuery('<audio autoplay><source src="'+e.options.backgroundMusic+'" type="audio/mpeg"></audio>')[0])}if("webgl"==e.options.viewMode){var d=e.options;d.scroll=e.scroll,d.parent=e,e.Book=new FLIPBOOK.BookWebGL(e.book[0],t,d),e.webglMode=!0,e.initSwipe(),l()}else"swipe"==e.options.viewMode?(e.Book=new FLIPBOOK.BookSwipe(e.book[0],e.bookLayer[0],t,o),e.initSwipe()):("2d"!=e.options.viewMode&&(e.options.viewMode="3d"),e.Book=new FLIPBOOK.Book3(e.book[0],t,o),e.initSwipe(),e.webglMode=!1,l());this.resize(),e.Book.enable(),e.book.hide().fadeIn("slow"),this.tocCreated=!1,this.createMenu(),this.onZoom(this.options.zoom),1==this.options.pages.length&&(this.rightToLeft=!1),FLIPBOOK.books=FLIPBOOK.books||{},FLIPBOOK.books[e.id]=e.Book;var p=jQuery(e.Book);p.bind("loadPagesFromPdf",function(t,o,i,n){e.loadPagesFromPdf(o,i,n)}),p.bind("turnPageComplete",function(t){e.turnPageComplete()}),p.bind("initEasing",function(t){e.initEasing()}),p.bind("playFlipSound",function(t){e.playFlipSound()}),p.bind("closeLightbox",function(t){e.closeLightbox()}),p.bind("updateCurrentPage",function(t){e.updateCurrentPage()}),this.createLogo(),this.onBookCreated()},addPageItems:function(){var e=this.options.pages;this.id;for(var t in e){var o,i=e[t];if(i.htmlContent=i.htmlContent||"",i.items)for(var n in i.items){var r=i.items[n];switch(r.src&&!r.url&&(r.url=r.src),r.x=r.x||0,r.y=r.y||0,r.width=r.width||100,r.height=r.height||100,r.type){case"iframe":case"youtube":r.url.includes("<iframe")?i.htmlContent+='<div class="flipbook-page-item" style="top:'+r.y+"px;left:"+r.x+"px;width:"+r.width+"px;height:"+r.height+'px;">'+r.url+"</div>":(r.url.includes("youtu.be/")&&(r.url=r.url.replace("youtu.be/","youtube.com/watch?v=")),r.url.includes("youtube.com/watch?v=")&&(r.url=r.url.split("&")[0].replace("/watch?v=","/embed/")),o='<iframe class="flipbook-page-item" src="'+r.url+'" style="top:'+r.y+"px;left:"+r.x+"px;width:"+r.width+"px;height:"+r.height+'px;" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>'),i.htmlContent+=o;break;case"image":o='<img class="flipbook-page-item" src="'+r.url+'" style="top:'+r.y+"px;left:"+r.x+"px;width:"+r.width+"px;height:"+r.height+'px;">',i.htmlContent+=o;break;case"link":o=jQuery('<a class="flipbook-page-item flipbook-page-item-link"></a>').width(r.width).height(r.height).css({position:"absolute",top:r.y,left:r.x}),r.content&&o.html(r.content),r.url?o.attr("href",r.url).attr("target",r.target||"_blank"):r.page&&o.attr("href","#").addClass("internalLink").attr("data-page",r.page),i.htmlContent+=o[0].outerHTML;break;case"video":var s=!1===r.autoplay?"":"autoplay ",a=r.controls?"controls ":"",l=!1===r.muted?"":"muted ";o='<video class="flipbook-page-item" playsinline '+(!1===r.loop?"":"loop ")+s+a+l+' style="top:'+r.y+"px;left:"+r.x+"px;width:"+r.width+"px;height:"+r.height+'px;"><source type="video/mp4" src="'+r.url+'"></video>',i.htmlContent+=o;break;case"audio":s=!1===r.autoplay?"":"autoplay ",a=r.controls?"controls ":"";o="<audio "+s+(!1===r.loop?"":"loop ")+a+' class="flipbook-page-item" style="top:'+r.y+"px;left:"+r.x+"px;width:"+r.width+"px;height:"+r.height+'px;"><source src="'+r.url+'" type="audio/mpeg"></audio>',i.htmlContent+=o}}}},onBookCreated:function(){var e=this.options,i=this;!e.cover&&Number(e.startPage)<2&&(e.startPage=2),e.rightToLeft?this.goToPage(Number(e.pages.length-Number(e.startPage)+1),!0):this.goToPage(Number(e.startPage),!0);var n=o.documentElement;n.style.setProperty("--flipbook-link-color",this.options.linkColor),n.style.setProperty("--flipbook-link-color-hover",this.options.linkColorHover),jQuery(t).resize(function(){i.resize()}),this.resize(),this.Book.updateVisiblePages(),this.Book.zoomTo(e.zoomMin),this.updateCurrentPage(),this.playBgMusic(),o.addEventListener("keydown",function(e){if(i.Book.enabled){if(!i.options.arrowsAlwaysEnabledForNavigation||37!=e.keyCode&&39!=e.keyCode){if(!i.options.lightBox&&!i.fullscreenActive&&(i.options.arrowsDisabledNotFullscreen||i.bodyHasVerticalScrollbar()))return}else;switch((e=e||t.event).keyCode){case 37:i.zoom>1?i.moveBook("left"):i.prevPage();break;case 38:i.zoom>1?i.moveBook("up"):i.nextPage();break;case 39:i.zoom>1?i.moveBook("right"):i.nextPage();break;case 33:i.prevPage();break;case 34:i.nextPage();break;case 36:i.firstPage();break;case 35:i.lastPage();break;case 40:i.zoom>1?i.moveBook("down"):i.prevPage();break;case 107:case 187:i.zoomIn();break;case 109:case 189:i.zoomOut()}return!1}}),o.addEventListener("MSFullscreenChange",function(e){i.handleFsChange()}),o.addEventListener("mozfullscreenchange",function(e){i.handleFsChange()}),o.addEventListener("webkitfullscreenchange",function(e){i.handleFsChange()}),o.addEventListener("fullscreenchange",function(e){i.handleFsChange()}),e.lightboxCloseOnBack&&(t.onpopstate=function(){i.Book.enabled&&FLIPBOOK.lightboxOpened&&(t.location.hash||i.lightbox.closeLightbox(!0))}),this.zoom=e.zoomMin,this.bookLayer.bind("DOMMouseScroll",function(e){if(i.Book.enabled&&(i.options.lightBox||i.fullscreenActive||!i.options.wheelDisabledNotFullscreen&&!i.bodyHasVerticalScrollbar()))return e.stopPropagation(),e.preventDefault(),e.originalEvent.detail>0?i.zoomOut(e.originalEvent):i.zoomIn(e.originalEvent),!1}),this.bookLayer.bind("mousewheel",function(e){if(i.Book.enabled&&(i.options.lightBox||i.fullscreenActive||!i.options.wheelDisabledNotFullscreen&&!i.bodyHasVerticalScrollbar()))return e.stopPropagation(),e.preventDefault(),e.originalEvent.wheelDelta<0?i.zoomOut(e.originalEvent):i.zoomIn(e.originalEvent),!1}),this.setTool("toolMove"),i.options.contentOnStart?i.toggleToc(!0):i.options.thumbnailsOnStart?i.toggleThumbs(!0):i.options.searchOnStart&&(i.toggleSearch(!0),"string"==typeof i.options.searchOnStart&&i.thumbs.$findInput.val(i.options.searchOnStart).trigger("keyup")),e.autoplayOnStart&&i.toggleAutoplay(!0),i.options.lightBox&&i.Book.disable(),i.initColors(),setTimeout(function(){i.resize(),i.Book.updateVisiblePages(),i.Book.zoomTo(e.zoomMin)},500),e.onbookcreated&&e.onbookcreated.call(this)},initSwipe:function(){if(1!=this.options.numPages&&this.options.touchSwipeEnabled){var e=this;t.jQuery(this.bookLayer).swipe({swipeStatus:function(t,o,i,n,r,s,a){if("start"==o)try{e.currentPageInput.trigger("blur")}catch(t){}if(!e.options.sideNavigationButtons||t.target!==e.arrowL[0]&&t.target!==e.arrowR[0])if(("end"==o||"cancel"==o)&&r<200&&n<10){if("toolMove"==e.tool&&!e.options.doubleClickZoomDisabled)if(null==e.clickTimer)e.clickTimer=setTimeout(function(){if(e.clickTimer=null,"touchend"==t.type)t.changedTouches[0].pageX;else if("mouseup"==t.type)t.offsetX},300);else{clearTimeout(e.clickTimer),e.clickTimer=null;var l=e.options.zoomTime;e.zoom>=e.options.zoomMax?e.zoomTo(e.options.zoomMin,l,t):e.zoomTo(e.options.zoomMax,l,t)}}else{if(("up"==i||"down"==i)&&"move"==o||e.zoom>1||"toolSelect"==e.tool)return;e.Book.onSwipe(t,o,i,n,r,s,a)}},pinchStatus:function(t,o,i,n,r,s,a){"start"==o&&(e.zoomStart=e.zoom),s>1&&"move"==o&&(t.preventDefault(),t.scale&&(a=t.scale),e.zoomTo(e.zoomStart*a,0,t))},fingers:2,pinchThreshold:0,allowPageScroll:"vertical",preventDefaultEvents:!1}),this.swipeEnabled=!0}},toggleMenu:function(){this.menuShowing?(this.menuShowing=!1,this.bookLayer.css("bottom","0px"),this.menuBottom.fadeOut(),this.currentPageHolder.fadeOut(),jQuery(".flipbook-nav").fadeOut(),this.Book.onResize()):(this.menuShowing=!0,this.bookLayer.css("bottom",this.menuBottom.height()+"px"),this.menuBottom.fadeIn(),this.currentPageHolder.fadeIn(),jQuery(".flipbook-nav").fadeIn(),this.Book.onResize())},createIcon:function(e,t,i){var n;return n="material"==this.options.icons?jQuery(o.createElement("span")).attr("aria-hidden","true").addClass(t?e.iconM_alt:e.iconM).addClass("flipbook-icon flipbook-menu-btn skin-color"):jQuery(o.createElement("span")).attr("aria-hidden","true").addClass(t?e.iconFA_alt:e.iconFA).addClass("flipbook-icon flipbook-menu-btn skin-color"),i||n.addClass("skin-color-bg"),n},createButton:function(e){var t=this.options,i="top"==e.vAlign&&t.menu2Transparent||"top"!=e.vAlign&&t.menuTransparent,n=e.background||(i?t.floatingBtnBackgroun
6d:t.btnBackground),r=e.backgroundHover||(i?t.floatingBtnBackgroundHover:t.btnBackgroundHover),s=e.color||(i?t.floatingBtnColor:t.btnColor),a=e.colorHover||(i?t.floatingBtnColorHover:t.btnColorHover),l=i?t.floatingBtnTextShadow:t.btnTextShadow,d=e.radius||(i?t.floatingBtnRadius:t.btnRadius),p=e.border||(i?t.floatingBtnBorder:t.btnBorder),h=i?t.floatingBtnMargin:t.btnMargin,c=t.btnPaddingV+2,u=t.btnPaddingH+2,g=jQuery(o.createElement("span")),f="material"==t.icons,b=f?(e.size||t.btnSize)+8:e.size||t.btnSize;function m(e){e.css({"font-size":b+"px",margin:h+"px",padding:c+"px "+u+"px","border-radius":d+"px","text-shadow":t.btnTextShadow,"box-shadow":t.btnShadow,border:p,color:s,background:n,"text-shadow":l}),s&&e.removeClass("skin-color"),n&&e.removeClass("skin-color-bg")}g.$icon=this.createIcon(e).appendTo(g),m(g.$icon),e.iconAlt2&&(g.$iconAlt=this.createIcon(e,!0).appendTo(g).hide(),m(g.$iconAlt)),g.icon=e.iconFA,g.iconAlt=e.iconFA_alt,f&&(g.icon=e.iconM,g.iconAlt=e.iconM_alt,e.icon=e.iconM,e.iconAlt=e.iconM_alt),e.onclick&&g.bind("tap click",function(t){e.onclick()}),(a||r)&&g.mouseenter(function(){Array.from(this.children).forEach(function(e){e.style.color=a,e.style.background=r})}).mouseleave(function(){Array.from(this.children).forEach(function(e){e.style.color=s,e.style.background=n})});var k;return k="top"==e.vAlign?t.menu2Floating?this.menuTC:"left"==e.hAlign?this.menuTL:"right"==e.hAlign?this.menuTR:this.menuTC:t.menuFloating?this.menuBC:"left"==e.hAlign?this.menuBL:"right"==e.hAlign?this.menuBR:this.menuBC,g.attr("data-name",e.name).appendTo(k).attr("title",e.title).addClass("").css("order",e.order),g},createMenu:function(){if(!this.menuBottom){var e=this.options,t=e.menuFloating?"flipbook-menu-floating":"flipbook-menu-fixed",i=e.menu2Floating?"flipbook-menu-floating":"flipbook-menu-fixed",n=this;this.menuBottom=jQuery(o.createElement("div")).addClass("flipbook-menuBottom").addClass(t).appendTo(this.wrapper).css({background:e.menuBackground,"box-shadow":e.menuShadow,margin:e.menuMargin+"px",padding:e.menuPadding+"px"}),e.menuTransparent||e.menuBackground||this.menuBottom.addClass("skin-color-bg"),e.hideMenu&&this.menuBottom.hide(),this.menuTop=jQuery(o.createElement("div")).addClass("flipbook-menuTop").addClass(i).appendTo(this.wrapper).css({background:e.menu2Background,"box-shadow":e.menu2Shadow,margin:e.menu2Margin+"px",padding:e.menu2Padding+"px"}),e.menu2Transparent||e.menu2Background||this.menuTop.addClass("skin-color-bg"),"swipe"==e.viewMode&&(e.btnSound.enabled=!1),this.menuBL=jQuery(o.createElement("div")).addClass("flipbook-menu flipbook-menu-left").appendTo(this.menuBottom),this.menuBC=jQuery(o.createElement("div")).addClass("flipbook-menu flipbook-menu-center").appendTo(this.menuBottom),this.menuBR=jQuery(o.createElement("div")).addClass("flipbook-menu flipbook-menu-right").appendTo(this.menuBottom),this.menuTL=jQuery(o.createElement("div")).addClass("flipbook-menu flipbook-menu-left").appendTo(this.menuTop),this.menuTC=jQuery(o.createElement("div")).addClass("flipbook-menu flipbook-menu-center").appendTo(this.menuTop),this.menuTR=jQuery(o.createElement("div")).addClass("flipbook-menu flipbook-menu-right").appendTo(this.menuTop),e.isMobile&&(void 0!==e.btnTocIfMobile&&(e.btnToc.hideOnMobile=!e.btnTocIfMobile),void 0!==e.btnThumbsIfMobile&&(e.btnThumbs.hideOnMobile=!e.btnThumbsIfMobile),void 0!==e.btnShareIfMobile&&(e.btnShare.hideOnMobile=!e.btnShareIfMobile),void 0!==e.btnDownloadPagesIfMobile&&(e.btnDownloadPages.hideOnMobile=!e.btnDownloadPagesIfMobile),void 0!==e.btnDownloadPdfIfMobile&&(e.btnDownloadPdf.hideOnMobile=!e.btnDownloadPdfIfMobile),void 0!==e.btnSoundIfMobile&&(e.btnSound.hideOnMobile=!e.btnSoundIfMobile),void 0!==e.btnExpandIfMobile&&(e.btnExpand.hideOnMobile=!e.btnExpandIfMobile),void 0!==e.btnPrintIfMobile&&(e.btnPrint.hideOnMobile=!e.btnPrintIfMobile)),e.sideNavigationButtons&&(this.btnNext=jQuery('<div class="flipbook-nav"><div class="flipbook-arrow-wrapper"></div></div>').appendTo(this.bookLayer).bind("tap click",function(e){n.btnNext.disabled||(n.btnNext.disabled=!0,setTimeout(function(){n.btnNext.disabled=!1},300),e.stopPropagation(),e.preventDefault(),n.nextPage())}),this.arrowR=this.createIcon(e.btnNext).appendTo(this.btnNext.first()).addClass("flipbook-right-arrow").css({width:e.sideBtnSize+"px",height:e.sideBtnSize+"px","font-size":e.sideBtnSize+"px","border-radius":e.sideBtnRadius+"px","margin-top":String(-e.sideBtnSize/2)+"px","margin-right":e.sideBtn
6Margin+"px",padding:e.sideBtnPaddingV+"px "+e.sideBtnPaddingH+"px","text-shadow":e.sideBtnTextShadow,"box-shadow":e.sideBtnShadow,border:e.sideBtnBorder,color:e.sideBtnColor,background:e.sideBtnBackground,"box-sizing":"initial"}),e.sideBtnColor&&this.arrowR.removeClass("skin-color"),e.sideBtnBackground&&this.arrowR.removeClass("skin-color-bg"),this.btnPrev=jQuery('<div class="flipbook-nav"><div class="flipbook-arrow-wrapper"></div></div>').appendTo(n.bookLayer).bind("tap click",function(e){n.btnPrev.disabled||(n.btnPrev.disabled=!0,setTimeout(function(){n.btnPrev.disabled=!1},300),e.stopPropagation(),e.preventDefault(),n.prevPage())}),this.arrowL=this.createIcon(e.btnPrev).appendTo(this.btnPrev.first()).addClass("flipbook-left-arrow").css({width:e.sideBtnSize+"px",height:e.sideBtnSize+"px","font-size":e.sideBtnSize+"px","border-radius":e.sideBtnRadius+"px","margin-top":String(-e.sideBtnSize/2)+"px","margin-left":e.sideBtnMargin+"px",padding:e.sideBtnPaddingV+"px "+e.sideBtnPaddingH+"px","text-shadow":e.sideBtnTextShadow,"box-shadow":e.sideBtnShadow,border:e.sideBtnBorder,color:e.sideBtnColor,background:e.sideBtnBackground,"box-sizing":"initial"}),e.sideBtnColor&&this.arrowL.removeClass("skin-color"),e.sideBtnBackground&&this.arrowL.removeClass("skin-color-bg"),e.btnFirst.enabled&&(this.btnFirst=jQuery('<div class="flipbook-nav"><div class="flipbook-arrow-wrapper"></div></div>').appendTo(this.bookLayer).bind("tap click",function(e){n.btnFirst.disabled||(n.btnFirst.disabled=!0,setTimeout(function(){n.btnFirst.disabled=!1},300),e.stopPropagation(),e.preventDefault(),n.firstPage())}),this.arrowFirst=this.createIcon(e.btnFirst).appendTo(this.btnFirst.first()).addClass("flipbook-first-arrow").css({width:e.sideBtnSize+"px",height:.66*e.sideBtnSize+"px","font-size":.66*e.sideBtnSize+"px","border-radius":e.sideBtnRadius+"px","margin-top":String(e.sideBtnSize/2+e.sideBtn
6Margin+2*e.sideBtnPaddingV)+"px","margin-left":e.sideBtnMargin+"px",padding:e.sideBtnPaddingV+"px "+e.sideBtnPaddingH+"px","text-shadow":e.sideBtnTextShadow,"box-shadow":e.sideBtnShadow,border:e.sideBtnBorder,color:e.sideBtnColor,background:e.sideBtnBackground,"box-sizing":"initial"}),e.sideBtnColor&&this.arrowFirst.removeClass("skin-color"),e.sideBtnBackground&&this.arrowFirst.removeClass("skin-color-bg")),e.btnLast.enabled&&(this.btnLast=jQuery('<div class="flipbook-nav"><div class="flipbook-arrow-wrapper"></div></div>').appendTo(n.bookLayer).bind("tap click",function(e){n.btnLast.disabled||(n.btnLast.disabled=!0,setTimeout(function(){n.btnLast.disabled=!1},300),e.stopPropagation(),e.preventDefault(),n.lastPage())}),this.arrowLast=this.createIcon(e.btnLast).appendTo(this.btnLast.first()).addClass("flipbook-last-arrow").css({width:e.sideBtnSize+"px",height:.66*e.sideBtnSize+"px","font-size":.66*e.sideBtnSize+"px","border-radius":e.sideBtnRadius+"px","margin-top":String(e.sideBtnSize/2+e.sideBtnMargin+2*e.sideBtnPaddingV)+"px","margin-right":e.sideBtnMargin+"px",padding:e.sideBtnPaddingV+"px "+e.sideBtnPaddingH+"px","text-shadow":e.sideBtnTextShadow,"box-shadow":e.sideBtnShadow,border:e.sideBtnBorder,color:e.sideBtnColor,background:e.sideBtnBackground,"box-sizing":"initial"}),e.sideBtnColor&&this.arrowLast.removeClass("skin-color"),e.sideBtnBackground&&this.arrowLast.removeClass("skin-color-bg")),e.btnOrder.indexOf("btnFirst")>=0&&e.btnOrder.splice(e.btnOrder.indexOf("btnFirst"),1),e.btnOrder.indexOf("btnPrev")>=0&&e.btnOrder.splice(e.btnOrder.indexOf("btnPrev"),1),e.btnOrder.indexOf("btnNext")>=0&&e.btnOrder.splice(e.btnOrder.indexOf("btnNext"),1),e.btnOrder.indexOf("btnLast")>=0&&e.btnOrder.splice(e.btnOrder.indexOf("btnLast"),1)),e.pdfMode&&!e.btnDownloadPdf.url&&(e.btnDownloadPdf.url=e.pdfUrl),!e.pdfTextLayer&&e.btnSelect&&(e.btnSelect.enabled=!1),!e.pdfTextLayer&&e.btnSearch&&(e.btnSearch.enabled=!1);for(var r=0;r<e.btnOrder.length;r++){var s=e.btnOrder[r],a=e[s];e.isMobile&&a.hideOnMobile&&(a.enabled=!1),a.enabled&&(a.name=s,"currentPage"==a.name?this.createCurrentPage():this[s]=this.createButton(a).bind("touchend click",function(e){e.stopPropagation(),e.preventDefault(),n.onButtonClick(this,e)}))}if(e.buttons)for(r=0;r<e.buttons.length;r++){a=e.buttons[r];n.createButton(a).index(1)}}},onButtonClick:function(e,i){var n=jQuery(e).attr("data-name"),r=this.options;switch(n){case"btnFirst":this.firstPage();break;case"btnPrev":this.prevPage();break;case"btnNext":this.nextPage();break;case"btnLast":this.lastPage();break;case"btnZoomIn":this.zoomIn();break;case"btnZoomOut":this.zoomOut();break;case"btnAutoplay":this.autoplay||this.nextPage(),this.toggleAutoplay();break;case"btnSearch":this.toggleSearch();break;case"btnBookmark":this.toggleBookmark();break;case"btnRotateLeft":this.Book.rotateLeft&&this.Book.rotateLeft();break;case"btnRotateRight":this.Book.rotateRight&&this.Book.rotateRight();break;case"btnToc":this.toggleToc();break;case"btnThumbs":this.toggleThumbs();break;case"btnShare":this.toggleShareMenu();break;case"btnDownloadPages":if(r.downloadMenu)this.toggleDownloadMenu();else{var s=o.createElement("a");s.href=r.btnDownloadPages.url,s.download=r.btnDownloadPages.name,s.dispatchEvent(new MouseEvent("click"))}break;case"btnPrint":r.printMenu?this.togglePrintMenu():this.togglePrintWindow();break;case"btnDownloadPdf":if(r.btnDownloadPdf.forceDownload){var a=r.btnDownloadPdf.url,l=o.createElement("a");l.href=a;var d=l.href.split("/").pop().split("#")[0].split("?")[0];l.download=d,o.body.appendChild(l),l.click(),o.body.removeChild(l)}else{var p=r.btnDownloadPdf.openInNewWindow||(r.btnDownloadPdf.openInNewWindow,1)?"_blank":"_self";t.open(r.btnDownloadPdf.url,p)}this.gaCode&&ga("send",{hitType:"event",eventCategory:"Flipbook : "+r.name,eventAction:"download PDF",eventLabel:r.btnDownloadPdf.url,nonInteraction:!0});break;case"btnSound":this.toggleSound();break;case"btnSelect":this.toggleTool();break;case"btnExpand":this.toggleExpand();break;case"btnClose":this.lightbox.closeLightbox()}},handleFsChange:function(e){if(this.Book&&this.Book.enabled){var t=jQuery(this.fullscreenElement);(o.fullscreenElement||o.webkitFullscreenElement||o.mozFullScreenElement||o.msFullscreenElement)===this.fullscreenElement||this.isFullscreen?(e&&(t.addClass("flipbook-browser-fullscreen"),this.fullscreenElement.parentNodeOld=this.fullscreenElement.parentNode,this.options.lightBox||t.appendTo(jQuery("body"))),this.fullscreenActive=!0,this.options.onfullscreenenter&&this.options.onfullscreenenter.call(this)):(e&&(t.removeClass("flipbook-browser-fullscreen"),this.options.lightBox||t.appendTo(jQuery(this.fullscreenElement.parentNodeOld))),this.fullscreenActive=!1,this.options.onfullscreenexit&&this.options.onfullscreenexit.call(this)),this.triggerResizeOnce(),this.toggleIcon(this.btnExpand,!this.fullscreenActive)}},createLogo:function(){var e=this.options;if(e.logoImg&&(!e.isMobile||!e.logoHideOnMobile)){var o=jQuery("<img>").attr("src",e.logoImg).attr("style",e.logoCSS).appendTo(this.wrapper);"right"==e.logoAlignH&&o.css("right","0"),"bottom"==e.logoAlignV&&o.css("bottom","0"),e.logoUrl&&o.css("cursor","pointer").bind("touchend click",function(o){o.stopPropagation(),o.preventDefault(),t.open(e.logoUrl,e.logoUrlTarget||"_blank")})}}
6,setLoadingProgress:function(e){this.disposed||(this.$fillPreloader?this.setFillPreloaderProgress(e):e>0&&e<1?jQuery(this.preloader).stop(!0,!0).show():jQuery(this.preloader).stop(!0,!0).hide())},setFillPreloaderProgress:function(e){if(this.$fillPreloader)if(e>0&&e<1){if(this.fillPreloaderProgress=this.fillPreloaderProgress||0,e<this.fillPreloaderProgress)return;this.fillPreloaderProgress=e;var t=this.$fillPreloaderImg[0];t.style.clip="rect(0px,"+t.width*e+"px,"+t.height+"px,0px)",this.$fillPreloader.show()}else this.$fillPreloader.hide()},playFlipSound:function(){if(this.options.sound&&this.Book.enabled&&void 0!==this.flipSound.play){this.flipSound.currentTime=0;var e=this;setTimeout(function(){e.flipSound.play().then(function(){},function(){})},70)}},playBgMusic:function(){if(this.options.sound&&this.backgroundMusic&&this.backgroundMusic.play){var e=this;this.backgroundMusic.play().then(function(){},function(t){setTimeout(function(){e.playBgMusic()},100)})}},onMouseWheel:function(e){if("wheelDeltaX"in e)wheelDeltaX=e.wheelDeltaX/12,wheelDeltaY=e.wheelDeltaY/12;else if("wheelDelta"in e)wheelDeltaX=wheelDeltaY=e.wheelDelta/12;else{if(!("detail"in e))return;wheelDeltaX=wheelDeltaY=3*-e.detail}wheelDeltaX>0?this.zoomIn(e):this.zoomOut(e)},zoomTo:function(e,t,o){var i,n;this.zoom=e,void 0===o?(i=this.model.wrapperW/2,n=this.model.wrapperH/2):(o.touches&&o.touches[0]?(i=o.touches[0].pageX,n=o.touches[0].pageY):o.changedTouches&&o.changedTouches[0]?(i=o.changedTouches[0].pageX,n=o.changedTouches[0].pageY):(i=o.pageX,n=o.pageY),i-=this.wrapper.offset().left,n-=this.wrapper.offset().top),this.zoom<this.options.zoomMin&&(this.zoom=this.options.zoomMin),this.zoom>this.options.zoomMax&&(this.zoom=this.options.zoomMax),this.options.zoomMax2&&this.zoom>this.options.zoomMax2&&(this.zoom=this.options.zoomMax2),this.model.zoom=this.zoom,this.Book.zoomTo(this.zoom,t,i,n),this.onZoom(this.zoom)},zoomOut:function(e){var t=this.zoom/this.options.zoomStep;if(t<1&&this.zoom>1&&(t=1),t=t<this.options.zoomMin?this.options.zoomMin:t,this.zoom!=t){this.zoom=t;var o=this.options.zoomTime;this.zoomTo(this.zoom,o,e)}},zoomIn:function(e){var t=this.zoom*this.options.zoomStep;if(t>1&&this.zoom<1&&(t=1),this.model.wrapperH*t>this.options.zoomSize&&(t=this.options.zoomSize/this.model.wrapperH),this.zoom!=t){this.zoom=t;var o=this.options.zoomTime;this.zoomTo(this.zoom,o,e)}},nextPage:function(){this.Book&&this.Book.nextPage()},prevPage:function(){this.Book&&this.Book.prevPage()},firstPage:function(){this.goToPage(1)},lastPage:function(){this.goToPage(this.options.pages.length)},goToPage:function(e,t){this.options.cover||e++,e<1?e=1:e>this.options.numPages&&!this.options.rightToLeft&&(e=this.options.numPages),this.Book&&this.Book.goToPage(e,t)},moveBook:function(e){this.Book&&this.Book.move&&this.Book.move(e)},onZoom:function(e){this.zoom=e,this.enableButton(this.btnZoomIn,e<this.options.zoomMax),this.enableButton(this.btnZoomOut,e>this.options.zoomMin),this.enableSwipe(e<=1),this.model.zoom=e},enableSwipe:function(e){this.swipeEnabled=e}
6,createCurrentPage:function(){var e,t=this,i=this.options,n="flipbook-currentPageHolder ";e="top"==i.currentPage.vAlign?"left"==i.currentPage.hAlign?this.menuTL:"right"==i.currentPage.hAlign?this.menuTR:this.menuTC:"left"==i.currentPage.hAlign?this.menuBL:"right"==i.currentPage.hAlign?this.menuBR:this.menuBC;var r="top"==i.currentPage.vAlign&&i.menu2Transparent||"top"!=i.currentPage.vAlign&&i.menuTransparent,s=r?i.floatingBtnBackground:"",a=r?i.floatingBtnColor:i.btnColor,l=r?i.floatingBtnTextShadow:"",d=r?i.floatingBtnRadius:i.btnRadius,p=(r?i.floatingBtnMargin:i.btnMargin,jQuery("<div>").appendTo(e));p.css("margin",i.currentPage.marginV+"px "+i.currentPage.marginH+"px"),r||(n+="skin-color "),p.addClass(n).css({color:a,background:s,"text-shadow":l,"border-radius":d+"px"}),i.currentPage.order&&p.css("order",i.currentPage.order),this.currentPageHolder=p,this.currentPage=jQuery(o.createElement("div")).addClass("flipbook-currentPageNumber").appendTo(p);var h=jQuery("<form>").appendTo(p).submit(function(e){var o=parseInt(t.currentPageInput.val());return o=o>i.pages.length?i.pages.length:o,t.options.rightToLeft&&(o=i.pages.length-o+1),o+=t.options.pageNumberOffset,t.goToPage(o),t.currentPageInput.trigger("blur"),!1});this.currentPageInput=jQuery('<input type="text" maxlength="4">').addClass("flipbook-currentPageInput").css({margin:i.currentPage.marginV+"px "+i.currentPage.marginH+"px",color:a}).appendTo(h).val("").focus(function(){t.currentPageInput.val(""),t.currentPage.addClass("flipbook-color-transparent")}).blur(function(){t.currentPageInput.val(""),t.currentPage.removeClass("flipbook-color-transparent")}),r||this.currentPageInput.addClass("skin-color")},createMenuHeader:function(e,t,o){var i=this,n=jQuery("<div>").addClass("flipbook-menu-header skin-clor flipbook-font").appendTo(e),r=(t=jQuery("<span>").text(t).addClass("flipbook-menu-title skin-color").appendTo(n),jQuery("<span>").appendTo(n).addClass("flipbook-btn-close").bind("touchend click",function(e){e.stopPropagation(),e.preventDefault(),i.closeMenus()}));this.createIcon(this.options.btnClose,null,!0).appendTo(r)},createToc:function(){var e=this,t=this.options.tableOfContent;if(t&&t.length||!this.pdfService||this.pdfService.outlineLoaded){if(this.tocHolder=jQuery("<div>").addClass("flipbook-tocHolder flipbook-side-menu skin-color-bg").appendTo(this.wrapper).css(this.options.sideMenuPosition,"0").hide(),this.createMenuHeader(this.tocHolder,this.strings.tableOfContent,this.toggleToc),this.toc=jQuery("<div>").addClass("flipbook-toc").appendTo(this.tocHolder),this.tocScroller=jQuery("<div>").addClass("flipbook-toc-scroller").appendTo(this.toc),this.tocScroll=new FLIPBOOK.IScroll(e.toc[0],{bounce:!1,mouseWheel:!0,scrollbars:!0,interactiveScrollbars:!0}),t&&t.length>0){this.options.pages;for(var o=0;o<t.length;o++)this.createTocItem(t[o])}else{var i=this.options.pages;for(o=0;o<i.length;o++){var n=i[o].title;if(""!=n&&void 0!==n){var r={title:n,page:String(o+1)};this.createTocItem(r)}}}this.initColors(),this.tocScroll.refresh(),this.tocCreated=!0,this.toggleToc()}else e.pdfService.loadOutline(function(t){e.options.tableOfContent=t;var o=new EventBus,i={scrollPageIntoView:function(e){var t=e.pageNumber,o=$annotations[processingAnnotationIndex];o&&(o.dataset.page=t,processingAnnotationIndex++,processAnotations())}};new PDFLinkService({eventBus:o}
6).setViewer(i),e.createToc()})},createTocItem:function(e,t,i){var n=this,r=(t=t||this.tocScroller,this.options.rightToLeft),s=jQuery(o.createElement("a")).attr("class","flipbook-tocItem").addClass("skin-color").css("direction",r?"rtl":"ltr").appendTo(t).bind("touchend click",function(t){if(t.stopPropagation(),t.preventDefault(),!n.tocScroll.moved)if(n.options.tableOfContentCloseOnClick&&n.toggleToc(!1),!e.page&&e.dest){function o(e){n.pdfService.pdfDocument.getPageIndex(e[0]).then(function(e){var t=e+1;n.options.doublePage&&(t=2*t-1),t=n.options.rightToLeft?n.options.pages.length-t+1:t,setTimeout(function(){n.goToPage(t)},200)})}"string"==typeof e.dest?n.pdfService.pdfDocument.getDestination(e.dest).then(function(e){o(e)}):o(e.dest)}else{var i=Number(e.page);i=n.options.rightToLeft?n.options.pages.length-i+1:i,setTimeout(function(){n.goToPage(i)},200)}});i||(i=0),s.level=i,s.css("padding","8px 0"),s.css("margin-"+(r?"right":"left"),"10px"),i?(s.css("margin-top","8px"),s.css("padding-bottom","0")):(s.css("margin-right","15px"),s.css("padding-left","10px"));var a=jQuery(o.createElement("span")).appendTo(s).css("width","20px").css("display","inline-block").css("cursor","auto").bind("touchend click",function(e){e.stopPropagation(),e.preventDefault();for(var t=0;t<s.items.length;t++)s.items[t].toggle();l.toggle(),d.toggle(),n.tocScroll.refresh()}),l=jQuery("<span>").attr("aria-hidden","true").appendTo(a).addClass("flipbook-icon-angle-"+(r?"left":"right")+" skin-color").hide(),d=jQuery("<span>").attr("aria-hidden","true").appendTo(a).addClass("flipbook-icon-angle-down skin-color").hide();if(jQuery(o.createElement("span")).appendTo(s).addClass("title").text(e.title).css("width",String(170-10*s.level)+"px"),!e.pageHidden){var p=e.page-this.options.pageNumberOffset;p&&jQuery(o.createElement("span")).appendTo(s).width("25px").css("display","inline-block").css("text-align","right").text(p)}if(e.items&&e.items.length){s.items=[];for(var h=0;h<e.items.length;h++){var c=this.createTocItem(e.items[h],s,s.level+1);s.items.push(c),c.hide()}l.show()}return s},enablePrev:function(e){this.enableButton(this.btnPrev,e),this.enableButton(this.btnFirst,e),this.Book.enablePrev(e)},enableNext:function(e){this.enableButton(this.btnNext,e),this.enableButton(this.btnLast,e),this.Book.enableNext(e)},enableButton:function(e,t){void 0!==e&&(t?(e.css("opacity","1"),e.css("pointer-events","auto")):(e.css("opacity","0.2"),e.css("pointer-events","none")),e.enabled=t)},resize:function(){var e=this.model,t=this.options;if(e.wrapperW=this.bookLayer.width(),e.wrapperH=this.bookLayer.height(),!e.wrapperH){var i=this.elem[0].cloneNode(!0);o.body.appendChild(i);var n=jQuery(i);if(e.wrapperW=n.width(),e.wrapperH=n.height(),!t.menuOverBook&&this.menuShowing&&this.menuBottom){var r=this.menuBottom[0].cloneNode(!0);o.body.appendChild(r),e.wrapperH-=jQuery(r).height(),o.body.removeChild(r)}o.body.removeChild(i)}this.Book&&this.Book.enabled&&(!t.menuOverBook&&this.menuShowing&&this.menuBottom?this.bookLayer.css("bottom",this.menuBottom.outerHeight()+"px"):this.bookLayer.css("bottom","0px"),!t.menu2OverBook&&this.menuShowing&&this.menuTop?this.bookLayer.css("top",this.menuTop.outerHeight()+"px"):this.bookLayer.css("top","0px"),this.tocShowing||this.thumbsShowing||this.searchShowing||this.bookmarkShowing?(t.sideMenuOverBook||this.bookLayer.css(this.options.sideMenuPosition,"250px"),this.options.sideMenuOverMenu||this.wrapper.find(".flipbook-side-menu").css("bottom",this.menuBottom.outerHeight()+"px"),this.options.sideMenuOverMenu2||this.wrapper.find(".flipbook-side-menu").css("top",this.menuTop.outerHeight()+"px")):this.bookLayer.css(this.options.sideMenuPosition,"0px"),t.zoomMax=t.zoomSize/e.wrapperH,t.zoomMax<t.zoomMin&&(t.zoomMax=t.zoomMin),e.zoom=t.zoomMin,this.Book.onResize(),this.options.zoomReset&&this.Book.zoomTo(this.options.zoomMin))},pdfResize:function(){this.Book.onZoom()},createThumbs:function(){this.thumbs=new FLIPBOOK.Thumbnails(this)},toggleThumbs:function(e){this.thumbs||this.createThumbs(),void 0!==e&&(this.thumbsShowing=!e),this.thumbsShowing?(this.thumbs.hide(),this.thumbsShowing=!1):(this.closeMenus(),this.thumbs.show(),this.thumbsShowing=!0),this.resize()},toggleToc:function(e){this.tocCreated?(!this.tocShowing||e?(this.closeMenus(),this.tocShowing=!0,this.tocHolder.show(),this.tocScroll.refresh()):(this.tocHolder.hide(),this.tocShowing=!1),this.resize()):this.createToc()},toggleSearch:function(e){this.thumbs||this.createThumbs(),void 0!==e&&(this.searchShowing=!e),this.searchShowing?(this.thumbs.hide(),this.searchShowing=!1,this.unmark()):(this.closeMenus(),this.thumbs.show(),this.thumbs.showSearch(),this.searchShowing=!0),this.resize()},toggleBookmark:function(e){this.thumbs||this.createThumbs(),void 0!==e&&(this.bookmarkShowing=!e),this.bookmarkShowing?(this.thumbs.hide(),this.bookmarkShowing=!1):(this.closeMenus(),this.thumbs.show(),this.thumbs.showBookmarks(),this.bookmarkShowing=!0),this.resize()},closeMenus:function(){this.thumbsShowing&&this.toggleThumbs(),this.tocShowing&&this.toggleToc(),this.searchShowing&&this.toggleSearch(),this.bookmarkShowing&&this.toggleBookmark(),this.printMenuShowing&&this.togglePrintMenu(),this.dlMenuShowing&&this.toggleDownloadMenu(),this.shareMenuShowing&&this.toggleShareMenu(),this.passwordMenuShowing&&this.togglePasswordMenu()},togglePrintMenu:function(){var e=this;if(this.printMenu)this.printMenuShowing?(this.printMenu.hide(),this.printMenuShowing=!1):(this.closeMenus(),this.printMenu.show(),this.printMenuShowing=!0,this.updateCurrentPage());else{this.printMenu=jQuery('<div class="flipbook-sub-menu flipbook-font">').appendTo(this.wrapper);var t=jQuery('<div class="flipbook-sub-menu-center">').appendTo(this.printMenu),o=jQuery('<div class="flipbook-sub-menu-content skin-color-bg">').appendTo(t);this.createMenuHeader(o,this.strings.print,this.togglePrintMenu);jQuery('<a><div class="c-p skin-color flipbook-btn">'+this.strings.printCurrentPage+"</div></a>").appendTo(o).bind("touchend click",function(t){e.printPage(e.cPage[0],this)}),jQuery('<a><div class="c-l-p skin-color flipbook-btn">'+this.strings.printLeftPage+"</div></a>").appendTo(this.printMenu).appendTo(o).bind("touchend click",function(t){e.printPage(e.cPage[0],this)}),jQuery('<a><div class="c-r-p skin-color flipbook-btn">'+this.strings.printRightPage+"</div></a>").appendTo(this.printMenu).appendTo(o).bind("touchend click",function(t){e.printPage(e.cPage[1],this)}),jQuery('<a><div class="skin-color flipbook-btn">
6'+this.strings.printAllPages+"</div></a>").appendTo(o).bind("touchend click",function(t){e.togglePrintWindow()});this.closeMenus(),this.printMenuShowing=!0,this.initColors(),this.updateCurrentPage()}},toggleDownloadMenu:function(){var e=this;if(this.dlMenu)this.dlMenuShowing?(this.dlMenu.hide(),this.dlMenuShowing=!1):(this.dlMenu.show(),this.closeMenus(),this.dlMenuShowing=!0,this.updateCurrentPage());else{this.dlMenu=jQuery('<div class="flipbook-sub-menu flipbook-font">').appendTo(this.wrapper);var t=jQuery('<div class="flipbook-sub-menu-center">').appendTo(this.dlMenu),i=jQuery('<div class="flipbook-sub-menu-content skin-color-bg">').appendTo(t);this.createMenuHeader(i,this.strings.download,this.toggleDownloadMenu);jQuery('<a><div class="c-p skin-color flipbook-btn">'+this.strings.downloadCurrentPage+"</div></a>").appendTo(i).bind("touchend click",function(t){e.downloadPage(e.cPage[0],this)}),jQuery('<a><div class="c-l-p skin-color flipbook-btn">'+this.strings.downloadLeftPage+"</div></a>").appendTo(i).bind("touchend click",function(t){e.downloadPage(e.cPage[0],this)}),jQuery('<a><div class="c-r-p skin-color flipbook-btn">'+this.strings.downloadRightPage+"</div></a>").appendTo(i).bind("touchend click",function(t){e.downloadPage(e.cPage[1],this)}),jQuery('<a><div class="skin-color flipbook-btn">'+this.strings.downloadAllPages+"</div></a>").appendTo(i).bind("touchend click",function(t){var i=o.createElement("a");i.href=e.options.btnDownloadPages.url;var n=i.href.split("/").pop().split("#")[0].split("?")[0];i.download=n,i.dispatchEvent(new MouseEvent("click"))});this.closeMenus(),this.dlMenuShowing=!0,this.initColors(),this.updateCurrentPage()}},toggleShareMenu:function(){if(this.shareMenu)this.shareMenuShowing?(this.shareMenu.hide(),this.shareMenuShowing=!1):(this.shareMenu.show(),this.closeMenus(),this.shareMenuShowing=!0);else{this.shareMenu=jQuery(o.createElement("div")).appendTo(this.wrapper).addClass("flipbook-sub-menu flipbook-font");var e=jQuery(o.createElement("div")).appendTo(this.shareMenu).addClass("flipbook-sub-menu-center"),i=jQuery(o.createElement("div")).appendTo(e).addClass("flipbook-sub-menu-content skin-color-bg");this.createMenuHeader(i,this.options.strings.share,this.toggleShareMenu);var n=this.options,r=jQuery('<div class="flipbook-share"><ul></ul></div>').appendTo(i).find("ul"),s=t.screen.width/2-300,a=t.screen.height/2-300;["facebook","twitter","pinterest","linkedin","email","whatsapp","digg","reddit"].forEach(function(e){n[e].enabled&&jQuery('<li data-network="'+e+'"><i class="'+n[e].icon+" skin-color flipbook-color-"+n.skin+'"></i></li>').appendTo(r).bind("tap click",function(e){e.preventDefault(),e.stopPropagation();var o,i=this.dataset.network,r=encodeURIComponent(n.shareTitle||n[i].description||"Check out this flipbook"),l=encodeURIComponent(n.shareUrl||t.location.href),d=encodeURIComponent(n.shareImage||"");switch(i){case"facebook":o="https://www.facebook.com/sharer.php?u="+l+"&t="+r;break;case"twitter":o="https://twitter.com/intent/tweet?text="+r+"&url="+l;break;case"linkedin":o="https://www.linkedin.com/shareArticle?mini=true&url="+l+"&title="+r;break;case"pinterest":o="https://www.pinterest.com/pin/create/button/?url="+l+"&media="+d+"&description="+r;break;case"email":o="mailto:?subject="+r+"&body="+l;break;case"digg":o="http://digg.com/submit?url="+l+"&title="+r;break;case"reddit":o="http://reddit.com/submit?url="+l+"&title="+r;break;case"whatsapp":o=n.isMobile?"whatsapp://send?text="+r+"%20d"+l:"https://wa.me?text="+r+"%20d"+l}t.open(o,"Share","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=600, height=600, top="+a+", left="+s)})}),this.closeMenus(),this.shareMenuShowing=!0,this.initColors()}},bookmarkPage:function(e){var t=this.getBookmarkedPages();t.indexOf(String(e))<0&&t.push(e),this.setBookmarkedPages(t),this.thumbs.showBookmarkedThumbs(),this.bookmarkShowing||this.toggleBookmark()},removeBookmark:function(e){var t=this.getBookmarkedPages();t.indexOf(String(e))>-1&&t.splice(t.indexOf(String(e)),1),this.setBookmarkedPages(t),this.thumbs.showBookmarkedThumbs(),this.bookmarkShowing||this.toggleBookmark()},isBookmarked:function(e){return this.getBookmarkedPages().indexOf(String(e))>0},getBookmarkedPages:function(){var e=localStorage.getItem(this.options.name+"_flipbook_bookmarks");return e?e.split(";"):[]},setBookmarkedPages:function(e){localStorage.setItem(this.options.name+"_flipbook_bookmarks",e.join(";"))},printPage:function(e,t){var i,n=this.options.pages[e],r=this.options.pageTextureSize;if(n)if(n.print)i=n.print;else if(n.canvas&&n.canvas[r]){var s=n.canvas[r];if("webgl"==this.options.viewMode){var a=o.createElement("canvas"),l=a.getContext("2d");a.width=s.width,a.height=s.height,s.scaleX&&(a.width=s.width*s.scaleX),s.scaleY&&(a.height=s.height*s.scaleY),"right"==n.side?l.drawImage(s,a.width,0,a.width,a.height,0,0,a.width,a.height):l.drawImage(s,0,0),i=a.toDataURL()}else i=n.canvas[r].toDataURL()}
6else n.src&&(i=n.src);if(i){var d=o.createElement("img");d.src=i,o.body.appendChild(d),printJS(i,"image")}else{var p=this;this.loadPage(e,r,function(){p.printPage(e)})}},downloadPage:function(e){var t;if(this.options.pages[e]&&this.options.pages[e].download)t=this.options.pages[e].download;else if(this.options.pages[e]&&this.options.pages[e].src)t=this.options.pages[e].src;else if(this.options.pages[e]&&this.options.pages[e].canvas&&this.options.pages[e].canvas[this.options.pageTextureSize]){var i=o.createElement("canvas"),n=this.options.pageWidth/this.options.pageHeight;i.width=this.options.pageTextureSize*n,i.height=this.options.pageTextureSize,i.getContext("2d").drawImage(this.options.pages[e].canvas[this.options.pageTextureSize],0,0),t=i.toDataURL("image/jpeg",.5)}if(t){var r=o.createElement("a");r.href=t,r.download="page"+String(e+1),o.body.appendChild(r),r.click(),o.body.removeChild(r)}else{var s=this;this.loadPage(e,this.options.pageTextureSize,function(){s.downloadPage(e)})}},printPdf:function(e){var t=new URL(e,o.baseURI).href;printJS(t)},togglePrintWindow:function(e){var o;(o=this).options.printPdfUrl?o.printPdf(o.options.printPdfUrl):o.options.pdfUrl?o.printPdf(o.options.pdfUrl):i();function i(){link="about:blank";var e=t.open(link,"_new");e.document.open();for(var i="",n=0;n<o.options.pages.length;n++)o.options.pages[n].src&&(i+='<img src="'+o.options.pages[n].src.toString()+'"/>\n');var r=function(e){return"<html>\n<head>\n<title>Temporary Printing Window</title>\n<script>\nfunction step1() {\n  setTimeout('step2()', 10);\n}\nfunction step2() {\n  window.print();\n  window.close();\n}\n<\/script>\n<style>img {display:block; max-width:100%; page-break-after: always;}</style>\n</head>\n<body onLoad='step1()'>\n"+e+"</body>\n</html>\n"}(i);e.document.write(r),e.document.close()}},thumbsVertical:function(){this.thumbsCreated&&(this.thumbScroll.hScroll=!1,this.thumbScroll.vScroll=!0,this.thumbScroll.refresh())},toggleExpand:function(e){screenfull.enabled?screenfull.toggle(this.fullscreenElement):(this.isFullscreen=!this.isFullscreen,this.handleFsChange(!0))},expand:function(){},toggleAutoplay:function(e){var t=this;this.autoplay=e||!this.autoplay,this.autoplay?this.autoplayTimer=setInterval(function(){if(t.autoplay){var e=t.options.autoplayStartPage||1;t.options.rightToLeft?t.Book.prevEnabled?t.prevPage():t.options.autoplayLoop&&t.goToPage(t.options.pages.length-e+1):t.Book.nextEnabled?t.nextPage():t.options.autoplayLoop&&t.goToPage(e)}},t.options.autoplayInterval):clearInterval(t.autoplayTimer),this.toggleIcon(this.btnAutoplay,!this.autoplay)},triggerResizeOnce:function(){setTimeout(function(){jQuery(t).trigger("resize")},100),setTimeout(function(){jQuery(t).trigger("resize")},500)},triggerResize:function(){setTimeout(function(){jQuery(t).trigger("resize")},100),setTimeout(function(){jQuery(t).trigger("resize")},500),setTimeout(function(){jQuery(t).trigger("resize")},2e3)},initEasing:function(){t.jQuery.extend(t.jQuery.easing,{def:"easeOutQuad",swing:function(e,t,o,i,n){return jQuery.easing[jQuery.easing.def](e,t,o,i,n)},easeInQuad:function(e,t,o,i,n){return i*(t/=n)*t+o},easeOutQuad:function(e,t,o,i,n){return-i*(t/=n)*(t-2)+o},easeInOutQuad:function(e,t,o,i,n){return(t/=n/2)<1?i/2*t*t+o:-i/2*(--t*(t-2)-1)+o},easeInCubic:function(e,t,o,i,n){return i*(t/=n)*t*t+o},easeOutCubic:function(e,t,o,i,n){return i*((t=t/n-1)*t*t+1)+o},easeInOutCubic:function(e,t,o,i,n){return(t/=n/2)<1?i/2*t*t*t+o:i/2*((t-=2)*t*t+2)+o},easeInQuart:function(e,t,o,i,n){return i*(t/=n)*t*t*t+o},easeOutQuart:function(e,t,o,i,n){return-i*((t=t/n-1)*t*t*t-1)+o},easeInOutQuart:function(e,t,o,i,n){return(t/=n/2)<1?i/2*t*t*t*t+o:-i/2*((t-=2)*t*t*t-2)+o},easeInQuint:function(e,t,o,i,n){return i*(t/=n)*t*t*t*t+o},easeOutQuint:function(e,t,o,i,n){return i*((t=t/n-1)*t*t*t*t+1)+o},easeInOutQuint:function(e,t,o,i,n){return(t/=n/2)<1?i/2*t*t*t*t*t+o:i/2*((t-=2)*t*t*t*t+2)+o},easeInSine:function(e,t,o,i,n){return-i*Math.cos(t/n*(Math.PI/2))+i+o},easeOutSine:function(e,t,o,i,n){return i*Math.sin(t/n*(Math.PI/2))+o},easeInOutSine:function(e,t,o,i,n){return-i/2*(Math.cos(Math.PI*t/n)-1)+o},easeInExpo:function(e,t,o,i,n){return 0==t?o:i*Math.pow(2,10*(t/n-1))+o},easeOutExpo:function(e,t,o,i,n){return t==n?o+i:i*(1-Math.pow(2,-10*t/n))+o},easeInOutExpo:function(e,t,o,i,n){return 0==t?o:t==n?o+i:(t/=n/2)<1?i/2*Math.pow(2,10*(t-1))+o:i/2*(2-Math.pow(2,-10*--t))+o},easeInCirc:function(e,t,o,i,n){return-i*(Math.sqrt(1-(t/=n)*t)-1)+o},easeOutCirc:function(e,t,o,i,n){return i*Math.sqrt(1-(t=t/n-1)*t)+o},easeInOutCirc:function(e,t,o,i,n){return(t/=n/2)<1?-i/2*(Math.sqrt(1-t*t)-1)+o:i/2*(Math.sqrt(1-(t-=2)*t)+1)+o},easeInElastic:function(e,t,o,i,n){var r=1.70158,s=0,a=i;if(0==t)return o;if(1==(t/=n))return o+i;
6if(s||(s=.3*n),a<Math.abs(i)){a=i;r=s/4}else r=s/(2*Math.PI)*Math.asin(i/a);return-a*Math.pow(2,10*(t-=1))*Math.sin((t*n-r)*(2*Math.PI)/s)+o},easeOutElastic:function(e,t,o,i,n){var r=1.70158,s=0,a=i;if(0==t)return o;if(1==(t/=n))return o+i;if(s||(s=.3*n),a<Math.abs(i)){a=i;r=s/4}else r=s/(2*Math.PI)*Math.asin(i/a);return a*Math.pow(2,-10*t)*Math.sin((t*n-r)*(2*Math.PI)/s)+i+o},easeInOutElastic:function(e,t,o,i,n){var r=1.70158,s=0,a=i;if(0==t)return o;if(2==(t/=n/2))return o+i;if(s||(s=n*(.3*1.5)),a<Math.abs(i)){a=i;r=s/4}else r=s/(2*Math.PI)*Math.asin(i/a);return t<1?a*Math.pow(2,10*(t-=1))*Math.sin((t*n-r)*(2*Math.PI)/s)*-.5+o:a*Math.pow(2,-10*(t-=1))*Math.sin((t*n-r)*(2*Math.PI)/s)*.5+i+o},easeInBack:function(e,t,o,n,r,s){return s==i&&(s=1.70158),n*(t/=r)*t*((s+1)*t-s)+o},easeOutBack:function(e,t,o,n,r,s){return s==i&&(s=1.70158),n*((t=t/r-1)*t*((s+1)*t+s)+1)+o},easeInOutBack:function(e,t,o,n,r,s){return s==i&&(s=1.70158),(t/=r/2)<1?n/2*(t*t*((1+(s*=1.525))*t-s))+o:n/2*((t-=2)*t*((1+(s*=1.525))*t+s)+2)+o},easeInBounce:function(e,t,o,i,n){return i-jQuery.easing.easeOutBounce(e,n-t,0,i,n)+o},easeOutBounce:function(e,t,o,i,n){return(t/=n)<1/2.75?i*(7.5625*t*t)+o:t<2/2.75?i*(7.5625*(t-=1.5/2.75)*t+.75)+o:t<2.5/2.75?i*(7.5625*(t-=2.25/2.75)*t+.9375)+o:i*(7.5625*(t-=2.625/2.75)*t+.984375)+o},easeInOutBounce:function(e,t,o,i,n){return t<n/2?.5*jQuery.easing.easeInBounce(e,2*t,0,i,n)+o:.5*jQuery.easing.easeOutBounce(e,2*t-n,0,i,n)+.5*i+o}})}},FLIPBOOK.Book=function(){},FLIPBOOK.Book.prototype={rightIndex:0,goToPage:function(){},getRightIndex:function(){},canFlipNext:function(){return this.flippedright>0&&(1==this.view?this.isFocusedLeft&&this.isFocusedLeft():!(1==this.flippedright&&!this.options.rightToLeft&&!this.options.backCover))},canFlipPrev:function(){return this.flippedleft>0&&(1==this.view?this.isFocusedRight&&this.isFocusedRight():!(1==this.flippedleft&&this.options.rightToLeft&&!this.options.backCover))},getCurrentPageNumber:function(){if(1==this.view){var e=this.rightIndex%2==1?this.rightIndex+1:this.rightIndex;return this.options.rightToLeft?(e=this.options.pages.length-e,this.isFocusedRight()?e:e+1):this.isFocusedLeft()?e:e+1}}},FLIPBOOK.Thumbnails=function(e){var t=this,i=e.options,n=e.wrapper;this.main=e,this.options=i,this.wrapper=n,this.active=null,jQuery(e).bind("pagechange",function(){var o=50;e.bookmarkShowing&&(o+=t.bookmark.height()),t.thumbsWrapper.css("top",o+"px")}),this.thumbHolder=jQuery(o.createElement("div")).addClass("flipbook-thumbHolder flipbook-side-menu skin-color-bg").appendTo(n).css(this.options.sideMenuPosition,"0").hide(),this.thumbsWrapper=jQuery(o.createElement("div")).appendTo(this.thumbHolder).addClass("flipbook-thumbsWrapper"),this.thumbsScroller=jQuery(o.createElement("div")).appendTo(this.thumbsWrapper).addClass("flipbook-thumbsScroller"),e.createMenuHeader(this.thumbHolder,e.strings.thumbnails,e.toggleThumbs),this.bookmark=jQuery("<div>").addClass("flipbook-font").appendTo(this.thumbHolder).hide();jQuery('<a><div class="c-p skin-color flipbook-btn">'+i.strings.bookmarkCurrentPage+"</div></a>").appendTo(this.bookmark).bind("touchend click",function(t){e.bookmarkPage(e.cPage[0],this),t.preventDefault(),t.stopPropagation()}),jQuery('<a><div class="c-l-p skin-color flipbook-btn">'+i.strings.bookmarkLeftPage+"</div></a>").appendTo(this.bookmark).bind("touchend click",function(t){e.bookmarkPage(e.cPage[0],this),t.preventDefault(),t.stopPropagation()}),jQuery('<a><div class="c-r-p skin-color flipbook-btn">'+i.strings.bookmarkRightPage+"</div></a>").appendTo(this.bookmark).bind("touchend click",function(t){e.bookmarkPage(e.cPage[1],this),t.preventDefault(),t.stopPropagation()});this.search=jQuery("<div>").addClass("flipbook-search").appendTo(this.thumbHolder).hide(),this.$searchBar=jQuery('<div class="flipbook-findbar" id="findbar" deluminate_imagetype="png"><div id="findbarInputContainer"><input id="findInput" class="toolbarField" title="Find" placeholder="'+i.strings.findInDocument+'..."></div><div class="flipbook-find-info skin-color"/></div>').appendTo(this.search),this.$findInput=this.$searchBar.find("#findInput").keyup(function(){var e=this.value;if(""!=e){var o=t.main,i=o.pdfService,n=o.options;if(t.hideAllThumbs(),t.pagesFound=0,t.$findInfo.hide(),o.unmark(),o.searchingString=e,i
6)for(var r=0;r<i.pdfInfo.numPages;r++)i.findInPage(e,r,function(o,i,r){o>0&&(t.showThumb(r),t.pagesFound++,t.$findInfo.show().text(t.pagesFound+" "+n.strings.pagesFoundContaining+' "'+e+'"'),t.main.mark(e))});else for(r=0;r<n.pagesOriginal.length;r++){var s=r;n.doublePage&&(s*=2),o.loadPageHTML(s,function(i,r){i.innerText.toUpperCase().search(o.searchingString.toUpperCase())>0&&(n.doublePage&&(r/=2),t.showThumb(r),t.pagesFound++,t.$findInfo.show().text(t.pagesFound+" "+n.strings.pagesFoundContaining+' "'+e+'"'),t.main.mark(e))})}}}),this.$findInfo=this.$searchBar.find(".flipbook-find-info"),this.thumbs=[];var r=i.pages,s=[];if(i.doublePage)for(var a=0;a<r.length;a++)0!=a&&a%2==0||s.push(r[a]);else s=r;i.pdfMode&&this.loadThumbsFromPdf(s);var l=i.thumbSize,d=i.thumbSize*i.pageWidth/i.pageHeight;for(a=0;a<s.length;a++){var p=s[a].thumb;if(!s[a].empty){var h=jQuery("<div>").addClass("flipbook-thumb").appendTo(t.thumbsScroller).attr("data-thumb-index",a).width(d).height(l),c=jQuery("<span>").appendTo(h).addClass("thumb-btn-close").bind("touchend click",function(t){t.stopPropagation(),t.preventDefault(),e.removeBookmark(jQuery(this).parent().attr("data-thumb-index"))});jQuery("<span>").attr("aria-hidden","true").appendTo(c).addClass("flipbook-icon-times skin-color");if(this.thumbs.push(h),s[a].thumbCanvas)var u=jQuery(s[a].thumbCanvas);else{if(!p)continue;(u=jQuery("<img/>").attr("src",p))[0].onload=function(){t.thumbScroll.refresh()}}u.appendTo(h),jQuery("<br/>").appendTo(h);var g=i.doublePage&&i.pages.length%2==0&&a==s.length-1,f=i.doublePage&&0==a,b=i.doublePage&&!f&&!g;if(g){u.height(l).width(d).attr("page-title",2*a);jQuery(o.createElement("soan")).text(String(2*a)).appendTo(h).addClass("skin-color").addClass("flipbook-thumb-num")}else if(b){h.width(2*d),u.height(l).width(2*d).attr("page-title",2*a+1);jQuery(o.createElement("soan")).text(String(2*a)+"-"+String(2*a+1)).appendTo(h).addClass("skin-color").addClass("flipbook-thumb-num")}else{u.height(l).width(d).attr("page-title",a+1);var m=String(a+1);this.options.pages[a]&&this.options.pages[a].title&&(m=this.options.pages[a].title);jQuery(o.createElement("span")).text(m).appendTo(h).addClass("skin-color").addClass("flipbook-thumb-num")}u.bind("touchend click",function(o){if(o.stopPropagation(),o.preventDefault(),!t.thumbScroll.moved){var n=Number(jQuery(this).attr("page-title"));i.rightToLeft&&(n=i.pages.length-n+1),setTimeout(function(){e.goToPage(n)},200),"search"!=t.active&&i.thumbsCloseOnClick&&e.toggleThumbs(!1)}})}}this.thumbScroll=new FLIPBOOK.IScroll(this.thumbsWrapper[0],{bounce:!1,mouseWheel:!0,scrollbars:!0,interactiveScrollbars:!0}),e.initColors()},FLIPBOOK.Thumbnails.prototype={loadThumbsFromPdf:function(e){for(var t=this.main.pdfDocument._pdfInfo.numPages,i=0;i<t;i++){var n=o.createElement("canvas");e[i].thumbCanvas=n}this.loadThumbFromPdf(0,e)},loadVisibleThumbs:function(){},loadThumbFromPdf:function(e,t){var o=this;this.main.pdfDocument.getPage(e+1).then(function(e){var i=e.getViewport({scale:1}),n=o.options.thumbSize/i.height,r=e.getViewport({scale:n}),s=t[e._pageIndex].thumbCanvas,a=s.getContext("2d");s.height=r.height,s.width=r.width;var l={canvasContext:a,viewport:r};e.cleanupAfterRender=!0,e.render(l).promise.then(function(){e.cleanup(),e._pageIndex+1<o.main.pdfDocument._pdfInfo.numPages&&o.loadThumbFromPdf(e._pageIndex+1,t)}),o.thumbScroll.refresh()})},showAllThumbs:function(){jQuery(".flipbook-thumb").show(),this.thumbScroll.refresh()},hideAllThumbs:function(){jQuery(".flipbook-thumb").hide(),this.thumbScroll.refresh()},showThumb:function(e){this.thumbs[e]&&this.thumbs[e].show(),this.thumbScroll.refresh()},hideThumb:function(e){this.thumbs[e].hide(),this.thumbScroll.refresh()},showBookmarks:function(){jQuery(".thumb-btn-close").show(),this.showBookmarkedThumbs(),this.bookmark.show(),this.setTitle(this.options.strings.bookmarks),this.main.updateCurrentPage(),this.active="bookmarks"},showSearch:function(){this.thumbsWrapper.css("top","120px"),this.hideAllThumbs(),this.search.show(),this.$findInfo.hide(),jQuery(".thumb-btn-close").hide(),this.setTitle(this.options.strings.search),this.$findInput.val("").focus(),this.active="search"},showBookmarkedThumbs:function(){var e=this.main.getBookmarkedPages();this.hideAllThumbs();for(var t=0;t<e.length;t++){var o=e[t];o&&this.showThumb(o)}this.thumbsWrapper.css("top",50+this.bookmark.height()+"px")},show:function(){this.setTitle(this.options.strings.thumbnails),this.bookmark.hide(),this.search.hide(),this.thumbHolder.show(),this.main.thumbsVertical(),this.thumbsWrapper.css("top","50px"),this.showAllThumbs(),jQuery(".thumb-btn-close").hide(),this.loadVisibleThumbs(),this.main.resize(),this.active="thumbs"},hide:function(){this.thumbHolder.hide(),this.main.resize(),this.active=null},setTitle:function(e){this.thumbHolder.find(".flipbook-menu-title").text(e)}},FLIPBOOK.Lightbox=function(e,t,i){var n=this;this.context=e,this.options=i,e.$elem.bind("tap click",function(e){t.disposed||(n.openLightbox(),e.stopPropagation())});jQuery(e.elem).find("img");n.overlay=jQuery(o.createElement("div")).attr("style",i.lightboxCSS).addClass("flipbook-overlay").css("display","none").css("top",n.options.lightboxMarginV).css("bottom",n.options.lightboxMarginV).css("left",n.options.lightboxMarginH).css("right",n.options.lightboxMarginH).appendTo("body"),n.options.lightboxCloseOnClick&&jQuery("body").bind("tap click",function(e){var t=jQuery(e.target);t.parents().hasClass("flipbook-overlay")&&!t.hasClass("flipbook-bookLayer")||n.closeLightbox()}
6),i.lightboxBackground&&n.overlay.css("background",i.lightboxBackground),i.lightboxBackgroundColor&&n.overlay.css("background",i.lightboxBackgroundColor),i.lightboxBackgroundPattern&&n.overlay.css("background","url("+i.lightboxBackgroundPattern+") repeat"),i.lightboxBackgroundImage&&(n.overlay.css("background","url("+i.lightboxBackgroundImage+") no-repeat"),n.overlay.css("background-size","cover"),n.overlay.css("background-position","center center")),jQuery(o).keyup(function(e){n.context.Book&&n.context.Book.enabled&&27==e.keyCode&&n.closeLightbox()}),n.wrapper=jQuery(o.createElement("div")).css("height","auto").appendTo(n.overlay),n.wrapper.attr("class","flipbook-wrapper-transparent").css("margin","0px auto").css("padding","0px").css("height","100%").css("width","100%"),t.appendTo(n.wrapper);jQuery("<div/>").appendTo(n.wrapper).addClass("flipbook-lightbox-toolbar")},FLIPBOOK.Lightbox.prototype={openLightbox:function(){FLIPBOOK.lightboxOpened||(FLIPBOOK.lightboxOpened=!0,this.scrollTop=jQuery(o).scrollTop(),this.overlay.css("display","none"),this.overlay.fadeIn("slow"),jQuery("body").addClass("flipbook-overflow-hidden"),jQuery("html").addClass("flipbook-overflow-hidden"),jQuery(t).trigger("r3d-lightboxopen"),this.options.deeplinkingEnabled||t.history.pushState(null,"",t.location.href),this.context.options.password&&!this.context.pdfinitStarted&&this.context.initialized&&this.context.initPdf())},closeLightbox:function(e){if(FLIPBOOK.lightboxOpened){FLIPBOOK.lightboxOpened=!1,this.overlay.fadeOut("fast"),jQuery("body").removeClass("flipbook-overflow-hidden"),jQuery("html").removeClass("flipbook-overflow-hidden"),jQuery(t).trigger("r3d-lightboxclose"),jQuery(this.context.fullscreenElement).removeClass("flipbook-browser-fullscreen"),this.context.lightboxEnd(),jQuery(o).scrollTop(this.scrollTop),e||this.options.deeplinkingEnabled||history.back(),o.querySelectorAll(".flipbook-page-item").forEach(function(e){"VIDEO"!=e.nodeName&&"AUDIO"!=e.nodeName||e.pause()})}},resize:function(){var e=jQuery(t);e.width(),e.height()}},FLIPBOOK.getFlipbookSrc=function(){for(var e=o.getElementsByTagName("script"),t=0;t<e.length;t++){var i=String(e[t].src);if(i.match("flipbook\\.js")||i.match("flipbook\\.min\\.js"))return i;if(i.match("flipbook\\.lite\\.js")||i.match("flipbook\\.lite\\.min\\.js"))return i.replace(".lite","")}return""},FLIPBOOK.flipbookSrc=FLIPBOOK.getFlipbookSrc(),FLIPBOOK.iscrollSrc=FLIPBOOK.flipbookSrc.replace("flipbook.min","iscroll.min").replace("flipbook.js","iscroll.js"),FLIPBOOK.threejsSrc=FLIPBOOK.flipbookSrc.replace("flipbook.min","three.min").replace("flipbook.js","three.js"),FLIPBOOK.flipbookWebGlSrc=FLIPBOOK.flipbookSrc.replace("flipbook.min","flipbook.webgl.min").replace("flipbook.js","flipbook.webgl.js"),FLIPBOOK.flipbookBook3Src=FLIPBOOK.flipbookSrc.replace("flipbook.min","flipbook.book3.min").replace("flipbook.js","flipbook.book3.js"),FLIPBOOK.flipBookSwipeSrc=FLIPBOOK.flipbookSrc.replace("flipbook.min","flipbook.swipe.min").replace("flipbook.js","flipbook.swipe.js"),FLIPBOOK.pdfjsSrc=FLIPBOOK.flipbookSrc.replace("flipbook.min","pdf.min").replace("flipbook.js","pdf.js"),FLIPBOOK.pdfServiceSrc=FLIPBOOK.flipbookSrc.replace("flipbook.min","flipbook.pdfservice.min").replace("flipbook.js","flipbook.pdfservice.js"),FLIPBOOK.pdfjsworkerSrc=FLIPBOOK.flipbookSrc.replace("flipbook.min","pdf.worker.min").replace("flipbook.js","pdf.worker.js"),FLIPBOOK.markSrc="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/jquery.mark.js",FLIPBOOK.scriptsLoaded={},FLIPBOOK.scriptsAdded={}}(jQuery,window,document),FLIPBOOK.onPageLinkClick=function(e){var t=e.dataset.bookid,o=e.dataset.page;o&&FLIPBOOK.books[t].goToPage(Number(o));var i=e.dataset.url;i&&window.open(i,"_blank")},function(){"use strict";var e="undefined"!=typeof window&&void 0!==window.document?window.document:{},t="undefined"!=typeof module&&module.exports,o="undefined"!=typeof Element&&"ALLOW_KEYBOARD_INPUT"in Element,i=function(){for(var t,o=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["
6webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],i=0,n=o.length,r={};i<n;i++)if((t=o[i])&&t[1]in e){for(i=0;i<t.length;i++)r[o[0][i]]=t[i];return r}return!1}(),n={change:i.fullscreenchange,error:i.fullscreenerror},r={request:function(t){return new Promise(function(n){var r=i.requestFullscreen,s=function(){this.off("change",s),n()}.bind(this);t=t||e.documentElement,/ Version\/5\.1(?:\.\d+)? Safari\//.test(navigator.userAgent)?t[r]():t[r](o?Element.ALLOW_KEYBOARD_INPUT:{}),this.on("change",s)}.bind(this))},exit:function(){return new Promise(function(t){var o=function(){this.off("change",o),t()}.bind(this);e[i.exitFullscreen](),this.on("change",o)}.bind(this))},toggle:function(e){return this.isFullscreen?this.exit():this.request(e)},onchange:function(e){this.on("change",e)},onerror:function(e){this.on("error",e)},on:function(t,o){var i=n[t];i&&e.addEventListener(i,o,!1)},off:function(t,o){var i=n[t];i&&e.removeEventListener(i,o,!1)},raw:i};i?(Object.defineProperties(r,{isFullscreen:{get:function(){return Boolean(e[i.fullscreenElement])}},element:{enumerable:!0,get:function(){return e[i.fullscreenElement]}},enabled:{enumerable:!0,get:function(){return Boolean(e[i.fullscreenEnabled])}}}),t?module.exports=r:window.screenfull=r):t?module.exports=!1:window.screenfull=!1}(),function(e){"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e("undefined"!=typeof module&&module.exports?require("jquery"):jQuery)}(function(e){"use strict";function t(t,T){function M(t){if(!(!0===Se.data(O+"_intouch")||e(t.target).closest(T.excludedElements,Se).length>0)){var s=t.originalEvent?t.originalEvent:t;if(!s.pointerType||"mouse"!=s.pointerType||0!=T.fallbackToMouseEvents){var a,l=s.touches,d=l?l[0]:s;return ye=v,l?Be=l.length:!1!==T.preventDefaultEvents&&t.preventDefault(),ce=0,ue=null,ge=null,we=null,fe=0,be=0,me=0,ke=1,ve=0,(p={})[o]=te(o),p[i]=te(i),p[n]=te(n),p[r]=te(r),Pe=p,q(),X(0,d),!l||Be===T.fingers||T.fingers===m||N()?(Oe=re(),2==Be&&(X(1,l[1]),be=me=ie(xe[0].start,xe[1].start)),(T.swipeStatus||T.pinchStatus)&&(a=A(s,ye))):a=!1,!1===a?(A(s,ye=S),a):(T.hold&&(Fe=setTimeout(e.proxy(function(){Se.trigger("hold",[s.target]),T.hold&&(a=T.hold.call(Se,s,s.target))},this),T.longTapThreshold)),G(!0),null)}}var p}function C(t){var p,h,c,u,g=t.originalEvent?t.originalEvent:t;if(ye!==P&&ye!==S&&!J()){var k,v=g.touches,y=Y(v?v[0]:g);if(Te=re(),v&&(Be=v.length),T.hold&&clearTimeout(Fe),ye=w,2==Be&&(0==be?(X(1,v[1]),be=me=ie(xe[0].start,xe[1].start)):(Y(v[1]),me=ie(xe[0].end,xe[1].end),xe[0].end,xe[1].end,we=ke<1?a:s),ke=(me/be*1).toFixed(2),ve=Math.abs(be-me)),Be===T.fingers||T.fingers===m||!v||N()){if(ue=ne(y.start,y.end),function(e,t){if(!1!==T.preventDefaultEvents)if(T.allowPageScroll===l)e.preventDefault();else{var s=T.allowPageScroll===d;switch(t){case o:(T.swipeLeft&&s||!s&&T.allowPageScroll!=f)&&e.preventDefault();break;case i:(T.swipeRight&&s||!s&&T.allowPageScroll!=f)&&e.preventDefault();break;case n:(T.swipeUp&&s||!s&&T.allowPageScroll!=b)&&e.preventDefault();break;case r:(T.swipeDown&&s||!s&&T.allowPageScroll!=b)&&e.preventDefault()}}}(t,ge=ne(y.last,y.end)),c=y.start,u=y.end,ce=Math.round(Math.sqrt(Math.pow(u.x-c.x,2)+Math.pow(u.y-c.y,2))),fe=oe(),function(e,t){e!=l&&(t=Math.max(t,ee(e)),Pe[e].distance=t)}(ue,ce),k=A(g,ye),!T.triggerOnTouchEnd||T.triggerOnTouchLeave){var B=!0;if(T.triggerOnTouchLeave){var x={left:(h=(p=e(p=this)).offset()).left,right:h.left+p.outerWidth(),top:h.top,bottom:h.top+p.outerHeight()};B=function(e,t){return e.x>t.left&&e.x<t.right&&e.y>t.top&&e.y<t.bottom}(y.end,x)}!T.triggerOnTouchEnd&&B?ye=j(w):T.triggerOnTouchLeave&&!B&&(ye=j(P)),ye!=S&&ye!=P||A(g,ye)}}else A(g,ye=S);!1===k&&A(g,ye=S)}}function L(e){var t=e.originalEvent?e.originalEvent:e,o=t.touches;if(o){if(o.length&&!J())return function(e){Me=re(),Ce=e.touches.length+1}(t),!0;if(o.length&&J())return!0}
6return J()&&(Be=Ce),Te=re(),fe=oe(),D()||!Q()?A(t,ye=S):T.triggerOnTouchEnd||!1===T.triggerOnTouchEnd&&ye===w?(!1!==T.preventDefaultEvents&&!1!==e.cancelable&&e.preventDefault(),A(t,ye=P)):!T.triggerOnTouchEnd&&U()?z(t,ye=P,c):ye===w&&A(t,ye=S),G(!1),null}function I(){Be=0,Te=0,Oe=0,be=0,me=0,ke=1,q(),G(!1)}function F(e){var t=e.originalEvent?e.originalEvent:e;T.triggerOnTouchLeave&&A(t,ye=j(P))}function E(){Se.unbind(ae,M),Se.unbind(he,I),Se.unbind(le,C),Se.unbind(de,L),pe&&Se.unbind(pe,F),G(!1)}function j(e){var t=e,o=H(),i=Q(),n=D();return!o||n?t=S:!i||e!=w||T.triggerOnTouchEnd&&!T.triggerOnTouchLeave?!i&&e==P&&T.triggerOnTouchLeave&&(t=S):t=P,t}function A(e,t){var o,i=e.touches;return(!(!R()||!_())||_())&&(o=z(e,t,p)),(!(!K()||!N())||N())&&!1!==o&&(o=z(e,t,h)),Z()&&$()&&!1!==o?o=z(e,t,u):fe>T.longTapThreshold&&ce<k&&T.longTap&&!1!==o?o=z(e,t,g):!(1!==Be&&y||!(isNaN(ce)||ce<T.threshold)||!U())&&!1!==o&&(o=z(e,t,c)),t===S&&I(),t===P&&(i&&i.length||I()),o}function z(t,l,d){var f;if(d==p){if(Se.trigger("swipeStatus",[l,ue||null,ce||0,fe||0,Be,xe,ge]),T.swipeStatus&&!1===(f=T.swipeStatus.call(Se,t,l,ue||null,ce||0,fe||0,Be,xe,ge)))return!1;if(l==P&&R()){if(clearTimeout(Ie),clearTimeout(Fe),Se.trigger("swipe",[ue,ce,fe,Be,xe,ge]),T.swipe&&!1===(f=T.swipe.call(Se,t,ue,ce,fe,Be,xe,ge)))return!1;switch(ue){case o:Se.trigger("swipeLeft",[ue,ce,fe,Be,xe,ge]),T.swipeLeft&&(f=T.swipeLeft.call(Se,t,ue,ce,fe,Be,xe,ge));break;case i:Se.trigger("swipeRight",[ue,ce,fe,Be,xe,ge]),T.swipeRight&&(f=T.swipeRight.call(Se,t,ue,ce,fe,Be,xe,ge));break;case n:Se.trigger("swipeUp",[ue,ce,fe,Be,xe,ge]),T.swipeUp&&(f=T.swipeUp.call(Se,t,ue,ce,fe,Be,xe,ge));break;case r:Se.trigger("swipeDown",[ue,ce,fe,Be,xe,ge]),T.swipeDown&&(f=T.swipeDown.call(Se,t,ue,ce,fe,Be,xe,ge))}}}if(d==h){if(Se.trigger("pinchStatus",[l,we||null,ve||0,fe||0,Be,ke,xe]),T.pinchStatus&&!1===(f=T.pinchStatus.call(Se,t,l,we||null,ve||0,fe||0,Be,ke,xe)))return!1;if(l==P&&K())switch(we){case s:Se.trigger("pinchIn",[we||null,ve||0,fe||0,Be,ke,xe]),T.pinchIn&&(f=T.pinchIn.call(Se,t,we||null,ve||0,fe||0,Be,ke,xe));break;case a:Se.trigger("pinchOut",[we||null,ve||0,fe||0,Be,ke,xe]),T.pinchOut&&(f=T.pinchOut.call(Se,t,we||null,ve||0,fe||0,Be,ke,xe))}}return d==c?l!==S&&l!==P||(clearTimeout(Ie),clearTimeout(Fe),$()&&!Z()?(Le=re(),Ie=setTimeout(e.proxy(function(){Le=null,Se.trigger("tap",[t.target]),T.tap&&(f=T.tap.call(Se,t,t.target))},this),T.doubleTapThreshold)):(Le=null,Se.trigger("tap",[t.target]),T.tap&&(f=T.tap.call(Se,t,t.target)))):d==u?l!==S&&l!==P||(clearTimeout(Ie),clearTimeout(Fe),Le=null,Se.trigger("doubletap",[t.target]),T.doubleTap&&(f=T.doubleTap.call(Se,t,t.target))):d==g&&(l!==S&&l!==P||(clearTimeout(Ie),Le=null,Se.trigger("longtap",[t.target]),T.longTap&&(f=T.longTap.call(Se,t,t.target)))),f}function Q(){var e=!0;return null!==T.threshold&&(e=ce>=T.threshold),e}function D(){var e=!1;return null!==T.cancelThreshold&&null!==ue&&(e=ee(ue)-ce>=T.cancelThreshold),e}function H(){return!(T.maxTimeThreshold&&fe>=T.maxTimeThreshold)}function K(){var e=V(),t=W(),o=null===T.pinchThreshold||ve>=T.pinchThreshold;return e&&t&&o}function N(){return!!(T.pinchStatus||T.pinchIn||T.pinchOut)}function R(){var e=H(),t=Q(),o=V(),i=W();return!D()&&i&&o&&t&&e}function _(){return!!(T.swipe||T.swipeStatus||T.swipeLeft||T.swipeRight||T.swipeUp||T.swipeDown)}function V(){return Be===T.fingers||T.fingers===m||!y}function W(){return 0!==xe[0].end.x}function U(){return!!T.tap}function $(){return!!T.doubleTap}function Z(){if(null==Le)return!1;var e=re();return $()&&e-Le<=T.doubleTapThreshold}function q(){Me=0,Ce=0}function J(){var e=!1;Me&&(re()-Me<=T.fingerReleaseThreshold&&(e=!0));return e}function G(e){Se&&(!0===e?(Se.bind(le,C),Se.bind(de,L),pe&&Se.bind(pe,F)):(Se.unbind(le,C,!1),Se.unbind(de,L,!1),pe&&Se.unbind(pe,F,!1)),Se.data(O+"_intouch",!0===e))}function X(e,t){var o={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return o.start.x=o.last.x=o.end.x=t.pageX||t.clientX,o.start.y=o.last.y=o.end.y=t.pageY||t.clientY,xe[e]=o,o}function Y(e){var t=void 0!==e.identifier?e.identifier:0,o=function(e){return xe[e]||null}(t);return null===o&&(o=X(t,e)),o.last.x=o.end.x,o.last.y=o.end.y,o.end.x=e.pageX||e.clientX,o.end.y=e.pageY||e.clientY,o}function ee(e){if(Pe[e])return Pe[e].distance}function te(e){return{direction:e,distance:0}}function oe(){return Te-Oe}function ie(e,t){var o=Math.abs(e.x-t.x),i=Math.abs(e.y-t.y);return Math.round(Math.sqrt(o*o+i*i))}function ne(e,t){if(a=t,(s=e).x==a.x&&s.y==a.y)return l;var s,a,d=function(e,t){var o=e.x-t.x,i=t.y-e.y,n=Math.atan2(i,o),r=Math.round(180*n/Math.PI);return r<0&&(r=360-Math.abs(r)),r}(e,t);return d<=45&&d>=0?o:d<=360&&d>=315?o:d>=135&&d<=225?i:d>45&&d<135?r:n}function re(){return(new Date).getTime()}T=e.extend({},T);var se=y||x||!T.fallbackToMouseEvents,ae=se?x?B?"MSPointerDown":"pointerdown":"touchstart":"mousedown",le=se?x?B?"MSPointerMove":"pointermove":"touchmove":"mousemove",de=se?x?B?"MSPointerUp":"pointerup":"touchend":"mou
6seup",pe=se?x?"mouseleave":null:"mouseleave",he=x?B?"MSPointerCancel":"pointercancel":"touchcancel",ce=0,ue=null,ge=null,fe=0,be=0,me=0,ke=1,ve=0,we=0,Pe=null,Se=e(t),ye="start",Be=0,xe={},Oe=0,Te=0,Me=0,Ce=0,Le=0,Ie=null,Fe=null;try{Se.bind(ae,M),Se.bind(he,I)}catch(t){e.error("events not supported "+ae+","+he+" on jQuery.swipe")}this.enable=function(){return this.disable(),Se.bind(ae,M),Se.bind(he,I),Se},this.disable=function(){return E(),Se},this.destroy=function(){E(),Se.data(O,null),Se=null},this.option=function(t,o){if("object"==typeof t)T=e.extend(T,t);else if(void 0!==T[t]){if(void 0===o)return T[t];T[t]=o}else{if(!t)return T;e.error("Option "+t+" does not exist on jQuery.swipe.options")}return null}}var o="left",i="right",n="up",r="down",s="in",a="out",l="none",d="auto",p="swipe",h="pinch",c="tap",u="doubletap",g="longtap",f="horizontal",b="vertical",m="all",k=10,v="start",w="move",P="end",S="cancel",y="ontouchstart"in window,B=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled&&!y,x=(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&!y,O="TouchSwipe";e.fn.swipe=function(o){var i=e(this),n=i.data(O);if(n&&"string"==typeof o){if(n[o])return n[o].apply(n,Array.prototype.slice.call(arguments,1));e.error("Method "+o+" does not exist on jQuery.swipe")}else if(n&&"object"==typeof o)n.option.apply(n,arguments);else if(!(n||"object"!=typeof o&&o))return function(o){return!o||void 0!==o.allowPageScroll||void 0===o.swipe&&void 0===o.swipeStatus||(o.allowPageScroll=l),void 0!==o.click&&void 0===o.tap&&(o.tap=o.click),o||(o={}),o=e.extend({},e.fn.swipe.defaults,o),this.each(function(){var i=e(this),n=i.data(O);n||(n=new t(this,o),i.data(O,n))})}.apply(this,arguments);return i},e.fn.swipe.version="1.6.18",e.fn.swipe.defaults={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:".noSwipe",preventDefaultEvents:!0},e.fn.swipe.phases={PHASE_START:v,PHASE_MOVE:w,PHASE_END:P,PHASE_CANCEL:S},e.fn.swipe.directions={LEFT:o,RIGHT:i,UP:n,DOWN:r,IN:s,OUT:a},e.fn.swipe.pageScroll={NONE:l,HORIZONTAL:f,VERTICAL:b,AUTO:d},e.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:m}}),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.printJS=t():e.printJS=t()}(window,function(){return function(e){var t={};function o(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=e,o.c=t,o.d=function(e,t,i){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(i,n,function(t){return e[t]}.bind(null,n));return i},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=0)}([function(e,t,o){e.exports=o(2)},function(e,t,o){},function(e,t,o){"use strict";o.r(t),o(1);var i={isFirefox:function(){return"undefined"!=typeof InstallTrigger},isIE:function(){return-1!==navigator.userAgent.indexOf("MSIE")||!!document.documentMode},isEdge:function(){return!i.isIE()&&!!window.StyleMedia},isChrome:function(){return!!(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).chrome},isSafari:function(){return Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0||-1!==navigator.userAgent.toLowerCase().indexOf("safari")},isIOSChrome:function(){return-1!==navigator.userAgent.toLowerCase().indexOf("crios")}},n=i,r={show:function(e){var t=document.createElement("div");t.setAttribute("style","font-family:sans-serif; display:table; text-align:center; font-weight:300; font-size:30px; left:0; top:0;position:fixed; z-index: 9990;color: #0460B5; width: 100%; height: 100%; background-color:rgba(255,255,255,.9);transition: opacity .3s ease;"),t.setAttribute("id","printJS-Modal");var o=document.createElement("div");o.setAttribute("style","display:table-cell; vertical-align:middle; padding-bottom:100px;");var i=document.createElement("div");i.setAttribute("class","printClose"),i.setAttribute("id","printClose"),o.appendChild(i);var n=document.createElement("span");n.setAttribute("class","printSpinner"),o.appendChild(n);var s=document.createTextNode(e.modalMessage);o.appendChild(s),t.appendChild(o),document.getElementsByTagName("body")[0].appendChild(t),document.getElementById("printClose").addEventListener("click",function(){r.close()})},close:function(){var e=document.getElementById("printJS-Modal");e&&e.parentNode.removeChild(e)}},s=r;function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e){return e.charAt(0).toUpperCase()+e.slice(1)}function d(e,t){for(var o=0;o<e.length;o++)if("object"===a(t)&&-1!==t.indexOf(e[o]))return!0;return!1}function p(e,t){var o,i=document.createElement("div");if(o=t.header,new RegExp("<([A-Za-z][A-Za-z0-9]*)\\b[^>]*>(.*?)</\\1>").test(o))i.innerHTML=t.header;else{var n=document.createElement("h1"),r=document.createTextNode(t.header);n.appendChild(r),n.setAttribute("style",t.headerStyle),i.appendChild(n)}e.insertBefore(i,e.childNodes[0])}function h(e){e.showModal&&s.close(),e.onLoadingEnd&&e.onLoadingEnd(),(e.showModal||e.onLoadingStart)&&window.URL.revokeObjectURL(e.printable);var t="mouseover";(n.isChrome()||n.isFirefox())&&(t="focus"),window.addEventListener(t,function o(){window.removeEventListener(t,o),e.onPrintDialogClose();var i=document.getElementById(e.frameId);i&&i.remove()})}
6function c(e,t){try{if(e.focus(),n.isEdge()||n.isIE())try{e.contentWindow.document.execCommand("print",!1,null)}catch(t){e.contentWindow.print()}else e.contentWindow.print()}catch(e){t.onError(e)}finally{n.isFirefox()&&(e.style.visibility="hidden",e.style.left="-1px"),h(t)}}var u={send:function(e,t){document.getElementsByTagName("body")[0].appendChild(t);var o=document.getElementById(e.frameId);o.onload=function(){if("pdf"!==e.type){var t=o.contentWindow||o.contentDocument;if(t.document&&(t=t.document),t.body.appendChild(e.printableElement),"pdf"!==e.type&&e.style){var i=document.createElement("style");i.innerHTML=e.style,t.head.appendChild(i)}var r=t.getElementsByTagName("img");r.length>0?function(e){var t=Array.from(r).map(function(e){if(e.src&&e.src!==window.location.href)return function(e){return new Promise(function(t){!function o(){e&&void 0!==e.naturalWidth&&0!==e.naturalWidth&&e.complete?t():setTimeout(o,500)}()})}(e)});return Promise.all(t)}().then(function(){return c(o,e)}):c(o,e)}else n.isFirefox()?setTimeout(function(){return c(o,e)},1e3):c(o,e)}}};function g(e,t,o){var i=new window.Blob([o],{type:"application/pdf"});i=window.URL.createObjectURL(i),t.setAttribute("src",i),u.send(e,t)}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var m=["pdf","html","image","json","raw-html"],k=function(){var e={printable:null,fallbackPrintable:null,type:"pdf",header:null,headerStyle:"font-weight: 300;",maxWidth:800,properties:null,gridHeaderStyle:"font-weight: bold; padding: 5px; border: 1px solid #dddddd;",gridStyle:"border: 1px solid lightgray; margin-bottom: -1px;",showModal:!1,onError:function(e){throw e},onLoadingStart:null,onLoadingEnd:null,onPrintDialogClose:function(){},onIncompatibleBrowser:function(){},modalMessage:"Retrieving Document...",frameId:"printJS",printableElement:null,documentTitle:"Document",targetStyle:["clear","display","width","min-width","height","min-height","max-height"],targetStyles:["border","box","break","text-decoration"],ignoreElements:[],repeatTableHeader:!0,css:null,style:null,scanStyles:!0,base64:!1,onPdfOpen:null,font:"TimesNewRoman",font_size:"12pt",honorMarginPadding:!0,honorColor:!1,imageStyle:"max-width: 100%;"},t=arguments[0];if(void 0===t)throw new Error("printJS expects at least 1 attribute.");switch(b(t)){case"string":e.printable=encodeURI(t),e.fallbackPrintable=e.printable,e.type=arguments[1]||e.type;break;case"object":for(var o in e.printable=t.printable,e.fallbackPrintable=void 0!==t.fallbackPrintable?t.fallbackPrintable:e.printable,e.fallbackPrintable=e.base64?"data:application/pdf;base64,".concat(e.fallbackPrintable):e.fallbackPrintable,e)"printable"!==o&&"fallbackPrintable"!==o&&(e[o]=void 0!==t[o]?t[o]:e[o]);break;default:throw new Error('Unexpected argument type! Expected "string" or "object", got '+b(t))}if(!e.printable)throw new Error("Missing printable information.");if(!e.type||"string"!=typeof e.type||-1===m.indexOf(e.type.toLowerCase()))throw new Error("Invalid print type. Available types are: pdf, html, image and json.");e.showModal&&s.show(e),e.onLoadingStart&&e.onLoadingStart();var i=document.getElementById(e.frameId);i&&i.parentNode.removeChild(i);var r=document.createElement("iframe");switch(n.isFirefox()?r.setAttribute("style","width: 1px; height: 100px; position: fixed; left: 0; top: 0; opacity: 0; border-width: 0; margin: 0; padding: 0"):r.setAttribute("style","visibility: hidden; height: 0; width: 0; position: absolute; border: 0"),r.setAttribute("id",e.frameId),"pdf"!==e.type&&(r.srcdoc="<html><head><title>"+e.documentTitle+"</title>",e.css&&(Array.isArray(e.css)||(e.css=[e.css]),e.css.forEach(function(e){r.srcdoc+='<link rel="stylesheet" href="'+e+'">'})),r.srcdoc+="</head><body></body></html>"),e.type){case"pdf":if(n.isIE())try{console.info("Print.js doesn't support PDF printing in Internet Explorer."),window.open(e.fallbackPrintable,"_blank").focus(),e.onIncompatibleBrowser()}catch(t){e.onError(t)}
6finally{e.showModal&&s.close(),e.onLoadingEnd&&e.onLoadingEnd()}else!function(e,t){if(e.base64){var o=Uint8Array.from(atob(e.printable),function(e){return e.charCodeAt(0)});g(e,t,o)}else{e.printable=/^(blob|http|\/\/)/i.test(e.printable)?e.printable:window.location.origin+("/"!==e.printable.charAt(0)?"/"+e.printable:e.printable);var i=new window.XMLHttpRequest;i.responseType="arraybuffer",i.addEventListener("error",function(){h(e),e.onError(i.statusText)}),i.addEventListener("load",function(){if(-1===[200,201].indexOf(i.status))return h(e),void e.onError(i.statusText);g(e,t,i.response)}),i.open("GET",e.printable,!0),i.send()}}(e,r);break;case"image":!function(e,t){e.printable.constructor!==Array&&(e.printable=[e.printable]),e.printableElement=document.createElement("div"),e.printable.forEach(function(t){var o=document.createElement("img");if(o.setAttribute("style",e.imageStyle),o.src=t,n.isFirefox()){var i=o.src;o.src=i}var r=document.createElement("div");r.appendChild(o),e.printableElement.appendChild(r)}),e.header&&p(e.printableElement,e),u.send(e,t)}(e,r);break;case"html":!function(e,t){var o=document.getElementById(e.printable);o?(e.printableElement=function e(t,o){for(var i=t.cloneNode(),n=Array.prototype.slice.call(t.childNodes),r=0;r<n.length;r++)if(-1===o.ignoreElements.indexOf(n[r].id)){var s=e(n[r],o);i.appendChild(s)}switch(o.scanStyles&&1===t.nodeType&&i.setAttribute("style",function(e,t){for(var o="",i=(document.defaultView||window).getComputedStyle(e,""),n=0;n<i.length;n++)(-1!==t.targetStyles.indexOf("*")||-1!==t.targetStyle.indexOf(i[n])||d(t.targetStyles,i[n]))&&i.getPropertyValue(i[n])&&(o+=i[n]+":"+i.getPropertyValue(i[n])+";");return o+"max-width: "+t.maxWidth+"px !important; font-size: "+t.font_size+" !important;"}(t,o)),t.tagName){case"SELECT":i.value=t.value;break;case"CANVAS":i.getContext("2d").drawImage(t,0,0)}return i}(o,e),e.header&&p(e.printableElement,e),u.send(e,t)):window.console.error("Invalid HTML element id: "+e.printable)}(e,r);break;case"raw-html":!function(e,t){e.printableElement=document.createElement("div"),e.printableElement.setAttribute("style","width:100%"),e.printableElement.innerHTML=e.printable,u.send(e,t)}(e,r);break;case"json":!function(e,t){if("object"!==f(e.printable))throw new Error("Invalid javascript data object (JSON).");if("boolean"!=typeof e.repeatTableHeader)throw new Error("Invalid value for repeatTableHeader attribute (JSON).");if(!e.properties||!Array.isArray(e.properties))throw new Error("Invalid properties array for your JSON data.");e.properties=e.properties.map(function(t){return{field:"object"===f(t)?t.field:t,displayName:"object"===f(t)?t.displayName:t,columnSize:"object"===f(t)&&t.columnSize?t.columnSize+";":100/e.properties.length+"%;"}}),e.printableElement=document.createElement("div"),e.header&&p(e.printableElement,e),e.printableElement.innerHTML+=function(e){var t=e.printable,o=e.properties,i='<table style="border-collapse: collapse; width: 100%;">';e.repeatTableHeader&&(i+="<thead>"),i+="<tr>";for(var n=0;n<o.length;n++)i+='<th style="width:'+o[n].columnSize+";"+e.gridHeaderStyle+'">'+l(o[n].displayName)+"</th>";i+="</tr>",e.repeatTableHeader&&(i+="</thead>"),i+="<tbody>";for(var r=0;r<t.length;r++){i+="<tr>";for(var s=0;s<o.length;s++){var a=t[r],d=o[s].field.split(".");if(d.length>1)for(var p=0;p<d.length;p++)a=a[d[p]];else a=a[o[s].field];i+='<td style="width:'+o[s].columnSize+e.gridStyle+'">'+a+"</td>"}i+="</tr>"}return i+"</tbody></table>"}(e),u.send(e,t)}(e,r)}};"undefined"!=typeof window&&(window.printJS=k),t.default=k}]).default});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.