| Server IP : 185.68.16.147 / Your IP : 216.73.216.182 Web Server : Apache System : Linux web789.default-host.net 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64 User : jt292766 ( 1182) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/jt292766/konstruktbud.com.ua/www/wp-content/plugins/grand-media/module/amron/js/ |
Upload File : |
!function(e){var t={};function i(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=t,i.d=function(e,t,o){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(o,n,function(t){return e[t]}.bind(null,n));return o},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=24)}([function(e,t,i){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i=function(e,t){var i=e[1]||"",o=e[3];if(!o)return i;if(t&&"function"==typeof btoa){var n=(s=o,r=btoa(unescape(encodeURIComponent(JSON.stringify(s)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(l," */")),a=o.sources.map((function(e){return"/*# sourceURL=".concat(o.sourceRoot).concat(e," */")}));return[i].concat(a).concat([n]).join("\n")}var s,r,l;return[i].join("\n")}(t,e);return t[2]?"@media ".concat(t[2],"{").concat(i,"}"):i})).join("")},t.i=function(e,i){"string"==typeof e&&(e=[[null,e,""]]);for(var o={},n=0;n<this.length;n++){var a=this[n][0];null!=a&&(o[a]=!0)}for(var s=0;s<e.length;s++){var r=e[s];null!=r[0]&&o[r[0]]||(i&&!r[2]?r[2]=i:i&&(r[2]="(".concat(r[2],") and (").concat(i,")")),t.push(r))}},t}},function(e,t,i){"use strict";var o,n={},a=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},s=function(){var e={};return function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}e[t]=i}return e[t]}}();function r(e,t){for(var i=[],o={},n=0;n<e.length;n++){var a=e[n],s=t.base?a[0]+t.base:a[0],r={css:a[1],media:a[2],sourceMap:a[3]};o[s]?o[s].parts.push(r):i.push(o[s]={id:s,parts:[r]})}return i}function l(e,t){for(var i=0;i<e.length;i++){var o=e[i],a=n[o.id],s=0;if(a){for(a.refs++;s<a.parts.length;s++)a.parts[s](o.parts[s]);for(;s<o.parts.length;s++)a.parts.push(v(o.parts[s],t))}else{for(var r=[];s<o.parts.length;s++)r.push(v(o.parts[s],t));n[o.id]={id:o.id,refs:1,parts:r}}}}function c(e){var t=document.createElement("style");if(void 0===e.attributes.nonce){var o=i.nc;o&&(e.attributes.nonce=o)}if(Object.keys(e.attributes).forEach((function(i){t.setAttribute(i,e.attributes[i])})),"function"==typeof e.insert)e.insert(t);else{var n=s(e.insert||"head");if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(t)}return t}var h,d=(h=[],function(e,t){return h[e]=t,h.filter(Boolean).join("\n")});function p(e,t,i,o){var n=i?"":o.css;if(e.styleSheet)e.styleSheet.cssText=d(t,n);else{var a=document.createTextNode(n),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(a,s[t]):e.appendChild(a)}}function m(e,t,i){var o=i.css,n=i.media,a=i.sourceMap;if(n&&e.setAttribute("media",n),a&&btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}var u=null,g=0;function v(e,t){var i,o,n;if(t.singleton){var a=g++;i=u||(u=c(t)),o=p.bind(null,i,a,!1),n=p.bind(null,i,a,!0)}else i=c(t),o=m.bind(null,i,t),n=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(i)};return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else n()}}e.exports=function(e,t){(t=t||{}).attributes="object"==typeof t.attributes?t.attributes:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a());var i=r(e,t);return l(i,t),function(e){for(var o=[],a=0;a<i.length;a++){var s=i[a],c=n[s.id];c&&(c.refs--,o.push(c))}e&&l(r(e,t),t);for(var h=0;h<o.length;h++){var d=o[h];if(0===d.refs){for(var p=0;p<d.parts.length;p++)d.parts[p]();delete n[d.id]}}}}},function(e,t,i){var o=i(17);"string"==typeof o&&(o=[[e.i,o,""]]);var n={insert:"head",singleton:!1};i(1)(o,n);o.locals&&(e.exports=o.locals)},function(e,t,i){var o=i(18);"string"==typeof o&&(o=[[e.i,o,""]]);var n={insert:"head",singleton:!1};i(1)(o,n);o.locals&&(e.exports=o.locals)},function(e,t,i){var o=i(19);"string"==typeof o&&(o=[[e.i,o,""]]);var n={insert:"head",singleton:!1};i(1)(o,n);o.locals&&(e.exports=o.locals)},function(e,t,i){var o=i(14);"string"==typeof o&&(o=[[e.i,o,""]]);var n={insert:"head",singleton:!1};i(1)(o,n);o.locals&&(e.exports=o.locals)},function(e,t,i){var o=i(15);"string"==typeof o&&(o=[[e.i,o,""]]);var n={insert:"head",singleton:!1};i(1)(o,n);o.locals&&(e.exports=o.locals)},function(e,t,i){var o=i(16);"string"==typeof o&&(o=[[e.i,o,""]]);var n={insert:"head",singleton:!1};i(1)(o,n);o.locals&&(e.exports=o.locals)},function(e,t,i){var o=i(20);"string"==typeof o&&(o=[[e.i,o,""]]);var n={insert:"head",singleton:!1};i(1)(o,n);o.locals&&(e.exports=o.locals)},function(e,t,i){var o=i(21);"string"==typeof o&&(o=[[e.i,o,""]]);var n={insert:"head",singleton:!1};i(1)(o,n);o.locals&&(e.exports=o.locals)},function(e,t,i){var o=i(22);"string"==typeof o&&(o=[[e.i,o,""]]);var n={insert:"head",singleton:!1};i(1)(o,n);o.locals&&(e.exports=o.locals)},function(e,t,i){var o=i(23);"string"==typeof o&&(o=[[e.i,o,""]]);var n={insert:"head",singleton:!1};i(1)(o,n);o.locals&&(e.exports=o.locals)},function(e,t,i){var o=i(13);"string"==typeof o&&(o=[[e.i,o,""]]);var n={insert:"head",singleton:!1};i(1)(o,n);o.locals&&(e.exports=o.locals)},function(e,t,i){(e.exports=i(0)(!1)).push([e.i,".amron_module{position:relative}.amron_module *{box-sizing:border-box !important}.gmedia-amron-collection-tags-cloud{position:relative;display:block;margin-top:10px;margin-bottom:2px;text-align:center}.gmedia-amron-collection-tags-cloud ul{margin:0 !important;padding:0 !important;list-style:none}.gmedia-amron-collection-tags-cloud ul li::before{display:none}.gmedia-amron-collection-tags-cloud ul li{display:inline-block;max-width:200px;padding:5px 8px !important;margin:3px !important;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:15px !important;border-radius:2px;text-decoration:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;transition:0.3s}.gmedia-amron-masonry-collection{position:relative;width:100%;min-height:200px;overflow:hidden;transition:transform 0.5s;z-index:2}.gmedia-amron-masonry-collection .gmedia-amron-content{position:relative;width:100%}.gmedia-amron-masonry-collection .gmedia-amron-content .gmedia-amron-collection-column{position:relative;float:left}.gmedia-amron-masonry-collection .gmedia-amron-header{position:relative;width:100%}.gmedia-amron-masonry-collection .gmedia-amron-header .gmedia-amron-navi{position:relative;width:100%;overflow:hidden}.gmedia-amron-masonry-collection .gmedia-amron-header .gmedia-amron-term-title{position:relative;display:inline-block;font-size:28px;line-height:34px}.gmedia-amron-masonry-collection .gmedia-amron-header .gmedia-amron-back-button{position:relative;float:left;margin:0 10px 0 0;width:54px;height:34px;border-radius:2px;cursor:pointer}.gmedia-amron-masonry-collection .gmedia-amron-header .gmedia-amron-back-button svg{width:100%;height:100%;vertical-align:baseline !important}.gmedia-amron-masonry-thumb-pint{position:relative;width:100%;opacity:0;transition:opacity 0.45s;float:left;box-sizing:border-box !important}.gmedia-amron-masonry-thumb-pint .gmedia-amron-image-holder{position:relative;width:100%;overflow:hidden}.gmedia-amron-masonry-thumb-pint .gmedia-amron-image-holder.gmedia-hover .gmedia-amron-zoom{transform:translateX(-10%)}.gmedia-amron-masonry-thumb-pint .gmedia-amron-image-holder.gmedia-hover img{transform:scale(1.1)}.gmedia-amron-masonry-thumb-pint .gmedia-amron-image-over{position:absolute;top:0;width:100%;height:100%;transition:opacity 0.5s;opacity:0}.gmedia-amron-masonry-thumb-pint .gmedia-amron-image-over.gmedia-hover{opacity:1}.gmedia-amron-masonry-thumb-pint .gmedia-amron-zoom{position:absolute;width:50px;height:50px;padding:15px !important;right:0;bottom:4px;transform:translateX(100%);margin:auto;cursor:pointer;transition:transform 0.2s}.gmedia-amron-masonry-thumb-pint .gmedia-amron-zoom.media{width:40px;height:40px;background-color:rgba(255,255,255,0.5);border-radius:50%;padding:5px !important;transform:translateX(-10%)}.gmedia-amron-masonry-thumb-pint .gmedia-amron-zoom.media svg{stroke:none}.gmedia-amron-masonry-thumb-pint .gmedia-amron-zoom svg{width:100%;height:100%;stroke:white;vertical-align:baseline !important}.gmedia-amron-masonry-thumb-pint img{display:block;border:0 !important;margin:0 !important;padding:0 !important;max-height:none !important;max-width:none !important;min-height:0 !important;min-width:0 !important;width:100% !important;height:auto !important;-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:0.5s ease-out 0s;opacity:0}.gmedia-amron-masonry-thumb-pint .gmedia-amron-item-content{position:relative;display:block;text-align:left;background-color:white;overflow:hidden;width:100%;z-index:1;box-sizing:border-box}.gmedia-amron-masonry-thumb-pint .gmedia-amron-item-title{position:relative;margin:10px 20px;display:block;font-size:18px;line-height:1.1;letter-spacing:1px;font-weight:600}.gmedia-amron-masonry-thumb-pint .gmedia-amron-item-description{position:relative;display:block;margin:10px 20px;padding:0;font-size:13px}.gmedia-amron-masonry-thumb-pint .gmedia-amron-item-read-more{text-decoration:none;box-shadow:none;position:relative;cursor:pointer;font-size:10px;border-radius:2px;text-transform:uppercase;line-height:38px;padding:0 15px;margin:0 20px;font-weight:700;letter-spacing:1px;color:white;display:inline-block;background-color:rgba(0,0,0,0.59);transition:0.5s}.gmedia-amron-masonry-thumb-pint a:hover,.gmedia-amron-masonry-thumb-pint a:visited,.gmedia-amron-masonry-thumb-pint a:link,.gmedia-amron-masonry-thumb-pint a:active{text-decoration:none;box-shadow:none}.gmedia-amron-masonry-thumb-pint .gmedia-amron-item-menu-holder{position:relative;display:block;width:100%;margin:15px 0;overflow:hidden;text-align:right}.gmedia-amron-masonry-thumb-pint .gmedia-amron-item-menu-holder .gmedia-amron-items-buttons{position:relative;padding:9px;width:36px;height:36px;cursor:pointer;float:right;transition:0.5s;box-sizing:border-box;margin:0 1px;border-radius:2px}.gmedia-amron-masonry-thumb-pint .gmedia-amron-item-menu-holder .gmedia-amron-items-buttons svg{width:100%;height:100%;transition:fill 0.2s;vertical-align:baseline !important}\n",""])},function(e,t,i){(t=e.exports=i(0)(!1)).push([e.i,".pgc-rev-utils-preloader{min-height:inherit;position:absolute;top:0;left:0;bottom:0;right:0;overflow:hidden;z-index:100}.pgc-rev-utils-preloader .pgc-rev-utils-static{position:absolute;left:50%;top:50%;border-radius:50%}.pgc-rev-utils-preloader .pgc-rev-utils-spinner{left:50%;top:50%;animation:1s pgc-rev-spinner linear infinite}.pgc-rev-utils-preloader .pgc-rev-utils-spinner .pgc-rev-utils-point{position:absolute;left:50%;top:50%;border-radius:100%}@keyframes pgc-rev-spinner{0%{transform:rotate(-360deg)}100%{transform:rotate(0deg)}}\n",""]),t.locals={classPref:'".pgc-rev-utils-"'}},function(e,t,i){(t=e.exports=i(0)(!1)).push([e.i,".pgc-rev-item-menu-view{position:relative;overflow:hidden;float:left}.pgc-rev-item-menu-view.pgc-rev-item-menu-type-ultrabox{display:flex;flex-direction:row;flex-wrap:wrap;margin-right:5px}.pgc-rev-item-menu-view.pgc-rev-item-menu-type-ultrabox .pgc-rev-item-menu-button{padding:3px;width:43px;height:43px;margin:0 5px;border-radius:2px}.pgc-rev-item-menu-view.pgc-rev-item-menu-type-lightbox .pgc-rev-item-menu-button{margin:2px}.pgc-rev-item-menu-view.pgc-rev-item-menu-type-thumb{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-end}.pgc-rev-item-menu-view.pgc-rev-item-menu-type-thumb .pgc-rev-item-menu-button{margin:1px}.pgc-rev-item-menu-view .pgc-rev-item-menu-button{position:relative;padding:9px;width:38px;height:38px;cursor:pointer;float:left;transition:background-color 0.2s, transform 0.4s ease-out;border-radius:2px}.pgc-rev-item-menu-view .pgc-rev-item-menu-button svg{width:100%;height:100%;fill:inherit;display:block;transition:fill 0.2s, transform 0.4s ease-out}\n",""]),t.locals={classPref:'".pgc-rev-item-menu-"'}},function(e,t,i){(t=e.exports=i(0)(!1)).push([e.i,".pgc-rev-scroll-bar-wrap{position:relative;flex:none;width:490px;height:50px;overflow:hidden}.pgc-rev-scroll-bar-wrap .pgc-rev-scroll-bar-view{position:absolute;height:100%}.pgc-rev-scroll-bar-wrap .pgc-rev-scroll-bar-view .pgc-rev-scroll-bar-item{position:absolute;height:50px;width:70px;overflow:hidden}.pgc-rev-scroll-bar-wrap .pgc-rev-scroll-bar-view .pgc-rev-scroll-bar-item .pgc-rev-scroll-bar-item-bg{position:absolute;left:3px;right:3px;top:3px;bottom:3px;background-position:center;-webkit-background-size:cover;background-size:cover;background-repeat:no-repeat;-webkit-backface-visibility:hidden;backface-visibility:hidden}.pgc-rev-scroll-bar-wrap .pgc-rev-scroll-bar-view .pgc-rev-scroll-bar-item .pgc-rev-scroll-bar-item-hover{position:absolute;opacity:0;transition:opacity 0.2s;pointer-events:none;top:0;left:0;right:0;bottom:0;border-style:solid;border-width:3px;border-color:#fff}.pgc-rev-scroll-bar-wrap .pgc-rev-scroll-bar-view .pgc-rev-scroll-bar-item .pgc-rev-scroll-bar-item-link{position:absolute;width:34px;height:34px;padding:6px;border-radius:50%;left:50%;top:50%;transform:translateY(-50%) translateX(-50%)}.pgc-rev-scroll-bar-wrap .pgc-rev-scroll-bar-view .pgc-rev-scroll-bar-item .pgc-rev-scroll-bar-item-link svg{width:100%;height:100%;fill:rgba(0,0,0,0.58);vertical-align:baseline !important}.pgc-rev-scroll-bar-wrap .pgc-rev-scroll-bar-view .pgc-rev-scroll-bar-item .pgc-rev-scroll-bar-item-link.rotate svg{animation:1s spinner linear infinite}.pgc-rev-scroll-bar-grabbable{cursor:move;cursor:grab;cursor:-moz-grab;cursor:-webkit-grab}.pgc-rev-scroll-bar-grabbable:active{cursor:grabbing;cursor:-moz-grabbing;cursor:-webkit-grabbing}\n",""]),t.locals={classPref:'".pgc-rev-scroll-bar-"'}},function(e,t,i){(t=e.exports=i(0)(!1)).push([e.i,".pgc-rev-slider-view{position:absolute;overflow:hidden;left:0;right:0;top:0;bottom:0}.pgc-rev-slider-view *{box-sizing:border-box !important;line-height:1.4}.pgc-rev-slider-view .pgc-rev-slider-hints{position:absolute;display:inline-block;padding:5px 10px;font-size:12px;line-height:normal;background-color:rgba(0,0,0,0.8);color:white;transform:translateY(-100%);border-radius:2px;transition:0.4s}.pgc-rev-slider-view.pgc-rev-slider-activate{pointer-events:auto;visibility:visible;opacity:1}.pgc-rev-slider-view .pgc-rev-slider-bg{width:100%;height:100%;transform:translateZ(0)}.pgc-rev-slider-view .pgc-rev-slider-wrap{position:absolute;user-select:none;width:100%;top:0;bottom:0}.pgc-rev-slider-view .miniScreen{margin-top:0;margin-bottom:0}.pgc-rev-slider-view .pgc-rev-slider-next-prev-button{position:absolute;width:45px;height:40px;top:50%;margin:0 10px;padding:0;cursor:pointer;transition:background-color 0.3s, transform 0.5s ease-out;border-radius:2px}.pgc-rev-slider-view .pgc-rev-slider-next-prev-button.next-prev-button-mini-screen{display:none}.pgc-rev-slider-view .pgc-rev-slider-next-prev-button svg{transition:fill 0.3s;width:100%;height:100%;vertical-align:baseline !important}.pgc-rev-slider-page-view{position:absolute;display:block;transform:translate3d(0, 0, 0);width:100%;top:0;bottom:0;left:0;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;-moz-user-select:none;-ms-user-select:none;touch-action:none}.pgc-rev-slider-page-view .pgc-rev-slider-page-inner{position:absolute;display:block;left:0;top:0;bottom:0;width:100%;overflow:hidden;transform:translate3d(0, 0, 0);backface-visibility:hidden;-webkit-backface-visibility:hidden;-webkit-transform-origin:left top;transform-origin:left top;user-select:none;touch-action:none}.pgc-rev-slider-page-view .pgc-rev-slider-page-inner img{-webkit-backface-visibility:hidden;backface-visibility:hidden;position:absolute !important;display:block !important;border:none !important;max-width:none !important;opacity:0;padding:0 !important;margin:0 !important;transition:0.35s ease-out;user-select:none;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}.pgc-rev-slider-page-view .pgc-rev-slider-page-inner img.onLoad{opacity:1}.pgc-rev-slider-page-view .pgc-rev-slider-page-inner.video-play img{visibility:hidden}.pgc-rev-slider-page-view .pgc-rev-slider-page-inner .video-wrap{position:absolute;display:block;border:none}.pgc-rev-slider-page-view .pgc-rev-slider-page-inner .video-wrap iframe{width:100% !important;height:100% !important;top:0;left:0}.pgc-rev-slider-page-view .pgc-rev-slider-page-icon-holder{position:absolute;width:140px;height:140px;border-radius:50%;background-color:rgba(255,255,255,0.6);transform:translateY(-50%) translateX(-50%);left:50%;top:50%;padding:30px;visibility:hidden;will-change:transform;cursor:pointer}.pgc-rev-slider-page-view .pgc-rev-slider-page-icon-holder svg{width:100%;height:100%;fill:rgba(0,0,0,0.4)}.pgc-rev-slider-page-view.info-icon .pgc-rev-slider-page-icon-holder{visibility:visible}@keyframes pgc-rev-rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.pgc-rev-wrap-rotate{animation-name:pgc-rev-rotate;animation-duration:2s;animation-iteration-count:infinite;animation-timing-function:linear}\n",""]),t.locals={classPref:'".pgc-rev-slider-"',classPrefPage:'".pgc-rev-slider-page-"'}},function(e,t,i){(t=e.exports=i(0)(!1)).push([e.i,".pgc-rev-lb-b-view{position:fixed;z-index:99999;left:0;right:0;top:0;bottom:0;visibility:hidden;opacity:0;-ms-touch-action:none;touch-action:none;-webkit-text-size-adjust:100%;font-family:Arial, Helvetica, sans-serif;-webkit-transition:opacity 0.4s ease;transition:opacity 0.4s ease, visibility 0.4s ease}.pgc-rev-lb-b-view *{box-sizing:border-box !important;line-height:1.4}.pgc-rev-lb-b-view.pgc-rev-lb-b-activate{pointer-events:auto;visibility:visible;opacity:1}.pgc-rev-lb-b-view .pgc-rev-lb-b-bg{width:100%;height:100%;will-change:opacity;transform:translateZ(0)}.pgc-rev-lb-b-view .pgc-rev-lb-b-bg.pgc-rev-lb-b-deactivate{transition:opacity 300ms}.pgc-rev-lb-b-view .pgc-rev-lb-b-content{position:absolute;top:0;left:0;width:100%;height:100%}.pgc-rev-lb-b-view .pgc-rev-lb-b-header{position:absolute;padding:5px;left:0;top:0;width:100%;display:flex;flex-direction:row;flex-wrap:wrap;transform:translateY(-100%);transition:transform 0.4s ease-out}.pgc-rev-lb-b-view .pgc-rev-lb-b-header *{user-select:none;-moz-user-select:none;-webkit-user-select:none}.pgc-rev-lb-b-view .pgc-rev-lb-b-header.pgc-rev-lb-b-show{transform:translateY(0%)}.pgc-rev-lb-b-view .pgc-rev-lb-b-header.pgc-rev-lb-b-touch-device{justify-content:flex-end}.pgc-rev-lb-b-view .pgc-rev-lb-b-footer{user-select:none;position:absolute;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;padding:0 10px;left:0;bottom:0;width:100%;transform:translateY(100%);transition:transform 0.4s ease-out}.pgc-rev-lb-b-view .pgc-rev-lb-b-footer.pgc-rev-lb-b-show{transform:translateY(0%)}.pgc-rev-lb-b-view .pgc-rev-lb-b-footer.pgc-rev-lb-b-touch-device .pgc-rev-lb-b-caption-wrap{border-radius:2px;padding:0}.pgc-rev-lb-b-view .pgc-rev-lb-b-footer.pgc-rev-lb-b-touch-device .pgc-rev-lb-b-caption-play-wrap{width:100%;justify-content:center}.pgc-rev-lb-b-view .pgc-rev-lb-b-footer .pgc-rev-lb-b-caption-wrap{border-radius:2px;padding:3px 10px;margin:2px}.pgc-rev-lb-b-view .pgc-rev-lb-b-description-wrap{flex:none;width:400px;max-width:100%;padding:0 5px;height:100%}.pgc-rev-lb-b-view .pgc-rev-lb-b-description-wrap a{cursor:pointer}.pgc-rev-lb-b-view .pgc-rev-lb-b-description-wrap a:hover,.pgc-rev-lb-b-view .pgc-rev-lb-b-description-wrap a:visited,.pgc-rev-lb-b-view .pgc-rev-lb-b-description-wrap a:link,.pgc-rev-lb-b-view .pgc-rev-lb-b-description-wrap a:active{text-decoration:none;box-shadow:none}.pgc-rev-lb-b-view .pgc-rev-lb-b-item-title{text-rendering:auto;color:#fff;font-size:18px;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:1.3;box-sizing:content-box;letter-spacing:0;margin-top:1px;margin-bottom:3px;text-decoration:none !important;box-shadow:none !important}.pgc-rev-lb-b-view .pgc-rev-lb-b-item-description{color:#969696;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3}.pgc-rev-lb-b-view .pgc-rev-lb-b-free-space{flex:auto}.pgc-rev-lb-b-view .pgc-rev-lb-b-caption-play-wrap{display:flex;align-items:center}.pgc-rev-lb-b-view .pgc-rev-lb-b-caption-play-wrap .pgc-rev-lb-auto-play-wrap{margin-left:15px}.pgc-rev-lb-b-view .pgc-rev-lb-b-caption-wrap{position:relative;flex:none;font-size:13px;line-height:22px;font-weight:400;color:white;display:inline-block}.pgc-rev-lb-b-view .pgc-rev-lb-b-caption-wrap .pgc-rev-lb-b-caption-current{position:relative;display:inline-block}.pgc-rev-lb-b-view .pgc-rev-lb-b-caption-wrap .pgc-rev-lb-b-caption-delimiter{position:relative;display:inline-block;padding:0 3px}.pgc-rev-lb-b-view .pgc-rev-lb-b-caption-wrap .pgc-rev-lb-b-caption-all{position:relative;display:inline-block}.pgc-rev-lb-b-view .pgc-rev-lb-b-caption-wrap-nt.mini-screen{height:30px}.pgc-rev-lb-b-view .pgc-rev-lb-b-caption-wrap-nt{position:relative;flex:none;width:60px;height:40px;font-size:15px;line-height:1;font-weight:400;font-family:serif;color:white}.pgc-rev-lb-b-view .pgc-rev-lb-b-caption-wrap-nt .pgc-rev-lb-b-caption-current{position:absolute;top:50%;left:50%;width:30px;text-align:right;transform:translate(-100%, -70%);padding:0 5px 0}.pgc-rev-lb-b-view .pgc-rev-lb-b-caption-wrap-nt .pgc-rev-lb-b-caption-delimiter{position:absolute;top:50%;left:50%;transform:translate(-50%, 0) rotate(-58deg);width:19px;height:1.5px;background-color:white}.pgc-rev-lb-b-view .pgc-rev-lb-b-caption-wrap-nt .pgc-rev-lb-b-caption-all{position:absolute;top:50%;left:50%;font-size:11px;margin-left:5px}.pgc-rev-lb-b-view .pgc-rev-lb-auto-play-wrap{position:relative;opacity:0;height:22px;transition:opacity 0.4s}.pgc-rev-lb-b-view .pgc-rev-lb-b-info-wrap{position:relative;flex:none;min-height:20px;padding:0 10px}.pgc-rev-lb-b-view .pgc-rev-lb-b-item-menu-wrap{position:relative;flex:none;min-width:40px;overflow:hidden}\n",""]),t.locals={classPref:'".pgc-rev-lb-b-"',classPrefAPlay:'".pgc-rev-lb-auto-play-"'}},function(e,t,i){(t=e.exports=i(0)(!1)).push([e.i,".pgc-rev-tags-list-view{position:relative;overflow:hidden;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;margin-bottom:10px}.pgc-rev-tags-list-item-view{cursor:pointer;padding:5px 8px;margin:4px;transition:0.3s;border-radius:2px}.pgc-rev-tags-list-item-view .pgc-rev-tags-list-item-title{max-width:200px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:15px;transition:0.3s}\n",""]),t.locals={classPref:'".pgc-rev-tags-list-"',classPrefTag:'".pgc-rev-tags-list-item-"'}},function(e,t,i){(t=e.exports=i(0)(!1)).push([e.i,".pgc-rev-modal-window{position:fixed;-webkit-backface-visibility:hidden;backface-visibility:hidden;top:0;left:0;right:0;bottom:0;overflow:hidden;opacity:0;will-change:opacity;transition:opacity 0.4s;text-align:center}.pgc-rev-modal-window *{box-sizing:border-box}.pgc-rev-modal-window .pgc-rev-modal-flex{display:inline-block;width:0;height:100%;vertical-align:middle}.pgc-rev-modal-window .pgc-rev-modal-close-button{position:absolute;width:100%;height:100%;z-index:-100;will-change:opacity}\n",""]),t.locals={classPref:'".pgc-rev-modal-"'}},function(e,t,i){(t=e.exports=i(0)(!1)).push([e.i,".pgc-rev-modal-page-view{position:relative;font-size:14px;line-height:1.3;margin:0 10px;padding-bottom:10px;max-width:720px;min-width:260px;background-color:white;border-radius:2px;box-shadow:0 8px 16px rgba(0,0,0,0.15);vertical-align:middle;display:inline-block}.pgc-rev-modal-page-view .pgc-rev-modal-page-close-button{position:absolute;margin:10px;width:24px;height:24px;cursor:pointer;right:0}.pgc-rev-modal-page-view .pgc-rev-modal-page-close-button svg{width:100%;height:100%;vertical-align:baseline !important}\n",""]),t.locals={classPref:'".pgc-rev-modal-page-"'}},function(e,t,i){(t=e.exports=i(0)(!1)).push([e.i,".gmedia-item-info-description-wrap{min-width:200px;min-height:44px;padding:10px 20px 0 20px;float:left;text-align:left;font-size:1em}.gmedia-item-info-description-wrap .gmedia-item-info-item-title{font-size:130%;font-weight:600;margin-right:20px}.gmedia-item-info-description-wrap .gmedia-item-info-item-description{margin-top:3px;font-weight:400}.gmedia-item-info-description-wrap .gmedia-item-info-terms-list{list-style:none;margin:0;overflow:hidden;padding:0}.gmedia-item-info-description-wrap .gmedia-item-info-terms-list.gmedia-item-info-tags-ul{font-size:inherit;line-height:inherit;margin-bottom:0 !important;margin-left:0 !important}.gmedia-item-info-description-wrap .gmedia-item-info-terms-list.gmedia-item-info-tags-ul li{border-radius:3px;display:inline-block;height:26px;line-height:26px;padding:0 20px 0 23px;position:relative;margin:0 7px 10px 0;text-decoration:none;cursor:pointer;transition:0.3s}.gmedia-item-info-description-wrap .gmedia-item-info-meta-exif-value{line-height:1.5;display:inline-block}.gmedia-item-info-description-wrap .gmedia-item-info-meta-exif-separator{display:inline-block;font-size:100%;margin:0 4px;opacity:0.4}.gmedia-item-info-description-wrap .gmedia-item-info-likes-view-com{position:relative;min-width:60px;min-height:40px;border:1px solid;border-color:rgba(0,0,0,0.18);border-radius:2px;padding:4px;margin:0 1%;text-align:center;display:inline-block}.gmedia-item-info-description-wrap .gmedia-item-info-likes-view-com svg{display:inline-block;width:24px;height:24px;vertical-align:baseline !important}.gmedia-item-info-description-wrap .gmedia-item-info-likes-view-com .gmedia-item-info-counter-text{font-size:15px;line-height:1}.gmedia-item-info-description-wrap .gmedia-item-info-item-date{font-size:100%;line-height:1.9}.gmedia-item-info-description-wrap .gmedia-item-info-item-date .gmedia-item-info-item-meta-key{float:left;width:40%;min-width:80px}.gmedia-item-info-description-wrap .gmedia-item-info-item-date .gmedia-item-info-item-meta-value{float:left;white-space:nowrap;text-transform:capitalize}\n",""]),t.locals={classPref:'".gmedia-item-info-"'}},function(e,t,i){(t=e.exports=i(0)(!1)).push([e.i,".gmedia-item-share-description-wrap{min-height:44px;padding:10px 20px 0 20px;float:left;text-align:left}.gmedia-item-share-description-wrap .gmedia-item-share-item-title{display:block;font-size:130%;font-weight:600;line-height:1.3}.gmedia-item-share-description-wrap .gmedia-item-share-item-button-wrap{position:relative;display:inline-block;padding:0 4px;min-width:130px;width:50%;height:42px}.gmedia-item-share-description-wrap .gmedia-item-share-item-button-wrap .gmedia-item-share-item-button{border:1px solid;border-color:rgba(0,0,0,0.18);cursor:pointer;width:100%;height:100%;border-radius:2px;background-color:#fafafa;transition:0.4s}.gmedia-item-share-description-wrap .gmedia-item-share-item-button-wrap .gmedia-item-share-item-button svg{width:40px;height:40px;float:left;vertical-align:baseline !important}.gmedia-item-share-description-wrap .gmedia-item-share-item-button-wrap .gmedia-item-share-item-button .gmedia-item-share-button-title{white-space:nowrap;position:absolute;left:30px;right:0;font-size:15px;font-weight:400;line-height:41px;text-align:center;opacity:0.7;transition:opacity 0.4s}.gmedia-item-share-description-wrap .gmedia-item-share-item-button-wrap .gmedia-item-share-item-button:hover{box-shadow:0 1px 4px rgba(0,0,0,0.2)}.gmedia-item-share-description-wrap .gmedia-item-share-item-button-wrap .gmedia-item-share-item-button:hover .gmedia-item-share-button-title{opacity:1}.gmedia-item-share-description-wrap .gmedia-item-share-item-button-wrap .gmedia-item-share-item-copy-link{background-color:#fafafa;border:solid 1px rgba(0,0,0,0.17);width:100%;height:100%;border-radius:2px;overflow:hidden;position:relative;cursor:pointer;transition:0.4s}.gmedia-item-share-description-wrap .gmedia-item-share-item-button-wrap .gmedia-item-share-item-copy-link .gmedia-item-share-button-title{position:absolute;white-space:nowrap;line-height:41px;left:41px;right:10px;overflow:hidden;opacity:0.7;transition:0.4s}.gmedia-item-share-description-wrap .gmedia-item-share-item-button-wrap .gmedia-item-share-item-copy-link svg{width:40px;height:40px;padding:4px;float:left;transition:fill 0.4s;vertical-align:baseline !important}.gmedia-item-share-description-wrap .gmedia-item-share-item-button-wrap .gmedia-item-share-item-copy-link:hover{box-shadow:0 1px 4px rgba(0,0,0,0.2)}.gmedia-item-share-description-wrap .gmedia-item-share-item-button-wrap .gmedia-item-share-item-copy-link:hover .gmedia-item-share-button-title{opacity:1}\n",""]),t.locals={classPref:'".gmedia-item-share-"'}},function(e,t,i){"use strict";i.r(t);i(12);var o=i(5),n=i.n(o);function a(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,t,i){return t&&a(e.prototype,t),i&&a(e,i),e}var r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var t=this;this.mouseDetected=!1,this.mouseMoveHandler=function(){return function(e){window.removeEventListener("mousedown",t.mouseMoveHandler,!1),window.removeEventListener("touchstart",t.mouseMoveHandler,!1),"touchstart"===e.type?(e.stopPropagation(),t.mouseDetected=!1):t.mouseDetected=!0}},window.addEventListener("mousedown",this.mouseMoveHandler,!1),window.addEventListener("touchstart",this.mouseMoveHandler,!1)}return s(e,null,[{key:"ClassPref",get:function(){var e=n.a.classPref;return e.substring(e.lastIndexOf(".")+1,e.lastIndexOf('"'))}},{key:"ICONS",get:function(){return{MAXIMIZE_SVG:'<svg fill="none" height="24" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" x2="14" y1="3" y2="10"/><line x1="3" x2="10" y1="21" y2="14"/></svg>',NOTE_SVG:'<svg version="1.1" viewBox="0 0 58 94" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path d="M37.992,0h-8.021v65.358c-4.435-1.706-10.174-1.73-15.835,0.328C3.994,69.377-2.049,78.355,0.638,85.736 c2.688,7.383,13.088,10.374,23.229,6.683c8.614-3.134,14.249-10.082,14.111-16.626l0.014-53.451 c13.986,2.204,14.943,19.884,13.268,24.842c-0.636,1.879,0.484,3.286,2.598,0C68.938,23.726,37.992,13.376,37.992,0z"/></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></svg>',VIMEO_SVG:'<svg enable-background="new 0 0 56.693 56.693" height="56.693px" id="Layer_1" version="1.1" viewBox="-5 -5 66.693 66.693" width="56.693px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M3.602,22.974l2.01,2.636c0,0,4.146-3.267,5.528-1.634c1.382,1.634,6.656,21.357,8.417,24.997 c1.537,3.192,5.777,7.413,10.426,4.397c4.646-3.014,20.098-16.205,22.863-31.781c2.764-15.574-18.594-12.313-20.854,1.256 c5.652-3.395,8.671,1.38,5.778,6.784c-2.889,5.399-5.527,8.921-6.908,8.921c-1.379,0-2.441-3.612-4.021-9.928 c-1.635-6.53-1.624-18.291-8.416-16.958C12.019,12.921,3.602,22.974,3.602,22.974z"/></svg>',YOU_TUBE_SVG:'<svg data-name="Layer 21" height="24" id="Layer_21" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><title/><path d="M21.80731,7.805a2.79915,2.79915,0,0,0-2.54907-2.53906C17.69061,5.13586,15.36707,5,12.50012,5c-3.45251,0-6.05865.14105-7.74353.27332A2.79932,2.79932,0,0,0,2.1925,7.815C2.08936,8.90021,2,10.33344,2,12.0423c0,1.66632.08862,3.07422.19128,4.14594a2.79852,2.79852,0,0,0,2.56384,2.53833C6.43994,18.85883,9.04657,19,12.50012,19c2.86694,0,5.19049-.13586,6.75812-.266a2.799,2.799,0,0,0,2.54907-2.539C21.91052,15.11548,22,13.69189,22,12S21.91052,8.88452,21.80731,7.805ZM9.77594,14.93878V9.06122L15.574,12Z"/></svg>',BOOKMARK_SVG:'<svg height="1792" viewBox="0 0 1792 1792" width="1792" xmlns="http://www.w3.org/2000/svg"><path d="M1420 128q23 0 44 9 33 13 52.5 41t19.5 62v1289q0 34-19.5 62t-52.5 41q-19 8-44 8-48 0-83-32l-441-424-441 424q-36 33-83 33-23 0-44-9-33-13-52.5-41t-19.5-62v-1289q0-34 19.5-62t52.5-41q21-9 44-9h1048z"/></svg>',HEART_SVG:'<svg enable-background="new 0 0 51 46" height="46px" id="Layer_1" version="1.1" viewBox="0 0 51 46" width="51px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M46.188,4.101c-5.529-5.53-14.495-5.53-20.023,0L25.39,4.875l-0.996-0.774c-5.529-5.53-14.715-5.53-20.245,0 C-1.38,9.63-1.27,18.595,4.26,24.125l18.753,18.643c0.671,0.671,1.4,1.258,2.376,1.766c0.76-0.508,1.483-1.095,2.155-1.766 l18.643-18.643C51.717,18.595,51.717,9.63,46.188,4.101z""/></svg>',HEART_2_SVG:'<svg enable-background="new 0 0 24 24" id="Layer_1" version="1.0" viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M16.4,6c2,0,3.6,1.6,3.6,3.6c0,2-3.9,6.4-8,9.8c-4.1-3.5-8-7.9-8-9.8C4,7.6,5.6,6,7.6,6C10,6,12,9,12,9S13.9,6,16.4,6 M16.4,4C14.6,4,13,4.9,12,6.3C11,4.9,9.4,4,7.6,4C4.5,4,2,6.5,2,9.6C2,14,12,22,12,22s10-8,10-12.4C22,6.5,19.5,4,16.4,4L16.4,4z"/></svg>',COMENTS_SVG:'<svg style="enable-background:new 0 0 24 24;" version="1.1" viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="info"/><g id="icons"><path d="M20,1H4C1.8,1,0,2.8,0,5v10c0,2.2,1.8,4,4,4v3c0,0.9,1.1,1.3,1.7,0.7L9.4,19H20c2.2,0,4-1.8,4-4V5 C24,2.8,22.2,1,20,1z M14,13H8c-0.6,0-1-0.4-1-1c0-0.6,0.4-1,1-1h6c0.6,0,1,0.4,1,1C15,12.6,14.6,13,14,13z M16,9H8 C7.4,9,7,8.6,7,8c0-0.6,0.4-1,1-1h8c0.6,0,1,0.4,1,1C17,8.6,16.6,9,16,9z" id="message"/></g></svg>',COMENTS_2_SVG:'<svg enable-background="new 0 0 64 64" height="64px" id="Layer_1" version="1.1" viewBox="0 0 64 64" width="64px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path d="M47.964,8.127H16.036c-4.4,0-8,3.6-8,8v20.977c0,4.4,3.6,8,8,8h7.397v10.768l13.333-10.768h11.197c4.4,0,8-3.6,8-8V16.127 C55.964,11.727,52.364,8.127,47.964,8.127z M50.964,37.104c0,1.626-1.374,3-3,3H36.767H35l-1.375,1.11l-5.191,4.193v-0.303v-5h-5 h-7.397c-1.626,0-3-1.374-3-3V16.127c0-1.626,1.374-3,3-3h31.928c1.626,0,3,1.374,3,3V37.104z"/><circle cx="21.743" cy="26.617" r="2.913"/><circle cx="32" cy="26.617" r="2.913"/><circle cx="42.256" cy="26.617" r="2.913"/></g></svg>',INFO_SVG:'<svg height="100px" id="Capa_1" style="enable-background:new 0 0 46 100;" version="1.1" viewBox="0 0 46 100" width="46px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path d="M35.162,0c6.696,0,10.043,4.567,10.043,9.789c0,6.522-5.814,12.555-13.391,12.555c-6.344,0-10.045-3.752-9.869-9.947 C21.945,7.176,26.35,0,35.162,0z M14.543,100c-5.287,0-9.164-3.262-5.463-17.615l6.07-25.457c1.057-4.077,1.23-5.707,0-5.707 c-1.588,0-8.451,2.816-12.51,5.59L0,52.406C12.863,41.48,27.662,35.072,34.004,35.072c5.285,0,6.168,6.361,3.525,16.148 L30.58,77.98c-1.234,4.729-0.703,6.359,0.527,6.359c1.586,0,6.787-1.963,11.896-6.041L46,82.377C33.488,95.1,19.83,100,14.543,100z "/></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></svg>',DOWNLOAD_SVG:'<svg version="1.1" viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="info"/><g id="icons"><g id="save"><path d="M11.2,16.6c0.4,0.5,1.2,0.5,1.6,0l6-6.3C19.3,9.8,18.8,9,18,9h-4c0,0,0.2-4.6,0-7c-0.1-1.1-0.9-2-2-2c-1.1,0-1.9,0.9-2,2 c-0.2,2.3,0,7,0,7H6c-0.8,0-1.3,0.8-0.8,1.4L11.2,16.6z"/><path d="M19,19H5c-1.1,0-2,0.9-2,2v0c0,0.6,0.4,1,1,1h16c0.6,0,1-0.4,1-1v0C21,19.9,20.1,19,19,19z"/></g></g></svg>',DOWNLOAD_2_SVG:'<svg enable-background="new 0 0 64 64" height="64px" id="Layer_1" version="1.1" viewBox="0 0 64 64" width="64px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path d="M40.001,36.254c0,3.299-2.673,5.971-5.97,5.971H29.97c-3.297,0-5.97-2.672-5.97-5.971H8v17c0,2.209,1.791,4,4,4h40 c2.209,0,4-1.791,4-4v-17H40.001z"/><path d="M31.916,33.246l7.608-7.452c0.747-0.733,0.506-1.327-0.543-1.327h-4.565V9.246c0-1.381-1.119-2.5-2.5-2.5 s-2.5,1.119-2.5,2.5v15.221h-4.565c-1.05,0-1.291,0.595-0.542,1.327L31.916,33.246z"/></g></svg>',LINK_SVG:'<svg height="1792" viewBox="0 0 1792 1792" width="1792" xmlns="http://www.w3.org/2000/svg"><path d="M1520 1216q0-40-28-68l-208-208q-28-28-68-28-42 0-72 32 3 3 19 18.5t21.5 21.5 15 19 13 25.5 3.5 27.5q0 40-28 68t-68 28q-15 0-27.5-3.5t-25.5-13-19-15-21.5-21.5-18.5-19q-33 31-33 73 0 40 28 68l206 207q27 27 68 27 40 0 68-26l147-146q28-28 28-67zm-703-705q0-40-28-68l-206-207q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l208 208q27 27 68 27 42 0 72-31-3-3-19-18.5t-21.5-21.5-15-19-13-25.5-3.5-27.5q0-40 28-68t68-28q15 0 27.5 3.5t25.5 13 19 15 21.5 21.5 18.5 19q33-31 33-73zm895 705q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-206-207q-83-83-83-203 0-123 88-209l-88-88q-86 88-208 88-120 0-204-84l-208-208q-84-84-84-204t85-203l147-146q83-83 203-83 121 0 204 85l206 207q83 83 83 203 0 123-88 209l88 88q86-88 208-88 120 0 204 84l208 208q84 84 84 204z"/></svg>',LINK_2_SVG:'<svg data-name="Layer 21" height="24" id="Layer_21" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><title/><path d="M9.87012,5.541l4.26953,4.26953a2.02108,2.02108,0,0,1,0,2.855l-1.42383,1.42285,1.41406,1.415,1.42383-1.42334a4.02449,4.02449,0,0,0,0-5.68359L11.28418,4.127a4.01858,4.01858,0,0,0-5.68359,0L4.17676,5.55029a4.02212,4.02212,0,0,0,0,5.68311L5.59082,9.81934a2.02108,2.02108,0,0,1,0-2.855L7.01465,5.541A2.06778,2.06778,0,0,1,9.87012,5.541Z"/><path d="M19.82324,12.666l-1.41406,1.41406a2.02108,2.02108,0,0,1,0,2.855L16.98535,18.3584a2.06778,2.06778,0,0,1-2.85547,0L9.86035,14.08887a2.02108,2.02108,0,0,1,0-2.855L11.28418,9.811,9.87012,8.396,8.44629,9.81934a4.02449,4.02449,0,0,0,0,5.68359l4.26953,4.26953a4.01917,4.01917,0,0,0,5.68359.00049l1.42383-1.42334A4.02449,4.02449,0,0,0,19.82324,12.666Z"/></svg>',SHARE_SVG:'<svg height="1792" viewBox="0 0 1792 1792" width="1792" xmlns="http://www.w3.org/2000/svg"><path d="M1344 1024q133 0 226.5 93.5t93.5 226.5-93.5 226.5-226.5 93.5-226.5-93.5-93.5-226.5q0-12 2-34l-360-180q-92 86-218 86-133 0-226.5-93.5t-93.5-226.5 93.5-226.5 226.5-93.5q126 0 218 86l360-180q-2-22-2-34 0-133 93.5-226.5t226.5-93.5 226.5 93.5 93.5 226.5-93.5 226.5-226.5 93.5q-126 0-218-86l-360 180q2 22 2 34t-2 34l360 180q92-86 218-86z"/></svg>',SHARE_2_SVG:'<svg enable-background="new 0 0 64 64" height="64px" id="Layer_1" version="1.1" viewBox="0 0 64 64" width="64px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M48,39.26c-2.377,0-4.515,1-6.033,2.596L24.23,33.172c0.061-0.408,0.103-0.821,0.103-1.246c0-0.414-0.04-0.818-0.098-1.215 l17.711-8.589c1.519,1.609,3.667,2.619,6.054,2.619c4.602,0,8.333-3.731,8.333-8.333c0-4.603-3.731-8.333-8.333-8.333 s-8.333,3.73-8.333,8.333c0,0.414,0.04,0.817,0.098,1.215l-17.711,8.589c-1.519-1.609-3.666-2.619-6.054-2.619 c-4.603,0-8.333,3.731-8.333,8.333c0,4.603,3.73,8.333,8.333,8.333c2.377,0,4.515-1,6.033-2.596l17.737,8.684 c-0.061,0.407-0.103,0.821-0.103,1.246c0,4.603,3.731,8.333,8.333,8.333s8.333-3.73,8.333-8.333C56.333,42.99,52.602,39.26,48,39.26 z"/></svg>',FULL_SCREEN_SVG:'<svg height="14px" version="1.1" viewBox="0 0 14 14" width="14px" xmlns="http://www.w3.org/2000/svg" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns" xmlns:xlink="http://www.w3.org/1999/xlink"><title/><desc/><defs/><g fill-rule="evenodd" id="Page-1" stroke="none" stroke-width="1"><g transform="translate(-215.000000, -257.000000)"><g id="fullscreen" transform="translate(215.000000, 257.000000)"><path d="M2,9 L0,9 L0,14 L5,14 L5,12 L2,12 L2,9 L2,9 Z M0,5 L2,5 L2,2 L5,2 L5,0 L0,0 L0,5 L0,5 Z M12,12 L9,12 L9,14 L14,14 L14,9 L12,9 L12,12 L12,12 Z M9,0 L9,2 L12,2 L12,5 L14,5 L14,0 L9,0 L9,0 Z" id="Shape"/></g></g></g></svg>',NORMAL_SCREEN_SVG:'<svg height="14px" version="1.1" viewBox="0 0 14 14" width="14px" xmlns="http://www.w3.org/2000/svg" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns" xmlns:xlink="http://www.w3.org/1999/xlink"><g fill-rule="evenodd" stroke="none" stroke-width="1"><g id="Core" transform="translate(-257.000000, -257.000000)"><g id="fullscreen-exit" transform="translate(257.000000, 257.000000)"><path d="M0,11 L3,11 L3,14 L5,14 L5,9 L0,9 L0,11 L0,11 Z M3,3 L0,3 L0,5 L5,5 L5,0 L3,0 L3,3 L3,3 Z M9,14 L11,14 L11,11 L14,11 L14,9 L9,9 L9,14 L9,14 Z M11,3 L11,0 L9,0 L9,5 L14,5 L14,3 L11,3 L11,3 Z" id="Shape"/></g></g></g></svg>',CLOSE_SVG:'<svg height="512px" id="Layer_1" style="enable-background:new 0 0 512 512;" version="1.1" viewBox="0 0 512 512" width="512px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M437.5,386.6L306.9,256l130.6-130.6c14.1-14.1,14.1-36.8,0-50.9c-14.1-14.1-36.8-14.1-50.9,0L256,205.1L125.4,74.5 c-14.1-14.1-36.8-14.1-50.9,0c-14.1,14.1-14.1,36.8,0,50.9L205.1,256L74.5,386.6c-14.1,14.1-14.1,36.8,0,50.9 c14.1,14.1,36.8,14.1,50.9,0L256,306.9l130.6,130.6c14.1,14.1,36.8,14.1,50.9,0C451.5,423.4,451.5,400.6,437.5,386.6z"/></svg>',VIEW_SVG:'<svg enable-background="new 0 0 167 93" height="93px" id="Layer_1" version="1.1" viewBox="0 0 167 93" width="167px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path d="M83.25,29.25c-9.649,0-17.5,7.851-17.5,17.5s7.851,17.5,17.5,17.5s17.5-7.851,17.5-17.5 S92.899,29.25,83.25,29.25z"/><path d="M83.25,0.75c-45.84,0-83,46-83,46s37.16,46,83,46s83-46,83-46S129.09,0.75,83.25,0.75z M83.25,81.25 c-19.054,0-34.5-15.445-34.5-34.5c0-19.054,15.446-34.5,34.5-34.5s34.5,15.446,34.5,34.5C117.75,65.805,102.304,81.25,83.25,81.25z "/></g></svg>',FB_SVG_COLOR:'<svg version="1.1" viewBox="0 0 32 32" width="32" height="32" aria-hidden="false"><path d="M27.6 3h-23.2c-.8 0-1.4.6-1.4 1.4v23.1c0 .9.6 1.5 1.4 1.5h12.5v-10.1h-3.4v-3.9h3.4v-2.9c0-3.4 2.1-5.2 5-5.2 1.4 0 2.7.1 3 .2v3.5h-2.1c-1.6 0-1.9.8-1.9 1.9v2.5h3.9l-.5 3.9h-3.4v10.1h6.6c.8 0 1.4-.6 1.4-1.4v-23.2c.1-.8-.5-1.4-1.3-1.4z"></path></svg>',FB_SVG:'<svg enable-background="new 0 0 32 32" version="1.1" viewBox="0 0 32 32" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="Flat_copy"><path d="M11.848,32h6.612V15.998h4.411l0.584-5.514H18.46l0.007-2.761c0-1.437,0.137-2.209,2.2-2.209h2.757V0h-4.412 c-5.299,0-7.164,2.675-7.164,7.174v3.311H8.545v5.515h3.303V32z"/></g></svg>',TW_SVG:'<svg version="1.1" viewBox="0 0 32 32" width="32" height="32" aria-hidden="false"><path d="M30 7.3c-1 .5-2.1.8-3.3.9 1.2-.7 2.1-1.8 2.5-3.2-1.1.7-2.3 1.1-3.6 1.4-1-1.1-2.5-1.8-4.2-1.8-3.2 0-5.7 2.6-5.7 5.7 0 .5.1.9.1 1.3-4.8-.2-9-2.5-11.8-6-.5.9-.8 1.9-.8 3 0 2 1 3.8 2.6 4.8-.9 0-1.8-.3-2.6-.7v.1c0 2.8 2 5.1 4.6 5.6-.5.1-1 .2-1.5.2-.4 0-.7 0-1.1-.1.7 2.3 2.9 3.9 5.4 4-2 1.5-4.4 2.5-7.1 2.5-.5 0-.9 0-1.4-.1 2.5 1.6 5.6 2.6 8.8 2.6 10.6 0 16.3-8.8 16.3-16.3v-.7c1.1-1 2-2 2.8-3.2z"></path></svg>',PIN_SVG:'<svg version="1.1" viewBox="0 0 32 32" width="32" height="32" aria-hidden="false"><path d="M16 3c-7.2 0-13 5.8-13 13 0 5.5 3.4 10.2 8.3 12.1-.1-1-.2-2.6 0-3.7.2-1 1.5-6.5 1.5-6.5s-.4-.8-.4-1.9c0-1.8 1-3.2 2.4-3.2 1.1 0 1.6.8 1.6 1.8 0 1.1-.7 2.8-1.1 4.3-.3 1.3.6 2.3 1.9 2.3 2.3 0 4.1-2.4 4.1-6 0-3.1-2.2-5.3-5.4-5.3-3.7 0-5.9 2.8-5.9 5.6 0 1.1.4 2.3 1 3 .1.1.1.2.1.4-.1.4-.3 1.3-.4 1.5-.1.2-.2.3-.4.2-1.6-.8-2.6-3.1-2.6-5 0-4.1 3-7.9 8.6-7.9 4.5 0 8 3.2 8 7.5 0 4.5-2.8 8.1-6.7 8.1-1.3 0-2.6-.7-3-1.5 0 0-.7 2.5-.8 3.1-.3 1.1-1.1 2.5-1.6 3.4 1.2.4 2.5.6 3.8.6 7.2 0 13-5.8 13-13 0-7.1-5.8-12.9-13-12.9z"></path></svg>',ZOOM_IN_SVG:'<svg enable-background="new 0 0 512 512" height="512px" id="Layer_1" version="1.1" viewBox="0 0 512 512" width="512px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M497.913,497.914c-18.782,18.781-49.226,18.781-68.008,0l-84.862-84.864c-34.89,22.366-76.131,35.718-120.66,35.718 C100.468,448.768,0,348.314,0,224.384C0,100.454,100.468,0,224.383,0c123.931,0,224.384,100.453,224.384,224.384 c0,44.529-13.353,85.771-35.718,120.675l84.863,84.849C516.695,448.689,516.695,479.131,497.913,497.914z M224.383,64.11 c-88.511,0-160.274,71.763-160.274,160.274c0,88.526,71.764,160.274,160.274,160.274c88.526,0,160.273-71.748,160.273-160.274 C384.656,135.873,312.909,64.11,224.383,64.11z M256.438,320.548h-64.108v-64.109H128.22V192.33h64.109v-64.11h64.108v64.11h64.11 v64.109h-64.11V320.548z"/></svg>',ZOOM_OUT_SVG:'<svg enable-background="new 0 0 512 512" height="512px" id="Layer_1" version="1.1" viewBox="0 0 512 512" width="512px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><g><path d="M497.913,429.906l-84.863-84.848c22.365-34.903,35.718-76.146,35.718-120.676C448.768,100.453,348.314,0,224.383,0 C100.468,0,0,100.453,0,224.384s100.468,224.384,224.383,224.384c44.529,0,85.771-13.352,120.66-35.718l84.862,84.864 c18.782,18.781,49.226,18.781,68.008,0C516.695,479.131,516.695,448.689,497.913,429.906z M224.383,384.658 c-88.511,0-160.274-71.748-160.274-160.274c0-88.511,71.764-160.274,160.274-160.274c88.526,0,160.273,71.763,160.273,160.274 C384.656,312.91,312.909,384.658,224.383,384.658z M128.219,256.438h192.329v-64.109H128.219V256.438z"/></g></g></svg>',PLAY_SVG:'<svg height="512px" id="Layer_1" enable-background:new 0 0 512 512 version="1.1" viewBox="0 0 512 512" width="512px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M405.2,232.9L126.8,67.2c-3.4-2-6.9-3.2-10.9-3.2c-10.9,0-19.8,9-19.8,20H96v344h0.1c0,11,8.9,20,19.8,20 c4.1,0,7.5-1.4,11.2-3.4l278.1-165.5c6.6-5.5,10.8-13.8,10.8-23.1C416,246.7,411.8,238.5,405.2,232.9z"/></svg>',PAUSE_SVG:'<svg height="512px" id="Layer_1" enable-background:new 0 0 512 512 version="1.1" viewBox="0 0 512 512" width="512px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path d="M224,435.8V76.1c0-6.7-5.4-12.1-12.2-12.1h-71.6c-6.8,0-12.2,5.4-12.2,12.1v359.7c0,6.7,5.4,12.2,12.2,12.2h71.6 C218.6,448,224,442.6,224,435.8z"/><path d="M371.8,64h-71.6c-6.7,0-12.2,5.4-12.2,12.1v359.7c0,6.7,5.4,12.2,12.2,12.2h71.6c6.7,0,12.2-5.4,12.2-12.2V76.1 C384,69.4,378.6,64,371.8,64z"/></g></svg>',USER_SVG:'<svg version="1.1" viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="info"/><g id="icons"><path d="M12,0C5.4,0,0,5.4,0,12c0,6.6,5.4,12,12,12s12-5.4,12-12C24,5.4,18.6,0,12,0z M12,4c2.2,0,4,2.2,4,5s-1.8,5-4,5 s-4-2.2-4-5S9.8,4,12,4z M18.6,19.5C16.9,21,14.5,22,12,22s-4.9-1-6.6-2.5c-0.4-0.4-0.5-1-0.1-1.4c1.1-1.3,2.6-2.2,4.2-2.7 c0.8,0.4,1.6,0.6,2.5,0.6s1.7-0.2,2.5-0.6c1.7,0.5,3.1,1.4,4.2,2.7C19.1,18.5,19.1,19.1,18.6,19.5z" id="user2"/></g></svg>',ATTENTION_SVG:'<svg enable-background="new 0 0 91.8 92.6" id="Layer_1" version="1.0" viewBox="0 0 91.8 92.6" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M45.9,3.6c-23.5,0-42.5,19-42.5,42.5c0,23.5,19,42.5,42.5,42.5c23.5,0,42.5-19,42.5-42.5 C88.4,22.7,69.4,3.6,45.9,3.6z M43.7,21.1h4.3c0.5,0,0.9,0.4,0.9,0.9l-0.6,34.5c0,0.5-0.4,0.9-0.9,0.9h-3c-0.5,0-0.9-0.4-0.9-0.9 L42.8,22C42.8,21.5,43.2,21.1,43.7,21.1z M48.6,71.2c-0.8,0.8-1.7,1.1-2.7,1.1c-1,0-1.9-0.3-2.6-1c-0.8-0.7-1.3-1.8-1.3-2.9 c0-1,0.4-1.9,1.1-2.7c0.7-0.8,1.8-1.2,2.9-1.2c1.2,0,2.2,0.5,3,1.4c0.5,0.6,0.8,1.3,0.9,2.1C49.9,69.3,49.5,70.3,48.6,71.2z"/></svg>'}}}]),s(e,null,[{key:"createPreloaderView",value:function(t){var i=0,o=document.createElement("div");o.className="".concat(e.ClassPref,"preloader");var n=document.createElement("div");n.className="".concat(e.ClassPref,"static"),n.style.width="".concat(8,"px"),n.style.height="".concat(8,"px"),n.style.margin="".concat(-4,"px"),n.style.backgroundColor=t,o.appendChild(n);var a=document.createElement("div");a.className="".concat(e.ClassPref,"spinner"),a.style.position="absolute",a.style.width="".concat(36,"px"),a.style.height="".concat(36,"px"),a.style.margin="".concat(-18,"px");for(var s=0;s<8;s+=1){var r=document.createElement("div");r.className="".concat(e.ClassPref,"point"),r.style.marginTop="".concat(-4,"px"),r.style.marginLeft="".concat(-4,"px"),r.style.width="".concat(8,"px"),r.style.height="".concat(8,"px"),r.style.backgroundColor=t,r.style.transform="rotate(".concat(i,"deg) translate(").concat(18,"px)"),i+=45,a.appendChild(r)}return o.appendChild(a),o}},{key:"requestAnimationFrame",value:function(e){return(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame)(e)}},{key:"cancelAnimationFrame",value:function(e){(window.cancelAnimationFrame||window.mozCancelAnimationFrame)(e)}},{key:"whichTransitionEventEnd",value:function(){var e=document.createElement("fakeelement"),t={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"},i=Object.keys(t);for(var o in i)if(void 0!==e.style[o])return t[o]}},{key:"addParamsToURL",value:function(t,i,o){if(e.Device.browser.ie11)return"".concat(t+(t.indexOf("?")>=0?"&":"?")+encodeURIComponent(i),"=").concat(encodeURIComponent(o));var n=(t=new URL(t)).search,a=new URLSearchParams(n);return a.append(i,o),t.search=a.toString(),t.toString()}},{key:"copyProperties",value:function(e,t){for(var i=[],o=Object.keys(e),n=0;n<o.length;n+=1){var a=o[n];void 0!==e[a]&&(t[a]!==e[a]&&i.push(a),t[a]=e[a])}return i}},{key:"shuffle",value:function(e){for(var t,i,o=e.length;0!==o;)i=Math.floor(Math.random()*o),t=e[o-=1],e[o]=e[i],e[i]=t;return e}},{key:"Rect",value:function(e,t,i,o){return{x:e,y:t,width:i,height:o}}},{key:"Size",value:function(e,t){return{width:e,height:t}}},{key:"Point",value:function(e,t){return{x:e,y:t}}},{key:"SvgWithImage",value:function(e){var t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("viewBox","0 0 1 1"),t.setAttribute("version","1.1"),t.setAttribute("role","img");var i=document.createElementNS("http://www.w3.org/2000/svg","image");return i.setAttributeNS("http://www.w3.org/1999/xlink","href",e),i.setAttribute("width","100%"),i.setAttribute("height","100%"),i.setAttribute("x","0"),i.setAttribute("y","0"),i.setAttribute("preserveAspectRatio","xMidYMid slice"),t.appendChild(i),t}},{key:"findHighestZIndex",value:function(e){for(var t,i=99999,o=0;o<e.childNodes.length;o+=1){var n=e.childNodes[o];1===n.nodeType&&"SCRIPT"!==n.nodeName&&(t=document.defaultView.getComputedStyle(n,null).getPropertyValue("z-index")),t>i&&"auto"!==t&&(i=parseInt(t,10))}return i}},{key:"trace",value:function(e){if(1!==arguments.length){for(var t="",i=0;i<arguments.length;i+=1){var o=arguments[i];t+="".concat(o," , ")}t=t.slice(0,-2),console.log(t)}else console.log(e)}},{key:"preventDefaultForScrollKeys",value:function(e){return!{37:1,38:1,39:1,40:1}[e.keyCode]||(e.preventDefault(),!1)}},{key:"preventDefault",value:function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}},{key:"disableBodyScroll",value:function(){document.getElementsByTagName("html")[0].classList.add("".concat(e.ClassPref,"PopUpActive"))}},{key:"enableBodyScroll",value:function(){document.getElementsByTagName("html")[0].classList.remove("".concat(e.ClassPref,"PopUpActive"))}},{key:"disableBodyScrollSlider",value:function(){if(window.addEventListener){var t=e.passiveListener,i=e.preventDefault;window.addEventListener("wheel",i,t),window.addEventListener("mousewheel",i,t),window.addEventListener("touchmove",i,t)}document.onkeydown=e.preventDefaultForScrollKeys}},{key:"enableBodyScrollSlider",value:function(){if(window.removeEventListener){var t=e.passiveListener,i=e.preventDefault;window.removeEventListener("wheel",i,t),window.removeEventListener("mousewheel",i,t),window.removeEventListener("touchmove",i,t)}document.onkeydown=null}},{key:"collapseElementsInElemt",value:function(e,t){for(var i=[],o=0;o<e.childNodes.length;o+=1){var n={},a=e.childNodes[o];1===a.nodeType&&"SCRIPT"!==a.nodeName&&a!==t&&(n.element=a,n.height=null,n.overflow=null,""!==a.style.height&&(n.height=a.style.height),""!==a.style.overflow&&(n.overflow=a.style.overflow),i.push(n),a.style.overflow="hidden",a.style.height="0")}return i}},{key:"recoverElements",value:function(e){if(0!==e.length)for(var t=0;t<e.length;t+=1){var i=e[t].element;i&&(e[t].overflow?i.style.overflow=e[t].overflow:i.style.removeProperty("overflow"),e[t].height?i.style.height=e[t].height:i.style.removeProperty("height"))}}},{key:"hexToRgbaStrin",value:function(e,t){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,i,o){return t+t+i+i+o+o}));var i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return i?"rgba(".concat(parseInt(i[1],16),",").concat(parseInt(i[2],16),",").concat(parseInt(i[3],16),",").concat(t,")"):null}},{key:"getFrameForBoxWithMode",value:function(t,i,o){var n=t.width,a=t.height,s=i.width,r=i.height,l=1,c=1,h=1;o?(l=s/n,c=r/a,h=Math.max(l,c)):(l=s/n,c=r/a,h=(h=Math.min(l,c))>1?1:h);var d=Math.round(n*h),p=Math.round(a*h),m=Math.round((s-d)/2),u=Math.round((r-p)/2);return e.Rect(m,u,d,p)}},{key:"getItemFrameByIndexForBox",value:function(t,i,o,n,a,s){var r=1;s&&(r=s);var l=a=Math.min(i,a),c=Math.floor(i/a),h=(l=c>1?(i-(c-1)*o)/c:i)*r,d=Math.ceil((t+1)/c)-1,p=d*(h+n),m=(t-d*c)*(l+o);return e.Rect(m,p,l,h)}},{key:"fadeOut",value:function(e,t,i){i||(i=500);var o=Math.sqrt,n=(new Date).getTime();!function a(){var s=(new Date).getTime()-n,r=s/i;if(r<1){var l=1-o(r);e.style.opacity=String(l),setTimeout(a,Math.min(25,i-s))}else e.style.opacity="0",t&&t()}()}},{key:"ellipsizeTextBoxToLine",value:function(e,t){e.innerHTML=e.textContent||e.innerText||"";var i=e.innerHTML,o=e.innerHTML.split(" ");e.innerHTML=o[0].substring(0,3);var n=e.clientHeight*t;for(e.innerHTML=i;e.clientHeight>n;)o.pop(),e.innerHTML="".concat(o.join(" ")," ...")}},{key:"ellipsizeTextBox",value:function(e){e.innerHTML=e.textContent||e.innerText||"";for(var t=e.innerHTML.split(" ");e.scrollHeight>e.offsetHeight;)t.pop(),e.innerHTML="".concat(t.join(" ")," ...")}},{key:"scrollInElementToY",value:function(e,t){t=Math.min(t,e.scrollHeight-e.clientHeight-1);var i=0,o=setInterval((function(){i=.05*i+.07*(t-e.scrollTop);var n=e.scrollTop;n+=i,e.scrollTop=n,Math.abs(i)<1&&(e.scrollTop=t,clearInterval(o))}),15)}},{key:"scrollWindowToY",value:function(e){e=Math.min(e,document.documentElement.scrollHeight-document.documentElement.clientHeight-1);var t=0,i=setInterval((function(){t=.05*t+.07*(e-window.pageYOffset);var o=window.pageYOffset;o+=t,window.scrollTo(0,o),Math.abs(t)<1&&(window.scrollTo(0,e),clearInterval(i))}),15)}},{key:"scrollToY",value:function(e,t){var i,o=window.pageYOffset,n=Math.PI/(t/15),a=o/2,s=0,r=setInterval((function(){window.pageYOffset>e?(s+=1,i=a-a*Math.cos(s*n),window.scrollTo(0,o-i)):clearInterval(r)}),15)}},{key:"toggleFullScreen",value:function(e){var t=document.webkitIsFullScreen||document.mozFullScreen||!1;e.requestFullScreen=e.requestFullScreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||function(){return!1},document.cancelFullScreen=document.cancelFullScreen||document.webkitCancelFullScreen||document.mozCancelFullScreen||function(){return!1},t?document.cancelFullScreen():e.requestFullScreen()}},{key:"CacheItemsList",value:function(){var e={};function t(o){!e.itemsList||e.cached===e.itemsList.length&&!e.amount||e.amount&&e.cached>=e.amount||(e.amount&&(e.amount=Math.min(e.amount,e.itemsList.length)),e.currentItem=e.itemsList[o].webView,e.lastIndex=o,e.currentItem.complete?(e.cached+=1,t(e.lastIndex+1>=e.itemsList.length?0:e.lastIndex+1)):e.currentItem.addEventListener("load",i,!1))}function i(){e.cached+=1,t(e.lastIndex+1>=e.itemsList.length?0:e.lastIndex+1)}return e.cached=0,e.itemsList=void 0,e.currentItem=void 0,e.amount=void 0,e.lastIndex=void 0,e.init=function(o,n,a){e.currentItem&&e.currentItem.removeEventListener("load",i,!1),e.amount=a,e.cached=0,e.currentItem=void 0,e.lastIndex=n,e.itemsList=o,void 0===n&&(n=0),t(n)},e.status=function(){return{list:e.itemsList,index:e.lastIndex}},e}},{key:"GMEventsManager",value:function(){return{listenerSet:{},addGMEventListener:function(t,i,o){if(!t)return e.trace("********************************* Event UNDEFINED!!! ***************************************"),e.trace(i),e.trace(o),void e.trace("********************************* Event UNDEFINED!!! ***************************************");this.listenerSet[t]||(this.listenerSet[t]=[]);var n={};n.listener=i,n.handler=o,this.listenerSet[t].push(n)},removeGMEventListener:function(e,t,i){if(this.listenerSet[e])for(var o=0;o<this.listenerSet[e].length;o+=1)this.listenerSet[e][o].listener===t&&this.listenerSet[e][o].handler===i&&(this.listenerSet[e].splice(o,1),o=this.listenerSet[e].length)},dispatchGMEvent:function(e){if(this.listenerSet[e.type])for(var t=this.listenerSet[e.type],i=0;i<t.length;i+=1){var o=t[i];o&&o.listener&&"function"==typeof o.listener[o.handler]&&o.listener[o.handler](e)}}}}},{key:"GMEvent",value:function(e,t,i){var o={};return o.type=e,o.params=i,o.target=t,o}},{key:"passiveListener",get:function(){var e=!1;try{var t={get:function(){e=!0}},i=Object.defineProperty({},"passive",t);window.addEventListener("testPassive",null,i),window.removeEventListener("testPassive",null,i)}catch(e){}return!!e&&{passive:!1,capture:!1}}},{key:"Device",get:function(){var e=window,t=e.navigator.userAgent,i={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:e.cordova||e.phonegap,phonegap:e.cordova||e.phonegap,browser:{ie11:!1}},o=t.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),n=t.match(/(Android);?[\s\/]+([\d.]+)?/),a=t.match(/(iPad).*OS\s([\d_]+)/),s=t.match(/(iPod)(.*OS\s([\d_]+))?/),r=!a&&t.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(o&&(i.os="windows",i.osVersion=o[2],i.windows=!0),n&&!o&&(i.os="android",i.osVersion=n[2],i.android=!0,i.androidChrome=t.toLowerCase().indexOf("chrome")>=0),(a||r||s)&&(i.os="ios",i.ios=!0),r&&!s&&(i.osVersion=r[2].replace(/_/g,"."),i.iphone=!0),a&&(i.osVersion=a[2].replace(/_/g,"."),i.ipad=!0),s&&(i.osVersion=s[3]?s[3].replace(/_/g,"."):null,i.iphone=!0),i.ios&&i.osVersion&&t.indexOf("Version/")>=0&&"10"===i.osVersion.split(".")[0]&&(i.osVersion=t.toLowerCase().split("version/")[1].split(" ")[0]),i.desktop=!(i.os||i.android||i.webView),i.webView=(r||a||s)&&t.match(/.*AppleWebKit(?!.*Safari)/i),i.os&&"ios"===i.os){var l=i.osVersion.split("."),c=document.querySelector('meta[name="viewport"]');i.minimalUi=!i.webView&&(s||r)&&(1*l[0]==7?1*l[1]>=1:1*l[0]>7)&&c&&c.getAttribute("content").indexOf("minimal-ui")>=0}return i.pixelRatio=e.devicePixelRatio||1,window.navigator.userAgent.indexOf("Trident/7.0")>-1&&(i.browser.ie11=!0),i}},{key:"isTouchDevice",get:function(){return navigator.maxTouchPoints||"ontouchstart"in window}},{key:"getScrollbarWidth",get:function(){var e=document.createElement("div");e.style.visibility="hidden",e.style.width="100px",e.style.msOverflowStyle="scrollbar",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var i=document.createElement("div");i.style.width="100%",e.appendChild(i);var o=i.offsetWidth;return e.parentNode.removeChild(e),t-o}},{key:"hasScrollbar",get:function(){var e="BackCompat"===document.compatMode?document.body:document.documentElement;return e.scrollHeight>e.clientHeight}},{key:"miniScreen",get:function(){return window.screen.height<500||window.screen.width<500}},{key:"youTubeCode",get:function(){return'<iframe src="https://www.youtube.com/embed/%id%?autoplay=1&rel=0&showinfo=0&wmode=transparent" allow="autoplay" frameborder="0" allowfullscreen></iframe>'}},{key:"vimeoCode",get:function(){return'<iframe src="https://player.vimeo.com/video/%id%?autoplay=1&byline=0&portrait=0&transparent=0" frameborder=“0” allowfullscreen allow=autoplay></iframe>'}},{key:"pageXOffset",get:function(){return void 0!==window.pageXOffset?window.pageXOffset:(document.documentElement||document.body.parentNode||document.body).scrollLeft}},{key:"pageYOffset",get:function(){return void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop}},{key:"isFullscreen",get:function(){return document.webkitIsFullScreen||document.mozFullScreen||!1}}]),e}(),l=i(6),c=i.n(l);function h(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function d(e,t,i){return t&&h(e.prototype,t),i&&h(e,i),e}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var m=function e(t,i,o,n,a,s,r){p(this,e);var l=document.createElement("div");return l.className=t,l.dataset.type=o,l.innerHTML=i,l.style.backgroundColor=n,l.style.order=r,l.style.fill=a,l.addEventListener("touchend",s,!1),l.addEventListener("click",s,!1),l.addEventListener("mouseenter",s,!1),l.addEventListener("mouseleave",s,!1),l},u=function(){function e(t,i,o){p(this,e),this.appSet=t,this.appName=t.appName,this.type=i,this.buttonsList=[];var n=e.MENU_TYPE;this.config=e.CONFIG,r.copyProperties(o,this.config),this.item=void 0,this.lightbox=i===n.LIGHTBOX,this.view=document.createElement("div"),this.view.className="".concat(e.classPref,"view"),this.view.classList.add(i),this.initButtons()}return d(e,null,[{key:"classPref",get:function(){var e=c.a.classPref;return e.substring(e.lastIndexOf(".")+1,e.lastIndexOf('"'))}},{key:"EVENTS",get:function(){return{ITEM_MENU_ACTION:"ITEM_MENU_ACTION"}}},{key:"MENU_TYPE",get:function(){return{THUMB:"".concat(e.classPref,"type-thumb"),LIGHTBOX:"".concat(e.classPref,"type-lightbox"),ULTRABOX:"".concat(e.classPref,"type-ultrabox")}}},{key:"CONFIG",get:function(){return{im_linkTargetWindow:"_self",im_backgroundColor:"rgb(0,0,0)",im_backgroundColorOver:"rgb(255,255,255)",im_iconColor:"rgb(255,255,255)",im_iconColorOver:"rgb(0,0,0)",im_link:!1,im_play:!1,im_zoom:!1,im_info:!1,im_discuss:!1,im_download:!1,im_share:!1,im_like:!1,im_bookmark:!1,im_fulscreen:!1,im_close:!1,im_likesSet:void 0,im_isContainIdInBookmarkSet:void 0}}}]),d(e,[{key:"initButtons",value:function(){var t=this.type,i=e.MENU_TYPE,o=this;function n(e){"like"===e.dataset.type&&e.dataset.like||("bookmark"===e.dataset.type&&e.dataset.bookmark?e.style.backgroundColor=o.backgroundColor:(e.style.backgroundColor=o.backgroundColor,e.style.fill=o.iconColor))}function a(t){if(this.eventType=t.type,"click"===t.type){var i=o.item;if(!i)return;var a={};switch(a.type=this.dataset.type,a.item=i,this.dataset.type){case"like":case"bookmark":case"fullscreen":default:n(this)}r.Device.desktop||n(this),o.appSet.appEventManager.dispatchGMEvent(r.GMEvent(e.EVENTS.ITEM_MENU_ACTION,o,a))}else"mouseenter"===t.type?"bookmark"===(s=this).dataset.type&&s.dataset.bookmark?s.style.backgroundColor=o.backgroundColorOver:(s.style.backgroundColor=o.backgroundColorOver,s.style.fill=o.iconColorOver):"mouseleave"===t.type&&n(this);var s}this.backgroundColor=this.config.im_backgroundColor,this.backgroundColorOver=this.config.im_backgroundColorOver,this.iconColor=this.config.im_iconColor,this.iconColorOver=this.config.im_iconColorOver,this.config.im_link&&(this.linkButton=new m("".concat(e.classPref,"button"),t===i.ULTRABOX?r.ICONS.LINK_2_SVG:r.ICONS.LINK_SVG,"link",this.backgroundColor,this.iconColor,a,t===i.ULTRABOX?6:0),this.buttonsList.push(this.linkButton),this.view.appendChild(this.linkButton)),this.config.im_play&&(this.playButton=new m("".concat(e.classPref,"button"),r.ICONS.PLAY_SVG,"play",this.backgroundColor,this.iconColor,a,1),this.buttonsList.push(this.playButton),this.view.appendChild(this.playButton)),this.config.im_zoom&&(this.zoomButton=new m("".concat(e.classPref,"button"),r.ICONS.ZOOM_IN_SVG,"zoom",this.backgroundColor,this.iconColor,a,2),this.buttonsList.push(this.zoomButton),this.view.appendChild(this.zoomButton)),this.config.im_info&&(this.infoButton=new m("".concat(e.classPref,"button"),r.ICONS.INFO_SVG,"info",this.backgroundColor,this.iconColor,a,t===i.ULTRABOX?5:3),this.buttonsList.push(this.infoButton),this.view.appendChild(this.infoButton)),this.config.im_discuss&&(this.commentsButton=new m("".concat(e.classPref,"button"),t===i.ULTRABOX?r.ICONS.COMENTS_2_SVG:r.ICONS.COMENTS_SVG,"coments",this.backgroundColor,this.iconColor,a,(i.ULTRABOX,4)),this.buttonsList.push(this.commentsButton),this.view.appendChild(this.commentsButton)),this.config.im_download&&(this.downloadButton=new m("".concat(e.classPref,"button"),t===i.ULTRABOX?r.ICONS.DOWNLOAD_2_SVG:r.ICONS.DOWNLOAD_SVG,"download",this.backgroundColor,this.iconColor,a,t===i.ULTRABOX?3:5),this.buttonsList.push(this.downloadButton),this.view.appendChild(this.downloadButton)),this.config.im_share&&(this.shareButton=new m("".concat(e.classPref,"button"),t===i.ULTRABOX?r.ICONS.SHARE_2_SVG:r.ICONS.SHARE_SVG,"share",this.backgroundColor,this.iconColor,a,t===i.ULTRABOX?2:6),this.buttonsList.push(this.shareButton),this.view.appendChild(this.shareButton)),this.config.im_bookmark&&(this.bookMarkButton=new m("".concat(e.classPref,"button"),r.ICONS.BOOKMARK_SVG,"bookmark",this.backgroundColor,this.iconColor,a),this.buttonsList.push(this.bookMarkButton),this.view.appendChild(this.bookMarkButton)),this.config.im_like&&(this.likeButton=new m("".concat(e.classPref,"button"),t===i.ULTRABOX?r.ICONS.HEART_2_SVG:r.ICONS.HEART_SVG,"like",this.backgroundColor,this.iconColor,a,t===i.ULTRABOX?1:7),this.buttonsList.push(this.likeButton),this.view.appendChild(this.likeButton)),this.config.im_fulscreen&&(this.fullscreenButton=new m("".concat(e.classPref,"button"),r.ICONS.FULL_SCREEN_SVG,"fullscreen",this.backgroundColor,this.iconColor,a,t===i.ULTRABOX?6:8),this.buttonsList.push(this.fullscreenButton),this.view.appendChild(this.fullscreenButton)),this.config.im_close&&(this.closeButton=new m("".concat(e.classPref,"button"),r.ICONS.CLOSE_SVG,"close",this.backgroundColor,this.iconColor,a,9),this.buttonsList.push(this.closeButton),this.view.appendChild(this.closeButton))}},{key:"updateConfig",value:function(e){if(0!==r.copyProperties(e,this.config).length){for(var t=0;t<this.buttonsList.length;t+=1){var i=this.buttonsList[t];i.parentNode&&i.parentNode.removeChild(i),delete this.buttonsList[t]}this.buttonsList=[],this.initButtons()}}},{key:"updateForItem",value:function(e){if(this.item=e,this.zoomButton&&("image"!==e.type?this.zoomButtonStatus("desable"):this.zoomButtonStatus("zoomOut")),this.likeButton&&this.config.im_likesSet&&(this.config.im_likesSet()[e.ID]?(this.likeButton.style.fill="red",this.likeButton.style.cursor="default",this.likeButton.style.pointerEvents="none",this.likeButton.dataset.like=e.ID):(this.likeButton.style.fill=this.iconColor,this.likeButton.style.cursor="pointer",this.likeButton.style.pointerEvents="all",delete this.likeButton.dataset.like)),this.bookMarkButton&&(this.config.im_isContainIdInBookmarkSet(this.item.ID)||0===this.config.im_isContainIdInBookmarkSet(this.item.ID)?(this.bookMarkButton.dataset.bookmark=e.ID,this.bookMarkButton.style.fill="red"):(delete this.bookMarkButton.dataset.bookmark,this.bookMarkButton.style.fill=this.iconColor)),this.linkButton&&(e.link?(this.linkButton.style.display="block",this.linkButton.style.opacity="1",this.linkButton.style.cursor="pointer",this.linkButton.style.pointerEvents="all"):(this.linkButton.style.opacity="0",this.linkButton.style.display="none",this.linkButton.style.cursor="default",this.linkButton.style.pointerEvents="none")),this.commentsButton)switch(e.comment_status){case"open":this.commentsButton.style.display=null;break;case"closed":this.commentsButton.style.display="none"}}},{key:"zoomButtonStatus",value:function(e){if(this.zoomButton&&this.zoomStatus!==e){switch(e){case"desable":this.zoomButton.innerHTML=r.ICONS.ZOOM_IN_SVG,this.zoomButton.style.pointerEvents="none",this.zoomButton.style.opacity=.4;break;case"zoomOut":this.zoomButton.innerHTML=r.ICONS.ZOOM_IN_SVG,this.zoomButton.style.pointerEvents="auto",this.zoomButton.style.opacity=1;break;case"zoomIn":this.zoomButton.innerHTML=r.ICONS.ZOOM_OUT_SVG,this.zoomButton.style.pointerEvents="auto",this.zoomButton.style.opacity=1}this.zoomStatus=e}}},{key:"playButtonStatus",value:function(e){if(this.playButton&&this.playStatus!==e){switch(e){case"play":this.playButton.innerHTML=r.ICONS.PAUSE_SVG;break;case"stop":this.playButton.innerHTML=r.ICONS.PLAY_SVG}this.playStatus=e}}},{key:"resizeHandler",value:function(){var e=this;setTimeout((function(){var t=document.webkitIsFullScreen||document.mozFullScreen||!1;e.fullscreenButton&&(e.fullscreenButton.innerHTML=t?r.ICONS.NORMAL_SCREEN_SVG:r.ICONS.FULL_SCREEN_SVG,e.fullscreenButton.style.fill=e.iconColor)}),200)}}]),e}(),g=i(7),v=i.n(g);function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function b(e,t,i){return t&&w(e.prototype,t),i&&w(e,i),e}var y=function(){function e(t){f(this,e);var i=this;function o(e){switch(e.type){case"mouseenter":i.selector.style.opacity="1";break;case"mouseleave":i.selectedPr||(i.selector.style.opacity="0")}}this.delegate=t,this.appName=t.appName,this.item=void 0,this.view=document.createElement("div"),this.view.className="".concat(e.classPref,"item"),this.bgImg=document.createElement("div"),this.bgImg.className="".concat(e.classPref,"item-bg"),this.view.appendChild(this.bgImg),this.imgSRC=void 0,this.selector=document.createElement("div"),this.selector.className="".concat(e.classPref,"item-hover"),this.selector.style.borderColor=this.delegate.config.isb_itemBgColor,this.view.appendChild(this.selector),this.selectedPr=!1,this.view.addEventListener("mouseenter",o,!1),this.view.addEventListener("mouseleave",o,!1)}return b(e,null,[{key:"classPref",get:function(){var e=v.a.classPref;return e.substring(e.lastIndexOf(".")+1,e.lastIndexOf('"'))}}]),b(e,[{key:"initByItem",value:function(t){if(this.item=t,this.imgSRC=t.itemViewThumbSrc,this.bgImg.style.backgroundImage="url(".concat(this.imgSRC,")"),this.type=t.type,"audio"===this.type||"video"===this.type){switch(this.hover=document.createElement("div"),this.hover.className="".concat(e.classPref,"item-link"),this.hover.style.backgroundColor=this.delegate.config.isb_itemBgColor,this.type){case"audio":this.hover.innerHTML=r.ICONS.NOTE_SVG;break;case"video":"vimeo"===this.item.mime_type.split("/")[1]?this.hover.innerHTML=r.ICONS.VIMEO_SVG:this.hover.innerHTML=r.ICONS.YOU_TUBE_SVG}this.view.appendChild(this.hover)}}},{key:"select",value:function(e){this.selector.style.opacity=e?"1":"0",this.selectedPr=e}}]),e}(),C=function(){function e(t,i){f(this,e),this.config=e.CONFIG,r.copyProperties(i,this.config),this.appName=t.appName,this.appSet=t,this.itemsList=[],this.thumbSize=r.Size(70,50),this.view=document.createElement("div"),this.view.className="".concat(e.classPref,"wrap"),this.scrollView=document.createElement("div"),this.scrollView.className="".concat(e.classPref,"view"),this.scrollView.style.width="0px",this.view.appendChild(this.scrollView),this.thumbsList=[],this.itemsInStageCount=0,this.scrollWidthPr=0,this.viewCompleted=!1,this.dragging=!1,this.scrollViewTranslateX=0,this.startDragHandler=void 0,this.animationRender=void 0,this.speedX=0,this.activIndex=void 0,this.activAudioIndex=void 0}return b(e,null,[{key:"classPref",get:function(){return y.classPref}},{key:"CONFIG",get:function(){return{isb_itemBgColor:"rgba(255,255,255,0.6)"}}},{key:"EVENTS",get:function(){return{ITEMS_SCROLL_BAR_ITEM_ACTION:"ITEMS_SCROLL_BAR_ITEM_ACTION"}}}]),b(e,[{key:"initByItemslist",value:function(e){this.itemsList=e;var t=new y(this);this.scrollView.appendChild(t.view),this.thumbSize.width=t.view.clientWidth,this.thumbSize.height=t.view.clientHeight,this.scrollView.removeChild(t.view),this.prepare(),this.scrollWidthPr=this.thumbSize.width*this.itemsList.length,this.scrollView.style.width="".concat(this.scrollWidthPr+5,"px"),this.scrollViewTranslateX=0,this.updateView()}},{key:"addThumbByIndex",value:function(t){if(!this.thumbsList[t]){var i=this,o=new y(this);this.thumbsList[t]=o,this.itemsInStageCount+=1,r.isTouchDevice&&o.view.addEventListener("touchend",n,!1),o.view.addEventListener("mouseup",n,!1),o.view.style.left="".concat(this.thumbSize.width*t,"px"),this.scrollView.appendChild(o.view),o.initByItem(this.itemsList[t]),o.view.dataset.gmIndex=t}function n(t){"touchend"!==t.type&&"mouseup"!==t.type||i.dragging||(i.appSet.appEventManager.dispatchGMEvent(r.GMEvent(e.EVENTS.ITEMS_SCROLL_BAR_ITEM_ACTION,i,{action:"click",index:parseInt(this.dataset.gmIndex)})),i.startDragHandler&&i.startDragHandler())}}},{key:"changeAudioStatusForIndex",value:function(e,t){var i=this.thumbsList[e];!this.activAudioIndex&&0!==this.activAudioIndex||e===this.activAudioIndex||(this.thumbsList[this.activAudioIndex].musicIdentifireStatus="ended"),i.musicIdentifireStatus=t.type,this.activAudioIndex=e}},{key:"prepare",value:function(){this.scrollWidthPr=0,this.scrollView.style.transform="translateX(0px)",this.scrollView.style.width="0px",this.scrollViewTranslateXPr=0}},{key:"resizeHandler",value:function(){this.updateView()}},{key:"selectThumbByIndex",value:function(e){if(void 0!==e&&0!==this.itemsList.length){var t;if((this.activIndex||0===this.activIndex)&&(t=this.thumbsList[this.activIndex])&&t.select(!1),this.thumbsList[e]||this.addThumbByIndex(e),t=this.thumbsList[e]){t.select(!0);var i=this.thumbSize.width*e,o=i+this.scrollViewTranslateX,n=o+this.thumbSize.width;(o<0||n<0)&&this.renderTransformTo(r.Point(-i,0)),(o>this.view.clientWidth||n>this.view.clientWidth)&&this.renderTransformTo(r.Point(this.view.clientWidth-this.thumbSize.width-i,0)),this.scrollWidthPr>this.view.clientWidth&&(this.scrollViewTranslateX=Math.max(this.scrollViewTranslateX,-(this.scrollWidthPr-this.view.clientWidth)))}this.activIndex=e}}},{key:"updateView",value:function(){if(this.selectThumbByIndex(this.activIndex),this.view.clientWidth/this.scrollWidthPr<1){if(this.scrollViewTranslateX=this.scrollViewTranslateXPr,this.viewCompleted)return;this.scrollView.classList.add("".concat(e.classPref,"grabbable")),this.startDragHandler=this.startDrag(),r.isTouchDevice&&this.scrollView.addEventListener("touchstart",this.startDragHandler,r.passiveListener),this.scrollView.addEventListener("mousedown",this.startDragHandler,!1),this.viewCompleted=!0}else{if(this.scrollView.classList.remove("".concat(e.classPref,"grabbable")),this.scrollViewTranslateX=(this.view.clientWidth-this.scrollWidthPr)/2,!this.viewCompleted)return;r.isTouchDevice&&this.scrollView.removeEventListener("touchstart",this.startDragHandler,r.passiveListener),this.scrollView.removeEventListener("mousedown",this.startDragHandler,!1),this.viewCompleted=!1}}},{key:"renderTransformTo",value:function(e){var t=this;r.cancelAnimationFrame(t.animationRender);var i=0,o=.2,n=.1;t.animationRender=requestAnimationFrame((function a(){i=i*o+(e.x-t.scrollViewTranslateX)*n,t.scrollViewTranslateX+=i,Math.abs(i)<.04?(cancelAnimationFrame(t.animationRender),t.scrollViewTranslateX=e.x):t.animationRender=requestAnimationFrame(a)}))}},{key:"startDrag",value:function(){var e,t,i=this,o=5*i.speedX,n=0,a=0,s=.95,l=1;function c(){return-i.scrollWidthPr+i.view.clientWidth}function h(){if(i.scrollViewTranslateX>0?o=.2*o+.1*(0-i.scrollViewTranslateX):i.scrollViewTranslateX<c()?o=.2*o+.1*(c()-i.scrollViewTranslateX):o*=s,i.scrollViewTranslateX+=o,Math.abs(o)<.4){r.cancelAnimationFrame(i.animationRender),i.speedX=o;var e=o<0?Math.max(Math.ceil(-i.scrollViewTranslateXPr/i.thumbSize.width),0):Math.max(Math.floor(-i.scrollViewTranslateXPr/i.thumbSize.width),0);i.renderTransformTo(r.Point(Math.max(c(),-e*i.thumbSize.width),0))}else i.animationRender=requestAnimationFrame(h)}function d(s){var r;s.preventDefault(),r=s.touches&&s.touches[0]?s.touches[0].pageX:s.pageX;var c=e-r;Math.abs(c)>4&&(i.dragging=!0),i.scrollViewTranslateX=t-c,n=a,a=i.scrollViewTranslateX,o=(a-n)*l}function p(e){e.preventDefault(),i.scrollView.style.transition=null,r.isTouchDevice&&(document.removeEventListener("touchmove",d,r.passiveListener),document.removeEventListener("touchend",p,r.passiveListener),document.removeEventListener("touchcancel",p,!1)),document.removeEventListener("mousemove",d,!1),document.removeEventListener("mouseup",p,!1),document.removeEventListener("oncontextmenu",p,!1),(0!==o||i.scrollViewTranslateX>0||i.scrollViewTranslateX<c())&&(i.animationRender=requestAnimationFrame(h)),i.dragging=!1}return function(n){if(!n)return o=0,t=i.scrollViewTranslateX,void r.cancelAnimationFrame(i.animationRender);var s;(r.isTtouchDevice||n.preventDefault(),n.button&&0!==n.button)||(o=0,a=i.scrollViewTranslateX,s=n.touches&&n.touches[0]?n.touches[0].pageX:n.pageX,e=s,t=i.scrollViewTranslateX,r.cancelAnimationFrame(i.animationRender),r.isTouchDevice&&(document.addEventListener("touchmove",d,r.passiveListener),document.addEventListener("touchend",p,r.passiveListener),document.addEventListener("touchcancel",p,!1)),document.addEventListener("mousemove",d,!1),document.addEventListener("mouseup",p,!1),document.addEventListener("oncontextmenu",p,!1))}}},{key:"size",set:function(e){var t=Math.floor(e.width/this.thumbSize.width);if(t<3)this.view.style.width="0";else{var i=Math.min(t,this.itemsList.length)*this.thumbSize.width;this.view.style.width="".concat(i,"px"),e.height&&(this.view.style.height="".concat(this.thumbSize.height,"px")),this.resizeHandler()}}},{key:"scrollViewTranslateX",set:function(e){if(this.scrollViewTranslateXPr=e,this.scrollView.style.transform="translateX(".concat(e,"px)"),this.itemsList.length!==this.itemsInStageCount)for(var t=Math.max(Math.floor(-e/this.thumbSize.width),0),i=Math.min(t+Math.ceil(this.view.clientWidth/this.thumbSize.width),this.itemsList.length-1),o=t;o<=i;o+=1)this.addThumbByIndex(o)},get:function(){return this.scrollViewTranslateXPr}}]),e}(),x=i(2),k=i.n(x);function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function S(e,t,i){return t&&T(e.prototype,t),i&&T(e,i),e}var _=function(){function e(t){E(this,e),this.delegate=t,this.item=void 0,this.id=void 0,this.appName=t.appName,this.itemIndex=void 0,this.iconSet=t.iconSet,this.positionIndex=0,this.view=document.createElement("div"),this.view.className="".concat(e.classPref,"view"),this.itemInner=document.createElement("div"),this.itemInner.className="".concat(e.classPref,"inner"),this.view.appendChild(this.itemInner),this.iconHolder=document.createElement("div"),this.iconHolder.className="".concat(e.classPref,"icon-holder"),this.preloader=r.createPreloaderView(this.delegate.config.sl_preloaderColor),this.preloader.style.display="none",this.view.appendChild(this.preloader),this.view.appendChild(this.iconHolder),this.size=r.Size(0,0),this.imgSize=r.Size(0,0),this.imageFramePr=r.Rect(0,0,0,0),this.imageFrameFF=r.Rect(0,0,0,0),this.imageScaledFF=!1,this.width=0,this.height=0,this.maxXoffset=0,this.maxYoffset=0,this.MaxScale=4,this.imgScale=1,this.imgScaleFF=1,this.scale=1,this.newScale=1,this.newScaleMW=1,this.viewTranslatePr=r.Point(0,0),this.origin=r.Point(0,0),this.boundingBox=void 0,this.boundingBoxScale=void 0,this.animaSliderRender=void 0,this.speedX=0,this.speedY=0,this.oldX=0,this.newX=0,this.oldY=0,this.newY=0,this.draging=!1,this.isBlockDraging=!1,this.isBlockDragingMem=!1,this.startScale=void 0,this.startGlobalPoint=void 0,this.startDistForZoom=void 0}return S(e,null,[{key:"classPref",get:function(){var e=k.a.classPrefPage;return e.substring(e.lastIndexOf(".")+1,e.lastIndexOf('"'))}}]),S(e,[{key:"initByItem",value:function(e){if(this.id!==e.ID){var t=this;switch(this.item=e,this.id=e.ID,1!==this.scale&&(this.scale=1,this.viewTranslate=r.Point(0,0)),this.itemInner.firstChild&&this.itemInner.removeChild(this.itemInner.firstChild),this.itemInner.appendChild(e.webView),this.itemImg=e.webView,e.webView.complete?(this.imgSize.width=this.itemImg.naturalWidth,this.imgSize.height=this.itemImg.naturalHeight,this.isInScale&&this.normalize(),this.fit(!1)):(this.preloader.style.display="block",e.webView.addEventListener("load",(function(){t.preloader.style.display="none",t.imgSize.width=this.naturalWidth,t.imgSize.height=this.naturalHeight,t.isInScale&&t.normalize(),t.fit(!1)}),!1)),e.type){case"audio":this.iconHolder.innerHTML=this.iconSet.NOTE_SVG,this.view.classList.add("info-icon");break;case"video":this.view.classList.add("info-icon"),this.iconHolder.innerHTML=this.iconSet.PLAY_SVG,this.iconHolder.firstChild.style.marginLeft="7px";break;default:this.view.classList.remove("info-icon")}}}},{key:"resize",value:function(e){this.size=e,this.posX=this.positionIndex,this.isInScale&&this.normalize(),this.fit(!0)}},{key:"fit",value:function(){if(this.itemImg){var e=this.delegate.config.sl_xOffset,t=0,i=r.getFrameForBoxWithMode(this.imgSize,r.Size(this.size.width-2*e,this.size.height-2*t),!1,!1);i.x+=e,i.y+=t,this.imageFrameFF=i,t=this.delegate.config.sl_yOffset,(i=r.getFrameForBoxWithMode(this.imgSize,r.Size(this.size.width-2*e,this.size.height-2*t),!1,!1)).x+=e,i.y+=t,this.imageFrameNF=i,this.imgScale=Math.min(this.imgSize.width/i.width,this.MaxScale),this.imgScaleFF=this.imageFrameFF.height/i.height,"video"!==this.item.type&&(this.delegate.FF_Mode?(this.imageFrame=this.imageFrameFF,i=this.imageFrameFF,this.imageScaledFF=!0):(this.imageFrame=this.imageFrameNF,i=this.imageFrameNF,this.imageScaledFF=!1)),this.item.webImgFrame.x!==i.x||this.item.webImgFrame.y!==i.y||this.item.webImgFrame.width!==i.width||this.item.webImgFrame.height!==i.height?(this.imageFrame=i,this.item.webImgFrame=i):this.imageFramePr=i,this.videoWrap&&(this.videoWrapFrame=i)}}},{key:"checkOffset",value:function(e,t){var i=this.imageScaledFF?this.imageFrameFF:this.imageFrame;if(t!==this.boundingBoxScale){var o=i.width*(t||1),n=i.height*(t||1),a=i.x*(t||1),s=i.y*(t||1);this.boundingBox={left:o>this.size.width?-a:(this.size.width-this.size.width*t)/2,top:n>this.size.height?-s:(this.size.height-this.size.height*t)/2,right:o>this.size.width?this.size.width-(a+o):(this.size.width-this.size.width*t)/2,bottom:n>this.size.height?this.size.height-(s+n):(this.size.height-this.size.height*t)/2},this.boundingBoxScale=t}var l=e.x>this.boundingBox.left?this.boundingBox.left:e.x;l=l<this.boundingBox.right?this.boundingBox.right:l;var c=e.y>this.boundingBox.top?this.boundingBox.top:e.y;return c=c<this.boundingBox.bottom?this.boundingBox.bottom:c,r.Point(l,c)}},{key:"isPointInItem",value:function(e){var t=this.viewTranslate.x+this.size.width/2*this.newScale-this.imageFrame.width/2*this.newScale,i=t+this.imageFrame.width*this.newScale,o=this.size.height/2*this.newScale+this.viewTranslate.y-this.imageFrame.height/2*this.newScale*this.newScale,n=o+this.imageFrame.height*this.scale*this.newScale;return e.x>t&&e.x<i&&e.y>o&&e.y<n}},{key:"normalize",value:function(e){r.cancelAnimationFrame(this.animaSliderRender),e?this.renderTransformTo(r.Point(0,0),1):(this.scale=1,this.newScale=1,this.newScaleMW=1,this.viewTranslate=r.Point(0,0),this.origin=r.Point(0,0))}},{key:"zoomIn",value:function(e,t){if("audio"!==this.item.type&&"video"!==this.item.type){r.cancelAnimationFrame(this.animaSliderRender);var i=t.x-this.viewTranslate.x,o=t.y-this.viewTranslate.y,n=i/this.scale,a=o/this.scale,s=t.x-n*e,l=t.y-a*e,c=r.Point(s,l);this.renderTransformTo(this.checkOffset(c,e),e)}}},{key:"zoomByScaleIter",value:function(e,t){if("audio"!==this.item.type&&"video"!==this.item.type){var i=e<0?1.065:.935;r.cancelAnimationFrame(this.animaSliderRender),this.newScale*i>this.MaxScale&&(i=this.MaxScale/this.newScale),this.newScale*i<1&&(i=1/this.newScale),this.newScale*=i,this.origin=r.Point(t.x-i*(t.x-this.origin.x),t.y-i*(t.y-this.origin.y)),this.renderTransformTo(this.checkOffset(this.origin,this.newScale),this.newScale)}}},{key:"zoomByScaleDeltaToPoint",value:function(e,t){if("audio"!==this.item.type&&"video"!==this.item.type){var i;r.cancelAnimationFrame(this.animaSliderRender);var o=e/this.startDistForZoom,n=0;(i=this.startDistForZoom/this.startScale*o/(this.startDistForZoom/this.startScale)*this.startScale)>this.MaxScale&&(n=.8*-(i-this.MaxScale)),i+=n;var a=this.startGlobalPoint.x-this.startTranslate.x,s=this.startGlobalPoint.y-this.startTranslate.y,l=a/this.newScale,c=s/this.newScale,h=this.startGlobalPoint.x-l*i,d=this.startGlobalPoint.y-c*i,p=r.Point(h-t.x,d-t.y);this.scale=i,this.newScale=i,this.viewTranslate=p,this.startTranslate=r.Point(h,d)}}},{key:"renderTransformTo",value:function(e,t){var i=this;r.cancelAnimationFrame(i.animaSliderRender),this.origin=e,this.newScale=t;var o=0,n=0,a=0,s=.05,l=.1;i.animaSliderRender=r.requestAnimationFrame((function c(){o=o*s+(e.x-i.viewTranslate.x)*l,n=n*s+(e.y-i.viewTranslate.y)*l,t&&(a=a*s+.1*(t-i.scale));var h=i.viewTranslate.x;h+=o;var d=i.viewTranslate.y;d+=n,t&&(i.scale+=a),i.viewTranslate=r.Point(h,d),Math.abs(o)<.02&&Math.abs(n)<.02&&Math.abs(a)<.02?(r.cancelAnimationFrame(i.animaSliderRender),t&&(i.scale=t),i.viewTranslate=r.Point(e.x,e.y)):i.animaSliderRender=r.requestAnimationFrame(c)}))}},{key:"renderGlidingTransform",value:function(){var e=this;r.cancelAnimationFrame(e.animaSliderRender);var t=.95,i=.95;e.animaSliderRender=r.requestAnimationFrame((function o(){e.speedX*=t,e.speedY*=i;var n=e.viewTranslate.x;n+=e.speedX;var a=e.viewTranslate.y;if(a+=e.speedY,n>e.boundingBox.left||n<e.boundingBox.right){e.speedX*=-1;var s=n<e.boundingBox.right?e.boundingBox.right:n;n=n>e.boundingBox.left?e.boundingBox.left:s,n+=e.speedX,t=.75}if(a>e.boundingBox.top||a<e.boundingBox.bottom){e.speedY*=-1;var l=a<e.boundingBox.bottom?e.boundingBox.bottom:a;a=a>e.boundingBox.top?e.boundingBox.top:l,a+=e.speedY,i=.75}e.origin=r.Point(n,a),e.viewTranslate=r.Point(n,a),Math.abs(e.speedX)<.02&&Math.abs(e.speedY)<.02?(r.cancelAnimationFrame(e.animaSliderRender),e.speedX=0,e.speedY=0):e.animaSliderRender=r.requestAnimationFrame(o)}))}},{key:"renderStretchstretchTransform",value:function(){var e=this;r.cancelAnimationFrame(e.animaSliderRender);var t=this.checkOffset(r.Point(e.viewTranslate.x+e.speedX,e.viewTranslate.y+e.speedY),e.scale),i=.2,o=.15,n=0,a=0;e.animaSliderRender=r.requestAnimationFrame((function s(){n=n*i+(t.x-e.viewTranslate.x)*o,a=a*i+(t.y-e.viewTranslate.y)*o;var l=e.viewTranslate.x+n,c=e.viewTranslate.y+a;e.viewTranslate=r.Point(l,c),Math.abs(n)<.02&&Math.abs(a)<.02?(r.cancelAnimationFrame(e.animaSliderRender),e.viewTranslate=t):e.animaSliderRender=r.requestAnimationFrame(s)}))}},{key:"startDrag",value:function(e,t){r.cancelAnimationFrame(this.animaSliderRender),"audio"!==this.item.type&&"video"!==this.item.type&&(this.startDistForZoom=t,this.startGlobalPoint=e,this.startTranslate=this.viewTranslate,this.speedX=0,this.speedY=0,this.newX=this.viewTranslate.x,this.newY=this.viewTranslate.y,this.startScale=this.scale)}},{key:"stopDrag",value:function(){if("audio"!==this.item.type&&"video"!==this.item.type){if(this.isInScale)if(this.scale<1)this.normalize(!0);else if(this.scale>this.MaxScale)this.zoomIn(this.MaxScale,this.startGlobalPoint);else{var e=this.checkOffset(this.origin,this.newScale);this.isBlockDraging=e.x!==this.origin.x||e.y!==this.origin.y,this.isBlockDraging&&this.renderStretchstretchTransform()}this.draging&&(this.isBlockDraging?this.renderStretchstretchTransform():this.renderGlidingTransform(),this.draging=!1)}}},{key:"dragin",value:function(e){if("audio"===this.item.type||"video"===this.item.type)return!1;var t=this.startTranslate.x-e.x,i=this.startTranslate.y-e.y,o=this.checkOffset(r.Point(t,i),this.newScale);this.isBlockDraging=o.x!==t||o.y!==i,t-=.7*(t-o.x),i-=.7*(i-o.y);return this.oldX=this.newX,this.newX=t,this.speedX=.7*(this.newX-this.oldX),this.oldY=this.newY,this.newY=i,this.speedY=.7*(this.newY-this.oldY),this.origin=r.Point(t,i),this.viewTranslate=r.Point(t,i),this.draging=!0,!0}},{key:"action",value:function(e){if(this.item)switch(e){case"click":if("video"===this.item.type)return this.videoWrap?(this.removeVideoContent(),"videoStop"):(this.view.classList.add("video-play"),this.view.classList.remove("info-icon"),this.addVideoContent(),"videoPlay");if("audio"===this.item.type)return this.tryPlayOrPauseMp3(),"audioPlay";break;case"removeSubContent":if("video"===this.item.type)return this.removeVideoContent(),"videoStop";"audio"===this.item.type&&this.audioPlayer&&!this.audioPlayer.paused&&(this.audioPlayer.pause(),this.iconHolder.firstChild.classList.remove("pgc-rev-wrap-rotate"));break;default:return}}},{key:"addVideoContent",value:function(){var e=this.item.mime_type.split("/")[1];if(e)switch(this.videoWrap||(this.videoWrap=document.createElement("div"),this.videoWrap.className="video-wrap",this.videoWrapFrame=this.imageFrame,this.itemInner.appendChild(this.videoWrap)),e){case"youtube":this.videoWrap.innerHTML=r.youTubeCode.replace("%id%",this.item.videoId);break;case"vimeo":this.videoWrap.innerHTML=r.vimeoCode.replace("%id%",this.item.videoId)}}},{key:"removeVideoContent",value:function(){this.videoWrap&&(this.view.classList.remove("video-play"),this.videoWrap.parentNode&&this.videoWrap.parentNode.removeChild(this.videoWrap),this.videoWrap=void 0,this.view.classList.remove("video-play"),"image"!==this.item.type&&this.view.classList.add("info-icon"))}},{key:"tryPlayOrPauseMp3",value:function(){"audio"===this.item.type&&this.delegate.config.sl_audioPlayer&&(this.audioPlayer=this.delegate.config.sl_audioPlayer,this.audioPlayer.src===this.item.url?this.audioPlayer.paused?(this.audioPlayer.play(),this.iconHolder.firstChild.classList.add("pgc-rev-wrap-rotate")):(this.audioPlayer.pause(),this.iconHolder.firstChild.classList.remove("pgc-rev-wrap-rotate")):(this.audioPlayer.src=this.item.url,this.audioPlayer.play(),this.iconHolder.firstChild.classList.add("pgc-rev-wrap-rotate")))}},{key:"posX",set:function(e){this.view.style.left="".concat(this.size.width*e,"px"),this.positionIndex=e}},{key:"imageFrame",set:function(e){this.itemImg.style.left="".concat(e.x,"px"),this.itemImg.style.top="".concat(e.y,"px"),this.itemImg.style.width="".concat(e.width,"px"),this.itemImg.style.height="".concat(e.height,"px"),this.imageFramePr=e},get:function(){return this.imageFramePr}},{key:"videoWrapFrame",set:function(e){this.videoWrap.style.width="".concat(e.width,"px"),this.videoWrap.style.height="".concat(e.height,"px"),this.videoWrap.style.left="".concat(e.x,"px"),this.videoWrap.style.top="".concat(e.y,"px")}},{key:"isInScale",get:function(){return 1!==this.newScale||0!==this.origin.x||0!==this.origin.y}},{key:"viewTranslate",set:function(e){this.viewTranslatePr=e,this.itemInner.style.transform="matrix(".concat(this.scale,", 0, 0, \n ").concat(this.scale,", ").concat(e.x,", ").concat(e.y,")")},get:function(){return this.viewTranslatePr}},{key:"isSubContentActiv",get:function(){return!!this.videoWrap}}]),e}(),I=function(){function e(t,i){E(this,e),this.iconSet=e.ICONS,this.config=e.CONFIG,r.copyProperties(i,this.config),this.appSet=t,this.appName=t.appName,this.cacherItemsList=this.appSet.cacheItemsList,this.id="".concat(this.appName,"_vitSlider_"),this.itemsList=void 0,this.visibleBounds=r.Rect(0,0,0,0),this.isControllsShow=!1,this.isZooming=!1,this.needHideControlls=!1,this.naviButtonsStatus=void 0,this.firsrTap=void 0,this.removing=!1,this.createlayoutDelay=void 0,this.intitByTermDelay=void 0,this.view=document.createElement("div"),this.view.className="".concat(e.classPref,"view"),this.view.id="".concat(this.id,"main"),this.resizeDelay=void 0,this.size=r.Size(0,0);var o=document.createElement("div");o.className="".concat(e.classPref,"bg"),this.config.sl_backgroundColor&&(this.background=o,this.background.style.backgroundColor=this.config.sl_backgroundColor,this.view.appendChild(o)),this.sliderPages=[],this.dragging=!1,this.zoomingDrag=!1,this.speedX=0,this.speedY=0,this.scrollViewTranslateXPr=0,this.scrollViewTranslateYPr=0,this.startDragHandler=void 0,this.currentItemIndex=void 0,this.startItemIndex=0,this.items=[],this.itemsAmount=0,this.itemNumPr=void 0,this.pageInFocus=void 0,this.pageInFocusPrev=void 0,this.zoomingPage=void 0,this.FF_Mode=!1,this.mouseWheelMode=!1,this.animaSliderRender=void 0,this.slider=document.createElement("div"),this.slider.className="".concat(e.classPref,"wrap"),this.view.appendChild(this.slider)}return S(e,null,[{key:"classPref",get:function(){var e=k.a.classPref;return e.substring(e.lastIndexOf(".")+1,e.lastIndexOf('"'))}},{key:"ICONS",get:function(){return{PLAY_SVG:'<svg version="1.1" viewBox="0 0 50 60" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path d="M48.479,27.435L5.672,0.915C2.553-1.132,0,0.374,0,4.261v51.48c0,3.885,2.553,5.391,5.672,3.346l42.807-26.52 c0,0,1.521-1.07,1.521-2.566S48.479,27.435,48.479,27.435z"/></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></svg>',NOTE_SVG:'<svg version="1.1" viewBox="0 0 58 94" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path d="M37.992,0h-8.021v65.358c-4.435-1.706-10.174-1.73-15.835,0.328C3.994,69.377-2.049,78.355,0.638,85.736 c2.688,7.383,13.088,10.374,23.229,6.683c8.614-3.134,14.249-10.082,14.111-16.626l0.014-53.451 c13.986,2.204,14.943,19.884,13.268,24.842c-0.636,1.879,0.484,3.286,2.598,0C68.938,23.726,37.992,13.376,37.992,0z"/></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></svg>',NEXT_ARR:'<svg height="512px" id="Layer_1" style="enable-background:new 0 0 512 512;" version="1.1" viewBox="0 0 512 512" width="512px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><polygon points="160,115.4 180.7,96 352,256 180.7,416 160,396.7 310.5,256 "/></svg>',PREV_ARR:'<svg height="512px" id="Layer_1" style="enable-background:new 0 0 512 512;" version="1.1" viewBox="0 0 512 512" width="512px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><polygon points="352,115.4 331.3,96 160,256 331.3,416 352,396.7 201.5,256 "/></svg>'}}},{key:"EVENTS",get:function(){return{COLLECTION_DATA_REDY:"COLLECTION_DATA_REDY",UPDATE_CONTROLS:"UPDATE_CONTROLS",ZOOM:"ZOOM",REMOVE_LIGHTBOX:"REMOVE_LIGHTBOX"}}},{key:"CONFIG",get:function(){return{sl_preloaderColor:"#494949",sl_backgroundColor:"rgba(0,0,0,1)",sl_navigationIconColor:"rgba(255,255,255,1)",sl_navigationIconColorOver:"rgba(0,0,0,0.8)",sl_navigationColor:"rgba(0,0,0,0.8)",sl_navigationColorOver:"rgba(255,255,255,1)",sl_zoom:!1,sl_mouseWheel:!1,sl_fit:!1,sl_xOffset:2,sl_yOffset:0,sl_canRemoved:!1,sl_copyR_Alert:"Hello, this photo is mine!",sl_copyR_Proptection:!0,sl_audioPlayer:void 0,sl_mouseWheelPagination:!1}}}]),S(e,[{key:"copyRight",value:function(){var t,i=this;return function(o){if(!r.Device.ios||"mouseup"!==o.type){var n,a;o.changedTouches&&o.changedTouches[0]?(n=o.changedTouches[0].pageX,a=o.changedTouches[0].pageY):(n=o.pageX,a=o.pageY),n-=i.viewOfsetX,a-=i.viewOfsetY;var s=i.itemsList[i.itemIndex];if(s.webView&&s.webView===o.target){o.preventDefault();var l=document.getElementById("gm_copyr");l&&(clearTimeout(t),l.parentNode.removeChild(l),l=null),(l=document.createElement("div")).id="gm_copyr",l.className="".concat(e.classPref,"hints"),l.innerHTML=s.user&&s.user.displayname?"Hey, this photo is ©".concat(s.user.displayname):i.config.sl_copyR_Alert,l.style.top="".concat(a,"px"),l.style.left="".concat(n,"px"),i.view.appendChild(l),t=setTimeout((function(){l.parentNode.removeChild(l)}),1e3)}}}}},{key:"initByStage",value:function(e){e.appendChild(this.view),this.config.sl_copyR_Proptection&&(this.copyR=this.copyRight(),document.addEventListener("contextmenu",this.copyR,!1)),this.createControlls()}},{key:"addToStage",value:function(){var t=this,i=document.getElementsByTagName("body")[0];this.view.style.zIndex=r.findHighestZIndex(i)+1,r.disableBodyScrollSlider(),this.config.sl_copyR_Proptection&&document.addEventListener("contextmenu",t.copyR,!1),i.appendChild(this.view),setTimeout((function(){t.view.classList.add("".concat(e.classPref,"activate"))}),30)}},{key:"initByList",value:function(e,t){if(e&&e.length>0){var i=this;this.currentItemIndex=t&&0!==t?0:void 0,this.startItemIndex=t||0,this.itemsList=e,this.createlayoutDelay=setTimeout((function(){i.createLayout()}),100)}}},{key:"prepareToRemove",value:function(){if(!this.removing){clearTimeout(this.createlayoutDelay),clearTimeout(this.intitByTermDelay);var t=this.scrollViewTranslateY/(this.size.height/2);this.pageInFocus&&this.pageInFocus.isSubContentActiv&&t<.2?"videoStop"===this.pageInFocus.action("click")&&(this.switchShowControlls(),this.needHideControlls=!this.isControllsShow):(this.removing=!0,this.cacherItemsList.init(),this.appSet.appEventManager.removeGMEventListener(e.EVENTS.COLLECTION_DATA_REDY,this,"dataLoaded"),this.view.removeEventListener("wheel",this.handlerMWheel,!1),this.config.sl_copyR_Proptection&&document.removeEventListener("contextmenu",this.copyR,!1),this.config.sl_audioPlayer&&this.config.sl_audioPlayer.pause(),this.appSet.appEventManager.dispatchGMEvent(r.GMEvent(e.EVENTS.REMOVE_LIGHTBOX,this,{})))}}},{key:"remoteControl",value:function(t){if(this.startDragHandler||"esc"===t)switch(t){case"prev":this.appSet.appEventManager.dispatchGMEvent(r.GMEvent(e.EVENTS.UPDATE_CONTROLS,this,{draging:!0})),this.gotoPrev();break;case"next":this.appSet.appEventManager.dispatchGMEvent(r.GMEvent(e.EVENTS.UPDATE_CONTROLS,this,{draging:!0})),this.gotoNext();break;case"space":this.firstClick(r.Point(this.view.clientWidth/2,this.view.clientHeight/2));break;case"esc":this.prepareToRemove();break;case"zoom":this.zoomSwitch()}}},{key:"showPreloader",value:function(e){var t;if(e){if(document.getElementById("".concat(this.appName,"slider_preloader")))return;(t=r.createPreloaderView(this.config.sl_preloaderColor)).id="".concat(this.appName,"slider_preloader"),this.view.appendChild(t)}else(t=document.getElementById("".concat(this.appName,"slider_preloader")))&&r.fadeOut(t,(function(){t&&t.parentNode&&t.parentNode.removeChild(t)}),500)}},{key:"createLayout",value:function(){var t=this;this.itemsAmount=this.itemsList.length,this.size=r.Size(this.view.clientWidth,this.view.clientHeight),r.miniScreen&&this.slider.classList.add("miniScreen"),this.size.width<500&&(this.prevButton.classList.add("next-prev-button-mini-screen"),this.nextButton.classList.add("next-prev-button-mini-screen")),this.initSlider(),this.size.height<700&&this.slider.classList.add("miniScreen"),this.view.addEventListener("wheel",this.mouseWheelHandler(),!1),setTimeout((function(){t.showControlls(!0),t.appSet.appEventManager.dispatchGMEvent(r.GMEvent(e.EVENTS.UPDATE_CONTROLS,t,{status:"ready"}))}),500)}},{key:"initSlider",value:function(){var e,t=0;if(0===this.sliderPages.length)for(t=0;t<3;t+=1)e=this.pageConstructor,this.slider.appendChild(e.view),this.sliderPages.push(e),e.resize(this.size);var i=this.itemsAmount>2?-1:0;for(t=0;t<3;t+=1)(e=this.sliderPages[t]).posX=i,e.itemIndex=void 0,i+=1;this.startDragHandler?this.gotoPageByNum(0):(this.startDragHandler=this.startDrag(),r.isTouchDevice&&(this.slider.addEventListener("touchstart",this.startDragHandler,r.passiveListener),window.addEventListener("touchmove",(function(){}),r.passiveListener)),this.slider.addEventListener("mousedown",this.startDragHandler,!1),this.gotoPageByNum(this.startItemIndex))}},{key:"sliderVerticalRender",value:function(){var t=1-Math.abs(this.scrollViewTranslateY)/(this.size.height/2);this.background&&(this.background.style.opacity=t),this.appSet.appEventManager.dispatchGMEvent(r.GMEvent(e.EVENTS.UPDATE_CONTROLS,this,{backgroundOpacity:t})),this.needHideControlls||(t<.8?(this.showHideNaviButton("hide"),this.showControlls(!1)):(this.showHideNaviButton("show"),this.showControlls(!0)))}},{key:"tryOpenItemID",value:function(e){for(var t=0;t<this.itemsList.length;t+=1){if(this.itemsList[t].ID===e)return this.gotoPageByNum(t),!0}return!1}},{key:"gotoPageByNum",value:function(e){if((this.itemIndex||0===this.itemIndex)&&this.currentItemIndex){var t=this.itemIndex-e;this.gotoPageByIndex(this.currentItemIndex-t)}else this.gotoPageByIndex(e,!0)}},{key:"gotoNext",value:function(){this.gotoPageByIndex(this.currentItemIndex+1)}},{key:"gotoPrev",value:function(){this.gotoPageByIndex(this.currentItemIndex-1)}},{key:"renderTransformTo",value:function(e){var t=this;r.cancelAnimationFrame(t.animaSliderRender);var i=5*t.speedX,o=5*t.speedY,n=.2,a=.15;t.animaSliderRender=r.requestAnimationFrame((function s(){i=i*n+(e.x-t.scrollViewTranslateX)*a,o=o*n+(e.y-t.scrollViewTranslateY)*a,t.scrollViewTranslateX+=i,t.scrollViewTranslateY+=o,Math.abs(i)<1&&Math.abs(o)<1&&(t.dragging=!1),Math.abs(i)<.1&&Math.abs(o)<.1?(r.cancelAnimationFrame(t.animaSliderRender),t.scrollViewTranslateX=e.x,t.scrollViewTranslateY=e.y,t.sliderTransitionComplete({target:t.slider})):t.animaSliderRender=r.requestAnimationFrame(s)}))}},{key:"gotoPageByIndex",value:function(e,t){this.itemsAmount<3&&(e=Math.max(0,e),e=Math.min(this.itemsAmount-1,e)),Math.abs(this.currentItemIndex-e)>2&&(t=!0);var i=-e*this.size.width;t?(this.scrollViewTranslateX=i,this.sliderTransitionComplete({target:this.slider})):this.renderTransformTo(r.Point(i,this.scrollViewTranslateY))}},{key:"pageRenderByIndex",value:function(e){if(this.currentItemIndex!==e){void 0!==this.pageInFocus&&(this.pageInFocusPrev=this.pageInFocus,this.pageInFocus.isInScale&&(this.zoomingPage=this.pageInFocus));var t=0;if(this.itemsAmount<3){for(t=0;t<this.itemsAmount;t+=1)this.sliderPages[t].initByItem(this.itemsList[t]);return this.pageInFocus=this.sliderPages[e],this.currentItemIndex=e,void(this.itemIndex=e)}var i=(e+1)%3;i<0&&(i+=3);var o=i-1>=0?i-1:2,n=i+1<3?i+1:0,a=[o,i,n],s=[e-1,e,e+1];for(t=0;t<a.length;t+=1){this.sliderPages[a[t]].posX=s[t]}this.currentItemIndex=e,this.pageInFocus=this.sliderPages[i],this.itemIndex=e<0?this.itemsAmount+(e%this.itemsAmount==0?-this.itemsAmount:e%this.itemsAmount):e%this.itemsAmount,this.sliderPages[i].initByItem(this.itemsList[this.itemIndex]),this.sliderPages[n].initByItem(this.itemIndex+1<this.itemsAmount?this.itemsList[this.itemIndex+1]:this.itemsList[0]),this.sliderPages[o].initByItem(this.itemIndex-1<0?this.itemsList[this.itemsAmount-1]:this.itemsList[this.itemIndex-1])}}},{key:"sliderTransitionComplete",value:function(e){if(e.target===this.slider){var t=this.cacherItemsList.status();(t.list!==this.itemsList||t.list===this.itemsList&&this.itemIndex>=t.index)&&this.cacherItemsList.init(this.itemsList,this.itemIndex,5),void 0!==this.pageInFocusPrev&&this.pageInFocusPrev.action("removeSubContent"),void 0!==this.zoomingPage&&this.zoomingPage!==this.pageInFocus&&this.zoomingPage.normalize()}}},{key:"mouseWheelHandler",value:function(){var t,i=this,o=0,n=0,a=Date.now(),s=[],l=[],c=400,h=0;return i.handlerMWheel=function(d){if(d.stopPropagation(),d.preventDefault(),!1!==i.mouseWheelMode||!1!==i.config.sl_mouseWheelPagination){var p=r.Point(0,0);if("deltaX"in d)1===d.deltaMode?(p.x=18*d.deltaX,p.y=18*d.deltaY):(p.x=d.deltaX,p.y=d.deltaY);else if("wheelDelta"in d)d.wheelDeltaX&&(p.x=-.16*d.wheelDeltaX),d.wheelDeltaY?p.y=-.16*d.wheelDeltaY:p.y=-.16*d.wheelDelta;else{if(!("detail"in d))return;p.y=d.detail}if(i.config.sl_mouseWheelPagination){var m=Math.abs(p.y)>Math.abs(p.x)?p.y:p.x,u=Date.now();0===s.length&&s.push(u),u-s[0]<c?(l.length>0&&l[l.length-1]!==m&&(h+=1),l.push(m),s.push(u)):(c=h>3?1100:300,l=[],s=[],h=0),u-a>c&&(m>0?i.gotoNext():i.gotoPrev(),i.appSet.appEventManager.dispatchGMEvent(r.GMEvent(e.EVENTS.UPDATE_CONTROLS,i,{draging:!0})),a=u)}else{var g=i.size.width/2,v=i.size.height/2;if(d.pageX&&(g=d.pageX,v=d.pageY),g-=i.viewOfsetX,v-=i.viewOfsetY,i.dragging)return;t!==i.pageInFocus&&(t=void 0),i.zoomingPage&&i.zoomingPage!==i.pageInFocus&&(i.zoomingPage.normalize(),i.zoomingPage=void 0),t?i.showControlls(!i.needHideControlls):(t=i.pageInFocus,i.zoomingPage=i.pageInFocus,t.isInScale||(i.needHideControlls=!i.isControllsShow)),g===o&&v===n||(t.startDrag(r.Point(g,v)),o=g,n=v),i.zoomControll(),t.zoomByScaleIter(p.y,r.Point(g,v)),t.isInScale?i.showControlls(!1):t=void 0}}},i.handlerMWheel}},{key:"zoomSwitch",value:function(){var e=r.Point(this.view.clientWidth/2,this.view.clientHeight/2);this.secondClick(e)}},{key:"fitMode",value:function(e){this.config.sl_fit&&(this.FF_Mode=e);for(var t=0;t<this.sliderPages.length;t+=1)this.sliderPages[t].fit(!0)}},{key:"firstClick",value:function(e){if(this.pageInFocus.isPointInItem(e)||r.miniScreen)if(this.pageInFocus.isInScale)this.pageInFocus.normalize(!0),this.zoomingPage=void 0,this.showControlls(!this.needHideControlls);else switch(this.pageInFocus.action("click")){case"audioPlay":break;case"videoPlay":this.showControlls(!1),this.needHideControlls=!this.isControllsShow;break;case"videoStop":this.switchShowControlls(),this.needHideControlls=!this.isControllsShow;break;default:this.fitMode(this.isControllsShow),this.switchShowControlls(),this.needHideControlls=!this.isControllsShow}else this.config.sl_canRemoved?this.prepareToRemove():this.config.sl_canRemoved||this.pageInFocus&&this.pageInFocus.isSubContentActiv&&"videoStop"===this.pageInFocus.action("click")&&(this.switchShowControlls(),this.needHideControlls=!this.isControllsShow)}},{key:"secondClick",value:function(e){this.config.sl_zoom&&this.pageInFocus.isPointInItem(e)&&(this.pageInFocus.isInScale?(this.pageInFocus.normalize(!0),this.zoomingPage=void 0,this.showControlls(!this.needHideControlls)):(this.zoomingPage&&this.zoomingPage.normalize(),this.zoomingPage=this.pageInFocus,this.zoomingPage.zoomIn(Math.abs(this.zoomingPage.imgScale-1)<.3?1.5:this.zoomingPage.imgScale,e),this.needHideControlls=!this.isControllsShow,this.showControlls(!1)))}},{key:"doubleClickController",value:function(e){var t=this;if(!r.Device.ios||"mouseup"!==e.type){var i,o;if(e.changedTouches&&e.changedTouches[0]?(i=e.changedTouches[0].pageX,o=e.changedTouches[0].pageY):(i=e.pageX,o=e.pageY),i-=this.viewOfsetX,o-=this.viewOfsetY,this.firsrTap)return clearTimeout(this.firsrTap),this.firsrTap=void 0,void this.secondClick(r.Point(i,o));this.firsrTap=setTimeout((function(){t.firsrTap=void 0,t.firstClick(r.Point(i,o))}),400)}}},{key:"startDrag",value:function(){var t,i,o,n,a,s,l,c,h,d=this,p=4,m=!0,u=45,g=d.viewOfsetY,v=d.viewOfsetX,f=0,w=0,b=0;function y(e){var t,c,h,y,C;if(e.originalEvent&&(e=e.originalEvent),e.touches?!d.dragging&&e.touches.length>1?d.config.sl_zoom&&(l=!0,t=e.touches[0].pageX,c=e.touches[0].pageY,h=e.touches[1].pageX,y=e.touches[1].pageY,C=Math.hypot(t-h,c-y),t+=(h-t)/2,c+=(y-c)/2):(l=!1,t=e.touches[0].pageX,c=e.touches[0].pageY):(t=e.pageX,c=e.pageY),t-=v,c-=g,!(r.Device.ios&&i<=20)){var x,k;if(void 0===s)m&&c===o||!m&&t===i?s=!1:(x=180*Math.atan2(Math.abs(c-o),Math.abs(t-i))/Math.PI,s=m?x>45:90-x>u);if(!d.dragging&&d.zoomingPage){e.preventDefault();var E=Math.abs(i-t)>p?i-t:0,T=Math.abs(o-c)>p?o-c:0;return(E||T)&&(d.zoomingDrag=!0),void(l?d.pageInFocus.zoomByScaleDeltaToPoint(C,r.Point(E,T),r.Point(t,c)):d.zoomingPage&&d.zoomingPage.dragin(r.Point(E,T)))}s?(f=0,(k=Math.abs(o-c)>p?o-c:0)&&(d.dragging=!0),d.config.sl_canRemoved&&(d.scrollViewTranslateY=a-k)):(e.preventDefault(),d.transition=!0,(k=Math.abs(i-t)>p?i-t:0)&&(d.dragging=!0),d.scrollViewTranslateX=n-k,w=b,b=d.scrollViewTranslateX,f=b-w)}}function C(e){if(s=void 0,r.isTouchDevice&&(document.removeEventListener("touchmove",y,r.passiveListener),document.removeEventListener("touchend",C,r.passiveListener)),document.removeEventListener("mousemove",y,!1),document.removeEventListener("mouseup",C,!1),document.removeEventListener("contextmenu",C,!1),d.dragging||l||d.zoomingDrag){if(d.zoomingPage&&(d.zoomingPage.stopDrag(),l=!1),!d.zoomingPage)if(Math.abs(d.scrollViewTranslateY)<p){var i=d.currentItemIndex,o=r.isTouchDevice?7:1;Math.abs(f)>o&&t===d.currentItemIndex&&(i=f>0?i-1:i+1),d.speedX=f,d.scrollViewTranslateY=0,d.gotoPageByIndex(i)}else{var n=d.scrollViewTranslateY/(d.size.height/2);Math.abs(n)>.2?d.prepareToRemove():d.renderTransformTo(r.Point(d.scrollViewTranslateX,0))}this.dragging=!1}else d.doubleClickController(e);d.zoomingDrag=!1,h=e.type}return function(s){var p,m,u,x;"mousedown"===s.type&&"touchend"===h||(d.zoomingPage=d.pageInFocus.isInScale?d.pageInFocus:void 0,r.cancelAnimationFrame(d.animaSliderRender),t=d.currentItemIndex,s.originalEvent&&(s=s.originalEvent),r.isTouchDevice||s.preventDefault(),s.button&&0!==s.button||(s.touches?!d.dragging&&s.touches.length>1?(l=!0,p=s.touches[0].pageX,m=s.touches[0].pageY,u=s.touches[1].pageX,x=s.touches[1].pageY,c=Math.hypot(p-u,m-x),p+=(u-p)/2,m+=(x-m)/2,d.zoomingPage=d.pageInFocus,d.needHideControlls=d.isControllsShow,d.showControlls(!1)):(p=s.touches[0].pageX,m=s.touches[0].pageY):(p=s.pageX,m=s.pageY),p-=v,m-=g,d.speedX=0,d.speedY=0,f=0,w=0,b=d.scrollViewTranslateX,i=p,o=m,n=d.scrollViewTranslateX,a=d.scrollViewTranslateY,d.appSet.appEventManager.dispatchGMEvent(r.GMEvent(e.EVENTS.UPDATE_CONTROLS,d,{draging:!0})),d.zoomingPage&&d.zoomingPage.startDrag(r.Point(i,o),c),r.isTouchDevice&&(document.addEventListener("touchmove",y,r.passiveListener),document.addEventListener("touchend",C,r.passiveListener)),document.addEventListener("mousemove",y,!1),document.addEventListener("mouseup",C,!1),document.addEventListener("contextmenu",C,!1)))}}},{key:"createControlls",value:function(){var t=this;function i(e){e.style.backgroundColor=t.config.sl_navigationColorOver,e.childNodes[0].style.fill=t.config.sl_navigationIconColorOver}function o(e){e.style.backgroundColor=t.config.sl_navigationColor,e.childNodes[0].style.fill=t.config.sl_navigationIconColor}this.prevButton=document.createElement("div"),this.prevButton.className="".concat(e.classPref,"next-prev-button"),this.prevButton.style.left="".concat(0,"px"),this.prevButton.style.transform="translate(-150%, -50%)",this.prevButton.style.backgroundColor=t.config.sl_navigationColor,this.prevButton.style.visibility="hidden",this.prevButton.innerHTML=e.ICONS.PREV_ARR,this.prevButton.childNodes[0].style.fill=t.config.sl_navigationIconColor,this.prevButton.onmouseenter=function(){i(this)},this.prevButton.onmouseleave=function(){o(this)},this.prevButton.onclick=function(){t.appSet.appEventManager.dispatchGMEvent(r.GMEvent(e.EVENTS.UPDATE_CONTROLS,t,{draging:!0})),t.gotoPrev(),r.Device.desktop||o(this)},this.view.appendChild(this.prevButton),this.nextButton=document.createElement("div"),this.nextButton.className="".concat(e.classPref,"next-prev-button"),this.nextButton.style.backgroundColor=t.config.sl_navigationColor,this.nextButton.style.right="0px",this.nextButton.style.transform="translate(150%, -50%)",this.nextButton.style.visibility="hidden",this.nextButton.innerHTML=e.ICONS.NEXT_ARR,this.nextButton.childNodes[0].style.fill=t.config.sl_navigationIconColor,this.nextButton.onmouseenter=function(){i(this)},this.nextButton.onmouseleave=function(){o(this)},this.nextButton.onclick=function(){t.appSet.appEventManager.dispatchGMEvent(r.GMEvent(e.EVENTS.UPDATE_CONTROLS,t,{draging:!0})),t.gotoNext(),r.Device.desktop||o(this)},this.view.appendChild(this.nextButton)}},{key:"switchShowControlls",value:function(){this.showControlls(!this.isControllsShow)}},{key:"showHideNaviButton",value:function(e){if(this.naviButtonsStatus!==e){switch(e){case"show":if(this.isZoom)return;this.prevButton.style.transform="translate(0%, -50%)",this.nextButton.style.transform="translate(0%, -50%)";break;case"hide":this.prevButton.style.transform="translate(-150%, -50%)",this.nextButton.style.transform="translate(150%, -50%)"}this.naviButtonsStatus=e}}},{key:"zoomControll",value:function(){this.isZooming!==this.isZoom&&(this.isZooming=this.isZoom,this.appSet.appEventManager.dispatchGMEvent(r.GMEvent(e.EVENTS.UPDATE_CONTROLS,this,{zoom:this.isZoom?"zoomIn":"zoomOut"})),this.isZoom?this.showHideNaviButton("hide"):this.showHideNaviButton("show"))}},{key:"showControlls",value:function(t){this.zoomControll(),this.isControllsShow!==t&&(t?(this.appSet.appEventManager.dispatchGMEvent(r.GMEvent(e.EVENTS.UPDATE_CONTROLS,this,{controls:"show"})),this.showHideNaviButton("show")):(this.appSet.appEventManager.dispatchGMEvent(r.GMEvent(e.EVENTS.UPDATE_CONTROLS,this,{controls:"hide"})),r.miniScreen&&this.showHideNaviButton("hide")),this.isControllsShow=t)}},{key:"updateControlls",value:function(){this.itemsAmount<3?(0===this.itemIndex?this.prevButton.style.visibility="hidden":this.prevButton.style.visibility="visible",this.itemIndex===this.itemsAmount-1?this.nextButton.style.visibility="hidden":this.nextButton.style.visibility="visible",1===this.itemsAmount&&(this.prevButton.style.visibility="hidden",this.nextButton.style.visibility="hidden")):(this.prevButton.style.visibility="visible",this.nextButton.style.visibility="visible");var t=this.itemsList[this.itemIndex];t&&this.appSet.appEventManager.dispatchGMEvent(r.GMEvent(e.EVENTS.UPDATE_CONTROLS,this,{item:t,itemIndex:this.itemIndex}))}},{key:"resizeHandler",value:function(e){var t=this;this.resizeDelay&&clearTimeout(this.resizeDelay),r.cancelAnimationFrame(this.animaSliderRender),this.resizeDelay=setTimeout((function(){if(t.size=e,t.size.width<500?(t.prevButton.classList.add("next-prev-button-mini-screen"),t.nextButton.classList.add("next-prev-button-mini-screen")):(t.prevButton.classList.remove("next-prev-button-mini-screen"),t.nextButton.classList.remove("next-prev-button-mini-screen")),0!==t.sliderPages.length){for(var i=0;i<t.sliderPages.length;i+=1)t.sliderPages[i].resize(t.size);t.gotoPageByIndex(t.currentItemIndex,!0),t.size.height<410&&(t.showControlls(!1,!0),t.needHideControlls=!0)}}),70)}},{key:"viewOfsetY",get:function(){return this.view.getBoundingClientRect().top+r.pageYOffset}},{key:"viewOfsetX",get:function(){return this.view.getBoundingClientRect().left+r.pageXOffset}},{key:"itemIndex",set:function(e){this.itemNumPr=e,this.updateControlls()},get:function(){return this.itemNumPr}},{key:"pageConstructor",get:function(){return new _(this)}},{key:"scrollViewTranslateY",set:function(e){this.scrollViewTranslateYPr=e,this.slider.style.transform="translate3d(".concat(this.scrollViewTranslateX,"px,").concat(e,"px, 0px"),0!==e&&this.sliderVerticalRender()},get:function(){return this.scrollViewTranslateYPr}},{key:"scrollViewTranslateX",set:function(e){this.scrollViewTranslateXPr=e,this.slider.style.transform="translate3d(".concat(e,"px,").concat(this.scrollViewTranslateY,"px, 0px"),this.pageRenderByIndex(-Math.round(e/this.size.width))},get:function(){return this.scrollViewTranslateXPr}},{key:"isZoom",get:function(){return!!this.pageInFocus&&this.pageInFocus.isInScale}}]),e}(),L=i(3),N=i.n(L);function M(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function P(e,t,i){return t&&B(e.prototype,t),i&&B(e,i),e}var O=function(){function e(t,i){M(this,e),this.delegate=t,this.appSet=this.delegate.appSet,this.appName=t.appName,this.config=e.CONFIG,r.copyProperties(i,this.config);var o='<svg class="'.concat(e.classPref,'progress-radial" width="22px" height="22px" viewBox="0 0 100 100" shape-rendering="geometricPrecision">\n <defs><mask id="circle_mask" x="0" y="0" width="100" height="100" maskUnits="userSpaceOnUse">\n <circle cx="50" cy="50" r="51" stroke-width="0" fill="black" opacity="1"/>\n <circle cx="50" cy="50" r="50" stroke-width="0" fill="white" opacity="1"/>\n <circle class="').concat(e.classPref,'progress-radial-mask-inner" cx="50" cy="50" r="40" stroke-width="0" fill="black" opacity="1"/>\n </mask></defs><g mask="url(#circle_mask)">\n <circle class="').concat(e.classPref,'progress-radial-track" cx="50" cy="50" r="50" stroke-width="0" opacity="1"/>\n <path class="').concat(e.classPref,'progress-radial-bar" transform="translate(50, 50)"d="M 0 0"></path></g></svg>');this.view=document.createElement("div"),this.view.className="".concat(e.classPref,"wrap"),this.view.innerHTML=o,this.bar=this.view.getElementsByClassName("".concat(e.classPref,"progress-radial-bar"))[0],this.bar.style.fill=this.config.ap_autoPlayColor,this.view.getElementsByClassName("".concat(e.classPref,"progress-radial-track"))[0].style.fill=this.config.ap_autoPlayBgColor,this.animRatio=25,this.counter=0,this.durationCount=25*this.config.ap_slideshowDelay,this.interval=void 0,this.anPart=0,this.status=void 0}return P(e,null,[{key:"classPref",get:function(){var e=N.a.classPrefAPlay;return e.substring(e.lastIndexOf(".")+1,e.lastIndexOf('"'))}},{key:"CONFIG",get:function(){return{ap_autoPlayBgColor:"rgba(255,255,255, 0.3)",ap_autoPlayColor:"rgba(255,255,255, 1)",ap_slideshowDelay:8}}},{key:"EVENTS",get:function(){return{NEXT_SLIDE:"NEXT_SLIDE",PLAY:"PLAY"}}}]),P(e,[{key:"drawProgress",value:function(t){if(!isNaN(t)){t=e.clamp(parseFloat(t),0,1);var i=e.clamp(360*t,0,359.99999),o=i*Math.PI/180,n=51*Math.sin(o),a=-51*Math.cos(o),s=i>180?1:0,r="M 0 0 v -%@ A %@ %@ 1 ".replace(/%@/gi,51),l="".concat(r+s," 1 ").concat(n," ").concat(a," z");this.bar.setAttribute("d",l)}}},{key:"switch",value:function(){"play"===this.status?this.clear():this.start()}},{key:"start",value:function(){var t=this;this.view.style.opacity=1;var i=1/this.durationCount;this.interval=setInterval((function(){t.counter+=1,t.counter>=t.durationCount&&(clearInterval(t.interval),t.appSet.appEventManager.dispatchGMEvent(r.GMEvent(e.EVENTS.NEXT_SLIDE,t,{})),t.counter=0,t.start()),t.drawProgress(i*t.counter)}),1e3/this.animRatio),"play"!==this.status&&(this.status="play",t.appSet.appEventManager.dispatchGMEvent(r.GMEvent(e.EVENTS.PLAY,t,{status:this.status})))}},{key:"pause",value:function(){clearInterval(this.interval),this.status="pause"}},{key:"clear",value:function(){clearInterval(this.interval),this.counter=0,this.drawProgress(0),this.view.style.opacity=0,this.status="stop",this.appSet.appEventManager.dispatchGMEvent(r.GMEvent(e.EVENTS.PLAY,this,{status:this.status}))}}],[{key:"clamp",value:function(e,t,i){return Math.max(t,Math.min(i,e))}}]),e}(),A=function(){function e(t,i){M(this,e),this.appSet=t,this.config=e.CONFIG,r.copyProperties(i,this.config),this.appName=t.appName,this.headerFooterStatus=void 0,this.headerStatus=void 0,this.mouseMovingTimer=void 0,this.resizeDelay=void 0,this.size=r.Size(0,0),this.view=document.createElement("div"),this.view.className="".concat(e.classPref,"view"),this.view.id="".concat(this.appName,"_lightbox"),r.Device.desktop||(this.view.style.height="100%");var o=document.createElement("div");o.className="".concat(e.classPref,"bg"),this.background=o,this.backgroundOpacity=1,this.background.style.backgroundColor=this.config.lb_backgroundColor,this.view.appendChild(o),this.content=document.createElement("div"),this.content.className="".concat(e.classPref,"content");var n=I.CONFIG;n.sl_backgroundColor=!1,n.sl_preloaderColor=this.config.lb_preloaderColor,n.sl_navigationColor=this.config.lb_sliderNavigationColor,n.sl_navigationIconColor=this.config.lb_sliderNavigationIconColor,n.sl_navigationColorOver=this.config.lb_sliderNavigationColorOver,n.sl_navigationIconColorOver=this.config.lb_sliderNavigationIconColorOver,n.sl_fit=!0;var a=this.config.lb_thumbBarEnable?60:this.config.lb_headerFooterHeight;n.sl_yOffset=r.miniScreen?0:a,n.sl_canRemoved=!0,n.sl_copyR_Alert=this.config.lb_copyR_Alert,n.sl_copyR_Proptection=this.config.lb_copyR_Proptection,n.sl_zoom=this.config.lb_zoom,n.sl_mouseWheel=this.config.lb_zoom,n.sl_audioPlayer=this.config.lb_audioPlayer,n.sl_mouseWheelPagination=this.config.lb_scrollNavi,this.appSet.appEventManager.addGMEventListener(I.EVENTS.UPDATE_CONTROLS,this,"updateViewControls"),this.appSet.appEventManager.addGMEventListener(I.EVENTS.REMOVE_LIGHTBOX,this,"prepareToRemove"),this.appSet.appEventManager.addGMEventListener(O.EVENTS.PLAY,this,"slideShowSwitchHandler"),this.appSet.appEventManager.addGMEventListener(O.EVENTS.NEXT_SLIDE,this,"slideshowHandler"),this.appSet.appEventManager.addGMEventListener(C.EVENTS.ITEMS_SCROLL_BAR_ITEM_ACTION,this,"scrollBarHandler"),this.slider=new I(this.appSet,n),this.slider.initByStage(this.content),this.slider.mouseWheelMode=this.config.lb_zoom,this.view.appendChild(this.content),this.header=document.createElement("div"),this.header.className="".concat(e.classPref,"header"),this.header.style.backgroundImage="linear-gradient(0deg,rgba(0,0,0,0),".concat(this.config.lb_headerFooterColor,")"),r.isTouchDevice&&this.header.classList.add("".concat(e.classPref,"touch-device")),this.view.appendChild(this.header),this.footer=document.createElement("div"),this.footer.className="".concat(e.classPref,"footer"),this.footer.style.minHeight="".concat(a,"px"),r.isTouchDevice&&this.footer.classList.add("".concat(e.classPref,"touch-device")),r.miniScreen&&(this.footer.style.backgroundImage="linear-gradient(0deg,".concat(this.config.lb_headerFooterColor,",rgba(0,0,0,0))")),this.view.appendChild(this.footer),this.infoBar1=document.createElement("div"),this.infoBar1.className="".concat(e.classPref,"info-wrap"),this.header.appendChild(this.infoBar1),this.config.lb_itemTitleEnable&&(this.itemTitle=document.createElement("div"),this.itemTitle.className="".concat(e.classPref,"item-title"),this.itemTitle.style.fontSize="".concat(this.config.lb_itemTitleFontSize,"px"),this.itemTitle.style.color=this.config.lb_itemTitleTextColor,this.infoBar1.appendChild(this.itemTitle));var s=document.createElement("div");s.className=this.config.lb_itemTitleEnable?"".concat(e.classPref,"caption-wrap"):"".concat(e.classPref,"caption-wrap-nt"),s.classList.add("mini-screen"),s.style.color=this.config.lb_itemCounterColor,this.config.lb_thumbBarEnable||r.isTouchDevice||(s.style.backgroundColor=this.config.lb_headerFooterColor),this.item_current_info=document.createElement("div"),this.item_current_info.className="".concat(e.classPref,"caption-current"),s.appendChild(this.item_current_info);var l=document.createElement("div");l.className="".concat(e.classPref,"caption-delimiter"),l.style.opacity=.7,this.config.lb_itemTitleEnable?l.textContent="/":l.style.backgroundColor=this.config.lb_itemCounterColor,s.appendChild(l),this.items_amount_info=document.createElement("div"),this.items_amount_info.className="".concat(e.classPref,"caption-all"),s.appendChild(this.items_amount_info),this.counter=s;var c=document.createElement("div");if(c.className="".concat(e.classPref,"caption-play-wrap"),c.appendChild(s),this.infoBar1.appendChild(c),this.config.lb_thumbBarEnable){var h=C.CONFIG;h.isb_itemBgColor=this.config.lb_thumbBarHoverColor,this.thumbsBar=new C(this.appSet,h),this.footer.appendChild(this.thumbsBar.view),r.isTouchDevice&&this.footer.appendChild(c)}else this.footer.appendChild(c);if(r.Device.desktop&&this.config.lb_slideshowEneble){var d=O.CONFIG;d.ap_autoPlayBgColor=this.config.lb_slideshowIndicatorColorBg,d.ap_autoPlayColor=this.config.lb_slideshowIndicatorColor,d.ap_slideshowDelay=this.config.lb_slideshowTimer,this.autoPlay=new O(this,d),c.appendChild(this.autoPlay.view)}var p=document.createElement("div");r.isTouchDevice&&(p.style.width="100%"),p.className="".concat(e.classPref,"free-space"),this.header.appendChild(p),this.itemMenuWrap=document.createElement("div"),this.itemMenuWrap.className="".concat(e.classPref,"item-menu-wrap"),this.header.appendChild(this.itemMenuWrap);var m=u.CONFIG;m.im_link=!0,m.im_play=r.Device.desktop&&this.config.lb_slideshowEneble,m.im_zoom=r.Device.desktop&&this.config.lb_zoom,m.im_discuss=this.config.lb_discuss,m.im_info=this.config.lb_itemInfoEnable,m.im_share=this.config.lb_itemShare,m.im_download=this.config.lb_itemDownload,m.im_bookmark=this.config.lb_bookmark,m.im_like=this.config.lb_itemLike,m.im_close=!0,m.im_fulscreen=!r.Device.ios&&this.config.lb_fullscreen,m.im_backgroundColor=this.config.lb_menuBackgroundColor,m.im_backgroundColorOver=this.config.lb_menuBackgroundColorOver,m.im_iconColor=this.config.lb_menuIconColor,m.im_iconColorOver=this.config.lb_menuIconColorOver,m.im_likesSet=this.config.lb_likesSet,m.im_isContainIdInBookmarkSet=this.config.lb_isContainIdInBookmarkSet,this.itemMenu=new u(this.appSet,u.MENU_TYPE.LIGHTBOX,m),this.itemMenuWrap.appendChild(this.itemMenu.view),this.appSet.appEventManager.addGMEventListener(u.EVENTS.ITEM_MENU_ACTION,this,"itemMenuActionHandler"),this.addToStage()}return P(e,null,[{key:"classPref",get:function(){var e=N.a.classPref;return e.substring(e.lastIndexOf(".")+1,e.lastIndexOf('"'))}},{key:"EVENTS",get:function(){return{LB_NEED_MODAL:"LB_NEED_MODAL",LB_REMOVE_LIGHTBOX:"LB_REMOVE_LIGHTBOX",LB_FULLSCREEN_SWITCH:"LB_FULLSCREEN_SWITCH",LB_ITEM_ACTION:"LB_ITEM_ACTION"}}},{key:"CONFIG",get:function(){return{lb_scrollNavi:!1,lb_backgroundColor:"rgba(0,0,0,0.8)",lb_preloaderColor:"#494949",lb_headerFooterHeight:40,lb_headerFooterColor:"rgba(0,0,0,1)",lb_sliderNavigationColor:"rgba(0,0,0,0.8)",lb_sliderNavigationIconColor:"rgba(255,255,255,1)",lb_sliderNavigationColorOver:"rgba(255,255,255,1)",lb_sliderNavigationIconColorOver:"rgba(0,0,0,0)",lb_itemCounterColor:"rgba(255,255,255,1)",lb_itemTitleEnable:!0,lb_itemTitleFontSize:18,lb_itemTitleTextColor:"rgba(255,255,255,1)",lb_thumbBarEnable:!0,lb_thumbBarHoverColor:"rgba(255,255,255,1)",lb_itemInfoEnable:!0,lb_itemLike:!0,lb_itemShare:!0,lb_itemDownload:!0,lb_zoom:!0,lb_discuss:!0,lb_fullscreen:!0,lb_bookmark:!1,lb_menuBackgroundColor:"rgb(0,0,0)",lb_menuBackgroundColorOver:"rgb(255,255,255)",lb_menuIconColor:"rgb(255,255,255)",lb_menuIconColorOver:"rgb(0,0,0)",lb_slideshowEneble:!0,lb_slideshowTimer:8,lb_slideshowAutoPlay:!1,lb_slideshowIndicatorColorBg:"rgba(255,255,255,0.7)",lb_slideshowIndicatorColor:"rgba(255,255,255,1)",lb_copyR_Alert:"Hello, this photo is mine!",lb_copyR_Proptection:!0,lb_audioPlayer:void 0,lb_likesSet:void 0,lb_isContainIdInBookmarkSet:void 0}}}]),P(e,[{key:"itemMenuActionHandler",value:function(t){if(t.target===this.itemMenu){var i=t.params.item,o=t.params.type;if(i&&o){var n,a,s={};switch(s.item=i,o){case"info":s.type="info",this.appSet.appEventManager.dispatchGMEvent(r.GMEvent(e.EVENTS.LB_NEED_MODAL,this,s)),this.appSet.appEventManager.dispatchGMEvent(r.GMEvent(O.EVENTS.PLAY,this,{action:"stop"}));break;case"link":i.link&&window.open(i.link,this.config.lb_linkTargetWindow);break;case"like":this.appSet.appEventManager.dispatchGMEvent(r.GMEvent(e.EVENTS.LB_ITEM_ACTION,this,{type:"like",item:i})),this.itemMenu.updateForItem(i);break;case"bookmark":this.appSet.appEventManager.dispatchGMEvent(r.GMEvent(e.EVENTS.LB_ITEM_ACTION,this,{type:"bookmark",item:i})),this.itemMenu.updateForItem(i);break;case"share":s.type="share",this.appSet.appEventManager.dispatchGMEvent(r.GMEvent(e.EVENTS.LB_NEED_MODAL,this,s)),this.appSet.appEventManager.dispatchGMEvent(r.GMEvent(O.EVENTS.PLAY,this,{action:"stop"}));break;case"zoom":"function"==typeof this.sliderZoomSwitch&&this.sliderZoomSwitch();break;case"close":this.prepareToRemove();break;case"play":this.appSet.appEventManager.dispatchGMEvent(r.GMEvent(O.EVENTS.PLAY,this,{}));break;case"download":n=i.url,(a=document.createElement("A")).href=n,a.download=n.substr(n.lastIndexOf("/")+1),document.body.appendChild(a),a.click(),document.body.removeChild(a);break;case"coments":"open"===i.comment_status&&(n="".concat(i.sharelink,"/#comments"),window.open(n,"_self"));break;case"fullscreen":this.appSet.appEventManager.dispatchGMEvent(r.GMEvent(e.EVENTS.LB_FULLSCREEN_SWITCH,this,{}))}}}}},{key:"sliderZoomSwitch",value:function(){this.slider&&this.slider.remoteControl("zoom")}},{key:"slideShowSwitchHandler",value:function(e){if(this.autoPlay)if(e.params.action)switch(e.params.action){case"play":this.autoPlay.start();break;case"stop":this.autoPlay.clear()}else e.params.status?this.itemMenu&&this.itemMenu.playButtonStatus(e.params.status):this.autoPlay.switch()}},{key:"slideshowHandler",value:function(){this.slider&&this.slider.gotoNext()}},{key:"scrollBarHandler",value:function(e){if(this.slider&&e.params&&e.params.action&&(e.params.index||0===e.params.index))switch(e.params.action){case"click":this.slider.gotoPageByIndex(e.params.index)}}},{key:"keydownHandler",value:function(){var e=this;return e.handlerKB=function(t){switch(t.keyCode){case 37:e.slider.remoteControl("prev");break;case 39:e.slider.remoteControl("next");break;case 32:r.preventDefault(t),e.slider.remoteControl("space")}},e.handlerKB}},{key:"addToStage",value:function(){var t=this,i=document.getElementsByTagName("body")[0];this.view.style.zIndex=r.findHighestZIndex(i)+1,r.disableBodyScrollSlider(),document.addEventListener("keydown",t.keydownHandler(),!0),i.appendChild(this.view),setTimeout((function(){t.view.classList.add("".concat(e.classPref,"activate"))}),30)}},{key:"initByList",value:function(e,t){e&&e.length>0&&(this.currentItemIndex=t&&0!==t?0:void 0,this.startItemIndex=t||0,this.itemsList=e,this.thumbsBar&&this.thumbsBar.initByItemslist(this.itemsList),this.slider.initByList(this.itemsList,this.startItemIndex),this.resizeHandler())}},{key:"prepareToRemove",value:function(){var t=this;if(!this.removing){if(this.removing=!0,this.autoPlay&&this.autoPlay.clear(),this.slider.prepareToRemove(),this.view.removeChild(this.header),this.view.removeChild(this.content),this.view.removeChild(this.footer),this.background.classList.add("".concat(e.classPref,"deactivate")),this.background.style.opacity="0",document.removeEventListener("keydown",this.handlerKB,!0),document.getElementById("gmediaAudioPlayer"))document.getElementById("gmediaAudioPlayer").pause();this.appSet.appEventManager.removeGMEventListener(u.EVENTS.ITEM_MENU_ACTION,this,"itemMenuActionHandler"),this.appSet.appEventManager.removeGMEventListener(I.EVENTS.UPDATE_CONTROLS,this,"updateViewControls"),this.appSet.appEventManager.removeGMEventListener(I.EVENTS.REMOVE_LIGHTBOX,this,"prepareToRemove"),this.appSet.appEventManager.removeGMEventListener(O.EVENTS.PLAY,this,"slideShowSwitchHandler"),this.appSet.appEventManager.removeGMEventListener(O.EVENTS.NEXT_SLIDE,this,"slideshowHandler"),this.appSet.appEventManager.removeGMEventListener(C.EVENTS.ITEMS_SCROLL_BAR_ITEM_ACTION,this,"scrollBarHandler"),setTimeout((function(){r.enableBodyScrollSlider(),t.appSet.appEventManager.dispatchGMEvent(r.GMEvent(e.EVENTS.LB_REMOVE_LIGHTBOX,t))}),300*this.backgroundOpacity)}}},{key:"mouseMoveHandler",value:function(){var t=this;"hide"===this.headerFooterStatus?(clearTimeout(this.mouseMovingTimer),"show"!==this.headerStatus&&(this.header.classList.add("".concat(e.classPref,"show")),this.headerStatus="show",this.slider&&this.slider.showHideNaviButton("show")),this.mouseMovingTimer=setTimeout((function(){t.header.classList.remove("".concat(e.classPref,"show")),t.slider&&t.slider.showHideNaviButton("hide"),t.headerStatus="hide"}),3e3)):(clearTimeout(this.mouseMovingTimer),"show"!==this.headerStatus&&(this.header.classList.add("".concat(e.classPref,"show")),this.headerStatus="show",this.slider&&this.slider.showHideNaviButton("show")))}},{key:"updateViewControls",value:function(t){var i=this;if(t.params.backgroundOpacity&&(this.background.style.opacity=t.params.backgroundOpacity,this.backgroundOpacity=t.params.backgroundOpacity),t.params.draging&&this.appSet.appEventManager.dispatchGMEvent(r.GMEvent(O.EVENTS.PLAY,this,{action:"stop"})),t.params.zoom&&(this.appSet.appEventManager.dispatchGMEvent(r.GMEvent(O.EVENTS.PLAY,this,{action:"stop"})),this.itemMenu&&this.itemMenu.zoomButtonStatus(t.params.zoom)),t.params.controls)switch(this.appSet.appEventManager.dispatchGMEvent(r.GMEvent(O.EVENTS.PLAY,this,{action:"stop"})),this.headerFooterStatus=t.params.controls,this.mouseMoveHandler(),t.params.controls){case"show":(r.miniScreen||this.backgroundOpacity<.9)&&this.header.classList.add("".concat(e.classPref,"show")),this.footer.classList.add("".concat(e.classPref,"show"));break;case"hide":(r.miniScreen||this.backgroundOpacity<.9)&&this.header.classList.remove("".concat(e.classPref,"show")),this.footer.classList.remove("".concat(e.classPref,"show"))}if((t.params.itemIndex||0===t.params.itemIndex)&&(this.item_current_info.innerHTML=t.params.itemIndex+1,this.items_amount_info.innerHTML=this.itemsList.length,this.thumbsBar&&this.thumbsBar.selectThumbByIndex(t.params.itemIndex)),t.params.item&&(this.currentItem=t.params.item,this.appSet.appEventManager.dispatchGMEvent(r.GMEvent(e.EVENTS.LB_ITEM_ACTION,this,{type:"view",item:this.currentItem,itemIndex:t.params.itemIndex})),this.itemTitle&&(this.itemTitle.innerHTML=t.params.item.title?t.params.item.title:""),this.itemMenu&&this.itemMenu.updateForItem(t.params.item)),t.params.status)switch(t.params.status){case"ready":this.autoPlay&&this.config.lb_slideshowAutoPlay&&!this.startItem&&this.autoPlay.start(),this.view.addEventListener("mousemove",(function(e){i.mouseMoveHandler(e)}),!1)}}},{key:"resizeHandler",value:function(){if(this.view.clientWidth<360?(this.autoPlay&&(this.autoPlay.view.style.display="none"),this.descriptionWrap||this.thumbsBar):(this.autoPlay&&(this.autoPlay.view.style.display=null),this.counter.style.display=null),this.itemMenu&&this.itemMenu.resizeHandler(),this.thumbsBar){var e=this.footer.clientWidth;this.thumbsBar.size=r.Size(e,0)}this.slider&&this.slider.resizeHandler(r.Size(this.view.clientWidth,this.view.clientHeight))}}]),e}(),V=i(4),z=i.n(V);function H(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function R(e,t,i){return t&&D(e.prototype,t),i&&D(e,i),e}var F=function(){function e(t,i,o){H(this,e),this.id=i,this.config=o,this.view=document.createElement("div"),this.view.className="".concat(e.classPref,"view"),this.title=document.createElement("div"),this.title.innerHTML=t,this.title.className="".concat(e.classPref,"title"),this.view.appendChild(this.title),this.mouseleave(),this.selected=!1;var n=this;function a(e){switch(e.type){case"mouseenter":n.mouseenter();break;case"mouseleave":if(n.selected)return;n.mouseleave()}}this.view.addEventListener("mouseenter",a,!1),this.view.addEventListener("mouseleave",a,!1)}return R(e,null,[{key:"classPref",get:function(){var e=z.a.classPrefTag;return e.substring(e.lastIndexOf(".")+1,e.lastIndexOf('"'))}},{key:"CONFIG",get:function(){return{tg_backgrounColor:"lightgray",tg_backgrounColorOver:"gray",tg_titleColor:"black",tg_titleColorOver:"white"}}}]),R(e,[{key:"mouseenter",value:function(){this.title.style.color=this.config.tg_titleColorOver,this.view.style.backgroundColor=this.config.tg_backgrounColorOver}},{key:"mouseleave",value:function(){this.title.style.color=this.config.tg_titleColor,this.view.style.backgroundColor=this.config.tg_backgrounColor}},{key:"select",value:function(){this.mouseenter(),this.selected=!0,this.view.style.cursor="default"}},{key:"deselect",value:function(){this.selected=!1,this.mouseleave(),this.view.style.cursor="pointer"}}]),e}(),G=function(){function e(t,i){H(this,e),this.appSet=i,this.config=e.CONFIG,r.copyProperties(t,this.config),this.view=document.createElement("div"),this.view.className="".concat(e.classPref,"view"),this.list=void 0,this.selectedTag=void 0}return R(e,null,[{key:"classPref",get:function(){var e=z.a.classPref;return e.substring(e.lastIndexOf(".")+1,e.lastIndexOf('"'))}},{key:"EVENTS",get:function(){return{TAG_ACTION:"TAG_ACTION"}}},{key:"CONFIG",get:function(){return{tl_all:"All",tl_backgrounColor:"lightgray",tl_backgrounColorOver:"gray",tl_titleColor:"black",tl_titleColorOver:"white"}}}]),R(e,[{key:"updateViewByList",value:function(e,t){var i=this,o=[],n=[];for(var a in e)"0"!==a&&o.push(e[a].toLowerCase());e[0]=this.config.tl_all,o.sort(),o.splice(0,0,e[0].toLowerCase());for(var s=0;s<o.length;s+=1)for(var r in e){if(e[r].toLowerCase()===o[s])if("continue"===function(){var o=F.CONFIG;o.tg_backgrounColor=i.config.tl_backgrounColor,o.tg_backgrounColorOver=i.config.tl_backgrounColorOver,o.tg_titleColor=i.config.tl_titleColor,o.tg_titleColorOver=i.config.tl_titleColorOver;var a=new F(e[r],r,o);return parseInt(r)===parseInt(t)&&(i.selectedTag=a,a.select()),a.view.addEventListener("click",(function(){i.tagClickHandler(a)}),!1),n.push(a),i.view.appendChild(a.view),delete e[r],"continue"}())continue}}},{key:"tagClickHandler",value:function(t){this.selectedTag.deselect(),t.select(),this.appSet.appEventManager.dispatchGMEvent(r.GMEvent(e.EVENTS.TAG_ACTION,this,{tagId:t.id})),this.selectedTag=t}}]),e}();function X(e){return(X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Y(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function W(e,t){return!t||"object"!==X(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function q(e,t){return(q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var j=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),W(this,U(t).apply(this,arguments))}var i,o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&q(e,t)}(t,e),i=t,n=[{key:"moduleSettings",value:function(e){return window[e]&&window[e].settings?window[e].settings:null}},{key:"likesSet",value:function(e){return e&&window.localStorage.setItem("gm_likesSet",JSON.stringify(e)),window.localStorage.getItem("gm_likesSet")&&"undefined"!==window.localStorage.getItem("gm_likesSet")?JSON.parse(window.localStorage.getItem("gm_likesSet")):{}}},{key:"isContainIdInBookmarkSet",value:function(e){for(var i=t.bookmarkSet,o=0;o<i.length;o+=1)if(parseInt(i[o])===parseInt(e))return o;return!1}},{key:"timeConverter",value:function(e){var t=new Date(1e3*e),i=new Date,o=new Date(Date.now()-864e5),n=t.getFullYear(),a=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][t.getMonth()],s=t.getDate(),r=t.getHours(),l=t.getMinutes();return t.setHours(0,0,0,0)===i.setHours(0,0,0,0)?"Today, ".concat(r,":").concat(l):t.setHours(0,0,0,0)===o.setHours(0,0,0,0)?"Yesterday, ".concat(r,":").concat(l):n===(new Date).getFullYear()?"".concat(s," ").concat(a,", ").concat(n):"".concat(s," ").concat(a," ").concat(n)}},{key:"request",value:function(e,i,o,n){var a=new XMLHttpRequest;a.open("POST",this.moduleSettings(i.appName).appApi,!0),a.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),a.setRequestHeader("X-Requested-With","XMLHttpRequest"),a.setRequestHeader("Access-Control-Allow-Headers","Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With"),a.onreadystatechange=function(){4===this.readyState&&(200!==this.status?o&&t.moduleSettings(i.appName).appEventManager.dispatchGMEvent(t.GMEvent(o,i,{error:this.statusText,params:n})):o&&t.moduleSettings(i.appName).appEventManager.dispatchGMEvent(t.GMEvent(o,i,{data:this.responseText,params:n})))},a.onerror=function(){!0===confirm("Failed to load resource: The network connection was lost. Let's try again?")&&t.request(e,i,o,n)};try{a.send(e),t.moduleSettings(i.appName).appEventManager.dispatchGMEvent(t.GMEvent("REQUEST_START",i,null))}catch(e){t.trace(e)}}},{key:"Item",value:function(e,i){var o={get webView(){return this.webImg.src?o.webImg:(this.webImg.src=this.itemViewSrc,this.webImg)}};if(t.copyProperties(e,o),o.appName=i,o.idPrefix=void 0,o.webImg=new Image,o.webImgFrame=t.Rect(0,0,0,0),o.ratio=1,o.webImg.addEventListener("load",(function(){this.classList.add("onLoad")}),!1),o.link&&""!==o.link){var n,a,s,r=o.link;r.match(/youtu\.be/i)||r.match(/youtube\.com/i)?(a=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/,(s=r.match(a))&&11===s[7].length&&(n=s[7]),void 0!==n&&(o.mime_type="video/youtube",o.videoId=n,o.link=void 0)):r.match(/vimeo\.com/i)&&(a=/(www\.)?vimeo.com\/(\d+)($|\/)/,(s=r.match(a))&&(n=s[2]),void 0!==n&&(o.mime_type="video/vimeo",o.videoId=n,o.link=void 0))}return"audio/mpeg"===o.mime_type&&(o.type="audio"),"image"===o.mime_type.split("/")[0]&&(o.type="image"),"video"===o.mime_type.split("/")[0]&&(o.type="video"),o.hasTag=function(e){if("all"===e)return!0;if(!o.tags||0===o.tags.length)return!1;for(var t=0;t<o.tags.length;t+=1)if(o.tags[t].term_id===e)return!0;return!1},o.itemViewSrc=o.meta?o.meta.web?encodeURI(o.meta.web.link):o.meta.original?encodeURI(o.meta.original.link):o.meta.thumb?encodeURI(o.meta.thumb.link):null:null,"image"===o.type&&o.meta.original&&o.meta.original.link&&(o.url=encodeURI(o.meta.original.link)),o.itemViewThumbSrc=o.meta?o.meta.thumb?encodeURI(o.meta.thumb.link):o.meta.web?encodeURI(o.meta.web.link):null:null,o.itemViewSize=o.meta?o.meta.web?t.Size(o.meta.web.width,o.meta.web.height):o.meta.original?t.Size(o.meta.original.width,o.meta.original.height):t.Size(300,300):t.Size(300,300),o.itemViewThumbSize=o.meta?o.meta.thumb?t.Size(o.meta.thumb.width,o.meta.thumb.height):o.meta.web?t.Size(o.meta.web.width,o.meta.web.height):t.Size(300,300):t.Size(300,300),o.ratio=o.itemViewSize.height/o.itemViewSize.width,o}},{key:"Term",value:function(e,i){var o={set gmedia__in(e){this.query_Pr&&(this.query_Pr.gmedia__in=e.toString(),this.gmedia_in_Pr=e,this.count=e.length,"myCollection"===this.taxonomy&&this.query_Pr&&(this.sharelink=t.addParamsToURL(t.moduleSettings(i).post_url,"".concat(t.moduleSettings(i).galleryID,"[gmedia__in]"),this.query_Pr.gmedia__in)))},get gmedia__in(){return this.gmedia_in_Pr},get taxonomy_type(){var e;switch(this.taxonomy){case"gmedia_album":e="albums";break;case"gmedia_category":e="categories";break;case"gmedia_tag":e="tags";break;case"myCollection":e="gmedia__in";break;default:e=null}return e},get term_id(){return"myCollection"===this.taxonomy?"".concat(this.taxonomy_type,"-").concat(this.gmedia__in.toString()):this.term_id_Pr},set term_id(e){this.term_id_Pr=e},get query(){var e,t;if("myCollection"===this.taxonomy)return t={orderby:"gmedia__in",order:"ASC",gmedia__in:this.gmedia_in_Pr.toString()};switch(this.taxonomy){case"gmedia_album":e="album__in";break;case"gmedia_category":e="category__in";break;case"gmedia_tag":e="tag__in"}return(t={per_page:0,admin:!1,page:1})[e]=this.term_id,t}};if(t.copyProperties(e,o),e.term_id&&(o.term_id_Pr=e.term_id),o.appName=i,o.key=void 0,o.gmedia_in_Pr=[],o.meta){var n=t.Meta(o.meta,o.appName);o.meta=n}return"gmedia_tag"===o.taxonomy&&(o.name="#".concat(o.name),o.title=o.name),"gmedia_album"===o.taxonomy&&(o.title=o.name),"myCollection"===o.taxonomy&&o.query_Pr&&(o.gmedia__in=o.query_Pr.gmedia__in.split(",")),o}},{key:"termDataByQueryNameId",value:function(e,t,i){if(!e.gmedia__in)return null;var o=e.gmedia__in.split(",").length,n=e.orderby,a=e.order;return{count:o,name:t,meta:{_order:a,_orderby:n,order:a,orderby:n},taxonomy:"myCollection",term_id:i,_query:e}}},{key:"appQueryOrderMap",value:function(e){var t=JSON.stringify(e).match(/([\w]*)__in/g),i=[];function o(t){if(("album__in"===t||"category__in"===t||"tag__in"===t)&&e[t])for(var o=e[t].split(","),n=0;n<o.length;n+=1)i.push({query:t,term_id:o[n]})}for(var n=0;n<t.length;n+=1)o(t[n]);return i}},{key:"termsListFromAppQuery",value:function(e){var t,i=[];if(e.album__in){var o=e.album__in.split(",");for(t in o)Object.prototype.hasOwnProperty.call(o,t)&&i.push({taxonomy_type:"albums",term_id:o[t]})}if(e.category__in){var n=e.category__in.split(",");for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&i.push({taxonomy_type:"categories",term_id:n[t]})}if(e.tag__in){var a=e.tag__in.split(",");for(t in a)Object.prototype.hasOwnProperty.call(a,t)&&i.push({taxonomy_type:"tags",term_id:a[t]})}return i.length>0?i:void 0}},{key:"Meta",value:function(e,i){var o={};return t.copyProperties(e,o),o.appName=i,o._cover&&(o._cover=t.Item(e._cover,o.appName)),o.cover=o._cover?o._cover:null,o}},{key:"bookmarkSet",get:function(){return window.localStorage.getItem("gm_bookmarkSet")?JSON.parse(window.localStorage.getItem("gm_bookmarkSet")):[]},set:function(e){window.localStorage.setItem("gm_bookmarkSet",JSON.stringify(e))}}],(o=null)&&Y(i.prototype,o),n&&Y(i,n),t}(r),Z=i(8),K=i.n(Z);function J(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Q(e,t,i){return t&&J(e.prototype,t),i&&J(e,i),e}var $=function(){function e(t,i){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=e.CONFIG,r.copyProperties(i,this.config),this.iconsSet=e.ICONS,this.passiveListener=r.passiveListener,this.type=void 0,this.appSet=t,this.appName=t.appName,this.view=document.createElement("div"),this.view.className="".concat(e.classPref,"window"),this.stageFixedMode=!1,this.closeButton=document.createElement("div"),this.closeButton.className="".concat(e.classPref,"close-button"),this.closeButton.style.backgroundColor=this.config.mwBackgroundColor,this.view.addEventListener("click",(function(e){e.target!==o.view&&e.target!==o.closeButton||o.prepareToRemove(e)}),r.passiveListener),this.view.appendChild(this.closeButton);var n=document.createElement("div");n.className="".concat(e.classPref,"flex"),this.view.appendChild(n),this.scrollView=void 0,this.dragging=!1,this.scrollViewTranslateYPr=0,this.startDragHandler=void 0,this.viewCompleted=!1,this.initForStage(this.config.mwParentDiv,this.config.mwFixedMode)}return Q(e,null,[{key:"classPref",get:function(){var e=K.a.classPref;return e.substring(e.lastIndexOf(".")+1,e.lastIndexOf('"'))}},{key:"EVENTS",get:function(){return{REMOVE_MODAL_WINDOW:"REMOVE_MODAL_WINDOW"}}},{key:"CONFIG",get:function(){return{mwParentDiv:void 0,mwFixedMode:!1,mwBackgroundColor:"rgba(0,0,0,0.8)"}}}]),Q(e,[{key:"initForStage",value:function(t,i){var o=this;t.appendChild(this.view),this.view.style.zIndex=r.findHighestZIndex(t)+1,i?(r.disableBodyScrollSlider(),this.view.classList.add("".concat(e.classPref,"fixed-modal")),this.stageFixedMode=!0):this.stageFixedMode=!1,setTimeout((function(){o.view.style.opacity="1"}),30)}},{key:"addToStage",value:function(e){var t=this,i=document.getElementsByTagName("body")[0];this.view.style.zIndex=r.findHighestZIndex(i)+1,r.disableBodyScrollSlider(),e?e.appendChild(this.view):i.appendChild(this.view),setTimeout((function(){t.view.style.opacity="1"}),30)}},{key:"prepareToRemove",value:function(){var t=this;this.view.style.opacity="0",this.stageFixedMode&&r.enableBodyScrollSlider(),setTimeout((function(){t.view&&t.view.parentNode&&t.view.parentNode.removeChild(t.view),delete t.view,t.appSet.appEventManager.dispatchGMEvent(r.GMEvent(e.EVENTS.REMOVE_MODAL_WINDOW,t,{}))}),400)}},{key:"pushPage",value:function(e){this.viewCompleted=!1,this.scrollView&&this.scrollView.parentNode&&this.scrollView.parentNode.removeChild(this.scrollView),this.view.appendChild(e),this.scrollView=e,this.updateControlls()}},{key:"updateControlls",value:function(){this.scrollView&&(this.viewCompleted||(this.startDragHandler=this.startDrag(),this.scrollView.addEventListener("touchstart",this.startDragHandler,this.passiveListener),this.scrollView.addEventListener("mousedown",this.startDragHandler,!1),this.viewCompleted=!0))}},{key:"startDrag",value:function(){var e,t,i=this,o=0,n=0,a=0,s=0,l=.95,c=1,h=r.requestAnimationFrame,d=r.cancelAnimationFrame;function p(){i.scrollViewTranslateY>0?n=.2*n+.1*(0-i.scrollViewTranslateY):i.scrollViewTranslateY<i.bottom?n=.2*n+.1*(i.bottom-i.scrollViewTranslateY):n*=l,i.scrollViewTranslateY+=n,Math.abs(n)<.04?(i.dragging=!1,d(t)):t=h(p)}function m(t){var r=null;t.originalEvent&&(t=t.originalEvent),t.preventDefault(),r=t.touches&&t.touches[0]?t.touches[0].pageY:t.pageY;var l=e-r;l&&(i.dragging=!0),i.scrollViewTranslateY=o-l,a=s,s=i.scrollViewTranslateY,n=(s-a)*c}function u(e){if(e.preventDefault(),i.scrollView.style.transition="none",r.isTouchDevice&&(document.removeEventListener("touchmove",m,i.passiveListener),document.removeEventListener("touchend",u,i.passiveListener)),document.removeEventListener("mousemove",m,!1),document.removeEventListener("mouseup",u,!1),document.removeEventListener("oncontextmenu",u,!1),i.bottom<=0){if(i.scrollViewTranslateY<i.bottom-50||i.scrollViewTranslateY>50)return void i.prepareToRemove()}else if(i.scrollViewTranslateY<-50||i.scrollViewTranslateY>50)return void i.prepareToRemove();(0!==n||i.scrollViewTranslateY>0||i.scrollViewTranslateY<i.bottom)&&i.dragging&&(t=h(p))}return function(a){if(!a)return n=0,o=i.scrollViewTranslateY,void d(t);var l;(r.isTouchDevice||a.preventDefault(),a.originalEvent&&(a=a.originalEvent),a.button&&0!==a.button)||(n=0,s=i.scrollViewTranslateY,l=a.touches&&a.touches[0]?a.touches[0].pageY:a.pageY,e=l,o=i.scrollViewTranslateY,d(t),r.isTouchDevice&&(document.addEventListener("touchmove",m,i.passiveListener),document.addEventListener("touchend",u,i.passiveListener)),document.addEventListener("mousemove",m,!1),document.addEventListener("mouseup",u,!1),document.addEventListener("oncontextmenu",u,!1))}}},{key:"bottom",get:function(){return this.view.clientHeight-this.scrollView.clientHeight-20}},{key:"scrollViewTranslateY",set:function(e){this.scrollViewTranslateYPr=e,this.scrollView.style.transform="translateY(".concat(e,"px)");var t=Math.max(1-Math.abs(e/200),0);this.closeButton.style.opacity=t},get:function(){return this.scrollViewTranslateYPr}}]),e}(),ee=i(9),te=i.n(ee);function ie(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function oe(e,t,i){return t&&ie(e.prototype,t),i&&ie(e,i),e}var ne=function(){function e(t,i,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.appSet=t,this.appName=t.appName,this.modal=i,this.config=e.CONFIG,r.copyProperties(o,this.config);var n=document.createElement("div");n.className="".concat(e.classPref,"view"),n.style.backgroundColor=this.config.mpPageBgColor;var a=document.createElement("div");a.className="".concat(e.classPref,"close-button"),a.innerHTML=r.ICONS.CLOSE_SVG,a.style.backgroundColor=this.config.mpButtonBackgroundColor,a.childNodes[0].style.fill=this.config.mpButtonIconColor,r.isTouchDevice&&a.addEventListener("touchend",(function(){i.dragging||i.prepareToRemove()}),!1),a.addEventListener("click",(function(){i.prepareToRemove()}),!1),n.appendChild(a),this.view=n}return oe(e,null,[{key:"classPref",get:function(){var e=te.a.classPref;return e.substring(e.lastIndexOf(".")+1,e.lastIndexOf('"'))}},{key:"EVENTS",get:function(){return{}}},{key:"PAGE_CONFIG",get:function(){return{mpButtonBackgroundColor:"rgba(0,0,0,0)",mpButtonIconColor:"white",mpPageBgColor:"rgb(230,230,230)"}}},{key:"CONFIG",get:function(){return e.PAGE_CONFIG}}]),oe(e,[{key:"item",set:function(e){}}]),e}(),ae=i(10),se=i.n(ae),re={TERMS_DATA_REDY:"TERMS_DATA_REDY",REQUEST_START:"REQUEST_START",COLLECTION_DATA_REDY:"COLLECTION_DATA_REDY",COUNTERS_UPDATED:"COUNTERS_UPDATED",ITEM_ACTION:"ITEM_ACTION",NEED_MODAL:"NEED_MODAL",NEED_LIGHTBOX:"NEED_LIGHTBOX",REMOVE_LIGHTBOX:"REMOVE_LIGHTBOX",NEED_NEW_COLLECTION:"NEED_NEW_COLLECTION",NEED_PREV_COLLECTION:"NEED_PREV_COLLECTION",NEED_NEW_COLLECTION_BY_TERM:"NEED_NEW_COLLECTION_BY_TERM",FULLSCREEN_SWITCH:"FULLSCREEN_SWITCH"},le=20;function ce(e){return(ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function he(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function de(e,t){return!t||"object"!==ce(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function pe(e){return(pe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function me(e,t){return(me=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ue=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),de(this,pe(t).apply(this,arguments))}var i,o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&me(e,t)}(t,e),i=t,n=[{key:"classPref",get:function(){var e=se.a.classPref;return e.substring(e.lastIndexOf(".")+1,e.lastIndexOf('"'))}},{key:"EVENTS",get:function(){return{ITEM_MENU_ACTION:"ITEM_MENU_ACTION",NEED_NEW_COLLECTION:"NEED_NEW_COLLECTION"}}},{key:"CONFIG",get:function(){var e={};return j.copyProperties(ne.PAGE_CONFIG,e),e.mpInfoBarDateInfoEnable=!1,e.mpInfoBarExifEnable=!1,e.mpInfoBarTerms=!1,e.mpInfoBarCountersEnable=!1,e.mpModalInfoBoxTitleTextColor="black",e.mpModalInfoBoxTextColor="black",e.mpInfoBarTermsTitleColor="white",e.mpInfoBarTermsBackgroundColorAlbums="red",e.mpInfoBarTermsBackgroundColorCategories="orange",e.mpInfoBarTermsBackgroundColorTags="green",e}}],(o=[{key:"item",set:function(e){var i,o=this.view,n=this.modal,a=this,s="";function r(){if(!n.dragging){var e=this.dataset.termId,t=this.dataset.taxonomy;a.appSet.appEventManager.dispatchGMEvent(j.GMEvent(re.NEED_NEW_COLLECTION,a,{term_id:[e],taxonomy:t}))}}if(s+='<div class="'.concat(t.classPref,'item-title" style="color:\n ').concat(this.config.mpModalInfoBoxTitleTextColor,'">').concat(e.title,"</div>"),e.description&&""!==e.description&&(s+='<div class="'.concat(t.classPref,'item-description" style="color:\n ').concat(this.config.mpModalInfoBoxTextColor,'">').concat(e.description,"</div>")),""!==s&&((i=document.createElement("div")).className="".concat(t.classPref,"description-wrap"),i.style.float="none",i.innerHTML=s,o.appendChild(i)),this.config.mpInfoBarTerms){var l=document.createElement("div");if(l.className="".concat(t.classPref,"description-wrap"),l.style.float="none",l.style.minHeight="0",l.style.color=this.config.mpModalInfoBoxTextColor,o.appendChild(l),e.albums&&e.albums.length>0){var c=document.createElement("ul");c.className="".concat(t.classPref,"terms-list"),c.classList.add("".concat(t.classPref,"tags-ul"));var h=document.createElement("li");h.className="".concat(t.classPref,"terms-title"),h.innerHTML="Albums:",c.appendChild(h);for(var d=0;d<e.albums.length;d+=1){var p=document.createElement("li");p.className="".concat(t.classPref,"album"),p.innerHTML=e.albums[d].name,p.style.color=this.config.mpInfoBarTermsTitleColor,p.style.backgroundColor=this.config.mpInfoBarTermsBackgroundColorAlbums,p.onmouseover=function(){this.style.color=a.config.mpInfoBarTermsBackgroundColorAlbums,this.style.backgroundColor=a.config.mpInfoBarTermsTitleColor},p.onmouseout=function(){this.style.color=a.config.mpInfoBarTermsTitleColor,this.style.backgroundColor=a.config.mpInfoBarTermsBackgroundColorAlbums},p.dataset.termId=e.albums[d].term_id,p.dataset.taxonomy="album__in",p.addEventListener("mouseup",r,!1),j.isTouchDevice&&p.addEventListener("touchend",r,!1),c.appendChild(p)}l.appendChild(c)}if(e.categories&&e.categories.length>0){var m=document.createElement("ul");m.className="".concat(t.classPref,"terms-list"),m.classList.add("".concat(t.classPref,"tags-ul"));var u=document.createElement("li");u.className="".concat(t.classPref,"terms-title"),u.innerHTML="Categories:",m.appendChild(u);for(var g=0;g<e.categories.length;g+=1){var v=document.createElement("li");v.className="".concat(t.classPref,"category"),v.innerHTML=e.categories[g].title,v.style.color=a.config.mpInfoBarTermsTitleColor,v.style.backgroundColor=a.config.mpInfoBarTermsBackgroundColorCategories,v.onmouseover=function(){this.style.color=a.config.mpInfoBarTermsBackgroundColorCategories,this.style.backgroundColor=a.config.mpInfoBarTermsTitleColor},v.onmouseout=function(){this.style.color=a.config.mpInfoBarTermsTitleColor,this.style.backgroundColor=a.config.mpInfoBarTermsBackgroundColorCategories},v.addEventListener("mouseup",r,!1),j.isTouchDevice&&v.addEventListener("touchend",r,!1),v.dataset.termId=e.categories[g].term_id,v.dataset.taxonomy="category__in",m.appendChild(v)}l.appendChild(m)}if(e.tags&&e.tags.length>0){var f=document.createElement("ul");f.className="".concat(t.classPref,"terms-list"),f.classList.add("".concat(t.classPref,"tags-ul"));var w=document.createElement("li");w.className="".concat(t.classPref,"terms-title"),w.innerHTML="Tags:",f.appendChild(w);for(var b=0;b<e.tags.length;b+=1){var y=document.createElement("li");y.className="".concat(t.classPref,"tags"),y.innerHTML=e.tags[b].name,y.style.color=a.config.mpInfoBarTermsTitleColor,y.style.backgroundColor=a.config.mpInfoBarTermsBackgroundColorTags,y.onmouseover=function(){this.style.color=a.config.mpInfoBarTermsBackgroundColorTags,this.style.backgroundColor=a.config.mpInfoBarTermsTitleColor},y.onmouseout=function(){this.style.color=a.config.mpInfoBarTermsTitleColor,this.style.backgroundColor=a.config.mpInfoBarTermsBackgroundColorTags},y.addEventListener("mouseup",r,!1),j.isTouchDevice&&y.addEventListener("touchend",r,!1),y.dataset.termId=e.tags[b].term_id,y.dataset.taxonomy="tag__in",f.appendChild(y)}l.appendChild(f)}}if(a.config.mpInfoBarExifEnable){var C="";if(e.meta.data){e.meta.data&&e.meta.data.model&&(C+='<div class="'.concat(t.classPref,'meta-exif-value">').concat(e.meta.data.model,"</div></br>"));var x=[];e.meta.data&&e.meta.data.focallength&&x.push('<div class="'.concat(t.classPref,'meta-exif-value">').concat(e.meta.data.focallength,"</div>")),e.meta.data&&e.meta.data.aperture&&x.push('<div class="'.concat(t.classPref,'meta-exif-value">').concat(e.meta.data.aperture,"</div>")),e.meta.data&&e.meta.data.exposure&&x.push('<div class="'.concat(t.classPref,'meta-exif-value">').concat(e.meta.data.exposure,"</div>")),e.meta.data&&e.meta.data.iso&&x.push('<div class="'.concat(t.classPref,'meta-exif-value">').concat(e.meta.data.iso,"</div>"));for(var k=0;k<x.length;k+=1)C+=x[k],k<x.length-1&&(C+='<div class="'.concat(t.classPref,'meta-exif-separator"> / </div>'));""!==C&&((i=document.createElement("div")).className="".concat(t.classPref,"description-wrap"),i.style.color=a.config.mpModalInfoBoxTextColor,i.innerHTML=C,o.appendChild(i))}}if(this.config.mpInfoBarCountersEnable){(i=document.createElement("div")).className="".concat(t.classPref,"description-wrap"),i.style.color=this.config.mpModalInfoBoxTextColor,i.style.minWidth="240px";var E=document.createElement("div");E.className="".concat(t.classPref,"likes-view-com"),E.style.borderColor=this.config.mpModalInfoBoxTextColor,E.innerHTML="".concat(j.ICONS.VIEW_SVG,'<div class="').concat(t.classPref,'counter-text" \n style="color: ').concat(this.config.mpModalInfoBoxTextColor,';">').concat(e.meta.views?e.meta.views:0,"</div>"),E.getElementsByTagName("svg")[0].style.fill=this.config.mpModalInfoBoxTitleTextColor,i.appendChild(E);var T=document.createElement("div");T.className="".concat(t.classPref,"likes-view-com"),T.style.borderColor=this.config.mpModalInfoBoxTextColor,T.innerHTML="".concat(j.ICONS.HEART_SVG,'<div class="').concat(t.classPref,'counter-text"\n style="color: ').concat(this.config.mpModalInfoBoxTextColor,';">').concat(e.meta.likes?e.meta.likes:0,"</div>"),T.getElementsByTagName("svg")[0].style.fill=this.config.mpModalInfoBoxTitleTextColor,i.appendChild(T);var S=document.createElement("div");S.className="".concat(t.classPref,"likes-view-com"),S.style.borderColor=this.config.mpModalInfoBoxTextColor,S.innerHTML="".concat(j.ICONS.COMENTS_SVG,'<div class="').concat(t.classPref,'counter-text"\n style="color: ').concat(this.config.mpModalInfoBoxTextColor,';">').concat(e.meta.comment_count?e.comment_count:0,"</div>"),S.getElementsByTagName("svg")[0].style.fill=this.config.mpModalInfoBoxTitleTextColor,i.appendChild(S),o.appendChild(i)}if(this.config.mpInfoBarDateInfoEnable){(i=document.createElement("div")).className="".concat(t.classPref,"description-wrap"),i.style.color=this.config.mpModalInfoBoxTextColor;var _="";_+='<div class="'.concat(t.classPref,'item-meta-key">Upload:</div>\n <div class="').concat(t.classPref,'item-meta-value">').concat(j.timeConverter(e.date),"</div></br>"),e.meta.data&&e.meta.data.created_timestamp&&(_+='<div class="'.concat(t.classPref,'item-meta-key">Taken:</div>\n <div class="').concat(t.classPref,'item-meta-value">').concat(j.timeConverter(e.meta.data.created_timestamp),"</div></br>")),i.innerHTML='<div class="'.concat(t.classPref,'item-date">').concat(_,"</div>"),""!==_&&o.appendChild(i)}}}])&&he(i.prototype,o),n&&he(i,n),t}(ne),ge=i(11),ve=i.n(ge);function fe(e){return(fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function we(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function be(e,t){return!t||"object"!==fe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ye(e){return(ye=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ce(e,t){return(Ce=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var xe=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),be(this,ye(t).apply(this,arguments))}var i,o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ce(e,t)}(t,e),i=t,n=[{key:"classPref",get:function(){var e=ve.a.classPref;return e.substring(e.lastIndexOf(".")+1,e.lastIndexOf('"'))}},{key:"CONFIG",get:function(){var e={};return j.copyProperties(ne.PAGE_CONFIG,e),e.mpModalInfoBoxTitleTextColor="black",e}}],(o=[{key:"item",set:function(e){var i=this,o=this.view,n=e.sharelink,a="";if(""!==(a+='<div class="'.concat(t.classPref,'item-title" style="color: \'\n ').concat(this.config.mpModalInfoBoxTitleTextColor,"'\">").concat(e.title,"</div>"))){var s=document.createElement("div");s.className="".concat(t.classPref,"description-wrap"),s.style.float="none",s.style.marginRight="41px",s.innerHTML=a,o.appendChild(s)}var r=document.createElement("div");r.className="".concat(t.classPref,"description-wrap"),r.style.float="none",r.style.padding="0px 20px",o.appendChild(r);var l=!1;function c(){if(!i.modal.dragging){var t,o,a=this.dataset.type,s=(window.screen.width-600)/2,r="menubar=no,toolbar=no,resizable=yes,scrollbars=yes, top=".concat(200,",\n left=").concat(s,", height=450,width=600");switch(a){case"copy":t=document.getElementById("gmSH_title_copy"),o=this.getElementsByTagName("svg")[0],l&&window.open(n,"_blank"),window.getSelection().selectAllChildren(t);try{document.execCommand("copy")&&(window.getSelection().removeAllRanges(),o.style.fill="green",t.style.color="green",l=!0)}catch(e){window.open(n,"_blank")}break;case"facebook":window.open("https://www.facebook.com/share.php?u=".concat(n),"",r);break;case"twitter":window.open("https://twitter.com/intent/tweet?text=".concat(encodeURI(e.title),"&url=").concat(n),"",r);break;case"pinterest":window.open("http://www.pinterest.com/pin/create/button/?url=".concat(n,"&media=").concat(e.url,"\n &description=").concat(encodeURI(e.title)),"",r)}}}var h=document.createElement("div");h.dataset.type="facebook",h.className="".concat(t.classPref,"item-button-wrap"),h.id="woowbox_share_fb";var d=document.createElement("div");d.className="".concat(t.classPref,"item-button"),d.innerHTML="".concat(j.ICONS.FB_SVG_COLOR,'\n <div class="').concat(t.classPref,'button-title" style="color: #3b5998">Facebook</div>'),d.getElementsByTagName("svg")[0].style.fill="#3b5998",h.appendChild(d),h.addEventListener("mouseup",c,!1),j.isTouchDevice&&h.addEventListener("touchend",c,!1),r.appendChild(h),(h=document.createElement("div")).dataset.type="twitter",h.className="".concat(t.classPref,"item-button-wrap"),h.id="woowbox_share_tw",(d=document.createElement("div")).className="".concat(t.classPref,"item-button"),d.innerHTML="".concat(j.ICONS.TW_SVG,'\n <div class="').concat(t.classPref,'button-title" style="color: #00aced">Twitter</div>'),d.getElementsByTagName("svg")[0].style.fill="#00aced",h.appendChild(d),h.addEventListener("mouseup",c,!1),j.isTouchDevice&&h.addEventListener("touchend",c,!1),r.appendChild(h),(h=document.createElement("div")).dataset.type="pinterest",h.className="".concat(t.classPref,"item-button-wrap"),h.id="woowbox_share_pin",(d=document.createElement("div")).className="".concat(t.classPref,"item-button"),d.innerHTML="".concat(j.ICONS.PIN_SVG,'\n <div class="').concat(t.classPref,'button-title" style="color: #cc2127">Pinterest</div>'),d.getElementsByTagName("svg")[0].style.fill="#cc2127",h.appendChild(d),h.addEventListener("mouseup",c,!1),j.isTouchDevice&&h.addEventListener("touchend",c,!1),r.appendChild(h),(h=document.createElement("div")).dataset.type="copy",h.className="".concat(t.classPref,"item-button-wrap"),h.id="woowbox_share_link",(d=document.createElement("div")).className="".concat(t.classPref,"item-copy-link"),d.innerHTML="".concat(j.ICONS.LINK_SVG,'\n <div id="gmSH_title_copy" class="').concat(t.classPref,'button-title" style="color: #7d7d7d">').concat(n,"</div>"),d.getElementsByTagName("svg")[0].style.fill="#7d7d7d",h.appendChild(d),h.addEventListener("mouseup",c,!1),j.isTouchDevice&&h.addEventListener("touchend",c,!1),r.appendChild(h),o.appendChild(r)}}])&&we(i.prototype,o),n&&we(i,n),t}(ne);function ke(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var Ee=function(){function e(t,i,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),j.copyProperties(t,this),this.appApi&&(this.appName=i,this.appDiv=o,this.appDivWidth=this.appDiv.clientWidth,this.resizeTimeOut=void 0,window&&window.history&&window.history.scrollRestoration&&(window.history.scrollRestoration="manual"),this.bookmarkBox=void 0,this.modal=void 0,this.lightbox=void 0,this.audioPlayer=void 0,this.viewsSet={},this.lastViewedItem=void 0,this.likesSet={},this.settings.appName=i,this.settings.appApi=this.appApi,this.settings.galleryID="gm".concat(o.getAttribute("data-gmid")),this.settings.appEventManager=j.GMEventsManager(),this.settings.cacheItemsList=j.CacheItemsList(),this.appSet=this.settings,this.collections=[],this.terms={},this.initCollection(),this.startApp())}var t,i,o;return t=e,(i=[{key:"initCollection",value:function(){}},{key:"keydownHandler",value:function(){var e=this;return e.handlerKB=function(t){if(e.modal)e.modal.prepareToRemove();else switch(t.keyCode){case 27:e.lightbox&&e.lightbox.prepareToRemove()}},e.handlerKB}},{key:"startApp",value:function(){var e=this,t=this;this.createAudioPlayer(),this.appSet.appEventManager.addGMEventListener(re.NEED_NEW_COLLECTION,this,"pushNewCollectionByTermID"),this.appSet.appEventManager.addGMEventListener(re.NEED_NEW_COLLECTION_BY_TERM,this,"pushNewCollectionByTerm"),this.appSet.appEventManager.addGMEventListener(re.NEED_MODAL,this,"createModal"),this.appSet.appEventManager.addGMEventListener(re.ITEM_ACTION,this,"itemActionHandler"),this.appSet.lightBoxEnable&&this.appSet.appEventManager.addGMEventListener(re.NEED_LIGHTBOX,this,"needLightbox"),this.appSet.appEventManager.addGMEventListener(re.COUNTERS_UPDATED,this,"itemsCountersUpdateHandler"),document.addEventListener("keydown",this.keydownHandler(),!0),window.addEventListener("resize",(function(){e.windowResizeHandler()})),this.popstateHandler=function(){t.modal&&t.modal.prepareToRemove(),t.lightbox?t.lightbox.prepareToRemove():t.collections.length>0&&t.collections[t.collections.length-1]&&t.itemFromHash&&t.collections[t.collections.length-1].tryOpenLightboxForID(t.itemFromHash)},window.addEventListener("popstate",this.popstateHandler,!1),this.itemFromHash&&(this.collections[0].startItem=this.itemFromHash,window.history.replaceState(null,null,window.location.pathname+window.location.search)),this.appQuery&&this.collections[0].startRequest(this.appQuery)}},{key:"itemHash",value:function(e){return"#".concat(this.appName,"-").concat(e.ID)}},{key:"pushNewCollectionByTerm",value:function(e){if(e.params||e.params.term){var t=e.params.term;t.sharelink&&window.open(t.sharelink,"_self")}}},{key:"pushNewCollectionByTermID",value:function(e){if(e.params||e.params.term_id||!e.params.taxonomy){var t=e.params.term_id,i=e.params.taxonomy,o=j.addParamsToURL(this.appSet.post_url,"".concat(this.appSet.galleryID,"[").concat(i,"]"),t);window.open(o,j.moduleSettings(this.appName).linkTargetWindow)}}},{key:"itemActionHandler",value:function(e){var t;if(e&&e.params&&e.params.type&&e.params.item)switch(e.params.type){case"like":this.likeItem=e.params.item;break;case"bookmark":break;case"view":if(this.viewItem=e.params.item,!this.appSet.galleryScrollPositionControll)return;t=this.collections[this.collections.length-1],void 0!==e.params.itemIndex&&t&&t.itemPageByIndex&&t.addPageToStageByPageNum(t.itemPageByIndex(e.params.itemIndex))}}},{key:"itemsCountersUpdate",value:function(){if(this.viewsSet){var e=[];for(var t in this.viewsSet)this.viewsSet[t]&&e.push(t);if(e.length>0){var i={likes:[],views:e},o=JSON.stringify({counter:i});j.request(o,this,re.COUNTERS_UPDATED),this.viewsSet={}}}}},{key:"itemsCountersUpdateHandler",value:function(){window.localStorage.setItem("gm_likesSet",JSON.stringify(this.likesSet))}},{key:"createLightbox",value:function(){j.trace("********* Create Lightbox *********")}},{key:"needLightbox",value:function(e){if(e.params||e.params.collection){var t=e.params.collection,i=e.params.index,o=t.filteredCollection[i];this.lightbox&&this.lightbox.prepareToRemove(),window.localStorage.getItem("gm_likesSet")&&(this.likesSet=JSON.parse(window.localStorage.getItem("gm_likesSet")));var n=this.createLightbox();if(n){this.lightbox=n,this.lightbox.initByList(t.filteredCollection,i);var a=this.itemHash(o);window.location.hash!==a&&window.history.pushState(null,null,a)}}}},{key:"updateItemLink",value:function(e){window.history.replaceState(null,null,this.itemHash(e))}},{key:"removeLightbox",value:function(e){if(e.target===this.lightbox){var t=this,i=e.target;setTimeout((function(){i.view&&i.view.parentNode&&i.view.parentNode.removeChild(i.view),t.lightbox&&(t.lightbox=void 0)}),100),this.itemsCountersUpdate(),this.itemFromHash&&window.history.back()}}},{key:"checkGalleryYpositionForViewedItem",value:function(){if(this.lastViewedItem){var e=this.lastViewedItem,t=(window.innerHeight-e.view.view.clientHeight)/2,i=window.innerHeight-e.view.view.getBoundingClientRect().bottom<-e.view.view.clientHeight||e.view.view.getBoundingClientRect().bottom<0&&e.view.view.getBoundingClientRect().top<0?e.view.view.getBoundingClientRect().top+window.pageYOffset-t:void 0;i&&j.scrollWindowToY(i)}}},{key:"createModal",value:function(e){if(e.params.type&&e.params.item){var t=e.params.item,i=$.CONFIG;i.mwBackgroundColor=this.appSet.modaBgColor;var o,n=document.getElementsByTagName("body")[0];if(i.mwParentDiv=this.lightbox?this.lightbox.view:n,i.mwFixedMode=!this.lightbox,!this.modal){this.modal=new $(this.appSet,i),this.appSet.appEventManager.addGMEventListener($.EVENTS.REMOVE_MODAL_WINDOW,this,"deleteModal");var a,s=xe.PAGE_CONFIG;switch(s.mpPageBgColor=this.appSet.modalInfoBoxBgColor,s.mpButtonIconColor=this.appSet.modalInfoBoxTitleTextColor,e.params.type){case"share":(a=xe.CONFIG).mpModalInfoBoxTitleTextColor=this.appSet.modalInfoBoxTitleTextColor,j.copyProperties(s,a),o=new xe(this.appSet,this.modal,a);break;case"info":(a=ue.CONFIG).mpModalInfoBoxTitleTextColor=this.appSet.modalInfoBoxTitleTextColor,a.mpModalInfoBoxTextColor=this.appSet.modalInfoBoxTextColor,a.mpInfoBarDateInfoEnable=this.appSet.infoBarDateInfoEnable,a.mpInfoBarExifEnable=this.appSet.infoBarExifEnable,a.mpInfoBarCountersEnable=this.appSet.infoBarCountersEnable,a.mpInfoBarTerms=this.appSet.infoBarTerms,a.mpInfoBarTermsTitleColor=this.appSet.infoBarTermsTitleColor,a.mpInfoBarTermsBackgroundColorAlbums=this.appSet.infoBarTermsBackgroundColorAlbums,a.mpInfoBarTermsBackgroundColorCategories=this.appSet.infoBarTermsBackgroundColorCategories,a.mpInfoBarTermsBackgroundColorTags=this.appSet.infoBarTermsBackgroundColorTags,j.copyProperties(s,a),o=new ue(this.appSet,this.modal,a)}}o.item=t,this.modal.pushPage(o.view)}}},{key:"deleteModal",value:function(){this.modal&&delete this.modal,this.appSet.appEventManager.removeGMEventListener($.EVENTS.REMOVE_MODAL_WINDOW,this,"deleteModal")}},{key:"fullscreenSwitch",value:function(){var e=this.lightbox.view;e&&(j.toggleFullScreen(e),this.windowResizeHandler())}},{key:"windowResize",value:function(){this.bookmarkBox&&this.collectionTranslateY!==this.bookmarkBox.height&&(this.collectionTranslateY=this.bookmarkBox.height,this.showBookmarkInfo(this.bookmarkStatusShow)),this.collections.length>0&&this.collections[this.collections.length-1].resizeHandler(),this.lightbox&&this.lightbox.resizeHandler()}},{key:"windowResizeHandler",value:function(){var e=this;clearTimeout(this.resizeTimeOut),j.isTouchDevice?this.resizeTimeOut=setTimeout((function(){e.windowResize()}),200):this.windowResize()}},{key:"createAudioPlayer",value:function(){var e;null!=(e=document.getElementById("gmAudioPlayer")?document.getElementById("gmAudioPlayer"):new Audio)&&e.canPlayType&&e.canPlayType("audio/mpeg")&&(e.id="gmAudioPlayer",e.setAttribute("type","audio/mpeg"),e.setAttribute("codecs","mp3"),this.audioPlayer=e,this.appDiv.appendChild(this.audioPlayer))}},{key:"appSet",set:function(e){}},{key:"itemFromHash",get:function(){var e,t=window.location.hash.indexOf(this.appName);return t+1&&(e=window.location.hash.substr(t).split("-").length>=2?parseInt(window.location.hash.substr(t).split("-")[1]):void 0),e}},{key:"likeItem",set:function(e){if(e){e.meta.likes||(e.meta.likes=0),e.meta.likes=parseInt(e.meta.likes)+1,e.view&&e.view.like&&(e.view.like=!0);var t=e.ID;if(!this.likesSet[t]){this.likesSet[t]="like",this.viewsSet[t]&&delete this.viewsSet[t];var i={likes:[t],views:[t]},o=JSON.stringify({counter:i});j.request(o,this,re.COUNTERS_UPDATED),j.likesSet(this.likesSet)}}}},{key:"viewItem",set:function(e){var t=e.ID;this.updateItemLink(e),this.lastViewedItem=e,this.viewsSet[t]="view"}}])&&ke(t.prototype,i),o&&ke(t,o),e}();function Te(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Se(e,t,i){return t&&Te(e.prototype,t),i&&Te(e,i),e}function _e(e){return(_e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ie(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Le(e,t){return!t||"object"!==_e(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ne(e,t,i){return(Ne="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,i){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Me(e)););return e}(e,t);if(o){var n=Object.getOwnPropertyDescriptor(o,t);return n.get?n.get.call(i):n.value}})(e,t,i||e)}function Me(e){return(Me=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Be(e,t){return(Be=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Pe=function(e){function t(e){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=Le(this,Me(t).call(this,e))).scrollHandler=void 0,i}var i,o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Be(e,t)}(t,e),i=t,(o=[{key:"createLayout",value:function(){this.scrollHandler||(this.scrollHandler=this.scrollHandlerFunction(),this.scrollHandler&&window.addEventListener("scroll",this.scrollHandler,!1)),this.page_Amount=Math.min(le,this.filteredCollection.length)}},{key:"activate",value:function(){Ne(Me(t.prototype),"activate",this).call(this),this.scrollHandler=this.scrollHandlerFunction(),this.scrollHandler&&window.addEventListener("scroll",this.scrollHandler,!1)}},{key:"deactivate",value:function(){Ne(Me(t.prototype),"deactivate",this).call(this),window.removeEventListener("scroll",this.scrollHandler,!1),this.scrollHandler=void 0}},{key:"scrollHandlerFunction",value:function(){var e=this;return function(){e.offsetYcontroll()}}},{key:"offsetYcontroll",value:function(){this.checkIfNeedNewPage()}},{key:"itemPageByIndex",value:function(e){return Math.floor(e/this.page_Amount)+1}},{key:"checkIfNeedNewPage",value:function(){this.bottomSpace<200&&this.addPageToStage()}},{key:"bottomSpace",get:function(){var e=this.view.getBoundingClientRect(),t=window.innerHeight;return e.bottom-t}}])&&Ie(i.prototype,o),n&&Ie(i,n),t}(function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.appName=t,this.parentWrap=window,this.properties=void 0,this.itemsList=[],this.filteredList=[],this.presentedList=[],this.page_Amount=0,this.cureantPage=void 0,this.termsList=[],this.termsListHeaderShow=!1,this.term=void 0,this.tagsCloud={},this.filterPr=0,this.view=document.createElement("div"),this.header=document.createElement("div"),this.headerNavi=document.createElement("div"),this.content=document.createElement("div"),this.footer=document.createElement("div"),this.header.appendChild(this.headerNavi),this.view.appendChild(this.header),this.view.appendChild(this.content),this.view.appendChild(this.footer),this.viewWidth=0,this.startItem=void 0;var i=u.CONFIG;i.im_link=j.moduleSettings(this.appName).collectionThumbSubMenuVisibility,i.im_info=j.moduleSettings(this.appName).collectionThumbSubMenuInfo,i.im_discuss=j.moduleSettings(this.appName).collectionThumbSubMenuComents,i.im_download=j.moduleSettings(this.appName).collectionThumbSubMenuDownload,i.im_share=j.moduleSettings(this.appName).collectionThumbSubMenuShare,i.im_like=j.moduleSettings(this.appName).collectionThumbSubMenuLikes,i.im_backgroundColor=j.moduleSettings(this.appName).collectionThumbSubMenuBgColor,i.im_backgroundColorOver=j.moduleSettings(this.appName).collectionThumbSubMenuBgColorHover,i.im_iconColor=j.moduleSettings(this.appName).collectionThumbSubMenuIconColor,i.im_iconColorOver=j.moduleSettings(this.appName).collectionThumbSubMenuIconColorHover,i.im_likesSet=j.likesSet,i.im_isContainIdInBookmarkSet=j.isContainIdInBookmarkSet,this.itemMenu=new u(j.moduleSettings(this.appName),u.MENU_TYPE.THUMB,i),j.moduleSettings(this.appName).appEventManager.addGMEventListener(u.EVENTS.ITEM_MENU_ACTION,this,"itemMenuActionHandler")}return Se(e,null,[{key:"EVENTS",get:function(){return{PAGE_ADDED:"PAGE_ADDED",DATA_COMPLETED:"DATA_COMPLETE"}}}]),Se(e,[{key:"getItemIndexByID",value:function(e){for(var t=0;t<this.filteredCollection.length;t+=1)if(parseInt(this.filteredCollection[t].ID)===parseInt(e))return t;return 0}},{key:"itemMenuActionHandler",value:function(e){if(e.target===this.itemMenu){var t,i,o=e.params.item;switch(e.params.type){case"info":j.moduleSettings(this.appName).appEventManager.dispatchGMEvent(j.GMEvent(re.NEED_MODAL,this,{type:"info",item:o}));break;case"link":o.link&&window.open(o.link,j.moduleSettings(this.appName).linkTargetWindow);break;case"like":j.moduleSettings(this.appName).appEventManager.dispatchGMEvent(j.GMEvent(re.ITEM_ACTION,this,{type:"like",item:o})),this.itemMenu.updateForItem(o);break;case"bookmark":j.moduleSettings(this.appName).appEventManager.dispatchGMEvent(j.GMEvent(re.ITEM_ACTION,this,{type:"bookmark",item:o})),this.itemMenu.updateForItem(o);break;case"share":j.moduleSettings(this.appName).appEventManager.dispatchGMEvent(j.GMEvent(re.NEED_MODAL,this,{type:"share",item:o}));break;case"download":t=o.url,(i=document.createElement("A")).href=t,i.download=t.substr(t.lastIndexOf("/")+1),document.body.appendChild(i),i.click(),document.body.removeChild(i);break;case"coments":t="".concat(o.sharelink,"/#comments"),window.open(t,j.moduleSettings(this.appName).linkTargetWindow);break;case"fullscreen":j.moduleSettings(this.appName).appEventManager.dispatchGMEvent(j.GMEvent(re.FULLSCREEN_SWITCH,this,null))}}}},{key:"init",value:function(){this.showPreloader(!0)}},{key:"startRequest",value:function(e){this.query=e,this.query.per_page=0,this.query.page=1,j.moduleSettings(this.appName).appEventManager.addGMEventListener(re.COLLECTION_DATA_REDY,this,"dataLoaded"),j.request(JSON.stringify({library:this.query}),this,re.COLLECTION_DATA_REDY)}},{key:"showPreloader",value:function(e){var t,i=this;if(e){if(document.getElementById("".concat(this.appName,"_preloader")))return;(t=j.createPreloaderView(j.moduleSettings(this.appName).collectionPreloaderColor)).id="".concat(this.appName,"_preloader"),this.view.appendChild(t)}else document.getElementById("".concat(this.appName,"_preloader"))&&(t=document.getElementById("".concat(this.appName,"_preloader")),j.fadeOut(t,(function(){var e=document.getElementById("".concat(i.appName,"_preloader"));e&&e.parentNode&&e.parentNode.removeChild(t)}),500))}},{key:"dataLoaded",value:function(e){var t=e.params.data;if(t){try{var i=JSON.parse(t);if(i.data){if(0===i.data.length&&this.query.s)return this.searchRequestIsEmptyAlerts(),void this.showPreloader(!1);this.addItemsToCollection(i.data),i.properties&&this.createTermsListAndSortItemsByTermsListAndUpdateProperties(i.properties)}j.moduleSettings(this.appName).lightBoxEnable&&this.startItem&&this.tryOpenLightboxForID(this.startItem)}catch(e){j.trace(e)}this.showPreloader(!1),this.itemsList&&this.updateViewByData()}}},{key:"searchRequestIsEmptyAlerts",value:function(){var e=document.createElement("div");e.className="gm-search-alert";var t=j.moduleSettings(this.appName).searchFormResultAlert.split("%query%").join(this.query.s);e.innerHTML=j.moduleSettings(this.appName).searchFormResultAlert?t:'0 items found for "'.concat(this.query.s,'"'),this.view.appendChild(e)}},{key:"updateViewByData",value:function(){if(this.itemsList)for(var e=0;e<this.itemsList.length;e+=1){var t=this.itemViewConstructor(e);this.itemsList[e].view=t,t.init()}this.createLayout()}},{key:"tryOpenLightboxForID",value:function(e){for(var t=0;t<this.filteredCollection.length;t+=1){var i=this.filteredCollection[t];parseInt(e)===parseInt(i.ID)&&(j.moduleSettings(this.appName).appEventManager.dispatchGMEvent(j.GMEvent(re.NEED_LIGHTBOX,this,{collection:this,index:t})),t=this.filteredCollection.length)}}},{key:"createTermsListAndSortItemsByTermsListAndUpdateProperties",value:function(e){var t=[],i=j.appQueryOrderMap(this.query);if(0!==i.length){for(var o=0;o<i.length;o+=1){var n=i[o],a=e[n.query][n.term_id],s=j.Term(a,this.appName);if(s.itemsList=[],this.itemsList)for(var r=0;r<this.itemsList.length;r+=1){var l=this.itemsList[r];if(l[s.taxonomy_type]){var c=l[s.taxonomy_type];for(var h in c)c[h].term_id===s.term_id&&(s.itemsList.push(l),t.push(l),this.itemsList.splice(r,1),r-=1)}}this.termsList.push(s)}this.itemsList=t.concat(this.itemsList)}}},{key:"addItemsToCollection",value:function(e){for(var t=0;t<e.length;t+=1){var i=j.Item(e[t],this.appName);if(i.index=this.itemsList.length+t,i.tags&&i.tags.length>0)for(var o=0;o<i.tags.length;o+=1){var n=i.tags[o];this.tagsCloud[n.term_id]=n.name}this.itemsList.push(i)}}},{key:"trySortItemsByTerms",value:function(){if(this.queryTermsList=j.termsListFromAppQuery(this.query),this.itemsList&&this.queryTermsList){for(var e=[],t=0;t<this.queryTermsList.length;t+=1)for(var i=this.queryTermsList[t],o=0;o<this.itemsList.length;o+=1){var n=this.itemsList[o];if(n[i.taxonomy_type]){var a=n[i.taxonomy_type];for(var s in a)a[s].term_id===i.term_id&&(e.push(n),this.itemsList.splice(o,1),o-=1)}}this.itemsList=e.concat(this.itemsList)}}},{key:"refteshDataInItem",value:function(){for(var e=0;e<this.filteredCollection.length;e+=1){this.filteredCollection[e].view.updateSomeData()}}},{key:"activate",value:function(){this.updateLayout()}},{key:"deactivate",value:function(){j.moduleSettings(this.appName).appEventManager.removeGMEventListener(re.COLLECTION_DATA_REDY,this,"dataLoaded")}},{key:"addPageToStageByPageNum",value:function(t){var i=this;if(0!==this.itemsList.length&&(void 0===this.cureantPage||this.cureantPage!==t)){var o=Math.ceil(this.filteredCollection.length/this.page_Amount);if(void 0===this.cureantPage&&(this.cureantPage=0),void 0===t){if(this.cureantPage>=o)return}else if(t>o)return;var n=this.cureantPage*this.page_Amount,a=Math.min(void 0===t?n+this.page_Amount:t*this.page_Amount,this.filteredCollection.length);clearTimeout(this.layoutSizerDelay);for(var s=1,r=n;r<a;r+=1){var l=this.filteredCollection[r].view;l.index=r,l.opacity={opacity:0,delay:0},this.addItemToStage(l),l.opacity={opacity:1,delay:100*s},s+=1}this.cureantPage=void 0===t?this.cureantPage+1:t,this.resizeHandler(),this.layoutSizerDelay=setTimeout((function(){i.checkIfNeedNewPage&&i.checkIfNeedNewPage(),j.moduleSettings(i.appName).appEventManager.dispatchGMEvent(j.GMEvent(e.EVENTS.PAGE_ADDED,i,{pagesAmount:i.page_Amount,cureantPage:i.cureantPage}))}),1e3)}}},{key:"addPageToStage",value:function(){this.addPageToStageByPageNum()}},{key:"addItemToStage",value:function(e){e.updateSize(),e.display="block";var t=e.view;this.content.appendChild(t),this.presentedList.push(e)}},{key:"itemsAction",value:function(e,t){switch(t){case"lightBox":j.moduleSettings(this.appName).appEventManager.dispatchGMEvent(j.GMEvent(re.NEED_LIGHTBOX,this,{collection:this,index:e}))}}},{key:"removeItemViewFormStage",value:function(){this.removePresentedItems(),this.presentedList=[],this.cureantPage=void 0}},{key:"removePresentedItems",value:function(){for(var e=0;e<this.presentedList.length;e+=1)this.presentedList[e].display="none"}},{key:"showPresentedItems",value:function(){for(var e=0;e<this.presentedList.length;e+=1)this.presentedList[e].display="block"}},{key:"createLayout",value:function(){this.page_Amount=this.filteredCollection.length}},{key:"resizeHandler",value:function(){this.viewWidth!==this.view.clientWidth&&(this.updateLayout(),this.viewWidth=this.view.clientWidth)}},{key:"scrollToTop",value:function(){var e=Math.max(window.pageYOffset+this.view.getBoundingClientRect().top-40,0);j.scrollWindowToY(e)}},{key:"filtred",value:function(e){this.removeItemViewFormStage(),this.filtredById=e,this.createLayout()}},{key:"tagsActionHandler",value:function(e){e.params&&e.params.tagId&&this.filtred(e.params.tagId)}},{key:"prepareToRemove",value:function(){this.showPreloader(!1),j.moduleSettings(this.appName).appEventManager.removeGMEventListener(re.COLLECTION_DATA_REDY,this,"dataLoaded")}},{key:"filtredById",set:function(e){if(this.itemsList&&(this.filteredList=[],this.filterPr=e,0!==e))for(var t=0;t<this.itemsList.length;t+=1){var i=this.itemsList[t];i.hasTag(e)&&this.filteredList.push(i)}},get:function(){return this.filterPr}},{key:"filteredCollection",get:function(){return this.filteredList.length>0?this.filteredList:this.itemsList}}]),e}());function Oe(e){return(Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ae(e,t){return!t||"object"!==Oe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ve(e,t,i){return(Ve="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,i){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ze(e)););return e}(e,t);if(o){var n=Object.getOwnPropertyDescriptor(o,t);return n.get?n.get.call(i):n.value}})(e,t,i||e)}function ze(e){return(ze=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function He(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&De(e,t)}function De(e,t){return(De=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Re(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fe(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ge(e,t,i){return t&&Fe(e.prototype,t),i&&Fe(e,i),e}!function(){console.log("%c Gmedia Gallery Amron v.4.5","background: #222; color: #bada55");var e="gmedia-amron-",t=(j.trace,j.moduleSettings),i=function(){function i(o,n){Re(this,i),this.delegate=o,this.appName=o.appName,this.index=n,this.view=document.createElement("div"),this.view.className="".concat(e,"masonry-thumb-pint"),this.view.style.padding="".concat(t(this.appName).thumbSpacing/2,"px"),this.imageHolder=document.createElement("div"),this.imageHolder.className="".concat(e,"image-holder"),this.view.appendChild(this.imageHolder),this.sizePr=j.Size(1,1),this.item=void 0,this.imageRetio=1,this.opacityDelay=void 0,this.displayPr="none"}return Ge(i,[{key:"init",value:function(){var i=this.delegate.itemsList[this.index];this.item=i;var o=this.delegate.itemWidth;this.type=i.type,this.itemViewSrc=!1,this.img=new Image;var n,a=this;if(this.img.onload=function(){this.setAttribute("alt",i.title),a.view.clientWidth/this.naturalWidth>1.1&&i.itemViewSrc&&!a.itemViewSrc&&(this.src=i.itemViewSrc,a.itemViewSrc=!0),a.imageHolder.style.minHeight=null,this.style.opacity="1"},this.imageHolder.appendChild(this.img),t(this.appName).lightBoxEnable){(n=document.createElement("div")).className="".concat(e,"image-over"),n.style.backgroundColor=t(this.appName).collectionThumbHoverColor,this.imageHolder.appendChild(n);var s=document.createElement("div");switch(s.className="".concat(e,"zoom"),this.item.type){case"video":"vimeo"===this.item.mime_type.split("/")[1]?(s.classList.add("media"),s.innerHTML=j.ICONS.VIMEO_SVG,s.firstChild.style.fill="#00adef"):(s.classList.add("media"),s.innerHTML=j.ICONS.YOU_TUBE_SVG,s.firstChild.style.fill="#e02f2f");break;case"audio":s.classList.add("media"),s.innerHTML=j.ICONS.NOTE_SVG,s.firstChild.style.fill="#7a7a7a";break;default:s.innerHTML=j.ICONS.MAXIMIZE_SVG}this.imageHolder.appendChild(s)}function r(e){if(t(a.appName).lightBoxEnable)switch(e.type){case"mouseenter":this.classList.add("gmedia-hover"),n&&n.classList.add("gmedia-hover");break;case"mouseleave":this.classList.remove("gmedia-hover"),n&&n.classList.remove("gmedia-hover");break;case"click":this.classList.remove("gmedia-hover"),n&&n.classList.remove("gmedia-hover"),a.delegate.itemsAction(a.index,"lightBox")}}this.imageHolder.addEventListener("mouseenter",r,!1),this.imageHolder.addEventListener("mouseleave",r,!1),this.imageHolder.addEventListener("click",r,!1),o/i.itemViewThumbSize.width>1.1?this.img.src=i.itemViewSrc:this.img.src=i.itemViewThumbSrc,this.imageRetio=i.itemViewSize.height/i.itemViewSize.width,this.imageHolder.style.minHeight="".concat(this.imageRetio*o,"px");var l,c=document.createElement("div");if(c.className="".concat(e,"item-content"),c.style.backgroundColor=t(this.appName).collectionThumbContentBGColor,this.view.appendChild(c),t(this.appName).collectionThumbTitleShow&&i.title&&""!==i.title&&((l=document.createElement("div")).className="".concat(e,"item-title"),l.style.fontSize="".concat(t(this.appName).collectionThumbFontSize,"px"),l.style.color=t(this.appName).collectionThumbTitleColor,l.innerHTML=i.title,c.appendChild(l)),t(this.appName).collectionThumbDescriptionShow&&i.description&&""!==i.description){var h=document.createElement("div");h.className="".concat(e,"item-description"),h.style.fontSize="".concat(t(this.appName).collectionThumbDescriptionFontSize,"px"),h.style.color=t(this.appName).collectionThumbDescriptionColor,h.innerHTML=i.description,c.appendChild(h)}var d=document.createElement("div");if(d.className="".concat(e,"item-menu-holder"),i.link){var p=document.createElement("a");p.className="".concat(e,"item-read-more"),p.innerHTML=t(this.appName).collectionReadMoreButtonLabel,p.style.backgroundColor=t(this.appName).collectionReadMoreButtonBGColor,p.style.color=t(this.appName).collectionReadMoreButtonLabelColor,p.setAttribute("target",t(this.appName).linkTargetWindow),p.setAttribute("href",i.link),p.onmouseenter=function(){this.style.backgroundColor=t(a.appName).collectionReadMoreButtonBGColorHover,this.style.color=t(a.appName).collectionReadMoreButtonLabelColorHover},p.onmouseleave=function(){this.style.backgroundColor=t(a.appName).collectionReadMoreButtonBGColor,this.style.color=t(a.appName).collectionReadMoreButtonLabelColor},d.appendChild(p)}d.childNodes.length>0&&c.appendChild(d)}},{key:"resize",value:function(){return this.view.clientHeight}},{key:"updateSomeData",value:function(){}},{key:"visibility",set:function(e){this.view.style.visibility=e}},{key:"display",set:function(e){"none"===e&&clearTimeout(this.opacityDelay),this.view.style.display=e,this.displayPr=e},get:function(){return this.displayPr}},{key:"opacity",set:function(e){var t=this;e.delay?this.opacityDelay=setTimeout((function(){t.view.style.opacity=e.opacity}),e.delay):(clearTimeout(this.opacityDelay),t.view.style.opacity=e.opacity)}}]),i}(),o=function(o){function n(i){var o;return Re(this,n),(o=Ae(this,ze(n).call(this,i))).view.className="".concat(e,"masonry-collection"),o.header.className="".concat(e,"header"),o.content.className="".concat(e,"content"),o.content.style.paddingBottom="".concat(t(i).thumbSpacing,"px"),o.columnsArr=[],o}return He(n,o),Ge(n,[{key:"dataLoaded",value:function(e){if(Ve(ze(n.prototype),"dataLoaded",this).call(this,e),j.moduleSettings(this.appName).tagsFilter){var i=G.CONFIG;i.tl_all=t(this.appName).tagCloudAll,i.tl_backgrounColor=t(this.appName).tagCloudBgColor,i.tl_backgrounColorOver=t(this.appName).tagCloudBgColorOver,i.tl_titleColor=t(this.appName).tagCloudTextColor,i.tl_titleColorOver=t(this.appName).tagCloudTextColorOver,this.tagsListContoller=new G(i,t(this.appName)),t(this.appName).appEventManager.addGMEventListener(G.EVENTS.TAG_ACTION,this,"tagsActionHandler"),this.header.appendChild(this.tagsListContoller.view),this.tagsListContoller.updateViewByList(this.tagsCloud,"0")}}},{key:"createLayout",value:function(){Ve(ze(n.prototype),"createLayout",this).call(this),this.createColumns(),this.addPageToStage()}},{key:"updateLayout",value:function(){if(!1!==this.createColumns()){this.removePresentedItems();for(var e=0;e<this.presentedList.length;e+=1)this.arangeItemToColum(this.presentedList[e])}else this.presentedList&&this.presentedList[0]&&"none"===this.presentedList[0].display&&this.showPresentedItems()}},{key:"createColumns",value:function(){var i=Math.floor(this.content.clientWidth/Math.min(this.content.clientWidth,t(this.appName).collectionThumbRecomendedWidth));if(this.columnsArr.length!==i){for(var o=0;o<this.columnsArr.length;o+=1)this.content.removeChild(this.columnsArr[o]);this.columnsArr=[];for(var n=0;n<i;n+=1){var a=document.createElement("div");a.className="".concat(e,"collection-column"),a.style.width="".concat(100/i,"%"),this.columnsArr.push(a),this.content.appendChild(a)}return!0}return!1}},{key:"getColumWithMinHeight",value:function(){for(var e=this.columnsArr[0].clientHeight,t=0,i=1;i<this.columnsArr.length;i+=1)e!==Math.min(e,this.columnsArr[i].clientHeight)&&(e=Math.min(e,this.columnsArr[i].clientHeight),t=i);return t}},{key:"arangeItemToColum",value:function(e){var t=e.view;this.columnsArr[this.getColumWithMinHeight()].appendChild(t),e.display="block"}},{key:"addItemToStage",value:function(e){this.arangeItemToColum(e),this.presentedList.push(e)}},{key:"itemViewConstructor",get:function(){var e=this;return function(t){return new i(e,t)}}},{key:"itemWidth",get:function(){var e=Math.floor(this.content.clientWidth/t(this.appName).collectionThumbRecomendedWidth);return this.content.clientWidth/e}}]),n}(Pe),n=function(e){function i(){return Re(this,i),Ae(this,ze(i).apply(this,arguments))}return He(i,e),Ge(i,[{key:"initCollection",value:function(){var e=new o(this.appName);this.collections.push(e),this.appDiv.appendChild(e.view),e.init()}},{key:"createLightbox",value:function(){var e=A.CONFIG;return e.lb_copyR_Alert=this.appSet.copyR_Alert,e.lb_backgroundColor=this.appSet.sliderBgColor,e.lb_headerFooterColor=this.appSet.sliderHeaderFooterBgColor,e.lb_preloaderColor=this.appSet.sliderPreloaderColor,e.lb_sliderNavigationColor=this.appSet.sliderNavigationColor,e.lb_sliderNavigationIconColor=this.appSet.sliderNavigationIconColor,e.lb_sliderNavigationColorOver=this.appSet.sliderNavigationColorOver,e.lb_sliderNavigationIconColorOver=this.appSet.sliderNavigationIconColorOver,e.lb_itemCounterColor=this.appSet.itemCounterColor,e.lb_itemTitleEnable=this.appSet.sliderItemTitleEnable,e.lb_itemTitleFontSize=this.appSet.sliderItemTitleFontSize,e.lb_itemTitleTextColor=this.appSet.sliderItemTitleTextColor,e.lb_thumbBarEnable=this.appSet.sliderThumbBarEnable,e.lb_thumbBarHoverColor=this.appSet.sliderThumbBarHoverColor,e.lb_zoom=!0,e.lb_itemInfoEnable=this.appSet.sliderInfoEnable,e.lb_itemShare=this.appSet.sliderSocialShareEnabled,e.lb_itemDownload=this.appSet.sliderItemDownload,e.lb_itemLike=this.appSet.sliderLikesEnabled,e.lb_discuss=this.appSet.sliderItemDiscuss,e.lb_menuBackgroundColor=this.appSet.sliderThumbSubMenuBackgroundColor,e.lb_menuBackgroundColorOver=this.appSet.sliderThumbSubMenuBackgroundColorOver,e.lb_menuIconColor=this.appSet.sliderThumbSubMenuIconColor,e.lb_menuIconColorOver=this.appSet.sliderThumbSubMenuIconHoverColor,e.lb_slideshowEneble=!0,e.lb_slideshowIndicatorColor="rgba(255,255,255,1)",e.lb_slideshowIndicatorColorBg="rgba(255,255,255,0.3)",e.lb_slideshowTimer=8,e.lb_audioPlayer=this.audioPlayer,e.lb_likesSet=j.likesSet,e.lb_isContainIdInBookmarkSet=j.isContainIdInBookmarkSet,this.appSet.appEventManager.addGMEventListener(A.EVENTS.LB_NEED_MODAL,this,"createModal"),this.appSet.appEventManager.addGMEventListener(A.EVENTS.LB_REMOVE_LIGHTBOX,this,"removeLightbox"),this.appSet.appEventManager.addGMEventListener(A.EVENTS.LB_FULLSCREEN_SWITCH,this,"fullscreenSwitch"),this.appSet.appEventManager.addGMEventListener(A.EVENTS.LB_ITEM_ACTION,this,"itemActionHandler"),new A(j.moduleSettings(this.appName),e)}},{key:"removeLightbox",value:function(e){Ve(ze(i.prototype),"removeLightbox",this).call(this,e),this.appSet.appEventManager.removeGMEventListener(A.EVENTS.LB_NEED_MODAL,this,"createModal"),this.appSet.appEventManager.removeGMEventListener(A.EVENTS.LB_REMOVE_LIGHTBOX,this,"removeLightbox"),this.appSet.appEventManager.removeGMEventListener(A.EVENTS.LB_FULLSCREEN_SWITCH,this,"fullscreenSwitch"),this.appSet.appEventManager.removeGMEventListener(A.EVENTS.LB_ITEM_ACTION,this,"itemActionHandler")}},{key:"appSet",set:function(e){t(this.appName).lightBoxEnable="1"===e.lightBoxEnable,t(this.appName).thumbSpacing=parseInt(e.thumbSpacing),t(this.appName).collectionPreloaderColor="#".concat(e.collectionPreloaderColor),t(this.appName).linkTargetWindow=e.linkTargetWindow,t(this.appName).infoBarTermsClickNewPageEnable="1"===e.infoBarTermsClickNewPageEnable,t(this.appName).tagsFilter="1"===e.tagsFilter,t(this.appName).tagCloudAll=e.tagCloudAll,t(this.appName).tagCloudTextColor=6===e.tagCloudTextColor.length?"#".concat(e.tagCloudTextColor):e.tagCloudTextColor,t(this.appName).tagCloudBgColor=6===e.tagCloudBgColor.length?"#".concat(e.tagCloudBgColor):e.tagCloudBgColor,t(this.appName).tagCloudTextColorOver=e.tagCloudTextColorOver?e.tagCloudTextColorOver:t(this.appName).tagCloudBgColor,t(this.appName).tagCloudBgColorOver=e.tagCloudBgColorOver?e.tagCloudBgColorOver:t(this.appName).tagCloudTextColor,t(this.appName).collectionThumbRecomendedWidth=parseInt(e.collectionThumbRecomendedWidth),t(this.appName).collectionThumbHoverColor=e.collectionThumbHoverColor,t(this.appName).collectionThumbContentBGColor=e.collectionThumbContentBGColor,t(this.appName).collectionThumbTitleShow="1"===e.collectionThumbTitleShow,t(this.appName).collectionThumbTitleColor=e.collectionThumbTitleColor,t(this.appName).collectionThumbFontSize=parseInt(e.collectionThumbFontSize),t(this.appName).collectionThumbDescriptionShow="1"===e.collectionThumbDescriptionShow,t(this.appName).collectionThumbDescriptionColor=e.collectionThumbDescriptionColor,t(this.appName).collectionThumbDescriptionFontSize=parseInt(e.collectionThumbDescriptionFontSize),t(this.appName).collectionThumbSubMenuBackgroundColor=e.collectionThumbSubMenuBackgroundColor,t(this.appName).collectionThumbSubMenuBackgroundColorOver=e.collectionThumbSubMenuBackgroundColorOver,t(this.appName).collectionThumbSubMenuIconColor=e.collectionThumbSubMenuIconColor,t(this.appName).collectionThumbSubMenuIconHoverColor=e.collectionThumbSubMenuIconHoverColor,t(this.appName).collectionReadMoreButtonBGColor=e.collectionReadMoreButtonBGColor,t(this.appName).collectionReadMoreButtonLabelColor=e.collectionReadMoreButtonLabelColor,t(this.appName).collectionReadMoreButtonBGColorHover=e.collectionReadMoreButtonBGColorHover,t(this.appName).collectionReadMoreButtonLabelColorHover=e.collectionReadMoreButtonLabelColorHover,t(this.appName).collectionReadMoreButtonLabel=e.collectionReadMoreButtonLabel,t(this.appName).modaBgColor=e.modaBgColor,t(this.appName).modalInfoBoxBgColor=e.modalInfoBoxBgColor,t(this.appName).modalInfoBoxTitleTextColor="#".concat(e.modalInfoBoxTitleTextColor),t(this.appName).modalInfoBoxTextColor="#".concat(e.modalInfoBoxTextColor),t(this.appName).infoBarCountersEnable="1"===e.infoBarCountersEnable,t(this.appName).infoBarDateInfoEnable="1"===e.infoBarDateInfoEnable,t(this.appName).infoBarExifEnable=!0,t(this.appName).infoBarTerms=!0,t(this.appName).infoBarTermsTitleColor="white",t(this.appName).infoBarTermsBackgroundColorAlbums="red",t(this.appName).infoBarTermsBackgroundColorCategories="orange",t(this.appName).infoBarTermsBackgroundColorTags="green",t(this.appName).shareTitlePlaceHolder=e.shareTitlePlaceHolder,t(this.appName).copyR_Alert="Hello, this photo is mine!",t(this.appName).sliderThumbBarEnable=!0,t(this.appName).sliderThumbBarHoverColor="rgba(255,255,255,1)",t(this.appName).sliderPreloaderColor="#".concat(e.sliderPreloaderColor),t(this.appName).sliderBgColor=e.sliderBgColor,t(this.appName).sliderHeaderFooterBgColor="#".concat(e.sliderHeaderFooterBgColor),t(this.appName).sliderNavigationColor=e.sliderNavigationColor,t(this.appName).sliderNavigationIconColor=e.sliderNavigationIconColor,t(this.appName).sliderNavigationColorOver=e.sliderNavigationColorOver,t(this.appName).sliderNavigationIconColorOver=e.sliderNavigationIconColorOver,t(this.appName).sliderItemTitleEnable=!0,t(this.appName).sliderItemTitleFontSize=parseInt(e.sliderItemTitleFontSize),t(this.appName).sliderItemTitleTextColor="#".concat(e.sliderItemTitleTextColor),t(this.appName).sliderThumbSubMenuBackgroundColor=e.sliderThumbSubMenuBackgroundColor,t(this.appName).sliderThumbSubMenuBackgroundColorOver=e.sliderThumbSubMenuBackgroundColorOver,t(this.appName).sliderThumbSubMenuIconColor=e.sliderThumbSubMenuIconColor,t(this.appName).sliderThumbSubMenuIconHoverColor=e.sliderThumbSubMenuIconHoverColor,t(this.appName).sliderInfoEnable="1"===e.sliderInfoEnable,t(this.appName).sliderItemDownload="1"===e.sliderItemDownload,t(this.appName).sliderItemDiscuss="1"===e.sliderItemDiscuss,t(this.appName).sliderSocialShareEnabled="1"===e.sliderSocialShareEnabled,t(this.appName).sliderLikesEnabled="1"===e.sliderLikesEnabled},get:function(){return t(this.appName)}}]),i}(Ee);!function(){for(var e=document.body.getElementsByClassName("amron_module"),t=0;t<e.length;t+=1){var i=e[t].id;window[i]=new n(window[i],i,e[t])}}()}()}]);