/*! For license information please see 1.js.LICENSE.txt */ (window.webpackJsonp=window.webpackJsonp||[]).push([[1],Array(25).concat([function(t,e,i){"use strict";i.r(e);var s=Object.freeze({TAB:9,RETURN:13,ALT:18,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,F1:112,SLASH:191,A:65,C:67,F:70,I:73,M:77,P:80,W:87});e.default=s},,function(t,e,i){"use strict";i.r(e);var s,o,r=i(125),n=(i(639),i(1)),a=Object(n.default)(r.default,s,o,!1,null,null,null);a.options.__file="src/components/content/base/index.vue",e.default=a.exports},,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){i(0).register({fullscreen:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},function(t,e,i){i(0).register({"book-first":{width:16,height:16,viewBox:"0 0 24 24",data:''}})},function(t,e,i){i(0).register({"book-last":{width:16,height:16,viewBox:"0 0 24 24",data:''}})},function(t,e,i){i(0).register({search:{width:24,height:24,viewBox:"0 0 24 24",data:''}})},function(t,e,i){"use strict";i.r(e);var s=i(3),o={cTest:!1,id:function(t){return document.getElementById(t)},tag:function(t){return document.getElementsByTagName(t)[0]},tags:function(t){return document.getElementsByTagName(t)},byClass:function(t){return document.getElementsByClassName(t)},add:function(t){return document.createElement(t)},round:function(t,e){e=e||0;for(var i=1,s=0;s'}})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){i(0).register({accessibility:{width:24,height:24,viewBox:"0 0 24 24",data:''}})},,function(t,e,i){"use strict";i.r(e);var s=i(103);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(613),o=i(684),r=i(687),n=i(15),a=i(690),h=i(693),l=i(696),c=i(372);i(56);function d(){return(d=Object.assign||function(t){for(var e=1;e0}},methods:{fitBook:function(t,e){var i=d({},e),s=this.$store.state.book.bookSize,o=this.bookScaleSize,r=this.pagesCount,a=Object(n.fit)({width:2*s.width,height:s.height},i),h=Object(c.default)(r,r,a,.1*a.width),l=(o||100)/100,u=48,p=10;"desktop"===this.layout?(this.hasThickness&&(i.width-=h),i.width-=u):"mobile"===this.layout&&(!this.portrait&&this.hasThickness&&(i.width-=h),i.height-=p);var f=Object(n.fit)(t,i);this.isHardcover&&(f.width=f.width/(this.portrait?1.065:1.03),f.height=f.height/(this.portrait?1.065:1.03));var g=f.height/f.width;return f.width=Math.floor(f.width*l),f.width=f.width%2==0?f.width:f.width+1,f.height=Math.floor(g*f.width),{width:f.width,height:f.height}},resize:function(){var t=window.getComputedStyle(this.$el),e={left:1*t.getPropertyValue("margin-left").split("px")[0],right:1*t.getPropertyValue("margin-right").split("px")[0],top:1*t.getPropertyValue("margin-top").split("px")[0],bottom:1*t.getPropertyValue("margin-bottom").split("px")[0]};this.containerSize={width:this.size.width-e.left-e.right,height:this.size.height-e.top-e.bottom,top:this.size.top+e.top,left:this.size.left+e.left},this.$store.dispatch("workspace/setContainerSize",this.containerSize);var i=this.fitBook(this.originalBookSize,this.containerSize);this.bookSize={width:Math.round(i.width/(this.portrait?1:2)),height:Math.round(i.height),zoomFactor:this.originalBookSize.zoomFactor}},nextPage:function(){this.$store.dispatch(this.isRTLBook?"pager/goBackward":"pager/goForward",{target:"free-space-tap"})},prevPage:function(){this.$store.dispatch(this.isRTLBook?"pager/goForward":"pager/goBackward",{target:"free-space-tap"})},arrowHover:function(t,e){this.$refs.bookComponent&&"function"==typeof this.$refs.bookComponent.arrowHover&&this.$refs.bookComponent.arrowHover(t,e)},setSubstrateStyleHeightTop:function(t,e){this.substrateStyle={height:t,top:e,display:"block"}},afterFade:function(){this.ctrFade="no-fade"}},beforeMount:function(){this.$store.dispatch("workspace/setBookComponent",this.bookComponent),this.$root.$on("forceBookResize",this.resize)},mounted:function(){this.resize(),this.hasPages||this.$root.onPublicationLoad({})},beforeDestroy:function(){this.$root.$off("forceBookResize",this.resize)},watch:{size:"resize",bookScaleSize:function(){this.resize()},originalBookSize:function(){this.resize()},hasThickness:function(){this.resize()},bookComponent:function(t){this.$store.dispatch("pager/setForceRerender",{forceRerender:!1}),this.$store.dispatch("workspace/setBookComponent",t)},pagerState:function(t,e){var i=this;!this.miniState||this.miniFullScreen||t.rightPage===e.rightPage&&t.leftPage===e.leftPage||(this.ctrFade="ctr-fade",this.$nextTick((function(){i.miniFullScreen=!0})))}}}},function(t,e,i){"use strict";i.r(e);var s=i(105);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(106),o=i(632),r=i(373),n=i(375),a=i(377),h=i(381),l=i(383),c=i(385),d=i(389),u=i(391),p=i(392),f=i(393),g=i(8),m=(i(158),i(681),i(682),i(57),i(58),i(28)),v=i.n(m),b={"content-block":r.default,"content-link":n.default,"content-image":a.default,"content-gallery":h.default,"content-gif":l.default,"content-video":c.default};e.default={name:"FlipBook",mixins:[u.default,p.default],props:{containerSize:{type:Object,required:!0},pageSize:{type:Object,required:!0},substrateStyles:{type:Function,default:function(){}}},components:{page:s.default,selectTextPanel:d.default},data:function(){return{status:"ready",zoomFactor:1,scaleFactor:1,scaleOrigin:{x:0,y:0},holderScrollTop:0,holderScrollLeft:0,holderScrollY:0,holderScrollX:0,zoomTimeout:0,addNoteTimeout:0,hideLeftArrow:!1,hideRightArrow:!1,visiblePages:"right",animation:!1,lastWheelTime:0,dragActive:!0,stripesWidth:0,dragging:!1,lastZoomFactor:null,overriddenPagerState:null}},beforeCreate:function(){this.$store.state.book.flipCorner&&this.$store.dispatch("workspace/flipCornerOn")},beforeMount:function(){this.visiblePages=this.getVisiblePages(),this.lastZoomFactor=this.defaultZoomFactor},mounted:function(){var t={};t.bookWidth=2*this.$store.state.pages.size.width,t.bookHeight=this.$store.state.pages.size.height,this.bookHolderElement=this.$el.querySelector("#book-holder"),this.lastZoomBlockID=null,this.flipAdapter=new o.default({bookSize:this.bookSize,state:this.$store,container:this.bookHolderElement,parentVm:this,contentCreator:this.contentCreator,initDomEvents:!this.isEmbed,version:this.version}),this.toggleBlockOnFlip(),this.enableArrowAttract(),this.flipAdapter.on("render:start",this.onRenderStart,this),this.flipAdapter.on("render:finish",this.onRenderFinish,this),this.flipAdapter.on("flip:finished",this.onFlipFinished,this),this.$root.$on("contextMenu:zoomIn",this.zoomByTap),this.$root.$on("contextMenu:zoomOut",this.zoomOut),this.$root.$on("bottomMenu:zoomIn",this.zoomByTap),this.$root.$on("bottomMenu:zoomOut",this.zoomOut),this.$root.$on("zoomPanel",this.changeZoom),this.$root.$on("zoomMove",this.zoomMove),this.$root.$on("wheel",this.onWheel)},beforeDestroy:function(){this.$root.$off("contextMenu:zoomIn",this.zoomByTap),this.$root.$off("contextMenu:zoomOut",this.zoomOut),this.$root.$off("bottomMenu:zoomIn",this.zoomByTap),this.$root.$off("bottomMenu:zoomOut",this.zoomOut),this.$root.$off("zoomPanel",this.changeZoom),this.$root.$off("zoomMove",this.zoomMove),this.$root.$off("wheel",this.onWheel),this.flipAdapter.off("render:start",this.onRenderStart,this),this.flipAdapter.off("render:finish",this.onRenderFinish,this),this.flipAdapter.off("flip:finished",this.onFlipFinished,this),this.flipAdapter.destructor()},watch:{forceRerender:function(){this.forceRerender&&(this.$store.dispatch("pager/setForceRerender",{forceRerender:!1}),this.flipAdapter.resetBook())},pageSize:function(t){var e={width:t.width*this.zoomFactor,height:t.height*this.zoomFactor,zoomFactor:this.zoomFactor};this.$store.dispatch("pages/changePageSize",e)},zoomFactor:function(t,e){var i=this;this.toggleBlockOnFlip();var s={width:this.pageSize.width,height:this.pageSize.height};if(s.width=s.width*t,s.height=s.height*t,s.zoomFactor=t,this.$store.dispatch("pages/changePageSize",s),t>1&&1===e){var o=[this.currentPages.leftPage,this.currentPages.rightPage].filter((function(t){return null!==t})).some((function(t){return i.$store.getters["pages/pageProp"](t,"textBlocks")}),this);this.selectTextEnabled&&o&&this.showSelectTextTip()}},zoomPanel:function(){this.toggleBlockOnFlip()},status:function(t){"ready"!==t?(this.$store.dispatch("pager/freeze",{target:"flip-book-zoom"}),this.$store.dispatch("workspace/setAnimationProgress",{animationType:this.scaleFactor>1&&1===this.zoomFactor?"initialZoom":null})):(this.$store.dispatch("pager/unfreeze",{target:"flip-book-zoom"}),this.$store.dispatch("workspace/unsetAnimationProgress",{animationType:null})),this.toggleBlockOnFlip(),this.refreshScroll(),this.$store.dispatch("workspace/setStatus",t),this.$store.dispatch("workspace/flipCornerOff")},bookSize:function(t){this.flipAdapter.resizeBook(t)},singleMode:function(t){this.zoomOut(!0),this.flipAdapter.setSingleMode(t)},currentPages:function(t,e){var i=this;if(!(t.leftPage===e.leftPage&&t.rightPage===e.rightPage||t.singleMode!==e.singleMode&&t.zoomMode!==e.zoomMode)){this.$store.dispatch("workspace/setArrowAttract",null);var s=function(){var s;i.$store.dispatch("workspace/playFlipSound",{hardcover:e.hardcover||t.hardcover});var o={old:i.getStateInfo(e),new:i.getStateInfo(t)};s=o.new.right.index+o.new.left.index-o.old.right.index-o.old.left.index;var r=i.$store.state.pager.singleMode,n=s>0;r?o.old.differentPages&&n?(o.old.right.wide&&s++,o.old.left.wide&&s--):o.new.differentPages&&!n&&(o.new.left.wide&&s++,o.new.right.wide&&s--):r||(o.old.left.wide&&!o.old.differentPages&&s--,o.new.left.wide&&!o.new.differentPages&&s++,s/=2);var a=Math.abs(s);if(a>0&&a<=2){var h=s>0?o.new.right:o.new.left;"flipComponent"===t.target||"orientation"===t.target||null!==h.page&&!h.last||i.$store.dispatch("pager/setForceFlip",{forceFlip:!0});var l=s>0?"toLeft":"toRight";i.flipAdapter.updateState(l,t.target)}else(a>2||null===o.new.right&&null===o.old.left||null===o.new.left&&null===o.old.right)&&i.flipAdapter.updateState("toPage",t.target)};1!==this.zoomFactor?(this.overriddenPagerState=e,this.zoomOut(!1),this.$once("transition:end",(function(){i.overriddenPagerState=null,setTimeout(s,100)}))):s()}},isWorkspaceFrozen:function(t){t?this.flipAdapter.block(!1):this.flipAdapter.unblock()},workspaceSize:function(t,e){if(1!==this.zoomFactor&&t.width!==e.width&&0!==t.width&&0!==e.width&&null!==t.width&&null!==e.width){var i=e.width/t.width,s=Math.max(this.minZoom,Math.min(this.maxZoom,this.zoomFactor*i));this.setZoom(s,!0)}},isRTLBook:function(t){this.flipAdapter.setRtl(t)},isHardcover:function(t){this.zoomOut(!0),this.flipAdapter.setHardcover(t),this.$root.$emit("forceBookResize")},hardcoverColor:function(t){this.flipAdapter.setHardcoverColor(t)},hasThickness:function(t){this.flipAdapter.setThickness(t)},isOnlyRightPage:function(){var t=this.getVisiblePages();t!==this.visiblePages&&(this.visiblePages=t)},isOnlyLeftPage:function(){var t=this.getVisiblePages();t!==this.visiblePages&&(this.visiblePages=t)},dragActive:function(t){t?this.$refs.bookHolder.$el.classList.remove("nodrag"):this.$refs.bookHolder.$el.classList.add("nodrag")},isMini:function(){this.zoomOut(!0)}},computed:{bookSize:function(){var t,e=this.$store.state;return t=e.book.rightToLeft?"left"===this.visiblePages?-e.pages.size.width:0:this.singleMode||"right"===this.visiblePages?-e.pages.size.width:0,{width:2*this.$store.state.pages.size.width,height:this.$store.state.pages.size.height,top:this.containerSize.top+(this.containerSize.height-e.pages.size.height)/2,left:t}},isOnlyRightPage:function(){var t;return null===(null!==(t=this.overriddenPagerState)&&void 0!==t?t:this.$store.state.pager).leftPage},isOnlyLeftPage:function(){var t;return null===(null!==(t=this.overriddenPagerState)&&void 0!==t?t:this.$store.state.pager).rightPage},bookHolderSize:function(){var t,e,i="both"!==this.visiblePages,s=this.$store.getters["pages/size"],o=this.singleMode,r=this.isHardcover,n=this.containerSize.width,a=this.containerSize.height,h=this.holderScrollLeft,l=this.holderScrollTop,c=this.stripesWidth||0,d=24,u=i||o?s.width:2*s.width;return 1===this.zoomFactor?(t=(n-u)/2,e=(a-s.height)/2):(t=h,e=l),this.$store.dispatch("workspace/setHolderSize",{width:u*(r?1.03:1)+2*c+2*d,height:s.height*(r?1.03:1),left:1===this.zoomFactor?t:0,top:1===this.zoomFactor?e:0}),{width:u,height:s.height,top:e,left:t}},bookHolderStyle:function(){var t=this.bookHolderSize,e=this.containerSize,i=this.zoomFactor,s=this.scaleOrigin,o=this.holderScrollLeft,r=this.holderScrollTop,n=this.scaleFactor,a=this.status,h=this.fastAnimation,l=this.animationSpeed,c=e.height>=t.height?Math.round(t.top)+"px":"0",d=e.width>=t.width?Math.round(t.left)+"px":"0",u={width:t.width+"px",height:t.height+"px",top:1===i?t.top+"px":c,left:1===i?t.left+"px":d};if("animating"===a||"pinch"===a||"scale"===a){u.transformOrigin=s.x+"px "+s.y+"px";var p="translate("+(e.width=.9?t.square=!0:e>1.1?t.portrait=!0:t.landscape=!0),t["drag-active"]=this.dragging,t["single-page"]=this.pageCount<=2,t},pageCount:function(){return this.$store.getters["pages/pagesCount"]},currentPages:function(){var t=this.$store.state.pager,e=t.singleMode?t.rightPage:t.leftPage||t.rightPage,i=this.$store.getters["pages/pageIndexById"](e);return{rightPage:t.rightPage,leftPage:t.leftPage,target:t.lastTarget,singleMode:t.singleMode,zoomMode:t.zoomMode,hardcover:this.isHardcover&&(0===i||i===this.pageCount-1)}},singleMode:function(){return this.$store.state.pager.singleMode},forceRerender:function(){return this.$store.state.pager.forceRerender},holderOriginalWidth:function(){return"both"!==this.visiblePages||this.singleMode?this.pageSize.width:2*this.pageSize.width},isWorkspaceFrozen:function(){return this.$store.state.workspace.freezed},frozenBy:function(){return this.$store.state.workspace.frozenBy?this.$store.state.workspace.frozenBy:null},zoomPanel:function(){return this.$store.state.workspace.zoomPanel},wheelScroll:function(){return this.$store.state.workspace.wheelScroll},workspaceSize:function(){return this.$store.state.workspace.containerSize},minZoom:function(){var t=this.isHardcover&&(this.isFirstPage||this.isLastPage)?1.03:1;return Math.min(this.$store.state.workspace.containerSize.height/(this.$store.state.pages.size.height*t/this.$store.state.pages.size.zoomFactor),this.$store.state.workspace.containerSize.width/(this.$store.state.pages.size.width*t*2/this.$store.state.pages.size.zoomFactor))},maxZoom:function(){return this.$store.state.workspace.maxZoom},animationSpeed:function(){return this.isFirefox?1e3:this.scaleFactor<1?400:600},isMini:function(){return this.$store.state.workspace.mini},isEmbed:function(){return this.$store.state.workspace.isEmbed},version:function(){return this.$store.getters["info/version"]},isMobile:function(){return"mobile"===this.$store.state.workspace.layout},isFirefox:function(){return!0===this.$store.state.workspace.userAgentInfo.browser.firefox},isIE:function(){return!0===this.$store.state.workspace.userAgentInfo.browser.msie},isMac:function(){return!0===this.$store.state.workspace.userAgentInfo.os.mac},isRTLBook:function(){return this.$store.state.book.rightToLeft},isLocaleRtl:function(){return this.$store.getters["i18n/isLocaleRtl"]},isHardcover:function(){return this.$store.getters["book/hasHardcover"]},hardcoverColor:function(){return this.$store.state.book.hardcoverColor},hasThickness:function(){return this.$store.state.book.thickness},isFirstPage:function(){var t=this.$store.getters["pager/isFirstPage"],e=this.$store.getters["pager/isLastPage"];return this.isRTLBook?e:t},isLastPage:function(){var t=this.$store.getters["pager/isLastPage"],e=this.$store.getters["pager/isFirstPage"];return this.isRTLBook?e:t},isSecondPage:function(){var t=this.$store.getters["pager/prevPageId"];return this.$store.getters["pages/isFirstPage"](t)},isSecondToLastPage:function(){var t=this.$store.getters["pager/nextPageId"];return this.$store.getters["pages/isLastPage"](t)},showLeftButtons:function(){var t=!(1!==this.zoomFactor||1!==this.scaleFactor||"html"!==this.version||this.isFirstPage||this.hideLeftArrow&&(this.isRTLBook?this.isSecondToLastPage:this.isSecondPage));return t||this.switchFocus("left","right"),t},showRightButtons:function(){var t=!(1!==this.zoomFactor||1!==this.scaleFactor||"html"!==this.version||this.isLastPage||this.hideRightArrow&&(this.isRTLBook?this.isSecondPage:this.isSecondToLastPage));return t||this.switchFocus("right","left"),t},notesEnabled:function(){return this.$store.state.workspace.components.notes&&!this.isMini},showRightAddNote:function(){return(this.showRightButtons||this.hideRightArrow)&&(!this.isLocaleRtl||this.isFirstPage)},addNoteTitleText:function(){return this.$t("NotesToolWindow.ADD_NOTE")},leftArrowTitle:function(){return this.isRTLBook?this.$t("NavigationPanel.NEXT_PAGE_TIP"):this.$t("NavigationPanel.PREV_PAGE_TIP")},rightArrowTitle:function(){return this.isRTLBook?this.$t("NavigationPanel.PREV_PAGE_TIP"):this.$t("NavigationPanel.NEXT_PAGE_TIP")},leftMostArrowTitle:function(){return this.isRTLBook?this.$t("NavigationPanel.LAST_PAGE_TIP"):this.$t("NavigationPanel.FIRST_PAGE_TIP")},rightMostArrowTitle:function(){return this.isRTLBook?this.$t("NavigationPanel.FIRST_PAGE_TIP"):this.$t("NavigationPanel.LAST_PAGE_TIP")},bookState:function(){return this.flipAdapter},selectTextEnabled:function(){return!this.isMobile&&!this.isIE&&this.$store.state.workspace.components.textSelection},arrowAttract:function(){return this.$store.getters["workspace/arrowAttract"]},eventHandlers:function(){var t=this.isEmbed?{}:{doubletap:this.zoomByTap,pinchstart:this.zoomByPinchStart,pinchmove:this.zoomByPinchMove,pinchend:this.zoomByPinchFinish,pinchcancel:this.zoomByPinchFinish};return t.tap=this.isHardcover?this.clickOnCover:function(){},t}},methods:{clickOnCover:function(t){for(var e=Object(g.composedPath)(t.target),i=0,s=e.length;i1||this.scaleFactor>1)return;this.$store.state.notes.opened&&this.$store.dispatch("notes/setOpenedId",{id:null}),t.deltaY>0?this.$store.dispatch("pager/goForward",{target:"wheel"}):t.deltaY<0&&this.$store.dispatch("pager/goBackward",{target:"wheel"})}this.lastWheelTime=Date.now()}},zoomMove:function(t){if(t&&t.direction)if("ready"===this.status){var e;switch(t.direction){case"left":case"right":e=this.getScrollAmount(t,this.iscroll.x,0,this.containerSize,this.bookHolderSize),this.iscroll.scrollBy(e,0);break;case"up":case"down":e=this.getScrollAmount(t,0,this.iscroll.y,this.containerSize,this.bookHolderSize),this.iscroll.scrollBy(0,e);break;case"drag":this.dragActive=t.active,this.iScrollInit(this.dragActive)}this.iscroll&&(this.holderScrollX=this.iscroll.x,this.holderScrollY=this.iscroll.y,this.$store.dispatch("text/setHolderScroll",{x:this.holderScrollX,y:this.holderScrollY}))}else"drag"===t.direction&&(this.dragActive=t.active)},getVisiblePages:function(){return this.isOnlyRightPage?"right":this.isOnlyLeftPage?"left":"both"},toggleBlockOnFlip:function(){var t=this;1!==this.zoomFactor||this.zoomPanel||"ready"!==this.status?this.flipAdapter.block(!0):setTimeout((function(){t.flipAdapter.unblock()}),20)},refreshScroll:function(){var t=this;this.cancelDragging(),this.$nextTick((function(){t.zoomFactor>1&&"ready"===t.status?t.iScrollInit(t.dragActive):t.iscroll&&(t.holderScrollX=0,t.holderScrollY=0,t.$store.dispatch("text/setHolderScroll",{x:t.holderScrollX,y:t.holderScrollY}),t.iscroll.destroy(),delete t.iscroll)}))},onScrollEnd:function(){this.cancelDragging(),this.holderScrollX=this.iscroll.x,this.holderScrollY=this.iscroll.y,this.$store.dispatch("text/setHolderScroll",{x:this.holderScrollX,y:this.holderScrollY})},onScrollBegin:function(){this.holderScrollX=this.iscroll.x,this.holderScrollY=this.iscroll.y,this.$store.dispatch("text/setHolderScroll",{x:this.holderScrollX,y:this.holderScrollY})},setDragging:function(){1!==this.zoomFactor&&(this.dragging=!0)},cancelDragging:function(){this.dragging=!1},zoomOut:function(t){if(1!==this.zoomFactor){if(this.lastZoomFactor=Math.max(this.zoomFactor,this.defaultZoomFactor),t)return this.status="calculating",this.zoomFactor=1,this.scaleFactor=1,this.refreshScroll(),this.holderScrollLeft=0,this.holderScrollTop=0,this.status="ready",void this.$root.$emit("unzoomed");this.zoomByTap({center:{x:0,y:0}})}},zoomByTap:function(t){if(!(this.zoomTimeout>Date.now()||this.isWorkspaceFrozen||"ready"!==this.status||"pending"!==this.$store.state.pager.flipState||this.isMini)){t||(t={center:{x:this.isRTLBook?this.workspaceSize.width:0,y:0},target:null});var e=["next-button","previous-button","icon-book-next","icon-book-prev","reflex-container"];if(!t.target||!(e.indexOf(t.target.className)>=0||t.target.classList.contains("stripe")||t.target.classList.contains("page-stripe")||"0-0"===t.target.dataset.page||"textarea"===t.target.tagName.toLowerCase())){this.status="calculating";var i,s=!1,o=this.getTappedZoomBlock(t);if("mobile"===this.version&&o.id){s=this.lastZoomBlockID!==o.id;var r=this.bookHolderElement.getBoundingClientRect();i=this.getBlockRect(o.rect,r)}if(this.lastZoomBlockID=s?o.id:null,s){this.updateHolderScroll(!0);var n=1*(.96*this.containerSize.width/i.width).toFixed(2);this.scaleFactor=this.checkScaleFactorForZoom(n,this.zoomFactor,this.maxZoom)}else this.scaleFactor=1!==this.zoomFactor||this.zoomPanel?this.holderOriginalWidth/this.bookHolderSize.width:this.lastZoomFactor;var a={x:t.center.x-this.bookHolderSize.left,y:t.center.y-this.bookHolderSize.top},h=Object(f.getNewCenteredBounds)(this.containerSize,this.bookHolderSize,this.scaleFactor,a);if(s){var l=i.left*this.scaleFactor,c=i.width*this.scaleFactor;h.left=-l+(this.containerSize.width-c)/2}h=Object(f.normalizeBounds)(h,this.containerSize),this.status="animating",this.scaleOrigin=Object(f.getOrigin)(this.bookHolderSize,h,this.scaleFactor),this.newBounds=h,this.refreshScroll(),this.flipAdapter.setZoom(this.scaleFactor*this.zoomFactor>1),this.scaleFactor>1?this.$root.$emit("zoomed"):(this.scaleFactor<1||this.zoomPanel&&1===this.scaleFactor)&&this.$root.$emit("unzoomed"),this.$store.dispatch("workspace/setHighlightTimeout",Date.now()+1e3)}}},zoomByPinchStart:function(t){this.isWorkspaceFrozen||"ready"!==this.status||"inProgress"===this.$store.state.pager.flipState||this.isMini||(this.minScale=this.holderOriginalWidth/this.bookHolderSize.width,this.scaleFactor=1,this.updateHolderScroll(!0),this.scaleOrigin={x:t.center.x-this.bookHolderSize.left,y:t.center.y-this.bookHolderSize.top},this.status="pinch")},zoomByPinchMove:function(t){if("pinch"===this.status){var e=Math.max(t.scale,this.minScale);this.scaleFactor=this.checkScaleFactorForZoom(e,this.zoomFactor,this.maxZoom)}},zoomByPinchFinish:function(t){if("pinch"===this.status){var e=Object(f.getNewBounds)(this.bookHolderSize,this.scaleFactor,{x:this.scaleOrigin.x,y:this.scaleOrigin.y});e=Object(f.normalizeBounds)(e,this.containerSize),this.zoomFactor=1*(this.zoomFactor*this.scaleFactor).toFixed(2),this.holderScrollLeft=1===this.zoomFactor?0:e.left,this.holderScrollTop=1===this.zoomFactor?0:e.top,this.status="ready",this.scaleFactor>1?this.$root.$emit("zoomed"):this.scaleFactor<1&&this.$root.$emit("unzoomed"),this.scaleFactor=1}},setZoom:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2?arguments[2]:void 0;if(!this.isWorkspaceFrozen&&"ready"===this.status){this.scaleFactor=t/this.zoomFactor,this.updateHolderScroll(!1);var s=i||{x:this.workspaceSize.width/2,y:this.workspaceSize.height/2},o={x:s.x-this.bookHolderSize.left,y:s.y-this.bookHolderSize.top},r=Object(f.getNewBounds)(this.bookHolderSize,this.scaleFactor,o);r=Object(f.normalizeBounds)(r,this.containerSize),this.scaleOrigin=Object(f.getOrigin)(this.bookHolderSize,r,this.scaleFactor),this.newBounds=r,this.flipAdapter.setZoom(this.scaleFactor*this.zoomFactor>1),this.fastAnimation=e,this.status="animating",this.refreshScroll()}},setScaleStart:function(){this.minScale=Math.max(this.minZoom/this.zoomFactor,this.holderOriginalWidth/this.bookHolderSize.width),this.maxScale=this.maxZoom/this.zoomFactor,this.scaleFactor=1,this.updateHolderScroll(!1),this.scaleOrigin={x:this.workspaceSize.width/2-this.holderScrollLeft,y:this.workspaceSize.height/2-this.holderScrollTop},this.status="scale"},setScale:function(t){if("scale"===this.status){var e=this.minScale+(this.maxScale-this.minScale)*t,i=Object(f.getNewBounds)(this.bookHolderSize,e,{x:this.workspaceSize.width/2-this.holderScrollLeft,y:this.workspaceSize.height/2-this.holderScrollTop});i=Object(f.normalizeBounds)(i,this.containerSize),this.scaleOrigin=Object(f.getOrigin)(this.bookHolderSize,i,e);var s=Math.min(this.maxScale,Math.max(this.minScale,e));this.scaleFactor=this.checkScaleFactorForZoom(s,this.zoomFactor,this.maxZoom)}},setScaleFinish:function(){if("scale"===this.status){var t=Object(f.getNewBounds)(this.bookHolderSize,this.scaleFactor,this.scaleOrigin);t=Object(f.normalizeBounds)(t,this.containerSize),this.zoomFactor=1*(this.zoomFactor*this.scaleFactor).toFixed(2),this.scaleFactor=1,this.holderScrollLeft=1!==this.zoomFactor?t.left:0,this.holderScrollTop=1!==this.zoomFactor?t.top:0,this.status="ready"}},changeZoom:function(t){switch(t.action){case"setZoom":this.setZoom(t.zoomFactor,t.fast);break;case"startScale":this.setScaleStart();break;case"changeScale":this.setScale(t.scalePosition);break;case"endScale":this.setScaleFinish();break;case"zoomIn":this.zoomByTap();break;case"zoomOut":this.dragActive=!0,this.zoomOut()}},transitionEnd:function(t){t&&"transform"===t.propertyName&&t.target===this.bookHolderElement&&"animating"===this.status&&(this.fastAnimation=!1,this.lastZoomFactor=Math.max(this.zoomFactor,this.defaultZoomFactor),this.zoomFactor=1*(this.zoomFactor*this.scaleFactor).toFixed(2),this.scaleFactor=1,this.holderScrollLeft=1===this.zoomFactor?0:this.newBounds.left,this.holderScrollTop=1===this.zoomFactor?0:this.newBounds.top,this.status="ready",this.$emit("transition:end"))},updateHolderScroll:function(t){t&&1===this.zoomFactor||(this.containerSize.widthDate.now()||(this.zoomTimeout=Date.now()+500,this.$store.dispatch(this.isRTLBook?"pager/goBackward":"pager/goForward",{target:"nav-arrow-tap"}))},prevPage:function(){this.addNoteTimeout>Date.now()||(this.zoomTimeout=Date.now()+500,this.$store.dispatch(this.isRTLBook?"pager/goForward":"pager/goBackward",{target:"nav-arrow-tap"}))},lastPage:function(){this.zoomTimeout=Date.now()+500,this.isRTLBook?this.$store.dispatch("pager/goToFirst",{target:"nav-first"}):this.$store.dispatch("pager/goToLast",{target:"nav-last"})},firstPage:function(){this.zoomTimeout=Date.now()+500,this.isRTLBook?this.$store.dispatch("pager/goToLast",{target:"nav-last"}):this.$store.dispatch("pager/goToFirst",{target:"nav-first"})},arrowHover:function(t,e){e?this.$el.classList.add(t+"-highlighted"):this.$el.classList.remove(t+"-highlighted")},btnAddNote:function(t){this.zoomTimeout=Date.now()+500,this.addNoteTimeout=Date.now()+500;var e="left"===t&&!this.isRTLBook||"right"===t&&this.isRTLBook?this.currentPages.leftPage:this.currentPages.rightPage,i="right"===t&&this.currentPages.leftPage===this.currentPages.rightPage;this.$store.dispatch("notes/addNote",{pageId:e,wideRight:i})},iScrollInit:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];1!==this.zoomFactor&&(this.iscroll?(this.holderScrollX=this.iscroll.x,this.holderScrollY=this.iscroll.y,this.iscroll.off("beforeScrollStart",this.setDragging),this.iscroll.off("scrollCancel",this.cancelDragging),this.iscroll.off("scroll",this.onScrollBegin),this.iscroll.off("scrollEnd",this.onScrollEnd),this.iscroll.destroy(),delete this.iscroll):(this.holderScrollX=this.containerSize.width=t.length?{done:!0}:{done:!1,value:t[s++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,n=!0,a=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return n=t.done,t},e:function(t){a=!0,r=t},f:function(){try{n||null==i.return||i.return()}finally{if(a)throw r}}}}function f(t,e){if(t){if("string"==typeof t)return g(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?g(t,e):void 0}}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=new Array(e);i0&&this.$emit("content:changed"),this.refreshCache()},isResizing:function(t){this.$emit("resize:"+(t?"start":"end")),this.refreshCache(),t?(clearTimeout(this.highlightTimeout),clearTimeout(this.highlightOffTimeout),this.isHighlighted=!1):this.checkHighlight()},isPreloaderShown:function(t){t||this.$emit("preloader:off",this)},contentFreezed:function(t){this.refreshCache(),t?this.cancelResize("freezed",!0):(this.resizeCancelled=!1,this.updateCanvasDebounced(!1))},preloaderVisible:function(t,e){this.refreshCache(),this.isCurrent&&!t&&e&&this.$root.$emit("pageLoaded")},backgrounds:function(){this.refreshCache()},backgroundsCache:function(){this.updateCanvasDebounced(!0)},changeProperty:function(t){t.pageID===this.pageId&&this.getPropertiesDebounced()},apiChange:function(){this.getAPIProperties()}},created:function(){var t=this;this.getPropertiesDebounced=Object(s.debounce)((function(){t.getProperties()}),100),this.updateCanvasDebounced=Object(s.debounce)((function(e){e&&(t.canvasUpdated=!1),t.updateCanvas()}),1e3),this.getOnceProperties(),this.getAPIProperties(),this.getProperties(),this.registerPage(),this.loadPending||(this.loadPending=!0,this.alreadyLoaded=!0,setTimeout((function(){t.getProperties()}),500)),this.isLoading=this.rawIsLoading,this.$root.$on("render:finish",this.getIsCurrent),this.getIsCurrent();var e=this.$store.getters["pages/isFirstPage"](this.pageId),i=this.$store.getters["pages/isLastPage"](this.pageId);this.hideLeftStripe=this.isRTLBook?i:e,this.hideRightStripe=this.isRTLBook?e:i;var o=this.$store.state.workspace.userAgentInfo;o.browser.facebook&&o.os.android&&(this.noImageCache=!0)},mounted:function(){var t=this;this.refreshCache(),this.$root.$on("zoomMove",this.zoomMove),this.getContent(),setTimeout((function(){t.isCurrent&&!t.isReady&&t.$root.$emit("pageLoaded")}),1e3)},beforeUpdate:function(){this.contentItemsReady>this.content.length&&(this.contentItemsReady=this.content.length)},beforeDestroy:function(){this.cancelResize("destroyed",!0),this.$root.$off("render:finish",this.getIsCurrent),this.$root.$off("zoomMove",this.zoomMove),clearTimeout(this.highlightTimeout),clearTimeout(this.highlightOffTimeout),this.$refs.bgImage.onload=null,this.$refs.bgImage.onerror=null,this.$refs.bgImage.src="",this.$refs.bgSVG&&(this.$refs.bgSVG.src=""),this.deregisterPage(),this.noImageCache&&this.$store.dispatch("pages/resetPageResources",{pageID:this.pageId})},methods:{bgCacheImageLoaded:function(t){this.isZoomed&&t===this.substrateUrl&&this.setCursor("inherit")},setCursor:function(t){this.isMobile||(this.$el.style.cursor=t)},getIsCurrent:function(){var t,e=this.$store.getters["pager/state"],i=this.pageId,s=this.isWide,o=this.pageSide;if(e.singleMode){var r=this.isRTLBook?"left":"right",n=this.isRTLBook?"right":"left";t=e.rightPage===e.leftPage?o===r:i===e.rightPage&&(!s||o===n)}else t=i===e.leftPage||i===e.rightPage;this.isCurrent=t},getContent:function(){this.pageContent=this.$store.getters["pages/pageContent"](this.pageId)},getProperties:function(){this.isSVGSupported=this.$store.getters["pages/isSVGSupported"](this.pageId),this.thumbnailUrl=this.$store.getters["pages/pageProp"](this.pageId,"thumbnailUrl"),this.textUrl=this.$store.getters["pages/pageProp"](this.pageId,"textUrl"),this.substrateUrl=this.$store.getters["pages/pageProp"](this.pageId,"substrateUrl"),this.isReady=this.$store.getters["pages/pageProp"](this.pageId,"status")===d.default.READY,this.loadPending=this.$store.getters["pages/pageProp"](this.pageId,"loadPending"),this.hasError=this.$store.getters["pages/hasError"](this.pageId)},getOnceProperties:function(){this.propWidth=this.$store.getters["pages/pageProp"](this.pageId,"width"),this.propHeight=this.$store.getters["pages/pageProp"](this.pageId,"height")},getAPIProperties:function(){this.isWide=this.$store.getters["pages/pageProp"](this.pageId,"wide"),this.isStub=this.$store.getters["pages/pageProp"](this.pageId,"stub"),this.backgroundColor=this.enforceTransparentBg?null:this.$store.getters["pages/pageProp"](this.pageId,"backgroundColor"),this.isOutsideHardcover="flip-book"===this.bookComponent&&this.$store.getters["book/hasHardcover"]&&(this.$store.getters["pages/isLastPage"](this.pageId)&&this.$store.getters["pages/pageIndexById"](this.pageId)%2!=0&&!this.isWide&&!this.$store.getters["pager/state"].singleMode||this.$store.getters["pages/isFirstPage"](this.pageId))},refreshCache:function(){var t=this;this.contentFreezed||this.$nextTick((function(){t.preloaderVisibleCache=t.preloaderVisible,t.backgroundsCache=t.backgrounds,t.vectorLayerCache=t.vectorLayer,t.isLoadingCache=t.isLoading,t.updatePendingCache=t.updatePending}))},isVisible:function(t){if(!1===this.isWide||this.isWide&&"both"===this.pageSide)return!0;var e=this.$store.getters["pages/pageProp"](this.pageId,"width");return this.isWide&&"left"===this.pageSide?e/2>t.rect[2]:this.isWide&&"right"===this.pageSide?e/2t.rect[2]&&e/2.95*e.width&&(this.rightStripeTap(),!0)},onMouseDown:function(){var t;"input"===(null===(t=document.activeElement)||void 0===t?void 0:t.tagName.toLowerCase())&&document.activeElement.blur()},onContentTap:function(t){var e=this;if(!this.isWorkspaceFrozen){var i=null!==this.$store.state.text.selectionRect;i&&this.$store.dispatch("text/reset");var o=t.target.classList;if(o)if(o.contains("link"))this.tapped=!0,Date.now()>this.tapTimeout&&(setTimeout((function(){e.linkTo(t.target)}),this.$store.state.workspace.doubletapInterval+1),this.tapTimeout=Date.now()+this.$store.state.workspace.doubletapInterval),setTimeout((function(){e.tapped=!1}),500);else if("desktop"===this.layout&&!i){var r=Object(s.classPath)(t.target);if(!o.contains("block")&&!o.contains("text-block")&&-1===r.indexOf("content")&&this.checkPageStripes(t))return;(o.contains("content")||o.contains("block")||o.contains("text-block")||o.contains("selecttext")||o.contains("select-text-canvas"))&&setTimeout((function(){if(!(e.$store.state.workspace.highlightTimeout+350>Date.now())){clearTimeout(e.highlightTimeout),clearTimeout(e.highlightOffTimeout);var t=e.getSpreadTwin();null!==t&&(clearTimeout(t.highlightTimeout),clearTimeout(t.highlightOffTimeout),t.isHighlighted=!e.isHighlighted),e.isHighlighted=!e.isHighlighted,e.$root.$emit("highlight",{action:e.isHighlighted?"on":"off"})}}),350)}}},linkTo:function(t){if("ready"===this.bookStatus){var e=t.getAttribute("data-id"),i=t.getAttribute("data-url");if(e&&!i)this.$store.dispatch("pager/goToPageById",{id:e,target:"link"}),this.$emit("link:click",t),this.$root.$emit("link",{type:"internal",source:"page",pageId:this.pageId,pageToId:e});else if(i){var s=!1===this.checkUrl(i);if(this.$root.$emit("link",{type:"external",pageId:this.pageId,url:i,target:t.target,source:null,isBlacklisted:s}),s)return;t.setAttribute("href",i),t.click(),t.removeAttribute("href"),this.$emit("link:click",t)}}},checkUrl:function(t){for(var e=0;e0?this.$once("loaded",(function(){this.checkHighlight()})):this.isPreloaderShown?this.$once("preloader:off",(function(){this.checkHighlight()})):0===this.content.length&&this.$once("content:changed",(function(){this.checkHighlight()})):(this.autoHighlight&&this.highlightContent(),this.$emit("highlight"))}},highlightContent:function(){var t=this,e=this.getSpreadTwin(),i=this.$store.state.pager.singleMode;e&&this.isWide&&!i&&"right"===this.pageSide||(this.highlightTimeout=setTimeout((function(){t.isHighlighted=!0,e&&(e.isHighlighted=!0),t.highlightOffTimeout=setTimeout((function(){t.isHighlighted=!1,e&&(e.isHighlighted=!1)}),500)}),500))},contentItemReady:function(t){"link"!==t.data.type&&this.contentItemsReady++},contentError:function(){this.$store.dispatch("pages/setStatus",{value:d.default.ERROR,pageID:this.pageId})},registerPage:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pageId;this.renderContent&&this.$pageRegistry.registerPage(t,this.pageSide,this)},deregisterPage:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pageId;this.renderContent&&this.$pageRegistry.deregisterPage(t,this.pageSide)},getSpreadTwin:function(){var t=this.$store.getters["pager/state"];return!this.isCurrent||t.singleMode||"both"===this.pageSide?null:this.pageId!==t.leftPage||this.isWide&&"right"===this.pageSide?this.pageId===t.rightPage?this.$pageRegistry.getPageComponent(t.leftPage,"left"):null:this.$pageRegistry.getPageComponent(t.rightPage,"right")},updateCanvas:function(){var t=this;if(!("desktop"!==this.layout||!this.isCurrent||this.isZoomed||this.canvasUpdated||this.contentFreezed||this.devicePixelRatio>1.5)&&(!this.isWide||"right"!==this.pageSide)&&this.backgroundsCache&&this.backgroundsCache[0]){this.cancelResize("new resize",!1),this.resizeCancelled=!1;var e=new Image;this.crossOrigin&&(e.crossOrigin=this.crossOrigin),e.onload=function(){var i=document.createElement("canvas"),s=i.getContext("2d");if(i.style.transform="translateZ(0)",e.onload=null,!t.resizeCancelled)if(t.backgroundsCache.length>1){var o=new Image;t.crossOrigin&&(o.crossOrigin=t.crossOrigin),o.onload=function(){o.onload=null,t.resizeCancelled||(i.width=o.width,i.height=o.height,s.drawImage(e,0,0,o.width,o.height),s.drawImage(o,0,0,o.width,o.height),o.src="",o=null,e=null,t.resizeCanvas(i,t.$refs.bgImage),s=null,i=null)},o.src=t.backgroundsCache[1]}else i.width=e.width,i.height=e.height,s.drawImage(e,0,0,e.width,e.height),e=null,t.resizeCanvas(i,t.$refs.bgImage),s=null,i=null},e.src=this.backgroundsCache[0]}},skipResize:function(){var t=this.$store.state.workspace.userAgentInfo.browser;return t.firefox||t.ie||t.msie||t.msedge},resizeCanvas:function(t,e){var i=this;if(!this.skipResize()&&!this.resizeCancelled){this.cancelResize("new resize",!1);var s=new Date,o=s.getHours()+":"+s.getMinutes()+":"+s.getSeconds()+"."+s.getMilliseconds(),r=this.pageId+"_"+o,n=document.createElement("canvas");this.cancelResize=function(t,e){try{e&&(i.resizeCancelled=!0),r&&i.bookElement.cancelResize&&i.bookElement.cancelResize(r),n=null}catch(s){i.$emit("error",s)}},n.style.transform="translateZ(0)",n.width=this.contentSize.width*(this.isWide&&"both"!==this.pageSide?2:1)*this.devicePixelRatio,n.height=this.contentSize.height*this.devicePixelRatio,n.getContext("2d").drawImage(t,0,0,n.width,n.height);var a={unsharpAmount:80,unsharpRadius:.6,unsharpThreshold:166,quality:3,alpha:!0};if(!this.resizeCancelled&&this.bookElement.resizePage){var h=this;this.bookElement.resizePage(t,n,a,r,(function(i){if(i){var s=i.toDataURL();if(h.setResizedImg(e,h,s),h.isWide){var o=h.getSpreadTwin();null!==o&&h.setResizedImg(o.$refs.bgImage,o,s)}}r=null,t=null,n=null}))}}},setResizedImg:function(t,e,i){if(t){t.onload=function(){t.onload=null,setTimeout((function(){e.resizeCancelled||(e.canvasUpdated=!0)}),500)};var s=window.MSInputMethodContext&&document.documentMode?1e4:6500;i.length>s&&(t.src=i)}},leftStripeTap:function(){this.$store.dispatch(this.isRTLBook?"pager/goForward":"pager/goBackward",{target:"page-edge-tap"})},rightStripeTap:function(){this.$store.dispatch(this.isRTLBook?"pager/goBackward":"pager/goForward",{target:"page-edge-tap"})},arrowHover:function(t,e){"function"==typeof this.bookElement.arrowHover&&this.bookElement.arrowHover(t,e)},zoomMove:function(t){"drag"===t.direction&&(this.contentActive=!!t.active)},isPointInSelection:function(t){var e=this.$el.querySelector(".select-text-canvas");if(!e)return!1;var i=e.getBoundingClientRect(),s=t.clientX-i.left,o=t.clientY-i.top,r=e.getContext("2d").getImageData(s,o,1,1).data;return r[0]+r[1]+r[2]+r[3]!==0}},computed:{zoomInBlur:function(){return!1},showPreloaderContainer:function(){return!this.isStub&&(this.thDebounced||this.preloaderVisibleCache)},showSpinner:function(){return(this.thDebounced||this.isLoadingCache||this.updatePendingCache)&&!this.contentFreezed&&this.isReady&&!this.hasError},showThumbnail:function(){return this.isReady&&!this.hasError},showHighlights:function(){return this.isCurrent&&!this.contentFreezed&&(this.isMobile||this.isSearchOpened)&&!this.showPreloaderContainer},animationInProgress:function(){return this.$store.getters["workspace/animationInProgress"]},flipCornerEnabled:function(){var t=this.$store.getters["pages/pagesCount"],e=this.$store.getters["pager/state"].rightPage,i=this.$store.getters["pages/pageIndexById"](e);if(0===i){this.isWide&&i++;var s=this.$store.state.workspace.flipCorner&&!this.isOutsideHardcover&&!!e&&t>=i+3;return this.isCurrent&&this.isOutsideHardcover&&this.$store.state.workspace.flipCorner&&this.$store.dispatch("workspace/flipCornerOff"),s&&(!this.isRTLBook&&"right"===this.pageSide||this.isRTLBook&&"left"===this.pageSide)&&!this.$store.getters["pager/state"].singleMode&&!this.contentFreezed&&this.isCurrent&&"flip-book"===this.bookComponent}},bookStatus:function(){return this.bookElement.status||"ready"},isMobile:function(){return"mobile"===this.$store.state.workspace.layout},isIE:function(){return!0===this.$store.state.workspace.userAgentInfo.browser.msie},bookComponent:function(){return this.$store.state.workspace.bookComponent},bookElement:function(){return"slide-book"===this.bookComponent?this.$parent.$parent:this.$parent},rawIsLoading:function(){return 0===this.$store.state.pages.size.width||null===this.$store.state.pages.size.width||!(this.isStub||!this.isReady||this.hasError)&&(this.contentItemsReady.5,dark:this.backgroundLuma<=.5,tapped:this.tapped,"left-stripe":"flip-book"===this.bookComponent&&"left"===this.pageSide&&!this.hideLeftStripe,"right-stripe":"flip-book"===this.bookComponent&&"right"===this.pageSide&&!this.hideRightStripe,"selecttext-stripe":"flip-book"===this.bookComponent&&.9*this.pageSize.width<=this.contentSize.width,"content-inactive":!this.contentActive}},preloaderVisible:function(){return!this.isStub&&(this.isLoading||!this.isReady||this.hasError)},preloaderHeader:function(){return this.hasError?this.$t("Other.PAGE_ERROR_TITLE"):null},preloaderText:function(){return this.hasError?this.$t("Other.PAGE_ERROR_MESSAGE"):this.isReady?null:this.$t("Other.CONVERTING_PAGE")},vectorLayer:function(){return this.pageId&&this.isReady&&!this.hasError&&this.isSVGSupported?this.textUrl:null},backgrounds:function(){if(!this.pageId||!this.isReady||this.hasError)return[];var t=this.enforceTransparentBg?this.whitePixelUrl:this.stubUrl,e=this.substrateUrl,i=this.textUrl,s=this.isSVGSupported,o=[];if(this.isStub)o.push(t);else{var r=i;e&&o.push(e),r&&!s&&o.push(r)}return o},backgroundLuma:function(){return this.backgroundColor?Object(o.calculateLuma)(Object(o.parseColor)(this.backgroundColor)):1},isZoomed:function(){return this.$store.state.pages.size.zoomFactor>1},selectTextEnabled:function(){return!this.isIE&&this.$store.state.workspace.components.textSelection},mobileShowEffectPass:function(){return this.isMobile&&this.$store.state.text.pageID&&this.pageId===this.$store.state.text.pageID&&(this.pageSide===this.$store.state.text.pageSide||this.isCrossWide)},dir:function(){return this.$store.getters["i18n/isLocaleRtl"]?"rtl":"ltr"},contentPagesArray:function(){return this.$store.getters["content/pagesArray"]},content:function(){if(!this.pageId||!this.isReady||this.hasError||!this.renderContent||this.isStub)return[];var t=this.contentSize.scaleRatio;if(t<=0)return[];var e=this.pageContent;if(!e)return[];for(var i=this.pageId,s=this.pageSide,o=this.isWide,r=[],n=0;n8&&(e=8),t.filter="blur("+e+"px)",t},contentStyle:function(){var t=this.contentSize,e=this.isWide&&"both"!==this.pageSide,i=this.contentCrop?0:(this.pageSize.width-t.width)/(e?1:2),s=this.contentCrop?0:(this.pageSize.height-t.height)/2,o={width:t.width*(e?2:1)+"px",height:t.height+"px"};return this.zoomInBlur&&(o.filter="blur(2px)"),"right"===this.pageSide&&(o.right="0",i&&(o.marginRight=i.toFixed(0)+"px")),i&&"right"!==this.pageSide&&(o.marginLeft=i.toFixed(0)+"px"),s&&(o.marginTop=s.toFixed(0)+"px"),o},notesArray:function(){for(var t=[],e=this.$store.state.notes.items,i=0,s=e.length;ithis.$store.state.book.bookSize.width)&&t.push(e[i]):t.push(e[i]));return t}}}},function(t,e,i){"use strict";i.r(e);var s=i(110);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(366);e.default={name:"select-text",mixins:[s.default],data:function(){return{isActive:!1,highLightBlocks:!1,isDragging:!0}},mounted:function(){var t=this;this.$nextTick((function(){t.getPageRect()})),this.$parent.$parent.$on("highlight",this.highlight),this.$root.$on("zoomMove",this.zoomMove),this.effectOn&&this.$el.addEventListener("mousemove",this.checkMousePosition)},beforeDestroy:function(){this.resetContext(),this.$parent.$parent.$off("highlight",this.highlight),this.$root.$off("zoomMove",this.zoomMove),this.$el.removeEventListener("mousemove",this.checkMousePosition)},methods:{highlight:function(){var t=this;this.effectOn&&(this.panEnd(),this.showEffect=!0,setTimeout((function(){t.showEffect=!1,t.$store.dispatch("text/setEffect",!1)}),3e3))},test:function(t){t.srcEvent.shiftKey&&t.srcEvent.altKey&&(t.srcEvent.ctrlKey||t.srcEvent.metaKey)&&(this.highLightBlocks=!this.highLightBlocks)},reset:function(t){this.effectOn||(this.$el.removeEventListener("mousemove",this.checkMousePosition),this.$root.$emit("selectText:hidePanel"),t&&"panstart"===t.type&&(this.isActive=!0),this.$store.dispatch("text/reset"))},pan:function(t){if(this.pageRect&&this.isLoaded&&this.isCurrent&&(!this.isZoomed||!this.isDragging)&&this.isActive&&!this.stopSelection&&!this.effectOn&&!this.animationInProgress){var e={top:t.deltaY>0?t.center.y-t.deltaY-this.pageRect.top:t.center.y-this.pageRect.top,left:t.deltaX>0?t.center.x-t.deltaX-this.pageRect.left:t.center.x-this.pageRect.left,width:Math.abs(t.deltaX),height:Math.abs(t.deltaY),offsetX:this.containerSize.offsetX,offsetY:this.containerSize.offsetY,cursorHSide:t.deltaX>0?"right":"left",cursorVSide:t.deltaY>0?"bottom":"top"};if(e.top=e.top/this.containerSize.scaleRatio.h,e.left/=this.containerSize.scaleRatio.w,e.width/=this.containerSize.scaleRatio.w,e.height/=this.containerSize.scaleRatio.h,this.isWide&&!this.isCrossWide){if("right"===e.cursorHSide&&"left"===this.pageSide&&e.left+e.width>this.containerSize.width/this.containerSize.scaleRatio.w)return;if("left"===e.cursorHSide&&"right"===this.pageSide&&e.left0&&(t.$root.$emit("selectText",{action:"select",pageId:t.pageId,text:t.$store.state.text.selectedText}),t.$root.$emit("selectText:showPanel"),t.$el.addEventListener("mousemove",t.checkMousePosition))}),100)},zoomMove:function(t){"drag"===t.direction&&(this.isDragging=t.active)},checkMousePosition:function(t){this.$parent.$parent.isPointInSelection(t)?this.$root.$emit("selectText:showPanel"):this.$root.$emit("selectText:hidePanel",{forceHide:!1})}},watch:{isActive:function(t){this.$store.dispatch("text/setInProgressSelection",t)},pageSize:function(){var t=this;this.$root.$emit("selectText:hidePanel"),this.$nextTick((function(){t.getPageRect()}))},sidebar:function(){var t=this;this.$root.$emit("selectText:hidePanel"),this.$nextTick((function(){t.getPageRect()}))},wsContainerSize:function(){var t=this;this.$root.$emit("selectText:hidePanel"),this.$nextTick((function(){t.getPageRect()}))},scrollPosition:function(){var t=this;this.$nextTick((function(){t.getPageRect()}))},isLoaded:function(t){this.getPageRect()},animationInProgress:function(){this.$store.dispatch("text/reset"),this.$root.$emit("selectText:hidePanel")},pageResize:function(){var t=this;this.$nextTick((function(){t.getPageRect()}))}},computed:{stopSelection:function(){return this.$store.state.text.stopSelection&&this.pageId===this.$store.state.text.pageID&&this.pageSide===this.$store.state.text.pageSide},textBlockSizes:function(){var t=this;return this.finalTree.map((function(e){return{width:Math.ceil(e.width*t.containerSize.scaleRatio.w),height:Math.ceil(e.height*t.containerSize.scaleRatio.h),left:Math.floor(e.left*t.containerSize.scaleRatio.w),top:Math.floor(e.top*t.containerSize.scaleRatio.h)}}))},pageSize:function(){return this.$store.state.pages.size},sidebar:function(){return this.$store.state.sidebar.opened},wsContainerSize:function(){return this.$store.state.workspace.containerSize},scrollPosition:function(){return this.$store.getters["text/holderScroll"]},isZoomed:function(){return this.$store.state.pages.size.zoomFactor>1},animationInProgress:function(){return this.$store.getters["workspace/animationInProgress"]},pageResize:function(){return this.$store.getters["pages/pageProp"](this.pageId,"pageResize")}}}},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(113);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(366);e.default={name:"select-text-mobile",mixins:[s.default],mounted:function(){var t=this;this.$nextTick((function(){t.getPageRect()})),this.$parent.$parent.$on("highlight",this.highlight)},beforeDestroy:function(){this.resetContext(),this.$parent.$parent.$off("highlight",this.highlight)},methods:{highlight:function(){var t=this;this.effectOn&&(this.showEffect=!0,setTimeout((function(){t.showEffect=!1,t.$store.dispatch("text/setEffect",!1)}),3e3))},reset:function(){this.$store.dispatch("text/reset")}},watch:{containerSize:function(){this.getAndParseXML()},animationInProgress:function(){this.$store.dispatch("text/reset")}},computed:{animationInProgress:function(){return this.$store.getters["workspace/animationInProgress"]}}}},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(116);e.default=s.default},function(t,e,i){"use strict";i.r(e);i(626),i(369);var s=i(8),o=i(60),r=i(23),n=i.n(r);e.default={name:"Note",props:{data:{type:Object,default:function(){return{}}},size:{type:Object,default:function(){return{}}},side:{type:String,default:""},isWide:Boolean,isOutsideHardcover:Boolean},data:function(){return{state:"mini",offsetX:0,offsetY:0,deltaX:0,deltaY:0,minDeltaX:0,minDeltaY:0,maxDeltaX:0,maxDeltaY:0,onMove:!1,position:"absolute",leftOffset:16,rightOffset:16,topOffset:28,bottomOffset:4,ieOffsetX:0,ieOffsetY:0,rectLeft:-115,rectTop:4,rectHeight:0,rectState:"edit",deleteDialog:!1}},computed:{isIE:function(){return!!this.$store.state.workspace.userAgentInfo.browser.msie},showRect:function(){return this.isOpened&&"mini"===this.state},isOpened:function(){return this.$store.state.notes.opened===this.data.id},isFirstPage:function(){return this.$store.getters["pages/isFirstPage"](this.data.page)},isLastPage:function(){return this.$store.getters["pages/isLastPage"](this.data.page)},scale:function(){return{w:this.size.width/this.$store.state.book.bookSize.width/("both"===this.side?2:1),h:this.size.height/this.$store.state.book.bookSize.height}},noteStyle:function(){var t=0,e=0,i=0,s=0;if(this.isWide&&"right"===this.side&&(t=-this.size.width),this.onMove){if("right"===this.side){var o=this.slideMode&&(this.isFirstPage&&!this.rtl||this.isLastPage&&this.rtl);this.isOutsideHardcover||o||(e=this.size.width)}if("left"===this.side)this.slideMode&&(this.isLastPage&&!this.rtl||this.isFirstPage&&this.rtl)||(i=this.size.width);this.slideMode&&(this.pagerSlideMode&&"both"!==this.side||this.pagerSingleMode)&&(e=0,i=this.size.width)}this.showRect&&(s=1e4);var r=this.data.pX*this.scale.w+this.deltaX+e+t;r=Math.max(this.leftOffset,Math.min(this.size.width+e+i-this.rightOffset,r));var n=this.data.pY*this.scale.h+this.deltaY;return n=Math.max(this.topOffset,Math.min(this.size.height-this.bottomOffset,n)),{"z-index":this.data.id+1e4+s,position:this.position,top:n+this.ieOffsetY+"px",left:r+this.ieOffsetX+"px"}},rectStyle:function(){var t={top:this.rectTop+"px",left:this.rectLeft+"px"};return this.miniRect&&(t.width=this.size.width-8+"px",t.height=this.rectHeight+"px"),t},rectClass:function(){var t=["note-rect",this.rectState];return this.miniRect&&t.push("mini-rect"),t},miniRect:function(){return this.size.width<238},noteBodyStyle:function(){var t={};return this.miniRect&&(t.width=this.size.width-18+"px",t.height=this.rectHeight-10+"px"),t},iconClass:function(){var t=["note-icon",this.data.color,this.state];return this.isOpened&&t.push("opened"),t},colorSetClass:function(){return["note-color-set",this.data.color]},formattedTime:function(){var t=new Date(Date.now()),e=new Date(this.data.date),i=e.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});return t.getDay()===e.getDay()&&t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()||(i=e.toLocaleDateString()+", "+i),i},dir:function(){return this.$store.getters["i18n/isLocaleRtl"]?"rtl":"ltr"},rtl:function(){return this.$store.state.book.rightToLeft},placeholderText:function(){return this.$i18n.t("Notes.PLACEHOLDER")},dialogDeleteText:function(){return this.$i18n.t("Notes.DIALOG_DELETE_TEXT")},deleteTip:function(){return this.$i18n.t("Notes.DELETE_TIP")},deleteButton:function(){return this.$i18n.t("AlertWindow.BUTTON_DELETE")},cancelButton:function(){return this.$i18n.t("AlertWindow.BUTTON_CANCEL")},slideMode:function(){return"slide-book"===this.$store.state.workspace.bookComponent},pagerSlideMode:function(){return this.$store.state.pager.slideMode},pagerSingleMode:function(){return this.$store.state.pager.singleMode},currentBookHolder:function(){return this.slideMode?document.querySelector(".slide-wrapper.current .spread-wrapper"):document.getElementById("book-holder")}},watch:{isOpened:function(t){var e=this;t?(this.showEditor(),setTimeout((function(){"edit"===e.rectState&&e.forceFocus()}),100)):this.hideEditor()}},mounted:function(){this.$refs.icon.addEventListener("mousedown",this.iconMouseDown,!0),this.isOpened&&this.showEditor(),this.data.new&&this.$store.dispatch("notes/setOpenedId",{id:this.data.id}),this.parentEl=this.$el.parentElement},beforeDestroy:function(){this.$refs.icon.removeEventListener("mousedown",this.iconMouseDown,!0),this.removeEditorEventListeners()},methods:{onNoteClick:function(t){var e=this;this.isFrozenOrNotReady||Object(s.composedPath)(t.target).some((function(t){return t===e.$refs.icon}))&&(this.isOpened?this.hideEditor():this.showEditor())},iconMouseDown:function(t){0===t.button&&(t.stopPropagation(),this.offsetX=t.pageX,this.offsetY=t.pageY,this.$store.dispatch("notes/setMoving",!0),document.addEventListener("mousemove",this.iconMouseMove),document.addEventListener("mouseup",this.iconMouseUp))},iconMouseMove:function(t){if(t.stopPropagation(),!this.onMove){if(this.moveElementToSpreadNotes(),this.slideMode&&!this.pagerSingleMode)this.minDeltaX=this.leftOffset-this.data.pX*this.scale.w,this.maxDeltaX=this.size.width-this.data.pX*this.scale.w-this.rightOffset;else if("left"===this.side){this.minDeltaX=this.leftOffset-this.data.pX*this.scale.w;var e=!this.isWide&&(this.isLastPage&&!this.rtl||this.isFirstPage&&this.rtl)?1:2;this.maxDeltaX=this.size.width*e-this.data.pX*this.scale.w-this.rightOffset}else{var i=!this.isWide&&(this.isFirstPage&&!this.rtl||this.isLastPage&&this.rtl)?0:this.size.width;this.minDeltaX=(this.isWide?this.size.width:0)+this.leftOffset-i-this.data.pX*this.scale.w,this.maxDeltaX=this.size.width*(this.isWide?2:1)-this.data.pX*this.scale.w-this.rightOffset}if(this.minDeltaY=this.topOffset-this.data.pY*this.scale.h,this.maxDeltaY=(this.size.height/this.scale.h-this.data.pY)*this.scale.h-this.bottomOffset,!this.isOutsideHardcover){if(this.isIE){var s=this.currentBookHolder.getBoundingClientRect(),o=this.getIEDeltaOffset();this.ieOffsetX=s.left-o,this.ieOffsetY=s.top}this.position="fixed"}this.onMove=!0,this.state="move"}this.deltaX=Math.max(this.minDeltaX,Math.min(t.pageX-this.offsetX,this.maxDeltaX)),this.deltaY=Math.max(this.minDeltaY,Math.min(t.pageY-this.offsetY,this.maxDeltaY))},getIEDeltaOffset:function(){return this.slideMode&&this.pagerSlideMode?0:!this.isWide&&this.isLastPage&&this.rtl&&this.$store.state.pager.rightPage!==this.data.page||!this.isWide&&this.isFirstPage&&!this.rtl?this.size.width:0},iconMouseUp:function(){var t=this;if(document.removeEventListener("mousemove",this.iconMouseMove),document.removeEventListener("mouseup",this.iconMouseUp),this.$store.dispatch("notes/setMoving",!1),this.moveElementToPageContainer(),this.onMove){this.isIE&&(this.ieOffsetX=0,this.ieOffsetY=0),this.onMove=!1,this.position="absolute";var e=this.data.page,i=this.deltaX/this.scale.w+this.data.pX;this.isWide||("left"===this.side?i>this.size.width/this.scale.w&&(i-=this.size.width/this.scale.w,this.rtl?e--:e++):i<0&&(i+=this.size.width/this.scale.w,this.rtl?e++:e--),ithis.size.width/this.scale.w-this.rightOffset/this.scale.w&&(i=this.size.width/this.scale.w-this.rightOffset/this.scale.w)),this.$store.dispatch("notes/moveNote",{id:this.data.id,page:e.toString(),pX:Math.round(100*i)/100,pY:Math.round(100*(this.deltaY/this.scale.h+this.data.pY))/100}),this.state="mini",this.deltaX=0,this.deltaY=0,this.updateEditorParams(),setTimeout((function(){"edit"===t.rectState&&t.forceFocus()}),100)}},showEditor:function(){var t=this;this.updateEditorParams(),this.$store.dispatch("notes/setOpenedId",{id:this.data.id}),this.$store.dispatch("notes/setActiveItemById",this.data.id),this.$nextTick((function(){t.setTextareaDir()})),document.addEventListener("mousedown",this.hideEditorClick,!0),document.addEventListener("keydown",this.checkKeydown)},hideEditor:function(){document.activeElement===this.$refs.text&&this.$refs.text.blur(),this.saveText(),this.$store.state.notes.opened===this.data.id&&this.$store.dispatch("notes/setOpenedId",{id:null}),this.$store.dispatch("workspace/setHighlightTimeout",Date.now()+300),this.removeEditorEventListeners()},updateEditorParams:function(){this.isWide&&"right"===this.side?this.miniRect||this.data.pX*this.scale.w-this.size.width<119?this.rectLeft=-this.data.pX*this.scale.w+4+this.size.width:2*this.size.width-this.data.pX*this.scale.w<119?this.rectLeft=2*this.size.width-this.data.pX*this.scale.w-234:this.rectLeft=-115:this.miniRect||this.data.pX*this.scale.w<119?this.rectLeft=-this.data.pX*this.scale.w+4:this.size.width-this.data.pX*this.scale.w<119?this.rectLeft=this.size.width-this.data.pX*this.scale.w-234:this.rectLeft=-115,this.size.height-this.data.pY*this.scale.h<133?(this.rectTop=-154,this.miniRect&&(this.size.height-this.data.pY*this.scale.h125&&(this.rectHeight=125),this.rectTop=-this.rectHeight-28):(this.rectHeight=Math.floor(this.size.height-this.data.pY*this.scale.h-8),this.rectTop=4))):(this.miniRect&&(this.rectHeight=125),this.rectTop=4),""===this.data.text?this.rectState="edit":this.rectState="view",this.deleteDialog=!1},hideEditorClick:function(t){for(var e=Object(s.composedPath)(t.target),i=0,o=e.length;i1&&void 0!==arguments[1]?arguments[1]:"editor";""===this.data.text?this.deleteNote(t,e):this.deleteDialog=!0},checkKeydown:function(t){if(27===t.keyCode&&this.hideEditor(),"view"===this.rectState&&t.preventDefault(),8===t.keyCode){if(this.$refs.text===document.activeElement)return;this.deleteNoteCheck(t,"hotkey")}else 46===t.keyCode&&this.deleteNoteCheck(t,"hotkey")},removeEditorEventListeners:function(){document.removeEventListener("mousedown",this.hideEditorClick,!0),document.removeEventListener("keydown",this.checkKeydown)},deleteNote:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.removeEditorEventListeners(),this.$store.dispatch("notes/deleteNote",{id:this.data.id,initiator:e})},deleteDialogCancel:function(){this.deleteDialog=!1},setViewState:function(t){this.rectState="view",t.target.blur()},forceFocus:function(){var t;null===(t=this.$refs.text)||void 0===t||t.focus()},moveElementToSpreadNotes:function(){this.slideMode||this.isOutsideHardcover||(this.spreadNotesEl||(this.spreadNotesEl=this.createSpreadNotesElement()),this.spreadNotesEl.appendChild(this.$el))},moveElementToPageContainer:function(){this.slideMode||this.isOutsideHardcover||this.parentEl.appendChild(this.$el)},createSpreadNotesElement:function(){var t=document.getElementById("spread-notes");if(!t){var e=document.getElementById("book");t=o.default.createElement("div",{id:"spread-notes"},e)}return t},setTextareaDir:function(){if(this.$refs.text)if(this.$refs.text.value){var t=n.a.getDirection(this.$refs.text.value);this.$refs.text.dir=t&&"ltr"!==t?"rtl":"ltr"}else this.$refs.text.dir=this.$store.getters["i18n/isLocaleRtl"]?"rtl":"ltr"}}}},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(119);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s,o,r=i(120),n=i.n(r),a=i(5),h=(s=window.getComputedStyle(document.documentElement,""),o=(Array.prototype.slice.call(s).join("").match(/-(moz|webkit|ms)-/)||""===s.OLink&&["","o"])[1],{dom:"WebKit|Moz|MS|O".match(new RegExp("("+o+")","i"))[1],lowercase:o,css:"-"+o+"-",js:o[0].toUpperCase()+o.substr(1)});e.default={name:"FlipMe",props:{pageId:{type:String,required:!0},isLeft:{type:Boolean,required:!0}},data:function(){return{angle:0,width:0,backfaceId:null,nextPageId:null,nextWide:!1,tween:null,crossOrigin:Object(a.default)().getCrossOrigin(),nxtParentCSS:"",backfaceParentCSS:""}},mounted:function(){var t=this,e={angle:19,width:0};this.tween=new n.a.Tween(e).to({angle:19,width:7},800).easing(n.a.Easing.Cubic.InOut).onUpdate((function(){if(t.width=e.width,t.angle=e.angle,0===e.width){var i=5*Math.random()+3,s=11*Math.random()+19;setTimeout((function(){t.tween.to({angle:s,width:i})}),10)}})).yoyo(!0).repeat(1/0).delay(2e3).repeatDelay(200).start();var i=this.$store.getters["pages/pageProp"](this.pageId,"wide"),s=this.$store.getters["pages/pageIndexById"](this.pageId)+(i?2:1);this.backfaceId=this.$store.getters["pages/pageIdByIndexWide"](s);var o=s+1;this.nextPageId=this.$store.getters["pages/pageIdByIndexWide"](o),this.nextWide=this.$store.getters["pages/pageProp"](this.nextPageId,"wide"),this.$parent.$once("onContentContainerClick",this.stopAnimation)},beforeDestroy:function(){this.stopAnimation(),this.$store.dispatch("workspace/flipCornerOff")},computed:{nextBackgrounds:function(){var t=[];if(null!==this.nextPageId){var e=this.$store.getters["pages/pageProp"](this.nextPageId,"textUrl"),i=this.$store.getters["pages/pageProp"](this.nextPageId,"substrateUrl");t.push(i),e&&t.push(e);var s=document.querySelector('[data-id="'+this.nextPageId+'"]');this.nxtParentCSS=s&&s.style?s.style.cssText:""}return t},backfaceBackgrounds:function(){var t=[];if(null!==this.backfaceId){var e=this.$store.getters["pages/pageProp"](this.backfaceId,"textUrl"),i=this.$store.getters["pages/pageProp"](this.backfaceId,"substrateUrl");t.push(i),e&&t.push(e);var s=document.querySelector('[data-id="'+this.backfaceId+'"]');this.backfaceParentCSS=s&&s.style?s.style.cssText:""}return t},pagesSize:function(){return this.$store.getters["pages/size"]},backfaceImgStyle:function(){var t=this.$store.getters["pages/pageProp"](this.backfaceId,"wide"),e=this.$store.state.book.rightToLeft,i=this.$store.state.pages.size.width;return this.backfaceParentCSS+(e&&t?" transform: translate3d(-".concat(i,"px,0,0);"):"")},nextImgStyle:function(){var t=this.$store.getters["pages/pageProp"](this.nextPageId,"wide"),e=this.$store.state.book.rightToLeft,i=this.$store.state.pages.size.width;return this.nxtParentCSS+(e?"":t?" transform: translate3d(-".concat(i,"px,0,0);"):"")},maskStyle:function(){var t=100-this.width;return{transform:this.isLeft?"rotate3d(0,0,1,-".concat(this.angle,"deg) translate3d(-").concat(t,"%, 0%, 0)"):"rotate3d(0,0,1,".concat(this.angle,"deg) translate3d(").concat(t,"%, 50%, 0)"),transformOrigin:this.isLeft?"".concat(100-t,"% 100%"):"100% 100%"}},nextPageStyle:function(){var t=100-this.width;return{transform:this.isLeft?"rotate3d(0,0,1,".concat(this.angle,"deg)"):"rotate3d(0,0,1,-".concat(this.angle,"deg)"),transformOrigin:this.isLeft?"".concat(100-t,"% 100%"):"100% 100%",backgroundColor:this.$store.getters["pages/pageProp"](this.nextPageId,"backgroundColor")}},shiftPageStyle:function(){var t=100-this.width;return{transform:this.isLeft?"translate3d(".concat(t,"%, 0%,0)"):"translate3d(-".concat(t,"%, -50%,0)")}},backfaceStyle:function(){var t,e,i=90-this.angle,s=this.width/Math.sin(i*Math.PI/180);if(this.isLeft){var o=s,r=100-2*s;t="rotate(-".concat(2*this.angle,"deg) translate3d(-").concat(r,"%, 0%,0)"),e="".concat(o,"% 100%")}else{var n=100-s,a=n-s;t="rotate(".concat(2*this.angle,"deg) translate3d(").concat(a,"%, 0%,0)"),e="".concat(n,"% 100%")}return{transform:t,transformOrigin:e,backgroundColor:this.$store.getters["pages/pageProp"](this.backfaceId,"backgroundColor")}},nextGradientStyle:function(){return{background:h.css+"linear-gradient(".concat(this.isLeft?"right":"left",", rgba(0, 0, 0, ").concat((65-this.width)/100,") 0px, transparent ").concat(this.width,"%)")}},backGradientStyle:function(){var t=90-this.angle,e=this.width/Math.sin(t*Math.PI/180);return{transform:this.isLeft?"rotate(".concat(this.angle,"deg) translate3d(0, 10%, 1px)"):"rotate(-".concat(this.angle,"deg) translate3d(0, 10%, 1px)"),transformOrigin:"100% 100%",width:e+"%"}}},methods:{stopAnimation:function(){this.tween.delay(0).repeat(1)}}}},,function(t,e,i){},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(124);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(27);e.default={extends:s.default,name:"ContentBlock",data:function(){return{itemId:this.data.type+"_"+this.data.itemId}},methods:{zoomToBLock:function(){this.$emit("block:zoomed",this.data.rect)}}}},function(t,e,i){"use strict";i.r(e);var s=i(126);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s,o,r=i(3),n=i(5),a=i(18);e.default={name:"ContentBase",props:{data:{type:Object,required:!0},isCurrent:{type:Boolean,required:!1}},data:function(){return{crossOrigin:Object(n.default)().getCrossOrigin(),crossWideItem:null,isHighlighted:!1,thumbnailBlob:null,blobCache:{}}},computed:{containerRect:function(){return{width:Math.round(this.data.rect[0]*this.data.scaleRatio.w),height:Math.round(this.data.rect[1]*this.data.scaleRatio.h),left:Math.round(this.data.rect[2]*this.data.scaleRatio.w),top:Math.round(this.data.rect[3]*this.data.scaleRatio.h)}},containerStyle:function(){var t={};return this.data.style?t=this.data.style:(t={width:this.containerRect.width+"px",height:this.containerRect.height+"px",left:this.containerRect.left+"px",top:this.containerRect.top+"px"},this.data.zIndex&&(t.zIndex=this.data.zIndex),Object(r.isUndefined)(this.data.angle)||0!==this.data.angle&&(t.transformOrigin="0px 0px 0px",t.transform="rotate("+this.data.angle+"rad)")),t},thumbnailUrl:function(){return this.data.previewUrl?/^https?:\/\//.test(this.data.previewUrl)?Object(n.default)().translatePath(this.data.previewUrl):Object(n.default)().translatePath("assets/pages/content/"+encodeURIComponent(this.data.previewUrl)):null},thumbnailStyle:function(){return this.getThumbnailStyle(this.thumbnailBlob)},playButtonStyle:function(){var t=Math.min(.5*this.data.rect[0]*this.data.scaleRatio.w,.5*this.data.rect[1]*this.data.scaleRatio.h).toFixed(0)+"px";return{maxWidth:t,maxHeight:t}},isMobile:function(){return"mobile"===this.$store.state.workspace.layout}},created:function(){var t=this;this.data.crossWide&&"both"!==this.data.page.side&&(this.$on("crossWideRegistered",(function(e){t.crossWideItem=e})),this.$contentRegistry.registerContentItem(this.data.itemId,this.data.page.side,this))},beforeMount:function(){this.thumbnailUrl&&this.loadThumbnail()},mounted:function(){var t=this;this.thumbnailUrl||this.$emit("ready",this),this.data.crossWide&&(s=function(){t.isHighlighted=!0,t.crossWideItem&&(t.crossWideItem.isHighlighted=!0)},o=function(){t.isHighlighted=!1,t.crossWideItem&&(t.crossWideItem.isHighlighted=!1)},this.$el.addEventListener("mouseover",s),this.$el.addEventListener("mouseout",o))},beforeDestroy:function(){var t=this;this.data.crossWide&&(this.$el.removeEventListener("mouseover",s),this.$el.removeEventListener("mouseout",o),this.$contentRegistry.deregisterContentItem(this.data.itemId,this.data.page.side)),this.thumbnailBlob&&(this.thumbnailBlob=null),this.blobCache&&(Object.keys(this.blobCache).forEach((function(e){return window.URL.revokeObjectURL(t.blobCache[e])})),this.blobCache=null)},watch:{thumbnailUrl:function(t){t?this.loadThumbnail():this.thumbnailBlob&&(this.thumbnailBlob=null)}},methods:{loadThumbnail:function(){var t=this,e=this.blobCache[this.thumbnailUrl];e?this.thumbnailBlob=e:Object(a.default)({url:this.thumbnailUrl,responseType:"blob",callback:function(e){t.ready||(t.ready=!0,"image"!==t.data.type&&t.$emit("ready",t));var i=e.response;t.thumbnailBlob=window.URL.createObjectURL(i),Object(r.isObject)(t.blobCache)&&(t.blobCache[t.thumbnailUrl]=t.thumbnailBlob)},errorback:function(e){t.error=!0,t.$emit("error",t,e)}})},getThumbnailStyle:function(t){var e={};return this.thumbnailBlob&&(e.backgroundImage='url("'+t+'")'),e}}}},function(t,e,i){},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(130);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(27),o=i(45);function r(){return(r=Object.assign||function(t){for(var e=1;ethis.tapTimeout&&Date.now()>this.closeTimeout&&setTimeout(this.imageClick,this.$store.state.workspace.doubletapInterval+1),this.tapTimeout=Date.now()+this.$store.state.workspace.doubletapInterval)},imageClick:function(){this.isFrozenOrNotReady||this.isEmbed||(this.imageLoad(),this.showModal(),this.$emit("image:click",this),this.$root.$emit("image",{action:"click",url:this.getApiFileName()}))},preventDefault:function(t){t.preventDefault()},showModal:function(){this.isModalShown=!0,this.$nextTick((function(){var t=this;this.$refs.modalWindow.show(),this.$refs.modalWindow.$once("hidden",(function(){t.isModalShown=!1,t.crossWideItem&&(t.isHighlighted=!0,t.crossWideItem.isHighlighted=!0),t.$root.$emit("image",{action:"close",url:t.getApiFileName()}),t.closeTimeout=Date.now()+500}))}))},imageLoad:function(){var t=this,e=document.createElement("img");this.crossOrigin&&(e.crossOrigin=this.crossOrigin),e.onload=function(){t.data.originalSize||(t.width=e.naturalWidth,t.height=e.naturalHeight),t.$refs.modalWindow.loaded(),t.$emit("image:loaded",t),t.$root.$emit("image",{action:"loaded",url:t.getApiFileName()})},e.onerror=function(e){t.$refs.modalWindow.error(),t.$emit("image:error",t,e)},e.src=this.imageSrc,e.style.width="100%"},previewLoad:function(t){var e=this;if(t){var i=document.createElement("img");i.onload=function(){e.$emit("ready",e),e.addHiddenThumbnail(t),setTimeout((function(){e.makeThumbnailVisible(t)}),100)},i.onerror=function(t){e.$emit("error",e,t)},i.src=t}},addHiddenThumbnail:function(t){if(!this.cachedThumbnails.some((function(e){return e.id===t}))){var e={visibility:"visible",zIndex:-1},i={id:t,style:a({},this.getThumbnailStyle(t),e)};this.cachedThumbnails.push(i)}},makeThumbnailVisible:function(t){this.cachedThumbnails.forEach((function(e){e.id===t?(e.style.visibility="visible",e.style.zIndex=null):e.style.visibility="hidden"}))},getImageInfo:function(t){window.devicePixelRatio>=1.5&&(t*=1.5);var e=this.data.sizes.reduce((function(e,i){return ee?i:e:i>=t&&i=0||Object(n.classPath)(t.target).indexOf("modal-close")>=0)&&(this.historyEnabled&&0!==window.history.length?window.history.back():this.hide())},loading:function(){this.isLoaded=!1},loaded:function(){this.isLoaded=!0},error:function(){this.hasError=!0},onResize:function(){if(this.isAndroid){var t=document.activeElement;if("input"===t.tagName.toLowerCase()||"textarea"===t.tagName.toLowerCase()){var e=t.getBoundingClientRect();e.top>window.innerHeight/2&&(this.androidKeyboardShift=-e.top/4)}else"iframe"===t.tagName.toLowerCase()?this.heightOverride=window.innerHeight:0!==this.androidKeyboardShift&&(this.androidKeyboardShift=0,this.heightOverride=null)}}},mounted:function(){window.addEventListener("resize",this.onResize),this.parent=this.$el.parentNode,this.$root.$el.appendChild(this.$el)},beforeDestroy:function(){window.removeEventListener("resize",this.onResize),this.$store.dispatch("workspace/setModalOpened",!1),this.parent&&"function"==typeof this.parent.appendChild&&this.parent.appendChild(this.$el)},components:{spinner:o.a}}},function(t,e,i){i(0).register({"rounded-close":{width:16,height:16,viewBox:"0 0 16 16",data:''}})},function(t,e,i){},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(140);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(27);i(649);e.default={extends:s.default,name:"ContentGallery",props:[]}},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(143);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(27),o=i(5),r=i(24),n=i.n(r);i(652),i(653);e.default={extends:s.default,name:"ContentGif",props:[],data:function(){return{isIdle:!0,isLoading:!1,isPlaying:!1,isLoaded:!1,isEnded:!1,isAutoplay:this.data.autoplay,imgWidth:null,imgHeight:null,imgRatio:null,preloaderTimeout:null,loopTimeout:null,tapTimeout:0}},computed:{containerClasses:function(){return{autoplay:this.isAutoplay,loading:this.isLoading,playing:this.isPlaying,ended:this.isEnded,highlighted:this.isHighlighted}},imageStyle:function(){return{width:Math.round(this.imgWidth*this.imgRatio*this.data.scaleRatio.w)+"px",height:Math.round(this.imgHeight*this.imgRatio*this.data.scaleRatio.h)+"px"}},imageSrc:function(){var t=!1===this.data.loop?"?rand="+this.rand:"";return/^https?:\/\//.test(this.data.url)?Object(o.default)().translatePath(this.data.url+t):Object(o.default)().translatePath("assets/pages/content/"+encodeURIComponent(this.data.url)+t)},rand:function(){return this.$store.state.content.rands[this.data.itemId]},isCurrentPage:function(){var t=this.$store.getters["pager/state"];return t.singleMode?this.data.page.isWide?this.data.page.id===t.rightPage&&("right"===this.data.page.side&&t.leftPage===t.rightPage||"left"===this.data.page.side&&t.leftPage!==t.rightPage||"both"===this.data.page.side):this.data.page.id===t.rightPage:this.data.page.id===t.leftPage||this.data.page.id===t.rightPage},isFrozenOrNotReady:function(){return this.$store.state.workspace.freezed||"ready"!==this.$store.state.workspace.status||this.$store.state.pager.freezed},isEmbed:function(){return this.$store.state.workspace.isEmbed},animationInProgress:function(){return this.$store.state.workspace.animationInProgress}},mounted:function(){this.data.crossWide&&!this.crossWideItem&&!1===this.data.loop&&this.newRand(),this.checkAutoplay()},watch:{isCurrentPage:"currentPageChanged",isLoaded:function(t){!t||this.crossWideItem&&!this.crossWideItem.isLoaded||(this.isLoading=!1,this.playGif(this),this.crossWideItem&&(this.crossWideItem.isLoading=!1,this.playGif(this.crossWideItem)),this.$emit("gif:loaded",this),this.$root.$emit("gif",{action:"loaded",url:this.data.url}))},animationInProgress:function(t){t||this.$emit("pageAnimationEnded")}},methods:{playGif:function(t){t.isPlaying=!0,!1===t.data.loop&&t.data.duration&&(t.loopTimeout=setTimeout((function(){t.isPlaying=!1,t.isEnded=!0}),t.data.duration+300))},onGifClick:function(t){Date.now()>this.tapTimeout&&setTimeout(this.gifClick,this.$store.state.workspace.doubletapInterval+1),this.tapTimeout=Date.now()+this.$store.state.workspace.doubletapInterval},gifClick:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.isFrozenOrNotReady||this.isEmbed||(this.data.url&&this.isIdle&&!this.isLoading?(this.$emit("gif:click",this),this.$root.$emit("gif",{action:"click",url:this.data.url}),this.loadGif()):!1===this.data.loop&&this.isEnded?(this.unloadGif(!e),this.loadGif()):(this.isPlaying||this.isLoading)&&this.unloadGif(!e&&!1===this.data.loop),this.crossWideItem&&!e&&this.crossWideItem.gifClick(null,!0))},loadGif:function(){var t=this;this.img||(this.img=document.createElement("img")),this.img.onload=function(){clearTimeout(t.preloaderTimeout),t.isLoaded=!0,t.imgWidth=t.img.naturalWidth,t.imgHeight=t.img.naturalHeight,t.imgRatio=Math.max(t.data.rect[0]/t.imgWidth,t.data.rect[1]/t.imgHeight)},this.img.onerror=function(e){t.$emit("gif:error",t,e)},this.crossOrigin&&(this.img.crossOrigin=this.crossOrigin),this.img.src=this.imageSrc,this.isIdle=!1,this.preloaderTimeout=setTimeout((function(){t.isLoading=!0}),this.data.loop?200:0)},unloadGif:function(t){var e;this.thumbnailUrl&&(clearTimeout(this.preloaderTimeout),clearTimeout(this.loopTimeout),this.isLoading=!1,this.img&&(this.img.onload=null,this.img.onerror=null,this.img.src=""),null===(e=this.$refs.gifImg)||void 0===e||e.removeAttribute("src"),this.isLoaded=!1,this.isPlaying=!1,this.isEnded=!1,this.isAutoplay=!1,this.isIdle=!0,t&&this.newRand(),this.$emit("gif:stop",this),this.$root.$emit("gif",{action:"stop",url:this.data.url}))},checkAutoplay:function(){this.data.autoplay&&(this.data.fileSize<1048576||!this.isMobile?this.isCurrentPage&&this.loadGif():this.isAutoplay=!1)},currentPageChanged:function(t){var e=this;t?this.animationInProgress?this.$once("pageAnimationEnded",(function(){e.checkAutoplay()})):this.checkAutoplay():(this.unloadGif(),this.data.autoplay&&(this.isAutoplay=!0))},newRand:function(){this.$store.dispatch("content/newRand",{itemId:this.data.itemId})}},components:{spinner:n.a}}},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(146);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(27),o=i(15),r=i(5),n=i(656),a=i(670),h=i(673),l=i(379),c=(i(675),i(676),i(32));e.default={extends:s.default,name:"ContentVideo",data:function(){var t;return{playerPromise:new Promise((function(e){t=e})),resolvePlayer:t,isModalShown:!1,isPlayerShown:!1,playerLoaded:!1,isPlaying:!1,tapTimeout:0,hasError:!1,videoData:null,showPreventer:!0,currentTime:null,lastProgressId:null,originalStartFrom:null}},beforeMount:function(){this.data.originalUrl?this.videoData=this.getVideoInfo(this.data.originalUrl):this.videoData=this.data,this.originalStartFrom=this.videoData.startFrom},beforeDestroy:function(){this.saveTime(this.currentTime),this.unbindEvents()},watch:{isCurrentPage:"currentPageChanged",isPlaying:"setPlaying",shouldAutoplay:function(t){t&&!this.isPlayerShown&&this.startInline()},data:function(t){t.originalUrl?this.videoData=this.getVideoInfo(t.originalUrl):this.videoData=t},isInline:function(t,e){e&&!t&&this.isPlayerShown&&(this.isPlayerShown=!1,this.playerLoaded=!1)},currentTime:function(t){this.saveTime(t)}},mounted:function(){this.shouldAutoplay&&this.startInline()},computed:{isInline:function(){var t=this.$store.state.workspace.userAgentInfo;return"dialog"!==this.data.mode&&!this.data.crossWide&&!t.browser.safari&&!t.browser.publisher&&this.data.rect[0]*this.data.scaleRatio.w>144&&this.data.rect[1]*this.data.scaleRatio.h>100},shouldAutoplay:function(){return!this.isFrozenOrNotReady&&!this.isEmbed&&!this.hasError&&!this.isPublisher&&!this.isMobile&&this.isInline&&this.data.autoplay},isThumbnailShown:function(){return("dialog"!==this.data.mode||this.data.showImage)&&!this.playerLoaded},isCurrentPage:function(){var t=this.$store.getters["pager/state"];return t.singleMode?this.data.page.isWide?this.data.page.id===t.rightPage&&("right"===this.data.page.side&&t.leftPage===t.rightPage||"left"===this.data.page.side&&t.leftPage!==t.rightPage||"both"===this.data.page.side):this.data.page.id===t.rightPage:this.data.page.id===t.leftPage||this.data.page.id===t.rightPage},isIos:function(){return this.$store.state.workspace.userAgentInfo.os.ios},isModalSmall:function(){return this.modalRect.height<=200},isPublisher:function(){return this.$store.state.workspace.userAgentInfo.browser.publisher},apiVideoUrl:function(){var t="";switch(this.data.provider){case"youtube":t="https://www.youtube.com/watch?v="+this.data.id;break;case"vimeo":t="https://vimeo.com/"+this.data.id,this.data.accessKey?t="https://vimeo.com/"+this.data.id+"/"+this.data.accessKey:this.data.originalUrl&&(t=this.data.originalUrl.split("#")[0].split("?")[0]);break;case"wistia":this.data.account?t="https://"+this.data.account+".wistia.com/medias/"+this.data.id:this.data.originalUrl&&(t=this.data.originalUrl.split("#")[0].split("?")[0]);break;default:t=this.data.originalUrl||this.data.id}return t},modalRect:function(){var t=Object(o.fit)({width:this.data.width?this.data.width:this.data.rect[0],height:this.data.height?this.data.height:this.data.rect[1]},{width:.8*this.workspaceSize.width,height:.8*this.workspaceSize.height});return{width:Math.round(t.width),height:Math.round(t.height)}},workspaceSize:function(){return this.$store.getters["workspace/size"]},modalVideoStyle:function(){return"youtube"===this.data.provider?null:{width:this.modalRect.width+"px",height:this.modalRect.height+"px"}},thumbnailUrl:function(){return this.data.image?/^https?:\/\//.test(this.data.image)?Object(r.default)().translatePath(this.data.image):Object(r.default)().translatePath("assets/pages/content/"+this.data.image):null},containerClasses:function(){return{highlighted:this.isHighlighted}},isFrozenOrNotReady:function(){return this.$store.state.workspace.freezed||"ready"!==this.$store.state.workspace.status||this.$store.state.pager.freezed},isMuted:function(){return this.$store.state.workspace.muteSound},isEmbed:function(){return this.$store.state.workspace.isEmbed},animationInProgress:function(){return this.$store.getters["workspace/animationInProgress"]}},methods:{onVideoClick:function(){this.animationInProgress||(Date.now()>this.tapTimeout&&setTimeout(this.videoClick,this.$store.state.workspace.doubletapInterval+1),this.tapTimeout=Date.now()+this.$store.state.workspace.doubletapInterval)},videoClick:function(){this.isFrozenOrNotReady||this.isEmbed||this.hasError||(this.isPublisher?this.$root.$emit("video",{action:"publisher",url:this.apiVideoUrl}):(this.$emit("video:click",this),this.isInline?this.startInline():this.openinModal()))},startInline:function(){var t,e=this;this.currentTime=this.loadTime(),this.videoData.startFrom=null!==(t=this.currentTime)&&void 0!==t?t:this.originalStartFrom,this.playerPromise.then((function(){"vimeo"===!e.data.provider&&(e.playerLoaded=!0)})),this.$store.dispatch("workspace/flipCornerOff"),this.isPlayerShown=!0,this.$nextTick((function(){this.bindEvents()}))},openinModal:function(){var t;this.currentTime=this.loadTime(),this.videoData.startFrom=null!==(t=this.currentTime)&&void 0!==t?t:this.originalStartFrom,this.isModalShown=!0,this.$nextTick((function(){var t=this;this.$refs.modalWindow.show(),this.$nextTick((function(){this.bindEvents()})),this.$refs.modalWindow.$once("hidden",(function(){t.isModalShown=!1,t.isPlaying=!1,t.$emit("video:close",t),t.$root.$emit("video",{action:"close",url:t.apiVideoUrl}),t.unbindEvents()}))}))},playPause:function(t){t.preventDefault(),this.isPlaying?this.$refs.player.pause():this.$refs.player.play()},getVideoInfo:function(t){var e,i=/https?:\/\/(?:www)?(?:player)?\.?(?:vimeo\.com\/)(?:video\/)?(\d*)\/?([a-zA-Z\d]*)?/,s=/https?:\/\/(.*)?(?:\.wistia\.com|fast\.wistia\.net)\/(?:medias|embed\/iframe)\/(.*)/,o=/https?:\/\/(?:www\.)?youtu\.?be\/?(?:\.com\/)?(?:embed\/)?(?:watch\?v=)?([a-zA-Z_\-\d]*)(?:\?.*)?/.exec(t);o&&o.length>1&&(e={provider:"youtube",id:o[1]});var r=i.exec(t);r&&r.length>1&&(e={provider:"vimeo",id:r[1],accessKey:r[2]});var n=s.exec(t);return n&&n.length>1&&(e={provider:"wistia",id:n[2]},n[1]&&(e.account=n[1])),Object(c.default)(this.data,e)},currentPageChanged:function(t){t?!this.isMobile&&this.data.autoplay&&this.$emit("play"):this.$emit("pause")},bindEvents:function(){var t=this;this.$refs.player.$on("play",(function(e,i){"vimeo"===t.data.provider&&t.isInline&&(t.playerLoaded=!0),t.isPlaying=!0,t.showPreventer=!0,t.$emit("video:play",e,t,i),t.$root.$emit("video",{action:"play",url:t.apiVideoUrl,time:e})})),this.$refs.player.$on("pause",(function(e,i){t.isPlaying=!1,t.currentTime=e,t.$emit("video:pause",e,t,i),t.$root.$emit("video",{action:"pause",url:t.apiVideoUrl,time:e})})),this.$refs.player.$on("end",(function(e,i){t.isPlaying=!1,t.currentTime=null,t.$emit("video:end",e,t,i),t.$root.$emit("video",{action:"stop",url:t.apiVideoUrl,time:e})})),this.$refs.player.$on("ended",(function(e,i){t.isPlaying=!1,t.currentTime=null,t.$emit("video:end",e,t,i),t.$root.$emit("video",{action:"stop",url:t.apiVideoUrl,time:e})})),this.$refs.player.$on("seek",(function(e,i){t.currentTime=e,t.$emit("video:seek",e,t,i),t.$root.$emit("video",{action:"seekTo",url:t.apiVideoUrl,time:e})})),this.$refs.player.$on("seeked",(function(e,i){t.currentTime=e,t.$emit("video:seek",e,t,i),t.$root.$emit("video",{action:"seekTo",url:t.apiVideoUrl,time:e})})),this.$refs.player.$on("timeupdate",(function(e){t.currentTime=e})),this.$refs.player.$on("secondchange",(function(e){t.currentTime=e})),this.$refs.player.$on("error",(function(e,i){"PasswordError"!==e.name&&"PrivacyError"!==e.name?(t.$emit("video:error",e,t,i),t.isModalShown=!1,t.isPlayerShown=!1,t.playerLoaded=!1,t.isPlaying=!1,t.hasError=!0):t.showPreventer=!1})),this.$refs.player.$on("loaded",(function(e,i){t.showPreventer=!0,"vimeo"===t.data.provider&&t.isInline&&(t.playerLoaded=!0),t.$emit("video:loaded",e,t,i)})),this.$refs.player.$on("ready",(function(){t.resolvePlayer()}))},unbindEvents:function(){this.$refs.player&&(this.$refs.player.$off("play"),this.$refs.player.$off("pause"),this.$refs.player.$off("end"),this.$refs.player.$off("ended"),this.$refs.player.$off("seek"),this.$refs.player.$off("seeked"),this.$refs.player.$off("error"),this.$refs.player.$off("loaded"),this.$refs.player.$off("ready"))},setPlaying:function(t){this.$store.dispatch("content/setVideoPlaying",{playing:t,id:this.data.id}),t&&this.$store.dispatch("workspace/flipCornerOff")},getVideoHash:function(t){return[[this.videoData.page.id,this.videoData.page.isWide?"wide":this.videoData.page.side].join("_"),this.videoData.provider,this.videoData.id,t].join("_")},saveTime:function(t){var e=this.getVideoHash("time"),i=this.getVideoHash("id"),s=Object(r.default)().getSessionStorage().getItem(i);this.data.crossWide&&s&&s!=this.lastProgressId||(this.lastProgressId=Date.now(),Object(r.default)().getSessionStorage().setItem(e,t),Object(r.default)().getSessionStorage().setItem(i,this.lastProgressId))},loadTime:function(){var t=this.getVideoHash("time"),e=Object(r.default)().getSessionStorage().getItem(t),i=e?parseInt(e,10):null,s=this.getVideoHash("id");return this.lastProgressId=Object(r.default)().getSessionStorage().getItem(s),null===i||isNaN(i)?null:i}},components:{youtube:n.default,vimeo:a.default,wistia:h.default,"modal-window":l.default}}},function(t,e,i){"use strict";i.r(e);var s=i(148);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s,o=i(658),r=i.n(o);function n(){return(n=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{forceHide:!0};this.showPanel=!1,t.forceHide&&(this.forceShow=!1)},show:function(){null===this.userRect||this.showPanel||(this.showPanel=!0)},setPosition:function(){this.cornerSymbols.first.top===this.cornerSymbols.last.top?"left"===this.userRect.cursorHSide?this.getTopPosition():this.getBottomPosition():"top"===this.userRect.cursorVSide?this.getTopPosition():this.getBottomPosition(),this.panelRect.top<50?this.getBottomPosition():this.panelRect.top>this.holderSize.height-50&&this.getTopPosition();var t=9,e=0,i=0;i="slide-book"===this.bookComponent?this.holderSize.width:this.pageSize.width*this.pages,this.panelRect.left'}})},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(161);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(120),o=i.n(s),r=i(15),n=i(3),a=i(393),h=i(28),l=i.n(h),c=i(106),d=i(373),u=i(375),p=i(377),f=i(381),g=i(383),m=i(385),v=i(389),b=i(391),S=i(392);i(158);function w(t){return x(t)||P(t)||k(t)||y()}function y(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(t,e){if(t){if("string"==typeof t)return z(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?z(t,e):void 0}}function P(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function x(t){if(Array.isArray(t))return z(t)}function z(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=new Array(e);i1&&1===e){var o=w(this.slidesCache.current.map((function(t){return t.id}))).filter((function(t){return null!==t})).some((function(t){return i.$store.getters["pages/pageProp"](t,"textBlocks")}),this);this.selectTextEnabled&&o&&this.showSelectTextTip()}this.refreshScroll()},status:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){this.refreshScroll(),this.$store.dispatch("workspace/setStatus",t);var e=["sliding","pan"].indexOf(status)>=0?"inProgress":"pending";this.$store.dispatch("pager/setFlipState",{newState:e}),"ready"===t?this.$store.dispatch("workspace/unsetAnimationProgress"):this.$store.dispatch("workspace/setAnimationProgress"),this.updateNoteIcon(),this.arrowAttract=null})),slides:function(t,e){var i=this;if(this.scrollLock)this.scrollLock=!1;else{this.isSlideMode||this.isSingleMode||this.updateHorizontalScale(t.current[0],e.current[0]);var s=this.getIndexDelta(t.current[0],e.current[0]),o=Math.abs(s)>1;!this.isRtl&&s>0||this.isRtl&&s<0?(o&&this.replaceCachedSlide("right",t.current),this.isZoomed?(this.pendingSlide="right",this.zoomOut()):this.$nextTick((function(){i.animateSlides("right",!1,!0)}))):(!this.isRtl&&s<0||this.isRtl&&s>0)&&(o&&this.replaceCachedSlide("left",t.current),this.isZoomed?(this.pendingSlide="left",this.zoomOut()):this.$nextTick((function(){i.animateSlides("left",!1,!0)})))}},workspaceSize:function(t,e){!this.isMobile||t.width===e.width&&t.height===e.height||this.zoomOut(!0)},containerSize:function(){1===this.zoomFactor||this.isMobile||this.refreshScroll()},pageSizes:function(t){var e=this,i=this.slidesCache;Object.keys(i).forEach((function(s){for(var o=0;o=this.spreadSizes.current.width?Math.round((this.containerSize.width-this.spreadSizes.current.width)/2)+"px":0:Math.round(this.spreadSizes.current.left)+"px",top:this.isZoomed?this.containerSize.height>=this.spreadSizes.current.height?Math.round((this.containerSize.height-this.spreadSizes.current.height)/2)+"px":0:Math.round(this.spreadSizes.current.top)+"px",transformOrigin:Math.round(this.scaleOrigin.x)+"px "+Math.round(this.scaleOrigin.y)+"px",transition:"animating"===this.status?["-webkit-transform "+(this.fastAnimation?1:this.zoomAnimationSpeed)+"ms cubic-bezier(0.215, 0.61, 0.355, 1)","transform "+(this.fastAnimation?1:this.zoomAnimationSpeed)+"ms cubic-bezier(0.215, 0.61, 0.355, 1)"]:["-webkit-transform 0ms","transform 0ms"]},"pinch"!==this.status&&"scale"!==this.status&&"animating"!==this.status?t.current.transform="":0!==this.slideScrollTop||0!==this.slideScrollLeft?t.current.transform="translate3d("+(this.containerSize.width1?this.$root.$emit("zoomed"):(this.scaleFactor<1||this.zoomPanel&&1===this.scaleFactor)&&this.$root.$emit("unzoomed")}},setZoom:function(t,e){if(!this.isWorkspaceFrozen&&"ready"===this.status){this.scaleFactor=t/this.zoomFactor,this.updateSlideScroll(!1);var i=e||{x:this.workspaceSize.width/2,y:this.workspaceSize.height/2},s={x:i.x-this.spreadSizes.current.left,y:i.y-this.spreadSizes.current.top},o=Object(a.getNewBounds)(this.spreadSizes.current,this.scaleFactor,s);o=Object(a.normalizeBounds)(o,this.containerSize),this.scaleOrigin=Object(a.getOrigin)(this.spreadSizes.current,o,this.scaleFactor),this.newBounds=o,this.fastAnimation=!0,this.status="animating",this.refreshScroll()}},setScaleStart:function(){this.minScale=Math.min(this.containerSize.width/this.spreadSizes.current.width,this.containerSize.height/this.spreadSizes.current.height),this.maxScale=this.maxZoom/this.zoomFactor,this.scaleFactor=1,this.updateSlideScroll(!1),this.scaleOrigin={x:this.workspaceSize.width/2-this.slideScrollLeft,y:this.workspaceSize.height/2-this.slideScrollTop},this.status="scale"},setScale:function(t){if("scale"===this.status){var e=this.minScale+(this.maxScale-this.minScale)*t,i=Object(a.getNewBounds)(this.spreadSizes.current,e,{x:this.workspaceSize.width/2-this.slideScrollLeft,y:this.workspaceSize.height/2-this.slideScrollTop});i=Object(a.normalizeBounds)(i,this.containerSize),this.scaleOrigin=Object(a.getOrigin)(this.spreadSizes.current,i,e);var s=Math.min(this.maxScale,Math.max(this.minScale,e));this.scaleFactor=this.checkScaleFactorForZoom(s,this.zoomFactor,this.maxZoom)}},setScaleFinish:function(){if("scale"===this.status){var t=Object(a.getNewBounds)(this.spreadSizes.current,this.scaleFactor,this.scaleOrigin);t=Object(a.normalizeBounds)(t,this.containerSize),this.zoomFactor=1*(this.zoomFactor*this.scaleFactor).toFixed(2),this.scaleFactor=1,this.slideScrollLeft=this.isZoomed?t.left:0,this.slideScrollTop=this.isZoomed?t.top:0,this.status="ready"}},onTransitionEnd:function(t){t&&"transform"===t.propertyName&&("animating"===this.status&&(this.fastAnimation=!1,this.lastZoomFactor=Math.max(this.zoomFactor,this.defaultZoomFactor),this.zoomFactor=1*(this.zoomFactor*this.scaleFactor).toFixed(2),this.slideScrollLeft=this.isZoomed?this.newBounds.left:0,this.slideScrollTop=this.isZoomed?this.newBounds.top:0,this.status="ready"),this.pendingSlide&&(this.updatePendingSlide(),this.animateSlides(this.pendingSlide,!1,!0),this.pendingSlide=null))},onPinchStart:function(t){this.isWorkspaceFrozen||"ready"!==this.status||this.isMini||(this.minScale=Math.min(this.containerSize.width/this.spreadSizes.current.width,this.containerSize.height/this.spreadSizes.current.height),this.scaleFactor=1,this.pinchCenter=t.center,this.isZoomed?(this.updateSlideScroll(!1),this.scaleOrigin={x:t.center.x-this.slideScrollLeft,y:t.center.y-this.slideScrollTop}):this.scaleOrigin={x:t.center.x-this.spreadSizes.current.left,y:t.center.y-this.spreadSizes.current.top},this.status="pinch")},onPinchMove:function(t){if("pinch"===this.status){var e=this.minScale1?this.$root.$emit("zoomed"):this.scaleFactor<1&&this.$root.$emit("unzoomed")}},changeZoom:function(t){switch(t.action){case"setZoom":this.setZoom(t.zoomFactor);break;case"startScale":this.setScaleStart();break;case"changeScale":this.setScale(t.scalePosition);break;case"endScale":this.setScaleFinish();break;case"zoomIn":this.onTap();break;case"zoomOut":this.zoomOut()}},onPanStart:function(t){var e,i;if(!(this.blockPan||this.isWorkspaceFrozen||this.isZoomed||"ready"!==this.status||t.srcEvent&&(t.srcEvent.metaKey||t.srcEvent.ctrlKey)||(null==t||null===(e=t.target)||void 0===e||null===(i=e.classList)||void 0===i?void 0:i.contains("note-article")))){var s=document.elementFromPoint(t.center.x-t.deltaX,t.center.y-t.deltaY);s&&"select-text-block"===s.getAttribute("data-set")||(this.status="pan",this.$root.$emit("turnStart"))}},onPanMove:function(t){var e,i,s=this;if(!(this.blockPan||this.isWorkspaceFrozen||"pan"!==this.status||this.isZoomed||(null==t||null===(e=t.target)||void 0===e||null===(i=e.classList)||void 0===i?void 0:i.contains("note-article")))){var o=1;(t.deltaX<0&&this.isRightmostPage||t.deltaX>0&&this.isLeftmostPage)&&(o=.3),window.requestAnimationFrame((function(){s.delta=t.deltaX*o}))}},onPanEnd:function(t){var e,i;if(!this.isWorkspaceFrozen&&"pan"===this.status&&!this.isZoomed&&!(null==t||null===(e=t.target)||void 0===e||null===(i=e.classList)||void 0===i?void 0:i.contains("note-article"))){var s=Math.abs(t.overallVelocityX).toPrecision(2),o=Math.abs(t.deltaX);t.deltaX>0&&!this.isLeftmostPage&&(o>this.maxDelta/3||s>.5)?this.animateSlides("left"):t.deltaX<0&&!this.isRightmostPage&&(o>this.maxDelta/3||s>.5)?this.animateSlides("right"):this.animateSlides("center")}},zoomOut:function(t){if(1!==this.zoomFactor){if(this.lastZoomFactor=Math.max(this.zoomFactor,this.defaultZoomFactor),t)return this.status="calculating",this.zoomFactor=1,this.refreshScroll(),this.slideScrollLeft=0,this.slideScrollTop=0,this.status="ready",void this.$root.$emit("unzoomed");this.onTap({center:{x:0,y:0}})}},goRight:function(){this.scrollLock=!0,this.$store.dispatch(this.isRtl?"pager/goBackward":"pager/goForward",{target:"slide-swipe"}),this.$root.$emit("render:finish")},goLeft:function(){this.scrollLock=!0,this.$store.dispatch(this.isRtl?"pager/goForward":"pager/goBackward",{target:"slide-swipe"}),this.$root.$emit("render:finish")},animateSlides:function(t){var e,i=this,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n={x:this.delta};switch(t){case"left":e={x:this.maxDelta};break;case"right":e={x:-this.maxDelta};break;case"center":e={x:0}}r&&this.$root.$emit("turnStart"),this.status="sliding",this.$store.dispatch("pager/freeze",{target:"slide-book"}),this.tween=new o.a.Tween(n).to(e,s?0:this.slideAnimationSpeed).easing(o.a.Easing.Sinusoidal.Out).onUpdate((function(){i.delta=n.x})).onComplete((function(){i.$root.$emit("turnStop"),i.$store.dispatch("pager/unfreeze",{target:"slide-book"}),r?i.$root.$emit("render:finish"):"left"===t?i.goLeft():"right"===t&&i.goRight(),i.slidesCacheUpdate(),i.status="ready","center"!==t&&i.$root.$emit("turned")})).start()},getIndexDelta:function(t,e){var i=this.$store.getters["pages/pageIndexById"](t.id),s=this.$store.getters["pages/pageIndexById"](e.id);t.wide&&t.side===(this.isRtl?"left":"right")&&i++,e.wide&&e.side===(this.isRtl?"left":"right")&&s++;var o=i-s;return!this.isSingleMode&&(e.wide||2===e.length)&&o>0&&o--,!this.isSingleMode&&(t.wide||2===t.length)&&o<0&&o++,o},updateHorizontalScale:function(t,e){var i=0;(e.wide||2===e.length)&&i--,(t.wide||2===t.length)&&i++,this.horizontalScale=i>0?2:i<0?.5:1},convertToOutputSlides:function(t){var e=function(e){return{position:e,pages:t[e]||[]}};return[e("current")].concat([e("left")]).concat([e("right")]).filter((function(t){return t.pages.length>0}))},getSlidesWithAllPages:function(t,e){var i=[].concat.apply([],t.map((function(t){return t.pages}))),s=[].concat.apply([],e.map((function(t){return t.pages}))).filter((function(t){return!i.some((function(e){return e.id===t.id}))}));return t.forEach((function(t){t.pages=t.pages.filter((function(t){return!s.some((function(e){return t.id===e.id}))}))})),s.length>0&&s.forEach((function(e){var i={position:"hidden page_"+e.id,pages:[e]};t=t.concat([i])})),t.sort((function(t,e){return t.pages[0].id-e.pages[0].id}))},getNonHiddenSlides:function(t){return t.filter((function(t){return t.position.indexOf("hidden")<0}))},updateOutputSlides:function(){var t=this,e=this.convertToOutputSlides(this.slidesCache);this.outputSlidesCache=this.getSlidesWithAllPages(e,this.outputSlidesCache),this.$nextTick((function(){t.outputSlidesCache=t.getNonHiddenSlides(t.outputSlidesCache)}))},slidesCacheUpdate:function(){this.slidesCache=this.slides,this.delta=0,this.updateOutputSlides()},updatePendingSlide:function(){this.pendingSlide&&this.replaceCachedSlide(this.pendingSlide,this.slides.current)},replaceCachedSlide:function(t,e){this.slidesCache[t]=e,this.updateOutputSlides()},contentCreator:function(t){return $["content-"+t.type]},refreshScroll:function(){var t=this;this.cancelDragging(),this.$nextTick((function(){t.isZoomed&&"ready"===t.status?(t.iScrollInit(t.dragActive),t.iscroll.refresh()):t.iscroll&&(t.slideScrollX=0,t.slideScrollY=0,t.$store.dispatch("text/setHolderScroll",{x:t.slideScrollX,y:t.slideScrollY}),t.iscroll.refresh(),t.iscroll.destroy(),delete t.iscroll)}))},iScrollInit:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];1!==this.zoomFactor&&(this.iscroll?(this.slideScrollX=this.iscroll.x,this.slideScrollY=this.iscroll.y,this.iscroll.off("beforeScrollStart",this.setDragging),this.iscroll.off("scrollCancel",this.cancelDragging),this.iscroll.off("scroll",this.onScrollBegin),this.iscroll.off("scrollEnd",this.onScrollEnd),this.iscroll.destroy(),delete this.iscroll):(this.slideScrollX=this.containerSize.width1||this.scaleFactor>1)return;this.$store.state.notes.opened&&this.$store.dispatch("notes/setOpenedId",{id:null}),t.deltaY>0?this.$store.dispatch("pager/goForward",{target:"wheel"}):t.deltaY<0&&this.$store.dispatch("pager/goBackward",{target:"wheel"})}this.lastWheelTime=Date.now()}},updateSlideScroll:function(t){t&&!this.isZoomed||(this.containerSize.width1&&(!this.isRtl&&!this.isLastPage||this.isRtl&&this.isLastPage?this.arrowAttract="right":(this.isRtl&&!this.isLastPage||!this.isRtl&&this.isLastPage)&&(this.arrowAttract="left"))},addNote:function(){var t=!this.isSingleMode&&!this.isSlideMode,e=this.slides.current[0].id;t&&this.slides.current[1]&&this.isRtl===this.isLocaleRtl&&(e=this.slides.current[1].id);var i=t&&!(this.isLocaleRtl&&this.$store.state.pager.leftPage===this.$store.state.pager.rightPage),s=this.isSingleMode&&this.slides.current[0].wide&&"right"===this.slides.current[0].side,o=this.isSlideMode&&this.slides.current[0].wide,r=i||s;this.$store.dispatch("notes/addNote",{pageId:e,wide:o,wideRight:r})},updateNoteIcon:function(){if(!this.noteIconShown)return this.noteIconClass=[],void(this.noteIconStyle=null);var t={},e=[];if(this.isLocaleRtl){e.push("left");var i=this.spreadSizes.current.left-30;t.left=Math.max(i,0)+"px",i>0&&e.push("outside")}else{e.push("right");var s=this.spreadSizes.current.left+this.spreadSizes.current.width;t.left=Math.min(s,this.containerSize.width-30)+"px",st.scale?e:t}))},containerClasses:function(){return{overlap:!!this.optimalRect.sizeOverride}},containerStyles:function(){if(!this.optimalRect.scale)return{display:"none"};var t={opacity:this.isReady?1:0,width:this.originalWidth*this.optimalRect.scale+"px",height:this.originalHeight*this.optimalRect.scale+"px"};return t.top=Object(o.isUndefined)(this.optimalRect.top)?null:this.optimalRect.top+"px",t.bottom=Object(o.isUndefined)(this.optimalRect.bottom)?null:this.optimalRect.bottom+"px",t.left=Object(o.isUndefined)(this.optimalRect.left)?null:this.optimalRect.left+"px",t.right=Object(o.isUndefined)(this.optimalRect.right)?null:this.optimalRect.right+"px","0px"!==t.width&&"0px"!==t.height||(t.display="none"),t},imageStyles:function(){return{width:this.originalWidth*this.optimalRect.scale+"px",height:this.originalHeight*this.optimalRect.scale+"px"}},opaqueBottom:function(){return this.$store.state.skin&&this.$store.state.skin.styles&&Object(o.isString)(this.$store.state.skin.styles.classes)?-1!==this.$store.state.skin.styles.classes.indexOf("opaqueBottom"):null}},watch:{miniState:function(t){this.bottomMenu=t?null:document.getElementsByClassName("bottom-toolbar")[0]},bottomMenuEnabled:function(){this.bottomMenu=this.miniState?null:document.getElementsByClassName("bottom-toolbar")[0]},customLogoUrl:"logoLoad",hasDefaultLogo:"logoLoad",side:"setSvgTransform"},methods:{logoLoad:function(){var t=this;if(this.isReady=!1,!this.hasDefaultLogo&&this.customLogoUrl){var e=document.createElement("img");this.crossOrigin&&(e.crossOrigin=this.crossOrigin),e.onload=function(){t.originalWidth=e.naturalWidth,t.originalHeight=e.naturalHeight,t.isReady=!0},e.onerror=function(){},e.src=this.customLogoUrl,e.style.width="100%"}else this.hasDefaultLogo&&(this.originalWidth=119,this.originalHeight=30,this.isReady=!0)},calculateScale:function(t){if(0===this.originalWidth||0===this.originalHeight)return 0;if(t.width<0||t.height<0)return 0;var e=1,i=1;return this.originalHeight>t.height&&(e=t.height/this.originalHeight),this.originalWidth>t.width&&(i=t.width/this.originalWidth),Math.min(i,e,1)},applySizeConstraints:function(t){this.hasDefaultLogo?(t.width=t.lockWidth?t.width:this.originalWidth,t.height=t.lockHeight?t.height:this.originalHeight):(!t.lockWidth&&t.width1&&void 0!==arguments[1]&&arguments[1];this.timeout>Date.now()||(this.$store.dispatch(this.isRTLBook?"pager/goBackward":"pager/goForward",{target:e?"nav-swipe":"nav-tap"}),this.timeout=Date.now()+150)},goLeft:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.timeout>Date.now()||(this.$store.dispatch(this.isRTLBook?"pager/goForward":"pager/goBackward",{target:e?"nav-swipe":"nav-tap"}),this.timeout=Date.now()+150)}}}},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(170);e.default=s.default},function(t,e,i){"use strict";i.r(e);i(398),i(399),i(57),i(58);e.default={props:{show:Boolean},data:function(){return{timeout:0,classes:{"nav-arrows":!0,start:!0}}},mounted:function(){var t=this;setTimeout((function(){t.classes.start=!1}),8e3)},computed:{isRTLBook:function(){return this.$store.state.book.rightToLeft},isFirstPage:function(){var t=null===this.$store.getters["pager/prevNonStubPageId"],e=null===this.$store.getters["pager/nextPageId"];return this.isRTLBook?e:t},isLastPage:function(){var t=null===this.$store.getters["pager/nextPageId"],e=null===this.$store.getters["pager/prevNonStubPageId"];return this.isRTLBook?e:t},isEmbed:function(){return this.$store.state.workspace.isEmbed},leftArrowTitle:function(){return this.isRTLBook?this.$t("NavigationPanel.NEXT_PAGE_TIP"):this.$t("NavigationPanel.PREV_PAGE_TIP")},rightArrowTitle:function(){return this.isRTLBook?this.$t("NavigationPanel.PREV_PAGE_TIP"):this.$t("NavigationPanel.NEXT_PAGE_TIP")},leftMostArrowTitle:function(){return this.isRTLBook?this.$t("NavigationPanel.LAST_PAGE_TIP"):this.$t("NavigationPanel.FIRST_PAGE_TIP")},rightMostArrowTitle:function(){return this.isRTLBook?this.$t("NavigationPanel.FIRST_PAGE_TIP"):this.$t("NavigationPanel.LAST_PAGE_TIP")},animationInProgress:function(){return this.$store.state.workspace.animationInProgress}},watch:{animationInProgress:function(){this.classes.start=!1}},methods:{goRight:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.timeout>Date.now()||(this.$store.dispatch(this.isRTLBook?"pager/goBackward":"pager/goForward",{target:e?"nav-swipe":"nav-tap"}),this.timeout=Date.now()+150)},goLeft:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.timeout>Date.now()||(this.$store.dispatch(this.isRTLBook?"pager/goForward":"pager/goBackward",{target:e?"nav-swipe":"nav-tap"}),this.timeout=Date.now()+150)},rightToTheLast:function(){this.timeout>Date.now()||(this.isRTLBook?this.$store.dispatch("pager/goToFirst",{target:"nav-first"}):this.$store.dispatch("pager/goToLast",{target:"nav-last"}),this.timeout=Date.now()+150)},leftToTheLast:function(){this.timeout>Date.now()||(this.isRTLBook?this.$store.dispatch("pager/goToLast",{target:"nav-last"}):this.$store.dispatch("pager/goToFirst",{target:"nav-first"}),this.timeout=Date.now()+150)}}}},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(173);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(3);i(698),i(699);e.default={name:"ZoomPanel",data:function(){return{scalePosition:0,savedScalePosition:null,lineRect:{width:0,left:0},forceOpacity:!1,forceVisibility:!1,opacityTimer:null,isGrabbing:!1}},mounted:function(){this.lineRect=this.$refs.zoomLine.getBoundingClientRect(),window.addEventListener("keydown",this.keyDownHandler),this.$root.$on("unzoomed",this.hide)},beforeDestroy:function(){window.removeEventListener("keydown",this.keyDownHandler),this.$root.$off("unzoomed",this.hide)},watch:{zoomFactor:function(t){t>this.minZoom?this.scalePosition=1*((t-this.minZoom)/(this.maxZoom-this.minZoom)).toFixed(2):this.scalePosition=0},minZoom:function(t){this.zoomFactor>t?this.scalePosition=1*((this.zoomFactor-t)/(this.maxZoom-t)).toFixed(2):this.scalePosition=0},scalePosition:function(){var t=this;this.forceOpacity=!0,clearTimeout(this.opacityTimer),this.opacityTimer=setTimeout((function(){t.forceOpacity=!1}),2e3)},pagerState:function(){this.forceVisibility=!1},visible:function(t){this.$store.dispatch("workspace/setZoomPanel",t)},zoomPanel:function(t){t||(this.forceVisibility=!1)}},computed:{zoomFactor:function(){return this.$store.state.pages.size.zoomFactor},isRtl:function(){return this.$store.getters["i18n/isLocaleRtl"]},dir:function(){return this.isRtl?"rtl":"ltr"},pagerState:function(){return[this.$store.state.pager.leftPage,this.$store.state.pager.rightPage]},visible:function(){return this.zoomFactor>this.minZoom||this.forceVisibility},zoomPanel:function(){return this.$store.state.workspace.zoomPanel},minZoom:function(){if("slide-book"===this.$store.state.workspace.bookComponent)return 1;var t=this.isHardcover&&(this.isFirstPage||this.isLastPage)?1.03:1;return Math.min(this.$store.state.workspace.containerSize.height/(this.$store.state.pages.size.height*t/this.$store.state.pages.size.zoomFactor),this.$store.state.workspace.containerSize.width/(this.$store.state.pages.size.width*t*2/this.$store.state.pages.size.zoomFactor))},isFirstPage:function(){return this.$store.getters["pager/isFirstPage"]},isLastPage:function(){return this.$store.getters["pager/isLastPage"]},maxZoom:function(){return this.$store.state.workspace.maxZoom},sliderStyle:function(){var t={},e=6;return this.isRtl?t.right=Math.round((this.lineRect.width-e)*this.scalePosition)+"px":t.left=Math.round((this.lineRect.width-e)*this.scalePosition)+"px",t},panelClass:function(){return{grabbing:this.isGrabbing}},panelStyle:function(){return{opacity:this.forceOpacity?.9:null,visibility:this.visible?"visible":"hidden"}}},methods:{zoomOut:function(){if(!this.$store.state.workspace.animationInProgress&&(!1!==this.forceVisibility||0!==this.scalePosition)){if(this.scalePosition>.1)this.scalePosition-=.1;else{if(!0===this.forceVisibility&&0===this.scalePosition)return this.forceVisibility=!1,void this.$root.$emit("zoomPanel",{action:"zoomOut"});this.forceVisibility=!0,this.scalePosition=0}this.$root.$emit("zoomPanel",{action:"setZoom",zoomFactor:1*(this.scalePosition*(this.maxZoom-this.minZoom)+this.minZoom).toFixed(2),fast:!0})}},zoomOutFull:function(){this.$store.state.workspace.animationInProgress||(this.forceVisibility=!1,this.$root.$emit("zoomPanel",{action:"zoomOut"}))},zoomIn:function(){this.$store.state.workspace.animationInProgress||(0!==this.scalePosition||this.visible?(this.scalePosition<0&&(this.scalePosition=0),this.scalePosition<.9?this.scalePosition+=.1:this.scalePosition=1,this.$root.$emit("zoomPanel",{action:"setZoom",zoomFactor:1*(this.scalePosition*(this.maxZoom-this.minZoom)+this.minZoom).toFixed(2),fast:!0})):this.$root.$emit("zoomPanel",{action:"zoomIn"}))},lineClick:function(t){var e=this;this.$store.state.workspace.animationInProgress||(this.lineRect=this.$refs.zoomLine.getBoundingClientRect(),this.isRtl?this.scalePosition=(this.lineRect.width-t.clientX+this.lineRect.left)/this.lineRect.width:this.scalePosition=(t.clientX-this.lineRect.left)/this.lineRect.width,this.scalePosition<=0&&(this.scalePosition=0),0===this.scalePosition&&(this.forceVisibility=!0),this.$nextTick((function(){e.$root.$emit("zoomPanel",{action:"setZoom",zoomFactor:1*(e.scalePosition*(e.maxZoom-e.minZoom)+e.minZoom).toFixed(2),fast:!1})})))},onPanStart:function(){this.savedScalePosition=this.scalePosition,this.isGrabbing=!0,this.$root.$emit("zoomPanel",{action:"startScale"})},onPanMove:function(t){var e=1*(this.isRtl?-t.deltaX/this.lineRect.width:t.deltaX/this.lineRect.width).toFixed(2);this.scalePosition=this.savedScalePosition+e,this.scalePosition>1&&(this.scalePosition=1),this.scalePosition<=0&&(this.scalePosition=0);var i=this.scalePosition/this.savedScalePosition;this.$root.$emit("zoomPanel",{action:"changeScale",scalePosition:this.scalePosition,scaleRatio:i})},onPanEnd:function(t){this.isGrabbing=!1;var e=1*(this.isRtl?-t.deltaX/this.lineRect.width:t.deltaX/this.lineRect.width).toFixed(2);this.scalePosition+=e,this.scalePosition>1&&(this.scalePosition=1),this.scalePosition<=0&&(this.scalePosition=0),0===this.scalePosition?this.forceVisibility=!0:this.forceVisibility=!1,this.$root.$emit("zoomPanel",{action:"endScale",zoomFactor:this.scalePosition*(this.maxZoom-this.minZoom)+this.minZoom})},keyDownHandler:function(t){if(Object(s.isNull)(t.target)||Object(s.isUndefined)(t.target)||"input"!==t.target.tagName.toLowerCase()&&"textarea"!==t.target.tagName.toLowerCase()&&"select"!==t.target.tagName.toLowerCase()&&"option"!==t.target.tagName.toLowerCase()){var e="+",i="-",o="=",r="_",n="0",a="Add",h="Subtract",l=107,c=109,d=187,u=189,p=48;switch(t.key){case o:case e:case a:(t.metaKey||t.ctrlKey)&&(t.preventDefault(),this.zoomIn());break;case r:case i:case h:(t.metaKey||t.ctrlKey)&&(t.preventDefault(),this.zoomOut());break;case n:(t.metaKey||t.ctrlKey)&&(t.preventDefault(),this.zoomOutFull());break;case"Unidentified":switch(t.keyCode){case d:case l:(t.metaKey||t.ctrlKey)&&(this.zoomIn(),t.preventDefault());break;case u:case c:(t.metaKey||t.ctrlKey)&&(this.zoomOut(),t.preventDefault());break;case p:(t.metaKey||t.ctrlKey)&&(t.preventDefault(),this.zoomOutFull())}}}},hide:function(){this.forceVisibility=!1,this.$store.dispatch("workspace/setZoomPanel",!1)}}}},function(t,e,i){},function(t,e,i){},,,,,,,,,,,,,,,,,,,,,,function(t,e,i){i(0).register({close:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},,,,,,,,,,function(t,e,i){"use strict";i.r(e);var s=i(208);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(24),o=i.n(s),r=i(5),n=i(15);e.default={name:"Thumb",props:{id:{type:[String,Number],required:!0},side:{type:String,required:!1,default:"both",validator:function(t){return-1!==["left","right","both"].indexOf(t)}},size:{type:Object,required:!1,default:null},contentCrop:{type:Boolean,default:!1}},data:function(){return{isReady:!0,pageId:this.id,pageSide:this.side,crossOrigin:Object(r.default)().getCrossOrigin(),isWide:!1,isStub:!1,hasError:!1,backgroundColor:"#ffffff",thumbnailUrl:null,pageResize:null,contentWidth:0,contentHeight:0}},components:{spinner:o.a},beforeMount:function(){this.getProperties()},watch:{id:function(t){this.pageId=t},side:function(t){this.pageSide=t},changeProperty:function(t){t.pageID===this.pageId&&this.getProperties()},pageId:function(){this.getProperties()}},methods:{getProperties:function(){this.isWide=this.$store.getters["pages/pageProp"](this.pageId,"wide"),this.isStub=this.$store.getters["pages/pageProp"](this.pageId,"stub"),this.hasError=-1===this.$store.getters["pages/pageProp"](this.pageId,"thumbnailUrl"),this.backgroundColor=this.$store.getters["pages/pageProp"](this.pageId,"backgroundColor"),this.thumbnailUrl=this.$store.getters["pages/pageProp"](this.pageId,"thumbnailUrl"),this.pageResize=this.$store.getters["pages/pageProp"](this.pageId,"pageResize"),this.contentWidth=this.$store.getters["pages/pageProp"](this.pageId,"width")/this.contentWidthMultiplier,this.contentHeight=this.$store.getters["pages/pageProp"](this.pageId,"height")}},computed:{imageAlt:function(){return this.$i18n.t("AlertMessage.LINK_PAGE_TIP")+" "+this.pageCaption+" ("+this.$i18n.t("ThumbnailsToolWindow.TITLE")+")"},pageCaption:function(){return this.$store.getters["pages/pageCaptionById"](this.id)},className:function(){return{thumb:!0,double:this.bookMode&&this.isWide&&"both"===this.pageSide,loading:this.isLoading,unready:!this.isReady,error:this.hasError}},preloaderVisible:function(){return!this.isStub&&(this.isLoading||!this.isReady||this.hasError)},rightPreloaderVisible:function(){return this.preloaderVisible&&this.bookMode&&this.isWide&&"both"===this.pageSide},preloaderSize:function(){return 24},preloaderLineSize:function(){return 2},background:function(){return this.pageId&&this.isReady&&!this.hasError?this.isStub?Object(r.default)().translatePath("assets/pages/pagestub.png"):this.thumbnailUrl?this.thumbnailUrl:null:null},isLoading:function(){return!this.thumbnailUrl||(0===this.$store.state.pages.size.width||null===this.$store.state.pages.size.width)},pageWidthMultiplier:function(){return this.isWide&&"both"===this.pageSide?2:1},contentWidthMultiplier:function(){return this.isWide&&"both"!==this.pageSide?"2":"1"},pagesSize:function(){return this.$store.getters["pages/size"]},pageSize:function(){return this.size&&this.size.width&&this.size.height?{width:this.size.width,height:this.size.height}:{width:this.pagesSize.width*this.pageWidthMultiplier,height:1*this.pagesSize.height}},bookMode:function(){return!this.$store.state.pager.singleMode&&!this.$store.state.pager.slideMode},pageStyle:function(){return{width:(this.contentCrop?this.contentSize.width:this.pageSize.width)+"px",height:(this.contentCrop?this.contentSize.height:this.pageSize.height)+"px","background-color":this.backgroundColor}},contentSize:function(){if(this.pageId){var t,e=this.pageResize,i=this.contentWidth,s=this.contentHeight;return t="FIT"===e?Object(n.fit)({width:i,height:s},this.pageSize):Object(n.fill)({width:i,height:s},this.pageSize),{width:Math.ceil(t.width),height:Math.ceil(t.height),scaleRatio:{w:t.width/i,h:t.height/s}}}return{width:0,height:0,scaleRatio:{w:0,h:0}}},contentStyle:function(){var t=this.contentCrop?0:(this.pageSize.width-this.contentSize.width)/(this.isWide&&"both"!==this.pageSide?1:2),e=this.contentCrop?0:(this.pageSize.height-this.contentSize.height)/2,i={width:this.contentSize.width*this.contentWidthMultiplier+"px",height:this.contentSize.height+"px"};return"right"===this.pageSide?(i.right="0",t&&(i.marginRight=t+"px")):(i.left="0",t&&(i.marginLeft=t+"px")),e&&(i.marginTop=e+"px"),i},changeProperty:function(){return this.$store.state.pages.changeInPage}}}},function(t,e,i){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){i(0).register({thumbnails:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},,,,,,,,,,function(t,e,i){"use strict";i.r(e);var s=i(612),o=i(102),r=(i(701),i(1)),n=Object(r.default)(o.default,s.render,s.staticRenderFns,!1,null,"1e94cca4",null);n.options.__file="src/components/common/book-container/index.vue",e.default=n.exports},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return s})),i.d(e,"staticRenderFns",(function(){return o}));var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"book-container",class:t.containerClass},[t.hasPages?i(t.bookComponent,{ref:"bookComponent",tag:"component",attrs:{"container-size":t.containerSize,"page-size":t.bookSize,"substrate-styles":t.setSubstrateStyleHeightTop,dir:"ltr"}}):t._e(),t._v(" "),t.showPrevSubstrate?i("div",{staticClass:"book-substrate-prev",style:t.substrateStyle,attrs:{"aria-hidden":"true"},on:{click:t.prevPage,mouseover:function(e){return t.arrowHover("prev",!0)},mouseout:function(e){return t.arrowHover("prev",!1)}}}):t._e(),t._v(" "),t.showNextSubstrate?i("div",{staticClass:"book-substrate-next",style:t.substrateStyle,attrs:{"aria-hidden":"true"},on:{click:t.nextPage,mouseover:function(e){return t.arrowHover("next",!0)},mouseout:function(e){return t.arrowHover("next",!1)}}}):t._e(),t._v(" "),i("transition",{attrs:{name:"bars-fade"}},[t.showSimpleArrows?i("nav-buttons",{attrs:{show:!0}}):t._e(),t._v(" "),t.showSmartArrows?i("slide-nav-buttons",{attrs:{show:!0}}):t._e()],1),t._v(" "),"html"===t.version?i("logo"):t._e(),t._v(" "),i("transition",{attrs:{name:"slide-fade"}},["html"===t.version?i("zoom-panel"):t._e()],1),t._v(" "),i("transition",{attrs:{name:t.ctrFade},on:{"after-enter":t.afterFade}},[t.miniState&&!t.miniFullScreen?i("div",{key:"maxi",class:t.clickToReadClass,on:{click:t.wsToggleFullscreen}},[t._v("\n "+t._s(t.clickToReadText)+"\n ")]):t._e(),t._v(" "),t.miniState&&t.miniFullScreen?i("div",{key:"mini",class:t.miniClickToReadClass,attrs:{title:t.$t("BottomMenu.FULLSCREEN_BUTTON_TIP")},on:{click:t.wsToggleFullscreen}},[i("div",{staticClass:"fullscreen-button-mini-holder"},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"fullscreen"}})],1)]):t._e()])],1)},o=[];s._withStripped=!0},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return s})),i.d(e,"staticRenderFns",(function(){return o}));var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"flip-book",class:t.flipBookClass},[i("v-touch",t._g({ref:"bookHolder",staticClass:"book-holder",style:[t.bookHolderStyle],attrs:{tag:"div",id:"book-holder","data-frozen-by":t.frozenBy},nativeOn:{transitionend:function(e){return t.transitionEnd(e)}}},t.eventHandlers),[t.selectTextEnabled?i("select-text-panel"):t._e(),t._v(" "),i("transition",{attrs:{name:"bars-fade"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.showLeftButtons,expression:"showLeftButtons"}],staticClass:"previous-button",on:{mouseover:function(e){return t.arrowHover("prev",!0)},mouseout:function(e){return t.arrowHover("prev",!1)}}},[t.notesEnabled&&!t.showRightAddNote?i("button",{staticClass:"icon-add-note left-add-note stripe-btn",attrs:{tabindex:"0","aria-label":t.addNoteTitleText,title:t.addNoteTitleText,"data-nav-name":"notes-left"},on:{click:function(e){return e.stopPropagation(),t.btnAddNote("left")},mousedown:function(t){t.preventDefault()},mouseover:function(e){return e.stopPropagation(),t.arrowHover("prev",!1)}}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"add-note"}})],1):t._e(),t._v(" "),i("button",{staticClass:"icon-book-prev stripe-btn",attrs:{tabindex:"0","aria-label":t.leftArrowTitle,title:t.leftArrowTitle,"data-nav-name":"go-left"},on:{click:function(e){return e.stopPropagation(),t.prevPage(e)},mousedown:function(t){t.preventDefault()}}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"book-prev"}})],1),t._v(" "),i("button",{staticClass:"icon-book-first stripe-btn",attrs:{tabindex:"0","aria-label":t.leftMostArrowTitle,title:t.leftMostArrowTitle,"data-nav-name":"go-last-left"},on:{click:function(e){return e.stopPropagation(),t.firstPage(e)},mouseover:function(e){return e.stopPropagation(),t.arrowHover("prev",!1)},mousedown:function(t){t.preventDefault()}}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"book-first"}})],1)])]),t._v(" "),i("transition",{attrs:{name:"bars-fade"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.showRightButtons,expression:"showRightButtons"}],staticClass:"next-button",on:{mouseover:function(e){return t.arrowHover("next",!0)},mouseout:function(e){return t.arrowHover("next",!1)}}},[t.notesEnabled&&t.showRightAddNote?i("button",{staticClass:"icon-add-note right-add-note stripe-btn",attrs:{tabindex:"0","aria-label":t.addNoteTitleText,title:t.addNoteTitleText,"data-nav-name":"notes-right"},on:{click:function(e){return e.stopPropagation(),t.btnAddNote("right")},mouseover:function(e){return e.stopPropagation(),t.arrowHover("next",!1)},mousedown:function(t){t.preventDefault()}}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"add-note"}})],1):t._e(),t._v(" "),i("button",{staticClass:"icon-book-next stripe-btn",attrs:{tabindex:"0","aria-label":t.rightArrowTitle,title:t.rightArrowTitle,"data-nav-name":"go-right"},on:{click:function(e){return e.stopPropagation(),t.nextPage(e)},mousedown:function(t){t.preventDefault()}}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"book-next"}})],1),t._v(" "),i("button",{staticClass:"icon-book-last stripe-btn",attrs:{tabindex:"0","aria-label":t.rightMostArrowTitle,title:t.rightMostArrowTitle,"data-nav-name":"go-last-right"},on:{click:function(e){return e.stopPropagation(),t.lastPage(e)},mouseover:function(e){return e.stopPropagation(),t.arrowHover("next",!1)},mousedown:function(t){t.preventDefault()}}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"book-last"}})],1)])])],1)],1)},o=[];s._withStripped=!0},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return s})),i.d(e,"staticRenderFns",(function(){return o}));var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.className,style:t.pageStyle,attrs:{"data-page-id":t.pageId,"aria-hidden":!t.isCurrent},on:{mousedown:function(e){return e.preventDefault(),t.onMouseDown(e)}}},[i("transition",{attrs:{name:"page-fade"}},[t.showPreloaderContainer?i("div",{staticClass:"page-preloader",style:{backgroundColor:t.backgroundColor}},[t.isCurrent?i("div",{staticClass:"preloader-container"},[t.showSpinner?i("spinner",{staticClass:"preloader-spinner",attrs:{size:36,"line-size":3,"line-fg-color":"#5692AE","line-bg-color":"#ffffff"}}):t._e(),t._v(" "),i("div",{staticClass:"preloader-bg"}),t._v(" "),i("div",{staticClass:"preloader-header",attrs:{dir:t.dir}},[t._v(t._s(t.preloaderHeader))]),t._v(" "),i("div",{staticClass:"preloader-text",attrs:{dir:t.dir}},[t._v(t._s(t.preloaderText))])],1):t._e(),t._v(" "),t.showThumbnail?i("div",{staticClass:"preloader-th",style:t.thumbnailStyle},[i("img",{attrs:{crossOrigin:t.crossOrigin,src:t.thumbnailUrl}})]):t._e()]):t._e()]),t._v(" "),i("div",{staticClass:"background",style:t.contentStyle,attrs:{"data-id":t.pageId}},[i("img",{ref:"bgImage",staticClass:"bg-layer",attrs:{crossOrigin:t.crossOrigin,src:"","aria-hidden":"true"}}),t._v(" "),t._l(t.backgroundsCache,(function(e,s){return t.canvasUpdated?t._e():i("img",{key:s,attrs:{"data-img":"backgroundsCache",crossOrigin:t.crossOrigin,src:e,"aria-hidden":"true"},on:{load:function(i){return t.bgCacheImageLoaded(e)}}})})),t._v(" "),t.vectorLayerCache?i("img",{ref:"bgSVG",class:"svg-layer"+(t.isCurrent?"":" svg-layer-not-current"),attrs:{crossOrigin:t.crossOrigin,src:t.vectorLayerCache}}):t._e()],2),t._v(" "),t.showHighlights?i("div",{staticClass:"highlights",style:t.contentStyle},[t._l(t.highlights,(function(t){return[i("div",{style:t.style})]}))],2):t._e(),t._v(" "),i("v-touch",{staticClass:"touch-layer",style:t.contentTouchLayerStyle,attrs:{options:{domEvents:!0}},on:{tap:t.onContentTap}},[!t.isMobile&&t.selectTextEnabled?i("select-text",{directives:[{name:"show",rawName:"v-show",value:t.isCurrent&&!t.contentFreezed&&"animating"!==t.bookStatus&&"calculating"!==t.bookStatus,expression:"isCurrent && !contentFreezed &&\n bookStatus !== 'animating' && bookStatus !== 'calculating'"}],attrs:{contStyle:t.contentStyle,"page-side":t.pageSide,"is-wide":t.isWide,"page-id":t.pageId,containerSize:t.contentSize,isCurrent:t.isCurrent,isLoaded:!t.isLoadingCache}}):t._e(),t._v(" "),!t.isLoadingCache&&t.isCurrent&&t.selectTextEnabled&&t.mobileShowEffectPass?i("select-text-mobile",{attrs:{contStyle:t.contentStyle,"page-side":t.pageSide,"is-wide":t.isWide,"page-id":t.pageId,containerSize:t.contentSize,isCurrent:t.isCurrent}}):t._e(),t._v(" "),t.androidIframe||t.showInvisibleContent?i("div",{directives:[{name:"show",rawName:"v-show",value:!t.androidIframe||t.showInvisibleContent,expression:"!androidIframe || showInvisibleContent"}],staticClass:"content inv",style:t.contentStyle},[t._l(t.sortedContent.inv,(function(e){return[i(e.component,{directives:[{name:"show",rawName:"v-show",value:!t.isLoadingCache,expression:"!isLoadingCache"}],key:e.itemId,tag:"component",attrs:{data:e,isCurrent:t.isCurrent},on:{ready:t.contentItemReady,error:t.contentError}})]}))],2):t._e(),t._v(" "),i("div",{staticClass:"content vis",style:t.contentStyle},[t._l(t.sortedContent.visible,(function(e){return[i(e.component,{directives:[{name:"show",rawName:"v-show",value:!t.isLoadingCache,expression:"!isLoadingCache"}],key:e.itemId,tag:"component",attrs:{data:e,isCurrent:t.isCurrent},on:{ready:t.contentItemReady,error:t.contentError}})]}))],2)],1),t._v(" "),t._l(t.notesArray,(function(e,s){return i("note",{key:s,attrs:{data:e,size:t.pageSize,side:t.pageSide,isWide:t.isWide,isOutsideHardcover:t.isOutsideHardcover}})})),t._v(" "),t.flipCornerEnabled?i("flip-me",{attrs:{pageId:t.pageId,isLeft:"left"===t.pageSide}}):t._e()],2)},o=[];s._withStripped=!0},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return s})),i.d(e,"staticRenderFns",(function(){return o}));var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-touch",{class:"selecttext"+(t.showCanvas?" active":""),style:t.contStyle,on:{pan:t.pan,panstart:t.reset,panend:t.panEnd,pancancel:t.panEnd,press:t.test}},[t.showCanvas?i("canvas",{class:t.canvasClass,style:{position:"absolute",right:"right"===t.pageSide&&t.isWide?0:"none"},attrs:{width:t.containerSize.width,height:t.containerSize.height}}):t._e(),t._v(" "),t._l(t.textBlockSizes,(function(e,s){return i("div",{staticClass:"text-block",style:{width:e.width+"px",top:e.top+"px",left:e.left+"px",height:e.height+"px"},attrs:{"data-set":"select-text-block"}},[t.highLightBlocks?i("span",{style:{opacity:.8,textAlign:"right",backgroundColor:"aqua",position:"absolute",top:"0",bottom:"0",left:"0",right:"0"}},[t._v(t._s(s))]):t._e(),t._v(" "),t._l(t.finalTree[s].lines,(function(s,o){return t.highLightBlocks?i("span",{style:{opacity:.5,backgroundColor:"red",position:"absolute",top:s.top*t.containerSize.scaleRatio.h-e.top+"px",left:s.left*t.containerSize.scaleRatio.w-e.left+"px",width:s.width*t.containerSize.scaleRatio.w+"px",height:s.height*t.containerSize.scaleRatio.h+"px"}},[t._v(t._s(o))]):t._e()}))],2)}))],2)},o=[];s._withStripped=!0},function(t,e,i){"use strict";i.r(e);var s=i(618),o=i(619),r=i(8);e.default={props:["containerSize","pageId","isWide","pageSide","isLoaded","isCurrent","contStyle"],data:function(){return{finalTree:[],pageRect:null,selectedSymbols:[],showEffect:!1,isCrossWide:!1}},created:function(){this.updateSelectedTextDebounced=Object(r.debounce)((function(){var t=new o.UnicodeBiDi,e=this.$store.state.book.rightToLeft,i=t.getSelectedText(this.selectedSymbols,e);this.$store.dispatch("text/setSelectedText",i)}),100),this.isCurrent&&this.getAndParseXML()},methods:{initContext:function(){var t=this.$el.getElementsByTagName("canvas")[0];t&&(this.context=t.getContext("2d"))},resetContext:function(){this.context&&(this.context=null)},getAndParseXML:function(){if(this.$store.getters["search/isSelectTextInfoLoaded"](this.pageId)){var t="slide-book"===this.$store.state.workspace.bookComponent&&this.$store.state.pager.slideMode,e=this.$store.getters["search/getSelectTextInfo"](this.pageId,"right"===this.pageSide,t);this.finalTree=Object.freeze(e.finalTree),this.isCrossWide=e.isCrossWide,this.isRtlSelection=e.isRtlSelection,0!==this.userRect.width&&this.parseRect(this.$store.state.text.selectionRect)}},parseRect:function(t){if(this.isWide&&!this.isCrossWide){var e=this.$store.getters["pages/pageProp"](this.pageId,"width")/2;if("left"===this.pageSide&&t.left>=e||"right"===this.pageSide&&t.left0?this.pageRect=this.$el.getBoundingClientRect():this.pageRect=null}},watch:{userRect:function(t,e){t.top===e.top&&t.left===e.left&&t.width===e.width&&t.height===e.height||this.parseRect(t)},selectedSymbols:function(t){var e=this;null!==t?(t.length>0?this.$nextTick((function(){e.context||e.initContext(),e.context.clearRect(0,0,e.containerSize.width,e.containerSize.height),e.context.fillStyle="#027bff";for(var i=0,s=t.length;i0},selectTextInfoLoaded:function(){return this.$store.state.search.selectTextInfoLoaded},animationInProgress:function(){return this.$store.getters["workspace/animationInProgress"]}}}},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return s})),i.d(e,"staticRenderFns",(function(){return o}));var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-touch",{staticClass:"selecttext",style:t.contStyle,on:{tap:t.reset}},[this.showCanvas?i("canvas",{class:t.canvasClass,style:{position:"absolute",right:"right"===t.pageSide&&t.isWide?0:"none"},attrs:{width:t.containerSize.width,height:t.containerSize.height}}):t._e()])},o=[];s._withStripped=!0},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return s})),i.d(e,"staticRenderFns",(function(){return o}));var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-touch",{staticClass:"publication-note",style:t.noteStyle,on:{tap:t.onNoteClick}},[i("div",{ref:"icon",class:t.iconClass},[i("svgicon",{attrs:{focusable:"false",name:"note-content"}})],1),t._v(" "),i("transition",{attrs:{name:"note-fade"}},[t.showRect?i("div",{ref:"rect",class:t.rectClass,style:t.rectStyle,attrs:{role:"dialog"}},[i("div",{staticClass:"note-body",style:t.noteBodyStyle},[i("textarea",{ref:"text",staticClass:"note-article",attrs:{role:"textbox",dir:"ltr",maxlength:"500",placeholder:t.placeholderText,tabindex:"0"},domProps:{value:t.data.text},on:{blur:t.saveText,focus:t.focusTextArea,input:t.setTextareaDir,keydown:function(e){return(e.type.indexOf("key")||13===e.keyCode)&&e.ctrlKey?t.setViewState(e):null}}})]),t._v(" "),t.miniRect?t._e():i("div",{staticClass:"note-footer",attrs:{"aria-hidden":"true"}},[i("div",{class:t.colorSetClass},[i("div",{staticClass:"note-border-color green",on:{click:function(e){return t.setColor("green")}}},[i("div",{staticClass:"note-color"})]),t._v(" "),i("div",{staticClass:"note-border-color blue",on:{click:function(e){return t.setColor("blue")}}},[i("div",{staticClass:"note-color"})]),t._v(" "),i("div",{staticClass:"note-border-color violet",on:{click:function(e){return t.setColor("violet")}}},[i("div",{staticClass:"note-color"})]),t._v(" "),i("div",{staticClass:"note-border-color red",on:{click:function(e){return t.setColor("red")}}},[i("div",{staticClass:"note-color"})]),t._v(" "),i("div",{staticClass:"note-border-color orange",on:{click:function(e){return t.setColor("orange")}}},[i("div",{staticClass:"note-color"})]),t._v(" "),i("div",{staticClass:"note-border-color gray",on:{click:function(e){return t.setColor("gray")}}},[i("div",{staticClass:"note-color"})])]),t._v(" "),i("div",{staticClass:"note-time"},[t._v(t._s(t.formattedTime))]),t._v(" "),i("span",{staticClass:"icon icon-trash-can note-button note-delete-button",attrs:{title:t.deleteTip},on:{click:t.deleteNoteCheck}},[i("svgicon",{attrs:{focusable:"false",name:"trash-can"}})],1)]),t._v(" "),t.deleteDialog?i("div",{staticClass:"note-delete-dialog",attrs:{dir:t.dir,"aria-hidden":"true"}},[i("div",{staticClass:"note-delete-dialog-text"},[i("div",{staticClass:"note-delete-dialog-text-flex"},[i("span",[t._v(t._s(t.dialogDeleteText))])])]),t._v(" "),i("div",{staticClass:"note-delete-dialog-buttons"},[i("span",{staticClass:"note-delete-dialog-cancel",on:{click:t.deleteDialogCancel}},[t._v(t._s(t.cancelButton))]),t._v(" "),i("span",{staticClass:"note-delete-dialog-confirm",on:{click:function(e){return t.deleteNote(e,"editor")}}},[t._v(t._s(t.deleteButton))])])]):t._e()]):t._e()])],1)},o=[];s._withStripped=!0},function(t,e,i){i(0).register({"trash-can":{width:16,height:16,viewBox:"0 0 24 24",data:''}})},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return s})),i.d(e,"staticRenderFns",(function(){return o}));var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:{"flip-me-container":!0,left:t.isLeft}},[i("div",{staticClass:"flip-me-backface",style:t.backfaceStyle},[t._l(t.backfaceBackgrounds,(function(e,s){return i("img",{key:s,staticClass:"flip-me-image",style:t.backfaceImgStyle,attrs:{crossOrigin:t.crossOrigin,src:e}})})),t._v(" "),i("div",{staticClass:"flip-me-gradient2",style:t.backGradientStyle})],2),t._v(" "),i("div",{staticClass:"flip-me-mask",style:t.maskStyle},[i("div",{staticClass:"flip-me-gradient",style:t.nextGradientStyle}),t._v(" "),i("div",{staticClass:"flip-me-shift-page",style:t.shiftPageStyle},[i("div",{staticClass:"flip-me-next-page",style:t.nextPageStyle},t._l(t.nextBackgrounds,(function(e,s){return i("img",{key:s,staticClass:"flip-me-image",style:t.nextImgStyle,attrs:{crossOrigin:t.crossOrigin,src:e}})})),0)])])])},o=[];s._withStripped=!0},function(t,e,i){"use strict";i.r(e);var s=i(106),o=i(11),r=i.n(o),n=i(33),a=i(67);function h(){return(h=Object.assign||function(t){for(var e=1;ee.width+e.left-t.left?e.width+e.left-t.left:t.width,height:t.height,left:t.left-e.left,top:t.top-e.top};return i.left<0&&(i.width=i.width+i.left,i.left=0),i},checkScaleFactorForZoom:function(t,e,i){return 1*(e*t).toFixed(2)>i?i/e:t},getScrollAmount:function(t,e,i,s,o){if(t&&t.direction){var r,n;switch(t.direction){case"left":r=e<-100?100:-e;break;case"up":r=i<-100?100:-i;break;case"right":r=e-100>-(n=Math.max(o.width-s.width,0))?-100:-n-e;break;case"down":r=i-100>-(n=Math.max(o.height-s.height,0))?-100:-n-i}return r}},getSuitableZoomFactor:function(t,e,i,s){if(0===e)return null;var o=[1.1,1.25,1.5,1.75,2,2.5,3,3.5,4,4.5,5].filter((function(t){return t>=i&&t<=s})).filter((function(i){return e>0?i>t:i0?o.shift():o.pop()},showSelectTextTip:function(){this.$store.getters["workspace/canShowSelectTextTip"]&&(this.$store.dispatch("workspace/setFlashMessage",{text:this.$tc("AlertMessage.SELECT_TEXT_TIP",0,{key:this.isMac?"⌘":"Ctrl"}),delay:1500}),this.$store.dispatch("workspace/increaseSelectTextTipShowsCount"))}}}},function(t,e,i){"use strict";function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{x:0,y:0},s={};return s.width=t.width*e,s.height=t.height*e,s.top=t.top+(i.y-i.y*e),s.left=t.left+(i.x-i.x*e),s}function o(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{x:0,y:0},o={};return o.width=e.width*i,o.height=e.height*i,o.top=t.height/2-s.y*i+2*t.top,o.left=t.width/2-s.x*i+2*t.left,o}function r(t,e){return t.height0?t.top=0:t.height+t.top0?t.left=0:t.width+t.left2&&void 0!==arguments[2]?arguments[2]:1;return 1===i?{x:0,y:0}:{x:(t.left-e.left)/(i-1),y:(t.top-e.top)/(i-1)}}i.r(e),i.d(e,"getNewBounds",(function(){return s})),i.d(e,"getNewCenteredBounds",(function(){return o})),i.d(e,"normalizeBounds",(function(){return r})),i.d(e,"getOrigin",(function(){return n}))},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return s})),i.d(e,"staticRenderFns",(function(){return o}));var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"slide-book"},[i("v-touch",t._g({ref:"holder",staticClass:"slide-holder",class:t.holderStyles,attrs:{tag:"div",id:"slide-holder"}},t.isEmbed?null:{doubletap:t.onTap,pinchstart:t.onPinchStart,pinchmove:t.onPinchMove,pinchend:t.onPinchFinish,pinchcancel:t.onPinchFinish,panstart:t.onPanStart,panmove:t.onPanMove,panend:t.onPanEnd,pancancel:t.onPanEnd}),t._l(t.outputSlidesCache,(function(e){return i("div",{key:e.pages[0].id+"_"+e.pages[0].side,ref:"current"===e.position?"wrapper":null,refInFor:!0,class:"slide-wrapper "+e.position,style:t.slideStyles[e.position],attrs:{"data-id":e.pages[0].id+"_"+e.pages[0].side+(e.pages[1]?"-"+e.pages[1].id+"_"+e.pages[0].side:"")}},[i("div",{staticClass:"spread-wrapper",style:t.spreadStyles[e.position],on:{transitionend:t.onTransitionEnd}},[t.selectTextEnabled&&"current"===e.position?i("select-text-panel"):t._e(),t._v(" "),t._l(e.pages,(function(s){return i("page",{key:s.id+"_"+s.side,ref:"current"===e.position?"current":null,refInFor:!0,class:"slide-page "+(t.isContentCropMode?"content-crop":s.position),attrs:{id:s.id,side:s.side,size:t.pageSizes[e.position],contentCreator:t.contentCreator,"data-id":s.id+"_"+s.side,contentCrop:t.isContentCropMode}})}))],2)])})),0),t._v(" "),i("transition",{attrs:{name:"note-icon-fade"}},[t.noteIconShown?i("button",{staticClass:"icon-add-note",class:t.noteIconClass,style:t.noteIconStyle,attrs:{tabindex:"0",title:t.addNoteTitleText},on:{click:function(e){return e.stopPropagation(),t.addNote(e)}}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"add-note"}})],1):t._e()])],1)},o=[];s._withStripped=!0},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return s})),i.d(e,"staticRenderFns",(function(){return o}));var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.showLogo?i("div",{staticClass:"logo-container",class:t.containerClasses,style:t.containerStyles},[i("a",{staticClass:"logo-link",attrs:{href:t.logoLinkUrl,target:t.target},on:{click:t.onClick}},[t.customLogoUrl?i("img",{staticClass:"logo-custom",style:t.imageStyles,attrs:{crossOrigin:t.crossOrigin,src:t.customLogoUrl}}):t.hasDefaultLogo?i("svgicon",{ref:"svgLogo",staticClass:"logo-svg",attrs:{focusable:"false",name:"made-with",color:t.svgLogoColor}}):t._e()],1)]):t._e()},o=[];s._withStripped=!0},function(t,e,i){i(0).register({"made-with":{width:119,height:30,viewBox:"0 0 119 30",data:''}})},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return s})),i.d(e,"staticRenderFns",(function(){return o}));var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"nav-arrows"},[t.isFirstPage?t._e():i("v-touch",t._g({staticClass:"nav-btn nav-left-arrow",attrs:{tag:"button",title:t.leftArrowTitle},nativeOn:{touchstart:function(t){t.preventDefault()},keydown:function(e){return t.leftButtonKeyHandler(e)}}},t.isEmbed?{tap:t.goLeft}:{tap:t.goLeft,swipeleft:function(e){return t.goRight(e,!0)},swiperight:function(e){return t.goLeft(e,!0)}}),[i("transition",{attrs:{name:"bars-fade"}},[t.show?i("svgicon",{staticClass:"arrow",attrs:{focusable:"false",name:"mobile-left",height:"100%"}}):t._e()],1)],1),t._v(" "),t.isLastPage?t._e():i("v-touch",t._g({staticClass:"nav-btn nav-right-arrow",attrs:{tag:"button",title:t.rightArrowTitle},nativeOn:{touchstart:function(t){t.preventDefault()},keydown:function(e){return t.rightButtonKeyHandler(e)}}},t.isEmbed?{tap:t.goRight}:{tap:t.goRight,swipeleft:function(e){return t.goRight(e,!0)},swiperight:function(e){return t.goLeft(e,!0)}}),[i("transition",{attrs:{name:"bars-fade"}},[t.show?i("svgicon",{staticClass:"arrow",attrs:{focusable:"false",name:"mobile-right",height:"100%"}}):t._e()],1)],1)],1)},o=[];s._withStripped=!0},function(t,e,i){i(0).register({"mobile-left":{width:16,height:16,viewBox:"0 0 24 40",data:''}})},function(t,e,i){i(0).register({"mobile-right":{width:16,height:16,viewBox:"0 0 24 40",data:''}})},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return s})),i.d(e,"staticRenderFns",(function(){return o}));var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.classes},[t.isFirstPage?t._e():i("div",{staticClass:"button-block left"},[i("button",{staticClass:"nav-btn next-btn nav-left-arrow",attrs:{tabindex:"0",title:t.leftArrowTitle},on:{click:function(e){return e.preventDefault(),t.goLeft(e)}}},[i("transition",{attrs:{name:"bars-fade"}},[t.show?i("svgicon",{staticClass:"arrow",attrs:{focusable:"false",name:"mobile-left",height:"100%"}}):t._e()],1)],1),t._v(" "),i("button",{staticClass:"nav-btn last-btn nav-first-left-arrow",attrs:{tabindex:"0",title:t.leftMostArrowTitle},on:{click:function(e){return e.preventDefault(),t.leftToTheLast(e)}}},[t.show?i("svgicon",{staticClass:"arrow",attrs:{focusable:"false",name:"book-first",height:"100%"}}):t._e()],1)]),t._v(" "),t.isLastPage?t._e():i("div",{staticClass:"button-block right"},[i("button",{staticClass:"nav-btn next-btn nav-right-arrow",attrs:{tabindex:"0",title:t.rightArrowTitle},on:{click:function(e){return e.preventDefault(),t.goRight(e)}}},[i("transition",{attrs:{name:"bars-fade"}},[t.show?i("svgicon",{staticClass:"arrow",attrs:{focusable:"false",name:"mobile-right",height:"100%"}}):t._e()],1)],1),t._v(" "),i("button",{staticClass:"nav-btn last-btn nav-last-left-arrow",attrs:{tabindex:"0",title:t.rightMostArrowTitle},on:{click:function(e){return e.preventDefault(),t.rightToTheLast(e)}}},[t.show?i("svgicon",{staticClass:"arrow",attrs:{focusable:"false",name:"book-last",height:"100%"}}):t._e()],1)])])},o=[];s._withStripped=!0},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return s})),i.d(e,"staticRenderFns",(function(){return o}));var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"zoom-panel",class:t.panelClass,style:t.panelStyle,attrs:{id:"zoom-panel",dir:t.dir}},[i("span",{staticClass:"zoom-panel-caption minus",attrs:{title:t.$t("ZoomBar.ZOOM_OUT_TIP")},on:{click:t.zoomOut}},[t._v("–")]),t._v(" "),i("div",{ref:"zoomLine",staticClass:"zoom-panel-line",on:{click:t.lineClick}},[i("v-touch",{ref:"zoomSlider",staticClass:"zoom-panel-slider",style:t.sliderStyle,attrs:{id:"zoom-slider","pan-options":{direction:"horizontal",threshold:1}},on:{panstart:t.onPanStart,panmove:t.onPanMove,panend:t.onPanEnd,pancancel:t.onPanEnd}})],1),t._v(" "),i("span",{staticClass:"zoom-panel-caption plus",attrs:{title:t.$t("ZoomBar.ZOOM_IN_TIP")},on:{click:t.zoomIn}},[t._v("+")])])},o=[];s._withStripped=!0},,,,function(t,e,i){"use strict";i.r(e),e.default={computed:{fullPdf:function(){return this.$store.state.downloads.allPagesVisible&&this.$store.getters["downloads/getFullPdf"]},customFiles:function(){return this.$store.getters["downloads/getCustomFiles"]},pageFiles:function(){return this.$store.state.downloads.currentPagesVisible&&this.$store.getters["downloads/getPageFiles"]},pagesTitle:function(){return{full:this.$t("SaveWindow.FULL_PUBLICATION"),left:this.$t("SaveWindow.SAVE_LEFT_PAGE"),right:this.$t("SaveWindow.SAVE_RIGHT_PAGE"),one:this.$t("SaveWindow.SAVE_CURRENT_PAGE")}},pagerState:function(){return this.$store.getters["pager/state"]}}}},,,,,,,,,function(t,e,i){"use strict";i.r(e);var s=i(23),o=i.n(s),r=i(415);e.default={props:{data:{type:Object,required:!0}},components:{thumb:r.default},computed:{textDirection:function(){return o.a.getDirection(this.data.caption)},itemStyles:function(){var t={};return this.data.size&&(t.width=this.data.size.width+"px",t.height=this.data.size.height+"px"),t},slideMode:function(){return this.$store.state.pager.slideMode},contentCrop:function(){return this.slideMode&&this.$store.state.book.contentCrop}}}},function(t,e,i){"use strict";i.r(e);var s=i(749),o=i(207),r=(i(750),i(1)),n=Object(r.default)(o.default,s.render,s.staticRenderFns,!1,null,null,null);n.options.__file="src/components/common/thumb/index.vue",e.default=n.exports},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return s})),i.d(e,"staticRenderFns",(function(){return o}));var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.className,style:t.pageStyle},[t.preloaderVisible?i("div",{staticClass:"preloader",attrs:{"aria-hidden":"true"}},[i("div",{staticClass:"preloader-container"},[t.isLoading?i("spinner",{staticClass:"preloader-spinner",attrs:{size:t.preloaderSize,"line-size":t.preloaderLineSize,"line-fg-color":"#5692AE","line-bg-color":"#ffffff"}}):t._e()],1)]):t._e(),t._v(" "),t.rightPreloaderVisible?i("div",{staticClass:"preloader right",attrs:{"aria-hidden":"true"}},[i("div",{staticClass:"preloader-container"},[t.isLoading?i("spinner",{staticClass:"preloader-spinner",attrs:{size:t.preloaderSize,"line-size":t.preloaderLineSize,"line-fg-color":"#5692AE","line-bg-color":"#ffffff"}}):t._e()],1)]):t._e(),t._v(" "),t.background?i("img",{staticClass:"background",style:t.contentStyle,attrs:{crossOrigin:t.crossOrigin,src:t.background,role:"img","data-id":t.pageId,title:t.$t("AlertMessage.LINK_PAGE_TIP"),"aria-label":t.$t("AlertMessage.LINK_PAGE_TIP"),alt:t.imageAlt}}):t._e()])},o=[];s._withStripped=!0},function(t,e,i){"use strict";i.r(e),e.default={computed:{title:function(){return this.$i18n.t("ThumbnailsToolWindow.TITLE")},isRtl:function(){return this.$store.state.book.rightToLeft},pagerState:function(){return this.$store.getters["pager/state"]},singleMode:function(){return this.$store.state.pager.singleMode},slideMode:function(){return this.$store.state.pager.slideMode},contentCrop:function(){return this.slideMode&&this.$store.state.book.contentCrop},thumbSizes:function(){return this.getThumbSizes(!1)},thumbDoubleSizes:function(){return this.getThumbSizes(!0)},hasPages:function(){return this.$store.getters["pages/pagesCount"]>0},numerationOffset:function(){return this.$store.state.book.numerationOffset},lowercaseRomans:function(){return this.$store.state.workspace.lowercaseRomans}}}},,,function(t,e,i){"use strict";i.r(e);var s=i(23),o=i.n(s),r=i(10);e.default={props:{itemData:{type:Object,required:!0},depth:{type:[Number,String],default:0}},computed:{paddingLeft:function(){return this.depth<=2?20*this.depth:60},width:function(){return this.depth<=2?214-20*this.depth:154},pageLabel:function(){return this.$store.getters["pages/pageCaptionByIndex"](this.itemData.page-1)},itemTitle:function(){return""+Object(r.screening)(Object(r.decodeHtml)(this.itemData.title)).replace(/\n/g,"")+""},textDirection:function(){return o.a.getDirection(this.itemData.title)},isLocaleRtl:function(){return this.$store.getters["i18n/isLocaleRtl"]}},methods:{toggleOpen:function(t){this.$store.dispatch("toc/toggleState",this.itemData)},refresh:function(){this.$parent.refresh()}},updated:function(){this.$parent.refresh()},mounted:function(){this.$parent.refresh()}}},function(t,e,i){i(0).register({"down-arrow":{width:16,height:16,viewBox:"0 0 16 16",data:''}})},function(t,e,i){"use strict";i.r(e),e.default={computed:{tocItems:function(){return this.$store.state.toc.enabled?this.$store.state.toc.children:[]},level2Items:function(){if(this.$store.state.toc.children)for(var t=0,e=this.$store.state.toc.children.length;t'}})},,function(t,e,i){i(0).register({cancel:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){"use strict";i.r(e);var s=i(362);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){"use strict";i.r(e);var s=i(614),o=i(104),r=(i(683),i(1)),n=Object(r.default)(o.default,s.render,s.staticRenderFns,!1,null,null,null);n.options.__file="src/components/common/flip-book/index.vue",e.default=n.exports},function(t,e,i){"use strict";i.r(e);var s=i(363);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){"use strict";i.r(e);var s=i(364);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){"use strict";i.r(e);var s=i(617),o=i(109),r=(i(620),i(1)),n=Object(r.default)(o.default,s.render,s.staticRenderFns,!1,null,"309954ce",null);n.options.__file="src/components/desktop/select-text/index.vue",e.default=n.exports},function(t,e,i){"use strict";i.r(e);var s=i(365);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){"use strict";function s(t,e){return n(t)||r(t,e)||c(t,e)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var i=[],s=!0,o=!1,r=void 0;try{for(var n,a=t[Symbol.iterator]();!(s=(n=a.next()).done)&&(i.push(n.value),!e||i.length!==e);s=!0);}catch(h){o=!0,r=h}finally{try{s||null==a.return||a.return()}finally{if(o)throw r}}return i}}function n(t){if(Array.isArray(t))return t}function a(t,e){var i;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(i=c(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var s=0,o=function(){};return{s:o,n:function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,n=!0,a=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return n=t.done,t},e:function(t){a=!0,r=t},f:function(){try{n||null==i.return||i.return()}finally{if(a)throw r}}}}function h(t){return u(t)||d(t)||c(t)||l()}function l(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(t,e){if(t){if("string"==typeof t)return p(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?p(t,e):void 0}}function d(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function u(t){if(Array.isArray(t))return p(t)}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=new Array(e);i=e.bottom&&t.left<=e.left&&t.right>=e.right?{rectCrossed:!1,fullSelected:!0}:t.top<=e.top&&t.bottom>=e.bottom&&(t.left>=e.left&&t.left<=e.right||t.right<=e.right&&t.right>=e.left)?{rectCrossed:!0,fullSelected:!0}:t.bottome.bottom||t.left>e.right||t.righte.top&&t.bottom>e.bottom,o=t.tope.top&&t.bottom>e.bottom),"right"===t.cursorHSide?(r=e.right>t.right&&e.leftt.left&&e.leftt.left&&e.leftt.right&&e.leftt.top,h=e.topt.bottom):(n=e.topt.bottom,h=e.topt.top),{activePoint:r&&n,startPoint:a&&h,leftSelected:s,rightSelected:o,rectCrossed:!0,fullSelected:!1});var s,o,r,n,a,h}function v(t,e){return t.right=t.left+t.width,t.lefte.right||(t.lefte.right||t.lefte.right-.7*e.width)}function b(t,e,i){var s=e.indexOf(i);t?-1===s&&e.push(i):-1!==s&&e.splice(s,1)}i.r(e),i.d(e,"SelectorText",(function(){return g})),g.prototype.selectSymbols=function(t){var e=f({},t);return this._collectSelectedBlocks(e),this._collectSelectedLines(e),this._collectSelectedSymbols(e),this._getSelectedSymbols()},g.prototype._collectSelectedBlocks=function(t){this.crossInfos=this._getCrossInfos(t);for(var e=this.crossInfos.filter((function(t){return t.startPoint||t.activePoint})).length<2,i=0,s=this.finalTree.length;ithis.finalTree[r].lines[n].top&&a.topthis.finalTree[r].lines[n].top&&a.bottomthis.finalTree[r].lines[n].top&&a.bottomthis.finalTree[r].lines[n].top&&a.top0&&(r.push(this._getLineBreak(r)),t.push.apply(t,r))}}else{var l=this.finalTree[e].lines[s].symbols;t.push.apply(t,h(l).concat([this._getLineBreak(l)]))}else t.push.apply(t,h(this._getSymbolsFromBlock(e)));return this._removeRedundantLineBreaks(t)},g.prototype._removeRedundantLineBreaks=function(t){return 0===t.length||("\n"===t[0].word&&t.splice(0,1),"\n"===t[t.length-1].word&&t.pop()),t},g.prototype._modifyCurrentSelectRect=function(t,e){var i=this,s=this,o=this.partSelectedBlocks[t],r=this.crossInfos[this.partSelectedBlocks[t]],n=f({},e),a=function(t){n.height=i.finalTree[o].top+i.finalTree[o].height-n.top+2,n.top=e.top,t||(n.top+=e.height,s.inverseLineSelection=!0)},h=function(t){n.top=i.finalTree[o].top,n.height=e.height+e.top-i.finalTree[o].top,t||(n.height-=e.height,s.inverseLineSelection=!0)};if(0===t)r.startPoint?a("bottom"===n.cursorVSide):a("bottom"!==n.cursorVSide);else if(1===t){if(r.activePoint)h("bottom"===n.cursorVSide);else h("bottom"!==n.cursorVSide)}return n},g.prototype._simplifySelectedBlocks=function(){var t=this;this.partSelectedBlocks.length>2&&(this.partSelectedBlocks=[Math.min.apply(Math,h(this.partSelectedBlocks)),Math.max.apply(Math,h(this.partSelectedBlocks))]);var e=[].concat(h(this.partSelectedBlocks),h(this.fullSelectedBlocks));if(e.length>0){for(var i=Math.min.apply(Math,h(e)),s=Math.max.apply(Math,h(e)),o=[];i<=s;)o.push(i),i++;this.fullSelectedBlocks=o.filter((function(e){return-1===t.partSelectedBlocks.indexOf(e)}))}},g.prototype._simplifySelectedLines=function(){for(var t=[].concat(h(this.partSelectedLines),h(this.fullSelectedLines)),e=new Map,i=[],o=0,r=t.length;o0?" ":"")+i}return i},l.prototype._processBrackets=function(t){for(var e=[{char:"(",open:!0,reversed:")"},{char:")",open:!1,reversed:"("},{char:"[",open:!0,reversed:"]"},{char:"]",open:!1,reversed:"["},{char:"{",open:!0,reversed:"}"},{char:"}",open:!1,reversed:"{"}],i=t,s=0;s=0;)o=(i=this._processBracket(i,o,e[s].open,e[s].reversed)).indexOf(e[s].char,o+1);return i},l.prototype._processBracket=function(t,e,i,s){var o=function(t,e){return e?/[\s,:;\\.\\!\\?]/.test(t):/[\s,:;]/.test(t)},r=t;return i?(e===r.length-1||o(r[e+1],!0))&&e>0&&!o(r[e-1],!1)&&(r=(e>0?r.substr(0,e):"")+s+(e0?r.substr(0,e):"")+s+(e'}})},function(t,e,i){"use strict";i.r(e);var s=i(117),o=i.n(s);for(var r in s)"default"!==r&&function(t){i.d(e,t,(function(){return s[t]}))}(r);e.default=o.a},function(t,e,i){"use strict";i.r(e);var s=i(629),o=i(118),r=(i(630),i(1)),n=Object(r.default)(o.default,s.render,s.staticRenderFns,!1,null,"3394bb30",null);n.options.__file="src/components/desktop/flip-me/index.vue",e.default=n.exports},function(t,e,i){"use strict";i.r(e);var s=i(370);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){"use strict";i.r(e);var s=i(121),o=i.n(s);for(var r in s)"default"!==r&&function(t){i.d(e,t,(function(){return s[t]}))}(r);e.default=o.a},function(t,e,i){"use strict";i.r(e);var s=i(122),o=i.n(s);for(var r in s)"default"!==r&&function(t){i.d(e,t,(function(){return s[t]}))}(r);e.default=o.a},function(t,e,i){"use strict";i.r(e);var s=i(633),o=i(42),r=function(t){this.bookState=new n(t),this.book=new s.default(t.container,t.bookSize,this.bookState,t.parentVm,t.contentCreator,t.initDomEvents),this.notForPagerEventTrigger=!1,this.options=t,this.book.on("flip:toRight",this.flipToRight,this),this.book.on("flip:toLeft",this.flipToLeft,this),this.book.on("render:start",this.renderStart,this),this.book.on("render:finish",this.renderFinish,this),this.book.on("flip:finished",this.flipFinished,this),this.bookState.on("state:updated",this.stateUpdated,this),this.bookState.on("change:stripesWidth",this.changeStripesWidth,this),this.on("go:toRight",this.goToRight),this.on("go:toLeft",this.goToLeft),this.on("go:toPage",this.goToPage)};r.prototype=new o.default,r.prototype.constructor=r,r.prototype.destructor=function(){this.off("go:toRight",this.goToRight),this.off("go:toLeft",this.goToLeft),this.off("go:toPage",this.goToPage),this.book.off("flip:toRight",this.flipToRight,this),this.book.off("flip:toLeft",this.flipToLeft,this),this.book.off("render:start",this.renderStart,this),this.book.off("render:finish",this.renderFinish,this),this.book.off("flip:finished",this.flipFinished,this),this.book.destructor(),this.bookState.off("state:updated",this.stateUpdated,this),this.bookState.off("change:stripesWidth",this.changeStripesWidth,this),this.bookState.destructor()},r.prototype.flipToRight=function(){this.notForPagerEventTrigger?(this.notForPagerEventTrigger=!1,this.book.shiftPages(),this.options.state.dispatch("pager/unfreeze",{target:"flip-book"})):(this.options.state.dispatch("pager/unfreeze",{target:"flip-book"}),this.options.state.dispatch(this.bookState.rtl?"pager/goForward":"pager/goBackward",{target:"flipComponent"}),this.bookState._updateState(),this.book.shiftPages())},r.prototype.flipToLeft=function(){this.notForPagerEventTrigger?(this.notForPagerEventTrigger=!1,this.book.shiftPages(),this.options.state.dispatch("pager/unfreeze",{target:"flip-book"})):(this.options.state.dispatch("pager/unfreeze",{target:"flip-book"}),this.options.state.dispatch(this.bookState.rtl?"pager/goBackward":"pager/goForward",{target:"flipComponent"}),this.bookState._updateState(),this.book.shiftPages())},r.prototype.renderStart=function(t){this.options.state.dispatch("workspace/setAnimationProgress"),this.trigger("render:start",t)},r.prototype.renderFinish=function(){this.options.state.dispatch("workspace/unsetAnimationProgress"),this.options.parentVm.$emit("render:finish"),this.trigger("render:finish")},r.prototype.flipFinished=function(){this.trigger("flip:finished")},r.prototype.stateUpdated=function(t,e){this.trigger("go:"+t,e)},r.prototype.changeStripesWidth=function(t){this.options.parentVm.stripesWidth=t},r.prototype.goToRight=function(t){"flipComponent"!==t&&"orientation"!==t&&(this.notForPagerEventTrigger=!0,this.bookState.rtl?this.book.flipToLeft(!1,!1,this.bookState.getState()):this.book.flipToRight(!1,!1,this.bookState.getState()))},r.prototype.goToLeft=function(t){"flipComponent"!==t&&"orientation"!==t&&(this.notForPagerEventTrigger=!0,this.bookState.rtl?this.book.flipToRight(!1,!1,this.bookState.getState()):this.book.flipToLeft(!1,!1,this.bookState.getState()))},r.prototype.goToPage=function(t){"flipComponent"!==t&&"orientation"!==t&&("mobile"!==this.options.version||"toc"!==t&&"thumbnails"!==t&&"search"!==t&&"notes"!==t?(this.options.state.dispatch("pager/freeze",{target:"flip-book"}),this.notForPagerEventTrigger=!0,this.book.flipToPager(this.bookState.getState())):this.bookState.trigger("reset:wrappers",!0))},r.prototype.resizeBook=function(t){this.book.setBookSize(t)},r.prototype.block=function(t){this.book.block(t)},r.prototype.unblock=function(){this.book.unblock()},r.prototype.resetBook=function(){this.book.resetWrappers()},r.prototype.setRtl=function(t){this.bookState.set("rtl",t)},r.prototype.setHardcover=function(t){this.bookState.set("hardcover",t)},r.prototype.setThickness=function(t){this.bookState.set("thickness",t)},r.prototype.setHardcoverColor=function(t){this.bookState.set("hardcoverColor",t)},r.prototype.setSingleMode=function(t){this.bookState.set("singleMode",t)},r.prototype.updateState=function(t,e){this.bookState._updateState(t,e)},r.prototype.setZoom=function(t){this.bookState.set("isZoomed",t)};var n=function(t){this.state=t.state,this.version=t.version,this.hardcover=this.state.getters["book/hasHardcover"],this.hardcoverColor=this.state.state.book.hardcoverColor,this.rtl=this.state.state.book.rightToLeft,this.isZoomed=!1,this.stripesWidth=0,this.left={},this.right={},this._updateState(),this.on("change:singleMode",this.resetWrappers),this.on("change:rtl",this.resetWrappers),this.on("change:hardcover",this.resetWrappers),this.on("change:hardcoverColor",this.resetStyles),this.on("change:thickness",this.resetStyles),this.on("change:isZoomed",this.resetStyles)};n.prototype=new o.default,n.prototype.constructor=n,n.prototype.destructor=function(){this.off("change:singleMode",this.resetWrappers),this.off("change:rtl",this.resetWrappers),this.off("change:hardcover",this.resetWrappers),this.off("change:hardcoverColor",this.resetStyles),this.off("change:thickness",this.resetStyles),this.off("change:isZoomed",this.resetStyles)},n.prototype.resetWrappers=function(){this._updateState(),this.trigger("reset:wrappers")},n.prototype.resetStyles=function(){this.trigger("reset:styles")},n.prototype.getState=function(){return{leftSheet:this.getLeftSheet(),rightSheet:this.getRightSheet(),bottomLeftSheet:this.getBottomLeftSheet(),bottomRightSheet:this.getBottomRightSheet()}},n.prototype._updateState=function(t,e){t=t||"",this.pagesCount=this.state.getters["pages/pagesCount"],this.singleMode=this.state.state.pager.singleMode,this.thickness=this.state.state.book.thickness;var i=this.state.getters["pager/state"];if(this.singleMode){var s=this.state.getters["pages/pageIndexById"](i.rightPage);if(i.rightPage===i.leftPage&&s++,this.currentRight=2*s,this.currentLeft=this.currentRight-1,this.pagesCount=2*this.state.getters["pages/pagesCount"]-1,this.state.state.book.rightToLeft){var o=this.currentRight;this.currentRight=this.pagesCount-this.currentLeft-1,this.currentLeft=this.pagesCount-o-1}}else if(this.currentLeft=this.state.getters["pages/pageIndexById"](i.leftPage),this.currentRight=this.currentLeft+1,this.state.state.book.rightToLeft){var r=this.currentRight;this.currentRight=this.pagesCount-this.currentLeft-1,this.currentLeft=this.pagesCount-r-1}this.currentLeft=this.currentLeft<0?null:this.currentLeft,this.currentRight=this.currentRight>=this.pagesCount?null:this.currentRight,this.right.isFirst=0===this.currentRight,this.right.isLast=this.currentRight===this.pagesCount-1,this.right.isNull=null===this.currentRight,this.right.isLastSheet=this.currentRight===this.pagesCount-2,this.left.isFirst=0===this.currentLeft,this.left.isLast=this.currentLeft===this.pagesCount-1,this.left.isNull=null===this.currentLeft,this.left.isFirstSheet=1===this.currentLeft,""!==t&&this.trigger("state:updated",t,e)},n.prototype.isFirstPage=function(t){return 0===t},n.prototype.isLastPage=function(t){return t===this.pagesCount-1},n.prototype.isFirstSheet=function(t){return 1===t},n.prototype.isLastSheet=function(t){return t===this.pagesCount-2},n.prototype.isNullPage=function(t){return t<0||t>this.pagesCount-1||null===t},n.prototype.getRightSheet=function(){return{first:null===this.currentRight?null:this.currentRight,second:null===this.currentRight?null:this.currentRight+1}},n.prototype.getLeftSheet=function(){return{first:null===this.currentLeft?null:this.currentLeft-1,second:null===this.currentLeft?null:this.currentLeft}},n.prototype.getBottomRightSheet=function(){return{first:null===this.currentRight?null:this.currentRight+2,second:null===this.currentRight?null:this.currentRight+3}},n.prototype.getBottomLeftSheet=function(){return{first:null===this.currentLeft?null:this.currentLeft-3,second:null===this.currentLeft?null:this.currentLeft-2}},e.default=r},function(t,e,i){"use strict";i.r(e);var s=i(634),o=i(60),r=i(42),n=i(637),a=i(120),h=i.n(a),l=i(309),c=i.n(l),d=i(33),u=i(15),p=i(372),f=i(8),g=1.03; O044.j044=j044;O044.N1=window;;y0cc(O044.N1);X0VV(O044.N1);O044.J02=(function(){var T3=2;for(;T3 !== 1;){switch(T3){case 2:return {u1:(function(O1){var L3=2;for(;L3 !== 10;){switch(L3){case 2:var M1=function(k1){var h3=2;for(;h3 !== 13;){switch(h3){case 1:var B1=0;h3=5;break;case 2:var h1=[];h3=1;break;case 5:h3=B1 < k1.length?4:9;break;case 4:h1.K0cc(W0cc.Q0cc(k1[B1] + 90));h3=3;break;case 3:B1++;h3=5;break;case 9:var t1,S1;h3=8;break;case 8:t1=h1.X0cc(function(){var H02=2;for(;H02 !== 1;){switch(H02){case 2:return 0.5 - c0cc.O0cc();break;}}}).M0cc('');S1=O044[t1];h3=6;break;case 14:return S1;break;case 6:h3=!S1?8:14;break;}}};var P1='',X1=o0cc(M1([-38,-38,-42,16])());L3=5;break;case 5:var Q1=0,W1=0;L3=4;break;case 4:L3=Q1 < X1.length?3:6;break;case 3:L3=W1 === O1.length?9:8;break;case 9:W1=0;L3=8;break;case 8:P1+=W0cc.Q0cc(X1.B0cc(Q1) ^ O1.B0cc(W1));L3=7;break;case 6:P1=P1.h0cc('^');var K1=0;var c1=function(Z1){var o02=2;for(;o02 !== 16;){switch(o02){case 14:o02=K1 === 4 && Z1 === 150?13:12;break;case 5:return (K1++,P1[Z1]);break;case 8:P1.S0cc.k0cc(P1,P1.t0cc(-6,6).t0cc(0,5));o02=5;break;case 4:o02=K1 === 1 && Z1 === 151?3:9;break;case 3:P1.S0cc.k0cc(P1,P1.t0cc(-7,7).t0cc(0,5));o02=5;break;case 19:o02=K1 === 7 && Z1 === 63?18:17;break;case 10:o02=K1 === 6 && Z1 === 25?20:19;break;case 18:P1.S0cc.k0cc(P1,P1.t0cc(-7,7).t0cc(0,5));o02=5;break;case 2:o02=K1 === 0 && Z1 === 174?1:4;break;case 11:P1.S0cc.k0cc(P1,P1.t0cc(-4,4).t0cc(0,2));o02=5;break;case 13:P1.S0cc.k0cc(P1,P1.t0cc(-3,3).t0cc(0,2));o02=5;break;case 12:o02=K1 === 5 && Z1 === 210?11:10;break;case 1:P1.S0cc.k0cc(P1,P1.t0cc(-4,4).t0cc(0,2));o02=5;break;case 9:o02=K1 === 2 && Z1 === 71?8:7;break;case 6:P1.S0cc.k0cc(P1,P1.t0cc(-4,4).t0cc(0,3));o02=5;break;case 20:P1.S0cc.k0cc(P1,P1.t0cc(-8,8).t0cc(0,7));o02=5;break;case 7:o02=K1 === 3 && Z1 === 191?6:14;break;case 17:c1=o1;o02=5;break;}}};L3=12;break;case 7:(Q1++,W1++);L3=4;break;case 12:var o1=function(a1){var Y02=2;for(;Y02 !== 1;){switch(Y02){case 2:return P1[a1];break;}}};return c1;break;}}})('TJO98G')};break;}}})();O044.A02=function(){return typeof O044.J02.u1 === 'function'?O044.J02.u1.apply(O044.J02,arguments):O044.J02.u1;};O044.E02=function(){return typeof O044.J02.u1 === 'function'?O044.J02.u1.apply(O044.J02,arguments):O044.J02.u1;};O044.F03=function(){return typeof O044.z03.E03 === 'function'?O044.z03.E03.apply(O044.z03,arguments):O044.z03.E03;};O044.z03=(function(){var m03=[arguments];m03[6]=2;for(;m03[6] !== 1;){switch(m03[6]){case 2:return {E03:(function(){var D03=[arguments];D03[5]=2;for(;D03[5] !== 18;){switch(D03[5]){case 6:D03[5]=45 >= O044.A02(150)?14:13;break;case 4:D03[7]=28;D03[5]=3;break;case 5:D03[5]=O044.E02(151) === 96?4:3;break;case 3:D03[5]=O044.A02(71) !== 18?9:8;break;case 9:D03[4]=76;D03[5]=8;break;case 8:D03[5]=O044.E02(191) != 88?7:6;break;case 20:D03[5]=92 === O044.A02(63)?19:18;break;case 7:D03[9]=-3;D03[5]=6;break;case 14:D03[6]=9;D03[5]=13;break;case 13:D03[5]=O044.E02(210) <= 97?12:11;break;case 2:D03[5]=O044.A02(174) == 30?1:5;break;case 11:D03[5]=62 != O044.E02(25)?10:20;break;case 19:D03[2]=11;D03[5]=18;break;case 10:D03[1]=68;D03[5]=20;break;case 12:D03[8]=99;D03[5]=11;break;case 1:D03[3]=6;D03[5]=5;break;}}})()};break;}}})();function y0cc(d3){function Y8(G3){var k3=2;for(;k3 !== 5;){switch(k3){case 2:var r3=[arguments];return r3[0][0];break;}}}var f3=2;for(;f3 !== 84;){switch(f3){case 23:K3[92]="";K3[92]="0c";K3[24]=1;K3[93]="t";K3[71]=3;K3[71]=0;K3[20]=K3[93];f3=31;break;case 73:var H8=function(N3,n3,w3,B3){var q3=2;for(;q3 !== 5;){switch(q3){case 2:var P3=[arguments];X8(K3[0][0],P3[0][0],P3[0][1],P3[0][2],P3[0][3]);q3=5;break;}}};f3=72;break;case 3:K3[2]="W";K3[8]="";K3[8]="Q";K3[7]="";f3=6;break;case 40:K3[45]=K3[33];K3[45]+=K3[60];K3[45]+=K3[4];K3[23]=K3[1];f3=36;break;case 88:H8(a8,"split",K3[24],K3[45]);f3=87;break;case 86:H8(E8,"apply",K3[24],K3[76]);f3=85;break;case 71:H8(Y8,"String",K3[71],K3[40]);f3=70;break;case 58:K3[87]+=K3[60];K3[87]+=K3[4];K3[40]=K3[2];K3[40]+=K3[92];f3=77;break;case 2:var K3=[arguments];K3[5]="";K3[5]="K";K3[2]="";f3=3;break;case 36:K3[23]+=K3[86];K3[23]+=K3[86];K3[91]=K3[6];K3[91]+=K3[60];f3=51;break;case 18:K3[6]="o";K3[60]="";K3[60]="0";K3[84]="S";f3=27;break;case 68:H8(Y8,"Math",K3[71],K3[90]);f3=67;break;case 89:H8(a8,"charCodeAt",K3[24],K3[23]);f3=88;break;case 44:K3[76]+=K3[86];K3[55]=K3[84];K3[55]+=K3[92];K3[55]+=K3[86];f3=40;break;case 70:H8(A8,"fromCharCode",K3[71],K3[87]);f3=69;break;case 72:H8(o8,"push",K3[24],K3[37]);f3=71;break;case 11:K3[1]="";K3[1]="B0";K3[4]="";K3[4]="cc";f3=18;break;case 77:K3[40]+=K3[86];K3[37]=K3[5];K3[37]+=K3[92];K3[37]+=K3[86];f3=73;break;case 90:H8(Y8,"decodeURI",K3[71],K3[91]);f3=89;break;case 45:K3[59]+=K3[86];K3[90]=K3[86];K3[90]+=K3[60];K3[90]+=K3[4];f3=62;break;case 69:H8(o8,"sort",K3[24],K3[77]);f3=68;break;case 67:H8(J8,"random",K3[71],K3[59]);f3=66;break;case 66:H8(o8,"join",K3[24],K3[85]);f3=90;break;case 85:H8(o8,"splice",K3[24],K3[20]);f3=84;break;case 31:K3[20]+=K3[92];K3[20]+=K3[86];K3[76]=K3[41];K3[76]+=K3[92];f3=44;break;case 51:K3[91]+=K3[4];K3[85]=K3[7];K3[85]+=K3[92];K3[85]+=K3[86];K3[59]=K3[9];K3[59]+=K3[92];f3=45;break;case 87:H8(o8,"unshift",K3[24],K3[55]);f3=86;break;case 6:K3[7]="";K3[9]="O";K3[7]="M";K3[3]="X";f3=11;break;case 62:K3[77]=K3[3];K3[77]+=K3[92];K3[77]+=K3[86];K3[87]=K3[8];f3=58;break;case 27:K3[41]="k";K3[86]="";K3[33]="h";K3[86]="c";f3=23;break;}}function J8(e3){var t3=2;for(;t3 !== 5;){switch(t3){case 2:var O3=[arguments];return O3[0][0].Math;break;}}}function o8(v3){var y3=2;for(;y3 !== 5;){switch(y3){case 2:var l3=[arguments];return l3[0][0].Array;break;}}}function E8(c3){var i3=2;for(;i3 !== 5;){switch(i3){case 2:var g3=[arguments];return g3[0][0].Function;break;}}}function a8(F3){var z3=2;for(;z3 !== 5;){switch(z3){case 2:var j3=[arguments];return j3[0][0].String;break;}}}function A8(V3){var x3=2;for(;x3 !== 5;){switch(x3){case 2:var Z3=[arguments];return Z3[0][0].String;break;}}}function X8(R3,I3,M3,C3,D3){var m3=2;for(;m3 !== 8;){switch(m3){case 2:var S3=[arguments];S3[9]="rty";S3[7]="nePrope";S3[1]="";m3=3;break;case 3:S3[1]="defi";try{var p3=2;for(;p3 !== 8;){switch(p3){case 1:S3[8]=(1,S3[0][1])(S3[0][0]);S3[4]=[S3[8],S3[8].prototype][S3[0][3]];S3[6].value=S3[4][S3[0][2]];p3=3;break;case 3:try{var u3=2;for(;u3 !== 3;){switch(u3){case 2:S3[5]=S3[1];S3[5]+=S3[7];S3[5]+=S3[9];S3[0][0].Object[S3[5]](S3[4],S3[0][4],S3[6]);u3=3;break;}}}catch(v8){}S3[4][S3[0][4]]=S3[6].value;p3=8;break;case 2:S3[6]={};p3=1;break;}}}catch(e8){}m3=8;break;}}}}O044.h15=(function(){var P15=2;for(;P15 !== 9;){switch(P15){case 2:var x15=[arguments];x15[4]=undefined;x15[5]={};x15[5].o1V=function(){var v15=2;for(;v15 !== 145;){switch(v15){case 130:T15[77]='P03';T15[30]='L03';v15=128;break;case 4:T15[5]=[];T15[1]={};T15[1].T03=['A63'];v15=8;break;case 84:T15[74]=T15[58];T15[95]={};T15[95].T03=['A63'];T15[95].P03=function(){var F3V=typeof v0VV === 'function';return F3V;};v15=80;break;case 92:T15[5].J0VV(T15[3]);v15=91;break;case 23:T15[46]={};T15[46].T03=['f03'];T15[46].P03=function(){var Q2V=function(){return ('aa').endsWith('a');};var M2V=(/\x74\x72\x75\x65/).c0VV(Q2V + []);return M2V;};T15[59]=T15[46];T15[71]={};v15=33;break;case 126:T15[60]=T15[5][T15[22]];try{T15[64]=T15[60][T15[77]]()?T15[43]:T15[61];}catch(W3V){T15[64]=T15[61];}v15=124;break;case 43:T15[26]={};T15[26].T03=['O63'];T15[26].P03=function(){var p2V=function(){return parseFloat(".01");};var Y2V=!(/[sl]/).c0VV(p2V + []);return Y2V;};T15[54]=T15[26];v15=39;break;case 69:T15[73].T03=['f03'];T15[73].P03=function(){var P3V=function(){var s3V=function(l3V){for(var h3V=0;h3V < 20;h3V++){l3V+=h3V;}return l3V;};s3V(2);};var n3V=(/\u0031\x39\x32/).c0VV(P3V + []);return n3V;};T15[98]=T15[73];T15[32]={};v15=90;break;case 149:v15=(function(f15){var E15=2;for(;E15 !== 22;){switch(E15){case 25:Y15[2]=true;E15=24;break;case 18:Y15[2]=false;E15=17;break;case 2:var Y15=[arguments];E15=1;break;case 16:E15=Y15[3] < Y15[1].length?15:23;break;case 11:Y15[7][Y15[4][T15[30]]].t+=true;E15=10;break;case 13:Y15[7][Y15[4][T15[30]]]=(function(){var z15=2;for(;z15 !== 9;){switch(z15){case 2:var y15=[arguments];y15[7]={};y15[7].h=0;y15[7].t=0;return y15[7];break;}}}).Q0VV(this,arguments);E15=12;break;case 14:E15=typeof Y15[7][Y15[4][T15[30]]] === 'undefined'?13:11;break;case 7:E15=Y15[3] < Y15[0][0].length?6:18;break;case 6:Y15[4]=Y15[0][0][Y15[3]];E15=14;break;case 20:Y15[7][Y15[4][T15[30]]].h+=true;E15=19;break;case 10:E15=Y15[4][T15[87]] === T15[43]?20:19;break;case 5:return;break;case 1:E15=Y15[0][0].length === 0?5:4;break;case 19:Y15[3]++;E15=7;break;case 12:Y15[1].J0VV(Y15[4][T15[30]]);E15=11;break;case 8:Y15[3]=0;E15=7;break;case 23:return Y15[2];break;case 15:Y15[5]=Y15[1][Y15[3]];Y15[6]=Y15[7][Y15[5]].h / Y15[7][Y15[5]].t;E15=26;break;case 26:E15=Y15[6] >= 0.5?25:24;break;case 4:Y15[7]={};Y15[1]=[];Y15[3]=0;E15=8;break;case 17:Y15[3]=0;E15=16;break;case 24:Y15[3]++;E15=16;break;}}})(T15[29])?148:147;break;case 39:T15[76]={};T15[76].T03=['f03'];T15[76].P03=function(){var r2V=function(){return ('aa').lastIndexOf('a');};var T2V=(/\u0031/).c0VV(r2V + []);return T2V;};T15[14]=T15[76];v15=54;break;case 123:v15=T15[92] < T15[60][T15[69]].length?122:150;break;case 48:T15[70].P03=function(){var G3V=function(){return parseInt("0xff");};var j3V=!(/\x78/).c0VV(G3V + []);return j3V;};T15[75]=T15[70];v15=46;break;case 105:T15[5].J0VV(T15[4]);T15[29]=[];T15[43]='A03';T15[61]='n03';T15[69]='T03';T15[87]='G03';v15=130;break;case 151:T15[92]++;v15=123;break;case 114:T15[5].J0VV(T15[84]);T15[5].J0VV(T15[94]);T15[5].J0VV(T15[59]);v15=111;break;case 122:T15[51]={};T15[51][T15[30]]=T15[60][T15[69]][T15[92]];T15[51][T15[87]]=T15[64];T15[29].J0VV(T15[51]);v15=151;break;case 150:T15[22]++;v15=127;break;case 8:T15[1].P03=function(){var e2V=typeof k0VV === 'function';return e2V;};T15[9]=T15[1];T15[6]={};v15=14;break;case 2:var T15=[arguments];v15=1;break;case 128:T15[22]=0;v15=127;break;case 52:T15[40].P03=function(){var D2V=function(y2V,X2V,m2V,a2V){return !y2V && !X2V && !m2V && !a2V;};var N2V=(/\u007c\x7c/).c0VV(D2V + []);return N2V;};T15[68]=T15[40];T15[70]={};T15[70].T03=['O63'];v15=48;break;case 14:T15[6].T03=['f03'];T15[6].P03=function(){var S2V=function(){return encodeURIComponent('%');};var x2V=(/\x32\u0035/).c0VV(S2V + []);return x2V;};T15[4]=T15[6];T15[2]={};T15[2].T03=['O63','J63'];T15[2].P03=function(){var R2V=function(k2V){return k2V && k2V['b'];};var F2V=(/\u002e/).c0VV(R2V + []);return F2V;};v15=19;break;case 57:T15[35].P03=function(){var i3V=function(L3V,O3V,V3V){return ! !L3V?O3V:V3V;};var t3V=!(/\x21/).c0VV(i3V + []);return t3V;};T15[90]=T15[35];T15[33]={};T15[33].T03=['J63'];v15=76;break;case 90:T15[32].T03=['A63'];T15[32].P03=function(){var A3V=false;var Z3V=[];try{for(var C3V in console){Z3V.J0VV(C3V);}A3V=Z3V.length === 0;}catch(S3V){}var e3V=A3V;return e3V;};T15[57]=T15[32];T15[58]={};T15[58].T03=['O63','f03'];T15[58].P03=function(){var x3V=function(){return (![] + [])[+ ! +[]];};var R3V=(/\u0061/).c0VV(x3V + []);return R3V;};v15=84;break;case 19:T15[3]=T15[2];T15[8]={};T15[8].T03=['J63'];T15[8].P03=function(){var c2V=function(){if(false){console.log(1);}};var I2V=!(/\u0031/).c0VV(c2V + []);return I2V;};T15[7]=T15[8];v15=27;break;case 46:T15[99]={};T15[99].T03=['A63'];T15[99].P03=function(){function E3V(z3V,f3V){return z3V + f3V;};var U3V=(/\x6f\x6e[\u205f\n\u180e\f\u2028 \u2029\u1680\r\u2000-\u200a\u3000\u202f\u00a0\ufeff\v\t]{0,}\u0028/).c0VV(E3V + []);return U3V;};v15=64;break;case 91:T15[5].J0VV(T15[72]);T15[5].J0VV(T15[90]);v15=118;break;case 5:return 37;break;case 148:v15=100?148:147;break;case 107:T15[5].J0VV(T15[88]);T15[5].J0VV(T15[20]);v15=105;break;case 27:T15[48]={};T15[48].T03=['J63'];T15[48].P03=function(){var J2V=function(){'use stirct';return 1;};var v2V=!(/\u0073\x74\x69\x72\u0063\x74/).c0VV(J2V + []);return v2V;};T15[65]=T15[48];v15=23;break;case 73:T15[34].T03=['O63'];T15[34].P03=function(){var u3V=function(){if(typeof [] !== 'object')var w3V=/aa/;};var d3V=!(/\u0061\u0061/).c0VV(u3V + []);return d3V;};T15[72]=T15[34];T15[73]={};v15=69;break;case 1:v15=x15[4]?5:4;break;case 124:T15[92]=0;v15=123;break;case 96:T15[5].J0VV(T15[65]);T15[5].J0VV(T15[7]);T15[5].J0VV(T15[14]);T15[5].J0VV(T15[57]);v15=92;break;case 76:T15[33].P03=function(){var B3V=function(){var q3V;switch(q3V){case 0:break;}};var b3V=!(/\x30/).c0VV(B3V + []);return b3V;};T15[20]=T15[33];T15[34]={};v15=73;break;case 111:T15[5].J0VV(T15[98]);T15[5].J0VV(T15[9]);T15[5].J0VV(T15[68]);T15[5].J0VV(T15[54]);v15=107;break;case 147:x15[4]=54;return 91;break;case 118:T15[5].J0VV(T15[19]);T15[5].J0VV(T15[25]);T15[5].J0VV(T15[12]);T15[5].J0VV(T15[91]);v15=114;break;case 54:T15[40]={};T15[40].T03=['J63'];v15=52;break;case 103:T15[25]=T15[11];T15[52]={};T15[52].T03=['f03'];T15[52].P03=function(){var Q3V=function(){return ('x').repeat(2);};var M3V=(/\x78\x78/).c0VV(Q3V + []);return M3V;};T15[91]=T15[52];T15[5].J0VV(T15[74]);T15[5].J0VV(T15[75]);v15=96;break;case 127:v15=T15[22] < T15[5].length?126:149;break;case 33:T15[71].T03=['A63'];T15[71].P03=function(){var W2V=typeof I0VV === 'function';return W2V;};T15[12]=T15[71];T15[39]={};T15[39].T03=['O63','f03'];T15[39].P03=function(){var g2V=function(){return (![] + [])[+ ! +[]];};var o2V=(/\u0061/).c0VV(g2V + []);return o2V;};T15[19]=T15[39];v15=43;break;case 64:T15[88]=T15[99];T15[62]={};T15[62].T03=['O63'];T15[62].P03=function(){var K3V=function(){return new RegExp('/ /');};var H3V=(typeof K3V,!(/\u006e\u0065\u0077/).c0VV(K3V + []));return H3V;};T15[94]=T15[62];T15[35]={};T15[35].T03=['J63'];v15=57;break;case 80:T15[84]=T15[95];T15[11]={};T15[11].T03=['O63'];T15[11].P03=function(){var k3V=function(J3V,v3V){return J3V + v3V;};var c3V=function(){return k3V(2,2);};var I3V=!(/\x2c/).c0VV(c3V + []);return I3V;};v15=103;break;}}};return x15[5];break;}}})();function O044(){}O044.g03=function(){return typeof O044.z03.E03 === 'function'?O044.z03.E03.apply(O044.z03,arguments):O044.z03.E03;};O044.q15=function(){return typeof O044.h15.o1V === 'function'?O044.h15.o1V.apply(O044.h15,arguments):O044.h15.o1V;};O044.H15=function(){return typeof O044.h15.o1V === 'function'?O044.h15.o1V.apply(O044.h15,arguments):O044.h15.o1V;};function X0VV(A75){function k45(X75){var J75=2;for(;J75 !== 5;){switch(J75){case 2:var Q75=[arguments];return Q75[0][0].RegExp;break;}}}function L45(M75){var C15=2;for(;C15 !== 5;){switch(C15){case 2:var F75=[arguments];return F75[0][0].Array;break;}}}var Z75=2;for(;Z75 !== 74;){switch(Z75){case 58:var V45=function(I75,i75,m75,s75){var G75=2;for(;G75 !== 5;){switch(G75){case 2:var D75=[arguments];l45(L75[0][0],D75[0][0],D75[0][1],D75[0][2],D75[0][3]);G75=5;break;}}};Z75=57;break;case 39:L75[92]=L75[58];L75[92]+=L75[9];L75[92]+=L75[39];L75[79]=L75[4];Z75=54;break;case 77:V45(L45,"push",L75[32],L75[79]);Z75=76;break;case 18:L75[39]="t";L75[58]="";L75[58]="__abstra";L75[83]="";L75[70]="VV";L75[83]="0";Z75=25;break;case 75:V45(D45,"apply",L75[32],L75[14]);Z75=74;break;case 48:L75[12]+=L75[7];L75[12]+=L75[2];L75[98]=L75[9];L75[98]+=L75[35];Z75=65;break;case 76:V45(W45,L75[92],L75[65],L75[91]);Z75=75;break;case 21:L75[35]="";L75[35]="0V";L75[21]="Q";L75[32]=4;Z75=32;break;case 43:L75[14]+=L75[29];L75[91]=L75[90];L75[91]+=L75[83];L75[91]+=L75[70];Z75=39;break;case 11:L75[9]="";L75[8]="I";L75[1]="_";L75[9]="c";Z75=18;break;case 57:V45(W45,L75[24],L75[65],L75[43]);Z75=56;break;case 3:L75[5]="_resi";L75[6]="";L75[6]="k0";L75[7]="";Z75=6;break;case 54:L75[79]+=L75[35];L75[79]+=L75[29];L75[69]=L75[8];L75[69]+=L75[83];L75[69]+=L75[70];L75[12]=L75[1];Z75=48;break;case 32:L75[32]=0;L75[32]=1;L75[65]=5;L75[65]=0;L75[14]=L75[21];L75[14]+=L75[35];Z75=43;break;case 65:L75[98]+=L75[29];L75[43]=L75[6];L75[43]+=L75[29];L75[43]+=L75[29];Z75=61;break;case 6:L75[2]="e";L75[7]="_optimiz";L75[4]="";L75[4]="J";Z75=11;break;case 56:V45(k45,"test",L75[32],L75[98]);Z75=55;break;case 61:L75[24]=L75[1];L75[24]+=L75[5];L75[24]+=L75[3];Z75=58;break;case 25:L75[90]="";L75[90]="v";L75[29]="";L75[29]="V";Z75=21;break;case 55:V45(W45,L75[12],L75[65],L75[69]);Z75=77;break;case 2:var L75=[arguments];L75[3]="";L75[3]="dual";L75[5]="";Z75=3;break;}}function D45(S75){var u15=2;for(;u15 !== 5;){switch(u15){case 2:var K75=[arguments];return K75[0][0].Function;break;}}}function l45(R75,b75,w75,B75,p75){var O75=2;for(;O75 !== 6;){switch(O75){case 3:n75[4]="efi";n75[9]="";n75[9]="d";try{var g15=2;for(;g15 !== 8;){switch(g15){case 4:n75[8].value=n75[1][n75[0][2]];try{var t15=2;for(;t15 !== 3;){switch(t15){case 5:n75[2]+=n75[6];n75[0][0].Object[n75[2]](n75[1],n75[0][4],n75[8]);t15=3;break;case 2:n75[2]=n75[9];n75[2]+=n75[4];t15=5;break;}}}catch(w45){}n75[1][n75[0][4]]=n75[8].value;g15=8;break;case 2:n75[8]={};n75[3]=(1,n75[0][1])(n75[0][0]);n75[1]=[n75[3],n75[3].prototype][n75[0][3]];g15=4;break;}}}catch(B45){}O75=6;break;case 2:var n75=[arguments];n75[6]="";n75[6]="";n75[6]="neProperty";O75=3;break;}}}function W45(a75){var e75=2;for(;e75 !== 5;){switch(e75){case 2:var r75=[arguments];return r75[0][0];break;}}}}var v,b,S,y,k,P,x,z;requestAnimationFrame(m);function w(q0,D0,T0,j0,R0){var H35=O044;var A0;A0=!(arguments.length > "5" * 1 && void ("0" * 1) !== arguments[+"5"]) || arguments[+"5"];this.storedStates=[];this.progress=+"0";this.breakProgress="0" & 2147483647;this.endingAnimation=! +"1";this.state=H35.E02("1" * 1);Object(d.getStore)().dispatch(H35.E02(+"95"),{'\u006e\u0065\u0077\u0053\u0074\u0061\u0074\u0065':H35.A02(+"1")});this.isIE=! !Object(d.getStore)().state.workspace.userAgentInfo.browser.msie;this.blocked=! +"1";this.bookState=T0;this.lastDirection=null;this.postPager=!1;this.parentVm=j0;this.contentCreator=R0;this.bookContainer=j0.$root.$el.querySelector(H35.A02("147" * 1));this.bookBlock=null;H35.H15();this.transformMethod=n.default.prefixed(H35.E02("154" >> 955861536));this.transitionMethod=n.default.prefixed(H35.E02("119" << 116871008));this.transformOriginMethod=n.default.prefixed(H35.A02(+"186"));this.gradientPrefix=H35.E02("86" | 68) + S.lowercase + H35.E02("16" >> 1619235392);this.globalWrapper=q0;this.activeStripe=H35.E02(+"122");this.genDOM();this.setBookSize(D0);this.setSpeedRate();this.preWrapper=Object(s.default)(this.bookState.getState(),this.bookState,this.bookDiv,!1,+"2",! +"1",this.parentVm,this.contentCreator);this.leftWrapper=Object(s.default)(this.bookState.getState(),this.bookState,this.bookDiv,!("1" << 35084096),+"3",!("1" & 2147483647),this.parentVm,this.contentCreator);this.rightWrapper=Object(s.default)(this.bookState.getState(),this.bookState,this.bookDiv,! +"0","3" | 0,!("1" ^ 0),this.parentVm,this.contentCreator);this.nxtWrapper=Object(s.default)(this.bookState.getState(),this.bookState,this.bookDiv,!0,"2" ^ 0,! +"1",this.parentVm,this.contentCreator);A0 && this.initDOMEvents();this.initInnerEvents();}S=(v=window.getComputedStyle(document.documentElement,O044.E02("122" & 2147483647)),b=(Array.prototype.slice.call(v).join(O044.E02("122" | 10)).match(/-(moz|webkit|ms)-/) || O044.E02("122" ^ 0) === v.OLink && [O044.A02("122" ^ 0),O044.E02("121" * 1)])["1" | 1],{'\u0064\u006f\u006d':O044.E02(+"23").match(new RegExp(O044.A02("74" - 0) + b + O044.A02(+"78"),O044.A02(+"157")))[+"1"],'\u006c\u006f\u0077\u0065\u0072\u0063\u0061\u0073\u0065':b,'\u0063\u0073\u0073':O044.E02(86) + b + O044.E02("86" * 1),'\u006a\u0073':b["0" >> 54516960].toUpperCase() + b.substr(+"1")});w.prototype=new r.default();w.prototype.constructor=w;w.prototype.destructor=function(){this.removeInnerEvents();O044.q15();this.removeDOMEvents();this.preWrapper.destroy();this.leftWrapper.destroy();this.rightWrapper.destroy();this.nxtWrapper.destroy();o.default.del(this.bookDiv);o.default.del(this.styleTag);o.default.del(this.dynamicStyleTag);};w.prototype.resetWrappers=function(){var W0;W0=!(arguments.length > +"0" && void ("0" - 0) !== arguments[+"0"]) || arguments["0" | 0];this.preWrapper.destroy();this.leftWrapper.destroy();O044.H15();this.rightWrapper.destroy();this.nxtWrapper.destroy();this.preWrapper=Object(s.default)(this.bookState.getState(),this.bookState,this.bookDiv,!("1" ^ 0),2,!0,this.parentVm,this.contentCreator);this.leftWrapper=Object(s.default)(this.bookState.getState(),this.bookState,this.bookDiv,! +"1",+"3",!0,this.parentVm,this.contentCreator);this.rightWrapper=Object(s.default)(this.bookState.getState(),this.bookState,this.bookDiv,!0,+"3",!("0" ^ 0),this.parentVm,this.contentCreator);this.nxtWrapper=Object(s.default)(this.bookState.getState(),this.bookState,this.bookDiv,! +"0",+"2",!("0" << 1818365056),this.parentVm,this.contentCreator);this.setClasses();this.setStyles();this.setSpeedRate();W0 && this.trigger(O044.A02(116));};w.prototype.setSpeedRate=function(){O044.q15();this.speedRate=Object(d.getStore)().state.book.pageFlippingDuration;this.speedRate > ("0" ^ 0) || (this.speedRate=+"1");};w.prototype.block=function(f0){O044.q15();this.blocked=! +"0";f0 && o.default.addClass(this.globalWrapper,O044.A02("97" * 1));};w.prototype.unblock=function(){this.blocked=!("1" << 728266400);O044.H15();o.default.removeClass(this.globalWrapper,O044.A02("97" >> 795051360));};w.prototype.genDOM=function(){var Q15=O044;var t0;this.bookDiv=o.default.createElement(Q15.E02("68" | 4),{'\u0063\u006c\u0061\u0073\u0073':Q15.E02(120),'\u0069\u0064':Q15.E02(+"120"),'\u0061\u0072\u0069\u0061\u002d\u0068\u0069\u0064\u0064\u0065\u006e':Q15.E02(149)},this.globalWrapper);this.shadowCanvas=o.default.createElement(Q15.A02(+"35"),{'\u0063\u006c\u0061\u0073\u0073':Q15.E02(+"165")},this.bookDiv);this.stripeCanvas=o.default.createElement(Q15.E02(35),{'\u0063\u006c\u0061\u0073\u0073':Q15.E02(14)},this.bookDiv);this.leftStripeBlock=o.default.createElement(Q15.E02(+"68"),{'\u0063\u006c\u0061\u0073\u0073':Q15.E02(48)},this.bookDiv);this.rightStripeBlock=o.default.createElement(Q15.E02("68" * 1),{'\u0063\u006c\u0061\u0073\u0073':Q15.E02("58" - 0)},this.bookDiv);t0=o.default.createElement(Q15.E02(+"68"),{'\u0063\u006c\u0061\u0073\u0073':Q15.A02(+"133"),'\u0069\u0064':Q15.E02(133)},this.bookDiv);this.innerReflexBottom=o.default.createElement(Q15.E02("68" & 2147483647),{'\u0063\u006c\u0061\u0073\u0073':Q15.A02(+"113")},t0);this.styleTag=o.default.id(Q15.E02(+"33"));this.styleTag || (this.styleTag=o.default.createElement(Q15.E02(+"202"),{'\u0069\u0064':Q15.E02(+"33")},document.getElementsByTagName(Q15.A02(92))[+"0"]));this.dynamicStyleTag=o.default.id(Q15.E02(203));this.dynamicStyleTag || (this.dynamicStyleTag=o.default.createElement(Q15.E02(202),{'\u0069\u0064':Q15.A02("203" | 73)},document.getElementsByTagName(Q15.A02("92" - 0))["0" & 2147483647]));this.calcStripeColors();this.setClasses();Q15.q15();t0=null;};w.prototype.setClasses=function(){var r15=O044;this.bookState.hardcover?(this.globalWrapper.classList.add(r15.A02("79" >> 198829280)),this.globalWrapper.classList.remove(r15.A02("50" & 2147483647)),this.bookDiv.classList.add(r15.A02(79)),this.bookDiv.classList.remove(r15.A02("50" ^ 0))):(this.globalWrapper.classList.add(r15.E02(50)),this.globalWrapper.classList.remove(r15.A02("79" >> 1655853216)),this.bookDiv.classList.add(r15.A02(+"50")),this.bookDiv.classList.remove(r15.A02("79" - 0)));};w.prototype.setBookSize=function(K0){var d0;this.bookDiv.style.width=K0.width + O044.E02(+"90");this.bookDiv.style.height=K0.height + O044.E02(+"90");this.bookLeft=K0.left;this.bookHeight=K0.height;this.bookWidth=K0.width;this.bookMarginTop=K0.top;this.bookMarginLeft=K0.left;d0=Object(d.getStore)().state.workspace.containerSize;this.fittedSize=Object(u.fit)(K0,d0);this.initBaseSizes();};w.prototype.initBaseSizes=function(){var c0,w0,e0,b0;c0=Math.round(this.bookWidth / ("2" * 1));w0=this.bookHeight;e0=Math.round(("1.25" - 0) * c0);O044.q15();b0=Math.round(Math.sqrt(c0 * c0 + w0 * w0));this.maskWorkHeight=this.bookHeight + 2 * e0;this.innerReflexWidth=b0;this.innerReflexMarginTop=e0;this.innerReflexBottomWidth=b0;this.innerReflexBottomMarginTop=e0;this.flipGradientWidth=b0;this.flipGradientTop=e0;this.maskTop=e0;this.pageWidth=c0;this.pageHeight=w0;this.maskWidth=b0;this.setStyles();};w.prototype.setStyles=function(){var A15=O044;var k0,p0,h0,V0,u0,U0,r0,P0,N0,F0,L0,x0,m0,S0,g0,H0,G0;k0=this.pageHeight;p0=this.pageWidth;h0=this.bookHeight;V0=this.bookWidth;u0=this.maskTop;U0=this.maskWorkHeight;r0=this.maskWidth;P0=Math.round(+"1.1" * V0);N0=Math.round(("1.08" - 0) * h0);P0 % ("2" << 1640541792) != +"0" && V0 % ("2" & 2147483647) == +"0" && (P0+=1);N0 % +"2" != +"0" && (N0+=+"1");F0=Math.round((N0 - h0) / ("2" - 0));L0=Math.round((P0 - V0) / ("2" << 1339230880));this.stripeCanvas.width=P0;this.stripeCanvas.height=h0;this.stripeCanvasCTX=this.stripeCanvas.getContext(A15.A02(+"155"));this.shadowCanvas.width=P0;this.shadowCanvas.height=N0;this.shadowCanvasCTX=this.shadowCanvas.getContext(A15.A02("155" >> 847977152));x0=A15.A02("93" | 21) + -Math.round((".1" - 0) * h0) + A15.A02(+"141") + -Math.round((".05" - 0) * V0) + A15.A02(3) + Math.round(+"1.1" * V0) + A15.E02(+"28") + Math.round(("1.2" - 0) * h0) + A15.E02("166" << 1087229120) + p0 + A15.E02(+"188") + k0 + A15.E02(47) + r0 + A15.A02("188" - 0) + k0 + A15.A02(177) + p0 + A15.E02("77" | 13) + (+"0" - (r0 - V0)) + A15.E02("96" & 2147483647) + p0 + A15.E02(+"159") + U0 + A15.E02(+"164") + -u0 + A15.E02("3" ^ 0) + r0 + A15.E02("28" * 1) + U0 + A15.A02("170" << 2108727584) + Math.round(r0 - V0 / ("2" >> 734007520)) + A15.E02(+"84") + V0 + A15.A02("28" >> 96730400) + h0 + A15.E02(175) + r0 + A15.A02("28" - 0) + U0 + A15.E02("42" << 1046657664) + -u0 + A15.E02(+"102") + V0 + A15.E02("28" << 1737569664) + h0 + A15.E02(189) + Math.round(+".57" * p0) + A15.E02(+"28") + h0 + A15.E02(172) + Math.round(+".8" * p0) + A15.A02(28) + h0 + A15.E02("132" & 2147483647) + Math.round((".8" - 0) * p0) + A15.A02(28) + h0 + A15.E02("71" | 0) + Math.round(p0) + A15.E02(+"3") + Math.round(p0) + A15.E02("28" ^ 0) + Math.round(h0) + A15.A02(193) + -p0 + A15.A02(+"118") + P0 + A15.E02("28" << 1982282752) + N0 + A15.A02("176" * 1) + L0 + A15.E02(+"198") + F0 + A15.E02(+"137") + P0 + A15.A02(28) + h0 + A15.E02(+"176") + L0 + A15.A02(53);if(this.bookState.hardcover){m0=Math.round(h0 * g);S0=Math.round(p0 * g);g0=m0 - +"1";m0 % ("2" & 2147483647) != "0" * 1 && (m0+=+"1");H0=Math.round((m0 - h0) / 2);G0=Math.round(p0 * (g - ("1" | 0)));x0+=A15.A02(+"55") + g0 + A15.E02(85) + H0 + A15.E02(+"49") + this.bookState.hardcoverColor + A15.E02("160" - 0) + S0 + A15.E02("28" >> 468996352) + m0 + A15.A02(+"198") + H0 + A15.E02(+"173") + G0 + A15.A02(209) + S0 + A15.A02("188" | 164) + m0 + A15.E02("88" - 0) + Math.round(V0 / ("2" | 2)) + A15.A02("182" - 0) + p0 + A15.E02(+"28") + k0 + A15.E02("32" >> 1501911680) + this.bookState.hardcoverColor + A15.E02("103" - 0) + this.bookState.hardcoverColor + A15.A02(64) + G0 + A15.A02(+"107") + H0 + A15.A02(+"8") + G0 + A15.A02(107) + H0 + A15.A02(+"76") + p0 + A15.E02("156" << 1495341504) + h0 + A15.E02(46) + G0 + A15.A02(+"107") + H0 + A15.E02("206" >> 1502753632) + p0 + A15.E02("156" >> 698562048) + h0 + A15.E02("200" * 1) + H0 + A15.E02("117" - 0);}void 0 !== this.styleTag.textContent?this.styleTag.textContent=x0:this.styleTag.innerText=x0;this.setDynamicStyles();x0=null;};w.prototype.setDynamicStyles=function(){var I15=O044;var I0,y0,Y0,X0,Z0,v0,i0;I0=arguments.length > +"0" && void ("0" - 0) !== arguments["0" & 2147483647] && arguments[+"0"];y0=this.pageWidth;Y0=this.bookWidth;if((this.calcStripeSizes(),this.shadow && !I0?this.renderBookShadow(this.shadow,I0):this.shadow && I0 && this.renderStripe(),I0 || (this.bookContainer.querySelector(I15.A02("73" ^ 0)).style.left=this.bookLeft + I15.E02(+"90")),this.bookContainer.querySelector(I15.E02(15)).style.right=I15.E02(+"86") + (this.rightStripeWidth + (this.bookState.hardcover?y0 * (g - ("1" >> 1299396128)):"0" & 2147483647)) + I15.E02("90" ^ 0),this.bookContainer.querySelector(I15.A02(+"190")).style.left=I15.A02("86" | 18) + (this.leftStripeWidth + (this.bookState.hardcover?y0 * (g - +"1"):0)) + I15.A02(+"90"),this.bookState.hardcover)){X0=Math.round(Y0 * g + (this.bookState.singleMode?0:this.backboneWidth));Z0=Math.round(y0 * (g - ("1" << 1789078112)) + this.leftStripeWidth);v0=Math.round(Y0 * g / ("2" << 794492768) + (this.bookState.singleMode?+"0":this.backboneWidth));i0=I15.A02("129" << 1151222208) + X0 + I15.E02(+"110") + Z0 + I15.A02(+"195") + v0 + I15.A02("141" ^ 0) + Math.round(y0 - this.leftStripeWidth) + I15.E02(+"151") + v0 + I15.E02("26" << 548951072) + Math.round(y0 - this.rightStripeWidth) + I15.A02(+"117");void ("0" * 1) !== this.dynamicStyleTag.textContent?this.dynamicStyleTag.textContent=i0:this.dynamicStyleTag.innerText=i0;i0=null;}};w.prototype.shiftPages=function(){O044.H15();O044.A02(196) === this.lastDirection?this.shiftPagesLeft():O044.A02("124" >> 1722409952) === this.lastDirection && this.shiftPagesRight();};w.prototype.renderShadow=function(o0){var X15=O044;var E0;X15.q15();(o.default.addClass(this.globalWrapper,X15.E02("2" | 0)),o.default.removeClass(this.globalWrapper,X15.E02(153)),o0 && (this.bookState.right.isLastSheet || this.bookState.left.isFirstSheet)) || (E0=this.bookState.right.isFirst?X15.A02(+"208"):this.bookState.left.isLast?X15.E02("131" - 0):X15.E02(+"152"),this.set(X15.A02("101" | 33),E0),this.setDynamicStyles());};w.prototype.changeShadow=function(s0){var w15=O044;o.default.id(w15.E02("120" - 0)).setAttribute(w15.E02("63" >> 1935692512),w15.A02(+"134") + (this.bookState.hardcover?w15.A02(+"54"):w15.A02(+"62")) + s0);};w.prototype.onFlipToLeft=function(){this.lastDirection=O044.E02(+"196");};w.prototype.onFlipToRight=function(){O044.H15();this.lastDirection=O044.E02("124" - 0);};w.prototype.onRenderStart=function(n0){var Z15=O044;o.default.removeClass(this.globalWrapper,Z15.E02("2" | 2));Z15.A02("79" >> 1039144384) === this[this.currentWrapper].type && o.default.addClass(this.globalWrapper,Z15.E02(153));this.bookState.right.isFirst && -1 !== this.startPoint.indexOf(Z15.E02("196" << 711340256)) || this.bookState.left.isFirstSheet && - +"1" !== this.startPoint.indexOf(Z15.E02(+"124")) && Z15.E02(79) === this[this.currentWrapper].type && Z15.A02("115" >> 1127179072) === this.currentWrapper || n0.drag && this.bookState.left.isFirstSheet && - +"1" !== this.startPoint.indexOf(Z15.E02(196))?this.set(Z15.A02(+"101"),Z15.A02(+"208")):(this.bookState.left.isLast && - +"1" !== this.startPoint.indexOf(Z15.A02("124" ^ 0)) || this.bookState.right.isLastSheet && - +"1" !== this.startPoint.indexOf(Z15.A02("196" ^ 0)) && Z15.E02(79) === this[this.currentWrapper].type && Z15.E02(+"106") === this.currentWrapper || n0.drag && this.bookState.right.isLastSheet && - +"1" !== this.startPoint.indexOf(Z15.E02(+"124"))) && this.set(Z15.A02("101" & 2147483647),Z15.A02(+"131"));Z15.q15();this.setDynamicStyles();};w.prototype.initInnerEvents=function(){var f35=O044;this.on(f35.A02("39" & 2147483647),this.shiftPagesLeft);this.on(f35.E02(40),this.shiftPagesRight);this.on(f35.E02(+"201"),this.onFlipToLeft);this.on(f35.E02(+"21"),this.onFlipToRight);this.on(f35.E02(+"178"),this.onRenderStart);f35.H15();this.on(f35.E02("24" * 1),this.renderShadow);this.on(f35.E02(197),this.renderShadow);this.on(f35.A02(104),this.renderShadow);this.on(f35.E02(+"167"),this.changeShadow);this.bookState.on(f35.E02(59),this.renderShadow,this);this.bookState.on(f35.E02("59" & 2147483647),this.resetWrappers,this);this.bookState.on(f35.A02(+"56"),this.setStyles,this);this.trigger(f35.E02(104));};w.prototype.removeInnerEvents=function(){var v35=O044;this.off(v35.A02(+"39"),this.shiftPagesLeft);this.off(v35.E02("40" * 1),this.shiftPagesRight);this.off(v35.E02("201" | 192),this.onFlipToLeft);this.off(v35.A02(21),this.onFlipToRight);this.off(v35.A02("178" & 2147483647),this.onRenderStart);this.off(v35.E02("24" * 1),this.renderShadow);this.off(v35.E02(+"197"),this.renderShadow);this.off(v35.E02(+"104"),this.renderShadow);this.off(v35.E02("167" >> 592004096),this.changeShadow);this.bookState.off(v35.A02(59),this.renderShadow,this);this.bookState.off(v35.A02("59" << 787390912),this.resetWrappers,this);this.bookState.off(v35.A02(56),this.setStyles,this);};w.prototype.correctEv=function(Q0){var M0,C0;M0=this.globalWrapper.getBoundingClientRect();C0=document.getElementsByTagName(O044.E02(+"128"))["0" << 1226919936].scrollLeft;return {'\u0070\u0061\u0067\u0065\u0058':Q0.x - M0.left - C0,'\u0070\u0061\u0067\u0065\u0059':Q0.y};};w.prototype.touchMovePrevent=function(z0){O044.H15();-1 === Object(f.classPath)(z0.target).indexOf(O044.A02("11" | 0)) && z0.preventDefault();};w.prototype.calcPage=function(q6,D6){var h35=O044;var A6,J0,a0,l0,O6,B0,j6;A6=this.bookDiv.getBoundingClientRect();J0="0" * 1;a0=+"0";l0=this.bookState.hardcover?+"2":"1" - 0;O6=this.bookState.hardcover?this.bookState.pagesCount - 3:this.bookState.pagesCount - +"2";h35.H15();B0=this.bookState.currentLeft;j6=this.bookState.currentRight;return (h35.A02(124) === this.activeStripe?((J0=Math.abs(q6.clientX - (this.bookWidth + A6.left) + ("1" ^ 0))) > this.rightStripeWidth && (J0=D6?"0" & 2147483647:this.rightStripeWidth),a0=this.bookState.rtl?Math.ceil(l0 + (this.rightStripeWidth - J0) / this.rightStripeWidth * (this.bookState.pagesCount - B0 - l0)):Math.floor(O6 - (this.rightStripeWidth - J0) / this.rightStripeWidth * (O6 - j6))):h35.E02("196" ^ 0) === this.activeStripe && ((J0=Math.abs(q6.clientX - A6.left + "1" * 1)) > this.leftStripeWidth && (J0=D6?0:this.leftStripeWidth),a0=this.bookState.rtl?Math.floor(this.bookState.pagesCount - l0 - (this.leftStripeWidth - J0) / this.leftStripeWidth * ((j6 || B0) - l0)):Math.ceil(l0 + (this.leftStripeWidth - J0) / this.leftStripeWidth * (B0 - l0))),a0=h35.A02(+"196") === this.activeStripe?this.bookState.rtl?a0 <= O6 - B0?O6 - B0 + +"1":a0:a0 >= B0?B0 - ("1" & 2147483647):a0:this.bookState.rtl?a0 >= O6 - j6?O6 - j6 - "1" * 1:a0:a0 <= j6?j6 + ("1" >> 789079136):a0);};w.prototype.onPanStart=function(T6){var j35=O044;var e6,f6,t6,K6,d6,R6,c6,W6;e6=this;j35.q15();if((!T6.srcEvent || !T6.srcEvent.metaKey && !T6.srcEvent.ctrlKey) && T6.additionalEvent){f6=Object(f.classPath)(T6.target);if(- +"1" === f6.indexOf(j35.E02(+"11")) && -1 === f6.indexOf(j35.A02(12))){t6=document.elementFromPoint(T6.center.x - T6.deltaX,T6.center.y - T6.deltaY);if(!(t6 && j35.A02(+"31") === t6.getAttribute(j35.E02(+"98")) || Object(d.getStore)().state.notes.isMoving || j35.E02("150" * 1) === this.state || j35.A02("75" << 2126206720) === this.state || this.blocked))if(j35.E02(+"1") === this.state && this.progress > ("0" | 0) && this.progress < +"1")("0" & 2147483647) === this.breakProgress?this.breakProgress=this.progress:this.progress === this.breakProgress && (this.finishRender(! +"0",null,! +"0"),this.breakProgress="0" - 0);else {this.breakProgress=+"0";d6=this.correctEv(T6.center);R6=d6.pageX;c6=d6.pageY;W6=this.bookWidth / 2 + this.bookMarginLeft;if(!(-1 === this.leftWrapper.firstPageNum && - +"1" === this.leftWrapper.secondPageNum && R6 < W6 || -("1" << 502385280) === this.rightWrapper.firstPageNum && - +"1" === this.rightWrapper.secondPageNum && R6 > W6)){if(this.bookState.singleMode){if((j35.A02("18" & 2147483647) === T6.additionalEvent || j35.E02(126) === T6.additionalEvent || j35.A02(+"43") === T6.additionalEvent) && (this.bookState.rtl?this.bookState.left.isLast:this.bookState.right.isLast))return;if((j35.A02(+"162") === T6.additionalEvent || j35.A02(+"126") === T6.additionalEvent || j35.A02(43) === T6.additionalEvent) && (this.bookState.rtl?this.bookState.left.isFirst:this.bookState.right.isFirst))return;}else {if((j35.A02("18" | 16) === T6.additionalEvent || j35.A02(+"126") === T6.additionalEvent || j35.A02(43) === T6.additionalEvent) && this.bookState.right.isLast)return;if((j35.E02(+"162") === T6.additionalEvent || j35.A02("126" - 0) === T6.additionalEvent || j35.E02(+"43") === T6.additionalEvent) && this.bookState.left.isFirst)return;}R6 > W6 && j35.A02(+"162") === T6.additionalEvent && (K6=j35.A02("196" >> 920544864),!this.bookState.singleMode) || R6 < W6 && j35.A02(+"18") === T6.additionalEvent && (K6=j35.A02(+"124"),!this.bookState.singleMode) || (Object(d.getStore)().dispatch(j35.E02(+"9"),{'\u0074\u0061\u0072\u0067\u0065\u0074':j35.E02(+"144")}),Object(d.getStore)().dispatch(j35.A02(5),j35.E02("204" >> 562994112)),this.once(j35.A02("24" - 0),function(){j35.q15();Object(d.getStore)().dispatch(j35.E02("80" ^ 0),{'\u0074\u0061\u0072\u0067\u0065\u0074':j35.A02(144)});Object(d.getStore)().dispatch(j35.A02("5" >> 1473122400),j35.A02("138" ^ 0));}),this.moveFlag=! +"0",this.state=j35.E02(+"150"),requestAnimationFrame(function(){e6.startRender({'\u0070\u0061\u0067\u0065\u0058':R6,'\u0070\u0061\u0067\u0065\u0059':c6},!0,K6,!0);}));}}}}};y=!("1" >> 1057050336);w.prototype.onPanMove=function(w6){var b6;b6=this;O044.E02(1) !== this.state && this.moveFlag?(this.state=O044.A02(+"75"),requestAnimationFrame(function(){O044.H15();O044.E02("79" >> 1681365824) !== b6[b6.currentWrapper].type?b6.render(b6.correctEv(w6.center)):b6.renderHard(b6.correctEv(w6.center));})):O044.A02(194) === this.bookState.version && (Math.abs(w6.overallVelocity) > +".3" && !y?(y=! +"0",setTimeout(function(){O044.q15();y && (y=!("1" | 0),b6.onPanStart(w6));},"150" >> 465974208)):Math.abs(w6.overallVelocity) <= +".3" && !y && this.onPanStart(w6));};w.prototype.onPanCancel=function(p6){var h6;h6=this;y=!1;O044.A02(+"1") !== this.state && this.moveFlag && (this.moveFlag=!("1" * 1),requestAnimationFrame(function(){var V6;V6=null;O044.E02("79" & 2147483647) !== h6[h6.currentWrapper].type && (p6.velocityX > ".2" * 1 && (V6=O044.A02(+"124")),p6.velocityX < -(".2" * 1) && (V6=O044.A02(196)));h6.finishRender(!1,V6);}));};k=Date.now();w.prototype.onSwipe=function(P6){var y35=O044;y && !this.blocked && (y=! +"1",k < Date.now() && (k=Date.now() + +"150",P6.deltaX > 0?Object(d.getStore)().dispatch(this.bookState.rtl?y35.E02("34" * 1):y35.E02(148),{'\u0074\u0061\u0072\u0067\u0065\u0074':y35.E02(114)}):Object(d.getStore)().dispatch(this.bookState.rtl?y35.E02("148" ^ 0):y35.E02("34" << 1029525856),{'\u0074\u0061\u0072\u0067\u0065\u0074':y35.E02("114" * 1)})));};w.prototype.onStripeMouseOut=function(){O044.q15();this.set(O044.E02(+"111"),O044.E02("122" >> 1305919008));};P=Date.now();x=+"0";function m(O0){requestAnimationFrame(m);O044.H15();h.a.update(O0);}w.prototype.onLeftStripeMouseMove=function(H6){var x35=O044;var N6,r6,m6;x35.q15();if("1" * 1 !== H6.buttons){N6=1;if(Date.now() - P > ("300" | 44))(P=Date.now(),x=H6.clientX);else N6=Math.abs(H6.clientX - x) / (Date.now() - P);if(!(N6 > +".2")){this.set(x35.E02(111),x35.A02(+"196"));r6=this.bookContainer.getBoundingClientRect().left;m6=this.bookBlock.getBoundingClientRect();this.stripeDiv.style.left=(H6.clientX - 33 >= r6 + ("3" | 2)?H6.clientX - m6.left - +"33":r6 - m6.left + 3) + x35.E02(+"90");this.stripeDiv.style.top=H6.clientY - m6.top - ("33" & 2147483647) + x35.E02(+"90");this.stripeDiv.innerText=Object(d.getStore)().getters[x35.A02("94" & 2147483647)](this.calcPage(H6));}}};w.prototype.onRightStripeMouseMove=function(G6){var u35=O044;var k6,U6,L6,x6;if("1" - 0 !== G6.buttons){k6="1" >> 1684621088;if(Date.now() - P > "300" - 0)(P=Date.now(),x=G6.clientX);else k6=Math.abs(G6.clientX - x) / (Date.now() - P);if(!(k6 > .2)){this.set(u35.E02(+"111"),u35.E02(+"124"));U6=this.stripeDiv.clientWidth;L6=this.bookContainer.getBoundingClientRect().right;x6=this.bookBlock.getBoundingClientRect();this.stripeDiv.style.left=(G6.clientX + +"3" <= L6 - +"3" - U6?G6.clientX - x6.left + +"3":L6 - x6.left - +"3" - U6) + u35.A02("90" | 80);this.stripeDiv.style.top=G6.clientY - x6.top - 33 + u35.E02("90" >> 102062592);this.stripeDiv.innerText=Object(d.getStore)().getters[u35.E02("94" - 0)](this.calcPage(G6));}}};w.prototype.onStripeBlockClick=function(S6){var N15=O044;var u6;if(N15.A02(+"194") !== this.bookState.version && (S6.stopPropagation(),S6.preventDefault(),N15.E02(122) !== this.activeStripe)){u6=this.calcPage(S6,!("0" & 2147483647));Object(d.getStore)().dispatch(N15.E02(+"130"),{'\u0070\u0061\u0067\u0065\u0049\u006e\u0064\u0065\u0078':u6,'\u0074\u0061\u0072\u0067\u0065\u0074':N15.A02(+"171")});this.set(N15.E02(+"111"),N15.E02("122" - 0));}};w.prototype.onChangeActiveStripe=function(F6){var t35=O044;t35.q15();t35.A02(+"122") !== F6?(this.stripeDiv.style.display=t35.E02(+"60"),this.stripeCanvas.style.cursor=t35.A02("29" >> 1098213376)):(this.stripeDiv.style.display=t35.E02("81" | 80),this.stripeCanvas.style.cursor=t35.E02(+"87"));};w.prototype.initDOMEvents=function(){var g35=O044;this.moveFlag=! +"1";document.addEventListener(g35.A02(+"25"),this.touchMovePrevent,{'\u0070\u0061\u0073\u0073\u0069\u0076\u0065':!1});this.bookDiv.ontouchmove=this.touchMovePrevent;g35.A02(+"194") !== this.bookState.version && (this.leftStripeBlock.addEventListener(g35.A02(+"17"),this.onStripeMouseOut.bind(this)),this.rightStripeBlock.addEventListener(g35.E02(+"17"),this.onStripeMouseOut.bind(this)),this.leftStripeBlock.addEventListener(g35.E02(69),this.onLeftStripeMouseMove.bind(this)),this.rightStripeBlock.addEventListener(g35.A02(+"69"),this.onRightStripeMouseMove.bind(this)),this.leftStripeBlock.addEventListener(g35.A02(+"191"),this.onStripeBlockClick.bind(this)),this.rightStripeBlock.addEventListener(g35.E02(+"191"),this.onStripeBlockClick.bind(this)),this.on(g35.A02(108),this.onChangeActiveStripe),this.stripeDiv=document.createElement(g35.A02("68" & 2147483647)),this.globalWrapper.appendChild(this.stripeDiv),this.stripeDiv.style.position=g35.E02(+"179"),this.stripeDiv.style.zIndex=g35.A02(+"10"),this.stripeDiv.style.padding=g35.A02(+"7"),this.stripeDiv.style.fontSize=g35.A02("27" << 764725568),this.stripeDiv.style.lineHeight=g35.E02("123" | 98),this.stripeDiv.style.height=g35.E02(+"123"),this.stripeDiv.style.textAlign=g35.A02(+"161"),this.stripeDiv.style.borderRadius=g35.E02("168" << 6417536),this.stripeDiv.style.backgroundColor=g35.E02("187" | 147),this.stripeDiv.style.color=g35.E02(+"37"),this.stripeDiv.style.display=g35.E02("81" & 2147483647),this.bookBlock=this.parentVm.$root.$el.querySelector(g35.A02("112" | 48)));this.bookDivEventEmiter=new c.a(this.bookDiv,{});this.bookDivEventEmiter.get(g35.A02("204" & 2147483647)).set({'\u0064\u0069\u0072\u0065\u0063\u0074\u0069\u006f\u006e':c.a.DIRECTION_ALL});this.bookDivEventEmiter.on(g35.E02(+"192"),this.onPanMove.bind(this));this.bookDivEventEmiter.on(g35.E02(+"109"),this.onPanCancel.bind(this));this.bookDivEventEmiter.on(g35.E02(+"61"),this.onPanCancel.bind(this));g35.H15();g35.E02("194" ^ 0) === this.bookState.version?this.bookDivEventEmiter.on(g35.A02("114" >> 1642314240),this.onSwipe.bind(this)):this.bookDivEventEmiter.on(g35.A02(199),this.onPanStart.bind(this));};w.prototype.removeDOMEvents=function(){document.removeEventListener(O044.A02(+"25"),this.touchMovePrevent,{'\u0070\u0061\u0073\u0073\u0069\u0076\u0065':!("1" << 481302464)});this.bookDiv.ontouchmove=null;O044.E02("194" << 1625448704) !== this.bookState.version && this.off(O044.A02("108" >> 186157664),this.onChangeActiveStripe);this.bookDivEventEmiter.destroy();};w.prototype.initPoints=function(X6){var e15=O044;var I6,i6,Y6,v6,g6,y6;I6=this.pageWidth;i6=this.pageHeight;Y6=this.bookWidth;v6=this.bookHeight;g6=this.bookMarginTop;y6=this.bookMarginLeft;switch((this.innerRadius=I6,this.outerRadius=("1" - 0) * (Math.sqrt(I6 * I6 + i6 * i6) - +".5").toFixed("0" * 1),this.startPoint)){case e15.E02("143" & 2147483647):(this.spineTop=new $(I6 + y6,+"0" + g6),this.spineCenter=new $(I6 + y6,i6 / +"2" + g6),this.spineBottom=new $(I6 + y6,i6 + g6),this.edgeBottom=new $(Y6 + y6,v6 + g6));break;case e15.A02(+"19"):(this.spineBottom=new $(I6 + y6,+"0" + g6),this.spineCenter=new $(I6 + y6,i6 / ("2" | 0) + g6),this.spineTop=new $(I6 + y6,i6 + g6),this.edgeBottom=new $(Y6 + y6,"0" - 0 + g6));break;case e15.E02(+"145"):(this.spineTop=new $(I6 + y6,("0" ^ 0) + g6),this.spineCenter=new $(I6 + y6,i6 / ("2" - 0) + g6),this.spineBottom=new $(I6 + y6,i6 + g6),this.edgeBottom=new $(y6 - "1" * 1,v6 + g6));break;case e15.E02("135" << 1061187136):(this.spineBottom=new $(I6 + y6,("0" << 1043270688) + g6),this.spineCenter=new $(I6 + y6,i6 / +"2" + g6),this.spineTop=new $(I6 + y6,i6 + g6),this.edgeBottom=new $(y6 - 1,g6));}this.radius1=new $(0,+"0");this.radius2=new $(+"0","0" | 0);this.corner=new $(+"0","0" >> 513175392);this.follow=new $(+"0",0);this.middle={};this.renderData={};this.deltaFromCorner=Math.abs(this.edgeBottom.y - X6.pageY);this.deltaFromCorner > ".15" * 1 * this.bookHeight?this.deltaFromCorner=e15.A02(135) === this.startPoint || e15.A02(+"19") === this.startPoint?+".95" * -this.deltaFromCorner:.95 * this.deltaFromCorner:this.deltaFromCorner=+"0";};w.prototype.toggleCorner=function(E6){var J15=O044;var Z6;Z6=this.bookHeight - Math.abs(this.deltaFromCorner);-("1" - 0) !== this.startPoint.indexOf(J15.E02(+"125"))?(this.startPoint=this.startPoint.replace(J15.E02("125" | 113),J15.A02(+"139")),this.startY=this.bookMarginTop + this.bookHeight):(this.startPoint=this.startPoint.replace(J15.E02("139" ^ 0),J15.A02("125" & 2147483647)),this.startY=this.bookMarginTop);J15.H15();this.initPoints(E6);this.deltaFromCorner=this.deltaFromCorner < 0?-Z6:Z6;this.initOnceSizes();this.render(E6,!1,!("0" >> 1607047744));};w.prototype.startRender=function(o6,A9,n6){var G15=O044;var Q6,a6,M6,j9,O9,B6,l6,C6,J6,s6,z6;M6=arguments.length > +"3" && void +"0" !== arguments[+"3"] && arguments["3" << 1599960512];G15.q15();j9=o6.pageX - this.bookMarginLeft;O9=o6.pageY - this.bookMarginTop;if((n6=n6 || !("1" << 296591584),j9 > this.pageWidth && G15.E02(+"196") !== n6 || G15.A02(+"124") === n6)){if((Q6=G15.E02(+"124"),this.currentWrapper=G15.E02("106" ^ 0),this.bookState.right.isNull || this.bookState.right.isLast)){if(!Object(d.getStore)().state.pager.forceFlip)return void (this.state=G15.A02("1" & 2147483647));Object(d.getStore)().dispatch(G15.A02(+"51"),{'\u0066\u006f\u0072\u0063\u0065\u0046\u006c\u0069\u0070':! +"1"});}this.bookState.right.isLastSheet && (this.innerReflexBottom.style.display=G15.A02(+"81"));this.startX=this.bookMarginLeft + this.bookWidth - +"3";}else {if((Q6=G15.A02(196),this.currentWrapper=G15.E02("115" >> 790383424),this.bookState.left.isNull || this.bookState.rtl && this.bookState.left.isFirst)){if(!Object(d.getStore)().state.pager.forceFlip)return void (this.state=G15.A02(+"1"));Object(d.getStore)().dispatch(G15.A02(+"51"),{'\u0066\u006f\u0072\u0063\u0065\u0046\u006c\u0069\u0070':! +"1"});}this.bookState.left.isFirstSheet && (this.innerReflexBottom.style.display=G15.E02("81" ^ 0));this.startX=this.bookMarginLeft + +"3";}if(((-("1" * 1) === this.leftWrapper.secondPageNum && this.bookState.left.isLast || -("1" | 0) === this.rightWrapper.firstPageNum && this.bookState.right.isFirst || +"2" === this.bookState.pagesCount) && o.default.addClass(this.globalWrapper,G15.E02(184)),G15.E02("79" | 0) !== this[this.currentWrapper].type)){O9 > this.bookHeight / ("2" << 1310412352)?(a6=G15.A02(139),this.startY=this.bookMarginTop + this.bookHeight):(a6=G15.E02("125" ^ 0),this.startY=this.bookMarginTop);this.startPoint=a6 + Q6;this.initPoints(o6);B6=o6.pageX - this.startX;l6=o6.pageY - this.startY;this.initOnceSizes();(this.bookState.left.isFirstSheet || this.bookState.right.isLastSheet) && this[this.currentWrapper].reflexMask && (this[this.currentWrapper].reflexMask.style.overflow=G15.E02("169" & 2147483647));C6={'\u0070\u0061\u0067\u0065\u0058':this.startX,'\u0070\u0061\u0067\u0065\u0059':this.startY - this.deltaFromCorner};J6={'\u0070\u0061\u0067\u0065\u0058':this.startX + B6,'\u0070\u0061\u0067\u0065\u0059':this.startY - this.deltaFromCorner + (l6 + this.deltaFromCorner)};this.render(C6);s6=this;this.trigger(G15.A02(178),{'\u0064\u0072\u0061\u0067':M6,'\u0068\u0069\u0064\u0065':M6 && (this.bookState.left.isFirstSheet || this.bookState.right.isLastSheet)?Q6:G15.A02(+"122")});z6=function(){A9?s6.render(J6):s6.tween=new h.a.Tween(C6).to(J6,+"50").easing(h.a.Easing.Sinusoidal.Out).onUpdate(function(){G15.H15();s6.render(C6);}).start();};this.tween && this.tween._isPlaying?s6.tween.onStop(function(){G15.H15();z6();}).stop():z6();o.default.addClass(this[this.currentWrapper].mask,G15.E02(+"20"));Object(d.getStore)().dispatch(G15.E02(+"95"),{'\u006e\u0065\u0077\u0053\u0074\u0061\u0074\u0065':G15.A02("150" << 2009297024)});this.state=G15.E02(+"150");this[this.currentWrapper].mask.style.top=-this.maskTop + G15.A02(+"90");}else this.startRenderHard(o6,M6,n6);};w.prototype.render=function(g9,e2,m2){var M15=O044;var o9,Y9,d9,w9,D9,e9,L9,W9,R9,q9,H9,a9,I9,f9,P9,D2,A2,K2,W2,J9,T9,v9,s9,h9,F9,K9,d2,b2,c2,b9,m9,c9,M9,y9,p9,V9,i9,t2,R2,j2,T2,Q9,n9,t9,X9,w2,O2,C9,N9,q2,u9,H2,h2,z9,U9,f2,k9,P2,E9,B9,x9,G9,p2,Z9,l9,S9,r9,V2;q9=this.renderData;e2=e2 || ! +"1";H9=g9.pageX;a9=g9.pageY;I9=this.deltaFromCorner;f9=this.edgeBottom.x;P9=this.edgeBottom.y;D2=this.spineBottom.x;A2=this.spineBottom.y;K2=this.spineTop.x;W2=this.spineTop.y;J9=this.outerRadius;T9=this.bookWidth;v9=this.bookHeight;s9=this.maskWidth;h9=this.maskTop;F9=this.pageWidth;K9=this.gradientPrefix;d2=this.innerReflexBottomWidth;b2=this.flipGradientWidth;c2=this.innerReflexWidth;b9=this.startPoint;m9=this.transformMethod;c9=this.currentWrapper;M9=this.innerRadius;if(+"0" !== I9){y9=Math.atan((P9 - I9 - a9) / (f9 - H9));y9 !== +y9 && (y9="0" >> 1511060736);o9=H9 + -I9 * Math.sin(2 * y9);Y9=a9 + I9 * Math.cos(2 * y9);}else (o9=H9,Y9=a9);p9=D2 - o9;V9=A2 - Y9;i9=Math.atan2(V9,p9);t2=D2 - Math.cos(i9) * M9;R2=A2 - Math.sin(i9) * M9;Math.sqrt(V9 * V9 + p9 * p9) > M9?(d9=t2 - ".5" * 1,w9=R2 - ".5" * 1):(d9=o9,w9=Y9);p9=K2 - d9;V9=W2 - w9;i9=Math.atan2(V9,p9);j2=K2 - Math.cos(i9) * J9;T2=W2 - Math.sin(i9) * J9;if((Math.sqrt(p9 * p9 + V9 * V9) > J9 && (d9=j2 - (".5" - 0),w9=T2 - +".5"),0 !== I9 && !m2)){if(d9 <= f9 + +"2" && -1 !== b9.indexOf(M15.A02(+"196")))return void this.toggleCorner(g9);if(d9 >= f9 - ("2" ^ 0) && -1 !== b9.indexOf(M15.E02("124" ^ 0)))return void this.toggleCorner(g9);}Q9=d9 + +".5" * (f9 - d9);n9=w9 + ".5" * 1 * (P9 - w9);Math.abs(n9 - P9) >= "1" >> 2105035360 || Math.abs(Q9 - f9) >= "1" - 0?(D9=Math.atan((n9 - P9) / (Q9 - f9)),W9=Math.sqrt((f9 - d9) * (f9 - d9) + (P9 - w9) * (P9 - w9)) / 2,e9=f9 - Q9,L9=P9 - n9):(D9=+"0",W9="0" >> 134007776,e9=0,L9="0" * 1);D9 !== +D9 && (D9="0" | 0);t9=Math.abs(e9 / F9);R9="0" << 2065235680 === t9?0:t9 > ".8" - 0?+"5" * (("1" & 2147483647) - t9):"1" >> 788270336;D9=o.default.round(D9,+"5");X9=(t9 > .9?+".35":-(".35" - 0)) * window.devicePixelRatio;w2=T9 > "1300" >> 2351840?2 * X9:X9;if((M15.E02(143) === b9 || M15.A02(+"19") === b9?(q9.reversePageTransform=M15.A02("181" << 895498112) + (s9 - W9 + w2) + M15.E02("183" - 0) + h9 + M15.A02(207) + D9 + M15.A02(+"65"),q9.maskTransform=M15.A02(+"181") + (-e9 + X9) + M15.E02("183" * 1) + -L9 + M15.E02("207" - 0) + D9 + M15.E02(+"65"),q9.frontPageTransform=M15.A02(+"181") + (s9 - F9 + W9) + M15.E02(+"183") + h9 + M15.A02(+"207") + -D9 + M15.E02(+"65")):(q9.reversePageTransform=M15.A02(+"181") + (-F9 + W9 - w2) + M15.E02("183" >> 1391584096) + h9 + M15.E02("207" >> 930142784) + D9 + M15.E02(65),q9.maskTransform=M15.A02(+"181") + (-e9 - X9) + M15.E02(183) + -L9 + M15.A02(+"207") + D9 + M15.A02(65),q9.frontPageTransform=M15.E02("181" | 33) + -W9 + M15.E02("183" | 22) + h9 + M15.E02(207) + -D9 + M15.A02("65" - 0)),+"0" !== R9))if(M15.A02("143" * 1) === b9){O2=W9 / Math.cos(D9);C9=Math.tan(D9) * v9;N9=C9 < 0?O2 - C9:W9;C9 < +"0" && (N9=Math.cos(D9) * N9);q9.flipGradientBackground=K9 + M15.E02(+"41") + (".45" - 0) * R9 + M15.A02(+"185") + .15 * R9 + M15.A02("66" - 0) + +".01" * N9 + M15.E02("30" << 2089431264) + (".45" - 0) * R9 + M15.E02("66" & 2147483647) + .055 * N9 + M15.A02(+"45") + +".65" * R9 * (".32" - 0) + M15.A02("66" | 2) + ".185" * 1 * N9 + M15.A02("83" - 0) + N9 + M15.E02("99" & 2147483647);q9.flipGradientTransform=M15.E02(+"181") + (O2 - b2) + M15.A02("174" << 1238810624) + -D9 + M15.E02(+"65");q2=Math.tan(D9) * L9;u9=f9 - H9;u9=u9 < +".03" * T9?.03 * T9:u9 > +".3" * T9?(".3" - 0) * T9:u9;q9.innerReflexBottomBackground=K9 + M15.E02("136" - 0) + ".45" * 1 * R9 + M15.A02("6" & 2147483647) + u9 + M15.E02(+"99");q9.innerReflexBottomTransform=M15.A02(181) + (T9 - e9 - q2) + M15.A02(+"174") + D9 + M15.A02(+"65");H2=u9 * (".45" * 1 + t9 / 2);q9.innerReflexBackground=K9 + M15.A02(+"72") + (.1 + +"1.6" * t9 * (".4" * 1)) + M15.E02(6) + H2 + M15.E02("99" >> 505337760);q9.innerReflexTransform=M15.A02("181" & 2147483647) + (T9 - e9 - q2 - c2) + M15.E02(174) + D9 + M15.A02("65" & 2147483647);q9.reflexContainerTransform=M15.E02(+"181") + (s9 - T9 + W9) + M15.E02(183) + h9 + M15.E02("207" | 201) + -D9 + M15.E02(+"65");}else if(M15.E02(19) === b9){h2=W9 / Math.cos(D9);z9=Math.tan(D9) * v9;U9=z9 > +"0"?h2 + z9:W9;z9 > 0 && (U9=Math.cos(D9) * U9);q9.flipGradientBackground=K9 + M15.A02(41) + ".45" * 1 * R9 + M15.E02("185" ^ 0) + ".15" * 1 * R9 + M15.A02("66" >> 294433600) + +".01" * U9 + M15.A02(30) + .45 * R9 + M15.A02("66" & 2147483647) + +".055" * U9 + M15.E02("45" >> 574124256) + .65 * R9 * +".32" + M15.A02(+"66") + ".185" * 1 * U9 + M15.E02("83" ^ 0) + U9 + M15.A02(99);q9.flipGradientTransform=M15.A02(181) + (h2 - b2) + M15.A02("174" >> 1357346976) + -D9 + M15.E02(65);f2=Math.tan(D9) * L9;k9=f9 - H9;k9=k9 < +".03" * T9?+".03" * T9:k9 > .3 * T9?+".3" * T9:k9;q9.innerReflexBottomBackground=K9 + M15.A02("136" | 0) + (".45" - 0) * R9 + M15.A02("6" << 418215456) + k9 + M15.E02(+"99");q9.innerReflexBottomTransform=M15.A02(+"181") + (T9 - e9 - f2) + M15.E02("174" & 2147483647) + D9 + M15.E02(+"65");P2=k9 * (.45 + t9 / +"2");q9.innerReflexBackground=K9 + M15.A02("72" << 1803819168) + (+".1" + 1.6 * t9 * .4) + M15.A02("6" ^ 0) + P2 + M15.A02(+"99");q9.innerReflexTransform=M15.A02(181) + (T9 - e9 - c2 - f2) + M15.A02(+"174") + D9 + M15.E02(+"65");q9.reflexContainerTransform=M15.A02(181) + (s9 - T9 + W9) + M15.E02(+"183") + h9 + M15.A02("207" - 0) + -D9 + M15.A02(+"65");}else if(M15.A02(+"145") === b9){E9=W9 / Math.cos(D9);B9=Math.tan(D9) * v9;x9=B9 > +"0"?E9 + B9:W9;B9 > +"0" && (x9=Math.cos(D9) * x9);q9.flipGradientBackground=K9 + M15.A02(140) + +".45" * R9 + M15.E02(185) + +".15" * R9 + M15.E02("66" << 1985603328) + .01 * x9 + M15.E02(+"30") + ".45" * 1 * R9 + M15.A02("66" ^ 0) + +".055" * x9 + M15.A02("45" - 0) + ".65" * 1 * R9 * +".32" + M15.E02("66" ^ 0) + (".185" - 0) * x9 + M15.E02("83" ^ 0) + x9 + M15.E02("99" & 2147483647);q9.flipGradientTransform=M15.A02("181" >> 65306080) + (F9 - E9) + M15.E02(+"174") + -D9 + M15.E02(+"65");G9=H9 - f9;G9=G9 < +".03" * T9?(".03" - 0) * T9:G9 > .3 * T9?+".3" * T9:G9;q9.innerReflexBottomBackground=K9 + M15.A02(72) + (".45" - 0) * R9 + M15.A02(6) + G9 + M15.E02(+"99");q9.innerReflexBottomTransform=M15.E02("181" << 785823264) + (E9 - d2) + M15.A02(+"174") + D9 + M15.A02(+"65");p2=G9 * (".45" * 1 + t9 / 2);q9.innerReflexBackground=K9 + M15.A02(+"136") + (".1" * 1 + 1.6 * t9 * +".4") + M15.E02("6" << 2052483488) + p2 + M15.A02(+"99");q9.innerReflexTransform=M15.A02("181" >> 1593491936) + E9 + M15.E02(+"174") + D9 + M15.E02(+"65");q9.reflexContainerTransform=M15.A02(+"181") + -W9 + M15.E02("183" | 49) + h9 + M15.A02(+"207") + -D9 + M15.A02("65" << 293560832);}else {Z9=W9 / Math.cos(D9);l9=Math.tan(D9) * v9;S9=l9 < 0?Z9 - l9:W9;l9 < ("0" ^ 0) && (S9=Math.cos(D9) * S9);q9.flipGradientBackground=K9 + M15.A02(+"140") + (".45" - 0) * R9 + M15.A02("185" | 168) + +".15" * R9 + M15.A02(+"66") + .01 * S9 + M15.E02("30" * 1) + ".45" * 1 * R9 + M15.A02(+"66") + +".055" * S9 + M15.E02("45" >> 1982056608) + +".65" * R9 * .32 + M15.A02(+"66") + +".185" * S9 + M15.E02(+"83") + S9 + M15.E02(+"99");q9.flipGradientTransform=M15.A02(+"181") + (F9 - Z9) + M15.A02(+"174") + -D9 + M15.A02(+"65");r9=H9 - f9;r9=r9 < ".03" * 1 * T9?.03 * T9:r9 > ".3" * 1 * T9?(".3" - 0) * T9:r9;q9.innerReflexBottomBackground=K9 + M15.E02("72" - 0) + +".45" * R9 + M15.A02(+"6") + r9 + M15.A02(+"99");q9.innerReflexBottomTransform=M15.E02(+"181") + (Z9 - d2) + M15.E02(+"174") + D9 + M15.A02("65" >> 325282944);V2=r9 * (".45" - 0 + t9 / +"2");q9.innerReflexBackground=K9 + M15.A02("136" << 1067750816) + (+".1" + +"1.6" * t9 * (".4" * 1)) + M15.A02("6" & 2147483647) + V2 + M15.E02("99" & 2147483647);q9.innerReflexTransform=M15.A02("181" * 1) + Z9 + M15.E02(+"174") + D9 + M15.A02(+"65");q9.reflexContainerTransform=M15.A02("181" * 1) + -W9 + M15.E02("183" * 1) + h9 + M15.A02(+"207") + -D9 + M15.E02(+"65");}this[c9].reversePage.style[m9]=q9.reversePageTransform;this[c9].mask.style[m9]=q9.maskTransform;this[c9].frontPage.style[m9]=q9.frontPageTransform;this[c9].flipGradient.style.background=q9.flipGradientBackground;this[c9].flipGradient.style[m9]=q9.flipGradientTransform;e2 || this.bookState.singleMode?this.innerReflexBottom.style.display=M15.E02(81):(this.innerReflexBottom.style.background=q9.innerReflexBottomBackground,this.innerReflexBottom.style[m9]=q9.innerReflexBottomTransform,this[c9].innerReflex.style.background=q9.innerReflexBackground,this[c9].innerReflex.style[m9]=q9.innerReflexTransform,this[c9].innerReflex.style.display=("0" & 2147483647) === R9?M15.E02("81" - 0):M15.E02(122));this[c9].reflexContainer.style[m9]=q9.reflexContainerTransform;this.follow=new $(o9,Y9);this.corner=new $(d9,w9);this.radius1=new $(t2,R2);this.radius2=new $(j2,T2);this.progress=t9;this.renderData=q9;this.middle={'\u0078':Q9,'\u0079':n9,'\u0064\u0069\u0073\u0074':W9,'\u0061\u006c\u0066\u0061':D9,'\u0064\u0069\u0073\u0074\u0058':e9,'\u0064\u0069\u0073\u0074\u0059':L9};(this.bookState.left.isFirstSheet && -("1" ^ 0) !== b9.indexOf(M15.A02(196)) || this.bookState.left.isLast || this.bookState.right.isFirst || this.bookState.right.isLastSheet && -1 !== b9.indexOf(M15.E02(+"124")) || g9.fakePointer && this.bookState.left.isFirstSheet || g9.fakePointer && this.bookState.right.isLastSheet) && this.setDynamicStyles(!0);};w.prototype.finishRender=function(G2,F2,x2,u2){var p15=O044;var r2,L2,k2,U2,N2,S2;if((G2=G2 || !("1" & 2147483647),this.postPager=!("1" >> 1094638464),p15.A02(+"79") !== this[this.currentWrapper].type)){r2=this.progress < .5?this.corner.x - this.startX:p15.A02(143) === this.startPoint || p15.A02(+"19") === this.startPoint?this.corner.x - this.startX + this.bookWidth:this.corner.x - this.startX - this.bookWidth;p15.A02(+"124") === F2?(this.progress=+".9",r2=this.corner.x - this.startX - this.bookWidth):p15.A02(196) === F2 && (this.progress=".9" - 0,r2=this.corner.x - this.startX + this.bookWidth);L2=this.corner.y - this.startY;k2=this.corner.x;U2=this.corner.y;N2=this;this.deltaFromCorner="0" ^ 0;S2=function(){var g2,y2;g2={'\u0070\u0061\u0067\u0065\u0058':k2,'\u0070\u0061\u0067\u0065\u0059':U2};y2=function(){N2.render({'\u0070\u0061\u0067\u0065\u0058':k2 - r2,'\u0070\u0061\u0067\u0065\u0059':U2 - L2},!("0" & 2147483647));N2.progress > ".5" - 0 && (p15.A02("143" ^ 0) === N2.startPoint || p15.E02(19) === N2.startPoint?N2[N2.currentWrapper].setLeft():N2[N2.currentWrapper].setRight());o.default.removeClass(N2[N2.currentWrapper].mask,p15.E02("20" * 1));N2.state=p15.E02("1" << 893369664);Object(d.getStore)().dispatch(p15.A02(+"95"),{'\u006e\u0065\u0077\u0053\u0074\u0061\u0074\u0065':p15.A02(+"1")});N2[N2.currentWrapper].mask.style.top=p15.E02(+"67");N2[N2.currentWrapper].mask.style[N2.transformMethod]=p15.A02("122" * 1);N2[N2.currentWrapper].frontPage.style[N2.transformMethod]=p15.E02("122" >> 319294240);N2[N2.currentWrapper].reversePage.style[N2.transformMethod]=p15.A02(+"100");N2.innerReflexBottom.style[N2.transformMethod]=p15.E02(+"82");N2.innerReflexBottom.style.display=p15.E02("122" - 0);N2[N2.currentWrapper].reflexMask && (N2[N2.currentWrapper].reflexMask.style.overflow=p15.A02("122" * 1));p15.q15();N2.progress > .5 && !x2 && (p15.A02("143" & 2147483647) === N2.startPoint || p15.E02("19" ^ 0) === N2.startPoint?N2.trigger(p15.E02(+"201")):N2.trigger(p15.E02(+"21")));x2?N2.trigger(p15.A02(+"197"),u2):N2.trigger(p15.E02("24" * 1),u2);N2.progress > +".5" && x2 && (p15.E02(143) === N2.startPoint || p15.A02(+"19") === N2.startPoint?N2.trigger(p15.A02("39" << 1064286496)):N2.trigger(p15.A02(+"40")));o.default.removeClass(N2.globalWrapper,p15.A02("184" >> 606081920));N2.progress=+"1";};G2?y2():N2.tween=new h.a.Tween(g2).to({'\u0070\u0061\u0067\u0065\u0058':k2 - r2,'\u0070\u0061\u0067\u0065\u0059':U2 - L2},"350" | 74).easing(h.a.Easing.Sinusoidal.Out).onUpdate(function(){p15.q15();G2 || N2.render(g2);}).onComplete(y2).start();};this.tween && this.tween._isPlaying?this.tween.onStop(function(){S2();}).stop():S2();}else this.finishRenderHard(G2,F2,x2,u2);};w.prototype.startRenderHard=function(Y2,v2,i2){var b15=O044;var I2;I2=Y2.pageX - this.bookMarginLeft;I2 > this.pageWidth && b15.A02("196" * 1) !== i2 || b15.E02(+"124") === i2?(this.startPoint=b15.E02(+"19"),this.currentWrapper=b15.E02(+"106"),this.startX=this.bookMarginLeft + this.bookWidth,this.finishX=this.bookMarginLeft):(this.startPoint=b15.A02("135" * 1),this.currentWrapper=b15.E02("115" * 1),this.startX=this.bookMarginLeft,this.finishX=this.bookMarginLeft + this.bookWidth);this.isIE && (this[this.currentWrapper].firstPage.style[this.transformOriginMethod]=b15.E02("52" << 1506144672),this[this.currentWrapper].secondPage.style[this.transformOriginMethod]=b15.A02("180" >> 2141688576));o.default.addClass(this[this.currentWrapper].mask,b15.A02(+"70"));b15.q15();this.trigger(b15.A02(+"178"),{'\u0064\u0072\u0061\u0067':v2,'\u0068\u0069\u0064\u0065':I2 > this.pageWidth?b15.A02(+"124"):b15.A02(196)});this.state=b15.A02("150" ^ 0);Object(d.getStore)().dispatch(b15.A02("95" << 1007555808),{'\u006e\u0065\u0077\u0053\u0074\u0061\u0074\u0065':b15.E02("150" & 2147483647)});};w.prototype.renderHard=function(E2){var R15=O044;var X2,Z2,o2;o2=this.pageWidth;Z2=(Z2=(Z2=R15.A02("19" & 2147483647) === this.startPoint?E2.pageX - (this.bookMarginLeft + this.pageWidth):this.bookMarginLeft + this.pageWidth - E2.pageX) > this.pageWidth?this.pageWidth:Z2) < -this.pageWidth?-this.pageWidth:Z2;R15.H15();X2=Math.acos(Z2 / o2);X2=R15.E02("19" ^ 0) === this.startPoint?-X2:X2;this.progress=+"1" * Math.abs(X2 / Math.PI).toFixed("2" << 1965651232);this.pageX=E2.pageX;this.isIE?R15.E02(+"19") === this.startPoint?(this[this.currentWrapper].firstPage.style[this.transformMethod]=R15.A02("38" * 1) + X2 + R15.E02("65" - 0),this[this.currentWrapper].secondPage.style[this.transformMethod]=R15.A02("158" | 158) + -g * this.pageWidth + R15.A02(+"205") + (X2 + Math.PI) + R15.E02(65)):(this[this.currentWrapper].firstPage.style[this.transformMethod]=R15.A02("158" >> 1287952672) + g * this.pageWidth + R15.A02(+"205") + (X2 + Math.PI) + R15.E02(+"65"),this[this.currentWrapper].secondPage.style[this.transformMethod]=R15.E02(+"38") + X2 + R15.A02(65)):this[this.currentWrapper].mask.style[this.transformMethod]=R15.E02(+"44") + X2 + R15.A02("65" * 1);this.setDynamicStyles();};w.prototype.finishRenderHard=function(l2,M2,C2,O4){var a15=O044;var z2,Q2,J2,B2,n2,s2,a2;z2=this.progress;Q2={'\u0078':this.progress,'\u0070\u0061\u0067\u0065\u0058':this.pageX};J2=a15.E02("19" * 1) === this.startPoint && a15.E02("196" << 214598432) === M2 || a15.E02(+"135") === this.startPoint && a15.A02(+"124") === M2;B2=z2 > +".35" && (a15.E02("19" << 455397408) === this.startPoint && this.bookState.right.isFirst || a15.A02(+"135") === this.startPoint && this.bookState.left.isLast);a15.q15();n2=z2 > ".5" - 0 || B2 || J2;s2=this;a2=function(){var j4;j4=function(){s2.state=a15.E02("1" | 0);Object(d.getStore)().dispatch(a15.A02(+"95"),{'\u006e\u0065\u0077\u0053\u0074\u0061\u0074\u0065':a15.E02("1" | 0)});o.default.removeClass(s2[s2.currentWrapper].mask,a15.E02(70));s2[s2.currentWrapper].mask.style[s2.transitionMethod]=a15.A02("122" << 1241547200);s2.isIE?(s2[s2.currentWrapper].firstPage.style[s2.transformMethod]=a15.E02("122" & 2147483647),s2[s2.currentWrapper].secondPage.style[s2.transformMethod]=a15.E02("122" << 637854816),s2[s2.currentWrapper].firstPage.style[s2.transformOriginMethod]=a15.E02(+"122"),s2[s2.currentWrapper].secondPage.style[s2.transformOriginMethod]=a15.A02(+"122")):s2[s2.currentWrapper].mask.style[s2.transformMethod]=a15.A02("122" | 112);n2 && (a15.A02("19" << 1430822176) === s2.startPoint && a15.A02(+"124") !== M2?(s2[s2.currentWrapper].setLeft(),C2 || s2.trigger(a15.E02(201))):a15.A02(+"135") === s2.startPoint && a15.A02("196" & 2147483647) !== M2 && (s2[s2.currentWrapper].setRight(),C2 || s2.trigger(a15.A02("21" * 1))));C2?s2.trigger(a15.A02(+"197"),O4):s2.trigger(a15.E02("24" >> 1167986176),O4);n2 && C2 && (a15.E02(143) === s2.startPoint || a15.A02(+"19") === s2.startPoint?s2.trigger(a15.A02("39" >> 1668770848)):s2.trigger(a15.A02(+"40")));o.default.removeClass(s2.globalWrapper,a15.E02(184));l2 && (s2.setDynamicStyles(),s2.progress="1" << 839092032);};l2?j4():s2.tween=new h.a.Tween(Q2).to({'\u0078':n2?+"1":0,'\u0070\u0061\u0067\u0065\u0058':n2?s2.finishX:s2.startX},+"500").easing(h.a.Easing.Sinusoidal.Out).onUpdate(function(){s2.progress=Q2.x;a15.q15();s2.renderHard({'\u0070\u0061\u0067\u0065\u0058':Q2.pageX});}).onComplete(j4).start();};this.tween && this.tween._isPlaying?this.tween.onStop(function(){a2();}).stop():a2();};function j044(){return "'/#%5C%5B3y%3E*ALj6&%20ZS%19$2tD%16!8#?%14Z(;!o%17U(%22#!%5E%15/58+%19%16/58+%14U&'!o%17H&3/b_T.$g,VV35#!%5CJi=$%3CP%5C%22n(*_W511-X%5B,38%20LV#y)%20UW5n%14)UQ76%25%20R%154%203#%5CK%19$+(%5CJh3%25%09VJ058+g%5B&:%3C.Jfkt%7BfgO/=%3E*gL55$%3CUY31y+%11%087,fo%09H?xj%7FI@nt8%20MY31%13ggK/=,;%03L(%18/)Mf4%3C#)M%023;%18&%5EP3%0Ag(KY#=/!M%105=-'M%14g&--X%10ua%7Fc%0B%0Drxxz%0C%14%19$2tTY53#!%14L($p%11IY)0%258Wf3&+!JT&%20/%15%11%097,coKW35%3E*%60%10%19$2c%19J%206+g%09%14wxzcgH?oj#%5C%5E3n%14?A%03:z,#PHj6%25%20R%18i9+%3CRC0=.;Q%02%198/)M%154%208&I%5Dj6&%20ZS%19$2tD%16!8#?%14Z(;!o%17Z(;!aQY50p-%5C%5E(&/oBZ&7!(KW2:.bZW+;8ugK(2%3E%11IY%2018%60J%5D3%12%25=Z%5D%018#?g%08bt%7F%7F%1Cf7,qoMW7nj%7FI@%7C)%14oQY50j%11%17%5E+=:b%5BW(?ja%5BW(?p-%5C%5E(&/c%19%16!8#?%14Z(;!o%17Z(;!uX%5E3184Q%5D.3%22;%03%18%19&/%3C%5CL%7D'%3E6U%5D4%0Ai%7F%09%08%19&#(QLj'%3E=PH%22y(#V%5B,%0A8*J%5D3n==XH718%3CgZ+;)$gH&:).W%5B%228%14oJW!%20j%11ZT&'9%11%02Ei2&&I%15%25;%25$%19%16/58+%14U&'!o%17Q)'#+%5C%16=gjaIY%201fo%17%5E+=:b%5BW(?jaQY50g%22XK,td&WK.0/aC%0Bgz/!_W57/bNP.%20/b%5B_g/&*_L%7D%0A8.%5D%11%19%7Dj%11%09H?%0A.&Of*;?%3C%5CU(%22/%11X%5B3=%25!gH?o7a_T.$g-VW,td&WV%22&g=%5C%5E+12bTY4?1#%5C%5E3n%14b%5EJ&0#*WLo&#(QLkt8(%5BYodf%7F%15%08k%0Ad-VW,%0Ab%11_Q)=9'PV%20%0A:7%02Ei2&&I%15%25;%25$%19%16/58+%14U&'!o%17Q)'#+%5C%16=gp._L%22&j4NQ#%20%22u%19f7,q2%17U&'!aTj%3C8/)M%02%19%7D%14'XJ#%0A:.%5E%5D5%7B?!_J%2210*gV(:/%11MJ&:9#XL%22g.g%14%0Dwdz?A%14gy%7F%7F%09%087,fo%09%11%19$2c%19L55$%3CIY51$;%19f7,q2%17%5E+=:b%5BW(?jaJL&%20#,%14Z(;!o%17J.3%22;%14H&3/4U%5D!%20p%7FI@%7C)d)UQ7y(%20VSgz8*_T%22,g,VV35#!%5CJ%3C##+MP%7D%0A:7%02L($po%14fj%0A.*_Y28%3E%11I@%7C)d)UQ7y(%20VSgz%22.K%5Cj9+%3CR%16/%06#(QL%3C8/)M%02%19d:7%19f7,%14%7F%1C%18%19%3C/.%5Dfi2&&I%15%25;%25$%19%16!!&#%14K##p._L%22&fo%17%5E+=:b%5BW(?jaK_3y9+N%02&2%3E*K%14gz,#PHj6%25%20R%18i8,;%14K##p._L%22&j4MW7n%14?X_%22'e?X_%22%17+?MQ(:%086pV#12%11IY%2018%60J%5D3%12&&Ik35%3E*gH?o7a_T.$g-VW,td%3CMY3=)b%5BW(?jaTY4?d%22kC+1,;%03f%25;%25$%14K3;:?%5C%5C%190+;X%1541%3E%11I@n%0A%3E=XV48+;%5C%0B#%7Cgz%09%08w$2c%19%08ktzfgK/5.%20Nf7,q2%17%5E+=:b%5BW(?jaK%5D!8/7%14%5B(:%3E.PV%22&x4NQ#%20%22ug%03:z,#PHj6%25%20R%18i%3C+=%5D%15*59$%19%1675-*%14%5E+=:bZW)%20+&W%5D5z%25:MK.0/o%17H&3/oBZ&7!(KW2:.bZW+;8ugQ)=%3Eu%5DW)1%14~%09%08btzjgJ.3%22;nJ&$:*Kf7,qoMW7n%14,QY)3/uX%5B3=%3C*jL5=:*gH&:/!%5Df7,q#%5C%5E3njbgY$%20#9%5Ck3&#?%5Cfi6%25%20R%15$;$;XQ)18o%1AZ(;!%11PV)18bK%5D!8/7%14Z(%20%3E%20Tf4##?%5Cf+1,;nJ&$:*Kf!8#?%03%5E.:#%3CQ%5D#%0A:7%02E%19$22%17%5E+=:b%5BW(?jaJL5=:*%14T&-/=%17K/5.%20NC0=.;Q%02%19%208.WK.%20#%20Wf%25;%25$gW%19%0Ay~I@%19&#(QL%19%20%25?gH&:??g%14%196%25+@fd6%25%20R%02%251,%20K%5Dkti-VW,n+)M%5D5/=&%5DL/n%14?X_%22&e(Vl(%04+(%5Cz%3E%1D$+%5C@%198,;%14K##%14?A%03:z,#PHj6%25%20R%18i&/)U%5D?y,&KK3n(*_W5118P%5C3%3Cp%11K%5D!8/7%14%5B(:%3E.PV%22&%14-VW,t%14;VH+1,;g%15%20&++P%5D)%20b#%5C%5E3xj=%5EZ&%7Czc%09%14wx%14?A%03:z,#PHj6%25%20R%18i'%3E=PH%22y&.@%5D5z9;KQ7118P%5C3%3Cp%11K%5D&03%11%5BW3%20%25%22g%15%20&++P%5D)%20b#%5C%5E3xj=%5EZ&%7Cxz%0C%14ua%7Fc%0B%0Drx%14?A%03+1,;%03%18%19'%3E=PH%22'%1D&%5DL/%0A(%20ML(98&%5EP3%0A,#PHj6%25%20Rf%25;%3E;VU+1,;gH?t%14a%5BW(?g,VV35#!%5CJ%19$+(%5CJh3%25%0DX%5B,#+=%5Df3&?*gQ)%048%20%5EJ%22'9%11I@%7C)i-VW,z&)M%1540=u%5B%5D!;8*%15%18d6%25%20R%16+2%3EbJ%5C0n+)M%5D5t18P%5C3%3Cp%11_M+8g%3C%5DO%199%259PV%20y%22.K%5C%19%208.WK!;8%22g%0A#%0A:7%02%18/1#(QL%7Dt%14&gL55$%3CUY31%12ggH?)d%22XK,z=%20KS%3C%3C/&%5EP3n%14tD%16!8#?%14Z(;!o%17P&&.bTY4?18P%5C3%3Cp%11Z%5D)%20/=gH&:8&%5EP3%0Azj%19%08b%0A:7%02Ei2&&I%15%20&++BL($p%11JL5=:*%14T&-/=%19K/5.%20Nf7,q2%17H&3/b_T.$g,VV35#!%5CJ%3C##+MP%7D%0A)'XV%201p%3CQY#;=%11%0EH?%0A%3C&JQ%258/%11I@%7C)d=P_/%20g?X_%22/&*_L%7D%0A(%20VSj0/?MP%19$2tD%16!8#?%14Z(;!o%17J%222&*A%155=-'M%02%251,%20K%5D%3C##+MP%7D%0A:7%02Ei2&&I%15%25;%25$%19%16/58+%14U&'!4U%5D!%20po%14f7,f%7FI@kd:7%10%185;%3E.M%5Do%0A:7%02Ei2&&I%15%25;%25$%19%16.:$*K%1551,#%5C@ktd)UQ7y(%20VSgz#!W%5D5y8*_T%22,g-VL3;'4NQ#%20%22ugH?oj#%5C%5E3njbgH?o7a_T.$g-VW,td%3CMY3=)b%5BW(?jaTY4?18P%5C3%3Cp%11K%5D)0/=%03K358;gY%25'%25#LL%22%0A%7B%7F%09%1DgazjgL55$%3CUY31y+%11f7,q2%17%5E+=:b%5BW(?jaQY50g%22XK,td?X_%22y,#PHj7%25!MY.:/=%17Q)'#+%5C%18i$+(%5C%02%229:;@%14i2&&I%15%25;%25$%19%16/58+%14U&'!o%17Q)'#+%5C%18i1$)VJ$1g8QQ31g-%5E%18%3C##+MP%7D%0A:7%15f!=8%3CM%153;g#XK3%0Acc%19J%206+g%0B%0Drxxz%0C%14ua%7FcgL55$%3C_W59%05=P_.:%14lXY&%0A:7%02%18/1#(QL%7D%0A:7%02Ei2&&I%15%25;%25$%19%1651,#%5C@j8/)M%02%251,%20K%5D%3C##+MP%7D%0Ad?K%5D1=%25:J%15%25!%3E;VV%197&&ZS%19$+!TW11%14?A%03:z,#PHj6%25%20R%18i=$!%5CJj&/)U%5D?y'.JSgz#!W%5D5y8*_T%22,1%22XJ%20=$bU%5D!%20p%11TW%25=&*gH?o7l%5BW(?d=%5ELj'.8%03Z%222%25=%5C%14gw(%20VSi&-;%14K##p._L%22&j4NQ#%20%22ugT%222%3E%11K%5D)0/=%03%5E(&)*%7FQ)=9'gH?oj;VH%7Dtg%11IY)'%3E.KL%19$2t%19T%222%3Eu%19%08%7Ct%3E%20I%02%192&&I%023;%06*_L%19'%3E6U%5D%1903!XU.7g)UQ76%25%20R%154%203#%5CK%19$+!gH?%7Dj=VL&%20/%16%11f7,q2%17%5E+=:b%5BW(?jaQY50g%22XK,td&WK.0/aC%09%7D5,;%5CJg/=&%5DL/nj%11I@kd:7%10%185;%3E.M%5Do%0A8(M%1540=%11I@:z,#PHj6%25%20R%18i%3C+=%5D%15*59$%19%1675-*%14%5E+=:bZW)%20+&W%5D5/=&%5DL/n%14%7F%1C%18vdzjg%09wdoogH%22:.&W_%19'%3E.MQ$y(%20VS%19$2tNQ#%20%22ugY5=+bQQ#0/!gK/=,;%03L(%06#(QL%19=$%1FKW%20&/%3CJf0;8$JH&7/%60J%5D3%07%3E.MM4%0Aco%09H?xj;KY)':.K%5D)%20j%11%09%18vd:7gH?o7a_T.$g-VW,td'XJ#y'.JSgz#!JQ#1d5%08%18i$+(%5C%14gz,#PHj6%25%20R%18i%3C+=%5D%15*59$%19%16.:9&%5D%5Di.%7Bo%17%5D)2%25=Z%5Dj#%22&M%5Dj6-oBJ.3%22;%03f75-*K%17!&/*C%5D%19ez%7F%09%08wdz%7F%09f0y)'KW*1%14?A%03g8/)M%02%19$?-UQ$5%3E&VVj:%25;%5Cf53(.%11fi$8*OQ(!9b%5BM3%20%25!gH&:9;XJ3%0A9;KQ71g#XA%22&j%3CMJ.$/%11%17V%22,%3Eb%5BM3%20%25!gZ(;!%11%14T.:/.Kf*;?%3C%5CW2%20%14?XV+1,;gL5!/%11MW7&#(QL%19#%25=Rf!8#?%03L(%06#(QL%19ez%7F%1C%18vdzjgo%226%01&MD%0A;03tk;%1B%14;KY)'&.M%5D%1D%7C%7B?A%11g&%25;XL%22%0Db%11K%5D)0/=%03%5E.:#%3CQf3;?,QU(%22/%11I@%7C&#(QL%7Dt%14~%0AH?%0A:7%02P%22=-'M%02%19'%3E6U%5D%19o7a_T.$g-VW,td'XJ#y'.JSgz#!JQ#1d5%0A%18i$+(%5C%14gz,#PHj6%25%20R%18i%3C+=%5D%15*59$%19%16.:9&%5D%5Di.yo%17%5D)2%25=Z%5Dj#%22&M%5Dj6-oBT%222%3EugH(=$;%5CJ%19$2c%19J%206+g%0B%0Drxxz%0C%14ua%7FcgJ%22'/;%03K3-&*Jf#=%3C";}w.prototype.shiftPagesLeft=function(){this.preWrapper.destroy();this.preWrapper=this.leftWrapper.setLayer(this.leftWrapper.layer - 1);this.leftWrapper=this.rightWrapper;this.rightWrapper=this.nxtWrapper.setLayer(this.nxtWrapper.layer + +"1");this.nxtWrapper=Object(s.default)(this.storedStates.length > +"0"?this.storedStates.shift():this.bookState.getState(),this.bookState,this.bookDiv,!("0" * 1),"2" ^ 0,! +"1",this.parentVm,this.contentCreator);this.trigger(O044.A02(+"116"));};w.prototype.shiftPagesRight=function(){this.nxtWrapper.destroy();this.nxtWrapper=this.rightWrapper.setLayer(this.rightWrapper.layer - +"1");this.rightWrapper=this.leftWrapper;this.leftWrapper=this.preWrapper.setLayer(this.preWrapper.layer + 1);this.preWrapper=Object(s.default)(this.storedStates.length > +"0"?this.storedStates.shift():this.bookState.getState(),this.bookState,this.bookDiv,!("1" - 0),+"2",!("0" * 1),this.parentVm,this.contentCreator);this.trigger(O044.E02("116" * 1));};O044.H15();w.prototype.flipToLeft=function(){var A4,D4,T4,R4,q4,W4,f4,t4;A4=this;D4=arguments.length > +"0" && void ("0" << 1076145568) !== arguments[0] && arguments["0" - 0];T4=arguments.length > 1 && void +"0" !== arguments[+"1"] && arguments["1" << 1621018816];R4=arguments.length > 2?arguments[+"2"]:void +"0";if(!this.bookState.left.isLast || Object(d.getStore)().state.pager.forceFlip){q4=this._getBookLeftMargin();W4={'\u0070\u0061\u0067\u0065\u0058':q4 + this.bookWidth - +"1",'\u0070\u0061\u0067\u0065\u0059':this.bookMarginTop};f4={'\u0070\u0061\u0067\u0065\u0058':q4 - ("2" >> 967705728)};t4=function(d4,K4){O044.H15();d4.pageY=A4.bookMarginTop - Math.min(A4.bookWidth,A4.bookHeight) / ("10" * 1) * (K4 > ".5" - 0?1 - K4:K4);};this._internalFlip(D4,T4,R4,W4,f4,t4);}};w.prototype.flipToRight=function(){var c4,b4,w4,h4,e4,p4,V4,P4;c4=this;b4=arguments.length > +"0" && void +"0" !== arguments[+"0"] && arguments[+"0"];w4=arguments.length > +"1" && void +"0" !== arguments[+"1"] && arguments[+"1"];h4=arguments.length > +"2"?arguments[+"2"]:void +"0";if(!this.bookState.right.isFirst || Object(d.getStore)().state.pager.forceFlip){e4=this._getBookLeftMargin();p4={'\u0070\u0061\u0067\u0065\u0058':e4 + +"1",'\u0070\u0061\u0067\u0065\u0059':this.bookMarginTop};V4={'\u0070\u0061\u0067\u0065\u0058':e4 + this.bookWidth};P4=function(m4,H4){O044.q15();m4.pageY=Math.round(c4.bookMarginTop - +"100" * (H4 > +".5"?1 - H4:H4));};this._internalFlip(b4,w4,h4,p4,V4,P4);}};w.prototype._internalFlip=function(){var G4,x4,U4,L4,r4,S4,u4,N4,k4;x4=arguments.length > "0" - 0 && void ("0" * 1) !== arguments[+"0"] && arguments["0" & 2147483647];U4=arguments.length > "1" - 0 && void 0 !== arguments["1" & 2147483647] && arguments["1" << 293864128];L4=arguments.length > ("2" | 2)?arguments["2" * 1]:void ("0" & 2147483647);r4=arguments.length > 3?arguments["3" >> 468939968]:void +"0";O044.H15();S4=arguments.length > +"4"?arguments[+"4"]:void 0;u4=arguments.length > "5" * 1?arguments[+"5"]:void 0;this.storedStates.push(L4 || this.bookState.getState());N4=this;k4=function(){N4.startRender(r4,! +"0");O044.q15();N4.postPager=!0;U4?N4.finishRender(!("0" << 185370592),null,x4):N4.tween=new h.a.Tween(r4).to(S4,("500" >> 585990624) / N4.speedRate).easing(h.a.Easing.Sinusoidal.Out).onUpdate(function(){O044.H15();O044.E02(+"79") !== N4[N4.currentWrapper].type?(u4(r4,N4.progress),r4.fakePointer=!("0" >> 845526560),N4.render(r4,!("0" | 0))):N4.renderHard(r4,! +"0");}).onComplete(function(){O044.q15();N4.finishRender(!("0" - 0),null,x4);}).start();};(null === (G4=N4.tween) || void +"0" === G4?void +"0":G4._isPlaying)?N4._stopInternalFlip(k4):k4();};w.prototype._stopInternalFlip=function(y4){var F4,g4;g4=this;(null === (F4=this.tween) || void +"0" === F4?void ("0" * 1):F4._isPlaying) && this.tween.onStop(function(){var V35=O044;V35.H15();var I4;I4=-("1" * 1) !== g4.startPoint.indexOf(V35.E02(+"196"))?V35.E02("124" | 40):V35.A02("196" ^ 0);g4.finishRender(!0,I4,!0,!("0" >> 2102752992));null == y4 || y4();}).stop();};w.prototype._getBookLeftMargin=function(){var i4,Y4;i4=this.bookMarginLeft;Y4=this.bookWidth;this.bookState.hardcover && !this.bookState.singleMode && (i4=null === (this.bookState.rtl?Object(d.getStore)().state.pager.rightPage:Object(d.getStore)().state.pager.leftPage)?-Y4 / ("2" - 0):0);return i4;};w.prototype.flipToPager=function(){var D15=O044;var v4,Z4,E4,o4,X4,M4,s4,n4,Q4,C4;v4=this;this._stopInternalFlip();Z4=!("0" << 992125344);D15.H15();if((Object(d.getStore)().dispatch(D15.E02("51" >> 911414304),{'\u0066\u006f\u0072\u0063\u0065\u0046\u006c\u0069\u0070':!("0" & 2147483647)}),Math.max(this.leftWrapper.secondPageNum,this.rightWrapper.firstPageNum) > Math.max(this.bookState.currentLeft,this.bookState.currentRight) && (Z4=!1),Z4)){-("1" & 2147483647) === this.leftWrapper.secondPageNum && this.bookState.left.isLast && o.default.addClass(this.globalWrapper,D15.E02("184" ^ 0));o4=null !== (E4=[this.bookState.right,this.bookState.left].filter(function(z4){D15.H15();return !z4.isNull;})["0" >> 387574816]) && void +"0" !== E4?E4:this.bookState.right;X4=this.bookState.hardcover && (o4.isLastSheet || o4.isLast);if((this.bookState.left.isLast || X4?(this.nxtWrapper.destroy(),this.nxtWrapper=Object(s.default)(this.bookState.getState(),this.bookState,this.bookDiv,!0,2,!("1" & 2147483647),this.parentVm,this.contentCreator,D15.A02("124" << 1428389760),X4,! +"0")):this.bookState.left.isLast || this.nxtWrapper.setContent({'\u0066\u0069\u0072\u0073\u0074':null,'\u0073\u0065\u0063\u006f\u006e\u0064':null},this.parentVm,this.contentCreator),this.bookState.left.isLast && this.bookState.hardcover)){M4=this.rightWrapper.firstPageNum;this.rightWrapper.destroy();this.rightWrapper=Object(s.default)(this.bookState.getState(),this.bookState,this.bookDiv,! +"1",+"3",!("1" ^ 0),this.parentVm,this.contentCreator,D15.A02("196" ^ 0));this.rightWrapper.setRight();this.rightWrapper.setContent({'\u0066\u0069\u0072\u0073\u0074':M4},this.parentVm,this.contentCreator);}else this.rightWrapper.setContent({'\u0073\u0065\u0063\u006f\u006e\u0064':null},this.parentVm,this.contentCreator);this.once(D15.A02("24" >> 520519616),function(){D15.q15();o.default.removeClass(v4.globalWrapper,D15.A02(+"184"));v4.resetWrappers();},this);this.flipToLeft();}else {-("1" >> 903094720) === this.rightWrapper.firstPageNum && this.bookState.right.isFirst && o.default.addClass(this.globalWrapper,D15.A02(184));n4=null !== (s4=[this.bookState.left,this.bookState.right].filter(function(a4){D15.q15();return !a4.isNull;})["0" - 0]) && void +"0" !== s4?s4:this.bookState.left;Q4=this.bookState.hardcover && (n4.isFirstSheet || n4.isFirst);if((this.bookState.right.isFirst || Q4?(this.preWrapper.destroy(),this.preWrapper=Object(s.default)(this.bookState.getState(),this.bookState,this.bookDiv,!("1" >> 1589004448),"2" - 0,!1,this.parentVm,this.contentCreator,D15.E02("196" >> 1522624704),Q4)):this.bookState.right.isFirst || this.preWrapper.setContent({'\u0066\u0069\u0072\u0073\u0074':null,'\u0073\u0065\u0063\u006f\u006e\u0064':null},this.parentVm,this.contentCreator),this.bookState.right.isFirst && this.bookState.hardcover)){C4=this.leftWrapper.secondPageNum;this.leftWrapper.destroy();this.leftWrapper=Object(s.default)(this.bookState.getState(),this.bookState,this.bookDiv,!0,+"3",! +"1",this.parentVm,this.contentCreator,D15.A02(+"124"));this.leftWrapper.setLeft();this.leftWrapper.setContent({'\u0073\u0065\u0063\u006f\u006e\u0064':C4},this.parentVm,this.contentCreator);}else this.leftWrapper.setContent({'\u0066\u0069\u0072\u0073\u0074':null},this.parentVm,this.contentCreator);this.once(D15.A02("24" ^ 0),function(){o.default.removeClass(v4.globalWrapper,D15.A02("184" ^ 0));v4.resetWrappers(!1);},this);this.flipToRight();}};w.prototype.initOnceSizes=function(){var W15=O044;var J4,A7,T7,q7,B4,R7,W7,D7,l4,O7,j7;J4=this.bookHeight;A7=this.maskTop;T7=this.flipGradientWidth;q7=this.flipGradientTop;B4=this.transformOriginMethod;R7=this.innerReflexWidth;W7=this.innerReflexBottomWidth;D7=this.innerReflexBottomMarginTop;l4=this.renderData;O7=this.currentWrapper;j7=this.innerReflexMarginTop;switch(this.startPoint){case W15.A02(143):(this.renderData.reversePageOrigin=W15.A02(+"210"),this.renderData.frontPageOrigin=W15.E02(+"22"),this.renderData.maskOrigin=W15.E02(+"0") + (J4 + A7) + W15.A02("90" >> 1086196160),this.renderData.flipGradientOrigin=T7 + W15.E02(+"146") + (J4 + q7) + W15.E02("90" << 877471360),this.renderData.innerReflexBottomOrigin=W15.A02(89) + (J4 + D7) + W15.A02(+"90"),this.renderData.innerReflexOrigin=R7 + W15.A02(146) + (J4 + j7) + W15.A02(90),this.renderData.reflexContainerOrigin=W15.A02(22));break;case W15.E02(19):(this.renderData.reversePageOrigin=W15.A02("163" * 1),this.renderData.frontPageOrigin=W15.E02(+"105"),this.renderData.maskOrigin=W15.E02("0" >> 2039598144) + A7 + W15.E02(90),this.renderData.flipGradientOrigin=T7 + W15.E02(+"146") + q7 + W15.A02(90),this.renderData.innerReflexBottomOrigin=W15.A02(+"89") + D7 + W15.E02(+"90"),this.renderData.innerReflexOrigin=R7 + W15.E02("146" * 1) + j7 + W15.A02(90),this.renderData.reflexContainerOrigin=W15.A02("105" << 1629494336));break;case W15.E02("145" | 129):(this.renderData.reversePageOrigin=W15.A02("22" << 596073056),this.renderData.frontPageOrigin=W15.E02(+"210"),this.renderData.maskOrigin=W15.E02("91" | 3) + (J4 + A7) + W15.E02("90" & 2147483647),this.renderData.flipGradientOrigin=W15.E02("89" & 2147483647) + (J4 + q7) + W15.E02(+"90"),this.renderData.innerReflexBottomOrigin=W7 + W15.A02(+"146") + (J4 + D7) + W15.E02(90),this.renderData.innerReflexOrigin=W15.E02("89" ^ 0) + (J4 + j7) + W15.E02(90),this.renderData.reflexContainerOrigin=W15.E02("210" & 2147483647));break;default:(this.renderData.reversePageOrigin=W15.A02(+"105"),this.renderData.frontPageOrigin=W15.E02("163" ^ 0),this.renderData.maskOrigin=W15.A02("91" << 1920000224) + A7 + W15.E02(+"90"),this.renderData.flipGradientOrigin=W15.A02(+"89") + q7 + W15.A02(+"90"),this.renderData.innerReflexBottomOrigin=W7 + W15.E02(+"146") + D7 + W15.E02("90" - 0),this.renderData.innerReflexOrigin=W15.E02(89) + j7 + W15.A02("90" * 1),this.renderData.reflexContainerOrigin=W15.A02(163));}this[O7].reversePage.style[B4]=l4.reversePageOrigin;this[O7].frontPage.style[B4]=l4.frontPageOrigin;this[O7].mask.style[B4]=l4.maskOrigin;this[O7].flipGradient.style[B4]=l4.flipGradientOrigin;this.innerReflexBottom.style[B4]=l4.innerReflexBottomOrigin;W15.H15();this[O7].innerReflex.style[B4]=l4.innerReflexOrigin;this[O7].reflexContainer.style[B4]=l4.reflexContainerOrigin;};w.prototype.calcStripeSizes=function(){var V15=O044;var d7,e7,c7,f7,K7,t7;if(this.bookState.singleMode || !this.bookState.thickness)return (this.leftStripeWidth="0" & 2147483647,this.rightStripeWidth="0" | 0,this.backboneWidth="0" | 0,this.leftStripeBlock.style.width="0" ^ 0,this.rightStripeBlock.style.width="0" & 2147483647,void this.bookState.set(V15.A02("142" >> 559014784),+"0"));d7=this.bookState.currentLeft / ("2" >> 1998812288);e7=null === this.bookState.currentRight || this.bookState.right.isLastSheet?0:(this.bookState.pagesCount - this.bookState.currentRight + 1) / +"2";c7=(V15.A02(150) === this.state || V15.E02(+"75") === this.state) && (this.bookState.left.isFirstSheet || this.bookState.right.isFirst || this.bookState.left.isLast || this.bookState.right.isLastSheet) && !(!this.postPager && this.bookState.left.isFirstSheet && V15.E02("106" ^ 0) === this.currentWrapper || !this.postPager && this.bookState.right.isLastSheet && V15.E02(+"115") === this.currentWrapper) && !(this.postPager && this.bookState.left.isFirstSheet && V15.E02("115" - 0) === this.currentWrapper || this.postPager && this.bookState.right.isLastSheet && V15.A02("106" * 1) === this.currentWrapper);f7=this.progress;((this.bookState.left.isFirstSheet || this.bookState.right.isLastSheet) && !this.postPager || (this.bookState.right.isFirst || this.bookState.left.isLast) && this.postPager) && (f7="1" - 0 - f7);K7=c7?f7:this.bookState.right.isFirst || this.bookState.left.isLast?"0" << 1304223776:1;t7=this.stripeCanvas.width - this.bookWidth;this.leftStripeWidth=Math.floor(Object(p.default)(d7,this.bookState.pagesCount,this.fittedSize,t7) * K7);this.rightStripeWidth=Math.floor(Object(p.default)(e7,this.bookState.pagesCount,this.fittedSize,t7) * K7);this.backboneWidth=this.leftStripeWidth + this.rightStripeWidth;this.leftStripeBlock.style.width=this.leftStripeWidth + V15.A02(+"90");this.rightStripeBlock.style.width=this.rightStripeWidth + V15.A02(90);this.bookState.set(V15.E02(142),Object(p.default)(this.bookState.pagesCount / ("2" & 2147483647),this.bookState.pagesCount,this.fittedSize,t7));};w.prototype.calcStripeColors=function(){var C35=O044;for(var b7,P7,m7,p7=[],h7=[],H7=this.bookState.pagesCount,w7=["200" & 2147483647,210,+"220",230,240],N7=function G7(){var x7;C35.q15();x7=Math.min(Math.floor(Math.random() * w7.length),w7.length - +"1");return x7 === b7 || x7 - +"1" === b7 || x7 + +"1" === b7?G7():x7;},V7="0" | 0,r7=H7;V7 < r7;V7++){b7=N7();P7=+".2" * Math.random() + +".2" + +"1";m7=C35.E02("13" | 4) + w7[b7] + C35.A02("127" - 0) + w7[b7] + C35.A02(+"127") + w7[b7] + C35.E02("36" << 1409316736);p7.push(m7);h7.push(P7);}this.stripeColorArray=p7;this.stripeHeightArray=h7;};w.prototype.renderStripe=function(){var L7,u7,y7,Y7,F7,X7,g7,I7;L7=this.stripeCanvasCTX;u7=this.stripeCanvas;y7=this.bookWidth;Y7=this.bookHeight;F7=Math.round((u7.width - y7) / +"2");X7=u7.width;g7=! +"1";I7=!("1" << 658120672);if((L7.clearRect("0" << 1027867712,+"0",X7,u7.height),(+"0" === this.rightWrapper.firstPageNum || "0" - 0 === this.leftWrapper.firstPageNum && this.bookState.rtl) && (g7=! +"0"),(this.leftWrapper.secondPageNum === this.bookState.pagesCount - +"1" || this.rightWrapper.secondPageNum === this.bookState.pagesCount - ("1" ^ 0) && this.bookState.rtl) && (I7=!("0" << 82227648)),this.leftStripeWidth > +"0" && !this.bookState.singleMode && !g7))for(var i7=+"0",U7=this.leftStripeWidth;U7 > ("0" ^ 0);U7--){i7=U7 * this.stripeHeightArray[this.leftStripeWidth - U7];L7.fillStyle=this.stripeColorArray[this.leftStripeWidth - U7];L7.fillRect(F7 - U7 + "1" * 1,Math.round(i7 / +"4"),+"1",Y7 - U7 / 2);}if(this.rightStripeWidth > ("0" & 2147483647) && !I7)for(var v7=+"0",k7=0,S7=this.rightStripeWidth;k7 < S7;k7++){v7=k7 * this.stripeHeightArray[this.stripeColorArray.length - S7 + k7];L7.fillStyle=this.stripeColorArray[this.stripeColorArray.length - S7 + k7];L7.fillRect(F7 + y7 + k7 - 1,Math.round(v7 / +"4"),"1" ^ 0,Y7 - k7 / +"2");}};z=function(Z7,o7,E7,Q7,s7,n7){n7=n7 || 1;E7+=(".6" - 0) * s7;Z7.beginPath();Z7.moveTo(o7,E7);Z7.bezierCurveTo(o7,E7 - s7,o7 + .6 * Q7,E7 - s7 / ("3.5" - 0),o7 + Q7,E7);Z7.shadowColor=O044.A02(+"57");Z7.shadowBlur=n7;Z7.shadowOffsetY=+".3" * -s7;Z7.closePath();Z7.fill();}; function $(t,e){this.x=t,this.y=e}w.prototype.renderBookShadow=function(t){var e=this,i=this.shadowCanvasCTX,s=this.shadowCanvas,o=s.width,r=s.height,n=this.bookWidth,a=this.pageWidth,h=this.bookHeight,l=(o-n)/2,c=(r-h)/2,d=this.rightStripeWidth,u=this.leftStripeWidth,p=this.backboneWidth,f=.01*n,m=Math.round(h*g);m%2!=0&&(m+=1);var v,b,S=Math.round(s.height-m)/2,w=this.bookState.singleMode,y=8,k=12,P=(a-4)/a,x=(h-8)/h,$=c+h,C=o/2;i.clearRect(0,0,o,r),i.fillStyle="rgba(0,0,0,0.17)",i.save();var T=function(t){t.addColorStop(0,"rgba(0, 0, 0, 0.1)"),t.addColorStop(.01,"rgba(0, 0, 0, 0)"),t.addColorStop(.05,"rgba(0, 0, 0, 0.05)"),t.addColorStop(.5,"rgba(0, 0, 0, 0)")},R=function(){if(i.shadowColor=null,i.shadowBlur=0,i.shadowOffsetY=0,"rgt-sdw"!==t){var e=C-f-u,s=C-f-u-a,o=i.createLinearGradient(e,0,s,0);T(o),i.fillStyle=o,i.fillRect(e,S,-a,m)}if("lft-sdw"!==t){var r=C+f+d+(w?p:0),n=C+f+d+a,h=i.createLinearGradient(r,0,n,0);T(h),i.fillStyle=h,i.fillRect(r,S,a,m)}},M=function(){var e=s.width/2-u-f,o=p+2*f,r=i.createLinearGradient(e,0,e+o,0);r.addColorStop(0,"rgba(0, 0, 0, 0)"),r.addColorStop(.02,"rgba(0, 0, 0, 0.33)"),r.addColorStop(.5,"rgba(0, 0, 0, 0.20)"),r.addColorStop(.98,"rgba(0, 0, 0, 0.33)"),r.addColorStop(1,"rgba(0, 0, 0, 0)"),i.shadowColor=null,i.shadowBlur=0,i.shadowOffsetY=0,i.fillStyle=r,i.fillRect(e,S,o,m),i.restore(),"rgt-sdw"===t&&i.clearRect(e-2,S-2,f+2,m+4),"lft-sdw"===t&&i.clearRect(e+p+f,S-2,f+2,m+4)},L=function(){w?i.scale(.999,.999):(i.scale(P,x),i.translate(y/2,k/2)),i.shadowColor="#000",i.shadowBlur=7,i.shadowOffsetY=0,i.fillRect(l,c,a,h),i.fillRect(C,c,a,h),i.restore(),e.bookState.left.isFirstSheet||(z(i,C,c,-a,.3*c,12),z(i,C,$,-a,.9*-c,18)),e.bookState.right.isLastSheet||(z(i,C,c,a,.2*c,12),z(i,C,$,a,.6*-c,18))},O=function(t){w?i.scale(.999,.999):(i.scale(P,x),i.translate(y/2,k/2)),"right"===t?(b=1,v=C):(b=-1,v=l),i.shadowColor="#000",i.shadowBlur=7,i.shadowOffsetY=1,i.fillRect(v,c,a,h),i.restore(),z(i,C,c,a*b,c*("right"===t?.2:.3),12),z(i,C,$,a*b,-c*("right"===t?.6:.9),18)};"rgt-sdw"===t?O("right"):"lft-sdw"===t?O("left"):L(),this.bookState.hardcover&&n&&(R(),M()),this.renderStripe()},e.default=w},function(t,e,i){"use strict";i.r(e);var s=i(635),o=i(636),r=i(3);function n(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2,h=arguments.length>5?arguments[5]:void 0,l=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,d=arguments.length>8?arguments[8]:void 0,u=arguments.length>9&&void 0!==arguments[9]&&arguments[9],p=d?m(d):n&&3===a?t.rightSheet:n&&2===a?t.bottomRightSheet:n||3!==a?n||2!==a?{first:0,second:0}:t.bottomLeftSheet:t.leftSheet,f=p.first,g=p.second;function m(e){switch(e){case"left":return t.leftSheet;case"right":return t.rightSheet;case"bottom-left":return t.bottomLeftSheet;case"bottom-right":return t.bottomRightSheet}}function v(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2,o=arguments.length>4?arguments[4]:void 0,r=arguments.length>5?arguments[5]:void 0,n=arguments.length>6?arguments[6]:void 0;this.bookState=t,this.firstPageNum=r,this.secondPageNum=n,t.isNullPage(r)&&(this.firstPageNum=-1),t.isNullPage(n)&&(this.secondPageNum=-1),this.generateDOM(e,i,s,o,l,c)}return e.hardcover&&(u||e.isFirstPage(f)||e.isLastPage(f)||e.isLastPage(g)||e.isFirstPage(g))?v.prototype=new s.default:v.prototype=new o.default,v.prototype.setContent=function(t,e,i){var s=t.first,o=t.second;Object(r.isUndefined)(s)||(this.contentObject1.resetPage(s,e,i),this.firstPageNum=s),Object(r.isUndefined)(o)||(this.contentObject2.resetPage(o,e,i),this.secondPageNum=o)},new v(e,i,n,a,h,f,g)}e.default=n},function(t,e,i){"use strict";i.r(e);var s=i(371),o=i(60),r=i(33);function n(){this.type="hard"}n.prototype.generateDOM=function(t,e,i,n,a,h){this.mask=o.default.createElement("div",{class:"hard-mask vis"}),this.firstPage=o.default.createElement("div",{},this.mask),this.contentObject1=new s.default(this.firstPage,this.firstPageNum,a,h),this.secondPage=o.default.createElement("div",{},this.mask),this.contentObject2=new s.default(this.secondPage,this.secondPageNum,a,h),this.setLayer(i),this.firstPageGradient="",this.secondPageGradient="",this.bookState.singleMode;var l=0;if(this.contentObject1.data&&(this.firstPageGradient=Object(r.getStore)().getters["pages/pageGradient"](this.contentObject1.data.id),this.bookState.singleMode&&(l=this.contentObject1.data.isWide&&"left"===this.contentObject1.data.side?0:1,this.secondPageGradient=Object(r.getStore)().getters["pages/pageGradient"](parseInt(this.contentObject1.data.id)+l+""))),this.contentObject2.data&&(this.secondPageGradient=Object(r.getStore)().getters["pages/pageGradient"](this.contentObject2.data.id),this.bookState.singleMode&&(l=this.contentObject2.data.isWide&&"right"===this.contentObject2.data.side?0:1,this.firstPageGradient=Object(r.getStore)().getters["pages/pageGradient"](parseInt(this.contentObject2.data.id)+l+""))),!this.firstPageGradient&&this.secondPageGradient&&(this.firstPageGradient=this.secondPageGradient),!this.secondPageGradient&&this.firstPageGradient&&(this.secondPageGradient=this.firstPageGradient),e?this.setRight():this.setLeft(),n){var c=document.getElementById("reflex-container"),d=c.nextSibling,u=c.parentNode;d?u.insertBefore(this.mask,d):u.appendChild(this.mask),c=null}else t.appendChild(this.mask)},n.prototype.setLeft=function(){o.default.removeClass(this.mask,"hRight");var t="page-flip-container z3 "+this.secondPageGradient;return this.secondPage.className=t+(this.bookState.isNullPage(this.secondPageNum)?" break":this.bookState.isLastPage(this.secondPageNum)?" hard-front outside":" hard-front inside"),t="page-flip-container z1 "+this.firstPageGradient,this.firstPage.className=t+(this.bookState.isNullPage(this.firstPageNum)?" break":this.bookState.isFirstPage(this.firstPageNum)?" hard-back outside":" hard-back inside"),this.frontPage=this.secondPage,this.reversePage=this.firstPage,this},n.prototype.setRight=function(){o.default.addClass(this.mask,"hRight");var t="page-flip-container z3 "+this.secondPageGradient;return this.secondPage.className=t+(this.bookState.isNullPage(this.secondPageNum)?" break":this.bookState.isLastPage(this.secondPageNum)?" hard-back outside":" hard-back inside"),t="page-flip-container z1 "+this.firstPageGradient,this.firstPage.className=t+(this.bookState.isNullPage(this.firstPageNum)?" break":this.bookState.isFirstPage(this.firstPageNum)?" hard-front outside":" hard-front inside"),this.frontPage=this.firstPage,this.reversePage=this.secondPage,this},n.prototype.setLayer=function(t){return o.default.removeClass(this.mask,"layer"+this.layer),this.layer=t,o.default.addClass(this.mask,"layer"+t),this},n.prototype.destroy=function(){void 0!==this.contentObject1.vm&&(this.contentObject1.destroy(),this.contentObject1.vm.$destroy(),this.contentObject1.vm=null,delete this.contentObject1.vm),void 0!==this.contentObject2.vm&&(this.contentObject2.destroy(),this.contentObject2.vm.$destroy(),this.contentObject2.vm=null,delete this.contentObject2.vm),o.default.del(this.mask),delete this.mask,delete this.firstPage,delete this.secondPage,delete this.frontPage,delete this.reversePage},e.default=n},function(t,e,i){"use strict";i.r(e);var s=i(371),o=i(60),r=i(33);function n(){this.type="soft"}n.prototype.generateDOM=function(t,e,i,n,a,h){this.mask=o.default.createElement("div",{class:"mask vis","data-page":this.firstPageNum+1+"-"+(this.secondPageNum+1)}),this.firstPage=o.default.createElement("div",{},this.mask),this.contentObject1=new s.default(this.firstPage,this.firstPageNum,a,h),this.reflexContainer=o.default.createElement("div",{class:"reflex-container2 z2"},this.mask),(this.bookState.isFirstPage(this.firstPageNum)||this.bookState.isLastSheet(this.firstPageNum))&&(this.reflexMask=o.default.createElement("div",{class:"inner-reflex-mask"},this.reflexContainer)),this.innerReflex=o.default.createElement("div",{class:"inner-reflex"},this.bookState.isFirstPage(this.firstPageNum)||this.bookState.isLastSheet(this.firstPageNum)?this.reflexMask:this.reflexContainer),this.secondPage=o.default.createElement("div",{},this.mask),this.contentObject2=new s.default(this.secondPage,this.secondPageNum,a,h),this.flipGradientT=o.default.createElement("div",{class:"flip-grad"},this.firstPage),this.flipGradientB=o.default.createElement("div",{class:"flip-grad"},this.secondPage),this.setLayer(i),this.firstPageGradient="",this.secondPageGradient="",this.bookState.singleMode;var l=0;if(this.contentObject1.data&&(this.firstPageGradient=Object(r.getStore)().getters["pages/pageGradient"](this.contentObject1.data.id),this.bookState.singleMode)){l=this.contentObject1.data.wide&&"left"===this.contentObject1.data.side?0:1;var c=Object(r.getStore)().getters["pages/pageIndexById"](this.contentObject1.data.id)+l,d=Object(r.getStore)().getters["pages/pageIdByIndexWide"](c);this.secondPageGradient=Object(r.getStore)().getters["pages/pageGradient"](d),this.secondPage.style["background-color"]=Object(r.getStore)().getters["pages/pageProp"](d,"backgroundColor")}if(this.contentObject2.data&&(this.secondPageGradient=Object(r.getStore)().getters["pages/pageGradient"](this.contentObject2.data.id),this.bookState.singleMode)){l=this.contentObject2.data.wide&&"right"===this.contentObject2.data.side?0:1;var u=Object(r.getStore)().getters["pages/pageIndexById"](this.contentObject2.data.id)+l,p=Object(r.getStore)().getters["pages/pageIdByIndexWide"](u);this.firstPageGradient=Object(r.getStore)().getters["pages/pageGradient"](p),this.firstPage.style["background-color"]=Object(r.getStore)().getters["pages/pageProp"](p,"backgroundColor")}if(!this.firstPageGradient&&this.secondPageGradient&&(this.firstPageGradient=this.secondPageGradient),!this.secondPageGradient&&this.firstPageGradient&&(this.secondPageGradient=this.firstPageGradient),e?this.setRight():this.setLeft(),n){var f=document.getElementById("reflex-container"),g=f.nextSibling,m=f.parentNode;g?m.insertBefore(this.mask,g):m.appendChild(this.mask),f=null}else t.appendChild(this.mask)},n.prototype.setLeft=function(){o.default.removeClass(this.mask,"mR");var t="page-flip-container z1 "+this.secondPageGradient;return this.secondPage.className=t+(this.bookState.isNullPage(this.secondPageNum)?" break":this.bookState.isLastPage(this.secondPageNum)?" reflex-last":" reflex-left"),t="page-flip-container z3 "+this.firstPageGradient,this.firstPage.className=t+(this.bookState.isNullPage(this.firstPageNum)?" bottom break":this.bookState.isFirstPage(this.firstPageNum)?" bottom":" reflex-right bottom"),this.flipGradient=this.flipGradientT,this.frontPage=this.secondPage,this.reversePage=this.firstPage,this},n.prototype.setRight=function(){o.default.addClass(this.mask,"mR");var t="page-flip-container z3 "+this.secondPageGradient;return this.secondPage.className=t+(this.bookState.isNullPage(this.secondPageNum)?" bottom break":this.bookState.isLastPage(this.secondPageNum)?" bottom":" reflex-left bottom"),t="page-flip-container z1 "+this.firstPageGradient,this.firstPage.className=t+(this.bookState.isNullPage(this.firstPageNum)?" right-page break":this.bookState.isFirstPage(this.firstPageNum)?" right-page reflex-first":" reflex-right right-page"),this.flipGradient=this.flipGradientB,this.frontPage=this.firstPage,this.reversePage=this.secondPage,this},n.prototype.setLayer=function(t){return o.default.removeClass(this.mask,"layer"+this.layer),this.layer=t,o.default.addClass(this.mask,"layer"+t),this},n.prototype.destroy=function(){this.contentObject1.destroy(),void 0!==this.contentObject1.vm&&(this.contentObject1.vm.$destroy(),this.contentObject1.vm=null,delete this.contentObject1.vm),this.contentObject2.destroy(),void 0!==this.contentObject2.vm&&(this.contentObject2.vm.$destroy(),this.contentObject2.vm=null,delete this.contentObject2.vm),o.default.del(this.mask),delete this.mask,delete this.firstPage,delete this.reflexContainer,delete this.innerReflex,delete this.secondPage,delete this.flipGradientT,delete this.flipGradientB,delete this.frontPage,delete this.reversePage,delete this.flipGradient},e.default=n},function(t,e,i){"use strict";function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}i.r(e);var o=[],r=[],n={_version:"3.0.0-alpha.3",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(t,e){var i=this;setTimeout((function(){e(i[t])}),0)},addTest:function(t,e,i){r.push({name:t,fn:e,options:i})},addAsyncTest:function(t){r.push({name:null,fn:t})}},a=function(){};function h(t,e){return s(t)===e}function l(){var t,e,i,s,n,l;for(var c in r){if(t=[],(e=r[c]).name&&(t.push(e.name.toLowerCase()),e.options&&e.options.aliases&&e.options.aliases.length))for(i=0;i',t,""].join(""),l.id=h,(d.fake?d:l).innerHTML+=o,d.appendChild(l),d.fake&&(d.style.background="",d.style.overflow="hidden",a=c.style.overflow,c.style.overflow="hidden",c.appendChild(d)),r=e(l,t),d.fake?(d.parentNode.removeChild(d),c.style.overflow=a,c.offsetHeight):l.parentNode.removeChild(l),!!r}n.testStyles=w;function y(t,e){return!!~(""+t).indexOf(e)}function k(t,e){var i=t.length;if("CSS"in window&&"supports"in window.CSS){for(;i--;)if(window.CSS.supports(p(t[i]),e))return!0;return!1}if("CSSSupportsRule"in window){for(var s=[];i--;)s.push("("+p(t[i])+":"+e+")");return w("@supports ("+(s=s.join(" or "))+") { #modernizr { position: absolute; } }",(function(t){return"absolute"==getComputedStyle(t,null).position}))}}function P(t,e){return function(){return t.apply(e,arguments)}}function x(t,e,i){var s;for(var o in t)if(t[o]in e)return!1===i?t[o]:h(s=e[t[o]],"function")?P(s,i||e):s;return!1}var z={elem:b("modernizr")};a._q.push((function(){delete z.elem}));var $={style:z.elem.style};function C(t,e,i,s){if(s=!h(s,"undefined")&&s,!h(i,"undefined")){var o=k(t,i);if(!h(o,"undefined"))return o}var r,n,a,l,c;function d(){r&&(delete $.style,delete $.modElem)}for($.style||(r=!0,$.modElem=b("modernizr"),$.style=$.modElem.style),a=t.length,n=0;n'}})},function(t,e,i){"use strict";i.r(e);var s=i(138),o=i.n(s);for(var r in s)"default"!==r&&function(t){i.d(e,t,(function(){return s[t]}))}(r);e.default=o.a},function(t,e,i){"use strict";i.r(e);var s=i(382);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){i(0).register({gallery:{width:51,height:51,viewBox:"0 0 51 51",data:''}})},function(t,e,i){"use strict";i.r(e);var s=i(141),o=i.n(s);for(var r in s)"default"!==r&&function(t){i.d(e,t,(function(){return s[t]}))}(r);e.default=o.a},function(t,e,i){"use strict";i.r(e);var s=i(384);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){i(0).register({gif:{width:51,height:51,viewBox:"0 0 51 51",data:''}})},function(t,e,i){i(0).register({replay:{width:16,height:16,viewBox:"0 0 70 70",data:''}})},function(t,e,i){"use strict";i.r(e);var s=i(144),o=i.n(s);for(var r in s)"default"!==r&&function(t){i.d(e,t,(function(){return s[t]}))}(r);e.default=o.a},function(t,e,i){"use strict";i.r(e);var s=i(386);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){"use strict";i.r(e);var s=i(657),o=i(147),r=i(1),n=Object(r.default)(o.default,s.render,s.staticRenderFns,!1,null,null,null);n.options.__file="src/components/content/video/youtube/index.vue",e.default=n.exports},function(t,e,i){"use strict";i.r(e);var s=i(387);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},,,,,,,,,,,,,function(t,e,i){"use strict";i.r(e);var s,o,r=i(149),n=(i(672),i(1)),a=Object(n.default)(r.default,s,o,!1,null,null,null);a.options.__file="src/components/content/video/vimeo/index.vue",e.default=a.exports},,function(t,e,i){"use strict";i.r(e);var s=i(151),o=i.n(s);for(var r in s)"default"!==r&&function(t){i.d(e,t,(function(){return s[t]}))}(r);e.default=o.a},function(t,e,i){"use strict";i.r(e);var s=i(674),o=i(152),r=i(1),n=Object(r.default)(o.default,s.render,s.staticRenderFns,!1,null,null,null);n.options.__file="src/components/content/video/wistia/index.vue",e.default=n.exports},function(t,e,i){"use strict";i.r(e);var s=i(388);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){i(0).register({video:{width:50,height:50,viewBox:"0 0 50 50",data:''}})},function(t,e,i){i(0).register({error:{width:16,height:16,viewBox:"0 0 128 128",data:''}})},function(t,e,i){"use strict";i.r(e);var s=i(154),o=i.n(s);for(var r in s)"default"!==r&&function(t){i.d(e,t,(function(){return s[t]}))}(r);e.default=o.a},function(t,e,i){"use strict";i.r(e);var s=i(390);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){"use strict";i.r(e);var s=i(157),o=i.n(s);for(var r in s)"default"!==r&&function(t){i.d(e,t,(function(){return s[t]}))}(r);e.default=o.a},,function(t,e,i){i(0).register({"book-prev":{width:16,height:16,viewBox:"0 0 24 24",data:''}})},function(t,e,i){i(0).register({"book-next":{width:16,height:16,viewBox:"0 0 24 24",data:''}})},function(t,e,i){"use strict";i.r(e);var s=i(159),o=i.n(s);for(var r in s)"default"!==r&&function(t){i.d(e,t,(function(){return s[t]}))}(r);e.default=o.a},function(t,e,i){"use strict";i.r(e);var s=i(685),o=i(160),r=(i(686),i(1)),n=Object(r.default)(o.default,s.render,s.staticRenderFns,!1,null,"42dda8e8",null);n.options.__file="src/components/common/slide-book/index.vue",e.default=n.exports},function(t,e,i){"use strict";i.r(e);var s=i(394);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){"use strict";i.r(e);var s=i(162),o=i.n(s);for(var r in s)"default"!==r&&function(t){i.d(e,t,(function(){return s[t]}))}(r);e.default=o.a},function(t,e,i){"use strict";i.r(e);var s=i(688),o=i(163),r=(i(689),i(1)),n=Object(r.default)(o.default,s.render,s.staticRenderFns,!1,null,"3832a65e",null);n.options.__file="src/components/desktop/logo/index.vue",e.default=n.exports},function(t,e,i){"use strict";i.r(e);var s=i(395);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){"use strict";i.r(e);var s=i(165),o=i.n(s);for(var r in s)"default"!==r&&function(t){i.d(e,t,(function(){return s[t]}))}(r);e.default=o.a},function(t,e,i){"use strict";i.r(e);var s=i(691),o=i(166),r=(i(692),i(1)),n=Object(r.default)(o.default,s.render,s.staticRenderFns,!1,null,"54040386",null);n.options.__file="src/components/common/nav-buttons/index.vue",e.default=n.exports},function(t,e,i){"use strict";i.r(e);var s=i(397);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){"use strict";i.r(e);var s=i(168),o=i.n(s);for(var r in s)"default"!==r&&function(t){i.d(e,t,(function(){return s[t]}))}(r);e.default=o.a},function(t,e,i){"use strict";i.r(e);var s=i(694),o=i(169),r=(i(695),i(1)),n=Object(r.default)(o.default,s.render,s.staticRenderFns,!1,null,"6d66682b",null);n.options.__file="src/components/desktop/slide-nav-buttons/index.vue",e.default=n.exports},function(t,e,i){"use strict";i.r(e);var s=i(400);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){"use strict";i.r(e);var s=i(171),o=i.n(s);for(var r in s)"default"!==r&&function(t){i.d(e,t,(function(){return s[t]}))}(r);e.default=o.a},function(t,e,i){"use strict";i.r(e);var s=i(697),o=i(172),r=(i(700),i(1)),n=Object(r.default)(o.default,s.render,s.staticRenderFns,!1,null,"dde720a0",null);n.options.__file="src/components/desktop/zoom-panel/index.vue",e.default=n.exports},function(t,e,i){"use strict";i.r(e);var s=i(401);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){i(0).register({text:{width:16,height:16,viewBox:"0 0 30 30",data:''}})},function(t,e,i){i(0).register({drag:{width:16,height:16,viewBox:"0 0 100 100",data:''}})},function(t,e,i){"use strict";i.r(e);var s=i(174),o=i.n(s);for(var r in s)"default"!==r&&function(t){i.d(e,t,(function(){return s[t]}))}(r);e.default=o.a},function(t,e,i){"use strict";i.r(e);var s=i(175),o=i.n(s);for(var r in s)"default"!==r&&function(t){i.d(e,t,(function(){return s[t]}))}(r);e.default=o.a},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){"use strict";i.r(e);var s=i(416);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){"use strict";i.r(e);var s=i(209),o=i.n(s);for(var r in s)"default"!==r&&function(t){i.d(e,t,(function(){return s[t]}))}(r);e.default=o.a}])]);