/*! * * Product name/Version: SynapDocumentViewer 2019.19.09.1 * */!function(e){function t(t){for(var i,s,a=t[0],l=t[1],c=t[2],d=0,h=[];d2?t+4:e.getVersion("MSIE ([0-9]+)")},this.getChromeVersion=function(){return e.getVersion("Chrome/([0-9]+)")},this.getFirefoxVersion=function(){return e.getVersion("Firefox/([0-9]+)")},this.getAndroidVersion=function(){return e.getVersion("Android ([0-9]+)")},this.getIOSVersion=function(){return e.getVersion("OS ([0-9]+)")},this.getOperaVersion=function(){var t=e.getVersion("OPR/([0-9]+)");return t>-1?t:e.getVersion("Opera/([0-9]+)")},this.getEdgeVersion=function(){return e.getVersion("Edge/([0-9]+)")},this.isIE9Lower=function(){return e.isIE&&e.getIEVersion()<=9},this.appName=navigator.appName,this.userAgent=navigator.userAgent,this.isAndroid=this.userAgent.indexOf("Android")>-1,this.isIOS=this.userAgent.indexOf("iPad")>-1||this.userAgent.indexOf("iPhone")>-1||this.userAgent.indexOf("iPod")>-1,this.isiPad=this.userAgent.indexOf("iPad")>-1,this.isWindowMobile=this.userAgent.indexOf("IEMobile")>-1,this.isMobile=this.isAndroid||this.isIOS||this.isWindowMobile,this.isIPhoneX=/iphone/gi.test(window.navigator.userAgent)&&window.devicePixelRatio&&3===window.devicePixelRatio&&375===window.screen.width&&812===window.screen.height,this.isIPhoneXS=this.isIPhoneX,this.isIPhoneXSMax=/iphone/gi.test(window.navigator.userAgent)&&window.devicePixelRatio&&3===window.devicePixelRatio&&414===window.screen.width&&896===window.screen.height,this.isIPhoneXR=/iphone/gi.test(window.navigator.userAgent)&&window.devicePixelRatio&&2===window.devicePixelRatio&&414===window.screen.width&&896===window.screen.height,this.isIE=!this.isMobile&&("Microsoft Internet Explorer"===this.appName||this.userAgent.indexOf("MSIE")>-1||this.userAgent.indexOf("Trident")>-1),this.isFirefox=!this.isMobile&&this.userAgent.indexOf("Firefox")>-1,this.isOpera=!this.isMobile&&(this.userAgent.indexOf("Opera")>-1||this.userAgent.indexOf("OPR")>-1),this.isEdge=!this.isMobile&&this.userAgent.indexOf("Edge")>-1,this.isChrome=!this.isMobile&&!this.isOpera&&!this.isEdge&&this.userAgent.indexOf("Chrome")>-1,this.isSafari=!this.isMobile&&!this.isChrome&&!this.isEdge&&this.userAgent.indexOf("Safari")>-1,this.isWebkit=this.userAgent.indexOf("AppleWebKit")>-1,this.version=this.getBrowserVersion()}return e.prototype.getBrowserVersion=function(){if(this.isMobile){if(this.isAndroid)return this.getAndroidVersion();if(this.isIOS)return this.getIOSVersion();if(this.isWindowMobile)return this.getIEVersion()}else{if(this.isIE)return this.getIEVersion();if(this.isChrome)return this.getChromeVersion();if(this.isFirefox)return this.getFirefoxVersion();if(this.isSafari)return this.getIOSVersion();if(this.isOpera)return this.getOperaVersion();if(this.isEdge)return this.getEdgeVersion()}return-1},Object.defineProperty(e,"instance",{get:function(){return e._instance||(e._instance=new e),e._instance},enumerable:!0,configurable:!0}),e}();t.Browser=i},function(e,t,n){"use strict";(function(e){var i=this&&this.__awaiter||function(t,n,i,o){return new(i||(i=e))((function(e,r){function s(e){try{l(o.next(e))}catch(e){r(e)}}function a(e){try{l(o.throw(e))}catch(e){r(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(s,a)}l((o=o.apply(t,n||[])).next())}))},o=this&&this.__generator||function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&(a+="&"),i.param)a+=l+"="+encodeURIComponent(i.param[l])+"&";if(window.localSynap&&window.localSynap.config&&"object"==typeof window.localSynap.config.extraParam)for(var l in a.length>0&&(a+="&"),window.localSynap.config.extraParam)a+=l+"="+encodeURIComponent(window.localSynap.config.extraParam[l])+"&";var c=new XMLHttpRequest;if("POST"===n)c.open("POST",t,!0),c.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");else{var u=s.Browser.instance.isIE9Lower()?encodeURI(t):t;u.indexOf("?")>-1?u+="&"+a:u+="?"+a,c.open("GET",u,!0)}if(window.localSynap&&window.localSynap.config&&"object"==typeof window.localSynap.config.extraHeader)for(var l in window.localSynap.config.extraHeader)c.setRequestHeader(l,window.localSynap.config.extraHeader[l]);c.onreadystatechange=function(){4===c.readyState&&(c.status>=200&&c.status<400?e(null!==o&&"xml"===o?c.responseXML:c.responseText):null!==o&&"xml"===o&&500===c.status?e(null):r(new Error(c.status.toString())))},c.send(a)}))},t.getJson=function(e,t){return void 0===t&&(t=null),i(this,void 0,void 0,(function(){var n;return o(this,(function(i){switch(i.label){case 0:return[4,this.ajaxCall(e,"GET",t)];case 1:return n=i.sent(),[2,JSON.parse(n)]}}))}))},t.postJson=function(e,t){return void 0===t&&(t=null),i(this,void 0,void 0,(function(){var n;return o(this,(function(i){switch(i.label){case 0:return[4,this.ajaxCall(e,"POST",t)];case 1:return n=i.sent(),[2,JSON.parse(n)]}}))}))},t.getXml=function(e,t){return void 0===t&&(t=null),i(this,void 0,void 0,(function(){var n;return o(this,(function(i){switch(i.label){case 0:return[4,this.ajaxCall(e,"GET",t,"xml")];case 1:return n=i.sent(),[2,this.xmlToJson(n)]}}))}))},t.getThumbnailXml=function(e,t){return void 0===t&&(t=null),i(this,void 0,void 0,(function(){var n,i;return o(this,(function(o){switch(o.label){case 0:return[4,this.ajaxCall(e,"GET",t,"xml")];case 1:return(n=o.sent())?[3,4]:(i=e.replace("thumbnailxml","thumbnail"),[4,this.ajaxCall(i,"GET",t)]);case 2:return o.sent(),[4,this.ajaxCall(e,"GET",t,"xml")];case 3:n=o.sent(),o.label=4;case 4:return[2,this.xmlParse(n)]}}))}))},t.xmlParse=function(e){var t={};if(e.hasChildNodes()){var n=e.getElementsByTagName("page")[0];if("page"!=n.tagName)return;if(n.attributes.length>0){t.page={};for(var i=0;i0){t["@attributes"]={};for(var n=0;n1073741824?(n=e/1073741824,i="GB"):e>1048576?(n=e/1048576,i="MB"):e>1024&&(n=e/1024,i="KB"),""+n.toFixed(1)+i)},t.addClass=function(e,t){if(e)if(e.classList)e.classList.add(t);else{for(var n=!1,i=e.className.trim().split(" "),o=0;o0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&s-r/2>n.containerTop())return void(o!==n.docInfo.currentPage&&n.eventObserver.page.notify({pageNum:o,isScroll:!0}))}n.eventObserver.page.notify({pageNum:n.docInfo.status.pageNum-1,isScroll:!0})},this.scrollEventBind=function(){var e;n.scrollContentAreaEl.on("scroll",(function(i){if(clearTimeout(e),n.androidVirtualKeyboardMode!==f.ANDROID_VK_MODE.deactivating)if(Math.round(document.getElementById("contents").offsetHeight+document.getElementById("contents").scrollTop)>=document.getElementById("contents").scrollHeight&&d("#page-area"+n.docInfo.currentPage).position().top>0&&!n.lastTop)n.lastTop=n.scrollContentAreaEl.scrollTop();else{if(n.scrollContentAreaEl.scrollTop()!==n.lastTop){var o=u.Util.isFullScreen()||!!(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement);return!o||o&&(!a.Browser.instance.isMobile&&100!==n.curZoomFactor||a.Browser.instance.isMobile&&t.RESIZE_OBJ.type!=r.PageFit)?(e=setTimeout(n.updatePageFocus,80),void n.eventObserver.scroll.notify()):void 0}n.eventObserver.page.notify({pageNum:n.docInfo.status.pageNum-1,isScroll:!1})}}))},this.focusPage=function(e){a.Browser.instance.isMobile&&n.docInfo.currentPage!==e.pageNum&&d("#thumb-area"+n.docInfo.currentPage).addClass("thumb--nohover"),n.docInfo.currentPage=e.pageNum,n.loadPageImg(n.docInfo.currentPage),n.eventObserver.moveBtn.notify(),!0!==e.isScroll&&n.scrollContentAreaEl.scrollTop(n.getPageScrollTop(e.pageNum))},this.checkMoveControlbar=function(){0===n.docInfo.currentPage?(d("#page-prev").removeClass("controlbar--enable"),d("#page-prev").removeClass("controlbar-prev--hover"),d("#page-prev").prop("disabled",!0)):(d("#page-prev").addClass("controlbar--enable"),d("#page-prev").prop("disabled",!1)),n.docInfo.currentPage===n.docInfo.status.pageNum-1?(d("#page-next").removeClass("controlbar--enable"),d("#page-next").removeClass("controlbar-next--hover"),d("#page-next").prop("disabled",!0)):(d("#page-next").addClass("controlbar--enable"),d("#page-next").prop("disabled",!1))},this.moveBackPage=function(){0!==n.docInfo.currentPage&&n.eventObserver.page.notify({pageNum:n.docInfo.currentPage-1,isScroll:!1})},this.moveNextPage=function(){n.docInfo.currentPage!==n.docInfo.status.pageNum-1&&n.eventObserver.page.notify({pageNum:n.docInfo.currentPage+1,isScroll:!1})},this.orientationchange=function(){return i(n,void 0,void 0,(function(){return o(this,(function(e){return u.Util.isBrowserFullScreen()&&this._resizePage(),[2]}))}))},this.resizeWindow=function(){return i(n,void 0,void 0,(function(){var e,t;return o(this,(function(n){return e=l.DetectZoom.getRatio(),t=!0,this.curZoomFactor!==e&&(this.curZoomFactor=e,t=!1),document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement?(this._innerResizeWindow(),[2]):(a.Browser.instance.isIOS?this._resizePageForIOS():this._resizePage(t),this.checkResizeControlBar(),this.lastTop=null,[2])}))}))},this._resizePage=function(e){return void 0===e&&(e=!0),i(n,void 0,void 0,(function(){return o(this,(function(t){return this._innerResizeWindow(),e&&this.scrollContentAreaEl.scrollTop(this.getPageScrollTop(this.docInfo.currentPage)),[2]}))}))},this._resizePageForIOS=function(){return i(n,void 0,void 0,(function(){var e,t=this;return o(this,(function(n){switch(n.label){case 0:return u.Util.isFullScreen()&&(document.getElementById("fullscreen-close").style.top=""),e=this.docInfo.currentPage,d("#wrap__index").css("height",""),[4,this.syncTimer((function(){if(d("#thumbnail").height()>d("#wrap__index").height()){a.Browser.instance.isiPad?d("#wrap__index").css("height",0===window.orientation?768*screen.height/screen.width-85:768*screen.width/screen.height-85):d("#wrap__index").css("height",0===window.orientation?screen.height-85:screen.width)}d("#contents-area").css("visibility","hidden"),d("#wrap__index").css("visibility","hidden"),d("#page__input").css("color","#333333"),t.scrollContentAreaEl.scrollTop(t.getPageScrollTop("0"))}),500)];case 1:return n.sent(),[4,this.syncTimer((function(){return t._innerResizeWindow()}),100)];case 2:return n.sent(),this.scrollContentAreaEl.scrollTop(this.getPageScrollTop(e)),[4,this.syncTimer((function(){d("#contents-area").css("visibility",""),d("#wrap__index").css("visibility",""),d("#page__input").css("color","")}),100)];case 3:return n.sent(),[2]}}))}))},this.syncTimer=function(t,r){return i(n,void 0,void 0,(function(){return o(this,(function(n){return[2,new e((function(e){setTimeout((function(){t(),e()}),r)}))]}))}))},this.notSupportFullscreenIN=function(){return i(n,void 0,void 0,(function(){var e,t,n=this;return o(this,(function(i){switch(i.label){case 0:return e=this.docInfo.currentPage,a.Browser.instance.isIOS?[4,this.syncTimer((function(){return n.pageResizeAction.resizePage(0,n.getRotateMap())}),200)]:[3,3];case 1:return i.sent(),this.scrollContentAreaEl.scrollTop(this.getPageScrollTop(e)),[4,this.syncTimer((function(){return d("#contents-area").css("visibility","")}),100)];case 2:return i.sent(),!a.Browser.instance.isiPad&&a.Browser.instance.getIOSVersion()>=11&&(document.getElementById("fullscreen-close").style.top="",(t=d("#fullscreen-close").position().top)<0&&(document.getElementById("fullscreen-close").style.top=Math.abs(t)+"px")),[3,4];case 3:this.pageResizeAction.resizePage(0,this.getRotateMap()),this.scrollContentAreaEl.scrollTop(this.getPageScrollTop(e)),i.label=4;case 4:return this.checkResizeControlBar(),this.lastTop=null,[2]}}))}))},this.notSupportFullscreenOUT=function(){return i(n,void 0,void 0,(function(){var e,t=this;return o(this,(function(n){switch(n.label){case 0:return e=this.docInfo.currentPage,a.Browser.instance.isIOS?[4,this.syncTimer((function(){return t.pageResizeAction.resizePage(t.preResizeObj.percent,t.getRotateMap())}),700)]:[3,3];case 1:return n.sent(),this.scrollContentAreaEl.scrollTop(this.getPageScrollTop(e)),[4,this.syncTimer((function(){d("#contents-area").css("visibility",""),d("#wrap__index").css("visibility",""),d("#page__input").css("color","")}),100)];case 2:return n.sent(),[3,4];case 3:this.pageResizeAction.resizePage(this.preResizeObj.percent,this.getRotateMap()),this.scrollContentAreaEl.scrollTop(this.getPageScrollTop(e)),n.label=4;case 4:return this.checkResizeControlBar(),this.lastTop=null,[2]}}))}))},this.fullScreen=function(e){return i(n,void 0,void 0,(function(){var n;return o(this,(function(i){return"cell"===e.skinType?[2]:(n=p.Head.bgColorMode===p.BGCOLOR_MODE.lightScreen?"img-loading-bright":"img-loading",e.isFullScreen?(d(document.body).addClass("wrap__contents--page-fullscreen"),d("#contents").addClass("wrap__contents--page-fullscreen"),a.Browser.instance.isIOS&&(d("#contents-area").css("visibility","hidden"),this.scrollContentAreaEl.scrollTop(this.getPageScrollTop("0"))),d("#container").addClass("wrap__container--presentation"),d("#contents").addClass("wrap__contents--presentation"),d("#thumbnailbar").addClass("wrap__thumbnailbar--presentation"),d("."+n).addClass("img-loading-black"),e.isSupport||d(".wrap__header").addClass("wrap__header--presentation"),this.setFitAction(),e.isSupport||(d(".wrap__header").addClass("wrap__header--presentation"),this.notSupportFullscreenIN())):(d(document.body).removeClass("wrap__contents--page-fullscreen"),u.Util.isFullScreen()&&(a.Browser.instance.isIOS&&(d("#contents-area").css("visibility","hidden"),d("#wrap__index").css("visibility","hidden"),d("#page__input").css("color","#333333"),this.scrollContentAreaEl.scrollTop(this.getPageScrollTop("0"))),this.eventObserver.bgColor.notify(p.Head.bgColorMode),d("#container").removeClass("wrap__container--presentation"),d("#contents").removeClass("wrap__contents--presentation"),d("#thumbnailbar").removeClass("wrap__thumbnailbar--presentation"),d("#contents").removeClass("wrap__contents--page-fullscreen"),d(".contents-page").removeClass("img-loading-black"),d(".contents-page__img").removeClass("img-loading-black"),d(".contents-page > img").removeAttr("style"),d(".contents-page > iframe").removeAttr("style"),t.RESIZE_OBJ=this.preResizeObj,this.pageResizeAction=this.prePageAction,e.isSupport||(d(".wrap__header").removeClass("wrap__header--presentation"),this.notSupportFullscreenOUT()),u.Util.isMobileMode(s.CONV_TYPE.IMAGE)&&h.Thumbnail.THUMB_STATUS===h.THUMB_FLAG.off&&(this.eventObserver.mobileHeader.notify(c.ShowActionType.HIDE3SEC),this.eventObserver.mobileThumb.notify(c.ShowActionType.HIDE3SEC)),this.fullscreenAfterEvent())),[2])}))}))},this.mouseEventBind=function(){d("#contents-area").on("click",(function(){a.Browser.instance.isMobile||u.Util.isFullScreen()||n.toggleMobileHeaderAndThumb()}))},this.toggleMobileHeaderAndThumb=function(){u.Util.isMobileMode(n.docInfo.status.convertType)&&("none"!==d(".wrap__header").css("display")?(n.eventObserver.mobileThumb.notify(c.ShowActionType.HIDE),n.eventObserver.mobileHeader.notify(c.ShowActionType.HIDE)):n.isThumbnailOn()?(n.eventObserver.mobileThumb.notify(c.ShowActionType.SHOW),n.eventObserver.mobileHeader.notify(c.ShowActionType.SHOW)):(n.eventObserver.mobileThumb.notify(c.ShowActionType.HIDE3SEC),n.eventObserver.mobileHeader.notify(c.ShowActionType.HIDE3SEC)))},this.singleTap=function(){n.toggleMobileHeaderAndThumb()},this.androidVirtualKeyboard=function(e){n.androidVirtualKeyboardMode=e}}return t.prototype.getPageScrollTop=function(e){var t=document.getElementById("page-area"+e);return null===t?0:t.offsetTop-(a.Browser.instance.isIOS?this.containerTop():0)},t.RESIZE_OBJ={type:r.PageFit,percent:0},t.ORIGIN_SIZE=[],t.CURRENT_SIZE=[],t.isOutFullscreen=!1,t}();t.Page=g}).call(this,n(3))},,function(e,t,n){"use strict";(function(e){var i=this&&this.__awaiter||function(t,n,i,o){return new(i||(i=e))((function(e,r){function s(e){try{l(o.next(e))}catch(e){r(e)}}function a(e){try{l(o.throw(e))}catch(e){r(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(s,a)}l((o=o.apply(t,n||[])).next())}))},o=this&&this.__generator||function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0?i:0;o<520&&(t.jqContents.css("left",o),u(".wrap__thumbnail").css({width:o,"overflow-y":"scroll"}),t.jqThumbnailBar.css("left",o),t.eventObserver.resizeContents.notify())}else u("#container").css("pointer-events","auto")})).on(s.Browser.instance.isMobile?"touchend":"mouseup",(function(o){if(u("#container").css("pointer-events","auto"),n){n=!1;var l=s.Browser.instance.isMobile?o.changedTouches[0].pageX:o.clientX,c=l-i;c>0&&l<100||c<0&&l<160||0===i&&0===l?(i=0,e.THUMB_STATUS=r.off,t.thumbnailDesktop.hideThumb(),t.eventObserver.resizeContents.notify()):(t.loadThumbImg(t.getThumbIndex()),i=l>520?520:l,c>0&&l>=100?i=385200&&(r+=20),s=e-3<0?0:e-3,a=e+r,c=l.DetectZoom?l.DetectZoom.getRatio():100,a!==n&&c<100&&(a+=Math.ceil(n*(c/100))),a=a>n||a===n-1?n:a,u=s;ui||t.eventObserver.page.notify({pageNum:n,isScroll:!1})}},this.toggleEvent=function(){if(t.thumbnailActions.toggleAction(),e.THUMB_STATUS===r.on){var n=t.docInfo.currentPage;t.focusPage({pageNum:n}),t.setThumbnailAreaHeightForIOS()}},this.focusPage=function(n){if(e.THUMB_STATUS!=r.off){u("#thumb-area"+n.pageNum).removeClass("thumb--nohover"),u(".thumb__div").removeClass("thumb__focus");var i=document.getElementById("thumbnail").clientHeight-u(".wrap__header").height(),o=document.getElementById("thumb-content"+n.pageNum).clientHeight,s=document.getElementById("thumbnail").scrollTop,a=u("#thumb-area"+n.pageNum).parent().position().top-u("#thumb-area0").parent().position().top;(s>a||a+o>=s+i)&&(document.getElementById("thumbnail").scrollTop=document.getElementById("thumb-content"+n.pageNum).offsetTop-i/4),u("#thumb-area"+n.pageNum).addClass("thumb__focus"),t.loadThumbImg(t.docInfo.currentPage)}},this.resizeWindow=function(){c.Util.isFullScreen()||(c.Util.isMobileMode(t.docInfo.status.convertType)&&t.thumbnailActions===t.thumbnailDesktop?(t.thumbnailActions.initThumb(),t.thumbnailActions=t.thumbnailMobile,t.thumbnailActions.changeMode(t.docInfo.currentPage),t.isWindowCSS||t.thumbSizeResize(0,t.docInfo.status.pageNum,t.docInfo.currentPage)):c.Util.isMobileMode(t.docInfo.status.convertType)||t.thumbnailActions!==t.thumbnailMobile||(t.thumbnailActions.initThumb(),t.thumbnailActions=t.thumbnailDesktop,t.thumbnailActions.changeMode(t.docInfo.currentPage),t.isWindowCSS||t.thumbSizeResize(0,t.docInfo.status.pageNum,t.docInfo.currentPage)))},this.fullScreen=function(e){"cell"!==e.skinType&&(e.isFullScreen?(t.jqThumbnail.addClass("wrap__thumbnail--presentation"),t.jqThumbnailBar.addClass("wrap__thumbnailbar--presentation")):(t.jqThumbnail.removeClass("wrap__thumbnail--presentation"),t.jqThumbnailBar.removeClass("wrap__thumbnailbar--presentation")))},this.getThumbIndex=function(){var e=document.getElementById("wrap__index").clientHeight,n=document.getElementById("thumbnail").scrollTop;return n<0&&(!l.DetectZoom||100===l.DetectZoom.getRatio())?t.docInfo.currentPage:Math.floor(t.docInfo.status.pageNum/(e/n))},this.scrollEventBind=function(){var n;u("#thumbnail").on("scroll",(function(i){clearTimeout(n),n=window.setTimeout((function(){if(e.THUMB_STATUS!=r.off){var n=t.getThumbIndex();t.loadThumbImg(n)}}),50)}))},this.thumbSizeResize=function(e,n,i){var o=t.docInfo.currentPage+t.initThumbNum;if(o=o>t.docInfo.status.pageNum?t.docInfo.status.pageNum:o,null!==i)for(var r=i=i-5<0?0:i-5;r=o)&&t._thumbSizeRepeat(t.THUMB_SIZE[r],r):t._thumbSizeRepeat(t.THUMB_SIZE[r],r)}),100)},this._thumbSizeRepeat=function(e,n){var i=t._getThumbHeight(e);document.getElementById("thumb"+n).style.height=i+"px"},this._getThumbHeight=function(e){return e&&void 0!==e.mobileHeight?!0===c.Util.isMobileMode(t.docInfo.status.convertType)?e.mobileHeight:e.desktopHeight:!0===c.Util.isMobileMode(t.docInfo.status.convertType)?t.THUMB_SIZE[0].mobileHeight:t.THUMB_SIZE[0].desktopHeight},this.setThumbnailAreaHeightForIOS=function(){if(s.Browser.instance.isIOS&&0!==u("#wrap__index").height()&&u("#thumbnail").height()>u("#wrap__index").height()){s.Browser.instance.isiPad?u("#wrap__index").css("height",0===window.orientation?768*screen.height/screen.width-85:768*screen.width/screen.height-85):u("#wrap__index").css("height",0===window.orientation?screen.height-85:screen.width)}},this.jqThumbnail=u("#thumbnail"),this.jqThumbnailButton=u("#thumbnail-btn"),this.jqThumbnailBar=u("#thumbnailbar"),this.jqContents=u("#contents")}return e.THUMB_STATUS=r.off,e}();t.Thumbnail=p}).call(this,n(3))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(1),r=function(){function e(){}return e.getRatio=function(){return this._zoom||(this._zoom=this.detectFunction()),Math.round(100*this._zoom())},e.detectFunction=function(){return window.devicePixelRatio?function(){if(o.Browser.instance.isIE||o.Browser.instance.isFirefox||o.Browser.instance.isEdge)return window.devicePixelRatio;var e=Math.abs(window.top.outerWidth-window.top.innerWidth),t=window.top.innerWidth,n=e>=1&&e<=20||e==t?t:window.top.outerWidth;return Math.round((i.Util.isFullScreen()?screen.width:n)/t*100)/100}:isNaN(screen.logicalXDPI)||isNaN(screen.systemXDPI)?window.navigator.msMaxTouchPoints?function(){return Math.round(document.documentElement.offsetHeight/window.innerHeight*100)/100}:window.chrome&&!(window.opera||navigator.userAgent.indexOf(" Opera")>=0)?function(){return Math.round(window.top.outerWidth/window.top.innerWidth*100)/100}:Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0?function(){return Math.round(window.top.outerWidth/window.top.innerWidth*100)/100}:"orientation"in window&&"webkitRequestAnimationFrame"in window?function(){var e="string"==typeof window.orientation?Number.parseInt(window.orientation):window.orientation;return(90===Math.abs(e)?screen.height:screen.width)/window.innerWidth}:"webkitRequestAnimationFrame"in window?function(){var e=function(e){return e.replace(/;/g," !important;")},t=document.createElement("div");t.innerHTML="1
2
3
4
5
6
7
8
9
0",t.setAttribute("style",e("font: 100px/1em sans-serif; -webkit-text-size-adjust: none; text-size-adjust: none; height: auto; width: 1em; padding: 0; overflow: visible;"));var n=document.createElement("div");n.setAttribute("style",e("width:0; height:0; overflow:hidden; visibility:hidden; position: absolute;")),n.appendChild(t),document.body.appendChild(n);var i=1e3/t.clientHeight;return i=Math.round(100*i)/100,document.body.removeChild(n),i}:navigator.userAgent.indexOf("Opera")>=0?function(){return Math.round(window.top.outerWidth/window.top.innerWidth*100)/100}:function(){return 1}:function(){return Math.round(screen.deviceXDPI/screen.logicalXDPI*100)/100}},e}();t.DetectZoom=r},,,function(e,t,n){"use strict";(function(e){var i=this&&this.__awaiter||function(t,n,i,o){return new(i||(i=e))((function(e,r){function s(e){try{l(o.next(e))}catch(e){r(e)}}function a(e){try{l(o.throw(e))}catch(e){r(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(s,a)}l((o=o.apply(t,n||[])).next())}))},o=this&&this.__generator||function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]2?5.5*(String(this.docInfo.status.pageNum).length-2):0)+"px",[4,this.initEvent()];case 1:return i.sent(),this.jqPageInput=u("#page__input"),this.jqPageInput.val(1),this.jqPageInput.on("change",this.movePage),this.jqPageInput.on("keyup",(function(e){"Enter"===e.key&&t.movePage(e)})),this.setTotalPageWidth(),this.eventBind(n),l.Util.isMobileMode(this.docInfo.status.convertType)&&(this.viewMode=d.VIEW_MODE.mobile),this.setTitle(),[2]}}))}))},this.eventBind=function(e){t.eventObserver=e,t.eventObserver.page.subscribe(t.focusPage),t.eventObserver.resizeWindow.subscribe(t.resizeWindow),t.eventObserver.bgColor.subscribe(t.bgColor),t.eventObserver.orientationchange.subscribe(t.orientationchange),t.subscribeMobileHeader(),t.mouseoverEventBind(),!0===window.localSynap.config.search&&(l.Util.bindClickOrTouchEvent(u("#search-prev"),"search-move--hover",t.searchTextNotify),l.Util.bindClickOrTouchEvent(u("#search-next"),"search-move--hover",t.searchTextNotify))},this.searchTextNotify=function(e){var n="search-next"===e.target.parentElement.id||"search-next"===e.target.id?s.SEARCH_TYPE.NEXT:s.SEARCH_TYPE.PREV;t.eventObserver.search.notify(n)},this.setTotalPageWidth=function(){l.Util.isMobileMode(t.docInfo.status.convertType)?String(t.docInfo.status.pageNum).length>5?(t.jqPageInput.css("width","60px"),u("#select-arrow").css("left","53px"),u("#page-scroll-blind").css("width","73px")):t.jqPageInput.css("width",""):t.jqPageInput.css("width",t.pageWidth)},this.subscribeMobileHeader=function(){void 0!==window.localSynap&&!1===window.localSynap.config.isShowHeader?(u(".wrap__header").addClass("wrap__header--hide"),u("#container").addClass("wrap__container--option-on"),u("#thumbnail").addClass("wrap__thumbnail--option-on")):(t.eventObserver.mobileHeader.subscribe(t.mobileHeader),("cell"===t.docInfo.skinType||l.Util.isHtmlSkin(t.docInfo))&&l.Util.isMobileMode(t.docInfo.status.convertType)&&t.eventObserver.mobileHeader.notify(a.ShowActionType.HIDE3SEC))},this.initEvent=function(){return i(t,void 0,void 0,(function(){return o(this,(function(e){return l.Util.isHtmlSkin(this.docInfo)?"cell"===this.docInfo.skinType?(u("#backgroundcolor-btn").hide(),u("#mobile-bgcolor-btn").hide()):"slide"===this.docInfo.skinType&&(l.Util.useSingle(this.docInfo)||u("div").removeClass("cell"),f.Browser.instance.isMobile&&(u("#thumbnail").addClass("cell"),u("#thumbnailbar").addClass("cell")),this.mobilePageAreaLoad(this.docInfo.status.pageNum)):"cell"!==this.docInfo.skinType&&(u("div").removeClass("cell"),this.mobilePageAreaLoad(this.docInfo.status.pageNum)),this.bindSnsBtn(),this.bindInfoBtn(),this.bindMoreBtn(),this.docInfo.downloadUrl&&this.downloadBtnLoad(this.docInfo.downloadUrl),f.Browser.instance.isMobile&&(this.initViewportContent(),this.adjustMobileDeviceViewport(),f.Browser.instance.isIOS&&this.bindWindowCloseBtnLoad()),u(".wrap__menu").removeClass("hide"),this.bindBgcolorBtn(),this.hasSubMenu()||u("#more").hide(),!0===window.localSynap.config.search&&this.searchTextLoad(),[2]}))}))},this.searchTextLoad=function(){u("#search-btn").removeClass("hide");var e=u("#search");u("#search-btn").on("click",(function(){if(u("#search").is(":visible"))return e.hide(),void u("#search-btn__img").removeClass("search-btn__img--on");e.show(),u("#search-btn__img").addClass("search-btn__img--on")}))},this.hasSubMenu=function(){var e=!1;return u(".scroll-blind__more-item").each((function(t,n){"none"!==u(n).css("display")&&(e=!0)})),e},this.bindSnsBtn=function(){var e=window.localSynap.config;if(!0===e.isShowSns){if(void 0!==e.kakaoAPIKey){t.addScript("https://developers.kakao.com/sdk/js/kakao.min.js")}u("#mobile-sns-btn").removeClass("hide"),u("#sns-btn").removeClass("hide"),u("#sns-btn").on("click",(function(){t.sns.snsDesktopDialog(t.dialog)})),u("#mobile-sns-btn").on("click",(function(){t.sns.snsMobileDialog(t.dialog)})),l.Util.bindClickOrTouchEvent(u("#mobile-sns-btn"),"scroll-blind__more-item--hover",(function(e){u("#more-submenu").toggle()}))}},this.bindInfoBtn=function(){var e=window.localSynap.config;!1!==e.isShowInfo&&(u("#mobile-info-btn").removeClass("hide"),u("#info-btn").removeClass("hide"),u("#info-btn").on("click",(function(){u("#info-btn__img").addClass("info-btn__img--on"),t.dialog.infoDialog(e.companyName?e.companyName:null,(function(){u("#info-btn__img").removeClass("info-btn__img--on")}))})),l.Util.bindClickOrTouchEvent(u("#mobile-info-btn"),"scroll-blind__more-item--hover",(function(n){u("#info-btn__img").addClass("info-btn__img--on"),u("#more-submenu").toggle(),t.dialog.infoDialog(e.companyName?e.companyName:null,(function(){u("#info-btn__img").removeClass("info-btn__img--on")}))})))},this.bindMoreBtn=function(){var e=u("#more-submenu");u("#more-btn").on(l.Util.getClickEventName(),(function(){if(u("#more-submenu").is(":visible"))return e.hide(),void u("#more-btn__img").removeClass("more-btn__img--on");e.show(),u("#more-btn__img").addClass("more-btn__img--on")})),u(document).on(l.Util.getClickEventName(),(function(e){"more-btn"===e.target.id||"more-btn"===e.target.parentElement.id||"string"==typeof e.target.className&&e.target.className.indexOf("scroll-blind__more-item")>-1||(u("#more-submenu").hide(),u("#more-btn__img").removeClass("more-btn__img--on"))}))},this.downloadBtnLoad=function(e){u("#download-btn > a").attr("href",e),u("#download-btn").removeClass("hide"),u("#mobile-download-btn").parent().attr("href",e),u("#mobile-download-btn").removeClass("hide"),l.Util.bindClickOrTouchEvent(u("#mobile-download-btn"),"scroll-blind__more-item--hover")},this.getHeaderCssName=function(e){var t=document.documentElement.clientWidth,n=document.documentElement.clientHeight,i=n>t?t:n,o=n>t?n:t,r=[400,600,800,1e3],s=[500,700,900,1100,1300],a=Math.round((i-r[0])/200),l=Math.round((o-s[0])/200);return a<0?a=0:a>r.length-1&&(a=r.length-1),l<0?l=0:l>s.length-1&&(l=s.length-1),["html-"+e+"-"+r[a]+"-P","html-"+e+"-"+s[l]+"-L"]},this.setHeaderCss=function(e){var n=t.getHeaderCssName(e);u(".wrap").addClass("html").addClass(n[0]).addClass(n[1]),u(".modal").addClass("html").addClass(n[0]).addClass(n[1])},this.getDocumentWidth=function(){var e=[500,650,800,1e3],n=t.docInfo.status.documentWidth?Math.ceil(t.docInfo.status.documentWidth*(96/72)):e[e.length-1],i=Math.ceil((n-e[0])/150);return i<0?i=0:i>e.length-1&&(i=e.length-1),n=e[i]},this.bindWindowCloseBtnLoad=function(){var e=u("#mobile-window-close-btn");e.removeClass("hide"),e.on(l.Util.getClickEventName(),(function(e){e.preventDefault(),window.close()})),e.html(c.LocaleMessage.getMessage("msg_window_close"))},this.initViewportContent=function(){var e=l.Util.isHtmlSlideSkin(t.docInfo)&&f.Browser.instance.isAndroid&&f.Browser.instance.getChromeVersion()>=73;if(l.Util.isHtmlSkin(t.docInfo)&&!e){var n=t.getDocumentWidth();t.setHeaderCss(n),t.viewportContent="width="+n+", minimum-scale=0.3"}else if(l.Util.isHtmlSkin(t.docInfo)||!f.Browser.instance.isIPhoneX&&!f.Browser.instance.isIPhoneXS)if(l.Util.isHtmlSkin(t.docInfo)||!f.Browser.instance.isIPhoneXSMax&&!f.Browser.instance.isIPhoneXR){window.screen.width<=768&&window.screen.height<=768?t.viewportContent="width=device-width, initial-scale=1.0, minimum-scale=1.0":t.viewportContent="width=768, minimum-scale=1.0"}else t.viewportContent="width=414, minimum-scale=1.0";else t.viewportContent="width=375, minimum-scale=1.0"},this.adjustMobileDeviceViewport=function(){document.querySelector('meta[name="viewport"]').setAttribute("content",t.viewportContent)},this.bindBgcolorBtn=function(){var n=function(){e.bgColorMode===r.lightScreen?(e.bgColorMode=r.darkScreen,"cell"===t.docInfo.skinType?u(".cell__piece").removeClass("img-loading-bright"):(u(".img-loading-bright").addClass("img-loading"),u(".img-loading").removeClass("img-loading-bright"))):(e.bgColorMode=r.lightScreen,"cell"===t.docInfo.skinType?u(".cell__piece").addClass("img-loading-bright"):(u(".img-loading").addClass("img-loading-bright"),u(".img-loading-bright").removeClass("img-loading"))),t.eventObserver.bgColor.notify(e.bgColorMode)};u("#backgroundcolor-btn").on("click",n),l.Util.bindClickOrTouchEvent(u("#mobile-bgcolor-btn"),"scroll-blind__more-item--hover",n)},this.bgColor=function(t){switch(t){case r.darkScreen:e.bgColorMode=r.darkScreen,u(document.body).removeClass("wrap__contents--bgcolor-light"),u("#contents").removeClass("wrap__contents--bgcolor-light"),u("#mobile-bgcolor-btn").html(c.LocaleMessage.getMessage("msg_light_backgroundcolor"));break;case r.lightScreen:e.bgColorMode=r.lightScreen,u(document.body).addClass("wrap__contents--bgcolor-light"),u("#contents").addClass("wrap__contents--bgcolor-light"),u("#mobile-bgcolor-btn").html(c.LocaleMessage.getMessage("msg_dark_backgroundcolor"))}},this.mobilePageAreaLoad=function(e){if(u("#total-page").html(String(e)),f.Browser.instance.isIOS){var n=document.createElement("select");n.id="page__select",n.className="page__select";for(var i=1;i<=e;i++){var o=document.createElement("option");o.value=i,o.innerHTML=i,n.appendChild(o)}document.getElementById("header-page").appendChild(n),document.getElementById("select-arrow").addEventListener("click",(function(){document.getElementById("page__select").focus()})),document.getElementById("page__select").addEventListener("change",(function(){t.eventObserver.page.notify({pageNum:document.getElementById("page__select").selectedIndex,isScroll:!1}),t.hide3secHeaderAndThumb()}))}else{var r=u("#page-content");u("#select-arrow, #page__input").on(l.Util.getClickEventName(),(function(e){if(l.Util.isMobileMode(t.docInfo.status.convertType)&&(r.toggle(),!r.is(":hidden"))){var n=l.Util.isHtmlSkin(t.docInfo)?l.Util.getHeadScale(".wrap__header__container"):1;u("#page-scroll-blind__list").scrollTop((u("#pagelist"+(t.docInfo.currentPage+1)).position().top-u("#pagelist1").position().top)/n),u(".page-scroll-blind__item").removeClass("page-scroll-blind--focus"),u("#pagelist"+(t.docInfo.currentPage+1)).addClass("page-scroll-blind--focus")}})),u(document).on("click",(function(e){"select-arrow"!==e.target.id&&"select-arrow-img"!==e.target.id&&"page__input"!==e.target.id&&r.hide()}));for(i=1;i<=e;i++)t.addPageSubmenuItem(i)}},this.addPageSubmenuItem=function(e){var n=u("
  • ",{id:"pagelist"+e,class:"page-scroll-blind__item","data-index":e,html:e});u(".page-scroll-blind__list").append(n),u("#pagelist"+e).on("click",(function(e){t.movePage(e),t.hide3secHeaderAndThumb()}))},this.hide3secHeaderAndThumb=function(){h.Thumbnail.THUMB_STATUS===h.THUMB_FLAG.off&&(t.eventObserver.mobileHeader.notify(a.ShowActionType.HIDE3SEC),t.eventObserver.mobileThumb.notify(a.ShowActionType.HIDE3SEC))},this.movePage=function(e){var n=typeof e.target.value,i=NaN;if("string"===n?i=parseInt(e.target.value.replace(/\D/g,"")):"number"===n&&(i=e.target.value),i-1!=t.docInfo.currentPage){i=0===e.currentTarget.id.indexOf("pagelist")?parseInt(e.currentTarget.getAttribute("data-index")):i;var o=t.docInfo.status.pageNum;isNaN(i)||i<=0||i>o?t.jqPageInput.val(t.docInfo.currentPage+1):t.eventObserver.page.notify({pageNum:i-1,isScroll:!1})}else t.jqPageInput.val(i)},this.focusPage=function(e){if(t.jqPageInput.val(e.pageNum+1),u("#page__input").attr("value",e.pageNum+1),f.Browser.instance.isIOS)document.getElementById("page__select").options[e.pageNum].selected=!0;else if(!u("#page-content").is(":hidden")){var n=l.Util.isHtmlSkin(t.docInfo)?l.Util.getHeadScale(".wrap__header__container"):1;u("#page-scroll-blind__list").scrollTop((u("#pagelist"+(e.pageNum+1)).position().top-u("#pagelist1").position().top)/n),u(".page-scroll-blind__item").removeClass("page-scroll-blind--focus"),u("#pagelist"+(e.pageNum+1)).addClass("page-scroll-blind--focus")}},this.mobileHeader=function(e){clearTimeout(t.mobileHeaderTimer);var n=u(".wrap__header"),i=function(){n.removeClass("wrap__header--hide")};if(e!==a.ShowActionType.SHOW){var o=function(){n.addClass("wrap__header--hide")};e===a.ShowActionType.HIDE?o():e===a.ShowActionType.HIDE3SEC&&(i(),t.mobileHeaderTimer=window.setTimeout((function(){o()}),3e3))}else i()},this.mobileHeaderHover=function(e){switch(e){case"mouseover":t.mobileHeader(a.ShowActionType.SHOW);break;case"mouseleave":t.mobileHeader(a.ShowActionType.HIDE3SEC)}},this.mouseoverEventBind=function(){u(".wrap__header").on("mouseover.head",(function(){l.Util.isMobileMode(t.docInfo.status.convertType)&&!l.Util.isFullScreen()&&"none"===u("#thumbnail").css("display")&&t.mobileHeaderHover("mouseover")})).on("mouseleave.head",(function(){l.Util.isMobileMode(t.docInfo.status.convertType)&&!l.Util.isFullScreen()&&"none"===u("#thumbnail").css("display")&&t.mobileHeaderHover("mouseleave")}))},this.setTitle=function(){window.localSynap.config.isShowTitle&&(document.getElementById("header-title").textContent=t.docInfo.title,document.getElementById("header-title").title=t.docInfo.title,"cell"===t.docInfo.skinType&&document.getElementById("container").clientWidth<330&&(document.getElementById("header-title").style.maxWidth="14%"))},this.orientationchange=function(){t.adjustMobileDeviceViewport()},this.resizeWindow=function(){l.Util.isFullScreen()||(l.Util.isMobileMode(t.docInfo.status.convertType)||u("#page-content").removeAttr("style"),document.getElementById("container").clientWidth<330?document.getElementById("header-title").style.maxWidth="14%":document.getElementById("header-title").style.maxWidth="",l.Util.isMobileMode(t.docInfo.status.convertType)&&t.viewMode!==d.VIEW_MODE.mobile?(t.subscribeMobileHeader(),h.Thumbnail.THUMB_STATUS===h.THUMB_FLAG.off&&t.eventObserver.mobileHeader.notify(a.ShowActionType.HIDE3SEC),t.viewMode=d.VIEW_MODE.mobile,t.setTotalPageWidth(),t.sns.getIsEnabled()&&(u("#dialog-contents__content").css("visibility","hidden"),setTimeout((function(){t.sns.resizeDialog(t.viewMode,t.dialog),u("#dialog-contents__content").css("visibility","")}),300))):l.Util.isMobileMode(t.docInfo.status.convertType)||t.viewMode===d.VIEW_MODE.desktop||(clearTimeout(t.mobileHeaderTimer),void 0!==window.localSynap&&!1!==window.localSynap.config.isShowHeader&&u(".wrap__header").removeClass("wrap__header--hide"),t.eventObserver.mobileHeader.unsubscribe(t.mobileHeader),t.viewMode=d.VIEW_MODE.desktop,t.setTotalPageWidth(),t.sns.getIsEnabled()&&(u("#dialog-contents__content").css("visibility","hidden"),setTimeout((function(){t.sns.resizeDialog(t.viewMode,t.dialog),u("#dialog-contents__content").css("visibility","")}),300))))}}return e.prototype.addScript=function(e){var t=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.src=e,t.appendChild(n)},e.bgColorMode=r.darkScreen,e}();t.Head=m}).call(this,n(3))},,,function(e,t,n){"use strict";n.r(t);var i=n(65),o=n.n(i);n.d(t,"ImageThumbnail",(function(){return o.a}));var r=n(66),s=n.n(r);n.d(t,"SlideThumbnail",(function(){return s.a}));var a=n(8);n.d(t,"Thumbnail",(function(){return a.Thumbnail})),n.d(t,"THUMB_FLAG",(function(){return a.THUMB_FLAG}))},,,,,,,function(e,t,n){"use strict";(function(e){var i=this&&this.__awaiter||function(t,n,i,o){return new(i||(i=e))((function(e,r){function s(e){try{l(o.next(e))}catch(e){r(e)}}function a(e){try{l(o.throw(e))}catch(e){r(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(s,a)}l((o=o.apply(t,n||[])).next())}))},o=this&&this.__generator||function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0?t.dialog.passwdDialog("msg_input_retry",t.sendPassword,t.cancelPassword):t.dialog.passwdDialog(null,t.sendPassword,t.cancelPassword)},this.getArchiveFileList=function(){return i(t,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:e=this.contextPath+"/archiveFileList/"+this.id,t.label=1;case 1:return t.trys.push([1,3,,4]),[4,l.Util.postJson(e)];case 2:return[2,t.sent()];case 3:return t.sent(),S("#contents").removeClass("img-loading"),this.dialog.alertDialog("msg_archiveFile_convFail"),[2,null];case 4:return[2]}}))}))},this.zipProcess=function(e){return i(t,void 0,void 0,(function(){var t;return o(this,(function(n){switch(n.label){case 0:return[4,this.getArchiveFileList()];case 1:return(t=n.sent())&&(S("#contents").removeClass("img-loading"),new T.FileExplorer(t,this.docInfo.title,this.contextPath,this.id,this.docInfo.status.convertType,e).archiveFileViewDialog()),[2]}}))}))},this.errProcess=function(e,n){var i="";if(3!==e){if(2===e)i="help.erro_code.errorcode.2.desc1";else if(4===e)i="help.erro_code.errorcode.4.desc1";else if(9===e)i="help.erro_code.errorcode.3.desc1";else{if(21===e)return void t.zipProcess(n);if(22===e)i="help.error_code.errorcode.22.desc1";else if(101===e)i="help.erro_code.errorcode.101.desc1";else if(134===e||148===e)i="help.erro_code.errorcode.134.desc1";else if(254===e)i="help.erro_code.errorcode.254.desc1";else if(255===e)i="help.erro_code.errorcode.255.desc1";else{if(!window.localSynap||"function"!=typeof window.localSynap.loadErrorHandler)return void(location.href=t.contextPath+"/exception?convLocale="+n);i=window.localSynap.loadErrorHandler(e)}}t.dialog.alertDialog(i)}else t.passwordProcess()},this.localSynapSetting=function(){window.localSynap||(window.localSynap={},window.localSynap.config={});var e=window.localSynap;e.getCurrentPage=function(){return t.docInfo.currentPage+1},e.moveNext=function(){t.docInfo.currentPage0&&(l.Util.isHtmlCellSkin(t.docInfo)?t.eventObserver.sheet.notify(t.docInfo.currentPage-1):t.eventObserver.page.notify({pageNum:t.docInfo.currentPage-1,isScroll:!1}))},e.movePage=function(e){e>0&&e<=t.docInfo.status.pageNum&&(l.Util.isHtmlCellSkin(t.docInfo)?t.eventObserver.sheet.notify(e-1):t.eventObserver.page.notify({pageNum:e-1,isScroll:!1}))},window.localSynap.onLoadBody&&window.localSynap.onLoadBody instanceof Function&&window.localSynap.onLoadBody()},this.focusPage=function(){window.localSynap.onMovePage&&window.localSynap.onMovePage instanceof Function&&window.localSynap.onMovePage()},this.scroll=function(){window.localSynap.onScroll&&window.localSynap.onScroll instanceof Function&&window.localSynap.onScroll()},this.optionSettings=function(){var e=window.localSynap.config;e.ZOOM_LIST&&0!==e.ZOOM_LIST.length&&(E.Controlbar.ZOOM_LIST=e.ZOOM_LIST),e.preventPrint&&S("body").addClass("layout")},this.getConvLocale=function(e){return void 0===e.convLocale?"ko":e.convLocale},this.isModuleType=function(e){return void 0===e.key},this.getContextPath=function(e){return t.isModuleType(e)?"/"===e.rs[e.rs.length-1]?e.rs.substring(0,e.rs.length-1):e.rs:e.contextPath},this.getInfoURL=function(e){return t.isModuleType(e)?t.getContextPath(e)+"/"+t.id+".xml":t.contextPath+"/status/"+e.key},this.load=function(){return i(t,void 0,void 0,(function(){var e,t,n,i,r,s,u,T,S,x,C;return o(this,(function(o){switch(o.label){case 0:return e=this.getParameter(),this.id=this.isModuleType(e)?e.fn:e.key,this.contextPath=this.getContextPath(e),!this.contextPath&&void 0!==window.localSynap&&window.localSynap.config.contextPath&&(this.contextPath=window.localSynap.config.contextPath.trim()),[4,d.LocaleMessage.setLocale(this.getConvLocale(e))];case 1:t=o.sent(),document.documentElement.setAttribute("lang",t),document.title=d.LocaleMessage.getMessage("view_title"),this.dialog.defaultDialog(),d.LocaleMessage.setLocaleMessage(),n=this.getInfoURL(e),o.label=2;case 2:o.label=3;case 3:return o.trys.push([3,13,,14]),this.isModuleType(e)?[4,l.Util.getXml(n)]:[3,5];case 4:return r=o.sent(),[3,7];case 5:return[4,l.Util.getJson(n)];case 6:r=o.sent(),o.label=7;case 7:return(i=r).imgDone?(this.docInfo=this.doAfterGetStatusForIMAGEServer(i),[3,15]):i.htmlDone?(s=this,[4,this.doAfterGetStatusForHTMLServer(i)]):[3,9];case 8:return s.docInfo=o.sent(),[3,15];case 9:return i.index?(this.docInfo=this.doAfterGetStatusForHTML(i),[3,15]):[3,10];case 10:return[4,l.Util.sleep(1e3)];case 11:o.sent(),o.label=12;case 12:return[3,14];case 13:return"403"===o.sent().message?this.dialog.alertDialog("msg_exception_url_access_failed"):this.dialog.alertDialog("help.erro_code.errorcode.255.desc1"),[2,null];case 14:return[3,2];case 15:if(this.docInfo.status.imgDone&&this.docInfo.status.imgErrCode>0)return this.errProcess(this.docInfo.status.imgErrCode,t),[2,null];if(this.docInfo.status.htmlDone&&this.docInfo.status.htmlErrCode>0)return this.errProcess(this.docInfo.status.htmlErrCode,t),[2,null];this.localSynapSetting(),u=[],l.Util.isHtmlSkin(this.docInfo)?"word"===this.docInfo.skinType||l.Util.useSingle(this.docInfo)?u=[new m.Head,new y.Word,new v.Presentation,new w.MobileEvent,new _.WindowEvent]:"cell"===this.docInfo.skinType?u=[new g.HtmlSheet,new m.Head,new v.Presentation,new w.MobileEvent,new _.WindowEvent,new E.Controlbar]:"slide"===this.docInfo.skinType&&(u=c.Browser.instance.isMobile?[new m.Head,new I.Slide,new v.Presentation,new b.KeyEvent,new w.MobileEvent,new _.WindowEvent,new E.Controlbar]:[new m.Head,new h.SlideThumbnail,new I.Slide,new v.Presentation,new b.KeyEvent,new w.MobileEvent,new _.WindowEvent,new E.Controlbar]):u="cell"===this.docInfo.skinType?[new f.ImageSheet,new m.Head,new v.Presentation,new w.MobileEvent,new _.WindowEvent,new E.Controlbar]:"cell"!==this.docInfo.skinType&&"image"!==this.docInfo.skinType&&!0===window.localSynap.config.search?[new m.Head,new p.ImagePage,new h.ImageThumbnail,new v.Presentation,new b.KeyEvent,new w.MobileEvent,new _.WindowEvent,new E.Controlbar,new a.Annotation]:[new m.Head,new p.ImagePage,new h.ImageThumbnail,new v.Presentation,new b.KeyEvent,new w.MobileEvent,new _.WindowEvent,new E.Controlbar],T=0,S=u,o.label=16;case 16:return T0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]n.docInfo.status.pageNum?n.docInfo.status.pageNum:e+t;null!=n.loadTimeout&&clearTimeout(n.loadTimeout),n.loadTimeout=window.setTimeout((function(){for(var e=0;ethis.initPageNum&&setTimeout((function(){n.pageResizeAction.resizePage(1,null,n.initPageNum,n.docInfo.status.pageNum-n.initPageNum)}),30),[2]}}))}))},n.setDefaultLadingCnt(3),n}return o(t,e),t.SLIDE_LIST=[],t.SLIDE_INFO={start:0,end:0,total:0},t.mousewheelInDesktop=function(e){(e.originalEvent.deltaY||-e.originalEvent.wheelDelta)<0?window.localSynap.movePrev():window.localSynap.moveNext()},t}(f.Page);t.Slide=g}).call(this,n(3))},,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){var i=this&&this.__awaiter||function(t,n,i,o){return new(i||(i=e))((function(e,r){function s(e){try{l(o.next(e))}catch(e){r(e)}}function a(e){try{l(o.throw(e))}catch(e){r(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(s,a)}l((o=o.apply(t,n||[])).next())}))},o=this&&this.__generator||function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]this.docInfo.status.pageNum?this.docInfo.status.pageNum:t+e,r=null==JSON.parse(localStorage.getItem(this.docInfo.jobId))?{}:JSON.parse(localStorage.getItem(this.docInfo.jobId)),s=n,o.label=1;case 1:return s-1);n++);i=this.jqSearchInput.val(),e||(this.focusSearchText(event,i,t.pageNum),setTimeout((function(){s.focusSearchText(event,i,t.pageNum+1,r.NEXT),s.focusSearchText(event,i,t.pageNum-1,r.PREV)}),20))}o.label=2;case 2:return[2]}}))}))},this.rePosition=function(t){if(void 0===t&&(t=null),window.localSynap.config.search){t=null==t?g.Page.RESIZE_OBJ:t;for(var n=e.docInfo.currentPage,i=e.DEFAULT_LOADING_CNT,o=n-i<0?0:n-i,r=n+i>e.docInfo.status.pageNum?e.docInfo.status.pageNum:n+i,s=f.Browser.instance.isMobile||100===d.DetectZoom.getRatio()?1:d.DetectZoom.getRatio()/100,a=p("#contents").width(),l=o;lr&&l*c>s?u:c},this.getPageWidthFitRatio=function(t,n){return n/e.textObj[t]["@attributes"].w},this.getPageZoomRatio=function(t,n){return g.Page.ORIGIN_SIZE[t].width/e.textObj[t]["@attributes"].w*n.percent},this.resizeWindow=function(){e.isFullScreen||e.rePosition()},this.fullScreen=function(t){t.isFullScreen?(p(".textlayer").addClass("textlayer--presentation"),e.isFullScreen=!0):(p(".textlayer").removeClass("textlayer--presentation"),e.isFullScreen=!1,e.focusPage({pageNum:e.docInfo.currentPage}))},this.clearSearchResult=function(t){return i(e,void 0,void 0,(function(){var e,n,i,r,s=this;return o(this,(function(o){switch(o.label){case 0:if(0==(e=t.target.value).length)return p("#search__input").blur(),[2];if(void 0!==this.prevSearchResult.textId&&this.prevSearchResult.query!=e){for(n=document.getElementsByClassName("textline--highlight"),i=n.length,r=0;rl?[2]:(f=JSON.parse(localStorage.getItem(this.docInfo.jobId)),[4,this.search(e,i)]);case 1:return 0==(c=o.sent()).length&&(d=!0),d&&void 0===this.prevSearchResult.textId?(p("#search__input").addClass("search__input--notfound"),p("#search__input").val(u.LocaleMessage.getMessage("empty-searchword")),p("#search__input").blur(),[2]):document.getElementById("textlayer"+i)?[3,3]:[4,this._createTextDiv(i,f)];case 2:o.sent(),o.label=3;case 3:for(g=[],m=0;mi,0!=g.length&&(this.prevSearchResult.query=e,null!=this.prevSearchResult.textId&&0!=this.prevSearchResult.textId.length&&this.prevSearchResult.textId.indexOf(g[0])<0&&(this.prevSearchResult.textId=!h||w?g.concat(this.prevSearchResult.textId):this.prevSearchResult.textId.concat(g))),[2]}}))}))},this.moveSearchText=function(t,n,s){return void 0===t&&(t=null),void 0===n&&(n=null),void 0===s&&(s=r.NEXT),i(e,void 0,void 0,(function(){var e,i,a,l,c,d,h,f,g,m,v,b,w,_;return o(this,(function(o){switch(o.label){case 0:e=t,i=null==n?this.docInfo.currentPage:n,a=this.docInfo.status.pageNum-1,l=JSON.parse(localStorage.getItem(this.docInfo.jobId)),c=[],d=!1,h=s!=r.PREV,o.label=1;case 1:return[4,this.search(e,i)];case 2:return 0==(c=o.sent()).length&&i===a||!h&&0==c.length&&i<=0?(d=!0,[3,7]):0!=c.length?[3,5]:(h?i++:i--,l[i]?[3,4]:[4,this.getXml(this.docInfo,i)]);case 3:if(null==(f=o.sent()).result)return[3,1];this.textObj[i]={"@attributes":f.page,text:f.text,allText:f.result},l[i.toString()]=f.result,localStorage.setItem(this.docInfo.jobId,JSON.stringify(l)),o.label=4;case 4:return[3,6];case 5:return[3,7];case 6:return[3,1];case 7:return d&&void 0===this.prevSearchResult.textId?(p("#search__input").addClass("search__input--notfound"),p("#search__input").val(u.LocaleMessage.getMessage("empty-searchword")),p("#search__input").blur(),[2]):d&&s!=r.NONE?[2]:document.getElementById("textlayer"+i)?[3,9]:[4,this._createTextDiv(i,l)];case 8:o.sent(),o.label=9;case 9:if(0!=c.length)for(g=this._parseIndex(this.prevSearchResult.highlight),b=0;be.DEFAULT_SEARCH_LENGTH&&(e.dialog.confirmDialog("input_limit_searchword",(function(){e.jqSearchInput.trigger("focus")})),t.target.value=t.target.value.slice(0,e.DEFAULT_SEARCH_LENGTH))})),e.jqSearchInput.on("focus",(function(){p("#search__input").hasClass("search__input--notfound")&&(p("#search__input").removeClass("search__input--notfound"),p("#search__input").val(""))}));var t=p("#search input[type=text]");t.focus((function(){p(this).siblings("label").hide()})),t.focusout((function(){""==p(this).val()&&p(this).siblings("label").show()}))},this.loadSpinner=function(){var e={lines:11,length:0,width:12,radius:30,scale:1.25,corners:.5,color:"#435c85",opacity:.25,rotate:0,direction:1,speed:1,trail:65,fps:20,zIndex:2e9,className:"spinner",top:"50%",left:a.Thumbnail.THUMB_STATUS==s.THUMB_FLAG.off?"50%":p("#thumbnail").outerWidth()+p("#contents").width()/2+"px",shadow:!1,hwaccel:!1,position:"fixed"},t=document.createElement("div");t.setAttribute("class","inner loading_spinner "),document.getElementById("contents").appendChild(t),new m(e).spin(t)},this.removeSpinner=function(){setTimeout((function(){p(".loading_spinner").remove()}),50)},this.eventBind=function(t){e.eventObserver=t,e.eventObserver.page.subscribe(e.focusPage),e.eventObserver.annotation.subscribe(e.rePosition),e.eventObserver.resizeWindow.subscribe(e.resizeWindow),e.eventObserver.fullScreen.subscribe(e.fullScreen),e.eventObserver.search.subscribe(e.moveSearchResult),e.searchEvent()},this.load=function(t,n){return i(e,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return this.docInfo=t,[4,this.loadTextXml(this.docInfo.currentPage)];case 1:return e.sent(),this.eventBind(n),[2]}}))}))}};t.Annotation=v}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var i,o=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__awaiter||function(t,n,i,o){return new(i||(i=e))((function(e,r){function s(e){try{l(o.next(e))}catch(e){r(e)}}function a(e){try{l(o.throw(e))}catch(e){r(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(s,a)}l((o=o.apply(t,n||[])).next())}))},s=this&&this.__generator||function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0)){var e=document.createElement("div");e.setAttribute("class","inner loading_spinner "),document.getElementById("contents-area").appendChild(e),new d({lines:11,length:0,width:12,radius:30,scale:1.25,corners:.5,color:"#435c85",opacity:.25,rotate:0,direction:1,speed:1,trail:65,fps:20,zIndex:2e9,className:"spinner",top:"50%",left:"50%",shadow:!1,hwaccel:!1,position:"absolute"}).spin(e)}},n.removeSpinner=function(){l.Util.isMobileMode(n.docInfo.status.convertType)||setTimeout((function(){c(".loading_spinner").remove()}),50)},n.initThumbNum=10,n}return o(t,e),t.SLIDE_INFO={start:0,end:0,total:0},t}(u.Thumbnail);t.default=h}).call(this,n(3))},function(e,t,n){e.exports=function(){"use strict";function e(e,t){var n,i=document.createElement(e||"div");for(n in t)i[n]=t[n];return i}function t(e){for(var t=1,n=arguments.length;n>t;t++)e.appendChild(arguments[t]);return e}function n(e,t,n,i){var o=["opacity",t,~~(100*e),n,i].join("-"),r=.01+n/i*100,s=Math.max(1-(1-e)/t*(100-r),e),a=l.substring(0,l.indexOf("Animation")).toLowerCase(),u=a&&"-"+a+"-"||"";return d[o]||(c.insertRule("@"+u+"keyframes "+o+"{0%{opacity:"+s+"}"+r+"%{opacity:"+e+"}"+(r+.01)+"%{opacity:1}"+(r+t)%100+"%{opacity:"+e+"}100%{opacity:"+s+"}}",c.cssRules.length),d[o]=1),o}function i(e,t){var n,i,o=e.style;if(void 0!==o[t=t.charAt(0).toUpperCase()+t.slice(1)])return t;for(i=0;i>1)+"px"})}for(var c,u=0,d=(r.lines-1)*(1-r.direction)/2;u',n)}c.addRule(".spin-vml","behavior:url(#default#VML)"),a.prototype.lines=function(e,i){function r(){return o(n("group",{coordsize:u+" "+u,coordorigin:-c+" "+-c}),{width:u,height:u})}function a(e,a,l){t(h,t(o(r(),{rotation:360/i.lines*e+"deg",left:~~a}),t(o(n("roundrect",{arcsize:i.corners}),{width:c,height:i.scale*i.width,left:i.scale*i.radius,top:-i.scale*i.width>>1,filter:l}),n("fill",{color:s(i.color,e),opacity:i.opacity}),n("stroke",{opacity:0}))))}var l,c=i.scale*(i.length+i.width),u=2*i.scale*c,d=-(i.width+i.length)*i.scale*2+"px",h=o(r(),{position:"absolute",top:d,left:d});if(i.shadow)for(l=1;l<=i.lines;l++)a(l,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(l=1;l<=i.lines;l++)a(l);return t(e,h)},a.prototype.opacity=function(e,t,n,i){var o=e.firstChild;i=i.shadow&&i.lines||0,o&&t+i0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]=this.showSheetTabIdx&&l("#sheet"+m).hide();return this.endTabIdx=this.showSheetTabIdx,[2]}}))}))},this.sheetTabPopup=function(t){l("#tablist-popup").toggle(),l("#sheet-arrow").css("top",l("#sheet-content").height()+20),l("#sheet-content").is(":hidden")||(l("#tablist-popup__ul").scrollTop(l("#tablist"+e.docInfo.currentSheet).position().top-l("#tablist0").position().top),l(".tablist-popup__li").removeClass("tablist-popup--focus"),l("#tablist"+e.docInfo.currentSheet).addClass("tablist-popup--focus"))},this.moveSheetEvent=function(t){var n=parseInt(t.currentTarget.getAttribute("data-index"));e.eventObserver.sheet.notify(n)},this.moveSheet=function(t){-1!==e.validCheckSheet(t)&&e.docInfo.currentSheet!==t&&(e.loadSheet(t),e.sheetTabActive(t))},this.validCheckSheet=function(t){if(t<0||t>=e.maxPage)return-1;if(!l("#sheet"+t).is(":visible")){if(t>=e.startTabIdx){for(var n=t-e.showSheetTabIdx,i=0;i<=n;i++)l("#sheet"+(i+e.showSheetTabIdx)).show(),l("#sheet"+i).hide();e.startTabIdx=n+1,e.endTabIdx=n+e.showSheetTabIdx}else{for(i=t;i=e.maxPage)return l(".sheet-move").hide(),l(".sheet-list__sheet-tab").removeAttr("style"),void(e.showSheetTabIdx=e.maxPage);if(n!==e.showSheetTabIdx){if(l(".sheet-move").css("display","inline-block"),n>e.showSheetTabIdx){var i=e.startTabIdx+n;if(e.maxPage>=i)for(var o=e.startTabIdx;o=s;o--)l("#sheet"+o).show();e.startTabIdx=s}}else if(n=r){var s;for(o=s=e.showSheetTabIdx-n+e.startTabIdx;o>=0;o--)l("#sheet"+o).hide();e.startTabIdx=s}else{var a=e.startTabIdx+n;for(o=a;o<=e.maxPage;o++)l("#sheet"+o).hide();e.endTabIdx=a}}e.showSheetTabIdx=n}},this.toggleMobileHeader=function(){s.Util.isMobileMode(e.docInfo.status.convertType)&&!s.Util.isFullScreen()&&("none"===l(".wrap__header").css("display")?e.eventObserver.mobileHeader.notify(a.ShowActionType.HIDE3SEC):e.eventObserver.mobileHeader.notify(a.ShowActionType.HIDE))}};t.Sheet=u}).call(this,n(3))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(2),r=n(1),s=n(6);!function(e){e[e.UP=0]="UP",e[e.RIGHT=1]="RIGHT",e[e.DOWN=2]="DOWN",e[e.LEFT=3]="LEFT"}(i=t.SWIPE_DIRECTION||(t.SWIPE_DIRECTION={}));var a=function(){var e=this;this.docInfo=null,this.eventObserver=null,this.isGenTouchStart=!1,this.isGenTouchMove=!1,this.isGenMultiTouch=!1,this.touchInfo={type:null,x:-1,y:-1,time:0},this.doubleTapThreshold=30,this.doubleTapInterval=500,this.singleTapInterval=550,this.swipeThreshold=50,this.swipeInterval=3e3,this.multiTouchInterval=1e3,this.onTouchStart=function(t){t.targetTouches.length>=2?e.isGenMultiTouch=!0:(e.isGenTouchStart=!0,e.startX=t.changedTouches[0].pageX,e.startY=t.changedTouches[0].pageY,e.startTime=t.timeStamp)},this.onTouchMove=function(t){!e.isGenTouchStart||t.targetTouches.length>=2?e.isGenMultiTouch=!0:e.isGenTouchMove=!0},this.onTouchEnd=function(t){if(e.isGenMultiTouch)return clearTimeout(e.multiTouchTimer),void(e.multiTouchTimer=setTimeout((function(){e.isGenMultiTouch=!1}),e.multiTouchInterval));e.isDoubleTapEvent(t)?e.doubleTapEvent(t):e.isSingleTapEvent(t)?e.singleTapEvent(t):"cell"!==e.docInfo.skinType&&o.Util.isFullScreen()&&s.Page.RESIZE_OBJ.type===s.RESIZE_TYPE.PageFit&&!o.Util.isHtmlWordSkin(e.docInfo)&&e.isSwipeEvent(t)?e.swipeEvent(t):e.touchInfo.type=null,e.isGenTouchStart=!1,e.isGenTouchMove=!1},this.isSingleTapEvent=function(t){return!e.touchInfo.type&&e.isGenTouchStart&&!e.isGenTouchMove},this.singleTapEvent=function(t){e.touchInfo.type="tap",e.touchInfo.x=t.changedTouches[0].pageX,e.touchInfo.y=t.changedTouches[0].pageY,e.touchInfo.time=t.timeStamp,e.singleTapTimer=setTimeout((function(){e.touchInfo.type=null,o.Util.isFullScreen()?e.eventObserver.fullscreenSingleTap.notify():e.eventObserver.singleTap.notify()}),e.singleTapInterval)},this.isDoubleTapEvent=function(t){return"tap"===e.touchInfo.type&&e.isGenTouchStart&&!e.isGenTouchMove&&t.timeStamp-e.touchInfo.time<=e.doubleTapInterval&&Math.abs(e.touchInfo.x-t.changedTouches[0].pageX)<=e.doubleTapThreshold&&Math.abs(e.touchInfo.y-t.changedTouches[0].pageY)<=e.doubleTapThreshold},this.doubleTapEvent=function(t){clearTimeout(e.singleTapTimer),e.touchInfo.type=null,e.eventObserver.doubleTap.notify(t),t.preventDefault(),t.stopImmediatePropagation()},this.isSwipeEvent=function(t){return!1!==(!e.touchInfo.type&&e.isGenTouchStart&&e.isGenTouchMove&&t.timeStamp-e.startTime<=e.swipeInterval)&&(e.distX=t.changedTouches[0].pageX-e.startX,e.distY=t.changedTouches[0].pageY-e.startY,e.dist=Math.sqrt(Math.pow(e.distX,2)+Math.pow(e.distY,2)),e.dist>=e.swipeThreshold)},this.swipeEvent=function(t){var n,o=180*Math.atan2(-e.distY,e.distX)/Math.PI;o>=45&&o<=135?n=i.UP:o<45&&o>-45?n=i.RIGHT:o<=-45&&o>=-135?n=i.DOWN:(o<-135&&o>=-180||o>135&&o<=180)&&(n=i.LEFT),e.eventObserver.swipe.notify(n),t.preventDefault(),t.stopImmediatePropagation()},this.touchEventBind=function(){var t="cell"===e.docInfo.skinType?"contents":"contents-area",n=document.getElementById(t),i={passive:!r.Browser.instance.isIOS};n.addEventListener("touchstart",e.onTouchStart,i),n.addEventListener("touchmove",e.onTouchMove,i),n.addEventListener("touchend",e.onTouchEnd,i)},this.preventCopy=function(){r.Browser.instance.isIOS&&(document.getElementById("wrap").className=document.getElementById("wrap").className+" notAllowCopyForIOS",r.Browser.instance.version>=9&&document.body.addEventListener("touchforcechange",(function(e){if(e.changedTouches[0].force>=.1)return e.preventDefault(),!1})))},this.load=function(e,t){this.docInfo=e,this.eventObserver=t,this.touchEventBind(),!1===window.localSynap.config.allowCopy&&this.preventCopy()}};t.MobileEvent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),r=n(2),s=n(9),a=n(1);!function(e){e[e.PAGEUP=33]="PAGEUP",e[e.PAGEDOWN=34]="PAGEDOWN",e[e.END=35]="END",e[e.HOME=36]="HOME",e[e.LEFTARROW=37]="LEFTARROW",e[e.UPARROW=38]="UPARROW",e[e.RIGHTARROW=39]="RIGHTARROW",e[e.DOWNARROW=40]="DOWNARROW",e[e.F11=122]="F11",e[e.ESC=27]="ESC"}(i=t.keyMap||(t.keyMap={}));var l=function(){var e=this;this.eventObserver=null,this.docInfo=null,this.maxPage=null,this.keypressCnt=0,this.stopKeyTimeout=null,this.scrollContentAreaEl=a.Browser.instance.isIOS?o(document):o("#contents"),this.pageInputEventKey=new Array(i.END,i.HOME,i.LEFTARROW,i.RIGHTARROW),this.isOnePage=function(){return!(!r.Util.isHtmlSlideSkin(e.docInfo)||a.Browser.instance.isMobile)||!(!r.Util.isFullScreen()||!s.DetectZoom||100!==s.DetectZoom.getRatio())||void 0},this.pageKeyEvent=function(t){if(t.keyCode!==i.F11&&t.keyCode!==i.ESC){var n=t.target;"page__input"===n.id&&e.pageInputEventKey.indexOf(t.keyCode)>-1||(n.id.indexOf("page")>-1&&-1!==new Array(i.PAGEUP,i.PAGEDOWN,i.UPARROW,i.DOWNARROW,i.LEFTARROW,i.RIGHTARROW).indexOf(t.keyCode)&&t.preventDefault(),n.id.indexOf("thumb")>-1||(e.keypressCnt+=1,clearTimeout(e.stopKeyTimeout),e.keypressCnt>0&&(e.stopKeyTimeout=window.setTimeout((function(){var n=!0===e.isOnePage()?e.fullscreenGetPageNum(t.keyCode,e.keypressCnt):e.getPageNum(t.keyCode,e.keypressCnt);e.keypressCnt=0,-1!==n&&e.keyMovePage(n)}),20))))}},this.getPageNum=function(t,n){var o=e.docInfo.currentPage,r=-1;switch(t){case i.PAGEUP:var s=o-n;r=s<0?0:s;break;case i.PAGEDOWN:var a=o+n;r=a>e.maxPage-1?e.maxPage-1:a;break;case i.UPARROW:e.scrollContentAreaEl.scrollTop(e.scrollContentAreaEl.scrollTop()-40);break;case i.LEFTARROW:e.scrollContentAreaEl.scrollLeft(e.scrollContentAreaEl.scrollLeft()-40);break;case i.DOWNARROW:e.scrollContentAreaEl.scrollTop(e.scrollContentAreaEl.scrollTop()+40);break;case i.RIGHTARROW:e.scrollContentAreaEl.scrollLeft(e.scrollContentAreaEl.scrollLeft()+40);break;case i.HOME:e.scrollContentAreaEl.scrollTop(0);break;case i.END:e.scrollContentAreaEl.scrollTop(e.scrollContentAreaEl.prop("scrollHeight"));break;default:r=-1}return r},this.fullscreenGetPageNum=function(t,n){var o=e.docInfo.currentPage,r=-1;switch(t){case i.PAGEUP:case i.UPARROW:case i.LEFTARROW:var s=o-n;r=s<0?0:s;break;case i.PAGEDOWN:case i.DOWNARROW:case i.RIGHTARROW:var a=o+n;r=a>e.maxPage-1?e.maxPage-1:a;break;case i.HOME:r=0;break;case i.END:r=e.maxPage-1;break;default:r=-1}return r},this.keyMovePage=function(t){isNaN(t)||t<0||t>e.maxPage-1||1===e.maxPage?o("#page__input").val(e.docInfo.currentPage+1):e.eventObserver.page.notify({pageNum:t,isScroll:!1})},this.eventBind=function(t){e.eventObserver=t,o(window).on("keyup",(function(){e.keypressCnt=0})),o(window).on("keydown",(function(t){return e.pageKeyEvent(t.originalEvent)}))},this.load=function(e,t){this.docInfo=e,this.maxPage=this.docInfo.status.pageNum,this.eventBind(t)}};t.KeyEvent=l},function(e,t,n){"use strict";(function(e){var i=this&&this.__awaiter||function(t,n,i,o){return new(i||(i=e))((function(e,r){function s(e){try{l(o.next(e))}catch(e){r(e)}}function a(e){try{l(o.throw(e))}catch(e){r(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(s,a)}l((o=o.apply(t,n||[])).next())}))},o=this&&this.__generator||function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]=0;o--){var r=a("
    ",{class:"fileExplorer-path__filePath-name",id:"filePath"+i,text:e[o].fileName,title:e[o].fileName,"data-index":o});t.children().length>0?a(r).insertBefore("#arrow"+(i-1)):t.append(r);var s=Math.ceil(document.getElementById("filePath"+i).offsetWidth);if((n+=(s=s>g.maxFileNamePx?g.maxFileNamePx:s)+10)>g.totalPathWidth){a("#filePath"+i).remove(),a("#arrow"+(i-1)).remove();break}if(0!==o){var l=a("
    ",{class:"fileExplorer-path__filePath-arrow",id:"arrow"+i});a(l).insertBefore("#filePath"+i)}i+=1}0===g.currentPathListIdx?(g.jqPrevBtn.addClass("fileExplorer-path__prevBtn--deactivate"),g.jqPrevBtn.prop("disabled",!0)):(g.jqPrevBtn.removeClass("fileExplorer-path__prevBtn--deactivate"),g.jqPrevBtn.prop("disabled",!1)),g.currentPathListIdx===g.pathList.length-1?(g.jqNextBtn.addClass("fileExplorer-path__nextBtn--deactivate"),g.jqNextBtn.prop("disabled",!0)):(g.jqNextBtn.removeClass("fileExplorer-path__nextBtn--deactivate"),g.jqNextBtn.prop("disabled",!1))},this.createFileTreeList=function(e){for(var t=document.createDocumentFragment(),n=0,i=e;n0&&(g.currentPathListIdx-=1,g.currentTree=g.pathList[g.currentPathListIdx],g.updateTree()))}))},this.filePathNextBtnEventBind=function(){a(".fileExplorer-path__nextBtn").on(u.Browser.instance.isMobile?"touchstart":"mouseover",(function(e){a(e.target).prop("disabled")||a(e.target).addClass("fileExplorer-path__nextBtn--hover")})).on(u.Browser.instance.isMobile?"touchend click":"mouseout click",(function(e){"touchend"!==e.type&&"mouseout"!==e.type||a(e.target).removeClass("fileExplorer-path__nextBtn--hover"),"click"===e.type&&(a(e.target).prop("disabled")||g.currentPathListIdx-1&&a(e.target).addClass("fileExplorer-path__filePath-name--hover")})).on(u.Browser.instance.isMobile?"touchend click":"mouseout click",(function(e){"touchend"!==e.type&&"mouseout"!==e.type||e.target.className.indexOf("fileExplorer-path__filePath-name")>-1&&a(e.target).removeClass("fileExplorer-path__filePath-name--hover"),"click"===e.type&&(g.currentPathListIdx=parseInt(e.target.getAttribute("data-index")),g.currentTree=g.pathList[g.currentPathListIdx],g.updateTree())}))},this.fileTreeSortDivEventBind=function(){g.jqFileTreeSortDiv.on(u.Browser.instance.isMobile?"touchstart":"mouseover",(function(e){var t=e.target.className.indexOf("fileExplorer-fileTree-sort__div-arrow")>-1||e.target.className.indexOf("fileExplorer-fileTree-sort__div-type")>-1?e.target.parentElement:e.target.className.indexOf("fileExplorer-fileTree-sort__div")>-1?e.target:null;t.className.indexOf("fileExplorer-fileTree-sort__div")>-1&&(t.className+=" fileExplorer-fileTree-sort__div--hover")})).on(u.Browser.instance.isMobile?"touchend click":"mouseout click",(function(e){"touchend"!==e.type&&"mouseout"!==e.type||a(".fileExplorer-fileTree-sort__div--hover").removeClass("fileExplorer-fileTree-sort__div--hover")})),g.jqFileTreeSort.on("click",(function(e){g.fileTreeSortDivClick(e)}))},this.fileTreeSortDivClick=function(e){var t=e.target.className.indexOf("fileExplorer-fileTree-sort__div-arrow")>-1||e.target.className.indexOf("fileExplorer-fileTree-sort__div-type")>-1?e.target.parentElement:e.target.className.indexOf("fileExplorer-fileTree-sort__div")>-1?e.target:null;if(null!==t){var n=null;if("fileExplorer-fileTree-sort__div-fileName"===t.id)n=r.FILENAME;else if("fileExplorer-fileTree-sort__div-fileType"===t.id)n=r.FILETYPE;else{if("fileExplorer-fileTree-sort__div-fileSize"!==t.id)return;n=r.FILESIZE}g.currentTree.childSort.sortingField!==n?g.currentTree.childSort.sortingStatus=s.ASEC:g.currentTree.childSort.sortingStatus=g.currentTree.childSort.sortingStatus===s.ASEC?s.DESC:s.ASEC,g.currentTree.childSort.sortingField=n,g.fileTreeSort(),g.setFileTreeSortArrow(),g.currentTree.children=[],g.currentTree.children=g.childFolderList.concat(g.childFileList),g.jqFileTreeFolderList.empty(),g.jqFileTreeFileList.empty(),g.jqFileTreeFolderList.append(g.createFileTreeList(g.childFolderList)),g.jqFileTreeFileList.append(g.createFileTreeList(g.childFileList)),l.Util.isMobileMode(g.convertType)&&g.setArchiveFileNameWidth()}},this.fileTreeSort=function(){var e=g.currentTree.childSort.sortingField;switch(g.currentTree.childSort.sortingStatus){case s.ASEC:g.childFileList.sort((function(t,n){return t[e]-1?e.target:e.target.parentElement;t.className+=" fileExplorer-fileTree-list__div--selected",g.selectedFilePath=t.getElementsByClassName("fileExplorer-fileTree-list__div-path")[0].textContent}))},this.fileTreeFolderListEventBind=function(){var e=0;g.jqFileTreeFolderList.on("click",(function(t){var n=(new Date).getTime();e+250>n&&g.fileTreeFolderListDoubleClick(t),e=n}));var t=0;g.jqFileTreeFolderList.on("touchstart",(function(e){var n=(new Date).getTime();t+250>n&&(e.preventDefault(),g.fileTreeFolderListDoubleClick(e)),t=n}))},this.fileTreeFolderListDoubleClick=function(e){g.isDown=!1;var t=e.target.parentElement.className.indexOf("fileExplorer-fileTree-folderList")>-1?e.target:e.target.parentElement,n=g.getCurrentPathTree(t.getElementsByClassName("fileExplorer-fileTree-list__div-path")[0].textContent,g.currentTree.children);g.currentTree=n,g.pushCurrentTree(g.currentTree),g.updateTree()},this.pushCurrentTree=function(e){var t,n=g.pathList.length;for(t=n-1;t>=0;t--){if(null===e.parent&&e===g.pathList[t])return void(g.currentPathListIdx=t);if(g.pathList[t]===e.parent){if(e===g.pathList[t+1])return void(g.currentPathListIdx=t+1);var i;for(i=t+1;i-1){if(g.folderTreeArrowClick(e.target),0!==e.target.parentElement.parentElement.getElementsByClassName("group").length)return;if("fileExplorer-folderTree-div__arrow"===e.target.className)return}var t=e.target.className.indexOf("fileExplorer-folderTreeLine-div")<=-1?e.target.parentElement:e.target;if(!(t.className.indexOf("fileExplorer-folderTreeLine-div")<=-1)){var n=g.getCurrentPathTree(t.id,g.fileTree.children);g.currentTree=n,g.pushCurrentTree(g.currentTree),g.updateTree()}}))},this.folderTreeArrowClick=function(e){e.className.indexOf("folderExplorer-arrow-down")>-1?(e.className="fileExplorer-folderTree-div__arrow",a(e.parentElement.parentElement.getElementsByClassName("group").item(0)).hide()):(e.className+=" folderExplorer-arrow-down",a(e.parentElement.parentElement.getElementsByClassName("group").item(0)).show())},this.viewFile=function(e){return i(g,void 0,void 0,(function(){var t,n,i;return o(this,(function(o){switch(o.label){case 0:t=this.contextPath+"/viewArchiveFile/"+this.docId,(n={}).param={filePath:this.selectedFilePath,convertType:this.convertType,convertLocale:this.convLocale},o.label=1;case 1:return o.trys.push([1,3,,4]),[4,l.Util.ajaxCall(t,"POST",n)];case 2:return i=o.sent(),e.location.href=i?this.contextPath+"/view/"+JSON.parse(i).key:this.contextPath+"/exception?convLocale="+this.convLocale,[3,4];case 3:return o.sent(),e.location.href=this.contextPath+"/exception?convLocale="+this.convLocale,[3,4];case 4:return[2]}}))}))},this.viewFileEventBind=function(){a(".fileExplorer-viewerBtn").on("click",(function(){if(g.selectedFilePath){var e=window.open(g.contextPath+"/loading");g.viewFile(e)}}))},this.setFileTreeHeight=function(){a(".fileExplorer").css("height",a("#wrap").height()-parseInt(a(".modal").css("padding-top")));var e=a(".fileExplorer").outerHeight(!0)-a(".fileExplorer-header").outerHeight(!0)-a(".fileExplorer-path").outerHeight(!0)-a(".fileExplorer-viewerBtn").outerHeight(!0);a(".fileExplorer-fileTree").css("height",e),a(".fileExplorer-fileTree-list").css("height",e-a(".fileExplorer-fileTree-sort").outerHeight(!0))},this.setFilePathWidth=function(){var e=a(".fileExplorer").outerWidth(!0)-2*a(".fileExplorer-path__prevBtn").outerWidth(!0)-28;a(".fileExplorer-path__filePath").css("width",e),g.totalPathWidth=e},this.setSortDivWidth=function(){var e=a(".fileExplorer-tree").outerWidth(!0)/3-parseInt(a(".fileExplorer-fileTree-sort__div").css("padding-left"))-parseInt(a(".fileExplorer-fileTree-sort__div").css("padding-right"))-parseInt(a(".fileExplorer-fileTree-sort__div").css("border-right-width"));a(".fileExplorer-fileTree-sort__div").css("width",e)},this.setArchiveFileHeaderWidth=function(){var e=a(".fileExplorer-header").outerWidth(!0)-parseInt(a(".fileExplorer-header").css("padding-right"))-parseInt(a(".fileExplorer-header").css("padding-left"))-parseInt(a(".fileExplorer-header__archiveFileName").css("padding-left"))-parseInt(a(".fileExplorer-header__archiveFileName").css("padding-right"))-a(".fileExplorer-header__closeBtn").outerWidth(!0);a(".fileExplorer-header__archiveFileName").css("width",e)},this.setArchiveFileNameWidth=function(){var e=a(".fileExplorer-tree").outerWidth()-a(".fileExplorer-fileTree-list__div-icon").outerWidth()-parseInt(a(".fileExplorer-fileTree-list__div").css("padding-left"))-parseInt(a(".fileExplorer-fileTree-list__div").css("padding-right"))-parseInt(a(".fileExplorer-fileTree-list__div-icon").css("margin-right"))-parseInt(a(".fileExplorer-fileTree-list__div-name").css("margin-right"))-68;a(".fileExplorer-fileTree-list__div-name").css("max-width",e)},this.resizeEvent=function(){l.Util.isMobileMode(g.convertType)&&g.viewMode!==d.VIEW_MODE.mobile?g.viewMode=d.VIEW_MODE.mobile:l.Util.isMobileMode(g.convertType)||g.viewMode===d.VIEW_MODE.desktop||(g.viewMode=d.VIEW_MODE.desktop,a(".fileExplorer").css("height",""),a(".fileExplorer-fileTree").css("height",""),a(".fileExplorer-fileTree-list").css("height",""),a(".fileExplorer-path__filePath").css("width",""),a(".fileExplorer-fileTree-sort__div").css("width",""),a(".fileExplorer-header__archiveFileName").css("width",""),a(".fileExplorer-fileTree-list__div-name").css("max-width",""),g.totalPathWidth=413),l.Util.isMobileMode(g.convertType)&&(g.setFileTreeHeight(),g.setFilePathWidth(),g.setSortDivWidth(),g.setArchiveFileHeaderWidth(),g.setArchiveFileNameWidth()),g.createCurrentPath(g.pathList)},this.resizeEventBind=function(){var e;a(window).on("resize",(function(){clearTimeout(e),e=setTimeout(g.resizeEvent,20)}))},this.closeEventBind=function(){a(".fileExplorer-header__closeBtn").on("click",(function(){self.close()}))},this.devideToFolderAndFileList=function(e){for(var t=[],n=[],i=0,o=e;i0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]=10)try{!document.execCommand("copy",null,null)||o.Browser.instance.isIE&&!this.allowAuth(e.value)||alert(""+i.LocaleMessage.getMessage("sns_url_copy_completed"))}catch(e){alert(e)}},e.prototype.sendSns=function(e,t,n){var r=window.localSynap.config.kakaoAPIKey;if(void 0!==r)try{Kakao.init(r)}catch(e){}var s=encodeURIComponent(t),a=encodeURIComponent(n),l=encodeURIComponent("\r\n"),c={};switch(e){case"facebook":c.method="popup",c.url="http://www.facebook.com/sharer/sharer.php?u="+s;break;case"twitter":c.method="popup",c.url="http://twitter.com/intent/tweet?text="+a+"&url="+s;break;case"kakaostory":c.method="popup",c.url="https://story.kakao.com/share?url="+s;break;case"band":o.Browser.instance.isMobile?(c.method="web2app",c.param="bandapp://create/post?text="+a+l+s,c.a_store="itms-apps://itunes.apple.com/app/id542613198",c.g_store="market://details?id=com.nhn.android.band"):(c.method="popup",c.url="http://www.band.us/plugin/share?body="+s);break;case"kakaotalk":return Kakao.Link.sendDefault({objectType:"text",text:""+i.LocaleMessage.getMessage("view_title"),link:{mobileWebUrl:t,webUrl:t},installTalk:!0}),!0;default:return!1}switch(c.method){case"popup":window.open(c.url);break;case"web2app":if(o.Browser.instance.isAndroid)if(-1!==o.Browser.instance.getChromeVersion())location.href="intent:"+c.param+"#Intent;package=com.nhn.android.band;end;";else{var u=document.createElement("iframe");u.style.display="none",u.src=c.param,document.body.appendChild(u),document.body.removeChild(u)}else o.Browser.instance.isIOS&&(location.href=c.param)}},e.prototype.initSnsDialog=function(e){e.jqPassword.hide(),e.jqMessage.hide(),r(".dialog-buttons__commit").hide(),r(".dialog-buttons__cancel").show(),e.jqDialog.show(),e.jqModal.show(),this.isEnabled=!0},e.prototype.setUrlAreaWidth=function(){var e=r(".dialog-contents__content__inputArea").width()-r("#urlBtn").innerWidth()-(r("#urlArea").outerWidth()-r("#urlArea").width())-1;r("#urlArea").css("width",e+"px")},e.prototype.addInputArea=function(e,t){var n=this,s=this.createDivElement("dialog-contents__content__inputArea"),a=document.createElement("input");a.type="text",a.id="urlArea",a.className="dialog-contents__content__inputArea__urlArea",a.value=this.thisUrl,a.readOnly=!0;var l=o.Browser.instance.isIOS&&o.Browser.instance.getIOSVersion()<10?""+i.LocaleMessage.getMessage("sns_url_select"):""+i.LocaleMessage.getMessage("sns_url_copy"),c=this.createAElement("#","urlBtn","dialog-contents__content__inputArea__urlBtn",l,(function(){n.clipboardCopy(a)}));c.appendChild(document.createTextNode(l)),s.appendChild(a),s.appendChild(c),e.jqContent.append(s),this.setUrlAreaWidth(),o.Browser.instance.isSafari||o.Browser.instance.isIOS?(r(".dialog-contents__content__inputArea").css("display","table"),r("#urlArea").css("display","table-cell"),r("#urlBtn").css("display","table-cell")):r("#urlBtn").css("vertical-align","sub")},e.prototype.addSnsArea=function(e){for(var t=this,n=this.createDivElement("dialog-contents__content__snsArea"),i=function(i){if("kakaotalk"===i&&(void 0===window.localSynap.config.kakaoAPIKey||""===window.localSynap.config.kakaoAPIKey))return"continue";var r=i,s=o.createAElement("#",r,"dialog-contents__content__snsArea__"+r,r,(function(){t.sendSns(i,t.thisUrl,""),t.closeEvent(e)}));s.title=i,s.className="dialog-contents__content__snsArea__"+r,n.appendChild(s)},o=this,r=0,s=["facebook","twitter","kakaotalk","band"];r0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]t}));break;case d.ZOOM_TYPE.OriginSize:n=100}n!==v.Page.RESIZE_OBJ.percent&&(v.Page.RESIZE_OBJ={type:v.RESIZE_TYPE.PageZoom,percent:n},t.pageResizeAction=t.pageZoomAction,t.pageResizeAction.resizePage(n,t.rotateMap),t.checkResizeControlBar(),t.lastTop=null)},t.loadPageImg=function(e){for(var n=t.getDefaultLadingCnt(),i=e-n<0?e:e-n,o=e+n>t.docInfo.status.pageNum?t.docInfo.status.pageNum:e+n,r=t.getLoadingClassSelector(),s=i;s-1&&t.onLoadImg(a,s)}},t.getLoadingClassSelector=function(){return m.Head.bgColorMode===m.BGCOLOR_MODE.lightScreen?"img-loading-bright":"img-loading"},t.rotatePage=function(){var e=t.docInfo.currentPage,n=t.rotateMap.get(e);t.rotateMap.set(e,void 0===n?90:(n+90)%360);var i=t.rotateMap.get(e);u("#page"+e).removeClass("transform0 transform90 transform180 transform270"),u("#page"+e).css({margin:"",marginTop:"",marginBottom:""}),u("#page"+e).addClass("transform"+i),t.pageResizeAction.resizePage(v.Page.RESIZE_OBJ.percent,t.rotateMap,e,1),t.checkResizeControlBar(),t.lastTop=null},t.rotateEvent=function(){c.Util.bindClickOrTouchEvent(u("#page-rotate"),"controlbar-rotate--hover",(function(){t.rotatePage(),v.Page.RESIZE_OBJ.type===v.RESIZE_TYPE.PageFit&&t.scrollContentAreaEl.scrollTop(t.getPageScrollTop(t.docInfo.currentPage))}))},t.checkResizeControlBar=function(){var e=v.Page.RESIZE_OBJ.percent;v.Page.RESIZE_OBJ.type!==v.RESIZE_TYPE.PageFit&&v.Page.RESIZE_OBJ.type!==v.RESIZE_TYPE.PageWidthFit||(e=Number(document.getElementById("page0").style.width.replace("px",""))/v.Page.ORIGIN_SIZE[0].width*100);e<=d.Controlbar.ZOOM_LIST[0]?(u("#page-zoomout").removeClass("controlbar--enable"),u("#page-zoomout").removeClass("controlbar-zoomout--hover"),u("#page-zoomout").prop("disabled",!0)):(u("#page-zoomout").addClass("controlbar--enable"),u("#page-zoomout").prop("disabled",!1)),e>=d.Controlbar.ZOOM_LIST[d.Controlbar.ZOOM_LIST.length-1]?(u("#page-zoomin").removeClass("controlbar--enable"),u("#page-zoomin").removeClass("controlbar-zoomin--hover"),u("#page-zoomin").prop("disabled",!0)):(u("#page-zoomin").addClass("controlbar--enable"),u("#page-zoomin").prop("disabled",!1)),v.Page.RESIZE_OBJ.type!==v.RESIZE_TYPE.PageFit&&v.Page.RESIZE_OBJ.type!==v.RESIZE_TYPE.PageWidthFit&&100===e?(u("#page-originsize").addClass("controlbar-originsize--hover"),u("#page-originsize").prop("disabled",!0)):(u("#page-originsize").removeClass("controlbar-originsize--hover"),u("#page-originsize").prop("disabled",!1)),v.Page.RESIZE_OBJ.type===v.RESIZE_TYPE.PageFit?(u("#page-pagefit").addClass("controlbar-pagefit--hover"),u("#page-pagefit").prop("disabled",!0)):(u("#page-pagefit").removeClass("controlbar-pagefit--hover"),u("#page-pagefit").prop("disabled",!1)),v.Page.RESIZE_OBJ.type===v.RESIZE_TYPE.PageWidthFit?(u("#page-pagewidthfit").addClass("controlbar-pagewidthfit--hover"),u("#page-pagewidthfit").prop("disabled",!0)):(u("#page-pagewidthfit").removeClass("controlbar-pagewidthfit--hover"),u("#page-pagewidthfit").prop("disabled",!1))},t.bindControlbarEvent=function(){c.Util.bindClickOrTouchEvent(u("#page-pagefit"),"controlbar-pagefit--hover",(function(){v.Page.RESIZE_OBJ={type:v.RESIZE_TYPE.PageFit,percent:0},t.pageResizeAction=t.pageFitAction,t.pageResizeAction.resizePage(0,t.rotateMap),t.checkResizeControlBar(),t.lastTop=null,t.scrollContentAreaEl.scrollTop(t.getPageScrollTop(t.docInfo.currentPage)),t.eventObserver.annotation.notify(v.Page.RESIZE_OBJ)}),(function(){t.checkResizeControlBar()})),c.Util.bindClickOrTouchEvent(u("#page-pagewidthfit"),"controlbar-pagewidthfit--hover",(function(){v.Page.RESIZE_OBJ={type:v.RESIZE_TYPE.PageWidthFit,percent:0},t.pageResizeAction=t.pageWidthFitAction,t.pageResizeAction.resizePage(0,t.rotateMap),t.checkResizeControlBar(),t.lastTop=null,t.eventObserver.annotation.notify(v.Page.RESIZE_OBJ)}),(function(){t.checkResizeControlBar()})),c.Util.bindClickOrTouchEvent(u("#page-originsize"),"controlbar-originsize--hover",(function(){t.zoomPage(d.ZOOM_TYPE.OriginSize),t.eventObserver.annotation.notify(v.Page.RESIZE_OBJ)}),(function(){t.checkResizeControlBar()})),c.Util.bindClickOrTouchEvent(u("#page-zoomout"),"controlbar-zoomout--hover",(function(){t.zoomPage(d.ZOOM_TYPE.ZoomOut),t.eventObserver.annotation.notify(v.Page.RESIZE_OBJ)})),c.Util.bindClickOrTouchEvent(u("#page-zoomin"),"controlbar-zoomin--hover",(function(){t.zoomPage(d.ZOOM_TYPE.ZoomIn),t.eventObserver.annotation.notify(v.Page.RESIZE_OBJ)})),c.Util.bindClickOrTouchEvent(u("#page-prev"),"controlbar-prev--hover",t.moveBackPage),c.Util.bindClickOrTouchEvent(u("#page-next"),"controlbar-next--hover",t.moveNextPage),t.checkMoveControlbar(),"image"===t.docInfo.skinType&&(u("#page-docfit").removeClass("controlbar__end-block").addClass("controlbar__block"),u("#rotate-seperator").removeClass("controlbar--hide"),u("#page-rotate").removeClass("controlbar--hide"),t.rotateEvent())},t.onLoadImg=function(e,n){var i=new Image;c.Util.isConvHtml(t.docInfo)?i.src=""+c.Util.getResultPath(t.docInfo,v.Page.ORIGIN_SIZE[n].path):i.src=c.Util.getThumbPath(t.docInfo,n,t.dpi)+"&w="+v.Page.ORIGIN_SIZE[n].width+"&h="+v.Page.ORIGIN_SIZE[n].height,i.onload=function(){c.Util.removeClass(e.parentElement,t.getLoadingClassSelector()),e.style.backgroundImage="url('"+i.src+"')"},e.removeEventListener("click",t.retry),i.onerror=function(){c.Util.removeClass(e.parentElement,t.getLoadingClassSelector()),e.className+=" img-retry",e.addEventListener("click",t.retry)},e.className="contents-page__img"},t.retry=function(e){var n=parseInt(e.target.getAttribute("data-index")),i=document.getElementById("page"+n);c.Util.addClass(i.parentElement,t.getLoadingClassSelector()),t.onLoadImg(i,n)},t.isFitAction=function(){return t.pageResizeAction===t.pageFitAction},t.setFitAction=function(){t.preResizeObj=v.Page.RESIZE_OBJ,t.prePageAction=t.pageResizeAction,v.Page.RESIZE_OBJ={type:v.RESIZE_TYPE.PageFit,percent:0},t.pageResizeAction=t.pageFitAction},t.getRotateMap=function(){return t.rotateMap},t.isThumbnailOn=function(){return g.Thumbnail.THUMB_STATUS===g.THUMB_FLAG.on},t._innerResizeWindow=function(){u(".contents-page").removeAttr("style"),v.Page.ORIGIN_MARGIN={marginTop:parseInt(u(".contents-page").css("margin-top")),marginBottom:parseInt(u(".contents-page").css("margin-bottom"))},t.pageResizeAction.resizePage(v.Page.RESIZE_OBJ.percent,t.rotateMap)},t.doubleTap=function(){return s(t,void 0,void 0,(function(){var e,t=this;return a(this,(function(n){switch(n.label){case 0:return l.Browser.instance.isIOS&&c.Util.isFullScreen()&&v.Page.RESIZE_OBJ.type!==v.RESIZE_TYPE.PageFit&&document.body.clientWidth/window.innerWidth*100!=100?[2]:(v.Page.RESIZE_OBJ.type===v.RESIZE_TYPE.PageFit?(v.Page.RESIZE_OBJ.type=v.RESIZE_TYPE.PageWidthFit,this.pageResizeAction=this.pageWidthFitAction):(v.Page.RESIZE_OBJ.type=v.RESIZE_TYPE.PageFit,this.pageResizeAction=this.pageFitAction),l.Browser.instance.isIOS?(e=this.docInfo.currentPage,u("#contents-area").css("visibility","hidden"),u("#wrap__index").css("visibility","hidden"),u("#page__input").css("color","#333333"),this.scrollContentAreaEl.scrollTop(this.getPageScrollTop("0")),[4,this.syncTimer((function(){return t.pageResizeAction.resizePage(0,t.rotateMap)}),200)]):[3,3]);case 1:return n.sent(),this.scrollContentAreaEl.scrollTop(this.getPageScrollTop(e)),[4,this.syncTimer((function(){u("#contents-area").css("visibility",""),u("#wrap__index").css("visibility",""),u("#page__input").css("color","")}),100)];case 2:return n.sent(),this.checkResizeControlBar(),this.lastTop=null,[3,4];case 3:this.pageResizeAction.resizePage(0,this.rotateMap),this.checkResizeControlBar(),this.lastTop=null,n.label=4;case 4:return[2]}}))}))},t.fullscreenAfterEvent=function(){},t.eventBind=function(e){t.eventObserver=e,t.eventObserver.page.subscribe(t.focusPage),t.eventObserver.resizeWindow.subscribe(t.resizeWindow),t.eventObserver.fullScreen.subscribe(t.fullScreen),t.eventObserver.singleTap.subscribe(t.singleTap),t.eventObserver.doubleTap.subscribe(t.doubleTap),t.eventObserver.orientationchange.subscribe(t.orientationchange),t.eventObserver.moveBtn.subscribe(t.checkMoveControlbar),t.eventObserver.androidVirtualKeyboard.subscribe(t.androidVirtualKeyboard),t.scrollEventBind(),t.mouseEventBind()},t.setTabIndex=function(){for(var e=["page__input","info-btn","thumbnailview-btn","download-btn","backgroundcolor-btn","presentation-btn"],n=0;nthis.initPageNum&&setTimeout((function(){g.pageResizeAction.resizePage(v.Page.RESIZE_OBJ.percent,g.rotateMap,g.initPageNum,g.docInfo.status.pageNum-g.initPageNum)}),30),[2]}}))}))},t.setDefaultLadingCnt(5),t}return r(t,e),t}(v.Page);t.ImagePage=b}).call(this,n(3),n(102))},,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(2),r=n(6),s=n(9),a=n(1),l=function(){var e=this;this.rotateSize=[0,0],this.noneRotateSize=[0,0],this.scrollContentAreaEl=a.Browser.instance.isIOS?i(document):i("#contents"),this.resizePage=function(t,n,l,c){var u,d,h;void 0===l&&(l=0),void 0===c&&(c=0);var p=a.Browser.instance.isMobile||100===s.DetectZoom.getRatio()?1:s.DetectZoom.getRatio()/100,f=i("#page-area0").height(),g=e.scrollContentAreaEl.scrollTop(),m=i(".contents-page").length,v=0===c||c>m?m:l+c,b=i("#contents").width(),w=0;w=a.Browser.instance.isIOS&&o.Util.isFullScreen()?window.innerHeight:document.getElementById("contents").offsetHeight,o.Util.isFullScreen()&&(r.Page.isOutFullscreen=!0),e.rotateSize=[w,b],e.noneRotateSize=[b,w];for(var _=l;_a&&i*c>l?u:c),i*r]},this.setPageMargin=function(e){var t=i("#page-area0").height()/r.Page.ORIGIN_SIZE[0].height*e;i(".contents-page").css("margin-top",r.Page.ORIGIN_MARGIN.marginTop*t),i(".contents-page").css("margin-bottom",r.Page.ORIGIN_MARGIN.marginBottom*t)}};t.PageFit=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(2),r=n(6),s=n(9),a=n(1),l=function(){var e=this;this.contentAreaWidth=0,this.scrollContentAreaEl=a.Browser.instance.isIOS?i(document):i("#contents"),this.resizePage=function(t,n,l,c){void 0===l&&(l=0),void 0===c&&(c=0);var u=a.Browser.instance.isMobile||100===s.DetectZoom.getRatio()?1:s.DetectZoom.getRatio()/100,d=i("#page-area0").height(),h=e.scrollContentAreaEl.scrollTop(),p=i(".contents-page").length,f=0===c||c>p?p:l+c;e.contentAreaWidth=i("#contents").width();for(var g=l;gp?p:a+l,g=a;g0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]1&&(u=window.localSynap.config.sheetMinSize[0],d=window.localSynap.config.sheetMinSize[1],u>a&&(a=u>1e5?1e5:u),d>l&&(l=d>1e5?1e5:d)),o={sheetWidth:a,sheetHeight:l},[3,4];case 3:return s.sent(),this.eventObserver.sheetFail.notify(),[2,!1];case 4:return[2,o]}}))}))},t.sheetAlertDialogShow=function(){c.Util.printConsoleLog("fail to call api - /dimension"),(new g.Dialog).sheetAlertDialog("msg_sheet_convFail")},t.scrollEvent=function(){t.addContentDiv(),t.resizeCell(t.resizePercent)},t.createContentDiv=function(e){t.sheetWidth=e.sheetWidth,t.sheetHeight=e.sheetHeight,t.maxCol=Math.ceil(t.sheetWidth/t.defaultCellWidth),t.maxRow=Math.ceil(t.sheetHeight/t.defaultCellHeight);var n=t.defaultCellHeight*(t.resizePercent/100),i=t.defaultCellHeight*(t.resizePercent/100),o='
    ';document.getElementById("contents-area").innerHTML=o;var r=(t.maxRow-1)*n;if(t.maxBrowserTop0&&e<100&&(s=2*Math.ceil(100/e));var a=Math.ceil(t.scrollContentAreaEl.scrollTop()/o),l=(a=a>2?a-2:0)+Math.ceil(i/r);l=l+s>t.maxRow?t.maxRow:l+s;var c=Math.ceil(t.scrollContentAreaEl.scrollLeft()/o),u=(c=c>2?c-2:0)+Math.ceil(n/o);u=u+s>t.maxCol?t.maxCol:u+s;var d=h("#cell-common");t.lastColWidth=t.sheetWidth%t.defaultCellWidth==0?t.defaultCellWidth:t.sheetWidth%t.defaultCellWidth,t.lastRowHeight=t.sheetHeight%t.defaultCellHeight==0?t.defaultCellHeight:t.sheetHeight%t.defaultCellHeight;for(var p=document.createDocumentFragment(),f=a;ft})),n!==t.resizePercent&&t.resizeCell(n)},t.resizeCell=function(e){t.resizePercent=e;var n=e/100,i=t.defaultCellWidth*n,o=t.defaultCellHeight*n,r=t.lastColWidth*n,s=t.lastRowHeight*n,a=t.sheetWidth*n,l=t.sheetHeight*n,c=document.getElementById("contents").scrollTop,u=document.getElementById("contents").scrollLeft,d=h("#piece0_0").height();h("#cell-common").css({width:a,height:l});for(var p=document.getElementById("cell-common").children,f=0;f0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]e.maxPage-1||e.eventObserver.page.notify({pageNum:t,isScroll:!1})},this.resizeWindow=function(){((document.fullscreenEnabled||document.mozFullScreenEnabled||document.webkitFullscreenEnabled)&&!u.Browser.instance.isEdge?document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement:s.Util.isFullScreen())&&e.changePageDocScrollStyle()},this.changePageDocScrollStyle=function(){if("cell"!==e.docInfo.skinType&&!s.Util.isHtmlWordSkin(e.docInfo))return!u.Browser.instance.isMobile&&(void 0===a.DetectZoom||100===a.DetectZoom.getRatio())||u.Browser.instance.isMobile&&l.Page.RESIZE_OBJ.type===l.RESIZE_TYPE.PageFit?(!u.Browser.instance.isIOS&&r("#contents").css({"overflow-y":"hidden","overflow-x":"auto"}),void e.movePage(e.docInfo.currentPage)):void(u.Browser.instance.isIOS||!u.Browser.instance.isMobile&&s.Util.isHtmlSlideSkin(e.docInfo)||(r("#contents").css({"overflow-y":"auto","overflow-x":"auto"}),r(".contents-page > img").css("overflow-x","scroll")))},this.doubleTap=function(){s.Util.isFullScreen()&&"cell"!==e.docInfo.skinType&&(u.Browser.instance.isIOS||l.Page.RESIZE_OBJ.type!==l.RESIZE_TYPE.PageFit||e.scrollContentAreaEl.scrollTop(document.getElementById("page-area"+e.docInfo.currentPage).offsetTop),e.changePageDocScrollStyle())},this.swipe=function(t){switch(t){case c.SWIPE_DIRECTION.LEFT:case c.SWIPE_DIRECTION.UP:e.movePage(e.docInfo.currentPage+1);break;case c.SWIPE_DIRECTION.RIGHT:case c.SWIPE_DIRECTION.DOWN:e.movePage(e.docInfo.currentPage-1)}if(!u.Browser.instance.isiPad&&u.Browser.instance.getIOSVersion()>=11){document.getElementById("fullscreen-close").style.top="";var n=r("#fullscreen-close").position().top;n<0&&(document.getElementById("fullscreen-close").style.top=Math.abs(n)+"px")}},this.fullscreenSingleTap=function(){"cell"===e.docInfo.skinType?(e.eventObserver.sheet.notify(e.docInfo.currentSheet+1),e.checkFullscreenMoveBtn()):e.movePage(e.docInfo.currentPage+1)},this.iosMobileEventBind=function(){document.documentElement.addEventListener("touchmove",e.iosTouchMoveEvent,e.iosTouchEventOptions)},this.iosMobileEventUnbind=function(){document.documentElement.removeEventListener("touchmove",e.iosTouchMoveEvent,e.iosTouchEventOptions)},this.iosTouchEventOptions={passive:!1},this.iosTouchMoveEvent=function(e){l.Page.RESIZE_OBJ.type===l.RESIZE_TYPE.PageFit&&e.preventDefault()},this.eventBind=function(t){e.eventObserver=t,e.eventObserver.resizeWindow.subscribe(e.resizeWindow),e.eventObserver.doubleTap.subscribe(e.doubleTap),e.eventObserver.swipe.subscribe(e.swipe),e.eventObserver.fullscreenSingleTap.subscribe(e.fullscreenSingleTap),e.eventObserver.moveBtn.subscribe(e.checkFullscreenMoveBtn),e.fullScreenEventBind(),e.presentationActions.eventBind(e.eventObserver)},this.load=function(t,n){e.docInfo=t,e.maxPage=e.docInfo.status.pageNum;var i=u.Browser.instance;(i.isChrome||i.isFirefox||i.isSafari||i.isAndroid||i.isIE&&11===i.version)&&e.isFullScreenSupport()?(e.isSupport=!0,e.presentationActions=e.supportFullscreen):e.presentationActions=e.notSupportFullscreen,"cell"===e.docInfo.skinType&&(e.isPage=!1,e.isSheet=!0),e.eventBind(n)}};t.Presentation=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){var e=this;this.eventObserver=null,this.eventBind=function(t){e.eventObserver=t},this.fullscreenON=function(t,n){void 0===n&&(n=!1),setTimeout((function(){e.eventObserver.fullScreen.notify({skinType:t,isFullScreen:!0,isSupport:n})}),100)},this.fullscreenOFF=function(t,n){void 0===n&&(n=!1),setTimeout((function(){e.eventObserver.fullScreen.notify({skinType:t,isFullScreen:!1,isSupport:n})}),100)}};t.NotSupportFullscreen=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=function(){var e=this;this.eventObserver=null,this.eventBind=function(t){e.eventObserver=t},this.fullscreenON=function(t,n){void 0===n&&(n=!0);var o=i("#container")[0],r=o.requestFullscreen||o.mozRequestFullScreen||o.webkitRequestFullScreen||o.msRequestFullscreen;r&&r.call(o),setTimeout((function(){e.eventObserver.fullScreen.notify({skinType:t,isFullScreen:!0,isSupport:n})}),100)},this.fullscreenOFF=function(t,n){void 0===n&&(n=!0);var i=top.document,o=i.exitFullscreen||i.mozCancelFullScreen||i.webkitExitFullscreen||i.msExitFullscreen,r=document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement;o&&r&&o.call(i),setTimeout((function(){e.eventObserver.fullScreen.notify({skinType:t,isFullScreen:!1,isSupport:n})}),100)}};t.SupportFullscreen=o},function(e,t,n){"use strict";(function(e){var i=this&&this.__awaiter||function(t,n,i,o){return new(i||(i=e))((function(e,r){function s(e){try{l(o.next(e))}catch(e){r(e)}}function a(e){try{l(o.throw(e))}catch(e){r(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(s,a)}l((o=o.apply(t,n||[])).next())}))},o=this&&this.__generator||function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]h?h:a+l,f=0;f=s.Browser.instance.isIOS&&o.Util.isFullScreen()?window.innerHeight:document.getElementById("contents").offsetHeight;var g=i("#contents").width();e.noneRotateSize=[g,f];for(var m=a;mo&&n*s>r?a:s},this.getResizeResult=function(t,n,i,o){void 0===o&&(o=null);var r=e._getRatio(n,i);return[n*r,i*r]},this.setPageMargin=function(e){var t=i("#page-area0").height()/r.Slide.ORIGIN_SIZE[0].height*e;i(".contents-page").css("margin-top",r.Slide.ORIGIN_MARGIN.marginTop*t),i(".contents-page").css("margin-bottom",r.Slide.ORIGIN_MARGIN.marginBottom*t),i(".thumb-slide-alpha").css("left",i("#page0").offset().left)}};t.SlidePageScrollFit=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(2),r=n(46),s=n(1),a=function(){var e=this;this.noneRotateSize=[0,0],this.scrollContentAreaEl=s.Browser.instance.isIOS?i(document):i("#contents"),this.resizePage=function(t,n,a,l){void 0===a&&(a=0),void 0===l&&(l=0),i("#contents").css("overflow","hidden"),i("#contents-area").css("overflow","hidden");var c=0;c=s.Browser.instance.isIOS&&o.Util.isFullScreen()?window.innerHeight:document.getElementById("contents").offsetHeight;var u=i("#contents").width();e.noneRotateSize=[u,c];var d=a,h=r.Slide.ORIGIN_SIZE[d].width,p=r.Slide.ORIGIN_SIZE[d].height,f=e._getRatio(h,p);i("#contents-area").css({width:u,height:c}),i("#page"+d).css({width:2*h,height:2*p}),r.Slide.CURRENT_SIZE[d]={width:1*h,height:1*p},i("#page"+d).css("transform","scale("+f/2+")").css("margin-left",h*(f-2)/2+(u-h*f)/2+"px").css("margin-top",p*(f-2)/2+(c-p*f)/2+"px"),e.setPageMargin(1)},this._getRatio=function(t,n){var i=e.noneRotateSize,o=i[0],r=i[1],s=.95*o/t;return r/o