/*! For license information please see 0.js.LICENSE.txt */
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],Array(23).concat([function(t,e,i){"use strict";i.r(e);var s=i(764),o=i(145),r=(i(765),i(1)),n=Object(r.default)(o.default,s.render,s.staticRenderFns,!1,null,null,null);n.options.__file="src/components/common/spinner/index.vue",e.default=n.exports},,,,,,function(t,e,i){"use strict";i.r(e);var s=i(131);e.default={methods:{movePagerLeft:function(t){var e=t.target;Object(s.movePagerLeft)(this.$store,{target:e})},movePagerRight:function(t){var e=t.target;Object(s.movePagerRight)(this.$store,{target:e})},movePagerLeftmost:function(t){var e=t.target,i=void 0===e?null:e,o=t.navTarget,r=void 0!==o&&o;Object(s.movePagerLeftmost)(this.$store,{target:i,navTarget:r})},movePagerRightmost:function(t){var e=t.target,i=void 0===e?null:e,o=t.navTarget,r=void 0!==o&&o;Object(s.movePagerRightmost)(this.$store,{target:i,navTarget:r})}}}},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,BACKSPACE:8,UP:38,RIGHT:39,DOWN:40,DELETE:46,F1:112,SLASH:191,ESC:27,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=i(5),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({"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),i.d(e,"getApiFileName",(function(){return s})),i.d(e,"getImageInfo",(function(){return o}));var s=function(t){var e=t.format?"."+t.format:"";return t.name+e},o=function(t){var e=t.data,i=t.maxSize;window.devicePixelRatio>=1.5&&(i*=1.5);var s=e.sizes.reduce((function(t,e){return tt?e:t:e>=i&&e'}})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){"use strict";i.r(e);var s=i(109);e.default=s.default},function(t,e,i){"use strict";i.r(e),e.default={name:"FlashMessage",mounted:function(){var t=this;null!==this.$store.getters["workspace/flashMessage"]&&setTimeout((function(){t.$store.dispatch("workspace/setFlashMessage",null)}),this.delay)},computed:{messageData:function(){return this.$store.getters["workspace/flashMessage"]},delay:function(){return this.messageData&&this.messageData.delay?this.messageData.delay:900}}}},function(t,e,i){},,,,,,,,,,,,function(t,e,i){i(0).register({accessibility:{width:36,height:36,viewBox:"0 0 24 24",data:''}})},,function(t,e,i){"use strict";i.r(e);var s=i(125);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(746),o=i(823),r=i(828),n=i(12),a=i(831),h=i(834),l=i(837),c=i(29),d=i(453);i(68);function u(){return(u=Object.assign||function(t){for(var e=1;e0},substrateStyle:function(){var t,e;if(this.$store.getters["pager/state"].slideMode)e="100%",t=0;else{var i=this.$store.state.workspace.holderSize.top,s=this.$store.getters["pages/size"].height,o=this.$store.state.workspace.containerSize.height;t=1===this.$store.state.book.bookSize.zoomFactor?i+"px":o>=s?Math.round(i)+"px":0,e=Math.min(s,o)+"px"}return{display:"block",height:e,top:t}},logoKey:function(){return this.$store.getters["logo/logoKey"]},renderLogo:function(){return this.$store.getters["logo/renderLogo"]},isMobile:function(){return this.$store.getters["workspace/isMobile"]},isMobileApp:function(){return"mobile-app"===this.$store.getters["info/version"]}},methods:{documentOnMouseUp:function(){clearTimeout(this.inspectorModeTimeoutId)},documentOnMouseDown:function(t){var e=this;t.shiftKey&&t.altKey&&(t.ctrlKey||t.metaKey)&&(t.preventDefault(),this.inspectorModeTimeoutId=setTimeout((function(){e.$store.dispatch("workspace/setInspectorMode",!e.inspectorMode)}),1e3))},fitBook:function(t,e){var i=u({},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(d.default)(r,r,a,.1*a.width),l=(o||100)/100,c=28,f=34,p=this.isSingleMode?2*f:2*c,g=10;"desktop"===this.layout?(this.hasThickness&&(i.width-=h),i.width-=p):this.isMobile&&(!this.isSingleMode&&this.hasThickness&&(i.width-=h),i.height-=g);var m=Object(n.fit)(t,i);this.isHardcover&&(m.width=m.width/(this.isSingleMode?1.04:1.03),m.height=m.height/1.03);var v=m.height/m.width;return m.width=Math.floor(m.width*l),m.width=m.width%2==0?m.width:m.width+1,m.height=Math.floor(v*m.width),{width:m.width,height:m.height}},resize:function(t){var e=window.getComputedStyle(this.$el),i={left:1*e.getPropertyValue("margin-left").split("px")[0],right:1*e.getPropertyValue("margin-right").split("px")[0],top:1*e.getPropertyValue("margin-top").split("px")[0],bottom:1*e.getPropertyValue("margin-bottom").split("px")[0]};this.containerSize={width:this.size.width-i.left-i.right,height:this.size.height-i.top-i.bottom,top:this.size.top+i.top,left:this.size.left+i.left},this.$store.dispatch("workspace/setContainerSize",this.containerSize);var s=this.fitBook(this.originalBookSize,this.containerSize),o=Math.round(s.width/(this.isSingleMode?1:2)),r=Math.round(s.height);r=r%2==0?r:r+1,this.bookSize={width:o,height:r,zoomFactor:this.originalBookSize.zoomFactor}},goToRightPage:function(){var t=this;this.$store.state.pager.freezed||setTimeout((function(){t.movePagerRight({target:"free-space-tap"})}),0)},goToLeftPage:function(){var t=this;this.$store.state.pager.freezed||setTimeout((function(){t.movePagerLeft({target:"free-space-tap"})}),0)},arrowHover:function(t,e){this.$refs.bookComponent&&"function"==typeof this.$refs.bookComponent.arrowHover&&this.$refs.bookComponent.arrowHover(t,e)},afterFade:function(){this.ctrFade="no-fade"}},beforeMount:function(){this.$root.$once("before-preloader-off",this.resize),this.$store.dispatch("workspace/setBookComponent",this.bookComponent),this.$root.$on("forceBookResize",this.resize)},mounted:function(){this.resize(!0),this.hasPages||this.$root.onPublicationLoad({}),document.addEventListener("mousedown",this.documentOnMouseDown),document.addEventListener("mouseup",this.documentOnMouseUp)},beforeDestroy:function(){this.$root.$off("forceBookResize",this.resize),document.removeEventListener("mousedown",this.documentOnMouseDown),document.removeEventListener("mouseup",this.documentOnMouseUp)},watch:{size:function(){this.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),this.resize()},pagerState:function(t,e){var i=this;!this.miniState||this.miniFullScreen||t.isEqualState(e)||(this.ctrFade="ctr-fade",this.$nextTick((function(){i.miniFullScreen=!0})))},renderLogo:function(t){var e,i,s=this;t||((null===(e=this.$refs)||void 0===e||null===(i=e.logoComponent)||void 0===i?void 0:i.$el)&&!this.$refs.logoComponent.$el.parentElement&&this.$el.appendChild(this.$refs.logoComponent.$el),this.$nextTick((function(){s.$store.dispatch("logo/updateKey")})))}}}},function(t,e,i){"use strict";i.r(e);var s=i(127);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(128),o=i(767),r=i(454),n=i(456),a=i(458),h=i(460),l=i(462),c=i(464),d=i(470),u=i(472),f=i(473),p=i(29),g=i(474),m=i(8),v=i(16),b=i(5),S=(i(187),i(820),i(821),i(69),i(70),i(41)),w={"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,f.default,p.default],props:{containerSize:{type:Object,required:!0},pageSize:{type:Object,required:!0}},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}},beforeMount:function(){this.visiblePages=this.getVisiblePages(),this.lastZoomFactor=this.defaultZoomFactor,this.zoomFactor=this.$store.state.pages.size.zoomFactor,this.setPageSize(this.pageSize)},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,isMobile:this.isMobile,version:this.version}),this.toggleBlockOnFlip(),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.zoomIn),this.$root.$on("contextMenu:zoomOut",this.zoomOut),this.$root.$on("bottomMenu:zoomIn",this.zoomIn),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),this.zoomFactor>1&&this.refreshScroll()},beforeDestroy:function(){this.$root.$off("contextMenu:zoomIn",this.zoomIn),this.$root.$off("contextMenu:zoomOut",this.zoomOut),this.$root.$off("bottomMenu:zoomIn",this.zoomIn),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){this.setPageSize(t)},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.$store.getters["pager/currentPages"].some((function(t){return i.$store.getters["pages/pageProp"](t,"textBlocks")}),this);this.selectTextEnabled&&o&&!this.$store.state.pager.isMoveWatcherActive&&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":"zoomNotInitial"})):(this.$store.dispatch("pager/unfreeze",{target:"flip-book-zoom"}),this.$store.dispatch("workspace/unsetAnimationProgress")),this.toggleBlockOnFlip(),this.refreshScroll(),this.$store.dispatch("workspace/setStatus",t)},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.mode===e.mode||t.zoomMode===e.zoomMode)if(t.isEqualState(e))t.zoomMode?this.zoomIn():this.zoomOut(!1);else{var s=function(t,e,s){t.mode===e.mode&&i.$store.dispatch("sound/playFlipSound",{hardcover:e.hardcover||t.hardcover});var o=i.$store.getters["pager/getDeltaTurns"](e,t);if(1===Math.abs(o)){var r=o>0?"toLeft":"toRight",n=o>0?!t.rightPage||t.isLastSpread:!t.leftPage||t.isFirstSpread;"flipComponent"!==t.target&&"orientation"!==t.target&&n&&i.$store.dispatch("pager/setForceFlip",{forceFlip:!0}),i.flipAdapter.updateState(r,t,s)}else Math.abs(o)>1&&i.flipAdapter.updateState("toPage",t,s)};if(1!==this.zoomFactor){this.overriddenPagerState=e,this.zoomOut(!1);var o=this.$store.getters["pager/flipState"];this.$once("transition:end",(function(){i.overriddenPagerState=null,setTimeout(s.bind(i,t,e,o),0)}))}else{var r=this.$store.getters["pager/flipState"];setTimeout(s.bind(this,t,e,r),0)}}},isWorkspaceFrozen:function(t){t?this.flipAdapter.block(!1):this.flipAdapter.unblock()},workspaceSize:function(t,e){if(1!==this.zoomFactor)if(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)}else if(this.isInitialZoom){var o={x:this.isRTLBook?this.bookHolderSize.width:0,y:0},r={x:o.x-this.bookHolderSize.left,y:o.y-this.bookHolderSize.top};this.scaleFactor=1;var n=Object(g.getNewCenteredBounds)(this.containerSize,this.bookHolderSize,this.scaleFactor,r);n=Object(g.normalizeBounds)(n,this.containerSize),this.holderScrollLeft=n.left,this.holderScrollTop=n.top,this.$store.dispatch("workspace/clearInitialZoom")}},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)},workspaceBookSize:function(){this.zoomOut(!0)},orientationChanged:function(t,e){e&&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,e=null!==(t=this.overriddenPagerState)&&void 0!==t?t:this.$store.getters["pager/state"];return e.spreadMode&&null===e.leftPage},isOnlyLeftPage:function(){var t,e=null!==(t=this.overriddenPagerState)&&void 0!==t?t:this.$store.getters["pager/state"];return e.spreadMode&&null===e.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 f="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["single-mode"]=this.singleMode,t},pageCount:function(){return this.$store.getters["pages/pagesCount"]},currentPages:function(){var t=this.$store.getters["pager/state"],e=this.$store.getters["pages/isFirstPage"](t.currentPage),i=t.spreadMode&&!this.$store.state.pager.spread_rightPage,s=this.isHardcover&&(e||i);return Object(v.default)(t,{hardcover:s})},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},workspaceBookSize:function(){return this.$store.state.workspace.bookSize},orientationChanged:function(){return this.$store.getters["workspace/orientation"]},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},isInitialZoom:function(){return this.$store.state.workspace.initialZoom},animationSpeed:function(){return 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 this.$store.getters["workspace/isMobile"]},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/isFirstSpread"],e=this.$store.getters["pager/isLastSpread"];return this.isRTLBook?e:t},isLastPage:function(){var t=this.$store.getters["pager/isLastSpread"],e=this.$store.getters["pager/isFirstSpread"];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)},isLightboxShown:function(){return this.$store.getters["lightbox/isShown"]},showLeftButtons:function(){var t=!(this.isLightboxShown||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=!(this.isLightboxShown||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(){var t=this.$store.getters["workspace/callToNavigation"];return"arrow"===t.type&&t.side},eventHandlers:function(){var t=this.isEmbed?{}:{doubletap:this.zoomByTap.bind(this,"tap"),pinchstart:this.zoomByPinchStart,pinchmove:this.zoomByPinchMove,pinchend:this.zoomByPinchFinish,pinchcancel:this.zoomByPinchFinish};return t.tap=this.isHardcover?this.clickOnCover:function(){},t}},methods:{setPageSize:function(t){var e={width:t.width*this.zoomFactor,height:t.height*this.zoomFactor,zoomFactor:this.zoomFactor};this.$store.dispatch("pages/changePageSize",e)},clickOnCover:function(t){for(var e=Object(m.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.scrollComponent.x,0,this.containerSize,this.bookHolderSize),this.scrollComponent.scrollBy(e,0);break;case"up":case"down":e=this.getScrollAmount(t,0,this.scrollComponent.y,this.containerSize,this.bookHolderSize),this.scrollComponent.scrollBy(0,e);break;case"drag":this.dragActive=t.active,this.initScrollComponent(this.dragActive)}this.scrollComponent&&(this.holderScrollX=this.scrollComponent.x,this.holderScrollY=this.scrollComponent.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.initScrollComponent(t.dragActive):t.scrollComponent&&(t.holderScrollX=0,t.holderScrollY=0,t.$store.dispatch("text/setHolderScroll",{x:t.holderScrollX,y:t.holderScrollY}),t.scrollComponent.destroy(),delete t.scrollComponent)}))},onScrollEnd:function(){this.cancelDragging(),this.holderScrollX=this.scrollComponent.x,this.holderScrollY=this.scrollComponent.y,this.$store.dispatch("text/setHolderScroll",{x:this.holderScrollX,y:this.holderScrollY})},onScrollBegin:function(){this.holderScrollX=this.scrollComponent.x,this.holderScrollY=this.scrollComponent.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,e){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",this.$root.$emit("unzoomed"),void(this.fastAnimation=!1);this.zoomByTap(e,{center:{x:0,y:0}})}},zoomIn:function(t){this.zoomFactor>1||this.zoomByTap(t)},zoomByTap:function(t,e){if(t&&this.$store.dispatch("pager/setLastTarget",t),!(this.zoomTimeout>Date.now()||this.isWorkspaceFrozen||"ready"!==this.status||"pending"!==this.$store.state.pager.flipState||this.isMini)){e||(e={center:{x:this.isRTLBook?this.workspaceSize.width:0,y:0},target:null});var i=["next-button","previous-button","icon-book-next","icon-book-prev","reflex-container"];if(!e.target||!(i.indexOf(e.target.className)>=0||e.target.classList.contains("stripe")||e.target.classList.contains("page-stripe")||Object(b.isString)(e.target.className)&&e.target.className.indexOf("stripe-block")>=0||"0-0"===e.target.dataset.page||"textarea"===e.target.tagName.toLowerCase())){this.status="calculating";var s,o=!1,r=this.getTappedZoomBlock(e);if(this.isMobile&&r.id){o=this.lastZoomBlockID!==r.id;var n=this.bookHolderElement.getBoundingClientRect();s=this.getBlockRect(r.rect,n)}if(this.lastZoomBlockID=o?r.id:null,o){var a=1.5,h=40,l=2,c=this.containerSize.width-h*l,d=1*(.96*c/s.width).toFixed(2),u=this.bookHolderSize.width-s.width-s.left;(s.left*d1),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.$store.dispatch("pager/setLastTarget","pinch-zoom"),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(g.getNewBounds)(this.bookHolderSize,this.scaleFactor,{x:this.scaleOrigin.x,y:this.scaleOrigin.y});e=Object(g.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(g.getNewBounds)(this.bookHolderSize,this.scaleFactor,o);r=Object(g.normalizeBounds)(r,this.containerSize),this.scaleOrigin=Object(g.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(g.getNewBounds)(this.bookHolderSize,e,{x:this.workspaceSize.width/2-this.holderScrollLeft,y:this.workspaceSize.height/2-this.holderScrollTop});i=Object(g.normalizeBounds)(i,this.containerSize),this.scaleOrigin=Object(g.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(g.getNewBounds)(this.bookHolderSize,this.scaleFactor,this.scaleOrigin);t=Object(g.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(this.$store.dispatch("pager/setLastTarget","change-zoom"),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.$store.state.pager.freezed||(this.zoomTimeout=Date.now()+500,setTimeout((function(){t.movePagerRight({target:"nav-arrow-tap"})}),0))},leftPage:function(){var t=this;this.addNoteTimeout>Date.now()||this.$store.state.pager.freezed||(this.zoomTimeout=Date.now()+500,setTimeout((function(){t.movePagerLeft({target:"nav-arrow-tap"})}),0))},rightmostPage:function(){var t=this;this.zoomTimeout=Date.now()+500,setTimeout((function(){t.movePagerRightmost({navTarget:!0})}),0)},leftmostPage:function(){var t=this;this.zoomTimeout=Date.now()+500,setTimeout((function(){t.movePagerLeftmost({navTarget:!0})}),0)},arrowHover:function(t,e){e?this.$el.classList.add(t+"-highlighted"):this.$el.classList.remove(t+"-highlighted")},btnAddNote:function(t){var e,i,s;this.zoomTimeout=Date.now()+500,this.addNoteTimeout=Date.now()+500,this.currentPages.singleMode?(e=this.currentPages.currentPage,i=this.currentPages.widePageSecondHalf,s=this.isRTLBook&&this.$store.getters["pages/pageProp"](e,"wide")&&!i):(e="left"===t&&!this.isRTLBook||"right"===t&&this.isRTLBook?this.currentPages.leftPage:this.currentPages.rightPage,i="right"===t&&this.currentPages.wide),this.$store.dispatch("notes/addNote",{pageId:e,wideRight:i,wideOpposite:s})},initScrollComponent:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];1!==this.zoomFactor&&(this.scrollComponent?(this.holderScrollX=this.scrollComponent.x,this.holderScrollY=this.scrollComponent.y,this.scrollComponent.off("beforeScrollStart",this.setDragging),this.scrollComponent.off("scrollCancel",this.cancelDragging),this.scrollComponent.off("scroll",this.onScrollBegin),this.scrollComponent.off("scrollEnd",this.onScrollEnd),this.scrollComponent.destroy(),delete this.scrollComponent):(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 p(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()},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)}},created:function(){var t=this;this.updateCanvasDebounced=Object(r.debounce)((function(e){e&&(t.canvasUpdated=!1),t.updateCanvas()}),1e3),this.isLoading=this.rawIsLoading},mounted:function(){this.refreshCache(),this.$root.$on("zoomMove",this.zoomMove),this.getContent(),window.addEventListener("resize",this.onResize)},beforeUpdate:function(){this.contentItemsReady>this.content.length&&(this.contentItemsReady=this.content.length)},beforeDestroy:function(){window.removeEventListener("resize",this.onResize),this.cancelResize("destroyed",!0),this.updateCanvasDebounced.destroy(),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="")},methods:{bgCacheImageLoaded:function(t){this.isZoomed&&t===this.substrateUrl&&this.setCursor("inherit")},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")===c.default.READY,this.loadPending=this.$store.getters["pages/pageProp"](this.pageId,"loadPending"),this.hasError=this.$store.getters["pages/hasError"](this.pageId)},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");var t=this.$store.getters["pages/isLastPage"](this.pageId)&&this.$store.getters["pages/pageIndexById"](this.pageId)%2!=0&&!this.isWide&&!this.$store.state.pager.singleMode;this.isOutsideHardcover="flip-book"===this.bookComponent&&this.$store.getters["book/hasHardcover"]&&(this.$store.getters["pages/isFirstPage"](this.pageId)||t)},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){return!this.isWide||"both"===this.pageSide||t.side===this.pageSide||t.crossWide},checkPageStripes:function(t){if(!this.isCurrent||this.isZoomed||"flip-book"!==this.bookComponent||t.srcEvent.metaKey||t.srcEvent.ctrlKey)return!1;var e=this.$el.getBoundingClientRect(),i=this.$store.getters["pager/state"].singleMode,s=i?this.isRTLBook:"left"===this.pageSide,o=i?!this.isRTLBook:"right"===this.pageSide;return s&&!this.hideLeftStripe&&t.center.x-e.left<.05*e.width?(this.leftStripeTap(),!0):!!(o&&!this.hideRightStripe&&t.center.x-e.left>.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){null!==this.$store.state.text.selectionRect&&this.$store.dispatch("text/reset");var i=t.target.classList;if(i)if(i.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){var s=Object(r.classPath)(t.target);if(!i.contains("block")&&!i.contains("text-block")&&-1===s.indexOf("content")&&this.checkPageStripes(t))return;(i.contains("content")||i.contains("block")||i.contains("text-block")||i.contains("selecttext")||i.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;var i=e.$store.getters["pages/urlHeaderById"]({id:e.pageId,forceFullWide:"both"===e.pageSide,widePageSecondHalf:"right"===e.pageSide});e.$root.$emit("highlight",{action:e.isHighlighted?"on":"off",page:i})}}),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:c.default.ERROR,pageID:this.pageId})},updateCanvas:function(){var t=this,e=this.isZoomed&&this.substrateNum>1;if(!("desktop"!==this.layout||!this.isCurrent||e||this.canvasUpdated||this.contentFreezed||this.devicePixelRatio>1.5)&&(!this.isWide||"right"!==this.pageSide||this.$store.state.pager.singleMode)&&this.backgroundsCache&&this.backgroundsCache[0]){this.cancelResize("new resize",!1),this.resizeCancelled=!1;var i=new Image;this.crossOrigin&&(i.crossOrigin=this.crossOrigin),i.onload=function(){var e=document.createElement("canvas"),s=e.getContext("2d");if(e.style.transform="translateZ(0)",i.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||(e.width=o.width,e.height=o.height,s.drawImage(i,0,0,o.width,o.height),s.drawImage(o,0,0,o.width,o.height),o.src="",o=null,i=null,t.resizeCanvas(e,t.$refs.bgImage),s=null,e=null)},o.src=t.backgroundsCache[1]}else e.width=i.width,e.height=i.height,s.drawImage(i,0,0,i.width,i.height),i=null,t.resizeCanvas(e,t.$refs.bgImage),s=null,e=null},i.src=this.backgroundsCache[0]}},skipResize:function(){var t=this.$store.state.workspace.userAgentInfo.browser;return t.firefox||t.ie||t.msie||t.msedge},onResize:function(){this.isCurrent&&this.updateCanvasDebounced(!0)},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.wideHalf?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.movePagerLeft({target:"page-edge-tap"})},rightStripeTap:function(){this.movePagerRight({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},forceBackgroundColor:function(t){this.backgroundColor=t}},computed:{pageStyle:function(){var t="rgba(39, 47, 55, 0.03)",e=this.contentCrop?this.contentSize.height:this.pageSize.height;return{width:(this.contentCrop?this.contentSize.width:this.pageSize.width)+"px",height:(e%2==0?e:e+1)+"px","background-color":this.bordered?t:this.backgroundColor}},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.isDownloaded&&!this.hasError},showHighlights:function(){return this.isCurrent&&!this.contentFreezed&&(this.isMobile||this.isSearchOpened)&&!this.showPreloaderContainer},animationInProgress:function(){return this.$store.getters["workspace/animationInProgress"]},isLeftFlipCorner:function(){return"left"===this.$store.getters["workspace/callToNavigation"].side},isLightboxShown:function(){return this.$store.getters["lightbox/isShown"]},flipCornerEnabled:function(){if("flip-book"!==this.bookComponent||!this.isCurrent||this.isLightboxShown)return!1;var t=this.$store.getters["workspace/callToNavigation"];return"corner"===t.type&&(this.$store.state.pager.singleMode||t.side===this.pageSide)&&!this.contentFreezed},bookStatus:function(){return this.bookElement.status||"ready"},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.isDownloaded||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,"last-single-page":this.isLastSinglePage,"content-inactive":!this.contentActive}},isLastSinglePage:function(){return!(!this.$store.state.pager.singleMode||!this.$store.getters["pages/isLastPage"](this.pageId))&&(!this.isWide||!(this.isRTLBook&&"left"!==this.pageSide||!this.isRTLBook&&"right"!==this.pageSide))},preloaderVisible:function(){return!this.isStub&&(this.isLoading||!this.isReady||!this.isDownloaded||this.hasError)},vectorLayer:function(){return this.pageId&&this.isReady&&this.isDownloaded&&!this.hasError&&this.isSVGSupported?this.textUrl:null},backgrounds:function(){if(!this.pageId||!this.isReady||!this.isDownloaded||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},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},contentPagesArray:function(){return this.$store.getters["content/pagesArray"]},content:function(){if(!this.pageId||!this.isReady||!this.isDownloaded||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},wideHalf:function(){return this.isWide&&"both"!==this.pageSide},marginSide:function(){var t=this.contentCrop?0:(this.pageSize.width-this.contentSize.width)/(this.wideHalf?1:2);return t=Math.round(t),t},contentStyle:function(){var t=this.contentSize.height,e=this.contentCrop?0:(this.pageSize.height-t)/2,i={width:this.contentSize.width*(this.wideHalf?2:1)+"px",height:(t%2==0?t:t+1)+"px"};return this.zoomInBlur&&(i.filter="blur(2px)"),"right"===this.pageSide&&(i.right="0",i.marginRight=this.marginSide+"px"),this.marginSide&&"right"!==this.pageSide&&(i.marginLeft=this.marginSide+"px"),e&&(i.marginTop=e.toFixed(0)+"px"),i},substrateNum:function(){var t=this.$store.getters["pages/currentSize"](this.pageId),e=this.$store.getters["pages/contentSize"]({pageID:this.pageId,pageSize:t});return this.$store.getters["pages/imageSizes"](this.pageId,e).substrate},notesArray:function(){for(var t=[],e=this.$store.state.notes.items,i=0,s=e.length;i0?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()}))},selectAll:function(t){t&&this.selectAllPageContent()},preliminarySelection:function(t){this.validContainerSize&&t&&this.finalizePreliminarySelection()},containerSize:function(){this.validContainerSize&&this.preliminarySelection&&this.finalizePreliminarySelection()}},computed:{inspectorMode:function(){return this.$store.state.workspace.inspectorMode},selectAll:function(){return this.$store.state.text.selectAll&&this.pageId===this.$store.state.text.pageID&&this.pageSide===this.$store.state.text.pageSide},preliminarySelection:function(){return this.$store.state.text.preliminarySelection&&this.pageId===this.$store.state.text.pageID&&this.pageSide===this.$store.state.text.pageSide},validContainerSize:function(){var t,e;return(null===(t=this.containerSize)||void 0===t?void 0:t.width)>0&&(null===(e=this.containerSize)||void 0===e?void 0:e.height)>0},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(136);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(445);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(139);e.default=s.default},function(t,e,i){"use strict";i.r(e);i(759),i(448);var s=i(8),o=i(38),r=i(39),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:"view",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.pagerSingleMode&&(this.isIE?this.isFirstPage||"right"!==this.side||this.isLastPage&&this.$store.getters["pages/pagesCount"]%2==0||(t-=this.size.width):this.rtl&&"right"===this.side?t-=this.size.width:this.rtl||"left"!==this.side||(t+=this.size.width))}(this.showRect||this.deleteDialog)&&(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")},isFrozenOrNotReady:function(){return this.$store.state.workspace.freezed||"ready"!==this.$store.state.workspace.status||this.$store.state.workspace.isResizing||this.$store.state.pager.freezed}},watch:{isOpened:function(t){var e=this;t?(this.showEditor(),setTimeout((function(){"edit"===e.rectState&&e.forceFocus()}),100)):this.hideEditor()},state:function(t,e){var i=this;"mini"===t&&"move"===e&&this.$nextTick((function(){i.setTextareaDir()}))}},mounted:function(){this.$root.$on("note:deleteDialog",this.onDeleteDialog),this.$refs.icon.addEventListener("mousedown",this.iconMouseDown,!0),this.updateEditorParams(),this.isOpened&&this.$store.dispatch("notes/setOpenedId",{id:this.data.id}),this.data.new&&(this.rectState="edit",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.$root.$off("note:deleteDialog",this.onDeleteDialog),document.removeEventListener("keydown",this.checkKeydown),this.removeEditorEventListeners(),this.deleteDialog=!1},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.$store.dispatch("notes/setOpenedId",{id:null}):this.$store.dispatch("notes/setOpenedId",{id:this.data.id}))},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.pagerSingleMode||this.isFirstPage||this.isLastPage&&this.$store.getters["pages/pagesCount"]%2==0||("left"===this.side?this.maxDeltaX-=this.size.width:"right"===this.side&&(this.minDeltaX+=this.size.width)),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(){if(this.slideMode&&this.pagerSlideMode)return 0;var t=this.$store.getters["pager/state"];return!this.isWide&&this.isLastPage&&this.rtl&&t.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(){this.deleteDialog=!1,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),document.removeEventListener("keydown",this.checkKeydown),this.removeEditorEventListeners(),this.rectState="view"},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.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,i):(this.deleteDialog=!0,this.isOpened||document.addEventListener("mousedown",this.deleteDialogCancel),this.$nextTick((function(){document.removeEventListener("keydown",e.checkKeydown),e.$refs.cancelButton.focus()})))},onDeleteDialog:function(t){this.data.id===t&&this.deleteNoteCheck()},checkKeydown:function(t){if("Escape"===t.key&&this.$store.dispatch("notes/setOpenedId",{id:null}),"view"===this.rectState&&t.preventDefault(),"Backspace"===t.key||"Delete"===t.key){if(this.$refs.text===document.activeElement)return;this.deleteNoteCheck(t,"hotkey")}},removeEditorEventListeners:function(){document.removeEventListener("mousedown",this.hideEditorClick,!0)},deleteNote:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;document.removeEventListener("keydown",this.checkKeydown),this.removeEditorEventListeners(),this.$store.dispatch("notes/deleteNote",{id:this.data.id,initiator:e}),this.deleteDialogCancel()},deleteDialogCancel:function(){var t=this;this.isOpened&&document.addEventListener("keydown",this.checkKeydown),document.removeEventListener("mousedown",this.deleteDialogCancel),this.deleteDialog=!1,this.$nextTick((function(){t.$root.$emit("note:closeDeleteDialog")}))},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(142);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s,o,r=i(143),n=i.n(r),a=i(3),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,backfaceParams:null,nextPageParams:null,tween:null,crossOrigin:Object(a.default)().getCrossOrigin()}},created:function(){var t=this.$store.getters["pager/flipState"],e=this.isLeft?t.currentLeft:t.currentRight,i=e+(this.isLeft?-1:1),s=e+(this.isLeft?-2:2);this.backfaceParams=this.$store.getters["pager/flipParams"](i),this.nextPageParams=this.$store.getters["pager/flipParams"](s)},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(),this.$parent.$once("onContentContainerClick",this.stopAnimation)},beforeDestroy:function(){this.stopAnimation()},computed:{classes:function(){return{"flip-me-container":!0,left:this.isLeft,"translucent-reverse-side":this.singleMode&&this.isTranslucentReverseSide}},singleMode:function(){return this.$store.state.pager.singleMode},isRTLBook:function(){return this.$store.state.book.rightToLeft},isTranslucentReverseSide:function(){return this.$store.state.workspace.components.book.isTranslucentReverseSide},nextBackgrounds:function(){return this.getBackgroundsArray(this.nextPageParams.pageId)},backfaceBackgrounds:function(){return this.getBackgroundsArray(this.backfaceParams.pageId)},pagesSize:function(){return this.$store.getters["pages/size"]},backfaceImgStyle:function(){return this.getImageStyle(this.backfaceParams)},nextImgStyle:function(){return this.getImageStyle(this.nextPageParams)},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.nextPageParams.pageId,"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.backfaceParams.pageId,"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)},getBackgroundsArray:function(t){var e=[];if(t){var i=this.$store.getters["pages/pageProp"](t,"textUrl"),s=this.$store.getters["pages/pageProp"](t,"substrateUrl");e.push(s),i&&e.push(i)}return e},getImageStyle:function(t){var e=t.wide,i="right"===t.pageSide,s=this.$store.state.pages.size.width,o=document.querySelector('.background[data-id="'+t.pageId+'"]');return(o&&o.style?o.style.cssText:"")+(e&&i?" transform: translate3d(-".concat(s,"px,0,0);"):"")}}}},,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=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},o=16,r=0,n=0;e.default={props:{size:{default:32},"line-size":{type:Number,default:3},"line-bg-color":{type:String,default:"#eee"},"line-fg-color":{type:String,default:"#2196f3"},speed:{type:Number,default:.8},sync:{type:Boolean,default:!1},spacing:{type:Number,default:4},message:{type:String,default:""},"font-size":{type:Number,default:13},"text-fg-color":{type:String,default:"#555"}},data:function(){return{syncAngle:null}},mounted:function(){this.sync&&(this.syncAngle=r,requestAnimationFrame(this.rotate),n++)},beforeDestroy:function(){clearTimeout(this.rotateTimeoutId),--n||(r=0)},computed:{oneDegDelay:function(){return 1e3*this.speed/360},syncStep:function(){return Math.round(o/this.oneDegDelay)},spinnerSize:function(){switch(this.size){case"tiny":return 12;case"small":return 16;case"medium":return 32;case"large":return 48;case"big":return 64;case"huge":return 96;case"massive":return 128}return s(this.size)?this.size:32},spinnerBorderWidth:function(){switch(this.size){case"tiny":return 1;case"small":return 2;case"medium":case"large":return 3;case"big":case"huge":return 4;case"massive":return 5}return s(this.lineSize)?this.lineSize:4},spinnerStyle:function(){return{border:this.spinnerBorderWidth+"px solid "+this.lineBgColor,borderTop:this.spinnerBorderWidth+"px solid "+this.lineFgColor,width:this.spinnerSize+"px",height:this.spinnerSize+"px",animation:this.sync?null:"vue-simple-spinner-spin "+this.speed+"s linear infinite",transition:this.sync?null:"all 0.3s linear",transform:this.sync?"rotate("+this.syncAngle+"deg)":null}},textStyle:function(){var t,e;switch(this.size){case"tiny":case"small":case"medium":case"large":case"big":case"huge":case"massive":t=Math.min(Math.max(Math.ceil(this.spinnerSize/8),3),12),e=Math.min(Math.max(Math.ceil(.4*this.spinnerSize),11),32);break;default:t=s(this.spacing)?this.spacing:4,e=s(this.fontSize)?this.fontSize:13}return{marginTop:t+"px",fontSize:e+"px",color:this.textFgColor}}},methods:{rotate:function(){var t=this;this.rotateTimeoutId=setTimeout((function(){t.syncAngle===r?(t.syncAngle=t.syncAngle+t.syncStep,t.syncAngle=t.syncAngle>360?t.syncAngle-360:t.syncAngle,r=t.syncAngle):t.syncAngle=r,requestAnimationFrame(t.rotate)}),o)}}}},function(t,e,i){},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(150);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(443),o=i(14),r=i(773),n=i(3),a=0,h=3;e.default={mixins:[s.default],mounted:function(){this.resizeTimer=null},data:function(){return{pageResize:null,widthCache:0}},watch:{isZoomed:function(t){t||this.setCursor("inherit")},isCurrent:function(t){var e=this;this.lastIsCurrent!==t&&(this.alreadyLoaded&&this.getProperties(),this.lastIsCurrent=t,t&&(a=0,this.shouldRenderCanvas?this.renderCanvas():function t(){a!==h&&(setTimeout((function(){e.shouldRenderCanvas?e.renderCanvas():e.isCurrent&&t()}),200),!e.$store.state.workspace.animationInProgress&&e.thumbnailUrl&&a++)}()))},pageSize:function(){this.rerenderCanvas(!0)},pageResize:function(){this.rerenderCanvas()},backgroundColor:function(){this.rerenderCanvas()}},methods:{renderCanvas:function(){if(!this.$store.state.pager.zoomMode){var t=this.$refs.canvas;if(t){var e=t.getContext("2d"),i=new Image;i.crossOrigin=Object(n.default)().getCrossOrigin();var s=this.pageSize.width;this.widthCache=s;var o=this.pageSize.height,a="right"===this.pageSide&&this.isWide?-this.contentSize.width:this.contentSize.offsetX,h=this.contentSize.offsetY,l=this.contentSize.width*(this.isWide?2:1),c=this.contentSize.height,d=20,u=(c+=d)/this.contentSize.height,f=Math.floor(s*u)-s;l+=f,a-=d/2,h-=Math.floor(f/2),t.height=Math.floor(o*u),t.width=Math.floor(s*u);var p=t.width-s;t.style.top="-".concat(d/2,"px"),"right"===this.pageSide&&this.isWide?t.style.right="".concat(-Math.floor(p/2),"px"):t.style.left="".concat(-Math.floor(p/2),"px"),e.fillStyle=this.backgroundColor,e.fillRect(0,0,s,o),i.onload=function(){e.save(),e.translate(s,0),e.scale(-1,1),e.drawImage(i,a,h,l,c),e.restore(),Object(r.default)(e,0,0,t.width,t.height,2,1),t=null},i.src=this.thumbnailUrl}}},rerenderCanvas:function(){var t=this;arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.widthCache===this.pageSize.width||this.showCanvas&&this.isCurrent&&(null!==this.resizeTimer&&clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout((function(){t.renderCanvas(),t.resizeTimer=null}),350))},getProperties:function(){this.thumbnailUrl=this.isStub&&this.enforceTransparentBg?this.whitePixelUrl:this.$store.getters["pages/pageProp"](this.pageId,"thumbnailUrl"),this.isReady=this.$store.getters["pages/pageProp"](this.pageId,"status")===o.default.READY,this.loadPending=this.$store.getters["pages/pageProp"](this.pageId,"loadPending"),this.hasError=this.$store.getters["pages/hasError"](this.pageId)},getAPIProperties:function(){this.isWide=this.$store.getters["pages/pageProp"](this.pageId,"wide"),this.isStub=this.$store.getters["pages/pageProp"](this.pageId,"stub"),this.pageResize=this.$store.getters["pages/pageProp"](this.pageId,"pageResize"),this.isHardcoverFirstPage?this.backgroundColor="rgba(255, 255, 255, .15)":this.backgroundColor=null===this.pageId?this.backgroundColor:this.$store.getters["pages/pageProp"](this.pageId,"backgroundColor")}},computed:{showCanvas:function(){return this.showThumbnail&&!this.isHardcoverFirstPage&&!!this.thumbnailUrl},shouldRenderCanvas:function(){return this.showCanvas&&this.$refs.canvas&&!this.$store.state.workspace.animationInProgress},className:function(){return{page:!0,"page-reverse-side":!0,bordered:this.bordered,unready:!this.isReady&&!this.hasError,error:this.hasError,light:this.backgroundLuma>.5,dark:this.backgroundLuma<=.5}},isHardcoverFirstPage:function(){return this.$store.getters["book/hasHardcover"]&&this.$store.getters["pages/isFirstPage"](this.id)},pageSize:function(){var t=this.isOutsideHardcover&&!this.isHardcoverFirstPage?1.03:1,e=this.size||!1,i=this.pagesSize,s=this.pageWidthMultiplier;return e&&e.width&&e.height?{width:Math.round(e.width*t),height:Math.round(e.height*t)}:{width:Math.round(i.width*s*t),height:Math.round(i.height*t)}},pageStyle:function(){return{width:this.pageSize.width+"px",height:this.pageSize.height+"px","background-color":this.backgroundColor}}}}},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(153);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(40);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(155);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s,o,r=i(5),n=i(34);function a(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,s)}return i}function h(t){for(var e=1;e1)return null;var s=Object(n.getImageInfo)({data:t,maxSize:i});return Object(o.default)().getImageFileName(s)},animationInProgress:function(){return this.$store.getters["workspace/animationInProgress"]}},methods:{onImageClick:function(){!this.hasPopup||this.animationInProgress||this.isResizing||(Date.now()>this.tapTimeout&&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.$store.dispatch("lightbox/openLightbox",{itemId:this.data.itemId,target:"content-click"})},preventDefault:function(t){t.preventDefault()},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"}))}},watch:{thumbnailBlob:function(t){t&&this.previewLoad(t)}}}},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(165);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(40),o=i(3),r=i(12),n=i(72);i(786);function a(){return(a=Object.assign||function(t){for(var e=1;e1)return null;var s=Object(n.getImageInfo)({data:t,maxSize:i});return Object(o.default)().getImageFileName(s)},animationInProgress:function(){return this.$store.getters["workspace/animationInProgress"]}},methods:{onGalleryClick:function(){this.animationInProgress||this.isResizing||(Date.now()>this.tapTimeout&&setTimeout(this.galleryClick,this.$store.state.workspace.doubletapInterval+1),this.tapTimeout=Date.now()+this.$store.state.workspace.doubletapInterval)},galleryClick:function(){this.isFrozenOrNotReady||this.isEmbed||this.$store.dispatch("lightbox/openLightbox",{itemId:this.data.itemId,target:"content-click"})},preventDefault:function(t){t.preventDefault()},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"}))}},watch:{thumbnailBlob:function(t){t&&this.previewLoad(t)}}}},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(168);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(8),o=i(40),r=i(3),n=i(23),a=(i(789),i(790),8);e.default={extends:o.default,name:"ContentGif",props:[],data:function(){return{crossOrigin:Object(r.default)().getCrossOrigin(),isIdle:!0,isLoading:!1,isPlaying:!1,isLoaded:!1,isEnded:!1,isAutoplay:this.data.autoplay,imgWidth:null,imgHeight:null,imgRatio:null,imageSrcCache:null,preloaderTimeout:null,loopTimeout:null,tapTimeout:0}},computed:{spreadMode:function(){return this.$store.state.pager.spreadMode},replayPositions:function(){var t=this.singleMode&&this.data.crossWide&&"right"!==this.data.page.side?this.contentElementNonVisibleWidth+a:a;return{bottom:a+"px",right:t+"px"}},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:"";this.$store.state.workspace.policiesUpdated;return/^https?:\/\//.test(this.data.url)?Object(r.default)().translatePath(this.data.url+t):Object(r.default)().translatePath("assets/pages/content/"+encodeURIComponent(this.data.url)+t)},rand:function(){return this.$store.state.content.rands[this.data.itemId]},isEmbed:function(){return this.$store.state.workspace.isEmbed},showThumbnail:function(){return!this.isEnded&&!this.isPlaying},animationInProgress:function(){return this.$store.state.workspace.animationInProgress},isLoadedAndVisible:function(){return this.isLoaded&&!this.$store.state.workspace.preloader}},mounted:function(){(!this.data.crossWide&&!this.rand||this.data.crossWide&&!this.crossWideItem&&!1===this.data.loop)&&this.newRand(),this.updateSrcCache(),this.$nextTick(this.checkAutoplay)},watch:{isCurrentPage:"currentPageChanged",isLoadedAndVisible:function(t){t&&(!this.crossWideItem||this.crossWideItem.isLoaded||this.singleMode)&&(this.isLoading=!1,this.playGif(this),this.crossWideItem&&!this.singleMode&&(this.crossWideItem.isLoading=!1,this.playGif(this.crossWideItem)),this.$emit("gif:loaded",this),this.$root.$emit("gif",{action:"loaded",url:this.data.url}))},imageSrc:"updateSrcCache",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){var e=this;this.isResizing||(Date.now()>this.tapTimeout&&setTimeout((function(){e.gifClick(t)}),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];if(!this.isFrozenOrNotReady&&!this.isEmbed){if(this.data.url&&this.isIdle&&!this.isLoading)this.$emit("gif:click",this),this.$root.$emit("gif",{action:"click",url:this.data.url}),this.loadGif();else if(!1===this.data.loop&&this.isEnded){var i=this.isMobile&&document.activeElement!==this.$el&&!this.isHighlighted,o=this.isMobile&&this.isHighlighted;if(!e&&!o&&(i||-1===Object(s.classPath)(t.target).indexOf("replay")))return void(i&&(this.isHighlighted=!0,this.crossWideItem&&(this.crossWideItem.isHighlighted=!0)));this.unloadGif(!e),this.$nextTick(this.loadGif),this.isMobile&&this.isHighlighted&&(this.isHighlighted=!1,this.crossWideItem&&(this.crossWideItem.isHighlighted=!1))}else(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.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),t.isLoaded=!0},this.img.onerror=function(e){t.$emit("gif:error",t,e)},this.crossOrigin&&(this.img.crossOrigin=this.crossOrigin),this.img.src=this.imageSrcCache,this.isIdle=!1,this.preloaderTimeout=setTimeout((function(){t.isLoading=!0}),this.data.loop?200:0)},unloadGif:function(t){var e;this.rawThumbnailUrl&&(clearTimeout(this.preloaderTimeout),clearTimeout(this.loopTimeout),this.isLoading=!1,this.isEnded=!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.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(!0),this.data.autoplay&&(this.isAutoplay=!0))},newRand:function(){this.$store.dispatch("content/newRand",{itemId:this.data.itemId})},updateSrcCache:function(){this.imageSrcCache===this.imageSrc||this.isLoaded||(this.imageSrcCache=this.imageSrc)}},components:{spinner:n.default}}},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(171);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(40),o=i(12),r=i(3),n=i(793),a=i(807),h=i(810),l=i(812),c=(i(815),i(469),i(16));function d(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,s)}return i}function u(t){for(var e=1;e144&&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.$store.state.caniuse.video.inlineMutedAutoplay||this.$store.state.caniuse.video.inlineAutoplay)&&this.data.autoplay},shouldShowThumbnail:function(){return"dialog"!==this.data.mode||this.data.showImage},isThumbnailShown:function(){return this.shouldShowThumbnail&&!this.playerLoaded},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},isMobileApp:function(){return"mobile-app"===this.$store.getters["info/version"]},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":t=this.data.account?"https://"+this.data.account+".wistia.com/medias/"+this.data.id:this.data.originalUrl?this.data.originalUrl.split("#")[0].split("?")[0]:"https://fast.wistia.net/embed/iframe/"+this.data.id;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"}},containerClasses:function(){return{error:this.hasError,highlighted:this.isHighlighted}},isMuted:function(){return this.$store.state.sound.muteSound||this.isInline&&!this.$store.state.caniuse.video.inlineAutoplay&&this.$store.state.caniuse.video.inlineMutedAutoplay},isEmbed:function(){return this.$store.state.workspace.isEmbed},animationInProgress:function(){return this.$store.getters["workspace/animationInProgress"]},errorIconStyles:function(){return u(u({},this.iconSizes),this.crossWideCenterIconPositions)},rawThumbnailUrl:function(){return this.data.image&&this.shouldShowThumbnail?/^https?:\/\//.test(this.data.image)?this.data.image:"assets/pages/content/"+this.data.image:null}},methods:{onVideoClick:function(){this.animationInProgress||this.isResizing||(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(){"youtube"===e.data.provider&&(e.playerLoaded=!0)})),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.$root.$emit("popupStateChanged",{state:1}),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.$root.$emit("popupStateChanged",{state:0}),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=t.split("?"),i=e[0],s=e[1],o=i.split("#")[0],r=/(?:(?:https?:)?\/\/)?(?:[^.]+\.)?(\w+)(\.|\-)/.exec(o),n=r?r[1]:null,a=o.split("/"),h={provider:n,id:a[a.length-1]};switch(n){case"youtu":case"youtube":if(h.provider="youtube","watch"===h.id){var l=/v=([^&]+)/.exec(s);h.id=l?l[1]:null}break;case"vimeo":var d=/user[0-9]+\/\w+/,u=/^\d+$/;h.customUrl=d.exec(o)?o:null,h.customUrl||u.exec(h.id)||(h.accessKey=h.id,h.id=a[a.length-2]);break;case"wistia":var f=/https?:\/\/(.*)?(?:\.wistia\.com|fast\.wistia\.net)/.exec(o);h.account=f?f[1]:null}return Object(c.default)(this.data,h)},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,s){"youtube"!==t.data.provider&&t.isInline&&(t.playerLoaded=!0);var o=0===e||0===(null==e?void 0:e.seconds);t.isEnded&&o&&t.originalStartFrom&&t.$refs.player.setCurrentTime(t.originalStartFrom),t.isMutedByPlayer=s,t.isEnded=!1,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,s){t.isPlaying=!1,t.isMutedByPlayer=s,t.currentTime=e,t.$emit("video:pause",e,t,i),t.$root.$emit("video",{action:"pause",url:t.apiVideoUrl,time:e})}));var e=function(e,i,s){t.isEnded=!0,t.isMutedByPlayer=s,t.isPlaying=!1,t.currentTime=t.originalStartFrom,t.$emit("video:end",e,t,i),t.$root.$emit("video",{action:"stop",url:t.apiVideoUrl,time:e})};this.$refs.player.$on("end",e),this.$refs.player.$on("ended",e);var i=function(e,i,s){t.currentTime=e,t.isMutedByPlayer=s,t.$emit("video:seek",e,t,i),t.$root.$emit("video",{action:"seekTo",url:t.apiVideoUrl,time:e})};this.$refs.player.$on("seek",i),this.$refs.player.$on("seeked",i),this.$refs.player.$on("timeupdate",(function(e,i,s){t.isMutedByPlayer=s,t.currentTime=e})),this.$refs.player.$on("secondchange",(function(e,i,s){"wistia"===t.data.provider&&t.isEnded||(t.currentTime=e),t.isMutedByPlayer=s})),this.$refs.player.$on("error",(function(e,i,s){"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.isMutedByPlayer=s):t.showPreventer=!1})),this.$refs.player.$on("loaded",(function(e,i,s){t.showPreventer=!0,"youtube"!==t.data.provider&&t.isInline&&(t.playerLoaded=!0),t.isMutedByPlayer=s,t.$emit("video:loaded",e,t,i)})),this.$refs.player.$on("ready",(function(){t.$nextTick((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"))},setPlayingWithSound:function(){this.$store.state.caniuse.userInteractions.firstClick||this.isMutedByPlayer||this.$store.dispatch("caniuse/setFirstClick"),this.$store.dispatch("content/setVideoPlayingWithSound",{playing:this.isPlaying&&!this.isMutedByPlayer,itemId:this.data.itemId})},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(173);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s,o=i(795),r=i.n(o);function n(){return(n=Object.assign||function(t){for(var e=1;e.1?t:.3})).catch(this.error),this.player.setMuted(!0).catch(this.error)):(this.player.setMuted(!1).catch(this.error),this.player.setVolume(this.volume).catch(this.error))},setVolume:function(t){this.player.setVolume(t).catch(this.error)},setSize:function(){this.player.element&&(this.player.element.width=this.width,this.player.element.height=this.height)},setCurrentTime:function(t){this.player.setCurrentTime(t)},init:function(){var t=this;this.player.ready().then((function(){t.start&&t.player.setCurrentTime(t.start),t.$emit("ready",t.player),t.setMute(t.mute),a.forEach((function(e){return n.call(t,e)}))})).catch(this.error)},error:function(t){var e=this;if(-1!==t.message.indexOf("is not embeddable")&&this.$el.querySelector("iframe"))return;"PasswordError"!==t.name&&"PrivacyError"!==t.name||this.player.element&&(this.$nextTick((function(){e.player.element.focus()})),setTimeout((function(){e.player.element.focus()}),100)),this.$emit("error",t,this.player)}},mounted:function(){var t={width:this.width,height:this.height,autoplay:this.isCurrentPage,autopause:0,muted:this.mute,transparent:!1,playsinline:!0};this.customUrl?(t.url=this.url,t.url+=this.accessKey?"/"+this.accessKey:""):this.embedUrl?t.url=this.embedUrl:this.accessKey?t.url="https://www.vimeo.com/"+this.id+"/"+this.accessKey:t.id=this.id,this.player=new s.default(this.$el,o(t,this.options)),this.init(),this.$parent.$on("play",this.play),this.$parent.$on("stop",this.stop),this.$parent.$on("pause",this.pause)},beforeDestroy:function(){this.player&&this.player.unload().catch((function(){})),this.$parent.$off("play",this.play),this.$parent.$off("stop",this.stop),this.$parent.$off("pause",this.pause)}}},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(178);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(55),o=i(11),r=i(3),n=i(5);function a(){return(a=Object.assign||function(t){for(var e=1;e=0||Object(r.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.windowWidth=window.innerWidth,this.windowHeight=window.innerHeight,this.isAndroid){var t=document.activeElement;if(0!==this.androidKeyboardShift||"input"!==t.tagName.toLowerCase()&&"textarea"!==t.tagName.toLowerCase())0!==this.androidKeyboardShift&&(this.androidKeyboardShift=0);else{var e,i=t.getBoundingClientRect();i.top>this.windowHeight/2&&this.windowHeight<((null===(e=this.rect)||void 0===e?void 0:e.height)||this.height)&&(this.androidKeyboardShift=-i.top/4)}}},onKeydown:function(t){"Escape"===t.key&&this.hide()}},mounted:function(){this.onResizeDebounced=Object(r.debounce)(this.onResize,100,!1),window.addEventListener("resize",this.onResizeDebounced),window.addEventListener("keydown",this.onKeydown),this.$root.$el.appendChild(this.$el)},beforeDestroy:function(){var t=this;window.removeEventListener("resize",this.onResizeDebounced),window.removeEventListener("keydown",this.onKeydown),this.$store.dispatch("workspace/setModalOpened",!1),setTimeout((function(){var e,i;null===(e=(i=t.$el).remove)||void 0===e||e.call(i)}),this.delay)},components:{spinner:s.default}}},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(185);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(16);e.default={name:"select-text-panel",data:function(){return{showPanel:!1,forceShow:!1,panelStyle:{},panelRect:{},vertical:null,rightOffset:!1,showPanelTimeout:null,pointerTransform:{}}},mounted:function(){this.$root.$on("selectText:hidePanel",this.hide),this.$root.$on("selectText:showPanel",this.show)},beforeDestroy:function(){this.$root.$off("selectText:hidePanel",this.hide),this.$root.$off("selectText:showPanel",this.show)},computed:{userRect:function(){return this.$store.state.text.selectionRect},pageId:function(){return this.$store.state.text.pageID},pageSide:function(){return this.$store.state.text.pageSide},inProgress:function(){return this.$store.state.text.inProgress},pageSize:function(){return this.$store.state.pages.size},cornerSymbols:function(){return this.$store.state.text.cornerSymbols},holderSize:function(){return this.$store.getters["workspace/holderSize"]},bookComponent:function(){return this.$store.state.workspace.bookComponent},locale:function(){return this.$store.getters["i18n/getCurrent"]},blockDirection:function(){return this.$store.getters["i18n/isLocaleRtl"]?"rtl":null},isRtl:function(){return this.$store.state.book.rightToLeft},panelClass:function(){return this.vertical+(this.rightOffset?" right-side":"")+(this.contextMenuVisible?" quick-leave":"")},pages:function(){var t=this.$store.getters["pager/currentPages"].length;return this.$store.getters["pages/pageProp"](this.pageId,"wide")?2:t},hardcoverTopPadding:function(){return this.$store.getters["book/hasHardcover"]?this.$store.state.pager.spreadMode?1===this.pages&&(this.$store.getters["pages/isFirstPage"](this.pageId)||this.$store.getters["pages/isLastPage"](this.pageId))?-.03*this.pageSize.height/2:0:this.$store.state.pager.singleMode&&this.$store.getters["pages/isFirstPage"](this.pageId)?-.03*this.pageSize.height/2:0:0},hardcoverLeftPadding:function(){return this.$store.getters["book/hasHardcover"]&&(this.$store.state.pager.spreadMode&&1===this.pages&&(!this.isRtl&&this.$store.getters["pages/isLastPage"](this.pageId)||this.isRtl&&this.$store.getters["pages/isFirstPage"](this.pageId))||this.$store.state.pager.singleMode&&this.isRtl&&this.$store.getters["pages/isFirstPage"](this.pageId))?-.03*this.pageSize.width:0},pageLeftPadding:function(){var t=this.$store.getters["pages/pageProp"](this.pageId,"wide");return this.$store.getters["pager/isFirstSpread"]||"right"!==this.pageSide||(this.isRtl&&this.$store.getters["pages/isLastPage"](this.pageId)||t)&&!this.$store.state.pager.singleMode?0:this.$store.state.pager.spreadMode?this.pageSize.width:this.$store.state.pager.singleMode&&t?-this.pageSize.width:0},contextMenuVisible:function(){return this.$store.state.workspace.contextMenuVisible},isOnline:function(){return!this.$store.getters["workspace/isOffline"]}},watch:{showPanel:function(t){var e=this;t&&this.$nextTick((function(){e.setPosition()}))}},methods:{hide:function(){var t=arguments.length>0&&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(){var t=this.calculatePanelPosition();this.panelRect.left=t.left,this.panelRect.top=t.top,this.vertical=t.vertical,this.panelStyle={left:this.panelRect.left+"px",top:this.panelRect.top+"px"}},calculatePanelPosition:function(){var t;t=this.cornerSymbols.first.top===this.cornerSymbols.last.top?"left"===this.userRect.cursorHSide?{vertical:"top",horizontal:"first"}:{vertical:"bottom",horizontal:"last"}:"top"===this.userRect.cursorVSide?{vertical:"top",horizontal:"first"}:{vertical:"bottom",horizontal:"last"};var e=this.calculatePanelCoordinates(t);return e.top<50?(t.vertical="bottom",e=this.calculatePanelCoordinates(t)):e.top>this.holderSize.height-50&&(t.vertical="top",e=this.calculatePanelCoordinates(t)),t=Object(s.default)(t,e)},calculatePanelCoordinates:function(t){var e,i,s,o=null!==(e=null===(i=this.userRect)||void 0===i?void 0:i.offsetX)&&void 0!==e?e:0,r=null!==(s=this.userRect.offsetY)&&void 0!==s?s:0,n=this.cornerSymbols[t.horizontal],a=this.cornerSymbols.first.top!==this.cornerSymbols.last.top,h=this.cornerSymbols.first.isRtlSelection&&a,l=t.horizontal===(h?"last":"first")&&n.collisions.left||t.horizontal===(h?"first":"last")&&!n.collisions.right?n.width:0,c="bottom"===t.vertical?n.height:0;return{left:this.pageLeftPadding+this.hardcoverLeftPadding+n.left+l+o,top:this.hardcoverTopPadding+n.top+c+r}},copyText:function(){this.$root.$emit("contextMenu:copyText"),this.hide()},copyTextLink:function(){this.$root.$emit("contextMenu:copyTextLink"),this.hide()},onMouseEnter:function(){this.forceShow=!0},onMouseLeave:function(){this.forceShow=!1}}}},function(t,e,i){},function(t,e,i){i(0).register({"add-note":{width:16,height:16,viewBox:"0 0 24 24",data:''}})},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(190);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(143),o=i.n(s),r=i(12),n=i(5),a=i(474),h=i(41),l=i(128),c=i(454),d=i(456),u=i(458),f=i(460),p=i(462),g=i(464),m=i(470),v=i(472),b=i(473),S=i(29);i(825),i(826),i(187);function w(t){return P(t)||x(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 x(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function P(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&&this.refreshScroll()},beforeDestroy:function(){this.tween&&o.a.remove(this.tween),this.$root.$off("contextMenu:zoomIn",this.zoomIn),this.$root.$off("contextMenu:zoomOut",this.zoomOut),this.$root.$off("bottomMenu:zoomIn",this.zoomIn),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.$root.$off("nav:goRight",this.goFastRight),this.$root.$off("nav:goLeft",this.goFastLeft)},watch:{pageSize:function(t){var e={width:t.width*this.zoomFactor,height:t.height*this.zoomFactor,zoomFactor:this.zoomFactor};this.$store.dispatch("pages/changePageSize",e),this.slidesCacheUpdate()},isSingleMode:function(){this.slidesCacheUpdate()},isSlideMode:function(){this.slidesCacheUpdate()},isRtl:function(){this.slidesCacheUpdate()},zoomFactor:function(t,e){var i=this,s={width:this.pageSize.width*t,height:this.pageSize.height*t,zoomFactor:t};if(this.$store.dispatch("pages/changePageSize",s),t>1&&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){"sliding"===t?this.$store.dispatch("pager/isPageChanging",!0):this.$store.state.pager.isMoveWatcherActive||this.$store.dispatch("pager/isPageChanging",!1),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.isFastSliding?this.$store.dispatch("workspace/setAnimationProgress",{animationType:"pagerMove"}):this.$store.dispatch("workspace/unsetAnimationProgress"),this.updateNoteIcon()})),slides:function(t,e){var i=this;if(this.scrollLock)this.scrollLock=!1;else{var s=e.current[0].state,o=t.current[0].state;if(s.mode===o.mode){this.isSlideMode||this.isSingleMode||this.updateHorizontalScale(t.current,e.current);var r=this.$store.getters["pager/getDeltaTurns"](s,o),n=Math.abs(r)>1;o.zoomMode===s.zoomMode||r?!this.isRtl&&r>0||this.isRtl&&r<0?(n&&this.replaceCachedSlide("right",t.current),this.isZoomed?(this.pendingSlide="right",this.zoomOut()):this.$nextTick((function(){i.animateSlides("right",!1,!0)}))):(!this.isRtl&&r<0||this.isRtl&&r>0)&&(n&&this.replaceCachedSlide("left",t.current),this.isZoomed?(this.pendingSlide="left",this.zoomOut()):this.$nextTick((function(){i.animateSlides("left",!1,!0)}))):o.zoomMode?this.zoomIn():this.zoomOut()}}},workspaceSize:function(t,e){if(this.isMobile&&e.width&&e.height&&(t.width!==e.width||t.height!==e.height))this.zoomOut(!0);else if(1!==this.zoomFactor){var i,s,o={x:(i=this.isInitialZoom?{x:this.isRTLBook?this.spreadSizes.current.width:0,y:0}:{x:t.width/2,y:t.height/2}).x-this.spreadSizes.current.left,y:i.y-this.spreadSizes.current.top};this.scaleFactor=1,s=this.isInitialZoom?Object(a.getNewCenteredBounds)(this.containerSize,this.spreadSizes.current,this.scaleFactor,o):Object(a.getNewBounds)(this.spreadSizes.current,this.scaleFactor,o),s=Object(a.normalizeBounds)(s,this.containerSize),this.scaleOrigin=Object(a.getOrigin)(this.spreadSizes.current,s,this.scaleFactor),this.slideScrollLeft=s.left,this.slideScrollTop=s.top,this.isInitialZoom&&(this.$store.dispatch("workspace/clearInitialZoom"),this.refreshScroll())}},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;o1&&"current"!==s||e.isSingleMode&&l)return;e.$store.dispatch("pages/setCurrentSize",{pageID:r,value:{width:a,height:h}})}}))},spreadSizes:function(t){this.$store.dispatch("workspace/setHolderSize",t.current),this.updateNoteIcon()},isLocaleRtl:function(){this.updateNoteIcon()},notesEnabled:function(){this.updateNoteIcon()},dragActive:function(t){t?this.$refs.holder.$el.classList.remove("nodrag"):this.$refs.holder.$el.classList.add("nodrag")},isMini:function(){this.zoomOut(!0),this.updateNoteIcon()},orientationChanged:function(t,e){e&&this.zoomOut(!0)}},computed:{isRTLBook:function(){return this.$store.state.book.rightToLeft},isFirstPage:function(){return this.$store.getters["pager/isFirstSpread"]},isLastPage:function(){return this.$store.getters["pager/isLastSpread"]},isRightmostPage:function(){return this.isFirstPage&&this.isRtl||this.isLastPage&&!this.isRtl},isLeftmostPage:function(){return this.isLastPage&&this.isRtl||this.isFirstPage&&!this.isRtl},isRtl:function(){return this.$store.state.book.rightToLeft},isLocaleRtl:function(){return this.$store.getters["i18n/isLocaleRtl"]},isMobile:function(){return this.$store.getters["workspace/isMobile"]},isSingleMode:function(){return this.$store.state.pager.singleMode},isSpreadMode:function(){return this.$store.state.pager.spreadMode},isSlideMode:function(){return this.$store.state.pager.slideMode},isContentCropMode:function(){return this.isSlideMode&&this.$store.state.book.contentCrop},isZoomed:function(){return 1!==this.zoomFactor},isInitialZoom:function(){return this.$store.state.workspace.initialZoom},zoomPanel:function(){return this.$store.state.workspace.zoomPanel},slides:function(){var t=this,e={},i=this.isRtl?"right":"left",s=this.isRtl?"left":"right",o=this.$store.getters["pager/state"],r=this.$store.getters["pager/nextState"],n=this.$store.getters["pager/prevState"],a=this.$store.getters["pager/secondNextState"],h=this.$store.getters["pager/secondPrevState"],l=this.isRtl?r:n,c=this.isRtl?n:r,d=this.isRtl?a:h,u=this.isRtl?h:a,f=function(i,s,r,n,a,h){if(h||(e[i]=[]),s){var l=t.$store.getters["pages/pageIndexById"](s);n&&r===(t.isRtl?"left":"right")&&l++;var c=t.$store.getters["pages/pageCaptionByIndex"](l),d=t.$store.getters["pages/pageProp"](s,"backgroundColor"),u=t.isSlideMode&&n?"page-wide":"page",f={backgroundColor:d};t.isFastSliding&&(f["font-size"]=Math.min(Math.floor(t.containerSize.height/20),20)+"px"),e[i].push({id:s,side:r,caption:c,icon:u,style:f,wide:n,position:a,state:o})}};if(o.singleMode)f("current",o.currentPage,o.pageSide,o.wide,""),l&&f("left",l.currentPage,l.pageSide,l.wide,""),c&&f("right",c.currentPage,c.pageSide,c.wide,""),d&&f("second-left",d.currentPage,d.pageSide,d.wide,""),u&&f("second-right",u.currentPage,u.pageSide,u.wide,"");else if(o.slideMode){if(e.current=[],o.currentPage){var p=o.wide?"both":i;f("current",o.currentPage,p,o.wide,i)}if(l){var g=l.wide?"both":i;f("left",l.currentPage,g,l.wide,i)}if(c){var m=c.wide?"both":i;f("right",c.currentPage,m,c.wide,i)}if(d){var v=d.wide?"both":i;f("second-left",d.currentPage,v,d.wide,i)}if(u){var b=u.wide?"both":i;f("second-right",u.currentPage,b,u.wide,i)}}else if(o.spreadMode){var S=function(e,o){var r=t.getPageProp(o.leftPage,"wide"),n=r?"both":i;if(f(e,o.leftPage,n,r,i),o.rightPage&&o.leftPage!==o.rightPage){var a=r?"both":s;f(e,o.rightPage,a,r,s,!0)}};S("current",o),l&&S("left",l),c&&S("right",c),d&&S("second-left",d),u&&S("second-right",u)}return e},fitPageSize:function(){return Object(r.fit)(this.pageSize,this.containerSize)},fitDoublePageSize:function(){return Object(r.fit)({width:2*this.pageSize.width,height:this.pageSize.height},this.containerSize)},fitSinglePageSize:function(){return{width:this.fitDoublePageSize.width/2,height:this.fitDoublePageSize.height,top:this.fitDoublePageSize.top,left:(this.containerSize.width-this.fitDoublePageSize.width/2)/2}},pageSizes:function(){var t={},e=this.fitPageSize,i=this.fitDoublePageSize,s=this.fitSinglePageSize;for(var o in this.slidesCache){if(!this.slidesCache.hasOwnProperty(o))return;var r="current"===o?this.zoomFactor:1;if(this.isSingleMode)t[o]={width:Math.round(e.width*r),height:Math.round(e.height*r)};else if(this.isContentCropMode){var n=this.getContentSize(this.slidesCache[o][0].id);t[o]={width:Math.round(n.width*r),height:Math.round(n.height*r),left:n.left,top:n.top}}else{var a=this.slidesCache[o][0].wide;t[o]={width:Math.round((a?i.width:s.width)*r),height:Math.round((a?i.height:s.height)*r)}}}return t},spreadSizes:function(){var t={};for(var e in this.slidesCache){if(!this.slidesCache.hasOwnProperty(e))return;if(t[e]={width:this.pageSizes[e].width*this.slidesCache[e].length,height:this.pageSizes[e].height},this.isZoomed&&"current"===e)t[e].left=this.slideScrollLeft,t[e].top=this.slideScrollTop;else if(this.isSingleMode)t[e].left=this.fitPageSize.left,t[e].top=this.fitPageSize.top;else if(this.isContentCropMode)t[e].left=this.pageSizes[e].left,t[e].top=this.pageSizes[e].top;else{var i=2===this.slidesCache[e].length||this.slidesCache[e][0].wide;t[e].left=i?this.fitDoublePageSize.left:this.fitSinglePageSize.left,t[e].top=i?this.fitDoublePageSize.top:this.fitSinglePageSize.top}}return t},holderClasses:function(){return{zoomed:this.isZoomed,"drag-active":this.dragging,single:this.isSingleMode}},spreadStyles:function(){var t={};return t.current={width:this.spreadSizes.current.width+"px",height:this.spreadSizes.current.height+"px",left:this.isZoomed?this.containerSize.width>=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.$store.dispatch("pager/setLastTarget","pinch-zoom"),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(this.$store.dispatch("pager/setLastTarget","change-zoom"),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.isFastSliding||"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.isFastSliding&&"pan"===this.status&&!(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.blockPan&&(this.isFastSliding||"pan"===this.status||"sliding"===this.status)&&!(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),r=t.deltaX>0?"left":t.deltaX<0?"right":"center";("sliding"===this.status||this.isFastSliding)&&(this.checkFastSlide(r,!1),this.pendingFastSlide)||("left"===r&&!this.isLeftmostPage&&(o>this.maxDelta/3||s>.5)?this.animateSlides("left"):"right"===r&&!this.isRightmostPage&&(o>this.maxDelta/3||s>.5)?this.animateSlides("right"):"sliding"!==this.status&&this.animateSlides("center"))}},zoomIn:function(t){this.zoomFactor>1||this.onTap(t)},zoomOut:function(t,e){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(e,{center:{x:0,y:0}})}},goRight:function(){this.scrollLock=!0,this.movePagerRight({target:"slide-swipe"}),this.$root.$emit("render:finish")},goLeft:function(){this.scrollLock=!0,this.movePagerLeft({target:"slide-swipe"}),this.$root.$emit("render:finish")},goFastRight:function(){this.checkFastSlide("right")},goFastLeft:function(){this.checkFastSlide("left")},canSlideInDirection:function(t){return t&&("left"===t&&!this.isLeftmostPage||"right"===t&&!this.isRightmostPage)},checkFastSlide:function(t){var e,i,s=this,o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.canSlideInDirection(t)&&(this.isFastSliding&&(this.isSpreadFillerShown=!0),this.pendingFastSlide&&this.pendingFastSlide!==t&&(this.pendingFastSlide=null),"sliding"===this.status&&(null===(e=this.tween)||void 0===e?void 0:e._isPlaying)&&this.isPagerFrozen&&(this.isFastSliding=!0,o&&this.tween.stop()),!this.pendingFastSlide&&this.isFastSliding&&(null===(i=this.tween)||void 0===i?void 0:i._isPlaying)&&(this.tween._duration=200,this.pendingFastSlide=t),this.isFastSliding&&(clearTimeout(this.fastSlidingCancelTimeout),this.fastSlidingCancelTimeout=setTimeout((function(){s.isFastSliding=!1,s.isSpreadFillerShown=!1,s.$store.dispatch("workspace/unsetAnimationProgress")}),400)))},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||this.isFastSliding?200:this.slideAnimationSpeed).easing(this.slideEasing).onUpdate((function(t){i.delta=t.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"),i.pendingFastSlide&&i.canSlideInDirection(i.pendingFastSlide)&&(i.animateSlides(i.pendingFastSlide),i.pendingFastSlide=null)})).onStop((function(){i.slidesCacheUpdate(),i.$store.dispatch("pager/unfreeze",{target:"slide-book"})})).start()},updateHorizontalScale:function(t,e){var i=0;(e[0].wide||2===e.length)&&i--,(t[0].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")]).concat([e("second-left")]).concat([e("second-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.isInitialZoom||(this.cancelDragging(),this.$nextTick((function(){t.isZoomed&&"ready"===t.status?(t.initScrollComponent(t.dragActive),t.scrollComponent.refresh()):t.scrollComponent&&(t.slideScrollX=0,t.slideScrollY=0,t.$store.dispatch("text/setHolderScroll",{x:t.slideScrollX,y:t.slideScrollY}),t.scrollComponent.refresh(),t.scrollComponent.destroy(),delete t.scrollComponent)})))},initScrollComponent:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];1!==this.zoomFactor&&(this.scrollComponent?(this.slideScrollX=this.scrollComponent.x,this.slideScrollY=this.scrollComponent.y,this.scrollComponent.off("beforeScrollStart",this.setDragging),this.scrollComponent.off("scrollCancel",this.cancelDragging),this.scrollComponent.off("scroll",this.onScrollBegin),this.scrollComponent.off("scrollEnd",this.onScrollEnd),this.scrollComponent.destroy(),delete this.scrollComponent):(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.getters["pager/nextPageId"]||0===this.$store.getters["pager/nextPageId"])?(this.checkFastSlide(this.isRTLBook?"left":"right"),this.$store.dispatch("pager/goForward",{target:"wheel"})):t.deltaY<0&&(this.$store.getters["pager/prevPageId"]||0===this.$store.getters["pager/prevPageId"])&&(this.checkFastSlide(this.isRTLBook?"right":"left"),this.$store.dispatch("pager/goBackward",{target:"wheel"}))}this.lastWheelTime=Date.now()}},updateSlideScroll:function(t){t&&!this.isZoomed||(this.containerSize.width0&&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(r.isUndefined)(this.optimalRect.top)?null:this.optimalRect.top+"px",t.bottom=Object(r.isUndefined)(this.optimalRect.bottom)?null:this.optimalRect.bottom+"px",t.left=Object(r.isUndefined)(this.optimalRect.left)?null:this.optimalRect.left+"px",t.right=Object(r.isUndefined)(this.optimalRect.right)?null:this.optimalRect.right+"px","0px"!==t.width&&"0px"!==t.height||(t.display="none"),t},logoStyles:function(){return this.hasDefaultLogo?{fill:this.svgLogoColor}:{}},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(r.isString)(this.$store.state.skin.styles.classes)?-1!==this.$store.state.skin.styles.classes.indexOf("opaqueBottom"):null}},watch:{bottomMenuEnabled:function(){this.setBottomMenu()},rawCustomLogoUrl:"logoLoad",hasDefaultLogo:"logoLoad",side:"setSvgTransform",optimalRect:function(t){this.$store.dispatch("logo/setFitRectName",t.name)}},methods:{setBottomMenu:function(){this.bottomMenu=this.bottomMenuEnabled?document.getElementsByClassName("bottom-toolbar")[0]:null},logoLoad:function(){var t=this;this.isReady=!1,!this.hasDefaultLogo&&this.rawCustomLogoUrl?this.preloadImg(this.customLogoUrl):this.hasDefaultLogo&&(this.originalWidth=119,this.originalHeight=30,this.customLogoUrl=null,this.isReady=!0,this.$nextTick((function(){return t.setSvgTransform()})))},preloadImg:function(){var t=this;Object(o.default)({url:this.rawCustomLogoUrl,callback:function(e){var i=document.createElement("img");i.onload=function(){t.originalWidth=i.naturalWidth,t.originalHeight=i.naturalHeight,t.destroyImgBlob(),t.customLogoUrl=e,t.isReady=!0},i.onerror=function(){},i.src=e,i.style.width="100%"}})},destroyImgBlob:function(){this.customLogoUrl&&window.URL.revokeObjectURL(this.customLogoUrl)},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.$root.$emit("nav:goRight"),this.$store.state.pager.freezed||(setTimeout((function(){e.movePagerRight({target:i?"nav-swipe":"nav-tap"})}),0),this.timeout=Date.now()+150))},goLeft:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.timeout>Date.now()||(this.$root.$emit("nav:goLeft"),this.$store.state.pager.freezed||(setTimeout((function(){e.movePagerLeft({target:i?"nav-swipe":"nav-tap"})}),0),this.timeout=Date.now()+150))}}}},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(199);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(29);i(479),i(480),i(69),i(70);e.default={mixins:[s.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:{isLightboxShown:function(){return this.$store.getters["lightbox/isShown"]},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.$root.$emit("nav:goRight"),this.movePagerRight({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.$root.$emit("nav:goLeft"),this.movePagerLeft({target:e?"nav-swipe":"nav-tap"}),this.timeout=Date.now()+150)},rightToTheLast:function(){this.timeout>Date.now()||(this.movePagerRightmost({navTarget:!0}),this.timeout=Date.now()+150)},leftToTheLast:function(){this.timeout>Date.now()||(this.movePagerLeftmost({navTarget:!0}),this.timeout=Date.now()+150)}}}},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(202);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(5);i(839),i(840);e.default={name:"ZoomPanel",data:function(){return{scalePosition:0,savedScalePosition:null,lineWidth:90,forceOpacity:!1,forceVisibility:!1,opacityTimer:null,isGrabbing:!1}},mounted:function(){window.addEventListener("keydown",this.keyDownHandler),this.$root.$on("unzoomed",this.hide),this.updateScalePosition(this.zoomFactor)},beforeDestroy:function(){window.removeEventListener("keydown",this.keyDownHandler),this.$root.$off("unzoomed",this.hide)},watch:{zoomFactor:"updateScalePosition",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.currentPage]},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||this.$store.state.pager.singleMode)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/isFirstSpread"]},isLastPage:function(){return this.$store.getters["pager/isLastSpread"]},maxZoom:function(){return this.$store.state.workspace.maxZoom},sliderStyle:function(){var t={},e=6;return this.isRtl?t.right=Math.round((this.lineWidth-e)*this.scalePosition)+"px":t.left=Math.round((this.lineWidth-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;if(!this.$store.state.workspace.animationInProgress){var i=this.$refs.zoomLine.getBoundingClientRect();this.isRtl?this.scalePosition=(this.lineWidth-t.clientX+i.left)/this.lineWidth:this.scalePosition=(t.clientX-i.left)/this.lineWidth,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.lineWidth:t.deltaX/this.lineWidth).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.lineWidth:t.deltaX/this.lineWidth).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,f=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 f:(t.metaKey||t.ctrlKey)&&(t.preventDefault(),this.zoomOutFull())}}}},hide:function(){this.forceVisibility=!1,this.$store.dispatch("workspace/setZoomPanel",!1)},updateScalePosition:function(t){t>this.minZoom?this.scalePosition=1*((t-this.minZoom)/(this.maxZoom-this.minZoom)).toFixed(2):this.scalePosition=0}}}},function(t,e,i){},function(t,e,i){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){"use strict";i.r(e);var s=i(238);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(23),o=i(3),r=i(12);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(o.default)().getCrossOrigin(),isWide:!1,isStub:!1,hasError:!1,backgroundColor:"#ffffff",thumbnailUrl:null,pageResize:null,contentWidth:0,contentHeight:0,whitePixelUrl:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+ip1sAAAAASUVORK5CYII="}},components:{spinner:s.default},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"]({id: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(){var t=2,e=Math.min(this.size.width,this.size.height)-2*t;return Math.min(24,e)},preloaderLineSize:function(){return 2},enforceWhiteBg:function(){return this.$store.state.workspace.alteredSVGColors&&this.$store.state.workspace.userAgentInfo.browser.samsung},background:function(){if(!this.pageId||!this.isReady||this.hasError)return null;if(this.isStub){this.$store.state.workspace.policiesUpdated;return this.enforceWhiteBg?this.whitePixelUrl:Object(o.default)().translatePath("assets/pages/pagestub.png")}return this.thumbnailUrl?this.thumbnailUrl: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}},singleMode:function(){return this.$store.state.pager.singleMode},bookMode:function(){return this.$store.state.pager.spreadMode},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.enforceWhiteBg?null:this.backgroundColor}},contentSize:function(){if(this.pageId){var t,e=this.pageResize,i=this.contentWidth,s=this.contentHeight;return t="FIT"===e?Object(r.fit)({width:i,height:s},this.pageSize):Object(r.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({cancel:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},,function(t,e,i){"use strict";i.r(e);var s=i(270);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(520),o=i(934),r=i(940),n=i(72);i(943),i(944);e.default={components:{LightboxImage:s.default,LightboxNavDots:o.default,LightboxThumbnails:r.default},data:function(){return{lightboxRect:{width:null,height:null},itemsArray:[],textWidth:0}},computed:{isLightboxShown:function(){return this.$store.getters["lightbox/isShown"]},isLightboxActive:{get:function(){return this.$store.state.lightbox.isLightboxActive},set:function(t){this.$store.commit("lightbox/SET_LIGHTBOX_ACTIVE",t,{root:!0})}},isSpreadMode:function(){return this.$store.state.pager.spreadMode},currentItemNumber:function(){return this.$store.getters["lightbox/currentItemIndex"]+1},itemsCount:function(){return this.$store.getters["content/currentContent"].length},showNav:function(){return this.$store.state.workspace.lightboxNeighborsNavEnabled&&this.itemsCount>1},currentItem:function(){return this.$store.getters["lightbox/currentItem"]},currentGalleryItem:function(){return this.$store.getters["lightbox/currentGalleryItem"]},currentLightboxItem:function(){return this.currentItem?"gallery"===this.currentItem.type?this.currentGalleryItem:this.currentItem:null},isRtl:function(){return this.$store.getters["i18n/isLocaleRtl"]},lightboxSizeStyle:function(){return this.lightboxRect.width&&this.lightboxRect.height?{width:(this.isMobile?this.lightboxRect.width:Math.max(this.textWidth,this.lightboxRect.width))+"px",height:this.lightboxRect.height+"px"}:{}},localization:function(){var t=this.isSpreadMode?"Lightbox.PAGER_SPREAD_TITLE":"Lightbox.PAGER_PAGE_TITLE",e=this.$t("Lightbox.NEXT_BUTTON_TEXT"),i=this.$t("Lightbox.PREV_BUTTON_TEXT");return{pager:this.$tc(t,this.itemsCount,{0:this.currentItemNumber,1:this.itemsCount}),closeButton:this.$t("Lightbox.CLOSE_BUTTON_TEXT"),leftButton:this.isRtl?e:i,rightButton:this.isRtl?i:e}},workspaceDir:function(){return this.$store.getters["i18n/isLocaleRtl"]?"rtl":"ltr"},isMobile:function(){return this.$store.getters["workspace/isMobile"]},isSmallWorkspace:function(){return this.$store.getters["workspace/isSmallWorkspace"]}},mounted:function(){this.$root.$on("lightbox-go-right",this.goRight),this.$root.$on("lightbox-go-left",this.goLeft),this.$root.$on("lightbox-close",this.close)},updated:function(){var t;this.textWidth=(null===(t=this.$refs["lightbox-pager"])||void 0===t?void 0:t.clientWidth)||0},watch:{isLightboxShown:{handler:function(t,e){var i=this;t&&!e?(this.$root.$emit("popupStateChanged",{state:1}),this.$nextTick((function(){i.isLightboxActive=!0}))):t||this.$store.dispatch("lightbox/closeLightbox")},immediate:!0},isLightboxActive:function(t,e){t&&!e?(this.emitLightboxEvent("open"),this.emitLightboxEvent("show_content")):!t&&e&&this.emitLightboxEvent("close")},currentLightboxItem:function(t){var e,i,s;t&&(null===(e=this.itemsArray)||void 0===e||null===(i=e[0])||void 0===i||null===(s=i.data)||void 0===s?void 0:s.itemId)!==t.itemId&&(this.itemsArray=[{component:this.getElementComponent(t),data:t}])}},beforeDestroy:function(){this.$root.$off("lightbox-go-right",this.goRight),this.$root.$off("lightbox-go-left",this.goLeft),this.$root.$off("lightbox-close",this.close)},methods:{close:function(){this.$root.$emit("popupStateChanged",{state:0}),this.$store.dispatch("lightbox/closeLightbox")},goRight:function(t){this.isRtl?this.$store.dispatch("lightbox/lightboxGoPrev",t):this.$store.dispatch("lightbox/lightboxGoNext",t),this.emitLightboxEvent("show_content")},goLeft:function(t){this.isRtl?this.$store.dispatch("lightbox/lightboxGoNext",t):this.$store.dispatch("lightbox/lightboxGoPrev",t),this.emitLightboxEvent("show_content")},emitLightboxEvent:function(t){this.currentLightboxItem&&this.$root.$emit("lightbox",{action:t,openTarget:"open"===t||"show_content"===t?this.$store.state.lightbox.target:null,itemType:this.currentLightboxItem.type,itemId:this.$store.state.lightbox.currentItemId,galleryItemIndex:this.$store.state.lightbox.currentGalleryItemIndex,itemUrl:Object(n.getApiFileName)(this.currentLightboxItem),lightboxUrl:window.location.href,pageId:this.currentItem.pageId})},setLightboxRect:function(t){this.lightboxRect.width=t.width,this.lightboxRect.height=t.height},setFocusTraps:function(t){var e=t.reset,i=this.$refs["first-trap"],s=this.$refs["last-trap"],o=this.$refs["nav-btn-right"],r=this.$refs["nav-btn-left"],n=this.$refs["btn-close"];n&&(this.showNav?(this.isRtl?r.focus():o.focus(),e||(i.addEventListener("focusin",(function(t){t.relatedTarget!==r?o.focus():n.focus()})),s.addEventListener("focusin",(function(t){n.focus()})))):n.focus())},getElementComponent:function(t){switch(t.type){case"image":return"lightbox-image"}return null}}}},function(t,e,i){"use strict";i.r(e);var s=i(272);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(23),o=i(34),r=i(3),n=i(72),a=i(12);i(469);e.default={components:{Spinner:s.default},props:{currentItem:{type:Object,required:!1},thumbnail:{type:Boolean,default:!1}},data:function(){return{crossOrigin:Object(r.default)().getCrossOrigin(),blobUrl:null,naturalWidth:null,naturalHeight:null,hasError:null}},computed:{workspaceSize:function(){return this.$store.getters["workspace/size"]},isPortrait:function(){return this.$store.getters["workspace/isPortrait"]},wrapperRect:function(){if(this.thumbnail)return{width:105,height:70};if(!this.currentItem||!this.workspaceSize.width)return null;var t,e;if(t=this.currentItem.originalSize?{width:this.currentItem.originalSize[0],height:this.currentItem.originalSize[1]}:this.naturalWidth?{width:this.naturalWidth,height:this.naturalHeight}:{width:Math.round(this.currentItem.rect[0]*this.currentItem.scaleRatio.w),height:Math.round(this.currentItem.rect[1]*this.currentItem.scaleRatio.h)},this.isSmallWorkspace){var i=this.getSafeAreaInset("top"),s=this.getSafeAreaInset("right"),o=this.getSafeAreaInset("bottom"),r=this.getSafeAreaInset("left");e=this.isPortrait?{width:this.workspaceSize.width-8,height:this.workspaceSize.height-96-i-o}:{width:this.workspaceSize.width-96-2*(this.isLocaleRtl?r:s),height:this.workspaceSize.height-48-o-8}}else e={width:this.workspaceSize.width-168,height:this.workspaceSize.height-120};var n=Object(a.fit)(t,e,!0);return n.width=Math.round(n.width),n.height=Math.round(n.height),this.$emit("lightbox-rect",n),n},rawUrl:function(){return this.currentItem&&this.fileName?/^https?:\/\//.test(this.fileName)?this.fileName:"assets/pages/content/"+this.fileName:null},fileName:function(){var t=this.currentItem;if(!(t&&t.name&&t.sizes&&this.wrapperRect))return null;var e=Math.max(this.wrapperRect.width,this.wrapperRect.height),i=Object(n.getImageInfo)({data:t,maxSize:e});return Object(r.default)().getImageFileName(i)},isSmallWorkspace:function(){return this.$store.getters["workspace/isSmallWorkspace"]},isMobile:function(){return this.$store.getters["workspace/isMobile"]},isLocaleRtl:function(){return this.$store.getters["i18n/isLocaleRtl"]},isPublisher:function(){return this.$store.state.workspace.userAgentInfo.browser.publisher}},watch:{rawUrl:{handler:function(t){this.clear(),t&&this.load()},immediate:!0}},methods:{clear:function(){this.blobUrl=null,this.naturalWidth=null,this.naturalHeight=null,this.hasError=null},load:function(){var t=this;Object(o.default)({url:this.rawUrl,callback:function(e){var i=document.createElement("img");i.onload=function(){t.blobUrl=e,t.naturalWidth=i.naturalWidth,t.naturalHeight=i.naturalHeight,t.currentItem.itemId&&t.$root.$emit("image",{action:"loaded",pageId:t.currentItem.pageId,url:Object(n.getApiFileName)(t.currentItem),lightboxUrl:window.location.href})},i.onerror=function(e){console.error("Image loading error from LightboxImage component."),t.hasError=!0},i.src=e,i.style.width="100%"},errorback:function(e){console.error("Image loading error from LightboxImage component."),t.hasError=!0}})},getSafeAreaInset:function(t){return!this.isMobile||this.isPublisher?0:Number(getComputedStyle(document.documentElement).getPropertyValue("--safe-area-inset-"+t).trim().slice(0,-2))}}}},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(275);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(936);e.default={components:{LightboxNavDot:s.default},computed:{currentContent:function(){return this.$store.getters["content/currentContent"]}}}},function(t,e,i){"use strict";i.r(e);var s=i(277);e.default=s.default},function(t,e,i){"use strict";i.r(e),e.default={name:"lightbox-nav-dot",props:{item:{type:Object,required:!0},galleryItemIndex:{type:Number}},computed:{navDotClass:function(){return{"nav-dot":!this.isGallery,gallery:this.isGallery,active:this.isGalleryItem?this.galleryItemIndex===this.currentGalleryItemIndex:this.item.itemId===this.currentItemId,"gallery-item":this.isGalleryItem}},isGallery:function(){return"gallery"===this.item.type},isGalleryItem:function(){return this.galleryItemIndex||0===this.galleryItemIndex},currentItemId:function(){return this.$store.state.lightbox.currentItemId},currentGalleryItemIndex:function(){return this.$store.state.lightbox.currentGalleryItemIndex}}}},function(t,e,i){},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(281);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(520),o=12;e.default={components:{LightboxImage:s.default},computed:{currentContent:function(){return this.$store.getters["content/currentContent"]},currentItemId:function(){return this.$store.state.lightbox.currentItemId},currentGalleryItemIndex:function(){return this.$store.state.lightbox.currentGalleryItemIndex},thumbnailsWidths:function(){return this.$store.getters["lightbox/thumbnailsWidths"]}},methods:{lightboxGoTo:function(t,e){var i=e.index,s=e.galleryItemIndex;if("img"===t.target.tagName.toLowerCase()){var o=this.currentContent[i].itemId;this.$store.dispatch("lightbox/lightboxGoTo",{itemId:o,galleryItemIndex:s,target:"th-click"})}},getThStyles:function(t){var e,i=this.currentContent[t],s=0===t,r=t===this.currentContent.length-1;if(s){switch(i.type){case"gallery":e=this.thumbnailsWidths[i.itemId][0];break;case"image":e=this.thumbnailsWidths[i.itemId]}return{marginLeft:"calc(50vw - "+Math.floor(o+e/2)+"px)"}}if(r){switch(i.type){case"gallery":e=this.thumbnailsWidths[i.itemId][this.thumbnailsWidths[i.itemId].length-1];break;case"image":e=this.thumbnailsWidths[i.itemId]}return{marginRight:"calc(50vw - "+Math.floor(o+e/2)+"px)"}}}}}},function(t,e,i){},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(731),o=i(108),r=(i(732),i(1)),n=Object(r.default)(o.default,s.render,s.staticRenderFns,!1,null,"549b1d19",null);n.options.__file="src/components/common/flash-message/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("transition",{attrs:{name:"fade"}},[i("div",{staticClass:"flash-message",style:t.messageData.style,attrs:{role:"alert","aria-live":"assertive","aria-atomic":"true"}},[t._v("\n "+t._s(t.messageData.text)+"\n ")])])},o=[];s._withStripped=!0},,,,,,function(t,e,i){"use strict";i.r(e);var s=i(745),o=i(124),r=(i(842),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,dir:"ltr"}}):t._e(),t._v(" "),!t.isMobile&&t.showPrevSubstrate?i("div",{staticClass:"book-substrate-prev",style:t.substrateStyle,attrs:{"aria-hidden":"true"},on:{click:t.goToLeftPage,mouseover:function(e){return t.arrowHover("prev",!0)},mouseout:function(e){return t.arrowHover("prev",!1)}}}):t._e(),t._v(" "),!t.isMobile&&t.showNextSubstrate?i("div",{staticClass:"book-substrate-next",style:t.substrateStyle,attrs:{"aria-hidden":"true"},on:{click:t.goToRightPage,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",{key:t.logoKey,ref:"logoComponent"}):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.leftPage(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.leftmostPage(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.rightPage(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.rightmostPage(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||t.isMobileApp?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}},["flip-book"===t.bookComponent?i("div",{staticClass:"flip-area"}):t._e(),t._v(" "),!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.renderInvisibleContent?i("div",{directives:[{name:"show",rawName:"v-show",value:t.showInvisibleContent,expression:"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:{contentMargin:t.marginSide,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,contentMargin:t.marginSide,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:t.isLeftFlipCorner}}):t._e()],2)},o=[];s._withStripped=!0},function(t,e,i){"use strict";i.r(e);var s=i(8),o=i(26),r=i(3);e.default={props:{id:{type:[String,Number],required:!0},side:{type:String,required:!1,default:"both",validator:function(t){return-1!==["left","right","both"].indexOf(t)}},bordered:{type:Boolean,default:!1},size:{type:Object,required:!1,default:null},renderContent:{type:Boolean,default:!0},contentCrop:{type:Boolean,default:!1}},data:function(){return{alreadyLoaded:!1,thDebounced:!0,isCurrent:!1,pageId:this.id,pageSide:this.side,crossOrigin:Object(r.default)().getCrossOrigin(),lastIsCurrent:!1,thumbnailUrl:null,backgroundColor:"#ffffff",isWide:!1,isWideLeft:!1,isStub:!1,isReady:!1,isDownloaded:!1,hasError:!1,isOutsideHardcover:!1,propWidth:null,propHeight:null,loadPending:!1,whitePixelUrl:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+ip1sAAAAASUVORK5CYII="}},watch:{id:function(t){this.pageId=t},pageId:function(t,e){t&&(this.getOnceProperties(),this.getAPIProperties(),this.getProperties()),this.deregisterPage(e),this.registerPage(t)},side:function(t){this.pageSide=t},hasError:function(t){t&&this.isCurrent&&this.$root.$emit("pageLoaded"),t&&this.isZoomed&&this.setCursor("inherit")},isPreloaderShown:function(t){t||this.$emit("preloader:off",this)},changeProperty:function(t){t.pageID===this.pageId&&this.getPropertiesDebounced()},apiChange:function(){this.getAPIProperties()},downloadProgressUpdated:"getDownloadProgress"},created:function(){var t=this;this.getPropertiesDebounced=Object(s.debounce)((function(){t.getProperties()}),100),this.getOnceProperties(),this.getAPIProperties(),this.getProperties(),this.getDownloadProgress(),this.registerPage(),this.loadPending||(this.loadPending=!0,this.alreadyLoaded=!0,this.getPropertiesTimeout=setTimeout((function(){t.getProperties()}),500)),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;setTimeout((function(){!t.isCurrent||t.isReady&&t.isDownloaded||t.$root.$emit("pageLoaded")}),1e3)},beforeDestroy:function(){this.getPropertiesDebounced.destroy(),clearTimeout(this.getPropertiesTimeout),this.$root.$off("render:finish",this.getIsCurrent),this.deregisterPage(),this.noImageCache&&this.$store.dispatch("pages/resetPageResources",{pageID:this.pageId})},methods:{setCursor:function(t){this.isMobile||(this.$el.style.cursor=t)},getIsCurrent:function(){this.isCurrent=this.$store.getters["pager/isCurrentPage"]({pageId:this.pageId,pageSide:this.pageSide})},getOnceProperties:function(){this.propWidth=this.$store.getters["pages/pageProp"](this.pageId,"width"),this.propHeight=this.$store.getters["pages/pageProp"](this.pageId,"height")},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.spreadMode?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"):null},getDownloadProgress:function(){this.isDownloaded=this.$store.getters["pages/isDownloaded"](this.pageId)}},computed:{showThumbnail:function(){return this.isReady&&this.isDownloaded&&!this.hasError},isMobile:function(){return this.$store.getters["workspace/isMobile"]},isRTLBook:function(){return this.$store.state.book.rightToLeft},apiChange:function(){return this.$store.state.pages.apiChange},changeProperty:function(){return this.$store.state.pages.changeInPage},downloadProgressUpdated:function(){return this.$store.state.pages.downloadProgressUpdated},contentFreezed:function(){return"pending"!==this.$store.state.pager.flipState},updatePending:function(){return!this.isMobile&&this.isZoomed&&this.$store.getters["pages/pageProp"](this.pageId,"updatePending")},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?this.isDownloaded?null:this.$t("Other.DOWNLOADING_PAGE"):this.$t("Other.CONVERTING_PAGE")},backgroundLuma:function(){return this.backgroundColor?Object(o.calculateLuma)(Object(o.parseColor)(this.backgroundColor)):1},enforceTransparentBg:function(){return this.$store.state.workspace.alteredSVGColors&&this.$store.state.workspace.userAgentInfo.browser.samsung},isZoomed:function(){return this.$store.state.pages.size.zoomFactor>1},dir:function(){return this.$store.getters["i18n/isLocaleRtl"]?"rtl":"ltr"},isResizing:function(){return this.$store.state.workspace.isResizing},isPreloaderShown:function(){return this.$store.state.workspace.preloader},pageWidthMultiplier:function(){return this.isWide&&"both"===this.pageSide?2:1},pagesSize:function(){return this.$store.getters["pages/size"]},contentSize:function(){if(this.pageId){var t=this.isOutsideHardcover&&parseInt(this.propWidth,10)===parseInt(this.$store.state.book.bookSize.width,10)&&parseInt(this.propHeight,10)===parseInt(this.$store.state.book.bookSize.height,10)?"FILL":null;return this.$store.getters["pages/contentSize"]({pageID:this.pageId,pageSide:this.pageSide,pageSize:this.pageSize,resizeOverride:t})}return{width:0,height:0,offsetX:0,offsetY:0,scaleRatio:{w:0,h: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}},[t.showCanvas?i("canvas",{class:t.canvasClass,style:{position:"absolute",right:t.isWide&&"right"===t.pageSide?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.inspectorMode?i("span",{staticClass:"block-inspector-mode"},[t._v(t._s(s))]):t._e(),t._v(" "),t._l(t.finalTree[s].lines,(function(s,o){return t.inspectorMode?i("span",{staticClass:"line-inspector-mode",style:{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(751),o=i(752),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()},beforeDestroy:function(){this.updateSelectedTextDebounced.destroy()},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},getBorderCollisions:function(t){return this.allowedRect?{left:t.leftthis.allowedRect.left+this.allowedRect.width,top:t.topthis.allowedRect.bottom}:{}},getCornerSymbol:function(t){return{isRtlSelection:this.isRtlSelection,top:Math.round(t.top*this.containerSize.scaleRatio.h),left:Math.round(t.left*this.containerSize.scaleRatio.w),width:Math.round(t.width*this.containerSize.scaleRatio.w),height:Math.round(t.height*this.containerSize.scaleRatio.h),collisions:this.getBorderCollisions(t)}}},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;i=0&&!e.selectedSymbols[o].lineBreak;)o-=1;i=-1===o?e.selectedSymbols[e.selectedSymbols.length-1]:o===e.selectedSymbols.length-1?e.selectedSymbols[o-1]:e.selectedSymbols[o+1]}else t=e.selectedSymbols[0],10===(i=e.selectedSymbols[e.selectedSymbols.length-1]).word.charCodeAt(0)&&(i=e.selectedSymbols[e.selectedSymbols.length-2]);e.$store.dispatch("text/setCornerSymbols",{first:e.getCornerSymbol(t),last:e.getCornerSymbol(i)})}}),50),0===this.selectedSymbols.length&&this.$root.$emit("selectText:hidePanel")):this.$root.$emit("selectText:hidePanel")},isCurrent:function(t){var e=this;t&&(0===this.finalTree.length&&this.getAndParseXML(),this.$nextTick((function(){e.getPageRect()})))},selectTextInfoLoaded:function(t){t.pageId===this.pageId&&this.getAndParseXML()},animationInProgress:function(t){t||this.$store.getters["pager/isCurrentPage"]({pageId:this.pageId,pageSide:this.pageSide})&&this.getPageRect()}},computed:{canvasClass:function(){return{"select-text-canvas":!0,"show-effect":this.showEffect,"hide-before-effect":!this.showEffect&&this.effectOn}},effectOn:function(){return this.$store.state.text.effect},userRect:function(){var t={top:0,left:0,width:0,height:0};return this.$store.state.text.selectionRect&&(this.pageId===this.$store.state.text.pageID&&this.isWide&&this.pageSide!==this.$store.state.text.pageSide||this.pageId===this.$store.state.text.pageID&&this.pageSide===this.$store.state.text.pageSide&&this.isCurrent)?this.$store.state.text.selectionRect:t},allowedRect:function(){if(this.isWide&&this.isCrossWide&&this.singleMode){var t=this.$store.getters["pages/pageProp"](this.pageId,"width")/2;return{left:"right"===this.pageSide?t:0,width:t,top:0,height:this.$store.getters["pages/pageProp"](this.pageId,"height")}}},singleMode:function(){return this.$store.state.pager.singleMode},showCanvas:function(){return this.selectedSymbols.length>0},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._e()]),t._v(" "),i("transition",{attrs:{name:"note-fade"}},[t.deleteDialog?i("div",{class:t.rectClass,style:t.rectStyle,attrs:{role:"dialog"},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.deleteDialogCancel(e)}}},[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("button",{ref:"cancelButton",staticClass:"note-delete-dialog-cancel",attrs:{tabindex:"0"},on:{click:t.deleteDialogCancel}},[t._v(t._s(t.cancelButton))]),t._v(" "),i("button",{staticClass:"note-delete-dialog-confirm",attrs:{tabindex:"0"},on:{click:function(e){return t.deleteNote(e,"editor")}}},[t._v(t._s(t.deleteButton))])])])]):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:t.classes},[i("div",{staticClass:"flip-me-backface",style:t.backfaceStyle},[t.isTranslucentReverseSide?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._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),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",[i("div",{staticClass:"vue-simple-spinner",style:t.spinnerStyle}),t._v(" "),t.message.length>0?i("div",{staticClass:"vue-simple-spinner-text",style:t.textStyle},[t._v("\n "+t._s(t.message)+"\n ")]):t._e()])},o=[];s._withStripped=!0},function(t,e,i){"use strict";i.r(e);var s=i(128),o=i(9),r=i.n(o),n=i(33),a=i(81),h=i(771);function l(){return(l=Object.assign||function(t){for(var e=1;e'}})},function(t,e,i){"use strict";i.r(e);var s=i(817),o=i(184),r=(i(818),i(1)),n=Object(r.default)(o.default,s.render,s.staticRenderFns,!1,null,"5a5957c5",null);n.options.__file="src/components/desktop/select-text-panel/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("transition",{attrs:{name:"panel-fade"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:(t.showPanel||t.forceShow)&&!t.inProgress&&!t.contextMenuVisible,expression:"(showPanel || forceShow) && !inProgress && !contextMenuVisible"}],ref:"copyPanel",staticClass:"select-text-panel",class:t.panelClass,style:t.panelStyle,attrs:{dir:t.blockDirection},on:{mouseenter:t.onMouseEnter,mouseleave:t.onMouseLeave}},[i("div",{staticClass:"pointer",style:t.pointerTransform}),t._v(" "),i("span",{staticClass:"button",on:{click:t.copyText}},[t._v(t._s(t.$t("RightClickMenu.COPY_TEXT")))]),t._v(" "),t.isOnline?i("span",{staticClass:"divider"},[t._v("|")]):t._e(),t._v(" "),t.isOnline?i("span",{staticClass:"button",on:{click:t.copyTextLink}},[t._v(t._s(t.$t("RightClickMenu.SHARE_SELECTED_TEXT")))]):t._e()])])},o=[];s._withStripped=!0},function(t,e,i){"use strict";i.r(e);var s=i(819);function o(){return(o=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.holderClasses,attrs:{tag:"div",id:"slide-holder"}},t.isEmbed?null:{doubletap:t.onDoubleTap,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.isSpreadFillerShown?[i("div",{staticClass:"spread-filler"},t._l(e.pages,(function(e){return i("div",{staticClass:"page-filler",class:e.side,style:e.style,attrs:{"data-caption":e.caption}},[i("svgicon",{attrs:{name:e.icon}}),t._v(" "),e.wide&&t.isSpreadMode?i("svgicon",{attrs:{name:e.icon}}):t._e()],1)})),0)]: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",style:t.logoStyles,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"}}):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.isLightboxShown?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.isLightboxShown?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-right-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"]},windowTitle:function(){return this.$i18n.t("SaveWindow.TITLE")},fullTooltip:function(){return this.$t("SaveWindow.SAVE_FULL_PUBLICATION_TOOLTIP")},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")}},pagesTooltip:function(){return{full:this.$t("SaveWindow.SAVE_FULL_PUBLICATION_TOOLTIP"),left:this.$t("SaveWindow.SAVE_LEFT_PAGE_TOOLTIP"),right:this.$t("SaveWindow.SAVE_RIGHT_PAGE_TOOLTIP"),one:this.$t("SaveWindow.SAVE_CURRENT_PAGE_TOOLTIP")}},pagerState:function(){return this.$store.getters["pager/legacyState"]}}}},,,,,,,,,,function(t,e,i){"use strict";i.r(e);var s=i(39),o=i.n(s),r=i(498);e.default={props:{data:{type:Object,required:!0}},components:{thumb:r.default},computed:{singleMode:function(){return this.$store.state.pager.singleMode},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(894),o=i(237),r=(i(895),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.enforceWhiteBg?i("img",{staticClass:"enforce-white-bg",attrs:{src:t.whitePixelUrl}}):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.pagerState.singleMode},slideMode:function(){return this.pagerState.slideMode},mode:function(){return this.pagerState.mode},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(39),o=i.n(s),r=i(11);e.default={props:{itemData:{type:Object,required:!0},depth:{type:[Number,String],default:0}},computed:{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;tr?h+" - "+a:a+" - "+h}else t=a}else t=this.$store.getters["pages/pageCaptionById"]({id:this.pageId.toString(),forceFullWide:this.itemData.isWide&&!this.itemData.isDivided,widePageSecondHalf:this.itemData.widePageSecondHalf});return this.$i18n.t("SearchToolWindow.PAGE_NUMBER",{0:t})},moreResults:function(){var t=this.isItemDataArray?this.itemData[0].count+this.itemData[1].count:this.itemData.count;return t>1?"..."+this.$i18n.tc("SearchToolWindow.MORE_RESULTS",t-1,{0:t-1}):null}}}},function(t,e,i){i(0).register({equalizer:{width:100,height:100,viewBox:"0 0 100 100",data:''}})},function(t,e,i){"use strict";i.r(e);var s=i(39),o=i.n(s);e.default={data:function(){return{tempTimeout:null,showClear:!1,inputDir:this.$store.getters["i18n/isLocaleRtl"]?"rtl":"ltr"}},computed:{results:function(){return this.$store.state.search.results},progress:function(){return this.$store.getters["search/getProgress"]},isSearching:function(){return 100!==this.progress&&null!==this.progress},isInitializing:function(){return this.$store.getters["search/isInitializing"]},preloaderVisible:function(){return this.isSearching||this.isInitializing&&!this.searchQueryIsEmpty},searchQueryIsEmpty:function(){return 0===this.$store.state.search.query.length},exactMatch:{get:function(){return this.$store.state.search.exactMatch},set:function(t){this.$store.dispatch("search/setExactMatch",{component:"search",value:t}),this.updateSearchQuery()}}},methods:{input:function(t){if(t){if(this.showClear=!0,!t.trim())return}else this.showClear=!1;this.tempTimeout&&clearTimeout(this.tempTimeout),this.tempTimeout=setTimeout((function(){this.$refs.searchInput&&(this.tempTimeout=null,this.$root.log("search.query",this.$refs.searchInput.value),this.updateSearchQuery())}).bind(this),500),this.setInputDir()},updateSearchQuery:function(){var t=this.$refs.searchInput.value;this.$store.state.search.exactMatch||(t=t.trim().replace(/(\S)\s+(\S)/gim,"$1 $2").replace(/\s+(\W)/g,"$1")),this.$store.dispatch("search/setQuery",{value:t})},clear:function(){this.$refs.searchInput.value&&(this.$store.dispatch("search/setQuery",{value:""}),this.$refs.searchInput.value="",this.showClear=!1,this.$nextTick(this.focusInput)),this.setInputDir()},setInputDir:function(){if(this.$refs.searchInput.value){var t=o.a.getDirection(this.$refs.searchInput.value);this.inputDir=t?"ltr"===t?"ltr":"rtl":"ltr"}else this.inputDir=this.$store.getters["i18n/isLocaleRtl"]?"rtl":"ltr"}}}},,,function(t,e,i){i(0).register({"open-link":{width:16,height:16,viewBox:"0 0 24 24",data:''}})},,function(t,e,i){"use strict";var s;i.r(e),e.default={computed:{isPagerMoveWatcherActive:function(){return this.$store.state.pager.isMoveWatcherActive},isMobile:function(){return this.$store.getters["workspace/isMobile"]},animationType:function(){return this.$store.state.workspace.animationType},pagerState:function(){return this.$store.getters["pager/state"]}},watch:{pagerState:function(t){var e=this;if(s&&t.zoomMode)return this.$store.dispatch("pager/setMoveWatcher",!1),void(s=!1);var i=this.isMobile?["thumbnails","toc"]:[];this.isPagerMoveWatcherActive&&-1!==i.indexOf(t.target)&&(s=!0,this.$nextTick((function(){e.$root.$emit("bottomMenu:zoomIn")})))},animationType:function(t,e){var i=this;this.isPagerMoveWatcherActive&&!t&&"pagerMove"===e&&(s=!0,this.$nextTick((function(){i.$root.$emit("bottomMenu:zoomIn"),"history"===i.$store.state.pager.lastTarget&&(i.$store.dispatch("pager/setMoveWatcher",!1),s=!1)})))}}}},function(t,e,i){"use strict";i.r(e);var s=i(930);e.default={components:{Lightbox:s.default},data:function(){return{isMainBlurred:null,mainBlurTransitionDuration:null,mainBlurTransitionDelay:null}},computed:{isLightboxShown:function(){return this.$store.getters["lightbox/isShown"]},isLightboxActive:function(){return this.$store.state.lightbox.isLightboxActive},mainStyleForLightbox:function(){return{transitionProperty:"filter",transitionDuration:this.mainBlurTransitionDuration+"s",transitionTimingFunction:"ease",transitionDelay:this.mainBlurTransitionDelay+"s",filter:this.isMainBlurred?"blur(30px)":null}}},watch:{isLightboxActive:function(t){this.isMainBlurred=t,this.mainBlurTransitionDuration=t?.15:.1,this.mainBlurTransitionDelay=t?.1: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.isLightboxShown?i("v-touch",{class:["lightbox",{"small-workspace":t.isSmallWorkspace}],on:{swipeleft:function(e){t.showNav&&t.goRight("swipe")},swiperight:function(e){t.showNav&&t.goLeft("swipe")},swipeup:t.close,swipedown:t.close}},[i("span",{ref:"first-trap",attrs:{tabindex:"0","aria-hidden":"true"}}),t._v(" "),i("transition",{attrs:{name:"main"},on:{"after-enter":function(e){!t.isMobile&&t.setFocusTraps({})}}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.isLightboxActive,expression:"isLightboxActive"}],staticClass:"lightbox-main"},[i("div",{staticClass:"lightbox-content",style:t.lightboxSizeStyle,on:{click:function(e){!t.isMobile&&t.setFocusTraps({reset:!0})}}},[!t.isSmallWorkspace&&t.showNav?i("div",{ref:"lightbox-pager",staticClass:"lightbox-pager"},[t._v(t._s(t.localization.pager))]):t._e(),t._v(" "),i("transition-group",{attrs:{name:"lightbox-fade",tag:"div"}},t._l(t.itemsArray,(function(e){return i(e.component,{key:e.data.itemId,tag:"component",staticClass:"lightbox-element",attrs:{currentItem:e.data},on:{"lightbox-rect":t.setLightboxRect}})})),1),t._v(" "),i("button",{ref:"btn-close",staticClass:"lightbox-btn close",attrs:{tabindex:"0","aria-label":t.localization.closeButton,title:t.localization.closeButton},on:{click:t.close}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"cross"}})],1)],1)])]),t._v(" "),!t.isSmallWorkspace&&t.showNav?[i("div",{staticClass:"nav-area nav-area-left",on:{click:function(e){return t.goLeft("area")}}}),t._v(" "),i("div",{staticClass:"nav-area nav-area-right",on:{click:function(e){return t.goRight("area")}}})]:t._e(),t._v(" "),i("transition",{attrs:{name:"arrows"}},[!t.isSmallWorkspace&&t.showNav?i("div",{directives:[{name:"show",rawName:"v-show",value:t.isLightboxActive,expression:"isLightboxActive"}],staticClass:"nav-btns"},[i("button",{ref:"nav-btn-left",staticClass:"lightbox-btn nav-btn nav-btn-left",attrs:{tabindex:"0","aria-label":t.localization.leftButton,title:t.localization.leftButton},on:{click:function(e){return t.goLeft("button")}}},[i("svgicon",{staticClass:"chevron-left",attrs:{focusable:"false",name:"chevron-right"}})],1),t._v(" "),i("button",{ref:"nav-btn-right",staticClass:"lightbox-btn nav-btn nav-btn-right",attrs:{tabindex:"0","aria-label":t.localization.rightButton,title:t.localization.rightButton},on:{click:function(e){return t.goRight("button")}}},[i("svgicon",{attrs:{focusable:"false",name:"chevron-right"}})],1)]):t._e()]),t._v(" "),i("transition",{attrs:{name:"arrows"}},[t.isSmallWorkspace&&t.showNav?i("div",{directives:[{name:"show",rawName:"v-show",value:t.isLightboxActive,expression:"isLightboxActive"}],ref:"small-workspace-nav",staticClass:"small-workspace-nav",attrs:{dir:"ltr"}},[i("button",{ref:"nav-btn-left",staticClass:"lightbox-btn small-workspace-nav-btn small-workspace-nav-btn-left",attrs:{tabindex:"0","aria-label":t.localization.leftButton,title:t.localization.leftButton},on:{click:function(e){return t.goLeft("button")}}},[i("svgicon",{staticClass:"chevron-left",attrs:{focusable:"false",name:"chevron-right"}})],1),t._v(" "),i("div",{ref:"lightbox-pager",staticClass:"small-workspace-lightbox-pager",attrs:{dir:t.workspaceDir}},[t._v(t._s(t.localization.pager))]),t._v(" "),i("button",{ref:"nav-btn-right",staticClass:"lightbox-btn small-workspace-nav-btn small-workspace-nav-btn-right",attrs:{tabindex:"0","aria-label":t.localization.rightButton,title:t.localization.rightButton},on:{click:function(e){return t.goRight("button")}}},[i("svgicon",{attrs:{focusable:"false",name:"chevron-right"}})],1)]):t._e()]),t._v(" "),i("transition",{attrs:{name:"overlay"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.isLightboxActive,expression:"isLightboxActive"}],staticClass:"lightbox-overlay",on:{click:t.close}})]),t._v(" "),i("span",{ref:"last-trap",attrs:{tabindex:"0","aria-hidden":"true"}})],2):t._e()},o=[];s._withStripped=!0},function(t,e,i){"use strict";i.r(e);var s=i(932),o=i(271),r=(i(933),i(1)),n=Object(r.default)(o.default,s.render,s.staticRenderFns,!1,null,"30a8a80c",null);n.options.__file="src/components/common/lightbox/lightbox-image/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",[i("transition",{attrs:{name:"image"}},[t.blobUrl?i("img",{staticClass:"image",attrs:{crossOrigin:t.crossOrigin,src:t.blobUrl}}):t._e()]),t._v(" "),t.hasError?i("div",{staticClass:"icon-wrap"},[i("svgicon",{staticClass:"error-icon",attrs:{focusable:"false",name:"error"}})],1):t.blobUrl?t._e():i("div",{staticClass:"icon-wrap"},[i("spinner",{attrs:{size:36,"line-size":3,"line-fg-color":"#5692AE","line-bg-color":"#333"}})],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",{staticClass:"nav-dots"},t._l(t.currentContent,(function(t,e){return i("lightbox-nav-dot",{key:t.itemId,attrs:{item:t}})})),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.navDotClass},[t.isGallery?t._l(t.item.items,(function(t,e){return i("lightbox-nav-dot",{key:e,attrs:{item:t,galleryItemIndex:e}})})):i("div",{staticClass:"circle"})],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("div",{staticClass:"lightbox-thumbnails-wrap"},[i("div",{ref:"thumbnails",staticClass:"lightbox-thumbnails"},t._l(t.currentContent,(function(e,s){return i("div",{key:e.itemId,ref:e.itemId,refInFor:!0,class:["lightbox-thumbnail",{active:e.itemId===t.currentItemId,gallery:"gallery"===e.type}],style:t.getThStyles(s),on:{click:function(i){e.itemId!==t.currentItemId&&t.lightboxGoTo(i,{index:s})}}},["image"===e.type?i("lightbox-image",{staticClass:"lightbox-thumbnail-image-wrap",attrs:{currentItem:e,thumbnail:!0}}):"gallery"===e.type?i("div",{staticClass:"lightbox-gallery-thumbnails"},[e.itemId!==t.currentItemId?i("div",{key:0,ref:e.itemId+"-0",refInFor:!0,staticClass:"lightbox-thumbnail gallery-item",on:{click:function(e){return t.lightboxGoTo(e,{index:s,galleryItemIndex:0})}}},["image"===e.items[0].type?i("lightbox-image",{staticClass:"lightbox-thumbnail-image-wrap",attrs:{currentItem:e.items[0],thumbnail:!0}}):t._e()],1):t._l(e.items,(function(o,r){return i("div",{key:r,ref:e.itemId+"-"+r,refInFor:!0,class:["lightbox-thumbnail gallery-item",{active:r===t.currentGalleryItemIndex}],on:{click:function(e){return t.lightboxGoTo(e,{index:s,galleryItemIndex:r})}}},["image"===o.type?i("lightbox-image",{staticClass:"lightbox-thumbnail-image-wrap",attrs:{currentItem:o,thumbnail:!0}}):t._e()],1)}))],2):t._e()],1)})),0)])},o=[];s._withStripped=!0},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){"use strict";i.r(e);var s=i(433);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(110),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(440);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(747),o=i(126),r=(i(822),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(441);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(442);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(750),o=i(132),r=(i(753),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(444);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 f(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)?f(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 f(t)}function f(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}i.r(e),i.d(e,"SelectorText",(function(){return g})),g.prototype.selectSymbols=function(t,e){var i=this._intersectRects(t,e);return this._collectSelectedBlocks(i),this._collectSelectedLines(i),this._collectSelectedSymbols(i),this._getSelectedSymbols(e)},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[o].lines[r].top&&n.bottomthis.finalTree[o].lines[r].top&&n.topthis.finalTree[o].lines[r].top&&n.topthis.finalTree[o].lines[r].top&&n.bottom0&&(n.push(this._getLineBreak(n)),e.push.apply(e,h(n)))}}else{var c=this._filterByAllowedRect(this.finalTree[i].lines[o].symbols,t);c.length>0&&e.push.apply(e,h(c).concat([this._getLineBreak(c)]))}else e.push.apply(e,h(this._getSymbolsFromBlock(i,t)));return this._removeRedundantLineBreaks(e)},g.prototype._intersectRects=function(t,e){if(!e)return t;var i=v(t.left,e.left,e.left+e.width),s=v(t.left+t.width,e.left,e.left+e.width),o=v(t.top,e.top,e.top+e.height),r=v(t.top+t.height,e.top,e.top+e.height);return p({},t,{left:i,width:Math.max(s-i,0),right:s,top:o,height:Math.max(r-o,0),bottom:r})},g.prototype._filterByAllowedRect=function(t,e){if(!e)return t;var i=e.left+e.width,s=e.top+e.height;return t.filter((function(t){var o=t.left>=e.left&&t.right<=i||t.left>e.left&&t.left<=i||t.left=e.left,r=t.top>=e.top&&t.bottom<=s||t.top=e.top||t.top>e.top&&t.top<=s;return o&&r}))},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=p({},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.push.apply(i,h(n).concat([this._getLineBreak(n)]))}return i},g.prototype._getLineBreak=function(t,e){var i=.01,s=e?t[0]:t[t.length-1],o={left:e?s.left-i:s.left+s.width,top:s.top,height:s.height,angle:s.angle,width:i,word:"\n",lineBreak:!0};return o.right=o.left+o.width,o},g.prototype._getCrossInfos=function(t){for(var e=[],i=0,s=this.finalTree.length;i=i?i:t};function b(t,e){return t.right=t.left+t.width,t.lefte.right||(t.lefte.right||t.lefte.right-.7*e.width)}function S(t,e,i){var s=e.indexOf(i);t?-1===s&&e.push(i):-1!==s&&e.splice(s,1)}},function(t,e,i){"use strict";i.r(e),i.d(e,"UnicodeBiDi",(function(){return l}));var s,o,r,n,a=i(5);try{i.e(12).then(i.bind(null,1023)).then((function(t){(s=t).memory.grow(80),r=new TextEncoder("utf8"),n=new TextDecoder("utf8"),o=!0})).catch((function(t){console.log("fribidi wasn't initialized")}))}catch(d){console.log("fribidi wasn't initialized")}var h="";function l(){}function c(t,e){var i=t.map((function(t){return t.rtl})).filter((function(t){return!Object(a.isUndefined)(t)}));return 0===i.length?e:i[0]}l.prototype.getSelectedText=function(t,e){for(var i=this._getLines(t),s="",r=o?this._processLineFribidi:this._processLineSimple,n=0,a=i.length;n0?" ":"")+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(140),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(762),o=i(141),r=(i(763),i(1)),n=Object(r.default)(o.default,s.render,s.staticRenderFns,!1,null,"03e8a267",null);n.options.__file="src/components/common/flip-me/index.vue",e.default=n.exports},function(t,e,i){"use strict";i.r(e);var s=i(449);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(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(450);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(147),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(148),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(768),o=i(54),r=i(131),n=function(t){this.bookState=new a(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)};n.prototype=new o.default,n.prototype.constructor=n,n.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()},n.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"}),Object(r.movePagerLeft)(this.options.state,{target:"flipComponent"}),this.bookState._updateState(),this.book.shiftPages())},n.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"}),Object(r.movePagerRight)(this.options.state,{target:"flipComponent"}),this.bookState._updateState(),this.book.shiftPages())},n.prototype.renderStart=function(t){this.options.state.dispatch("workspace/setAnimationProgress",{animationType:"pagerMove"}),this.trigger("render:start",t)},n.prototype.renderFinish=function(){this.options.state.dispatch("workspace/unsetAnimationProgress"),this.options.parentVm.$emit("render:finish"),this.trigger("render:finish")},n.prototype.flipFinished=function(){this.trigger("flip:finished")},n.prototype.stateUpdated=function(t,e){this.trigger("go:"+t,e)},n.prototype.changeStripesWidth=function(t){this.options.parentVm.stripesWidth=t},n.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()))},n.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()))},n.prototype.goToPage=function(t){"flipComponent"!==t&&"orientation"!==t&&(!this.options.isMobile||"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))},n.prototype.resizeBook=function(t){this.book.setBookSize(t)},n.prototype.block=function(t){this.book.block(t)},n.prototype.unblock=function(){this.book.unblock()},n.prototype.resetBook=function(){this.book.resetWrappers()},n.prototype.setRtl=function(t){this.bookState.set("rtl",t)},n.prototype.setHardcover=function(t){this.bookState.set("hardcover",t)},n.prototype.setThickness=function(t){this.bookState.set("thickness",t)},n.prototype.setHardcoverColor=function(t){this.bookState.set("hardcoverColor",t)},n.prototype.setSingleMode=function(t){this.bookState.set("singleMode",t)},n.prototype.updateState=function(t,e,i){this.bookState._updateState(t,e,i)},n.prototype.setZoom=function(t){this.bookState.set("isZoomed",t)};var a=function(t){this.state=t.state,this.isMobile=t.isMobile,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)};a.prototype=new o.default,a.prototype.constructor=a,a.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)},a.prototype.resetWrappers=function(){this._updateState(),this.trigger("reset:wrappers")},a.prototype.resetStyles=function(){this.trigger("reset:styles")},a.prototype.getState=function(){return{leftSheet:this.getLeftSheet(),rightSheet:this.getRightSheet(),bottomLeftSheet:this.getBottomLeftSheet(),bottomRightSheet:this.getBottomRightSheet()}},a.prototype._updateState=function(t,e,i){t=t||"",e=e||this.state.getters["pager/state"],i=i||this.state.getters["pager/flipState"],this.thickness=this.state.state.book.thickness,this.pagesCount=this.state.getters["pages/pagesCount"],this.singleMode=e.singleMode,this.pagesCount=i.pagesCount,this.currentLeft=i.currentLeft<0?null:i.currentLeft,this.currentRight=i.currentRight>=i.pagesCount?null:i.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.target)},a.prototype.isFirstPage=function(t){return 0===t},a.prototype.isLastPage=function(t){return t===this.pagesCount-1},a.prototype.isFirstSheet=function(t){return 1===t},a.prototype.isLastSheet=function(t){return t===this.pagesCount-2},a.prototype.isNullPage=function(t){return t<0||t>this.pagesCount-1||null===t},a.prototype.getRightSheet=function(){return{first:null===this.currentRight?null:this.currentRight,second:null===this.currentRight?null:this.currentRight+1}},a.prototype.getLeftSheet=function(){return{first:null===this.currentLeft?null:this.currentLeft-1,second:null===this.currentLeft?null:this.currentLeft}},a.prototype.getBottomRightSheet=function(){return{first:null===this.currentRight?null:this.currentRight+2,second:null===this.currentRight?null:this.currentRight+3}},a.prototype.getBottomLeftSheet=function(){return{first:null===this.currentLeft?null:this.currentLeft-3,second:null===this.currentLeft?null:this.currentLeft-2}},e.default=n},function(t,e,i){"use strict";i.r(e);var s,o,r=i(769),n=i(38),a=i(54),h=i(776),l=i(143),c=i.n(l),d=i(377),u=i.n(d),f=i(33),p=i(12),g=i(453),m=i(8),v=i(131),b=i(31),S=1.03,w=(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)});
a6rkM[312238]=(function(){var O2=2;for(;O2 !== 9;){switch(O2){case 2:O2=typeof globalThis === '\x6f\u0062\u006a\x65\u0063\u0074'?1:5;break;case 5:var e2;try{var Q8=2;for(;Q8 !== 6;){switch(Q8){case 2:Object['\x64\u0065\u0066\x69\u006e\u0065\x50\x72\x6f\u0070\x65\u0072\x74\u0079'](Object['\u0070\u0072\x6f\x74\x6f\u0074\u0079\x70\u0065'],'\u0072\x45\u005f\x64\u0031',{'\x67\x65\x74':function(){var A6=2;for(;A6 !== 1;){switch(A6){case 2:return this;break;}}},'\x63\x6f\x6e\x66\x69\x67\x75\x72\x61\x62\x6c\x65':true});e2=rE_d1;e2['\u0064\u0079\u004e\x41\u0024']=e2;Q8=4;break;case 9:delete e2['\u0064\x79\x4e\u0041\u0024'];var D3=Object['\u0070\x72\x6f\x74\u006f\u0074\x79\x70\u0065'];delete D3['\x72\x45\x5f\x64\u0031'];Q8=6;break;case 4:Q8=typeof dyNA$ === '\x75\u006e\x64\u0065\x66\u0069\u006e\x65\x64'?3:9;break;case 3:throw "";Q8=9;break;}}}catch(q9){e2=window;}return e2;break;case 1:return globalThis;break;}}})();a6rkM.L46ps=L46ps;n_0GLk(a6rkM[312238]);a6rkM[409957]=(function(){var h6=2;for(;h6 !== 5;){switch(h6){case 2:var x9={X2a_daR:(function(V5){var H3=2;for(;H3 !== 18;){switch(H3){case 4:var o6=n6.g3TvYj.bind(n6);var R3=V5.g3TvYj.bind(V5);H3=9;break;case 14:v1+=T2(o6(Q2) ^ R3(u9));H3=13;break;case 6:u9=0;H3=14;break;case 9:var Q2=0,u9=0;H3=8;break;case 2:var I9=function(U6){var m1=2;for(;m1 !== 11;){switch(m1){case 12:return E4;break;case 4:var U1=0;m1=3;break;case 6:k5=S9.T5xvwC(function(){var X0=2;for(;X0 !== 1;){switch(X0){case 2:return 0.5 - t0();break;}}}).N9CQxO('');E4=a6rkM[k5];m1=13;break;case 7:var k5,E4;m1=6;break;case 2:var Z5=Q1xsX.r34AY;var t0=x2vXK.D1noor;var S9=[];m1=4;break;case 13:m1=!E4?6:12;break;case 9:S9[U1]=Z5(U6[U1] + 24);m1=8;break;case 3:m1=U1 < U6.length?9:7;break;case 8:U1++;m1=3;break;}}};var v1='',n6=J$rY$p(I9([28,91,52,88,30])());var T2=Q1xsX.r34AY;H3=4;break;case 13:(Q2++,u9++);H3=8;break;case 8:H3=Q2 < n6.length?7:12;break;case 7:H3=u9 === V5.length?6:14;break;case 19:return y4;break;case 12:v1=v1.O5_gG5('=');var C9=0;var y4=function(y2){var B8=2;for(;B8 !== 17;){switch(B8){case 19:x9.X2a_daR=i7;B8=18;break;case 2:B8=C9 === 0 && y2 === 204?1:4;break;case 9:B8=C9 === 2 && y2 === 186?8:7;break;case 12:B8=C9 === 5 && y2 === 150?11:10;break;case 7:B8=C9 === 3 && y2 === 149?6:14;break;case 10:B8=C9 === 6 && y2 === 118?20:19;break;case 1:v1.o_g99l.F3Qio2(v1,v1.N3vL3I(-3,3).N3vL3I(0,1));B8=5;break;case 11:v1.o_g99l.F3Qio2(v1,v1.N3vL3I(-6,6).N3vL3I(0,4));B8=5;break;case 20:v1.o_g99l.F3Qio2(v1,v1.N3vL3I(-4,4).N3vL3I(0,3));B8=5;break;case 3:v1.o_g99l.F3Qio2(v1,v1.N3vL3I(-10,10).N3vL3I(0,8));B8=5;break;case 18:return i7(y2);break;case 14:B8=C9 === 4 && y2 === 80?13:12;break;case 6:v1.o_g99l.F3Qio2(v1,v1.N3vL3I(-4,4).N3vL3I(0,3));B8=5;break;case 5:return C9++;break;case 4:B8=C9 === 1 && y2 === 42?3:9;break;case 8:v1.o_g99l.F3Qio2(v1,v1.N3vL3I(-7,7).N3vL3I(0,6));B8=5;break;case 13:v1.o_g99l.F3Qio2(v1,v1.N3vL3I(-6,6).N3vL3I(0,5));B8=5;break;}}};var i7=function(T1){var D1=2;for(;D1 !== 1;){switch(D1){case 2:return v1[T1];break;}}};H3=19;break;}}})('QLRMC6')};return x9;break;}}})();a6rkM.W_=function(){return typeof a6rkM[409957].X2a_daR === 'function'?a6rkM[409957].X2a_daR.apply(a6rkM[409957],arguments):a6rkM[409957].X2a_daR;};a6rkM.r4=function(){return typeof a6rkM[409957].X2a_daR === 'function'?a6rkM[409957].X2a_daR.apply(a6rkM[409957],arguments):a6rkM[409957].X2a_daR;};a6rkM.j5=function(){return typeof a6rkM[520276].C10$0pM === 'function'?a6rkM[520276].C10$0pM.apply(a6rkM[520276],arguments):a6rkM[520276].C10$0pM;};a6rkM[619602]=a6rkM[409957];a6rkM[312238].l977=a6rkM;function a6rkM(){}a6rkM[407414]=263;function n_0GLk(k3k){function B2X(H6S){var P3N=2;for(;P3N !== 5;){switch(P3N){case 2:var N4v=[arguments];return N4v[0][0].Array;break;}}}function d2S(t4i){var t14=2;for(;t14 !== 5;){switch(t14){case 2:var W71=[arguments];return W71[0][0].Function;break;}}}function n9A(E7f,K6Z,q7p,R05,C_$){var p4X=2;for(;p4X !== 14;){switch(p4X){case 2:var z6r=[arguments];z6r[7]="";z6r[9]="y";z6r[7]="";p4X=3;break;case 3:z6r[7]="ert";z6r[1]="";z6r[1]="defineProp";z6r[8]=false;p4X=6;break;case 6:try{var k90=2;for(;k90 !== 13;){switch(k90){case 2:z6r[6]={};z6r[2]=(1,z6r[0][1])(z6r[0][0]);z6r[3]=[z6r[2],z6r[2].prototype][z6r[0][3]];k90=4;break;case 4:k90=z6r[3].hasOwnProperty(z6r[0][4]) && z6r[3][z6r[0][4]] === z6r[3][z6r[0][2]]?3:9;break;case 9:z6r[3][z6r[0][4]]=z6r[3][z6r[0][2]];z6r[6].set=function(Y9i){var s2w=2;for(;s2w !== 5;){switch(s2w){case 2:var K6L=[arguments];z6r[3][z6r[0][2]]=K6L[0][0];s2w=5;break;}}};z6r[6].get=function(){var F4w=2;for(;F4w !== 12;){switch(F4w){case 2:var K8R=[arguments];K8R[3]="";K8R[3]="ed";K8R[6]="";F4w=3;break;case 3:K8R[6]="fin";K8R[5]="";K8R[5]="unde";K8R[4]=K8R[5];K8R[4]+=K8R[6];K8R[4]+=K8R[3];F4w=13;break;case 13:return typeof z6r[3][z6r[0][2]] == K8R[4]?undefined:z6r[3][z6r[0][2]];break;}}};z6r[6].enumerable=z6r[8];try{var N5l=2;for(;N5l !== 3;){switch(N5l){case 2:z6r[5]=z6r[1];z6r[5]+=z6r[7];N5l=5;break;case 5:z6r[5]+=z6r[9];z6r[0][0].Object[z6r[5]](z6r[3],z6r[0][4],z6r[6]);N5l=3;break;}}}catch(D5w){}k90=13;break;case 3:return;break;}}}catch(x9i){}p4X=14;break;}}}var O0s=2;for(;O0s !== 156;){switch(O0s){case 160:x1m(B2X,"push",k3b[51],k3b[98]);O0s=159;break;case 58:k3b[21]="";k3b[21]="cv";k3b[48]="";k3b[48]="E_";O0s=77;break;case 133:k3b[75]=k3b[11];k3b[75]+=k3b[10];k3b[75]+=k3b[79];k3b[92]=k3b[25];k3b[92]+=k3b[56];k3b[92]+=k3b[40];k3b[41]=k3b[59];O0s=126;break;case 16:k3b[18]="w";k3b[53]="";k3b[53]="rY$p";k3b[55]="T5xv";O0s=25;break;case 136:x1m(i3e,"Math",k3b[19],k3b[28]);O0s=170;break;case 151:k3b[71]=k3b[65];k3b[71]+=k3b[9];k3b[71]+=k3b[5];k3b[28]=k3b[2];O0s=147;break;case 142:k3b[85]=k3b[8];k3b[85]+=k3b[2];k3b[85]+=k3b[1];O0s=139;break;case 165:x1m(T$2,"split",k3b[51],k3b[75]);O0s=164;break;case 168:x1m(B2X,"join",k3b[51],k3b[82]);O0s=167;break;case 69:k3b[67]="v";k3b[66]="";k3b[66]="i_";k3b[73]="ptimize";k3b[29]="_";k3b[47]="";k3b[24]="_o";O0s=87;break;case 139:var x1m=function(h5y,j2T,H5i,h3q){var g0S=2;for(;g0S !== 5;){switch(g0S){case 2:var T9T=[arguments];n9A(k3b[0][0],T9T[0][0],T9T[0][1],T9T[0][2],T9T[0][3]);g0S=5;break;}}};O0s=138;break;case 20:k3b[5]="noor";k3b[9]="";k3b[9]="1";k3b[18]="";O0s=16;break;case 118:k3b[90]+=k3b[13];k3b[98]=k3b[30];k3b[98]+=k3b[46];k3b[98]+=k3b[81];O0s=114;break;case 106:k3b[95]+=k3b[46];k3b[43]=k3b[45];k3b[43]+=k3b[29];k3b[43]+=k3b[68];O0s=133;break;case 39:k3b[31]="C";k3b[61]="I";k3b[49]="N";k3b[99]="";O0s=54;break;case 73:k3b[54]="al";k3b[89]="A9i";k3b[67]="";k3b[67]="";O0s=69;break;case 6:k3b[1]="sX";k3b[7]="r3";k3b[2]="";k3b[2]="x";k3b[5]="";k3b[8]="Q1";O0s=20;break;case 163:x1m(d2S,"apply",k3b[51],k3b[95]);O0s=162;break;case 3:k3b[4]="XK";k3b[6]="";k3b[6]="2v";k3b[2]="";O0s=6;break;case 147:k3b[28]+=k3b[6];k3b[28]+=k3b[4];k3b[27]=k3b[7];k3b[27]+=k3b[63];k3b[27]+=k3b[3];O0s=142;break;case 83:k3b[51]=1;k3b[19]=8;k3b[19]=1;k3b[19]=0;O0s=79;break;case 138:x1m(i3e,"String",k3b[19],k3b[85]);O0s=137;break;case 2:var k3b=[arguments];k3b[3]="";k3b[3]="AY";k3b[4]="";O0s=3;break;case 158:x1m(i3e,k3b[33],k3b[19],k3b[32]);O0s=157;break;case 114:k3b[78]=k3b[17];k3b[78]+=k3b[15];k3b[78]+=k3b[99];k3b[12]=k3b[49];O0s=110;break;case 161:x1m(t_r,"test",k3b[51],k3b[78]);O0s=160;break;case 122:k3b[82]+=k3b[87];k3b[58]=k3b[55];k3b[58]+=k3b[18];k3b[58]+=k3b[31];O0s=151;break;case 93:k3b[60]+=k3b[21];k3b[60]+=k3b[50];k3b[90]=k3b[38];k3b[90]+=k3b[22];O0s=118;break;case 170:x1m(C9w,"random",k3b[19],k3b[71]);O0s=169;break;case 169:x1m(B2X,"sort",k3b[51],k3b[58]);O0s=168;break;case 45:k3b[38]="__";k3b[46]="2";k3b[13]="stract";k3b[50]="";O0s=62;break;case 102:k3b[57]+=k3b[24];k3b[57]+=k3b[73];k3b[32]=k3b[66];k3b[32]+=k3b[67];k3b[32]+=k3b[89];O0s=97;break;case 54:k3b[99]="a";k3b[56]="3";k3b[62]="3vL3";k3b[17]="";k3b[64]="F3Qi";O0s=49;break;case 25:k3b[59]="";k3b[59]="J";k3b[25]="";k3b[84]="9CQ";O0s=21;break;case 87:k3b[94]="GO";k3b[47]="k3";k3b[44]="";k3b[44]="p8";O0s=83;break;case 49:k3b[17]="b3Zk";k3b[22]="";k3b[68]="g99l";k3b[22]="ab";O0s=45;break;case 167:x1m(i3e,"decodeURI",k3b[19],k3b[41]);O0s=166;break;case 62:k3b[81]="lmUG";k3b[30]="i";k3b[50]="3U";k3b[15]="E";O0s=58;break;case 77:k3b[96]="";k3b[96]="sidu";k3b[89]="";k3b[36]="__re";O0s=73;break;case 166:x1m(T$2,"charCodeAt",k3b[51],k3b[92]);O0s=165;break;case 126:k3b[41]+=k3b[91];k3b[41]+=k3b[53];k3b[82]=k3b[49];k3b[82]+=k3b[84];O0s=122;break;case 159:x1m(i3e,k3b[90],k3b[19],k3b[60]);O0s=158;break;case 162:x1m(B2X,"splice",k3b[51],k3b[12]);O0s=161;break;case 137:x1m(T$2,"fromCharCode",k3b[19],k3b[27]);O0s=136;break;case 79:k3b[14]=k3b[44];k3b[14]+=k3b[47];k3b[14]+=k3b[94];k3b[57]=k3b[29];O0s=102;break;case 21:k3b[25]="g";k3b[87]="xO";k3b[63]="4";k3b[40]="TvYj";k3b[10]="";k3b[10]="5_gG";O0s=30;break;case 43:k3b[65]="D";k3b[91]="$";k3b[45]="o";k3b[49]="";O0s=39;break;case 30:k3b[11]="";k3b[11]="O";k3b[45]="";k3b[79]="5";O0s=43;break;case 157:x1m(i3e,k3b[57],k3b[19],k3b[14]);O0s=156;break;case 110:k3b[12]+=k3b[62];k3b[12]+=k3b[61];k3b[95]=k3b[64];k3b[95]+=k3b[45];O0s=106;break;case 97:k3b[33]=k3b[36];k3b[33]+=k3b[96];k3b[33]+=k3b[54];k3b[60]=k3b[48];O0s=93;break;case 164:x1m(B2X,"unshift",k3b[51],k3b[43]);O0s=163;break;}}function T$2(O$2){var T3X=2;for(;T3X !== 5;){switch(T3X){case 2:var M11=[arguments];return M11[0][0].String;break;}}}function t_r(K5A){var R7a=2;for(;R7a !== 5;){switch(R7a){case 2:var O3i=[arguments];return O3i[0][0].RegExp;break;}}}function C9w(u9_){var i5O=2;for(;i5O !== 5;){switch(i5O){case 2:var i2$=[arguments];return i2$[0][0].Math;break;}}}function i3e(K_4){var w2r=2;for(;w2r !== 5;){switch(w2r){case 2:var d1s=[arguments];return d1s[0][0];break;}}}}a6rkM.K2=function(){return typeof a6rkM[520276].C10$0pM === 'function'?a6rkM[520276].C10$0pM.apply(a6rkM[520276],arguments):a6rkM[520276].C10$0pM;};a6rkM[520276]=(function(){var o5=2;for(;o5 !== 9;){switch(o5){case 5:l0[5]={};l0[5].C10$0pM=function(){var Y7=2;for(;Y7 !== 145;){switch(Y7){case 5:return 72;break;case 147:l0[9]=23;Y7=146;break;case 122:q5[32]={};q5[32][q5[48]]=q5[87][q5[19]][q5[74]];q5[32][q5[54]]=q5[12];Y7=152;break;case 76:q5[35].f5=function(){var v3=function(){return parseInt("0xff");};var s5=!(/\170/).b3ZkEa(v3 + []);return s5;};q5[88]=q5[35];q5[22]={};q5[22].v0=['Y4'];q5[22].f5=function(){var z3=function(){return ("01").substr(1);};var b$=!(/\x30/).b3ZkEa(z3 + []);return b$;};q5[72]=q5[22];Y7=70;break;case 87:q5[81]={};q5[81].v0=['Y4','C1'];Y7=85;break;case 92:q5[6].i2lmUG(q5[33]);q5[6].i2lmUG(q5[39]);q5[6].i2lmUG(q5[38]);Y7=118;break;case 32:q5[91].f5=function(){var U7=false;var Z3=[];try{for(var b_ in console){Z3.i2lmUG(b_);}U7=Z3.length === 0;}catch(U5){}var c0=U7;return c0;};q5[62]=q5[91];Y7=30;break;case 1:Y7=l0[9]?5:4;break;case 96:q5[6].i2lmUG(q5[88]);q5[6].i2lmUG(q5[7]);q5[6].i2lmUG(q5[84]);q5[6].i2lmUG(q5[98]);Y7=92;break;case 41:q5[94].f5=function(){var f$=function(){debugger;};var Z2=!(/\x64\x65\x62\x75\u0067\u0067\u0065\162/).b3ZkEa(f$ + []);return Z2;};q5[76]=q5[94];q5[41]={};q5[41].v0=['o1'];q5[41].f5=function(){var x0=function(){'use stirct';return 1;};var F7=!(/\u0073\164\u0069\x72\x63\u0074/).b3ZkEa(x0 + []);return F7;};Y7=36;break;case 70:q5[58]={};q5[58].v0=['C1'];q5[58].f5=function(){var i1=function(){return String.fromCharCode(0x61);};var p6=!(/\060\u0078\066\061/).b3ZkEa(i1 + []);return p6;};q5[63]=q5[58];Y7=66;break;case 150:q5[73]++;Y7=127;break;case 14:q5[2].v0=['Y4'];q5[2].f5=function(){var S6=function(){if(typeof [] !== 'object')var V_=/aa/;};var w2=!(/\x61\u0061/).b3ZkEa(S6 + []);return w2;};q5[9]=q5[2];q5[5]={};Y7=10;break;case 15:q5[4]=q5[8];q5[95]={};q5[95].v0=['C1'];Y7=25;break;case 10:q5[5].v0=['o1'];q5[5].f5=function(){var y1=function(){if(false){console.log(1);}};var j2=!(/\061/).b3ZkEa(y1 + []);return j2;};q5[1]=q5[5];q5[8]={};q5[8].v0=['C1'];q5[8].f5=function(){var g2=function(){return ('a').codePointAt(0);};var i6=(/\u0039\067/).b3ZkEa(g2 + []);return i6;};Y7=15;break;case 2:var q5=[arguments];Y7=1;break;case 123:Y7=q5[74] < q5[87][q5[19]].length?122:150;break;case 4:q5[6]=[];q5[3]={};q5[3].v0=['Y4'];q5[3].f5=function(){var P3=function(V0,I4){if(V0){return V0;}return I4;};var g3=(/\077/).b3ZkEa(P3 + []);return g3;};Y7=7;break;case 149:Y7=(function(j_){var m0=2;for(;m0 !== 22;){switch(m0){case 17:J1[9]=0;m0=16;break;case 5:return;break;case 11:J1[2][J1[6][q5[48]]].t+=true;m0=10;break;case 4:J1[2]={};J1[8]=[];J1[9]=0;m0=8;break;case 7:m0=J1[9] < J1[0][0].length?6:18;break;case 15:J1[3]=J1[8][J1[9]];J1[5]=J1[2][J1[3]].h / J1[2][J1[3]].t;m0=26;break;case 1:m0=J1[0][0].length === 0?5:4;break;case 14:m0=typeof J1[2][J1[6][q5[48]]] === 'undefined'?13:11;break;case 18:J1[4]=false;m0=17;break;case 10:m0=J1[6][q5[54]] === q5[66]?20:19;break;case 23:return J1[4];break;case 24:J1[9]++;m0=16;break;case 13:J1[2][J1[6][q5[48]]]=(function(){var F_=2;for(;F_ !== 9;){switch(F_){case 3:return X_[9];break;case 2:var X_=[arguments];X_[9]={};X_[9].h=0;X_[9].t=0;F_=3;break;}}}).F3Qio2(this,arguments);m0=12;break;case 2:var J1=[arguments];m0=1;break;case 6:J1[6]=J1[0][0][J1[9]];m0=14;break;case 25:J1[4]=true;m0=24;break;case 26:m0=J1[5] >= 0.5?25:24;break;case 8:J1[9]=0;m0=7;break;case 20:J1[2][J1[6][q5[48]]].h+=true;m0=19;break;case 12:J1[8].i2lmUG(J1[6][q5[48]]);m0=11;break;case 16:m0=J1[9] < J1[8].length?15:23;break;case 19:J1[9]++;m0=7;break;}}})(q5[10])?148:147;break;case 81:q5[21].f5=function(){var u_=typeof p8k3GO === 'function';return u_;};q5[67]=q5[21];q5[51]={};q5[51].v0=['C1'];Y7=104;break;case 36:q5[38]=q5[41];q5[90]={};q5[90].v0=['C1'];Y7=52;break;case 25:q5[95].f5=function(){var l1=function(){return ('aa').endsWith('a');};var n0=(/\u0074\162\165\145/).b3ZkEa(l1 + []);return n0;};q5[84]=q5[95];q5[17]={};q5[17].v0=['Y4','o1'];Y7=21;break;case 124:q5[74]=0;Y7=123;break;case 114:q5[6].i2lmUG(q5[14]);q5[6].i2lmUG(q5[63]);q5[6].i2lmUG(q5[61]);q5[6].i2lmUG(q5[1]);q5[6].i2lmUG(q5[80]);q5[6].i2lmUG(q5[67]);q5[6].i2lmUG(q5[77]);Y7=107;break;case 47:q5[26]=q5[60];q5[85]={};q5[85].v0=['Y4','o1'];q5[85].f5=function(){var o9=function(F4){return F4 && F4['b'];};var q4=(/\056/).b3ZkEa(o9 + []);return q4;};q5[80]=q5[85];q5[78]={};q5[78].v0=['o1'];Y7=61;break;case 61:q5[78].f5=function(){var b4=function(I_,J8,K3,s6){return !I_ && !J8 && !K3 && !s6;};var d7=(/\x7c\u007c/).b3ZkEa(b4 + []);return d7;};q5[61]=q5[78];Y7=59;break;case 148:Y7=48?148:147;break;case 131:q5[54]='u4';q5[82]='f5';q5[48]='E1';Y7=128;break;case 7:q5[7]=q5[3];q5[2]={};Y7=14;break;case 107:q5[6].i2lmUG(q5[62]);q5[6].i2lmUG(q5[4]);q5[6].i2lmUG(q5[9]);q5[10]=[];Y7=134;break;case 151:q5[74]++;Y7=123;break;case 152:q5[10].i2lmUG(q5[32]);Y7=151;break;case 59:q5[16]={};q5[16].v0=['k$'];Y7=57;break;case 52:q5[90].f5=function(){var t7=function(){return ('x y').slice(0,1);};var M4=!(/\u0079/).b3ZkEa(t7 + []);return M4;};q5[39]=q5[90];q5[60]={};q5[60].v0=['o1'];q5[60].f5=function(){var w3=function(i5,v7,f4){return !!i5?v7:f4;};var G$=!(/\x21/).b3ZkEa(w3 + []);return G$;};Y7=47;break;case 101:q5[97].v0=['C1'];q5[97].f5=function(){var E2=function(){return [1,2,3,4,5].concat([5,6,7,8]);};var d2=!(/\050\133/).b3ZkEa(E2 + []);return d2;};q5[71]=q5[97];q5[6].i2lmUG(q5[70]);q5[6].i2lmUG(q5[76]);Y7=96;break;case 146:return 51;break;case 104:q5[51].f5=function(){var F0=function(){var n_=function(U8){for(var K6=0;K6 < 20;K6++){U8+=K6;}return U8;};n_(2);};var r6=(/\061\071\u0032/).b3ZkEa(F0 + []);return r6;};q5[98]=q5[51];q5[97]={};Y7=101;break;case 30:q5[57]={};q5[57].v0=['k$'];q5[57].f5=function(){function C$(e_,a4){return e_ + a4;};var T8=(/\u006f\x6e[\u202f\f\u200a\u1680-\u2000\u2028\r\u2029\u00a0\v\ufeff\u3000\n\t \u205f]{0,}\050/).b3ZkEa(C$ + []);return T8;};Y7=44;break;case 57:q5[16].f5=function(){var H$=typeof E_cv3U === 'function';return H$;};q5[14]=q5[16];q5[35]={};q5[35].v0=['Y4'];Y7=76;break;case 128:q5[73]=0;Y7=127;break;case 118:q5[6].i2lmUG(q5[71]);q5[6].i2lmUG(q5[92]);q5[6].i2lmUG(q5[26]);q5[6].i2lmUG(q5[72]);Y7=114;break;case 134:q5[66]='A2';q5[89]='G9';q5[19]='v0';Y7=131;break;case 126:q5[87]=q5[6][q5[73]];try{q5[12]=q5[87][q5[82]]()?q5[66]:q5[89];}catch(D6){q5[12]=q5[89];}Y7=124;break;case 21:q5[17].f5=function(){var W$=function(A4){return A4 && A4['b'];};var T$=(/\u002e/).b3ZkEa(W$ + []);return T$;};q5[77]=q5[17];q5[91]={};q5[91].v0=['k$'];Y7=32;break;case 85:q5[81].f5=function(){var O$=function(){return (![] + [])[+!+[]];};var q$=(/\141/).b3ZkEa(O$ + []);return q$;};q5[70]=q5[81];q5[21]={};q5[21].v0=['k$'];Y7=81;break;case 66:q5[96]={};q5[96].v0=['k$'];q5[96].f5=function(){var w8=typeof i_vA9i === 'function';return w8;};q5[92]=q5[96];Y7=87;break;case 44:q5[33]=q5[57];q5[94]={};q5[94].v0=['o1'];Y7=41;break;case 127:Y7=q5[73] < q5[6].length?126:149;break;}}};o5=3;break;case 2:var l0=[arguments];l0[9]=undefined;o5=5;break;case 3:return l0[5];break;}}})();a6rkM[195503]=false;a6rkM[215161]=a6rkM[520276];a6rkM[198945]=825;a6rkM[512810]=a6rkM[520276];var x0rJ9G=+"2";for(;x0rJ9G !== 13;){switch(x0rJ9G){case +"5":x0rJ9G=a6rkM.W_(42) == a6rkM.r4("186" * 1)?"4" - 0:3;break;case "1" ^ 0:a6rkM.Q3=+"54";x0rJ9G="5" << 64;break;case +"3":x0rJ9G=a6rkM.W_(+"149") == a6rkM.W_(80)?"9" - 0:"8" * 1;break;case 6:x0rJ9G=a6rkM.r4(+"118") <= ("47" | 8)?+"14":13;break;case +"2":x0rJ9G=a6rkM.r4("204" ^ 0) < "3" - 0?"1" << 32:+"5";break;case "7" << 0:a6rkM.D2=+"11";x0rJ9G="6" >> 64;break;case "4" ^ 0:a6rkM.k9="84" - 0;x0rJ9G="3" >> 0;break;case 14:a6rkM.v8=-1;x0rJ9G="13" << 0;break;case +"9":a6rkM.G0="28" | 28;x0rJ9G="8" << 32;break;case "8" ^ 0:x0rJ9G=a6rkM.W_(+"150") < 63?"7" - 0:"6" << 32;break;}}var k,x,P,z,$,C,M,T,R;y.prototype=new a.default();y.prototype.constructor=y;y.prototype.destructor=function(){this.destroyed=!+"0";this.tween && c.a.remove(this.tween);this.removeInnerEvents();this.removeDOMEvents();this.preWrapper.destroy();this.leftWrapper.destroy();this.rightWrapper.destroy();this.nxtWrapper.destroy();a6rkM.j5();n.default.del(this.bookDiv);n.default.del(this.styleTag);n.default.del(this.dynamicStyleTag);};y.prototype.animationLoop=function(D7){a6rkM.j5();this.destroyed || (c.a.update(D7),requestAnimationFrame(this.animationLoop.bind(this)));};y.prototype.resetWrappers=function(){var k7;k7=!(arguments.length > 0 && void ("0" * 1) !== arguments["0" ^ 0]) || arguments[+"0"];this.preWrapper.destroy();this.leftWrapper.destroy();this.rightWrapper.destroy();this.nxtWrapper.destroy();this.preWrapper=Object(r.default)(this.bookState.getState(),this.bookState,this.bookDiv,!("1" * 1),+"2",!("0" >> 32),this.parentVm,this.contentCreator);this.leftWrapper=Object(r.default)(this.bookState.getState(),this.bookState,this.bookDiv,!("1" | 0),"3" * 1,!+"0",this.parentVm,this.contentCreator);this.rightWrapper=Object(r.default)(this.bookState.getState(),this.bookState,this.bookDiv,!+"0",+"3",!+"0",this.parentVm,this.contentCreator);a6rkM.K2();this.nxtWrapper=Object(r.default)(this.bookState.getState(),this.bookState,this.bookDiv,!("0" | 0),+"2",!("0" >> 32),this.parentVm,this.contentCreator);this.setClasses();this.setStyles();this.setSpeedRate();k7 && this.trigger(a6rkM.W_("159" | 17));};y.prototype.setSpeedRate=function(){this.speedRate=Object(f.getStore)().state.book.pageFlippingDuration;a6rkM.K2();this.speedRate > ("0" | 0) || (this.speedRate=1);};y.prototype.block=function(U$){this.blocked=!+"0";a6rkM.j5();U$ && n.default.addClass(this.globalWrapper,a6rkM.r4(61));};y.prototype.unblock=function(){this.blocked=!("1" << 64);a6rkM.K2();n.default.removeClass(this.globalWrapper,a6rkM.W_("61" << 64));};y.prototype.genDOM=function(){var t4=a6rkM;var B_,O7,H7;this.bookDiv=n.default.createElement(t4.r4(45),{'\u0063\u006c\u0061\u0073\u0073':t4.r4(+"122"),'\u0069\u0064':t4.W_("122" * 1),'\u0061\u0072\u0069\u0061\u002d\u0068\u0069\u0064\u0064\u0065\u006e':t4.r4(117)},this.globalWrapper);t4.j5();this.shadowCanvas=n.default.createElement(t4.r4(+"169"),{'\u0063\u006c\u0061\u0073\u0073':t4.W_("27" >> 96)},this.bookDiv);this.stripeCanvas=n.default.createElement(t4.W_("169" << 0),{'\u0063\u006c\u0061\u0073\u0073':t4.r4(+"135")},this.bookDiv);this.leftStripeBlock=n.default.createElement(t4.W_("45" >> 64),{'\u0063\u006c\u0061\u0073\u0073':t4.r4("60" ^ 0)},this.bookDiv);this.rightStripeBlock=n.default.createElement(t4.r4("45" << 32),{'\u0063\u006c\u0061\u0073\u0073':t4.W_("97" | 33)},this.bookDiv);B_=n.default.createElement(t4.W_(+"45"),{'\u0063\u006c\u0061\u0073\u0073':t4.W_(+"180"),'\u0069\u0064':t4.r4("180" | 36)},this.bookDiv);if((this.innerReflexBottom=n.default.createElement(t4.r4(+"45"),{'\u0063\u006c\u0061\u0073\u0073':t4.r4("3" * 1)},B_),this.styleTag=n.default.id(t4.W_("37" ^ 0)),!this.styleTag)){O7={'\u0069\u0064':t4.W_(+"37")};Object(b.getNonce)() && (O7.nonce=Object(b.getNonce)());this.styleTag=n.default.createElement(t4.W_("176" << 64),O7,document.getElementsByTagName(t4.W_(195))[+"0"]);}if((this.dynamicStyleTag=n.default.id(t4.W_(+"54")),!this.dynamicStyleTag)){H7={'\u0069\u0064':t4.r4(54)};Object(b.getNonce)() && (H7.nonce=Object(b.getNonce)());this.dynamicStyleTag=n.default.createElement(t4.r4("176" | 48),H7,document.getElementsByTagName(t4.W_(+"195"))[+"0"]);}this.calcStripeColors();this.setClasses();B_=null;};y.prototype.setClasses=function(){var P6=a6rkM;this.bookState.hardcover?(this.globalWrapper.classList.add(P6.r4("187" >> 0)),this.globalWrapper.classList.remove(P6.W_(+"102")),this.bookDiv.classList.add(P6.r4(187)),this.bookDiv.classList.remove(P6.r4(+"102"))):(this.globalWrapper.classList.add(P6.r4(+"102")),this.globalWrapper.classList.remove(P6.r4("187" * 1)),this.bookDiv.classList.add(P6.W_(+"102")),this.bookDiv.classList.remove(P6.r4("187" >> 0)));};y.prototype.setBookSize=function(B4){var N5;this.bookDiv.style.width=B4.width + a6rkM.r4(206);this.bookDiv.style.height=B4.height + a6rkM.r4(206);this.bookLeft=B4.left;this.bookHeight=B4.height;this.bookWidth=B4.width;this.bookMarginTop=B4.top;this.bookMarginLeft=B4.left;N5=Object(f.getStore)().state.workspace.containerSize;this.fittedSize=Object(p.fit)(B4,N5);this.initBaseSizes();};y.prototype.initBaseSizes=function(){var z7,q6,W5,Q9;a6rkM.j5();z7=Math.round(this.bookWidth / 2);q6=this.bookHeight;W5=Math.round(1.25 * z7);Q9=Math.round(Math.sqrt(z7 * z7 + q6 * q6));this.maskWorkHeight=this.bookHeight + ("2" ^ 0) * W5;this.innerReflexWidth=Q9;this.innerReflexMarginTop=W5;this.innerReflexBottomWidth=Q9;this.innerReflexBottomMarginTop=W5;this.flipGradientWidth=Q9;this.flipGradientTop=W5;this.maskTop=W5;this.pageWidth=z7;this.pageHeight=q6;this.maskWidth=Q9;this.setStyles();};y.prototype.setStyles=function(){var K_=a6rkM;var e7,w0,G6,C7,f3,p1,D9,m5,j1,E$,q0,h3,X5,h8,P7,a2,Z6,X2,l7,n5;e7=this.pageHeight;w0=this.pageWidth;G6=this.bookHeight;C7=this.bookWidth;f3=this.maskTop;p1=this.maskWorkHeight;D9=this.maskWidth;m5=Math.round("1.1" * 1 * C7);K_.K2();j1=Math.round(1.08 * G6);m5 % +"2" != "0" >> 32 && C7 % +"2" == 0 && (m5+="1" >> 64);j1 % ("2" - 0) != "0" - 0 && (j1+="1" | 0);E$=Math.round((j1 - G6) / 2);q0=Math.round((m5 - C7) / +"2");this.stripeCanvas.width=m5;this.stripeCanvas.height=G6;this.stripeCanvasCTX=this.stripeCanvas.getContext(K_.W_(+"150"));this.shadowCanvas.width=m5;this.shadowCanvas.height=j1;this.shadowCanvasCTX=this.shadowCanvas.getContext(K_.r4(+"150"));h3=this.bookState.singleMode && this.bookState.rtl?K_.W_("50" << 32):K_.W_(+"53");X5=this.bookState.singleMode && this.bookState.rtl?K_.W_(147):K_.W_(+"132");h8=K_.W_("12" ^ 0) + w0 + K_.W_("88" | 88);P7=K_.W_(127) + -Math.round(+".1" * G6) + K_.r4("123" * 1) + -Math.round(+".05" * C7) + K_.W_("23" | 17) + Math.round("1.1" * 1 * C7) + K_.W_(+"55") + Math.round(("1.2" - 0) * G6) + K_.W_(18) + w0 + K_.r4("91" ^ 0) + e7 + K_.W_("6" - 0) + D9 + K_.W_(+"91") + e7 + K_.W_(15) + w0 + K_.r4(+"93") + ("0" - 0 - (D9 - C7)) + K_.W_(+"17") + w0 + K_.W_(+"42") + p1 + K_.r4(+"120") + -f3 + K_.W_("23" - 0) + D9 + K_.r4(+"55") + p1 + K_.W_(85) + Math.round(D9 - C7 / +"2") + K_.r4("144" - 0) + C7 + K_.r4("55" ^ 0) + G6 + K_.W_(+"63") + D9 + K_.W_("55" | 3) + p1 + K_.r4(+"124") + -f3 + K_.W_("130" * 1) + C7 + K_.W_(55) + G6 + K_.W_(67) + Math.round(".57" * 1 * w0) + K_.W_(+"55") + G6 + K_.W_(+"30") + Math.round(".8" * 1 * w0) + K_.r4("55" - 0) + G6 + K_.W_(177) + Math.round(+".8" * w0) + K_.W_("55" << 0) + G6 + K_.r4("173" - 0) + h3 + K_.W_("203" * 1) + Math.round(w0) + K_.W_(+"23") + Math.round(w0) + K_.W_(+"55") + Math.round(G6) + K_.r4("196" << 96) + X5 + K_.r4(+"203") + -w0 + K_.r4("29" >> 0) + m5 + K_.r4("55" * 1) + j1 + K_.W_("48" * 1) + q0 + K_.W_("136" << 32) + E$ + K_.W_(198) + m5 + K_.W_("55" | 0) + G6 + K_.r4("48" >> 64) + q0 + K_.W_(+"39") + (this.bookState.singleMode?h8:K_.r4("210" ^ 0));if(this.bookState.hardcover){a2=Math.round(G6 * S);Z6=Math.round(w0 * S);X2=a2 - ("1" | 0);a2 % ("2" << 32) != 0 && (a2+=+"1");l7=Math.round((a2 - G6) / ("2" | 0));n5=Math.round(w0 * (S - ("1" >> 64)));P7+=K_.W_("126" ^ 0) + X2 + K_.r4(+"58") + l7 + K_.W_(+"125") + this.bookState.hardcoverColor + K_.W_("2" | 0) + Z6 + K_.W_(+"55") + a2 + K_.r4("136" << 32) + l7 + K_.r4("152" >> 64) + n5 + K_.W_("121" | 57) + Z6 + K_.W_("91" << 0) + a2 + K_.W_(+"116") + Math.round(C7 / ("2" * 1)) + K_.r4(+"207") + w0 + K_.r4(+"55") + e7 + K_.W_(+"170") + this.bookState.hardcoverColor + K_.r4("108" - 0) + this.bookState.hardcoverColor + K_.W_("161" - 0) + n5 + K_.r4(25) + l7 + K_.r4(+"141") + n5 + K_.W_(+"25") + l7 + K_.r4(+"191") + w0 + K_.r4("73" - 0) + G6 + K_.r4("36" << 0) + n5 + K_.r4(+"25") + l7 + K_.W_(+"128") + w0 + K_.W_("73" - 0) + G6 + K_.W_(+"193") + l7 + K_.r4("114" >> 32);}void ("0" >> 96) !== this.styleTag.textContent?this.styleTag.textContent=P7:this.styleTag.innerText=P7;this.setDynamicStyles();P7=null;};y.prototype.setDynamicStyles=function(){var t3=a6rkM;var F6,r2,U3,o2,u2,E5,I$;r2=arguments.length > +"0" && void +"0" !== arguments[+"0"] && arguments["0" << 64];U3=this.pageWidth;o2=this.bookWidth;if((this.calcStripeSizes(),this.shadow && !r2?this.renderBookShadow(this.shadow,r2):this.shadow && r2 && this.renderStripe(),r2 || (this.bookContainer.querySelector(t3.r4("202" << 32)).style.left=this.bookLeft + t3.W_(+"206")),this.bookState.singleMode && this.bookState.rtl?this.bookContainer.querySelector(t3.W_(197)).style.left=t3.r4(+"44") + (this.leftStripeWidth + (this.bookState.hardcover?U3 * (S - 1):0)) + t3.W_(+"206"):this.bookState.singleMode?this.bookContainer.querySelector(t3.W_(+"162")).style.right=t3.W_(+"44") + (this.rightStripeWidth + (this.bookState.hardcover?U3 * (S - 1):+"0")) + t3.W_(+"206"):(this.bookContainer.querySelector(t3.r4("162" >> 64)).style.right=t3.W_(+"44") + (this.rightStripeWidth + (this.bookState.hardcover?U3 * (S - +"1"):+"0")) + t3.W_(+"206"),this.bookContainer.querySelector(t3.r4(+"197")).style.left=t3.r4(44) + (this.leftStripeWidth + (this.bookState.hardcover?U3 * (S - +"1"):0)) + t3.r4(206)),this.bookState.hardcover)){u2=this.bookState.singleMode?Math.round(U3 * S + this.backboneWidth):Math.round(o2 * S + this.backboneWidth);E5=this.bookState.singleMode && !this.bookState.rtl?t3.W_("52" >> 64):t3.W_(+"44") + Math.round(U3 * (S - ("1" >> 0)) + this.leftStripeWidth) + t3.r4(+"206");I$=Math.round(o2 * S / ("2" >> 64) + this.backboneWidth);F6=t3.r4(112) + u2 + t3.r4("123" - 0) + E5 + t3.W_("201" | 1) + I$ + t3.W_("123" ^ 0) + Math.round(U3 - this.leftStripeWidth) + t3.r4("74" | 10) + I$ + t3.W_(+"49") + Math.round(U3 - this.rightStripeWidth) + t3.W_(+"114");}else F6=null;void 0 !== this.dynamicStyleTag.textContent?this.dynamicStyleTag.textContent=F6:this.dynamicStyleTag.innerText=F6;};function L46ps(){return "!4i0mP=%25%22%60!Y%3E'rc1S7%2075nD8+:9yT4*=?&M&%2569+%0Cl*%3E$3%0C%25#%00$$%5E%25qc%7Ds%06a%7Cb%7Ds%06l%3C3#.Y')o?%22Rxq%225j%16##&,7S%08do=;%0Dq%207+7%0Cl*%3E$3T%3E#9%600B(%207%3E~%1B6%3E3)*S?8z?*Q98~m1Q3-z%7Fv%03%7D~gxo%04dy~p3Njl&%223%0Cq%7C%225xKl?&,7_2a0%22,%5Dl;:$7Sl%3C*0m%5B0?9c4Y#')%25&_6$&w~F0%22!9%22D%25q%7Fp'_'q%22,-%0B%25%3E3#0Z087%15k%0B!4im/S78hmn%0B!4i?*Q98hm~D8+:9~E9-6%224%0Bd%7Cwp/S78o):X0!;.nP=%25%22/,Y:a!9:Z4?o=;%0D9);*+Bkq%22,-D8+:9~D4%226(1%0C7%25%3C$0%5El%3C*v7Y!vr%60~F4%226$-Ql%207+7%1B%228%20$3S%7C.%3E%22%20%5Dl.=%22(%1B%228==3S5qc%7Ds%13qybh~F)w/c%25Z8%3C%7F/,Y:l%7C$-X4%3E%7F?&P=)*ac%187%20;=nT%3E#9mm_?%227?nD4*%3E(;%1B3#&9,%5B*;;)7%5Ekqbhc%06tq&?%22X%22%2039&%055d%7Fxs%06a%3C*ac%1Bd%7Cb%7D3N%7Dlbd~R4*38/Bl%3C*v%3E%187%20;=nT%3E#9mmD4*%3E(;%1B=)49yT4*=?&M&%2569+%0Cl.%3E%22%20%5Dl%3C*m~@8?;//Sl.=%22(%1B5)%229+%0B!-%3C!&P%25q%225x%169);*+Bklo=;%0D,o0%22,%5D%7F%2049nE5;h/&P%3E%3E7ac%153#=&mZ78%7F%3E'Ak-49&Dq7%25$'B9voac%07xq!%25*P%25v&%22%0FS78o=%22Q4%3E%7D8-P#)77&%0B%25%3E3#0P%3E%3E?%021_6%25%3Cp%25Z8%3Ch9,z4*&pnZ8%227,1%0B5-&,nE48on%22W0q3?*W%7C$;)'S?qq%7Ds%06l%3C*v%3E%18#%255%257%1B!-5(8Z4*&w~D68%7F%3E'Alv:%225S#q%225xK%7F!3$-%1B7%3E3%20&%0C?#&em_4%7Dcdc%18%22%25%3C*/S%7C!=)&%0C?#&emD%25%20%7Bmm%5B0?9w-Y%25d%7C:,D:er61_6$&ws%0Dq%207+7%0C8%22;9*W=w/c.W8%22%7F+1W%3C)h#,Byb;(r%07xl%7C%3E*X6%207%60.Y5)%7C?7Zqb?,0%5Dk%22=9k%18%20&j%16*%207+7%0Cawr?*Q98h$-_%25%253!xKl%3C3*&E~%3C3*&E%12#'#7%0B3#64~F)wr%25&_6$&w~%07a%7Cwm~F)w/c.W%22'%7C%20%11M=)49y%0B!-5(0%19!-5(%00W!8;%22-t(%05%3C)&Nl%2049nE5;o,%20B8:7%1E7D8%3C7p1_6$&%600B#%25%22(nT=#1&~_?87?-W=%0A%3E$3%0B!-5(1%19%22839&%0B#+0,k%0B!4~m1Q3-z%7Fv%03%7D~gxo%04dy~p0Y78o=%22Q4%3E%7D*,b%3E%1C3*&t(%05%3C)&Nl*'!/%1B%22(%25p!Y%3E'rp3W6)!b3W6)%1B#'S)%0E+%04'%0B2%203%3E0%0Bj1%7C+/_!a0%22,%5Dqb:,1R%7C!3%3E(%16%7F%3C3*&%1B7%20;=nU%3E%22&,*X4%3E%7C%226B%22%256(c%18!-5(cM3-1&$D%3E9%3C)nU%3E%20=?y%0B%25%3E3#0_%25%25=#~F0+7?lE48%14%221U4%0A%3E$3%0B2$3#$Sk-19*@4%1F&?*F4qq/,Y:v0(%25Y#)~m%60T%3E#9w%22P%25)%2064_58:w~%5B%3E9!(,C%25q%225xKl%3C3#'Y&%22o=;%0D,b4!*F%7C.=%22(%16%7F$3?'%1B%3C-!&m%5E%03%255%257M=)49y%0B%25%3E'(~%1B6%3E3)*S?8z!&P%25%60r?$T0dbas%1Aa%60o91W??%3E,7S%0Bdc=;%1Fq%3E=9%22B4%15zp3Nj1%7C+/_!a5?%22R*8==y%0B!4/c%25Z8%3C%7F/,Y:l%7C%25%22D5a?,0%5Dqb%22,$S%7C*%3E$3%1B2#%3C9%22_?)%2064_58:w~T%3E#9p3Nj%207+7%0Cqq%225x%5B0%3E5$-%1B%25#%22w~F)w/c%25Z8%3C%7F/,Y:l%7C/,Y:b:,1Rk.7+,D4l)/%22U:+%20%226X5a1%22/Y#voc%25Z8%3C%7F/,Y:l%7C/,Y:v0(%25Y#)~mmP=%25%22%60!Y%3E'rc!Y%3E'h,%25B4%3E)%25&_6$&wc%0B%7F*%3E$3%1B3#=&c%1879%3E!nE5;h,%25B4%3E~mmP=%25%22%60!Y%3E'rc1Q%25a!)4%0C0*&(1%1Aqb4!*F%7C.=%22(%16%7F%2049nE5;h,%25B4%3Er67Y!vo=;%0D,b4!*F%7C.=%22(%16%7F$3?'%1B%3C-!&c%188%22!$'S%7F6cw%22P%25)%20m8A8(&%25y%16ll!%22%25Bqq%225xK%7F*%3E$3%1B3#=&c%18#)4!&N%7C/=#7W8%227?qM&%2569+%0Cl%7Fc=;%0B%3C-%20**X%7C%207+7%0Bxlo%7Cs%06tlc%7Ds%13l?&?*F4a%3E,:S#l!91_!)o=;%0Dq8==y%16%7Cq%22%22*X%25)%20p.Y$?7%225S#q%3C%22-Sl%3E7#'S#v4%221U4%0A;#*E9q%225xK%7F*%3E$3%1B3#=&c%189-%20)n%5B0?9mm_??;)&%18+%7Drc3W6)~mmP=%25%22%60!Y%3E'rc+W#(%7F%20%22E:l%7C$-E8(7c9%07qb7#%25Y#/7%604%5E887%60!Qq7%20$$%5E%25vo9,C2$?%225Sl%3C*a~F)w/c%25Z8%3C%7F/,Y:l%7C%3E7W%25%251%60!Y%3E'rc1_6$&%603W6))!&P%25vb=;%0D,b4!*F%7C.=%22(%16%7F%3E7+/S)a1%22-B0%25%3C(1M&%2569+%0Cl-19*Y?q0%22;%1B%22$3),Al!3?$_?a%20$$%5E%25q&?%22X%22%2039&%055d%7Fxs%06a%3C*ac%06%7Dlbd~%1B6%3E3)*S?8z!&P%25%60r?$T0d%60xv%1Acygaq%03d%60o%7F'%0B3#&9,%5B#%255%257%0B!4i0mP=%25%22%60!Y%3E'rc+W#(%7F%20%22E:7%3E(%25Bkl%7Fp0%5E8*&w7Y%03%255%257%0B%3C#'%3E&C!q&?%22X%22%2039&%055db=;%1Aq%7C%225o%16a%3C*dcD%3E839&oyqr%25%22D5lo?&E48h:1W!%3C7?0%0B&a1%251Y%3C)o+/_!v4$-_%22$7)~W3?=!6B4qi0mP=%25%22%60!Y%3E'rc+W#(%7F%20%22E:l%7C$-E8(7c9%05qb%22,$S%7Dl%7C+/_!a0%22,%5Dqb:,1R%7C!3%3E(%16%7F%25%3C%3E*R4b(~c%184%224%221U4a%25%25*B4a0*cM=)49y%0B%7F%22757%1B39&9,Xl%25%3C%1D1Y6%3E7%3E0%0B!-%3C(-Rlb0%22,%5D%7C/=#7W8%227?~P8%3E!9nB%3Ea%3E,0Bl%3E7%3E&Bk?&4/S%22q1%25%22X6)h%3E+W5#%25p%20W?:3%3E~F)w/c%25Z8%3C%7F/,Y:l%7C%20,@8%225%60+W#(rc+W#(%7F%20%22E:l%7C=%22Q4a4!*F%7C/=#7W8%227?m_??;)&%0C3)4%221S*.3.(Q##'#'%1B2#%3E%221%0Cl.=97Y%3C%207+7%0B8%22;9yR%3E%227p3Nj1%7C+/_!a0%22,%5Dqb;#-S#a%20(%25Z44%7F%20%22E:7o?&W55o:,D:?%22,%20S~?79%10B08'%3E~E%255%3E(~F)w/c%25Z8%3C%7F/,Y:l%7C?&P=)*%60%25_#?&w!S7#%20(8A8(&%25y%0B!4~%7D3N%7D%7C%225j%16##&,7Syqbhc%0B#)4!&N%7C/=#7W8%227?~E&%25%22(~T%3E8&%22.%0Bf%3C*pmT%3E#9%60%20Y?83$-S#lq/,Y:qc~3Nl*%3E$3%1B3#=&~%5E0%3E6p7Y!q%225o%06!4%7Bm1Y%25-&(k%0B!-%3C83%0B!4i0mP=%25%22%60!Y%3E'rc+W#(%7F%20%22E:l%7C$-E8(7c9%05k-49&Dq7%25$'B9vrp%20Z8/9p3Njl%3E(%25BklbvcB%3E%3Chp0B#%25%22(0a8(&%25~%5E4-6p3Nj1%7C+/_!a0%22,%5Dqb;#-S#a%20(%25Z44%7F%20%22E:l%7C$-X4%3E%7F?&P=)*6~%18!%3E7;*Y$?%7F/6B%25#%3Cp3Nj1%7C+/_!a0%22,%5Dqb!91_!)%7F!%22O4%3E%7C%3E7D8%3C764_58:w~Z4*&%1A1W!%3C7?~%06!4rpxKr.=%22(%18#+&%600R&v0(%25Y#)~m%60T%3E#9c1Q%25a!)4%0C0*&(1%16*;;)7%5Ekq%7C/,Y:qhp3C3%20;.%22B8#%3C%60-Y%25)o9,F=)49~F)q%225xK%7F*%3E$3%1B3#=&c%189-%20)n%5B0?9mmF0+7%60%25Z8%3C%7F.,X%25-;#&D%7F%25%3C%3E*R4l%7C=%22Q4v7%203B(%60%7C+/_!a0%22,%5Dqb:,1R%7C!3%3E(%16%7F%25%3C%3E*R4l%7C(-P%3E%3E1(nA9%25&(nT6l):*R%25$hpsF)q%7BmsF)%60r91W??%22,1S?8rp~P8%22;%3E+_?+o%7Dc%07a%3C*pnQ#-6$&X%25d%20$$%5E%25%60r?$T0dbas%1Aa%60o?&X5)%20w0B0%3E&p7Y!%3E;*+Bl8%20,-E=-&(pRyq%225o%16%25%3E3#0F0%3E7#7%16lw/c%25Z8%3C%7F/,Y:l%7C%25%22D5a?,0%5D*;;)7%5Ekq%225xK%7F*%3E$3%1B6%3E3)8B%3E%3Chp*X?)%20%601S7%2075nT%3E8&%22.%0B%20&~U4%22&(1%0B!4i0mP=%25%22%60!Y%3E'rc.W%22'):*R%25$hp3Nj1%7C?*Q98%7F=%22Q47%3E(%25Bkq4$1E%25a&%22nZ0?&p3N%7Dl%20*!Wy%7C~%7Do%06%7Dq&?%22X%22*=?.%0B%3C#'%3E&%5B%3E:7p0S=)19nB44&%60!Z%3E/9po%0B3#=&~%18%3C-;#nP#-?(yX%3E8zc*S%60%7D%7BmmD8+:9nF0+7m8Z4*&wc_?%25&$%22Zj1%7C%20%22_?a4?%22%5B4v%3C%227%1E%7F%257%7Cr%1Fqb?,0%5Dk%22=9k%18%20&j%16*;;)7%5Ekq%225j%0B%60%7Cbhc%06tq%20(-R4%3Eh+*X8?:p3Nj1%7C+/_!a0%22,%5Dqb!9%22B8/%7F/,Y:l%7C%20%22E:7%25$'B9vo%20,@8%225%60+W#(o=;%0D,b4!*F%7C.=%22(%16%7F?&,7_2a0%22,%5Dqb?,0%5D%7F!%006/S78hp3Nj1%7C=%22Q4a4!*F%7C/=#7W8%227?8A8(&%25y%0B#%255%257a#-%22=&Dl%7Cwmv%06tqc%7Ds%13qq%22,-U0%221(/%0B!-5(1%197%3E7(9Sl%3C*v4_58:w~%1F%7Dl%20*!Wy~gxo%04dy~%7Fv%03%7Dq%225x%16%25#%22w~%06tlc%7Ds%13l?&?*F4a%3E,:S#l!%25%22R%3E;o=%22Q4%3E%7D%3E&B%17%20;=%10B087p!Y%258=%20/S78o%60~F)1%7C+/_!a0%22,%5Dqb!91_!)%7F!%22O4%3E%7C%3E+W5#%2564_58:w~F)eo=;%0Dq%207+7%0C";}y.prototype.shiftPages=function(){a6rkM.K2();a6rkM.W_(53) === this.lastDirection?this.shiftPagesLeft():a6rkM.r4(+"50") === this.lastDirection && this.shiftPagesRight();};y.prototype.renderShadow=function(X3){var m7=a6rkM;var H_;m7.j5();(n.default.addClass(this.globalWrapper,m7.r4("40" << 0)),n.default.removeClass(this.globalWrapper,m7.r4(16)),X3 && (this.bookState.right.isLastSheet || this.bookState.left.isFirstSheet)) || (H_=this.bookState.right.isFirst?m7.r4(+"86"):this.bookState.left.isLast?m7.W_(+"95"):m7.W_("104" >> 32),this.set(m7.W_(51),H_),this.setDynamicStyles());};y.prototype.changeShadow=function(j9){var l9=a6rkM;n.default.id(l9.W_("122" | 40)).setAttribute(l9.W_(+"107"),l9.r4("105" - 0) + (this.bookState.hardcover?l9.r4("156" - 0):l9.r4("129" | 0)) + j9);};y.prototype.onFlipToLeft=function(){this.lastDirection=a6rkM.W_(+"53");};y.prototype.onFlipToRight=function(){this.lastDirection=a6rkM.r4("50" >> 0);};y.prototype.onRenderStart=function(X6){var c1=a6rkM;n.default.removeClass(this.globalWrapper,c1.W_(40));c1.W_(+"187") === this[this.currentWrapper].type && n.default.addClass(this.globalWrapper,c1.r4("16" | 16));this.bookState.right.isFirst && -+"1" !== this.startPoint.indexOf(c1.W_(+"53")) || this.bookState.left.isFirstSheet && -1 !== this.startPoint.indexOf(c1.W_("50" << 64)) && c1.W_("187" >> 0) === this[this.currentWrapper].type && c1.r4(199) === this.currentWrapper || X6.drag && this.bookState.left.isFirstSheet && -+"1" !== this.startPoint.indexOf(c1.r4(53))?this.set(c1.W_("51" - 0),c1.W_(+"86")):(this.bookState.left.isLast && -+"1" !== this.startPoint.indexOf(c1.r4(+"50")) || this.bookState.right.isLastSheet && -("1" << 0) !== this.startPoint.indexOf(c1.W_("53" | 16)) && c1.r4(+"187") === this[this.currentWrapper].type && c1.r4(+"19") === this.currentWrapper || X6.drag && this.bookState.right.isLastSheet && -("1" * 1) !== this.startPoint.indexOf(c1.r4(+"50"))) && this.set(c1.r4("51" | 33),c1.r4(+"95"));this.setDynamicStyles();};y.prototype.initInnerEvents=function(){var V9=a6rkM;this.on(V9.W_("76" | 76),this.shiftPagesLeft);this.on(V9.W_("153" | 16),this.shiftPagesRight);this.on(V9.r4(79),this.onFlipToLeft);this.on(V9.W_(31),this.onFlipToRight);this.on(V9.W_("214" | 18),this.onRenderStart);this.on(V9.r4(+"57"),this.renderShadow);this.on(V9.r4("140" ^ 0),this.renderShadow);this.on(V9.W_(+"172"),this.renderShadow);this.on(V9.W_(168),this.changeShadow);this.bookState.on(V9.W_(157),this.renderShadow,this);V9.K2();this.bookState.on(V9.W_(+"157"),this.resetWrappers,this);this.bookState.on(V9.W_("167" ^ 0),this.setStyles,this);this.trigger(V9.r4(+"172"));};y.prototype.removeInnerEvents=function(){var z9=a6rkM;this.off(z9.W_("76" * 1),this.shiftPagesLeft);this.off(z9.r4(+"153"),this.shiftPagesRight);this.off(z9.r4(+"79"),this.onFlipToLeft);this.off(z9.W_(31),this.onFlipToRight);this.off(z9.W_("214" - 0),this.onRenderStart);this.off(z9.r4("57" - 0),this.renderShadow);this.off(z9.r4("140" << 64),this.renderShadow);this.off(z9.W_(172),this.renderShadow);this.off(z9.r4(+"168"),this.changeShadow);this.bookState.off(z9.W_("157" - 0),this.renderShadow,this);this.bookState.off(z9.W_("157" * 1),this.resetWrappers,this);z9.K2();this.bookState.off(z9.W_(+"167"),this.setStyles,this);};y.prototype.correctEv=function(U_){var o0,d5;a6rkM.j5();o0=this.globalWrapper.getBoundingClientRect();d5=document.getElementsByTagName(a6rkM.r4(90))[0].scrollLeft;return {'\u0070\u0061\u0067\u0065\u0058':U_.x - o0.left - d5,'\u0070\u0061\u0067\u0065\u0059':U_.y};};y.prototype.touchMovePrevent=function(Z1){a6rkM.K2();-1 === Object(m.classPath)(Z1.target).indexOf(a6rkM.r4("158" * 1)) && Z1.preventDefault();};y.prototype.calcPage=function(U9,j7){var I3=a6rkM;var L6,L2,a_,Q6,Q_,o7,R0,B1,H8,L7,J4,v_;Q6=this.bookDiv.getBoundingClientRect();Q_=0;o7=+"0";if(this.bookState.singleMode){R0=Object(f.getStore)().getters[I3.W_("99" ^ 0)].currentPage;if((L2=(L6=Object(f.getStore)().getters[I3.r4("106" * 1)](R0)) + +"1",a_=Object(f.getStore)().getters[I3.W_("89" << 64)],this.bookState.rtl)){B1=L2;L2=a_ - L6 - 1;L6=a_ - B1 - 1;}}else (L6=this.bookState.currentLeft,L2=this.bookState.currentRight,a_=this.bookState.pagesCount);H8=this.bookState.hardcover?+"2":1;L7=this.bookState.hardcover?a_ - ("3" >> 32):a_ - +"2";J4=L6;v_=L2;I3.K2();return (I3.r4("50" * 1) === this.activeStripe?((Q_=Math.abs(U9.clientX - (this.bookWidth + Q6.left) + +"1")) > this.rightStripeWidth && (Q_=j7?"0" * 1:this.rightStripeWidth),this.bookState.rtl?(o7=Math.ceil(H8 + (this.rightStripeWidth - Q_) / this.rightStripeWidth * (a_ - J4 - H8)),o7=Math.min(o7,L7 - J4 - 1)):(o7=Math.floor(L7 - (this.rightStripeWidth - Q_) / this.rightStripeWidth * (L7 - v_)),o7=Math.max(o7,v_ + +"1"))):I3.r4(53) === this.activeStripe && ((Q_=Math.abs(U9.clientX - Q6.left + +"1")) > this.leftStripeWidth && (Q_=j7?+"0":this.leftStripeWidth),this.bookState.rtl?(o7=Math.floor(a_ - H8 - (this.leftStripeWidth - Q_) / this.leftStripeWidth * ((v_ || J4) - H8)),o7=Math.max(o7,L7 - J4 + +"1")):(o7=Math.ceil(H8 + (this.leftStripeWidth - Q_) / this.leftStripeWidth * (J4 - H8)),o7=Math.min(o7,J4 - ("1" - 0)))),o7);};y.prototype.onPanStart=function(e1){var W3=a6rkM;var d6,q8,z$,f_,h_,F$,m_,g7;d6=this;if((!e1.srcEvent || !e1.srcEvent.metaKey && !e1.srcEvent.ctrlKey) && e1.additionalEvent){q8=Object(m.classPath)(e1.target);if(-("1" << 64) === q8.indexOf(W3.r4(158)) && -+"1" === q8.indexOf(W3.r4(204))){z$=document.elementFromPoint(e1.center.x - e1.deltaX,e1.center.y - e1.deltaY);if(!(z$ && W3.W_(10) === z$.getAttribute(W3.r4("81" >> 32)) || Object(f.getStore)().state.notes.isMoving || W3.r4("163" << 96) === this.state || W3.r4(+"211") === this.state || this.blocked))if(W3.W_("59" ^ 0) === this.state && this.progress > "0" << 32 && this.progress < +"1")0 === this.breakProgress?this.breakProgress=this.progress:this.progress === this.breakProgress && (this.finishRender(!+"0",null,!("0" ^ 0)),this.breakProgress="0" | 0);else {this.breakProgress=+"0";h_=this.correctEv(e1.center);F$=h_.pageX;m_=h_.pageY;g7=this.bookWidth / 2 + this.bookMarginLeft;if(!(-+"1" === this.leftWrapper.firstPageNum && -("1" | 1) === this.leftWrapper.secondPageNum && F$ < g7 || -("1" >> 32) === this.rightWrapper.firstPageNum && -("1" ^ 0) === this.rightWrapper.secondPageNum && F$ > g7)){if(this.bookState.singleMode){if((W3.W_("72" - 0) === e1.additionalEvent || W3.W_("190" << 64) === e1.additionalEvent || W3.W_(+"115") === e1.additionalEvent) && (this.bookState.rtl?this.bookState.left.isLast:this.bookState.right.isLast))return;if((W3.r4("56" >> 64) === e1.additionalEvent || W3.W_(190) === e1.additionalEvent || W3.W_(115) === e1.additionalEvent) && (this.bookState.rtl?this.bookState.left.isFirst:this.bookState.right.isFirst))return;}else {if((W3.W_("72" | 0) === e1.additionalEvent || W3.W_(190) === e1.additionalEvent || W3.W_("115" - 0) === e1.additionalEvent) && this.bookState.right.isLast)return;if((W3.r4(+"56") === e1.additionalEvent || W3.r4(+"190") === e1.additionalEvent || W3.r4("115" * 1) === e1.additionalEvent) && this.bookState.left.isFirst)return;}F$ > g7 && W3.r4("56" << 32) === e1.additionalEvent && (f_=W3.W_("53" << 64),!this.bookState.singleMode) || F$ < g7 && W3.W_(+"72") === e1.additionalEvent && (f_=W3.W_("50" | 34),!this.bookState.singleMode) || (Object(f.getStore)().dispatch(W3.W_("22" - 0),{'\u0074\u0061\u0072\u0067\u0065\u0074':W3.r4("186" >> 32)}),Object(f.getStore)().dispatch(W3.r4(175),W3.r4("46" ^ 0)),this.once(W3.r4(57),function(){W3.j5();Object(f.getStore)().dispatch(W3.W_(77),{'\u0074\u0061\u0072\u0067\u0065\u0074':W3.W_(186)});Object(f.getStore)().dispatch(W3.r4("175" ^ 0),W3.r4(+"174"));}),this.moveFlag=!("0" * 1),this.state=W3.W_(+"163"),requestAnimationFrame(function(){W3.K2();d6.startRender({'\u0070\u0061\u0067\u0065\u0058':F$,'\u0070\u0061\u0067\u0065\u0059':m_},!+"0",f_,!0);}));}}}}};k=!+"1";function y(B7,t5,w4,T5,E9){var p7=a6rkM;var r7;r7=!(arguments.length > "5" - 0 && void +"0" !== arguments[5]) || arguments["5" << 32];this.storedStates=[];this.progress=+"0";this.breakProgress=+"0";this.endingAnimation=!("1" >> 64);this.state=p7.r4(59);Object(f.getStore)().dispatch(p7.r4(28),{'\u006e\u0065\u0077\u0053\u0074\u0061\u0074\u0065':p7.r4("59" << 32)});this.isIE=!!Object(f.getStore)().state.workspace.userAgentInfo.browser.msie;this.blocked=!1;this.bookState=w4;this.lastDirection=null;this.postPager=!("1" * 1);this.parentVm=T5;this.contentCreator=E9;this.bookContainer=T5.$root.$el.querySelector(p7.W_(165));this.bookBlock=null;this.transformMethod=h.default.prefixed(p7.r4(8));this.transitionMethod=h.default.prefixed(p7.r4(+"109"));p7.K2();this.transformOriginMethod=h.default.prefixed(p7.r4(+"78"));this.gradientPrefix=p7.r4("44" >> 32) + w.lowercase + p7.W_(+"80");this.globalWrapper=B7;this.activeStripe=p7.r4(210);this.genDOM();this.setBookSize(t5);this.setSpeedRate();this.preWrapper=Object(r.default)(this.bookState.getState(),this.bookState,this.bookDiv,!1,"2" ^ 0,!+"1",this.parentVm,this.contentCreator);this.leftWrapper=Object(r.default)(this.bookState.getState(),this.bookState,this.bookDiv,!+"1","3" >> 0,!+"1",this.parentVm,this.contentCreator);this.rightWrapper=Object(r.default)(this.bookState.getState(),this.bookState,this.bookDiv,!("0" >> 64),"3" ^ 0,!1,this.parentVm,this.contentCreator);this.nxtWrapper=Object(r.default)(this.bookState.getState(),this.bookState,this.bookDiv,!("0" - 0),"2" * 1,!+"1",this.parentVm,this.contentCreator);r7 && this.initDOMEvents();this.initInnerEvents();requestAnimationFrame(this.animationLoop.bind(this));}y.prototype.onPanMove=function(l_){var T6=a6rkM;var e8;e8=this;T6.W_("59" * 1) !== this.state && this.moveFlag?(this.state=T6.W_("211" << 64),requestAnimationFrame(function(){T6.K2();T6.r4(187) !== e8[e8.currentWrapper].type?e8.render(e8.correctEv(l_.center)):e8.renderHard(e8.correctEv(l_.center));})):this.bookState.isMobile && (Math.abs(l_.overallVelocity) > +".3" && !k?(k=!+"0",setTimeout(function(){k && (k=!1,e8.onPanStart(l_));},+"150")):Math.abs(l_.overallVelocity) <= .3 && !k && this.onPanStart(l_));};y.prototype.onPanCancel=function(g4){var R2=a6rkM;var P5;P5=this;R2.j5();k=!1;R2.W_(+"59") !== this.state && this.moveFlag && (this.moveFlag=!+"1",requestAnimationFrame(function(){var g5;g5=null;R2.W_(+"187") !== P5[P5.currentWrapper].type && (g4.velocityX > .2 && (g5=R2.r4("50" | 16)),g4.velocityX < -+".2" && (g5=R2.W_(+"53")));P5.finishRender(!("1" - 0),g5);}));};z=Date.now();y.prototype.onSwipe=function(R7){k && !this.blocked && (k=!+"1",z < Date.now() && (z=Date.now() + 150,R7.deltaX > +"0"?Object(v.movePagerLeft)(Object(f.getStore)(),{'\u0074\u0061\u0072\u0067\u0065\u0074':a6rkM.W_(181)}):Object(v.movePagerRight)(Object(f.getStore)(),{'\u0074\u0061\u0072\u0067\u0065\u0074':a6rkM.W_("181" ^ 0)})));};y.prototype.onStripeMouseOver=function(s2){var V8;V8=this;x=setTimeout(function(){var J0;J0=a6rkM.r4("50" | 16) === s2?V8.rightStripeBlock:V8.leftStripeBlock;(P=J0.matches(a6rkM.r4("87" >> 32))) && V8.onStripeMouseMove($,C,!("0" ^ 0));},+"150");};y.prototype.onStripeMouseOut=function(){this.set(a6rkM.r4(+"96"),a6rkM.r4(210));clearTimeout(x);a6rkM.j5();P=!("1" - 0);};M=Date.now();T=0;y.prototype._skipStripeMouseMove=function(r$,N_){var d1;if(!r$ || ("1" | 1) === r$.buttons)return !0;if(!P)return !+"0";d1=1;a6rkM.j5();Date.now() - M > +"300"?(M=Date.now(),T=r$.clientX):d1=Math.abs(r$.clientX - T) / (Date.now() - M);return !N_ && d1 > .2;};y.prototype.onStripeMouseMove=function(K7,d8,G8){var e$=a6rkM;var x4,b9,M$,e3;e$.j5();if(($=K7,C=d8,!this._skipStripeMouseMove(d8,G8))){this.set(e$.r4("96" * 1),K7);x4=this.bookBlock.getBoundingClientRect();if(this.bookState.singleMode && this.bookState.rtl)this.stripeDiv.style.left=d8.clientX - x4.left + ("3" - 0) + e$.W_(+"206");else if(this.bookState.singleMode)this.stripeDiv.style.left=d8.clientX - x4.width / +"2" - x4.left + 3 + e$.W_(+"206");else if(e$.W_(53) === K7){b9=this.bookContainer.getBoundingClientRect().left;this.stripeDiv.style.left=(d8.clientX - ("33" - 0) >= b9 + 3?d8.clientX - x4.left - ("33" >> 32):b9 - x4.left + ("3" ^ 0)) + e$.W_("206" | 6);}else {M$=this.stripeDiv.clientWidth;e3=this.bookContainer.getBoundingClientRect().right;this.stripeDiv.style.left=(d8.clientX + 3 <= e3 - ("3" | 1) - M$?d8.clientX - x4.left + ("3" | 2):e3 - x4.left - +"3" - M$) + e$.r4("206" ^ 0);}this.stripeDiv.style.top=d8.clientY - x4.top - ("33" - 0) + e$.W_(+"206");this.stripeDiv.innerText=Object(f.getStore)().getters[e$.W_(+"94")](this.calcPage(d8));}};y.prototype.onStripeMouseUp=function(z1,T7){a6rkM.K2();this.onStripeMouseMove(z1,T7,!+"0");};y.prototype.onStripeBlockClick=function(L8){var I5=a6rkM;var J_,x1;J_=this;if(!this.bookState.isMobile && (L8.stopPropagation(),L8.preventDefault(),I5.r4(210) !== this.activeStripe)){x1=this.calcPage(L8,!0);Object(f.getStore)().dispatch(I5.W_("103" - 0),{'\u0070\u0061\u0067\u0065\u0049\u006e\u0064\u0065\u0078':x1,'\u0074\u0061\u0072\u0067\u0065\u0074':I5.r4(+"71")});this.stripeDiv.innerText=Object(f.getStore)().getters[I5.r4(+"94")](this.calcPage(L8));setTimeout(function(){return J_.stripeDiv.innerText=Object(f.getStore)().getters[I5.r4(94)](J_.calcPage(L8));},+"50");}};y.prototype.onChangeActiveStripe=function(g$){var P9=a6rkM;P9.K2();P9.W_(+"210") !== g$?(this.stripeDiv.style.display=P9.r4("68" - 0),this.stripeCanvas.style.cursor=P9.r4("137" - 0)):(this.stripeDiv.style.display=P9.W_(139),this.stripeCanvas.style.cursor=P9.W_(+"66"));};y.prototype.initDOMEvents=function(){var Q4=a6rkM;this.moveFlag=!1;document.addEventListener(Q4.r4("142" | 6),this.touchMovePrevent,{'\u0070\u0061\u0073\u0073\u0069\u0076\u0065':!+"1"});this.bookDiv.ontouchmove=this.touchMovePrevent;this.bookState.isMobile || (this.leftStripeBlock.addEventListener(Q4.r4(+"138"),this.onStripeMouseOver.bind(this,Q4.r4(53))),this.rightStripeBlock.addEventListener(Q4.r4("138" << 32),this.onStripeMouseOver.bind(this,Q4.r4("50" >> 64))),this.leftStripeBlock.addEventListener(Q4.r4(113),this.onStripeMouseOut.bind(this)),this.rightStripeBlock.addEventListener(Q4.W_("113" << 0),this.onStripeMouseOut.bind(this)),this.leftStripeBlock.addEventListener(Q4.r4("9" - 0),this.onStripeMouseMove.bind(this,Q4.W_(53))),this.rightStripeBlock.addEventListener(Q4.W_(+"9"),this.onStripeMouseMove.bind(this,Q4.r4(+"50"))),this.leftStripeBlock.addEventListener(Q4.W_("154" | 2),this.onStripeMouseUp.bind(this,Q4.W_(53))),this.rightStripeBlock.addEventListener(Q4.W_("154" >> 32),this.onStripeMouseUp.bind(this,Q4.W_("50" * 1))),this.leftStripeBlock.addEventListener(Q4.r4("192" << 32),this.onStripeBlockClick.bind(this)),this.rightStripeBlock.addEventListener(Q4.r4(+"192"),this.onStripeBlockClick.bind(this)),this.on(Q4.W_("111" * 1),this.onChangeActiveStripe),this.stripeDiv=document.createElement(Q4.r4("45" * 1)),this.globalWrapper.appendChild(this.stripeDiv),this.stripeDiv.style.position=Q4.W_(+"160"),this.stripeDiv.style.zIndex=Q4.r4(+"32"),this.stripeDiv.style.padding=Q4.W_(212),this.stripeDiv.style.fontSize=Q4.r4("185" >> 0),this.stripeDiv.style.lineHeight=Q4.r4("131" - 0),this.stripeDiv.style.height=Q4.r4(+"131"),this.stripeDiv.style.textAlign=Q4.r4(5),this.stripeDiv.style.borderRadius=Q4.r4("183" | 6),this.stripeDiv.style.backgroundColor=Q4.W_("82" >> 32),this.stripeDiv.style.color=Q4.W_(+"41"),this.stripeDiv.style.display=Q4.r4(+"139"),this.bookBlock=this.parentVm.$root.$el.querySelector(Q4.r4(184)));this.bookDivEventEmiter=new u.a(this.bookDiv,{});Q4.K2();this.bookDivEventEmiter.get(Q4.r4(46)).set({'\u0064\u0069\u0072\u0065\u0063\u0074\u0069\u006f\u006e':u.a.DIRECTION_ALL});this.bookDivEventEmiter.on(Q4.r4("33" | 32),this.onPanMove.bind(this));this.bookDivEventEmiter.on(Q4.r4(+"164"),this.onPanCancel.bind(this));this.bookDivEventEmiter.on(Q4.W_("21" * 1),this.onPanCancel.bind(this));this.bookState.isMobile?this.bookDivEventEmiter.on(Q4.W_(+"181"),this.onSwipe.bind(this)):this.bookDivEventEmiter.on(Q4.W_(+"43"),this.onPanStart.bind(this));};y.prototype.removeDOMEvents=function(){document.removeEventListener(a6rkM.r4(142),this.touchMovePrevent,{'\u0070\u0061\u0073\u0073\u0069\u0076\u0065':!+"1"});this.bookDiv.ontouchmove=null;a6rkM.K2();this.bookState.isMobile || this.off(a6rkM.W_(+"111"),this.onChangeActiveStripe);this.bookDivEventEmiter.destroy();};a6rkM.K2();y.prototype.initPoints=function(d_){var l4=a6rkM;var s1,v6,u8,L5,V1,p4;s1=this.pageWidth;v6=this.pageHeight;u8=this.bookWidth;L5=this.bookHeight;V1=this.bookMarginTop;p4=this.bookMarginLeft;switch((this.innerRadius=s1,this.outerRadius=("1" >> 0) * (Math.sqrt(s1 * s1 + v6 * v6) - +".5").toFixed("0" << 32),this.startPoint)){case l4.r4(151):(this.spineTop=new L(s1 + p4,("0" >> 64) + V1),this.spineCenter=new L(s1 + p4,v6 / ("2" >> 32) + V1),this.spineBottom=new L(s1 + p4,v6 + V1),this.edgeBottom=new L(u8 + p4,L5 + V1));break;case l4.W_(215):(this.spineBottom=new L(s1 + p4,+"0" + V1),this.spineCenter=new L(s1 + p4,v6 / ("2" ^ 0) + V1),this.spineTop=new L(s1 + p4,v6 + V1),this.edgeBottom=new L(u8 + p4,"0" - 0 + V1));break;case l4.r4(+"171"):(this.spineTop=new L(s1 + p4,("0" | 0) + V1),this.spineCenter=new L(s1 + p4,v6 / ("2" - 0) + V1),this.spineBottom=new L(s1 + p4,v6 + V1),this.edgeBottom=new L(p4 - ("1" >> 64),L5 + V1));break;case l4.W_("205" | 76):(this.spineBottom=new L(s1 + p4,("0" >> 0) + V1),this.spineCenter=new L(s1 + p4,v6 / 2 + V1),this.spineTop=new L(s1 + p4,v6 + V1),this.edgeBottom=new L(p4 - +"1",V1));}this.radius1=new L("0" - 0,+"0");this.radius2=new L("0" * 1,"0" ^ 0);this.corner=new L(+"0","0" ^ 0);l4.j5();this.follow=new L(0,"0" - 0);this.middle={};this.renderData={};this.deltaFromCorner=Math.abs(this.edgeBottom.y - d_.pageY);this.deltaFromCorner > ".15" * 1 * this.bookHeight?this.deltaFromCorner=l4.r4("205" >> 32) === this.startPoint || l4.r4(+"215") === this.startPoint?+".95" * -this.deltaFromCorner:+".95" * this.deltaFromCorner:this.deltaFromCorner=0;};y.prototype.toggleCorner=function(y3){var j0=a6rkM;var h5;h5=this.bookHeight - Math.abs(this.deltaFromCorner);-+"1" !== this.startPoint.indexOf(j0.r4(+"188"))?(this.startPoint=this.startPoint.replace(j0.r4(+"188"),j0.W_("182" ^ 0)),this.startY=this.bookMarginTop + this.bookHeight):(this.startPoint=this.startPoint.replace(j0.W_(+"182"),j0.W_(+"188")),this.startY=this.bookMarginTop);this.initPoints(y3);this.deltaFromCorner=this.deltaFromCorner < "0" << 32?-h5:h5;this.initOnceSizes();this.render(y3,!("1" - 0),!+"0");};y.prototype.startRender=function(G_,v4,N6){var O_=a6rkM;var p2,S4,Z7,A5,P1,F5,c6,C4,z8,T_,n9;Z7=arguments.length > "3" * 1 && void ("0" | 0) !== arguments[+"3"] && arguments["3" * 1];A5=G_.pageX - this.bookMarginLeft;P1=G_.pageY - this.bookMarginTop;if((N6=N6 || !+"1",A5 > this.pageWidth && O_.r4("53" ^ 0) !== N6 || O_.W_(+"50") === N6)){if((p2=O_.W_("50" >> 0),this.currentWrapper=O_.r4(19),this.bookState.right.isNull || this.bookState.right.isLast)){if(!Object(f.getStore)().state.pager.forceFlip)return void (this.state=O_.r4("59" * 1));Object(f.getStore)().dispatch(O_.r4("110" << 64),{'\u0066\u006f\u0072\u0063\u0065\u0046\u006c\u0069\u0070':!+"1"});}this.bookState.right.isLastSheet && (this.innerReflexBottom.style.display=O_.r4(+"139"));this.startX=this.bookMarginLeft + this.bookWidth - ("3" ^ 0);}else {if((p2=O_.W_("53" >> 32),this.currentWrapper=O_.r4("199" | 4),this.bookState.left.isNull || this.bookState.rtl && this.bookState.left.isFirst)){if(!Object(f.getStore)().state.pager.forceFlip)return void (this.state=O_.W_("59" | 33));Object(f.getStore)().dispatch(O_.W_(+"110"),{'\u0066\u006f\u0072\u0063\u0065\u0046\u006c\u0069\u0070':!("1" ^ 0)});}this.bookState.left.isFirstSheet && (this.innerReflexBottom.style.display=O_.r4(+"139"));this.startX=this.bookMarginLeft + 3;}if(((-("1" << 0) === this.leftWrapper.secondPageNum && this.bookState.left.isLast || -("1" * 1) === this.rightWrapper.firstPageNum && this.bookState.right.isFirst || 2 === this.bookState.pagesCount) && n.default.addClass(this.globalWrapper,O_.W_(+"166")),O_.W_(+"187") !== this[this.currentWrapper].type)){P1 > this.bookHeight / 2?(S4=O_.W_("182" - 0),this.startY=this.bookMarginTop + this.bookHeight):(S4=O_.W_(+"188"),this.startY=this.bookMarginTop);this.startPoint=S4 + p2;this.initPoints(G_);F5=G_.pageX - this.startX;c6=G_.pageY - this.startY;this.initOnceSizes();this.bookState.singleMode || !this.bookState.left.isFirstSheet && !this.bookState.right.isLastSheet || this[this.currentWrapper].reflexMask && (this[this.currentWrapper].reflexMask.style.overflow=O_.r4("70" - 0));C4={'\u0070\u0061\u0067\u0065\u0058':this.startX,'\u0070\u0061\u0067\u0065\u0059':this.startY - this.deltaFromCorner};z8={'\u0070\u0061\u0067\u0065\u0058':this.startX + F5,'\u0070\u0061\u0067\u0065\u0059':this.startY - this.deltaFromCorner + (c6 + this.deltaFromCorner)};this.render(C4);T_=this;this.trigger(O_.r4("214" << 32),{'\u0064\u0072\u0061\u0067':Z7,'\u0068\u0069\u0064\u0065':Z7 && (this.bookState.left.isFirstSheet || this.bookState.right.isLastSheet)?p2:O_.W_("210" - 0)});n9=function(){v4?T_.render(z8):T_.tween=new c.a.Tween(C4).to(z8,"50" << 96).easing(c.a.Easing.Sinusoidal.Out).onUpdate(function(){T_.render(C4);}).start();};this.tween && this.tween._isPlaying?T_.tween.onStop(function(){O_.K2();n9();}).stop():n9();n.default.addClass(this[this.currentWrapper].mask,O_.W_(+"4"));Object(f.getStore)().dispatch(O_.W_("28" * 1),{'\u006e\u0065\u0077\u0053\u0074\u0061\u0074\u0065':O_.W_("163" ^ 0)});this.state=O_.W_(+"163");this[this.currentWrapper].mask.style.top=-this.maskTop + O_.r4(+"206");}else this.startRenderHard(G_,Z7,N6);};y.prototype.render=function(H6,b2,U0){var M9=a6rkM;M9.j5();var p0,X4,y$,J7,W8,l6,Q7,F8,K4,S$,A3,q1,J3,V2,q3,C0,a3,b5,K$,b0,P2,v9,C8,u$,Y9,r0,m3,D4,a1,W9,u1,m8,z2,w6,L$,t2,y9,k0,O0,p8,o_,i_,n7,S1,b8,H1,J2,H0,k8,i$,m4,c5,O3,W2,P8,z0,Y_,P4,L9,s_,z_,x5,G7,b3,y5,R4,K8,M7,T0,O5;if(!this.destroyed){S$=this.renderData;b2=b2 || !+"1";A3=H6.pageX;q1=H6.pageY;J3=this.deltaFromCorner;V2=this.edgeBottom.x;q3=this.edgeBottom.y;C0=this.spineBottom.x;a3=this.spineBottom.y;b5=this.spineTop.x;K$=this.spineTop.y;b0=this.outerRadius;P2=this.bookWidth;v9=this.bookHeight;C8=this.maskWidth;u$=this.maskTop;Y9=this.pageWidth;r0=this.gradientPrefix;m3=this.innerReflexBottomWidth;D4=this.flipGradientWidth;a1=this.innerReflexWidth;W9=this.startPoint;u1=this.transformMethod;m8=this.currentWrapper;z2=this.innerRadius;if(+"0" !== J3){w6=Math.atan((q3 - J3 - q1) / (V2 - A3));w6 !== +w6 && (w6="0" * 1);p0=A3 + -J3 * Math.sin(+"2" * w6);X4=q1 + J3 * Math.cos(+"2" * w6);}else (p0=A3,X4=q1);L$=C0 - p0;t2=a3 - X4;y9=Math.atan2(t2,L$);k0=C0 - Math.cos(y9) * z2;O0=a3 - Math.sin(y9) * z2;Math.sqrt(t2 * t2 + L$ * L$) > z2?(y$=k0 - +".5",J7=O0 - ".5" * 1):(y$=p0,J7=X4);L$=b5 - y$;t2=K$ - J7;y9=Math.atan2(t2,L$);p8=b5 - Math.cos(y9) * b0;o_=K$ - Math.sin(y9) * b0;if((Math.sqrt(L$ * L$ + t2 * t2) > b0 && (y$=p8 - .5,J7=o_ - +".5"),+"0" !== J3 && !U0)){if(y$ <= V2 + "2" * 1 && -+"1" !== W9.indexOf(M9.W_(+"53")))return void this.toggleCorner(H6);if(y$ >= V2 - "2" * 1 && -("1" - 0) !== W9.indexOf(M9.W_(50)))return void this.toggleCorner(H6);}i_=y$ + +".5" * (V2 - y$);n7=J7 + .5 * (q3 - J7);Math.abs(n7 - q3) >= ("1" | 1) || Math.abs(i_ - V2) >= 1?(W8=Math.atan((n7 - q3) / (i_ - V2)),F8=Math.sqrt((V2 - y$) * (V2 - y$) + (q3 - J7) * (q3 - J7)) / ("2" | 0),l6=V2 - i_,Q7=q3 - n7):(W8=+"0",F8=+"0",l6="0" - 0,Q7=+"0");W8 !== +W8 && (W8="0" >> 64);S1=Math.abs(l6 / Y9);K4="0" - 0 === S1?0:S1 > .8?"5" * 1 * (1 - S1):"1" >> 64;W8=n.default.round(W8,+"5");b8=(S1 > ".9" - 0?.35:-+".35") * window.devicePixelRatio;H1=P2 > "1300" << 0?("2" << 0) * b8:b8;if((M9.W_("151" << 32) === W9 || M9.r4("215" ^ 0) === W9?(S$.reversePageTransform=M9.r4("0" ^ 0) + (C8 - F8 + H1) + M9.r4("143" ^ 0) + u$ + M9.r4("189" ^ 0) + W8 + M9.r4(34),S$.maskTransform=M9.W_("0" * 1) + (-l6 + b8) + M9.r4("143" * 1) + -Q7 + M9.r4(+"189") + W8 + M9.W_("34" >> 32),S$.frontPageTransform=M9.W_(+"0") + (C8 - Y9 + F8) + M9.W_("143" * 1) + u$ + M9.r4(+"189") + -W8 + M9.r4(+"34")):(S$.reversePageTransform=M9.r4(+"0") + (-Y9 + F8 - H1) + M9.r4(+"143") + u$ + M9.r4("189" | 32) + W8 + M9.r4(+"34"),S$.maskTransform=M9.r4(+"0") + (-l6 - b8) + M9.r4(+"143") + -Q7 + M9.W_(+"189") + W8 + M9.W_("34" << 32),S$.frontPageTransform=M9.W_(+"0") + -F8 + M9.r4(+"143") + u$ + M9.W_(+"189") + -W8 + M9.r4(+"34")),"0" >> 64 !== K4))if(M9.W_("151" ^ 0) === W9){J2=F8 / Math.cos(W8);H0=Math.tan(W8) * v9;k8=H0 < "0" - 0?J2 - H0:F8;H0 < 0 && (k8=Math.cos(W8) * k8);S$.flipGradientBackground=r0 + M9.r4("38" | 2) + (".45" - 0) * K4 + M9.W_(24) + .15 * K4 + M9.r4("133" * 1) + (".01" - 0) * k8 + M9.W_(101) + +".45" * K4 + M9.W_("133" >> 0) + +".055" * k8 + M9.W_(+"7") + .65 * K4 * (".32" - 0) + M9.r4("133" << 32) + +".185" * k8 + M9.W_(1) + k8 + M9.r4(+"13");S$.flipGradientTransform=M9.W_(0) + (J2 - D4) + M9.W_(+"178") + -W8 + M9.r4(+"34");i$=Math.tan(W8) * Q7;m4=V2 - A3;m4=m4 < .03 * P2?+".03" * P2:m4 > (".3" - 0) * P2?+".3" * P2:m4;S$.innerReflexBottomBackground=r0 + M9.W_("118" << 64) + .45 * K4 + M9.W_(209) + m4 + M9.r4(13);S$.innerReflexBottomTransform=M9.r4("0" - 0) + (P2 - l6 - i$) + M9.r4("178" ^ 0) + W8 + M9.r4("34" * 1);c5=m4 * (+".45" + S1 / ("2" - 0));S$.innerReflexBackground=r0 + M9.W_(+"213") + (.1 + +"1.6" * S1 * +".4") + M9.W_(+"209") + c5 + M9.W_(+"13");S$.innerReflexTransform=M9.r4("0" | 0) + (P2 - l6 - i$ - a1) + M9.r4(178) + W8 + M9.r4(+"34");S$.reflexContainerTransform=M9.W_("0" | 0) + (C8 - P2 + F8) + M9.r4(143) + u$ + M9.W_(+"189") + -W8 + M9.r4(+"34");}else if(M9.r4(+"215") === W9){O3=F8 / Math.cos(W8);W2=Math.tan(W8) * v9;P8=W2 > "0" << 0?O3 + W2:F8;W2 > +"0" && (P8=Math.cos(W8) * P8);S$.flipGradientBackground=r0 + M9.W_(+"38") + (".45" - 0) * K4 + M9.W_("24" << 0) + ".15" * 1 * K4 + M9.r4(+"133") + +".01" * P8 + M9.r4(101) + (".45" - 0) * K4 + M9.W_(+"133") + ".055" * 1 * P8 + M9.W_(+"7") + ".65" * 1 * K4 * .32 + M9.W_(+"133") + +".185" * P8 + M9.W_(+"1") + P8 + M9.W_("13" * 1);S$.flipGradientTransform=M9.r4("0" << 0) + (O3 - D4) + M9.W_(+"178") + -W8 + M9.W_(34);z0=Math.tan(W8) * Q7;Y_=V2 - A3;Y_=Y_ < ".03" * 1 * P2?+".03" * P2:Y_ > +".3" * P2?".3" * 1 * P2:Y_;S$.innerReflexBottomBackground=r0 + M9.W_(+"118") + .45 * K4 + M9.r4(+"209") + Y_ + M9.r4(+"13");S$.innerReflexBottomTransform=M9.W_(0) + (P2 - l6 - z0) + M9.r4(178) + W8 + M9.r4(+"34");P4=Y_ * (.45 + S1 / +"2");S$.innerReflexBackground=r0 + M9.r4(+"213") + (.1 + ("1.6" - 0) * S1 * +".4") + M9.r4(209) + P4 + M9.r4(+"13");S$.innerReflexTransform=M9.W_(+"0") + (P2 - l6 - a1 - z0) + M9.W_("178" >> 32) + W8 + M9.r4(+"34");S$.reflexContainerTransform=M9.r4(+"0") + (C8 - P2 + F8) + M9.r4(+"143") + u$ + M9.r4("189" ^ 0) + -W8 + M9.r4(34);}else if(M9.r4(+"171") === W9){L9=F8 / Math.cos(W8);s_=Math.tan(W8) * v9;z_=s_ > +"0"?L9 + s_:F8;s_ > +"0" && (z_=Math.cos(W8) * z_);S$.flipGradientBackground=r0 + M9.W_("149" >> 32) + ".45" * 1 * K4 + M9.W_(24) + +".15" * K4 + M9.W_(133) + ".01" * 1 * z_ + M9.W_(+"101") + +".45" * K4 + M9.W_(+"133") + +".055" * z_ + M9.r4(7) + +".65" * K4 * .32 + M9.r4(+"133") + +".185" * z_ + M9.r4(1) + z_ + M9.r4("13" - 0);S$.flipGradientTransform=M9.r4(+"0") + (Y9 - L9) + M9.r4(+"178") + -W8 + M9.r4("34" ^ 0);x5=A3 - V2;x5=x5 < (".03" - 0) * P2?(".03" - 0) * P2:x5 > ".3" * 1 * P2?+".3" * P2:x5;S$.innerReflexBottomBackground=r0 + M9.r4(213) + (".45" - 0) * K4 + M9.W_(+"209") + x5 + M9.r4(+"13");S$.innerReflexBottomTransform=M9.W_(+"0") + (L9 - m3) + M9.r4("178" * 1) + W8 + M9.W_(34);G7=x5 * (.45 + S1 / ("2" - 0));S$.innerReflexBackground=r0 + M9.r4("118" - 0) + (+".1" + +"1.6" * S1 * .4) + M9.W_(+"209") + G7 + M9.r4("13" << 96);S$.innerReflexTransform=M9.r4(0) + L9 + M9.W_(+"178") + W8 + M9.W_(+"34");S$.reflexContainerTransform=M9.W_("0" ^ 0) + -F8 + M9.r4(+"143") + u$ + M9.r4("189" << 64) + -W8 + M9.W_(34);}else {b3=F8 / Math.cos(W8);y5=Math.tan(W8) * v9;R4=y5 < "0" << 32?b3 - y5:F8;y5 < +"0" && (R4=Math.cos(W8) * R4);S$.flipGradientBackground=r0 + M9.r4(+"149") + +".45" * K4 + M9.r4(24) + (".15" - 0) * K4 + M9.W_(+"133") + (".01" - 0) * R4 + M9.r4("101" - 0) + .45 * K4 + M9.W_(+"133") + +".055" * R4 + M9.r4(7) + +".65" * K4 * (".32" * 1) + M9.W_(+"133") + (".185" - 0) * R4 + M9.r4(+"1") + R4 + M9.W_(+"13");S$.flipGradientTransform=M9.r4(+"0") + (Y9 - b3) + M9.W_("178" - 0) + -W8 + M9.W_(34);K8=A3 - V2;K8=K8 < (".03" - 0) * P2?+".03" * P2:K8 > +".3" * P2?(".3" - 0) * P2:K8;S$.innerReflexBottomBackground=r0 + M9.W_("213" >> 32) + .45 * K4 + M9.r4(+"209") + K8 + M9.W_(13);S$.innerReflexBottomTransform=M9.r4("0" << 64) + (b3 - m3) + M9.r4(+"178") + W8 + M9.r4(34);M7=K8 * (".45" * 1 + S1 / 2);S$.innerReflexBackground=r0 + M9.r4(+"118") + (".1" - 0 + +"1.6" * S1 * (".4" * 1)) + M9.r4(+"209") + M7 + M9.W_(13);S$.innerReflexTransform=M9.r4(0) + b3 + M9.W_(+"178") + W8 + M9.W_(+"34");S$.reflexContainerTransform=M9.r4(+"0") + -F8 + M9.r4(+"143") + u$ + M9.r4(+"189") + -W8 + M9.W_(+"34");}if((this[m8].reversePage.style[u1]=S$.reversePageTransform,this[m8].mask.style[u1]=S$.maskTransform,this[m8].frontPage.style[u1]=S$.frontPageTransform,this[m8].flipGradient.style.background=S$.flipGradientBackground,this[m8].flipGradient.style[u1]=S$.flipGradientTransform,b2 || this.bookState.isMobile?this.innerReflexBottom.style.display=M9.W_(+"139"):(this.innerReflexBottom.style.background=S$.innerReflexBottomBackground,this.innerReflexBottom.style[u1]=S$.innerReflexBottomTransform,this[m8].innerReflex.style.background=S$.innerReflexBackground,this[m8].innerReflex.style[u1]=S$.innerReflexTransform,this[m8].innerReflex.style.display=0 === K4?M9.r4(139):M9.W_(+"210")),this.bookState.singleMode)){if(-1 !== W9.indexOf(this.bookState.rtl?M9.W_("53" * 1):M9.r4("50" - 0))){T0=S1 < ".85" * 1?+"1":+"1" - Math.pow((S1 - ".85" * 1) / .15,+"2");T0=T0 <= "0" - 0?+"0":T0;this[m8].frontPage.style.opacity=T0;this[m8].reversePage.style.opacity=T0;this[m8].innerReflex.style.opacity=T0;this.innerReflexBottom.style.opacity=1;}if(-+"1" !== W9.indexOf(this.bookState.rtl?M9.r4("50" | 48):M9.W_("53" << 0))){O5=S1 > +".7"?"1" * 1:Math.pow(S1 / (".7" - 0),"2" - 0);O5=O5 <= +"0"?0:O5;this[m8].frontPage.style.opacity=S1 > ".3" - 0?Math.pow((S1 - +".3") / +".7","2" ^ 0):+"0";this[m8].reversePage.style.opacity=O5;this[m8].innerReflex.style.opacity=O5;this.innerReflexBottom.style.opacity=+"0";}}this[m8].reflexContainer.style[u1]=S$.reflexContainerTransform;this.follow=new L(p0,X4);this.corner=new L(y$,J7);this.radius1=new L(k0,O0);this.radius2=new L(p8,o_);this.progress=S1;this.renderData=S$;this.middle={'\u0078':i_,'\u0079':n7,'\u0064\u0069\u0073\u0074':F8,'\u0061\u006c\u0066\u0061':W8,'\u0064\u0069\u0073\u0074\u0058':l6,'\u0064\u0069\u0073\u0074\u0059':Q7};(this.bookState.left.isFirstSheet && -("1" | 0) !== W9.indexOf(M9.W_("53" * 1)) || this.bookState.left.isLast || this.bookState.right.isFirst || this.bookState.right.isLastSheet && -+"1" !== W9.indexOf(M9.W_("50" - 0)) || H6.fakePointer && this.bookState.left.isFirstSheet || H6.fakePointer && this.bookState.right.isLastSheet) && this.setDynamicStyles(!("0" - 0));}};y.prototype.finishRender=function(e9,G4,Q0,Y5){var I0=a6rkM;I0.K2();var k6,Z8,w7,y7,j3,D_;if((e9=e9 || !("1" ^ 0),this.postPager=!("1" ^ 0),!this.destroyed))if(I0.W_(+"187") !== this[this.currentWrapper].type){k6=this.progress < .5?this.corner.x - this.startX:I0.r4("151" << 0) === this.startPoint || I0.W_("215" ^ 0) === this.startPoint?this.corner.x - this.startX + this.bookWidth:this.corner.x - this.startX - this.bookWidth;I0.W_(+"50") === G4?(this.progress=".9" - 0,k6=this.corner.x - this.startX - this.bookWidth):I0.r4(+"53") === G4 && (this.progress=+".9",k6=this.corner.x - this.startX + this.bookWidth);Z8=this.corner.y - this.startY;w7=this.corner.x;y7=this.corner.y;j3=this;this.deltaFromCorner=0;D_=function(){var A7,c$;A7={'\u0070\u0061\u0067\u0065\u0058':w7,'\u0070\u0061\u0067\u0065\u0059':y7};c$=function(){j3.render({'\u0070\u0061\u0067\u0065\u0058':w7 - k6,'\u0070\u0061\u0067\u0065\u0059':y7 - Z8},!+"0");j3.destroyed || (j3.progress > ".5" - 0 && (I0.W_(+"151") === j3.startPoint || I0.W_("215" << 0) === j3.startPoint?j3[j3.currentWrapper].setLeft():j3[j3.currentWrapper].setRight()),n.default.removeClass(j3[j3.currentWrapper].mask,I0.W_(+"4")),j3.state=I0.W_(+"59"),Object(f.getStore)().dispatch(I0.W_(+"28"),{'\u006e\u0065\u0077\u0053\u0074\u0061\u0074\u0065':I0.r4("59" << 0)}),j3[j3.currentWrapper].mask.style.top=I0.r4(+"208"),j3[j3.currentWrapper].mask.style[j3.transformMethod]=I0.W_(+"210"),j3[j3.currentWrapper].frontPage.style[j3.transformMethod]=I0.W_(+"210"),j3[j3.currentWrapper].reversePage.style[j3.transformMethod]=I0.W_(148),j3.innerReflexBottom.style[j3.transformMethod]=I0.W_(+"65"),j3.innerReflexBottom.style.display=I0.W_("210" | 16),j3[j3.currentWrapper].reflexMask && (j3[j3.currentWrapper].reflexMask.style.overflow=I0.W_(210)),j3.progress > +".5" && !Q0 && (I0.W_(+"151") === j3.startPoint || I0.W_("215" ^ 0) === j3.startPoint?j3.trigger(I0.W_(+"79")):j3.trigger(I0.W_("31" * 1))),Q0?j3.trigger(I0.r4(+"140"),Y5):j3.trigger(I0.W_("57" | 25),Y5),j3.progress > +".5" && Q0 && (I0.r4(151) === j3.startPoint || I0.W_("215" >> 64) === j3.startPoint?j3.trigger(I0.r4(+"76")):j3.trigger(I0.W_(153))),n.default.removeClass(j3.globalWrapper,I0.r4("166" << 0)),j3.progress=+"1");};I0.K2();e9?c$():j3.tween=new c.a.Tween(A7).to({'\u0070\u0061\u0067\u0065\u0058':w7 - k6,'\u0070\u0061\u0067\u0065\u0059':y7 - Z8},"350" << 0).easing(c.a.Easing.Sinusoidal.Out).onUpdate(function(){I0.K2();e9 || j3.render(A7);}).onComplete(c$).start();};this.tween && this.tween._isPlaying?this.tween.onStop(function(){I0.K2();D_();}).stop():D_();}else this.finishRenderHard(e9,G4,Q0,Y5);};y.prototype.startRenderHard=function(c7,x2,k3){var m$x=a6rkM;var C2;C2=c7.pageX - this.bookMarginLeft;C2 > this.pageWidth && m$x.W_("53" ^ 0) !== k3 || m$x.W_(50) === k3?(this.startPoint=m$x.W_(+"215"),this.currentWrapper=m$x.r4(+"19"),this.startX=this.bookMarginLeft + this.bookWidth,this.finishX=this.bookMarginLeft):(this.startPoint=m$x.r4("205" - 0),this.currentWrapper=m$x.W_(+"199"),this.startX=this.bookMarginLeft,this.finishX=this.bookMarginLeft + this.bookWidth);this.isIE && (this[this.currentWrapper].firstPage.style[this.transformOriginMethod]=m$x.r4(+"20"),this[this.currentWrapper].secondPage.style[this.transformOriginMethod]=m$x.r4(+"62"));n.default.addClass(this[this.currentWrapper].mask,m$x.W_("145" ^ 0));m$x.K2();this.trigger(m$x.r4(214),{'\u0064\u0072\u0061\u0067':x2,'\u0068\u0069\u0064\u0065':C2 > this.pageWidth?m$x.W_(+"50"):m$x.r4(+"53")});this.state=m$x.W_("163" * 1);Object(f.getStore)().dispatch(m$x.r4("28" - 0),{'\u006e\u0065\u0077\u0053\u0074\u0061\u0074\u0065':m$x.W_("163" >> 32)});};y.prototype.renderHard=function(O8){var O8I=a6rkM;var a0,Q1,E6,f8,b1;if(!this.destroyed){E6=this.pageWidth;if((Q1=(Q1=(Q1=O8I.W_("215" | 19) === this.startPoint?O8.pageX - (this.bookMarginLeft + this.pageWidth):this.bookMarginLeft + this.pageWidth - O8.pageX) > this.pageWidth?this.pageWidth:Q1) < -this.pageWidth?-this.pageWidth:Q1,a0=Math.acos(Q1 / E6),a0=O8I.r4("215" | 82) === this.startPoint?-a0:a0,this.progress=1 * Math.abs(a0 / Math.PI).toFixed(2),this.pageX=O8.pageX,this.bookState.singleMode)){if(-("1" ^ 0) !== this.startPoint.indexOf(this.bookState.rtl?O8I.r4(53):O8I.W_(+"50"))){f8=this.progress < +".5"?"1" >> 32:+"1" - Math.pow((this.progress - +".5") / .5,"2" << 0);f8=f8 <= "0" >> 32?0:f8;this[this.currentWrapper].frontPage.style.opacity=f8;this[this.currentWrapper].reversePage.style.opacity=f8;this[this.currentWrapper].mask.style[O8I.W_(+"146")]=this.progress >= +".5"?O8I.r4("139" * 1):O8I.r4("210" ^ 0);}if(-("1" >> 0) !== this.startPoint.indexOf(this.bookState.rtl?O8I.W_("50" ^ 0):O8I.W_("53" * 1))){b1=this.progress > ".5" - 0?1:Math.pow(this.progress / +".5","2" - 0);b1=b1 <= +"0"?+"0":b1;this[this.currentWrapper].frontPage.style.opacity=b1;this[this.currentWrapper].reversePage.style.opacity=b1;this[this.currentWrapper].mask.style[O8I.r4("146" ^ 0)]=this.progress >= ".5" - 0?O8I.W_("210" * 1):O8I.W_(+"139");}}this.isIE?O8I.W_(+"215") === this.startPoint?(this[this.currentWrapper].firstPage.style[this.transformMethod]=O8I.r4("155" | 10) + a0 + O8I.r4(34),this[this.currentWrapper].secondPage.style[this.transformMethod]=O8I.r4("47" | 4) + -S * this.pageWidth + O8I.W_(35) + (a0 + Math.PI) + O8I.W_(+"34")):(this[this.currentWrapper].firstPage.style[this.transformMethod]=O8I.W_("47" ^ 0) + S * this.pageWidth + O8I.W_(+"35") + (a0 + Math.PI) + O8I.r4("34" - 0),this[this.currentWrapper].secondPage.style[this.transformMethod]=O8I.r4(+"155") + a0 + O8I.r4("34" - 0)):this[this.currentWrapper].mask.style[this.transformMethod]=O8I.W_("119" - 0) + a0 + O8I.r4(34);this.setDynamicStyles();}};y.prototype.finishRenderHard=function(a9,A0,l5,f9){var Y1Y=a6rkM;var o8,W0,R6,x6,H9,Q5,v5;o8=this.progress;W0={'\u0078':this.progress,'\u0070\u0061\u0067\u0065\u0058':this.pageX};R6=Y1Y.r4("215" - 0) === this.startPoint && Y1Y.W_(53) === A0 || Y1Y.r4(+"205") === this.startPoint && Y1Y.W_(50) === A0;x6=o8 > .35 && (Y1Y.W_("215" | 18) === this.startPoint && this.bookState.right.isFirst || Y1Y.r4(205) === this.startPoint && this.bookState.left.isLast);H9=o8 > +".5" || x6 || R6;Y1Y.K2();Q5=this;v5=function(){var A9;A9=function(){Q5.destroyed || (Q5.state=Y1Y.W_("59" | 59),Object(f.getStore)().dispatch(Y1Y.W_(28),{'\u006e\u0065\u0077\u0053\u0074\u0061\u0074\u0065':Y1Y.r4(+"59")}),n.default.removeClass(Q5[Q5.currentWrapper].mask,Y1Y.W_(145)),Q5[Q5.currentWrapper].mask.style[Q5.transitionMethod]=Y1Y.r4(+"210"),Q5.isIE?(Q5[Q5.currentWrapper].firstPage.style[Q5.transformMethod]=Y1Y.W_("210" << 32),Q5[Q5.currentWrapper].secondPage.style[Q5.transformMethod]=Y1Y.W_("210" ^ 0),Q5[Q5.currentWrapper].firstPage.style[Q5.transformOriginMethod]=Y1Y.r4(210),Q5[Q5.currentWrapper].secondPage.style[Q5.transformOriginMethod]=Y1Y.r4(+"210")):Q5[Q5.currentWrapper].mask.style[Q5.transformMethod]=Y1Y.r4(210),H9 && (Y1Y.W_(+"215") === Q5.startPoint && Y1Y.W_("50" >> 32) !== A0?(Q5[Q5.currentWrapper].setLeft(),l5 || Q5.trigger(Y1Y.W_(+"79"))):Y1Y.r4("205" - 0) === Q5.startPoint && Y1Y.r4(+"53") !== A0 && (Q5[Q5.currentWrapper].setRight(),l5 || Q5.trigger(Y1Y.r4(+"31")))),l5?Q5.trigger(Y1Y.W_(+"140"),f9):Q5.trigger(Y1Y.W_(+"57"),f9),H9 && l5 && (Y1Y.W_("151" ^ 0) === Q5.startPoint || Y1Y.W_(+"215") === Q5.startPoint?Q5.trigger(Y1Y.r4(76)):Q5.trigger(Y1Y.W_("153" ^ 0))),n.default.removeClass(Q5.globalWrapper,Y1Y.r4("166" - 0)),a9 && (Q5.setDynamicStyles(),Q5.progress="1" >> 0));};a9?A9():Q5.tween=new c.a.Tween(W0).to({'\u0078':H9?+"1":"0" | 0,'\u0070\u0061\u0067\u0065\u0058':H9?Q5.finishX:Q5.startX},"500" << 0).easing(c.a.Easing.Sinusoidal.Out).onUpdate(function(){Q5.progress=W0.x;Q5.renderHard({'\u0070\u0061\u0067\u0065\u0058':W0.pageX});}).onComplete(A9).start();};this.tween && this.tween._isPlaying?this.tween.onStop(function(){Y1Y.j5();v5();}).stop():v5();};y.prototype.shiftPagesLeft=function(){var x3;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");x3=this.storedStates.length > ("0" ^ 0)?this.storedStates.shift():this.bookState.getState();this.nxtWrapper=Object(r.default)(x3,this.bookState,this.bookDiv,!("0" << 64),+"2",!+"1",this.parentVm,this.contentCreator);this.trigger(a6rkM.W_("159" << 32));};y.prototype.shiftPagesRight=function(){var s0;this.nxtWrapper.destroy();this.nxtWrapper=this.rightWrapper.setLayer(this.rightWrapper.layer - ("1" - 0));this.rightWrapper=this.leftWrapper;this.leftWrapper=this.preWrapper.setLayer(this.preWrapper.layer + +"1");s0=this.storedStates.length > 0?this.storedStates.shift():this.bookState.getState();this.preWrapper=Object(r.default)(s0,this.bookState,this.bookDiv,!("1" << 32),+"2",!+"0",this.parentVm,this.contentCreator);this.trigger(a6rkM.r4("159" << 32));};y.prototype.flipToLeft=function(){a6rkM.K2();var V$,P$,B2,L0,g8,b7,h4,a7;V$=this;P$=arguments.length > 0 && void 0 !== arguments["0" ^ 0] && arguments[+"0"];B2=arguments.length > 1 && void +"0" !== arguments[1] && arguments[+"1"];L0=arguments.length > ("2" ^ 0)?arguments["2" | 2]:void +"0";if(!this.bookState.left.isLast || Object(f.getStore)().state.pager.forceFlip){g8=this._getBookLeftMargin();b7={'\u0070\u0061\u0067\u0065\u0058':g8 + this.bookWidth - ("1" | 1),'\u0070\u0061\u0067\u0065\u0059':this.bookMarginTop};h4={'\u0070\u0061\u0067\u0065\u0058':g8 - ("2" ^ 0)};a7=function(v2,K9){v2.pageY=V$.bookMarginTop - Math.min(V$.bookWidth,V$.bookHeight) / +"10" * (K9 > ".5" - 0?+"1" - K9:K9);};this._internalFlip(P$,B2,L0,b7,h4,a7);}};y.prototype.flipToRight=function(){a6rkM.K2();var Y$,E7,h$,g6,h9,r1,N3,u5;Y$=this;E7=arguments.length > "0" << 0 && void +"0" !== arguments[0] && arguments["0" ^ 0];h$=arguments.length > +"1" && void +"0" !== arguments["1" - 0] && arguments["1" >> 32];g6=arguments.length > ("2" ^ 0)?arguments[+"2"]:void 0;if(!this.bookState.right.isFirst || Object(f.getStore)().state.pager.forceFlip){h9=this._getBookLeftMargin();r1={'\u0070\u0061\u0067\u0065\u0058':h9 + "1" * 1,'\u0070\u0061\u0067\u0065\u0059':this.bookMarginTop};N3={'\u0070\u0061\u0067\u0065\u0058':h9 + this.bookWidth};u5=function(w9,G1){w9.pageY=Math.round(Y$.bookMarginTop - +"100" * (G1 > .5?+"1" - G1:G1));};this._internalFlip(E7,h$,g6,r1,N3,u5);}};y.prototype._internalFlip=function(){var m08=a6rkM;m08.K2();var p$,Y2,n3,a5,E_,U2,N0,S3,d4;Y2=arguments.length > "0" >> 64 && void 0 !== arguments["0" | 0] && arguments[0];n3=arguments.length > +"1" && void ("0" << 0) !== arguments[+"1"] && arguments[+"1"];a5=arguments.length > 2?arguments["2" - 0]:void +"0";E_=arguments.length > +"3"?arguments["3" * 1]:void ("0" >> 64);U2=arguments.length > "4" >> 32?arguments[4]:void ("0" >> 64);N0=arguments.length > "5" - 0?arguments["5" ^ 0]:void ("0" | 0);this.storedStates.push(a5 || this.bookState.getState());S3=this;d4=function(){m08.j5();S3.destroyed || (Object(f.getStore)().dispatch(m08.W_("175" ^ 0),m08.W_(98)),S3.once(m08.r4("57" - 0),function(){m08.K2();Object(f.getStore)().dispatch(m08.W_(+"175"),m08.W_(174));}),S3.startRender(E_,!+"0"),S3.postPager=!("0" >> 64),n3?S3.finishRender(!("0" ^ 0),null,Y2):S3.tween=new c.a.Tween(E_).to(U2,+"500" / S3.speedRate).easing(c.a.Easing.Sinusoidal.Out).onUpdate(function(){m08.j5();m08.r4(+"187") !== S3[S3.currentWrapper].type?(N0(E_,S3.progress),E_.fakePointer=!("0" >> 0),S3.render(E_,!("0" | 0))):S3.renderHard(E_,!("0" ^ 0));}).onComplete(function(){m08.K2();S3.finishRender(!("0" * 1),null,Y2);}).start());};(null === (p$=S3.tween) || void +"0" === p$?void +"0":p$._isPlaying)?S3._stopInternalFlip(d4):d4();};y.prototype._stopInternalFlip=function(N1){var O$3=a6rkM;var w_,W6;O$3.j5();W6=this;(null === (w_=this.tween) || void +"0" === w_?void 0:w_._isPlaying) && this.tween.onStop(function(){var A1;A1=-+"1" !== W6.startPoint.indexOf(O$3.W_(+"53"))?O$3.r4(+"50"):O$3.W_(+"53");W6.finishRender(!("0" * 1),A1,!0,!("0" - 0));null == N1 || N1();}).stop();};y.prototype._getBookLeftMargin=function(){var X7,o$,t_;X7=this.bookMarginLeft;o$=this.bookWidth;if(this.bookState.hardcover && !this.bookState.singleMode){t_=Object(f.getStore)().getters[a6rkM.r4(99)];X7=null === (this.bookState.rtl?t_.rightPage:t_.leftPage)?-o$ / 2:+"0";}return X7;};y.prototype.flipToPager=function(){var X1b=a6rkM;var K5,J9,k1,W1,B6,Z0,s7,Y0,N2,c8;K5=this;this._stopInternalFlip();J9=!+"0";if((Object(f.getStore)().dispatch(X1b.W_(110),{'\u0066\u006f\u0072\u0063\u0065\u0046\u006c\u0069\u0070':!("0" - 0)}),Math.max(this.leftWrapper.secondPageNum,this.rightWrapper.firstPageNum) > Math.max(this.bookState.currentLeft,this.bookState.currentRight) && (J9=!+"1"),J9)){-+"1" === this.leftWrapper.secondPageNum && this.bookState.left.isLast && n.default.addClass(this.globalWrapper,X1b.r4("166" - 0));W1=null !== (k1=[this.bookState.right,this.bookState.left].filter(function(g0){X1b.j5();return !g0.isNull;})["0" >> 64]) && void +"0" !== k1?k1:this.bookState.right;B6=this.bookState.hardcover && (W1.isLastSheet || W1.isLast);if((this.bookState.left.isLast || B6?(this.nxtWrapper.destroy(),this.nxtWrapper=Object(r.default)(this.bookState.getState(),this.bookState,this.bookDiv,!0,2,!+"1",this.parentVm,this.contentCreator,X1b.r4(50),B6,!+"0")):this.bookState.left.isLast || this.nxtWrapper.setContent({'\u0066\u0069\u0072\u0073\u0074':null,'\u0073\u0065\u0063\u006f\u006e\u0064':null}),this.bookState.left.isLast && this.bookState.hardcover)){Z0=this.rightWrapper.firstPageNum;this.rightWrapper.destroy();this.rightWrapper=Object(r.default)(this.bookState.getState(),this.bookState,this.bookDiv,!+"1",+"3",!+"1",this.parentVm,this.contentCreator,X1b.W_(+"53"));this.rightWrapper.setRight();this.rightWrapper.setContent({'\u0066\u0069\u0072\u0073\u0074':Z0});}else this.bookState.singleMode?this.bookState.singleMode && this.bookState.rtl && this.rightWrapper.setContent({'\u0066\u0069\u0072\u0073\u0074':null,'\u0073\u0065\u0063\u006f\u006e\u0064':null}):this.rightWrapper.setContent({'\u0073\u0065\u0063\u006f\u006e\u0064':null});this.once(X1b.W_("57" ^ 0),function(){X1b.j5();n.default.removeClass(K5.globalWrapper,X1b.r4(166));K5.resetWrappers();},this);this.nxtWrapper.contentObject1.setPageBg(this.bookState.currentRight);this.rightWrapper.contentObject2.setPageBg(this.bookState.currentLeft);this.flipToLeft();}else {-+"1" === this.rightWrapper.firstPageNum && this.bookState.right.isFirst && n.default.addClass(this.globalWrapper,X1b.W_(+"166"));Y0=null !== (s7=[this.bookState.left,this.bookState.right].filter(function(h1){return !h1.isNull;})["0" << 32]) && void +"0" !== s7?s7:this.bookState.left;N2=this.bookState.hardcover && (Y0.isFirstSheet || Y0.isFirst);if((this.bookState.right.isFirst || N2?(this.preWrapper.destroy(),this.preWrapper=Object(r.default)(this.bookState.getState(),this.bookState,this.bookDiv,!("1" - 0),"2" >> 64,!+"1",this.parentVm,this.contentCreator,X1b.r4("53" - 0),N2)):this.bookState.right.isFirst || this.preWrapper.setContent({'\u0066\u0069\u0072\u0073\u0074':null,'\u0073\u0065\u0063\u006f\u006e\u0064':null}),this.bookState.right.isFirst && this.bookState.hardcover)){c8=this.leftWrapper.secondPageNum;this.leftWrapper.destroy();this.leftWrapper=Object(r.default)(this.bookState.getState(),this.bookState,this.bookDiv,!("0" << 0),"3" - 0,!+"1",this.parentVm,this.contentCreator,X1b.W_(+"50"));this.leftWrapper.setLeft();this.leftWrapper.setContent({'\u0073\u0065\u0063\u006f\u006e\u0064':c8});}else this.bookState.singleMode && this.bookState.rtl || this.leftWrapper.setContent({'\u0066\u0069\u0072\u0073\u0074':null});this.preWrapper.contentObject2.setPageBg(this.bookState.currentLeft);this.leftWrapper.contentObject1.setPageBg(this.bookState.currentRight);this.once(X1b.W_(+"57"),function(){n.default.removeClass(K5.globalWrapper,X1b.r4(+"166"));K5.resetWrappers(!+"1");},this);this.flipToRight();}};y.prototype.initOnceSizes=function(){var p6W=a6rkM;var V7,R1,i0,j4,c_,R$,Z_,e0,C5,M5,f2;V7=this.bookHeight;R1=this.maskTop;i0=this.flipGradientWidth;j4=this.flipGradientTop;c_=this.transformOriginMethod;R$=this.innerReflexWidth;Z_=this.innerReflexBottomWidth;e0=this.innerReflexBottomMarginTop;C5=this.renderData;M5=this.currentWrapper;f2=this.innerReflexMarginTop;switch(this.startPoint){case p6W.r4(+"151"):(this.renderData.reversePageOrigin=p6W.W_(+"26"),this.renderData.frontPageOrigin=p6W.W_(+"134"),this.renderData.maskOrigin=p6W.r4(92) + (V7 + R1) + p6W.r4("206" | 2),this.renderData.flipGradientOrigin=i0 + p6W.W_(+"69") + (V7 + j4) + p6W.r4(+"206"),this.renderData.innerReflexBottomOrigin=p6W.r4("200" - 0) + (V7 + e0) + p6W.r4(+"206"),this.renderData.innerReflexOrigin=R$ + p6W.W_(+"69") + (V7 + f2) + p6W.W_(+"206"),this.renderData.reflexContainerOrigin=p6W.W_(+"134"));break;case p6W.W_("215" ^ 0):(this.renderData.reversePageOrigin=p6W.r4(+"64"),this.renderData.frontPageOrigin=p6W.r4("14" >> 32),this.renderData.maskOrigin=p6W.W_(+"92") + R1 + p6W.r4(+"206"),this.renderData.flipGradientOrigin=i0 + p6W.W_(+"69") + j4 + p6W.W_("206" << 0),this.renderData.innerReflexBottomOrigin=p6W.W_(+"200") + e0 + p6W.r4(+"206"),this.renderData.innerReflexOrigin=R$ + p6W.W_(+"69") + f2 + p6W.W_(+"206"),this.renderData.reflexContainerOrigin=p6W.W_(+"14"));break;case p6W.W_("171" | 34):(this.renderData.reversePageOrigin=p6W.W_(134),this.renderData.frontPageOrigin=p6W.W_(26),this.renderData.maskOrigin=p6W.W_(+"179") + (V7 + R1) + p6W.W_(+"206"),this.renderData.flipGradientOrigin=p6W.W_(+"200") + (V7 + j4) + p6W.r4("206" - 0),this.renderData.innerReflexBottomOrigin=Z_ + p6W.r4("69" | 1) + (V7 + e0) + p6W.W_("206" ^ 0),this.renderData.innerReflexOrigin=p6W.r4("200" >> 0) + (V7 + f2) + p6W.r4(+"206"),this.renderData.reflexContainerOrigin=p6W.W_(+"26"));break;default:(this.renderData.reversePageOrigin=p6W.W_(14),this.renderData.frontPageOrigin=p6W.W_("64" >> 0),this.renderData.maskOrigin=p6W.W_(+"179") + R1 + p6W.W_("206" - 0),this.renderData.flipGradientOrigin=p6W.W_("200" >> 32) + j4 + p6W.W_(+"206"),this.renderData.innerReflexBottomOrigin=Z_ + p6W.r4("69" >> 64) + e0 + p6W.W_("206" * 1),this.renderData.innerReflexOrigin=p6W.W_(+"200") + f2 + p6W.r4(206),this.renderData.reflexContainerOrigin=p6W.r4("64" | 64));}this[M5].reversePage.style[c_]=C5.reversePageOrigin;this[M5].frontPage.style[c_]=C5.frontPageOrigin;this[M5].mask.style[c_]=C5.maskOrigin;this[M5].flipGradient.style[c_]=C5.flipGradientOrigin;this.innerReflexBottom.style[c_]=C5.innerReflexBottomOrigin;this[M5].innerReflex.style[c_]=C5.innerReflexOrigin;this[M5].reflexContainer.style[c_]=C5.reflexContainerOrigin;};y.prototype.calcStripeSizes=function(){var Y6G=a6rkM;var m9,r5,V6,j$,J6,C6,z5,U4,p3,u3,n2;if(Math.max(document.documentElement.clientWidth || 0,window.innerWidth || +"0") <= "480" - 0 || !this.bookState.thickness)return (this.leftStripeWidth=0,this.rightStripeWidth=0,this.backboneWidth=+"0",this.leftStripeBlock.style.width=+"0",this.rightStripeBlock.style.width="0" >> 0,void this.bookState.set(Y6G.W_(+"194"),"0" * 1));if(this.bookState.singleMode){j$=Object(f.getStore)().getters[Y6G.r4(99)].currentPage;if((r5=(m9=Object(f.getStore)().getters[Y6G.W_(+"106")](j$)) + 1,V6=Object(f.getStore)().getters[Y6G.W_(+"89")],this.bookState.rtl)){J6=r5;r5=V6 - m9 - +"1";m9=V6 - J6 - +"1";}}else (m9=this.bookState.currentLeft,r5=this.bookState.currentRight,V6=this.bookState.pagesCount);p3=m9 / +"2";u3=null === r5 || this.bookState.right.isLastSheet?"0" << 32:(V6 - r5 + +"1") / +"2";this.bookState.singleMode && !this.bookState.hardcover?U4=1:(C6=(Y6G.W_(163) === this.state || Y6G.W_(+"211") === this.state) && (this.bookState.left.isFirstSheet || this.bookState.right.isFirst || this.bookState.left.isLast || this.bookState.right.isLastSheet) && !(!this.postPager && this.bookState.left.isFirstSheet && Y6G.r4("19" - 0) === this.currentWrapper || !this.postPager && this.bookState.right.isLastSheet && Y6G.r4(199) === this.currentWrapper) && !(this.postPager && this.bookState.left.isFirstSheet && Y6G.W_("199" | 70) === this.currentWrapper || this.postPager && this.bookState.right.isLastSheet && Y6G.W_("19" | 17) === this.currentWrapper),z5=this.progress,((this.bookState.left.isFirstSheet || this.bookState.right.isLastSheet) && !this.postPager || (this.bookState.right.isFirst || this.bookState.left.isLast) && this.postPager) && (z5=+"1" - z5),U4=C6?z5:(this.bookState.right.isFirst || this.bookState.left.isLast) && Y6G.W_(+"59") === this.state?0:+"1");n2=this.stripeCanvas.width - this.bookWidth;this.bookState.singleMode && this.bookState.rtl?(this.rightStripeWidth="0" ^ 0,this.rightStripeBlock.style.width=+"0",this.leftStripeWidth=Math.floor(Object(g.default)(p3,V6,this.fittedSize,n2) * U4),this.leftStripeBlock.style.width=this.leftStripeWidth + Y6G.W_("206" ^ 0)):this.bookState.singleMode?(this.leftStripeWidth="0" - 0,this.leftStripeBlock.style.width="0" | 0,this.rightStripeWidth=Math.floor(Object(g.default)(u3,V6,this.fittedSize,n2) * U4),this.rightStripeBlock.style.width=this.rightStripeWidth + Y6G.r4(+"206")):(this.leftStripeWidth=Math.floor(Object(g.default)(p3,V6,this.fittedSize,n2) * U4),this.leftStripeBlock.style.width=this.leftStripeWidth + Y6G.r4(206),this.rightStripeWidth=Math.floor(Object(g.default)(u3,V6,this.fittedSize,n2) * U4),this.rightStripeBlock.style.width=this.rightStripeWidth + Y6G.W_(206));this.backboneWidth=this.leftStripeWidth + this.rightStripeWidth;this.bookState.set(Y6G.W_(+"194"),Object(g.default)(V6 / +"2",V6,this.fittedSize,n2));};y.prototype.calcStripeColors=function(){var N3m=a6rkM;for(var H2,c2,d9,P0=[],R9=[],J$=this.bookState.pagesCount,i3=[200,+"210",+"220","230" - 0,+"240"],e5=function S8(){var y0;y0=Math.min(Math.floor(Math.random() * i3.length),i3.length - +"1");return y0 === H2 || y0 - 1 === H2 || y0 + +"1" === H2?S8():y0;},S0="0" << 64,Y3=J$;S0 < Y3;S0++){H2=e5();c2=".2" * 1 * Math.random() + .2 + 1;d9=N3m.W_(+"100") + i3[H2] + N3m.W_("11" - 0) + i3[H2] + N3m.W_("11" ^ 0) + i3[H2] + N3m.r4("75" | 11);P0.push(d9);R9.push(c2);}this.stripeColorArray=P0;this.stripeHeightArray=R9;};y.prototype.renderStripe=function(){var B5,w$,m2,Z9,T4,R_,D8,f6;B5=this.stripeCanvasCTX;w$=this.stripeCanvas;m2=this.bookWidth;Z9=this.bookHeight;T4=Math.round((w$.width - m2) / +"2");R_=w$.width;D8=!("1" << 0);f6=!1;if((B5.clearRect(+"0","0" ^ 0,R_,w$.height),(("0" ^ 0) === this.rightWrapper.firstPageNum || ("0" | 0) === this.leftWrapper.firstPageNum && this.bookState.rtl) && (D8=!+"0"),(this.leftWrapper.secondPageNum === this.bookState.pagesCount - +"1" || this.rightWrapper.secondPageNum === this.bookState.pagesCount - ("1" ^ 0) && this.bookState.rtl) && (f6=!("0" * 1)),this.leftStripeWidth > ("0" ^ 0) && !D8))for(var r9=+"0",g1=this.leftStripeWidth;g1 > 0;g1--){r9=g1 * this.stripeHeightArray[this.leftStripeWidth - g1];B5.fillStyle=this.stripeColorArray[this.leftStripeWidth - g1];B5.fillRect(T4 - g1 + +"1",Math.round(r9 / 4),+"1",Z9 - g1 / 2);}if(this.rightStripeWidth > ("0" ^ 0) && !f6)for(var e4="0" ^ 0,Z4=+"0",N7=this.rightStripeWidth;Z4 < N7;Z4++){e4=Z4 * this.stripeHeightArray[this.stripeColorArray.length - N7 + Z4];B5.fillStyle=this.stripeColorArray[this.stripeColorArray.length - N7 + Z4];B5.fillRect(T4 + m2 + Z4 - 1,Math.round(e4 / 4),+"1",Z9 - Z4 / ("2" * 1));}};R=function(S5,y6,S2,R8,O1,S7){a6rkM.K2();S7=S7 || 1;S2+=".6" * 1 * O1;S5.beginPath();S5.moveTo(y6,S2);S5.bezierCurveTo(y6,S2 - O1,y6 + ".6" * 1 * R8,S2 - O1 / +"3.5",y6 + R8,S2);S5.shadowColor=a6rkM.W_("84" << 64);S5.shadowBlur=S7;S5.shadowOffsetY=.3 * -O1;S5.closePath();S5.fill();};
function L(t,e){this.x=t,this.y=e}y.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,f=this.backboneWidth,p=.01*n,g=Math.round(h*S);g%2!=0&&(g+=1);var m,v,b=Math.round(s.height-g)/2,w=this.bookState.singleMode,y=8,k=12,x=(a-4)/a,P=(h-8)/h,z=c+h,$=o/2;i.clearRect(0,0,o,r),i.fillStyle="rgba(0,0,0,0.17)",i.save();var C=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)")},M=function(){if(i.shadowColor=null,i.shadowBlur=0,i.shadowOffsetY=0,"rgt-sdw"!==t){var e=$-p-u,s=$-p-u-a,o=i.createLinearGradient(e,0,s,0);C(o),i.fillStyle=o,i.fillRect(e,b,-a,g)}if("lft-sdw"!==t){var r=$+p+d+(w?f:0),n=$+p+d+a,h=i.createLinearGradient(r,0,n,0);C(h),i.fillStyle=h,i.fillRect(r,b,a,g)}},T=function(){var e=s.width/2-u-p,o=f+2*p,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,b,o,g),i.restore(),"rgt-sdw"===t&&i.clearRect(e-2,b-2,p+2,g+4),"lft-sdw"===t&&i.clearRect(e+f+p,b-2,p+2,g+4)},L=function(){w?i.scale(.999,.999):(i.scale(x,P),i.translate(y/2,k/2)),i.shadowColor="#000",i.shadowBlur=7,i.shadowOffsetY=0,i.fillRect(l,c,a,h),i.fillRect($,c,a,h),i.restore(),e.bookState.left.isFirstSheet||(R(i,$,c,-a,.3*c,12),R(i,$,z,-a,.9*-c,18)),e.bookState.right.isLastSheet||(R(i,$,c,a,.2*c,12),R(i,$,z,a,.6*-c,18))},I=function(t){w?i.scale(.999,.999):(i.scale(x,P),i.translate(y/2,k/2)),"right"===t?(v=1,m=$):(v=-1,m=l),i.shadowColor="#000",i.shadowBlur=7,i.shadowOffsetY=1,i.fillRect(m,c,a,h),i.restore(),R(i,$,c,a*v,c*("right"===t?.2:.3),12),R(i,$,z,a*v,-c*("right"===t?.6:.9),18)};"rgt-sdw"===t?I("right"):"lft-sdw"===t?I("left"):L(),this.bookState.hardcover&&n&&(M(),T()),this.renderStripe()},e.default=y},function(t,e,i){"use strict";i.r(e);var s=i(770),o=i(775),r=i(5);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],f=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,p=f.first,g=f.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(p)||e.isLastPage(p)||e.isLastPage(g)||e.isFirstPage(g))?v.prototype=new s.default:v.prototype=new o.default,v.prototype.setContent=function(t){var e=t.first,i=t.second;Object(r.isUndefined)(e)||(this.contentObject1.resetPage(e),this.firstPageNum=e),Object(r.isUndefined)(i)||(this.contentObject2.resetPage(i),this.secondPageNum=i)},new v(e,i,n,a,h,p,g)}e.default=n},function(t,e,i){"use strict";i.r(e);var s=i(451),o=i(38),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.contentObject1.data.isReverseSide&&(this.firstPageGradient=Object(r.getStore)().getters["pages/pageGradient"](this.contentObject1.data.id),this.bookState.singleMode&&!this.bookState.isLastPage(this.firstPageNum)&&(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.contentObject2.data.isReverseSide&&(this.secondPageGradient=Object(r.getStore)().getters["pages/pageGradient"](this.contentObject2.data.id),this.bookState.singleMode&&!this.bookState.isFirstPage(this.secondPageNum)&&(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(772),o=i(149),r=(i(774),i(1)),n=Object(r.default)(o.default,s.render,s.staticRenderFns,!1,null,null,null);n.options.__file="src/components/common/page-reverse-side/index.vue",e.default=n.exports},function(t,e,i){"use strict";i.r(e);var s=i(452);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=document.createElement("canvas");s.width=screen.width,s.height=screen.height;var o=s.getContext("2d");function r(t,e,i,s){var o,r,n,a,h,l,c,d=.3086*(1-s),u=.6094*(1-s),f=.082*(1-s),p=e<<2;for(n=0;n=i-o;r--)c+=t[h=a+(r<<2)],d+=t[h+1],u+=t[h+2],f+=t[h+3],e[h]=c/(i-r)|0,e[h+1]=d/(i-r)|0,e[h+2]=u/(i-r)|0,e[h+3]=f/(i-r)|0;for(;r>=0;r--)l=(h=a+(r<<2))+p,e[h]=c/o|0,e[h+1]=d/o|0,e[h+2]=u/o|0,e[h+3]=f/o|0,c+=t[h]-t[l],d+=t[h+1]-t[l+1],u+=t[h+2]-t[l+2],f+=t[h+3]-t[l+3]}}function l(t,e,i,s,o){var r,n,a,h,l,c,d,u,f,p=i<<2,g=p*o;for(r=0;r=s-o;n--)c+=t[h=a+n*p],d+=t[h+1],u+=t[h+2],f+=t[h+3],e[h]=c/(s-n)|0,e[h+1]=d/(s-n)|0,e[h+2]=u/(s-n)|0,e[h+3]=f/(s-n)|0;for(;n>=0;n--)l=(h=a+n*p)+g,e[h]=c/o|0,e[h+1]=d/o|0,e[h+2]=u/o|0,e[h+3]=f/o|0,c+=t[h]-t[l],d+=t[h+1]-t[l+1],u+=t[h+2]-t[l+2],f+=t[h+3]-t[l+3]}}function d(t,e,i,r,a,h,l){var c=t.canvas,d=0|r,u=0|a,f=0|e,p=0|i;h=32*(0|h),h=Math.min(Math.max(h,32),256);var g=Math.max(0,Math.log(h)/Math.log(2)-3|0),m=h>>>g,v=c.width>>>g,b=c.height>>>g;o.clearRect(0,0,s.width,s.height),o.drawImage(c,0,0,v,b);var S=o.getImageData(0,0,v,b);return n(S.data,v,b,m,l),o.putImageData(S,0,0),t.clearRect(0,0,d,u),t.drawImage(s,0,0,v,b,f,p,1.01*d,u),t}e.default=d},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(451),o=i(38),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.bookState.singleMode&&(this.reflexMask=o.default.createElement("div",{},this.reflexContainer)),this.innerReflex=o.default.createElement("div",{class:"inner-reflex"},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.contentObject1.data.isReverseSide&&(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["will-change"]="transform"}if(this.contentObject2.data&&!this.contentObject2.data.isReverseSide&&(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,f=Object(r.getStore)().getters["pages/pageIdByIndexWide"](u);this.firstPageGradient=Object(r.getStore)().getters["pages/pageGradient"](f),this.firstPage.style["will-change"]="transform"}if(!this.firstPageGradient&&this.secondPageGradient&&(this.firstPageGradient=this.secondPageGradient),!this.secondPageGradient&&this.firstPageGradient&&(this.secondPageGradient=this.firstPageGradient),e?this.setRight():this.setLeft(),n){var p=document.getElementById("reflex-container"),g=p.nextSibling,m=p.parentNode;g?m.insertBefore(this.mask,g):m.appendChild(this.mask),p=null}else t.appendChild(this.mask)},n.prototype.setLeft=function(){o.default.removeClass(this.mask,"mR"),this.bookState.singleMode&&(this.bookState.rtl?o.default.addClass(this.reflexMask,"inner-reflex-mask"):o.default.removeClass(this.reflexMask,"inner-reflex-mask"));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"),this.bookState.singleMode&&(this.bookState.rtl?o.default.removeClass(this.reflexMask,"inner-reflex-mask"):o.default.addClass(this.reflexMask,"inner-reflex-mask"));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(f(t[i]),e))return!0;return!1}if("CSSSupportsRule"in window){for(var s=[];i--;)s.push("("+f(t[i])+":"+e+")");return w("@supports ("+(s=s.join(" or "))+") { #modernizr { position: absolute; } }",(function(t){return"absolute"==getComputedStyle(t,null).position}))}}function x(t,e){return function(){return t.apply(e,arguments)}}function P(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")?x(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(163),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(461);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(166),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(463);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(169),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(465);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(794),o=i(172),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(466);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(174),n=(i(809),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(176),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(811),o=i(177),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(467);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(813),o=i(179),r=(i(814),i(1)),n=Object(r.default)(o.default,s.render,s.staticRenderFns,!1,null,"50c8fe48",null);n.options.__file="src/components/common/modal/index.vue",e.default=n.exports},function(t,e,i){"use strict";i.r(e);var s=i(468);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(182),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({video:{width:50,height:50,viewBox:"0 0 50 50",data:''}})},function(t,e,i){"use strict";i.r(e);var s=i(183),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(471);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(186),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(188),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(824),o=i(189),r=(i(827),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(475);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){i(0).register({page:{width:250,height:370,viewBox:"0 0 250 370",data:''}})},function(t,e,i){i(0).register({"page-wide":{width:500,height:370,viewBox:"0 0 500 370",data:''}})},function(t,e,i){"use strict";i.r(e);var s=i(191),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(829),o=i(192),r=(i(830),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(476);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(194),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(832),o=i(195),r=(i(833),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(478);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(197),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(835),o=i(198),r=(i(836),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(481);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(200),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(838),o=i(201),r=(i(841),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(482);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(203),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(204),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(499);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(239),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(931),o=i(269),r=(i(945),i(1)),n=Object(r.default)(o.default,s.render,s.staticRenderFns,!1,null,"37151dfc",null);n.options.__file="src/components/common/lightbox/index.vue",e.default=n.exports},function(t,e,i){"use strict";i.r(e);var s=i(519);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(521);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(273),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(935),o=i(274),r=(i(939),i(1)),n=Object(r.default)(o.default,s.render,s.staticRenderFns,!1,null,"65901bb9",null);n.options.__file="src/components/common/lightbox/lightbox-nav-dots/index.vue",e.default=n.exports},function(t,e,i){"use strict";i.r(e);var s=i(522);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(937),o=i(276),r=(i(938),i(1)),n=Object(r.default)(o.default,s.render,s.staticRenderFns,!1,null,"e9e32c9a",null);n.options.__file="src/components/common/lightbox/lightbox-nav-dots/lightbox-nav-dot/index.vue",e.default=n.exports},function(t,e,i){"use strict";i.r(e);var s=i(523);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(278),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(279),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(941),o=i(280),r=(i(942),i(1)),n=Object(r.default)(o.default,s.render,s.staticRenderFns,!1,null,"57ed2068",null);n.options.__file="src/components/common/lightbox/lightbox-thumbnails/index.vue",e.default=n.exports},function(t,e,i){"use strict";i.r(e);var s=i(524);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(282),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({"chevron-right":{width:24,height:24,viewBox:"0 0 24 24",data:''}})},function(t,e,i){i(0).register({cross:{width:24,height:24,viewBox:"0 0 24 24",data:''}})},function(t,e,i){"use strict";i.r(e);var s=i(283),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}])]);