/* @license Sirv v3.7.14 (a394445a) Copyright 2022 Sirv Limited https://sirv.com */ window.Sirv||function(){var _this5=this;window.Sirv={};var sirvRequirejs=function(window){var requirejs,require,define;return function(global,setTimeout){var req,s,head,baseElement,dataMain,src,interactiveScript,currentlyAddingScript,mainScript,subPath,version="2.3.6",commentRegExp=/\/\*[\s\S]*?\*\/|([^:"'=]|^)\/\/.*$/gm,cjsRequireRegExp=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,jsSuffixRegExp=/\.js$/,currDirRegExp=/^\.\//,op=Object.prototype,ostring=op.toString,hasOwn=op.hasOwnProperty,isBrowser=!(void 0===window||"undefined"==typeof navigator||!window.document),isWebWorker=!isBrowser&&"undefined"!=typeof importScripts,readyRegExp=isBrowser&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,defContextName="_",isOpera="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),contexts={},cfg={},globalDefQueue=[],useInteractive=!1;function commentReplace(t,e){return e||""}function isFunction(t){return"[object Function]"===ostring.call(t)}function isArray(t){return"[object Array]"===ostring.call(t)}function each(t,e){if(t)for(var i=0;il.browser.ieMode;t--)e.push("lt-ie"+t+"-magic");l.browser.webkit&&l.browser.version<536&&(l.browser.features.fullScreen=!1),l.browser.requestAnimationFrame&&l.browser.requestAnimationFrame.call(a,function(){l.browser.features.requestAnimationFrame=!0}),l.browser.features.svg?e.push("svg-magic"):e.push("no-svg-magic");i=(u.documentElement.className||"").match(/\S+/g)||[];u.documentElement.className=l.$(i).concat(e).join(" ");try{u.documentElement.setAttribute("data-magic-ua",l.browser.uaName),u.documentElement.setAttribute("data-magic-ua-ver",l.browser.uaVersion),u.documentElement.setAttribute("data-magic-engine",l.browser.engine),u.documentElement.setAttribute("data-magic-engine-ver",l.browser.version)}catch(t){}l.browser.ieMode&&l.browser.ieMode<9&&(u.createElement("figure"),u.createElement("figcaption")),a.navigator.pointerEnabled||["Down","Up","Move","Over","Out"].forEach(function(t){var e="pointer"+t.toLowerCase();"edge"===l.browser.uaName?c[e]=e:a.navigator.msPointerEnabled?c[e]="MSPointer"+t:c[e]=-1})}(),i={capable:l.browser.features.fullScreen,enabled:function(){return!!(u.fullscreenElement||u[l.browser.domPrefix+"FullscreenElement"]||u.fullScreen||u.webkitIsFullScreen||u[l.browser.domPrefix+"FullScreen"])},request:function(t,e){e=e||{},i.capable&&!e.windowFullscreen?(i.onchange=function(t){i.enabled()?e.onEnter&&e.onEnter():(l.$(u).removeEvent(i.changeEventName,i.onchange),e.onExit&&e.onExit())},l.$(u).addEvent(i.changeEventName,i.onchange),i.onerror=function(t){e.fallback&&e.fallback(),l.$(u).removeEvent(i.errorEventName,i.onerror)},l.$(u).addEvent(i.errorEventName,i.onerror),((t=h(t).node).requestFullscreen||t[l.browser.domPrefix+"RequestFullscreen"]||t[l.browser.domPrefix+"RequestFullScreen"]||function(){}).call(t)):e.fallback&&e.fallback()},cancel:u.exitFullscreen||u.cancelFullScreen||document[l.browser.domPrefix+"ExitFullscreen"]||document[l.browser.domPrefix+"CancelFullScreen"]||function(){},changeEventName:(u.msExitFullscreen?b="MSFullscreenChange":(b=u.exitFullscreen?"":l.browser.domPrefix,b+="fullscreenchange"),b),errorEventName:(u.msExitFullscreen?C="MSFullscreenError":(C=u.exitFullscreen?"":l.browser.domPrefix,C+="fullscreenerror"),C),prefix:l.browser.domPrefix,activeElement:null},l.browser.fullScreen=i;function g(t){var e;return!((!l.browser.webkit||"filter"!==t)&&t in m)&&(e=l.browser.cssDomPrefix+t.charAt(0).toUpperCase()+t.slice(1))in m?e:t}var v=/^(border(Top|Bottom|Left|Right)Width)|((padding|margin)(Top|Bottom|Left|Right))$/,S={float:void 0===m.styleFloat?"cssFloat":"styleFloat"},y={fontWeight:!0,lineHeight:!0,opacity:!0,zIndex:!0,zoom:!0},w=a.getComputedStyle?function(t,e){t=a.getComputedStyle(t,null);return t?t.getPropertyValue(e)||t[e]:null}:function(t,e){var i=t.currentStyle,s=null;return null===(s=i?i[e]:null)&&t.style&&t.style[e]&&(s=t.style[e]),s};l.normalizeCSS=g;var b=function(){"use strict";function t(t){this.node=t,this.$J_UUID=++l.UUID,this.$J_TYPE=null,this.$J_EXT=function(){},s.set(this.node,this)}var e=t.prototype;return e.fetch=function(t,e){var i=l.getStorage(this.$J_UUID),s=i[t],n=null;return e!==d&&s===d&&(i[t]=e,s=i[t]),l.defined(s)&&(n=s),n},e.store=function(t,e){return l.getStorage(this.$J_UUID)[t]=e,this},e.del=function(t){return delete l.getStorage(this.$J_UUID)[t],this},e.addEvent=function(e,i,s,n){var o=this;if("string"===l.typeOf(e)&&1<(t=e.split(" ")).length&&(e=t),"array"===l.typeOf(e))return e.forEach(function(t){o.addEvent(t,i,s,n)}),this;if(!(e=c[e]||e)||!i||"string"!==l.typeOf(e)||"function"!==l.typeOf(i))return this;if("domready"===e&&l.browser.ready)return i(),this;s=parseInt(s||50,10),i.$J_EUID||(i.$J_EUID=Math.floor(Math.random()*l.now()));var t,r=this.fetch("_EVENTS_",{});(t=r[e])||(t=[],r[e]=t,l.Events.handlers[e]?l.Events.handlers[e].add.call(this,n):(t.handle=function(t){t=l.extend(t||a.e,{$J_TYPE:"event"}),o.callEvent(e,l.$(t))},this.node[l._event_add_](l._event_prefix_+e,t.handle,!1)));r={type:e,fn:i,priority:s,euid:i.$J_EUID};return t.push(r),t.sort(function(t,e){return t.priority-e.priority}),this},e.removeEvent=function(t,e){var i,s,n=this,o=this.fetch("_EVENTS_",{}),t=arguments.length<=0?void 0:t,r=1e.space?e.zoom=-1:r=this.finishTime&&s>=this.options.cycles)return this.stopAnimation(),this.render(1),this.options.onComplete(this.els.length<2?this.els[0]:this.els),this;if(this.alternate&&this.cyclee||e>t.maximum)&&(n=s?e+"%":e,!0))))},array:function(t,e,i){if("string"===r.typeOf(e))try{e=e.replace(/'/g,'"'),e=r.W.node.JSON.parse(e)}catch(t){return!1}return"array"===r.typeOf(e)&&(n=e,!0)},function:function(t,e,i){return"function"===r.typeOf(e)&&(n=e,!0)}},h=function(t,e,i){var s=t.hasOwnProperty("oneOf")?t.oneOf:[t];if("array"!==r.typeOf(s))return!1;for(var n=0,o=s.length-1;n<=o;n++)if(a[s[n].type](s[n],e,i))return!0;return!1},l=function(t){var n={},o=function(t,e){var i,s;for(i in t)s=e.slice(0),"object"!==r.typeOf(t[i])||function(t){var e,i=!1;for(e in t)if("defaults"===e){i=!0;break}return i}(t[i])?(s.push(i),n[s.join(".")]=t[i]):(s.push(i),o(t[i],s))};return o(t,[]),n},c=function(t){return r.camelize((t+"").trim())},t=function(){"use strict";function t(t){this.schema={},this.options={},this.parseSchema(t)}var e=t.prototype;return e.parseSchema=function(t,e){var i,s;for(i in t=l(t))if(t.hasOwnProperty(i)&&(s=c(i),!this.schema.hasOwnProperty(s)||e)){if(this.schema[s]=function(t){var e,i,s,n;if(t.hasOwnProperty("oneOf"))for(s=t.oneOf.length,e=0;eo[t.oneOf[i].type]&&(n=t.oneOf[e],t.oneOf[e]=t.oneOf[i],t.oneOf[i]=n);return t}(t[i]),!function(t){var e=t.hasOwnProperty("oneOf")?t.oneOf:[t];if("array"!==r.typeOf(e))return!1;for(var i=e.length-1;0<=i;i--){if(!e[i].type||!o.hasOwnProperty(e[i].type))return!1;if(r.defined(e[i].enum)){if("array"!==r.typeOf(e[i].enum))return!1;for(var s=e[i].enum.length-1;0<=s;s--)if(!a[e[i].type]({type:e[i].type},e[i].enum[s],!0))return!1}}return!(t.hasOwnProperty("defaults")&&!h(t,t.defaults,!0))}(this.schema[s]))throw"Incorrect definition of the '"+i+"' parameter in "+t;r.defined(this.options[s])&&this.checkValue(s,this.options[s])||(this.options[s]=r.U)}},e.set=function(t,e){t=c(t),"string"===r.typeOf(e)&&(e=e.trim()),this.schema.hasOwnProperty(t)&&(n=e,h(this.schema[t],e)&&(this.options[t]=n),n=null)},e.get=function(t){if(t=c(t),this.schema.hasOwnProperty(t))return r.defined(this.options[t])?this.options[t]:this.schema[t].defaults},e.fromJSON=function(t){for(var e in t=l(t))this.set(e,t[e])},e.getJSON=function(){var t,e=r.extend({},this.options);for(t in e)e[t]===r.U&&this.schema[t].defaults!==r.U&&(e[t]=this.schema[t].defaults);return function(t){var e,o={};for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&function(t,i){var s=o,n=t.length;""===t[n-1].trim()&&t.splice(n-1,1),t.forEach(function(t,e){e===n-1?s[t]=i:(s[t]||(s[t]={}),s=s[t])})}(e.split("."),t[e]);return o}(e)},e.fromString=function(t,s){var e=this,n={};s=s||{};return t.split(";").forEach(function(t){!function(t){var e,i=!0;for(e in t=t.trim(),s)if(Object.prototype.hasOwnProperty.call(s,e)&&s[e].test&&s[e].test(t)){n[e]||(n[e]=""),n[e]+=t+";",i=!1;break}return i}(t)||(t=t.split(":"),e.set(t.shift().trim(),t.join(":")))}),n},e.checkValue=function(t,e){var i=!1;return t=c(t),"string"===r.typeOf(e)&&(e=e.trim()),this.schema.hasOwnProperty(t)&&(n=e,h(this.schema[t],e)&&(i=!0),n=null),i},e.exists=function(t){return t=c(t),this.schema.hasOwnProperty(t)},e.isset=function(t){return t=c(t),this.exists(t)&&r.defined(this.options[t])},e.remove=function(t){t=c(t),this.exists(t)&&(delete this.options[t],delete this.schema[t])},t}(),r.Options=t)}(t),t}),Sirv.define("globalVariables",["bHelpers","magicJS"],function(t,e){e.$;return{smv:"smv",CSS_RULES_ID:"sirv-core-css-reset",SIRV_HTTP_PROTOCOL:"https:",SIRV_ASSETS_URL:"",SIRV_BASE_URL:"",CSS_CURSOR_ZOOM_IN:"smv-cursor-zoom-in",CSS_CURSOR_FULSCREEN_ALWAYS:"smv-cursor-fullscreen-always",REG_URL_QUERY_STRING:/([^\?]+)\??([^\?]+)?/,FULLSCREEN_VIEWERS_IDs_ARRAY:[],CUSTOM_DEPENDENCIES:null,MIN_RATIO:1.2,SLIDE_SHOWN_BY:{NONE:0,AUTOPLAY:1,USER:2,INIT:3,ENABLE:4},VIDEO:{NONE:0,PLAY:1,PAUSE:2,PLAYING:3},FULLSCREEN:{CLOSED:0,OPENING:1,OPENED:2,CLOSING:3},APPEARANCE:{HIDDEN:0,SHOWING:1,SHOWN:2,HIDING:3},SLIDE:{TYPES:{NONE:0,HTML:1,IMAGE:2,PANZOOM:3,ZOOM:4,SPIN:5,VIDEO:6},NAMES:["none","html","image","panzoom","zoom","spin","video"]}}}),Sirv.define("globalFunctions",["bHelpers","magicJS","globalVariables","helper","Promise!"],function(t,e,r,h,l){function i(t){var e=t.replace(/^(https?:)?/,"https:");return/^(http(s)?:)?\/\/[^/]+?sirv\.localhost(:\d+)?\/.*$/i.test(t)&&(e=t.replace(/^(https?:)?/,"http:")),e}function s(t){return t.replace(/^((?:https?:)?\/\/)([^/].*)/,function(t,e,i){return e+i.split("/").map(function(t,e){return 0===e?t:function(t){try{t=decodeURIComponent(t)}catch(t){}return encodeURIComponent(t)}(t)}).join("/")})}var a=e,c=a.$,n={rootDOM:new(function(){"use strict";function i(){this.CSSMap={},this.sirvNodesMap=new WeakMap,this.rootNodesMap=new Map,this.rootNodes=[],this.sirvCSSSrc="viewer.full.css",this.mainCSSID="sirv-stylesheet-sirv"}i.getShadowDOM=function(t){var e=!1,t=(t=c(t).node).parentNode;return t&&window.ShadowRoot&&(e=t instanceof window.ShadowRoot?t:i.getShadowDOM(t)),e};var t=i.prototype;return t.rootContains=function(e){return this.rootNodes.some(function(t){return t===a.D.node&&(t=a.D.node.body),!!t&&t.contains(e)})},t.addModuleCSSByName=function(t,e,i,s){this.CSSMap[t]||(this.CSSMap[t]={functionOfCssString:e,id:i,position:s})},t.getRootNode=function(t){t=c(t).node;var e=i.getShadowDOM(t),t=e||a.D.node;return this.rootNodesMap.has(t)||(this.rootNodesMap.set(t,{isResetCSSAdded:!1,isVideoCSSAdded:!1,isSirvAdAdded:!1,styles:{},modulesCss:{},isShadowDOM:!!e}),this.rootNodes.push(t)),t},t.attachNode=function(t){var e;t=c(t).node,this.sirvNodesMap.has(t)||(e=this.getRootNode(t),this.sirvNodesMap.set(t,e))},t.detachNode=function(t){return t=c(t).node,this.sirvNodesMap.delete(t)},t.addCSSStringToHtml=function(){this.addCSSString(a.D.node.head||a.D.node.body)},t.addCSSString=function(t){var i=this;t=t||(a.D.node.head||a.D.node.body),t=c(t).node;var t=this.sirvNodesMap.get(t),s=this.rootNodesMap.get(t),n=null;s.isShadowDOM&&(n=t),h.objEach(this.CSSMap,function(t,e){s.modulesCss[t]||(s.modulesCss[t]=1,h.addCss(e.functionOfCssString(),e.id,e.position,n,"#"+i.mainCSSID))})},t.addMainStyleToHtml=function(){this.resetGlobalCSS(a.D.node.head||a.D.node.body),this.addStyle(a.D.node.head||a.D.node.body,r.SIRV_ASSETS_URL+this.sirvCSSSrc,this.mainCSSID,"#"+r.CSS_RULES_ID)},t.addMainStyle=function(t){return this.addMainStyleToHtml(),this.resetGlobalCSS(t),this.addStyle(t,r.SIRV_ASSETS_URL+this.sirvCSSSrc,this.mainCSSID,"#"+r.CSS_RULES_ID)},t.addStyle=function(t,s,n,o){t=c(t).node;var r=this.sirvNodesMap.get(t),a=this.rootNodesMap.get(r);return a.styles[n]||(a.styles[n]=new l(function(t,e){var i=null;a.isShadowDOM&&(i=r),h.loadStylesheet(s,n,i,o).then(t).catch(e)})),a.styles[n]},t.resetGlobalCSS=function(t){t=t||(a.D.node.head||a.D.node.body),t=c(t).node;var e=this.sirvNodesMap.get(t),i=this.rootNodesMap.get(e);i.isResetCSSAdded||(i.isResetCSSAdded=!0,t=null,i.isShadowDOM&&(t=e),a.addCSS(".smv",{display:"flex !important"},r.CSS_RULES_ID,t),a.addCSS(".smv.smv-selectors-top",{"flex-direction":"column-reverse"},r.CSS_RULES_ID,t),a.addCSS(".smv.smv-selectors-left",{"flex-direction":"row-reverse"},r.CSS_RULES_ID,t),a.addCSS(".smv.smv-selectors-right",{"flex-direction":"row"},r.CSS_RULES_ID,t),a.addCSS(".smv.smv-selectors-bottom",{"flex-direction":"column"},r.CSS_RULES_ID,t),a.addCSS(".smv-slides-box",{"flex-grow":1,"flex-shrink":1},r.CSS_RULES_ID,t),a.addCSS("figure > .Sirv",{"vertical-align":"top"},r.CSS_RULES_ID,t),a.addCSS(".Sirv > iframe, .Sirv > video",{display:"none"},r.CSS_RULES_ID,t),a.addCSS(":not(.smv) smv-thumbnail",{display:"none"},r.CSS_RULES_ID,t),a.addCSS(".Sirv, .Sirv .smv-component",{"-webkit-box-sizing":"border-box !important","-moz-box-sizing":"border-box !important","box-sizing":"border-box !important"},r.CSS_RULES_ID,t),a.addCSS("div.Sirv, div.Sirv div.smv-component, figure.Sirv, div.smv-component",{width:"100%",height:"100%",margin:0,"text-align":"center"},r.CSS_RULES_ID,t),a.addCSS("div.Sirv",{"max-height":"100%","block-size":"inherit"},r.CSS_RULES_ID,t),a.addCSS(".Sirv img",{width:"100%",height:"100%"},r.CSS_RULES_ID,t),a.addCSS("img.Sirv, .Sirv img",{"max-width":"100%"},r.CSS_RULES_ID,t),a.addCSS("img.Sirv:not([width]):not([height])",{width:"100%"},r.CSS_RULES_ID,t),a.addCSS("img.Sirv",{display:"inline-block","font-size":0,"line-height":0},r.CSS_RULES_ID,t),a.addCSS(".Sirv.smv-bg-image.smv-bg-contain, .Sirv.smv-bg-image.smv-bg-cover",{"background-repeat":"no-repeat","background-position":"center"},r.CSS_RULES_ID,t),a.addCSS(".Sirv.smv-bg-image.smv-bg-contain",{"background-size":"contain"},r.CSS_RULES_ID,t),a.addCSS(".Sirv.smv-bg-image.smv-bg-cover",{"background-size":"cover"},r.CSS_RULES_ID,t),a.addCSS("img.Sirv:not([src]), img.Sirv.sirv-image-loading:not([src])",{opacity:"0"},r.CSS_RULES_ID,t),a.addCSS("img.Sirv.sirv-image-loaded",{opacity:"1",transition:"opacity 0.5s linear"},r.CSS_RULES_ID,t))},t.showSirvAd=function(t,e,i,s){var n,o;/^my.sirv.(com|localhost)$/i.test(a.D.node.location.hostname)||(t=t||(a.D.node.head||a.D.node.body),t=c(t).node,n=this.sirvNodesMap.get(t),t=null,this.rootNodesMap.get(n).isShadowDOM&&(t=n),n="sirvCR"+Math.floor(Math.random()*a.now()),a.addCSS("#"+n,{display:"inline-block !important;",visibility:"visible !important;","z-index":"2147483647 !important;",width:"auto !important;",height:"auto !important;","max-width":"none !important;","max-height":"none !important;",transform:"none !important;",left:"auto !important;",top:"auto !important;",bottom:"8 !important;",right:"8 !important;",margin:"auto !important",padding:"0 !important",opacity:"1 !important;"},r.CSS_RULES_ID,t),a.addCSS("#crSirv"+n+" > img",{display:"inline-block !important;",visibility:"visible !important;",position:"static !important;",width:"90px !important;",height:"18px !important;","max-width":"none !important;","max-height":"none !important;",transform:"none !important;",margin:"0 !important",padding:"0 !important"},r.CSS_RULES_ID,t),(o=a.$new("a",{id:n,href:i,target:"_blank"})).attr("style","position: absolute !important; opacity: 1 !important"),o.setCss({display:"inline-block",overflow:"hidden",visibility:"visible","font-size":0,"font-weight":"normal","font-family":"sans-serif",bottom:8,right:8,margin:"auto",width:"auto",height:"auto",transform:"none","z-index":2147483647}).appendTo(e).addEvent("tap btnclick",function(t){t.stopDistribution(),a.W.node.open(o.attr("href"))}).append(a.$new("img",{width:90,height:18,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAAAkCAYAAAAgqxBxAAAMJ0lEQVR4nO1ce5AUxRnv4yH4wCfREogIqFHOI94uVoSNMnFvZ6e/30+TGB/BRFPRUomWRiMKd2tUTKEWKlGSCBKCxtJSSKkxKLhnKqaiJvgOYjSAAhdQ8EDkIYgm8fLH9hzNZGZn9+68o8r5VU3V7fbXX389+5vu79FzSiVIkCBBggQJegiu6w4DMIlkkeRKklsBbCG5EsAzJKeJyCnldDiOs5/neaO6y+YECUJBciaAz0i2xV0AFmut+wV1iMhoAK1GZqnjOAN7Yi4JvsDQWu9PckkIaTcBWAbgHZI7Am1vKqV6BXUBWBzQ87MemFKCLzJIvhIg671a63Gu6+7ryziOMxBAA4DpADYDuDRC14qArl9130wSfOEhIpcFCPjduD75fP5gx3H2C2sDcJal62MAx3W91QkShKMGwDqL0DO7QimAsQAubGhoOKIr9CVIUBHy+XxtYHUe3tM2JUjQYWitT7PI/EFP25MgQadA8kxrhd7mOE6fnrYpk8kMEJHRnud9padtSRADkm0NDQ0HRLU3NDQcAWBzd9njed7XbZdDa31SZ3WKSB2AR80133GcA+1213W/bLXf5H+fzWYPATAHwAdmx1jjt+Xz+YMBPALgIZIPxxV2gkhNLp6TamqeV18oPlxfKM7p7BwTGOxphM5kMgNI/tdyO57urE7bjTHXYLsdwHFW2/umz5BAcNoGYIvfx3GcPradJP9cjU2pQnFdqtDclio0t9UXis93do4JDPY0QiulFIB7AkS6Kb5XNLTWp1r6Pslms4fZ7SQHW+RcaL5bGXgI/gNgmVKqxu8nIj+xZTKZzIBK7Plq45PH+GROFZrbUpOL6c7ML4GFPZHQjuMcCODfAUI9lsvlBnVEXxyhXdc9lOQnfgGHZKP1MP0GwNhcLjcon88frqxKZD6fPzzgHp1TiT31heYpu1bn5tWVTqKfiAw1N6EmTh7AQQCGl/txuwqmwjU87NxBEFrrfp7nHWl+hOA8anK53CARGVpB8FRDcrCIDLXHrZbQ/n0123bsfe0oAJwccl5jB8lpWush1eiKI3Q2mz3EKqOvB7DTkPkHFdj5nKV7QSX2pJqKS9tX56ZiIcrokQCeBnAQybnGsKUAVgFYJyITwvp5npcl+aI5vLKE5EZzyCVjGV0AMCOsP8lbSD4c0fZrABf6n0UkZ8ZoIfmqGWt2Op3ex+4H4HXHcfqIyDUkN5JcYUq7x1kyFwNYTfKfJJcAaAXQpEJIJiJXkHwXwCqSb5B8n+TMdDq9D4CdlRDacZz9ANxN8n1zX1cDeE9ErvLHBPAQgO9H6TIrWktwvlEwxZDWEGJ/AuC+Sit+cYQ2nNkecHNmVaKb5EVWn521tbV7lZOvb1w40nY3aictCC/0iEgdyQ0A/iIil6TT6b5W2wkkV4jINYE+3zE/rqhdROhtSqUbtNauUu2Rd0vIsDWGVOtDyq41ANb5qR6t9bcArNFaj/MFMpnMAADzADxlja9ItgC4EsDvABwUHBTATwG8TPJo/zsTxLwAYGpAdgrJN0Skzv/OcZz+ACaSXEByaxyhzcOwSEQm2DuByR68TvIW8/lsAM9E6SJ5LYD7otrDYDINs0JI7V932b91GCohNICPLJntjuP0r9S+atyOVFOx0O5uNBWfixQ0hG4jeWNYu+d5o0hu9yeTTqf3IblRa31qmDzJMwGsMU9cbwCbXdc91pbRWmdIPgtgnoicbbcBON5/CMzq1gpgbHAcQ67V/sNjxm4B8HrY0661HklyY/BHMfdgKMkdxtdTnucdSXK71npE2ByNvxjrcvjEidAxnOQO13WH1dbW7kVyg+u6wyJk3wRwctRY5SAiJwCYjdI56OAJvGX5fL42qm+1hAYwrxrbAPze6ju/nGyqqfiWRegLyk24zvw4kbV6AM8DuMDIjwfwUoyhy0WE5u/5InJFYMw7jVtwUdDtMCvsHCN3HoDIpxHA7SR/6X82hL48Yp53AvhFGV3NvptjVuHHomSNu1URoT3PO7HMmE8AmGj+niEiNwRltNYnAViuOul3mxXxRpJbg25I1IPbAUJfXY1NZqdvLwZFxUappkWjdvnOzZ8edfnC6BjKbH8flRsYwAwA083f0wH8PEZ+Ns3ZWQAXAHjCau4FYC3Jo3O53CAAmwPB1gKYU2IA7gFwa9Q4JC8ybof/uSWqoADghXLbGoC7ReRm8/dDACZFyWaz2cMqJXS5ABbAFN+V0FrXk1ypAsQFMEtEJkfpqBau6x4K4NHASr1GKdU7KNsBQp9RjS2O4/Qnuc3vLyLfDJOzsxuppubyu4Ah9JoYmetI3q+UUiQfjLvBAG4CMFsppXK53CD76UMpCn/Fkn1Oa32aUkql0+m+JpAaaNoeB/ABgHfCLuPHP+vrItli+7wBm9YanzZK14cA7jZ6/ogykbopDlSS5fi43H0yxz3bI3yWAl7H/zxmzJi9WQpuB4cq6AQAzAmQ+sqgTLWE1lrrDtjxgEXo34bJpArFt31CnzB5kVNWoSF0a8yg15Oc6xuAUlagnPxUWIfBAfwdwDfM3zNINlrjX+Xr1lpnALxs9XtcRK4xNy70spPyMYReo7V2y+nyswgA/kTy/Kj5pdPpvhUSeme5+0Tyx7ZrA+ByAPda92Z8YHfrUgBYbhH67WB7tYT23cxqICJeIKjcLY1a11g81vKdy/LUV1gH4NNy+VgAs/3tWERu9lffKARXcZZSdD9TpZzuu7SyDCYgW6+U6iUik20XA6Uo/ZbYSewapxyhXwBwViV6AMwjeW1Uu18YqMTlKJdqA3Cbvyso1e7nbrQerCeq3carQcgLAbsdOe0OQiulFMkPfR2e52XttlSheJuVe55WyaTqSLbl8/lUmQFXWEFeA4BVKuQdNKXat+P1dj5aRE4h+azWuh7AayH6X/Q870SSf7AnJCLjSb4aO4ldeiIJTXKaH2zGwQSskUEhAFThQ4+LkgHwkoicF/huvoic6zjOQJLvxuVnOwOTlrVTZ67d3l2ENjFXqNtR3/TUivYVunHhyEomVYfS28FzI9rPBbDayln2YqkgEfoeGoBJxm1oD27MFr3e+OKNwT4s5VmvN25BexA1ZsyYvY3v+73YiajyhNZajzC+fH2cHq31EJJbtdahNxDAkwA+q4TQiEhHkRSSG4N5eK21NoHxpSTviLO1MzDpSTvjIQFbuoXQIvI1a5wdjqPavYX6QnGOIXRlC5sh9FIAj5C8S0SOUUrVmGN+l7JUKBkX7GMIeoPrusPS6XTffD5/FIBbAaxFSCUKpWLHWtvd8GH6rgWwKNhm/OpWAFO01iMcx+njOE5/z/NGAZgoIqN92XKENnb/EECriEwwgVZNJpMZYFJjU13XPdSSnQBgDYAzDOl6marqAyYF+I8KfOjnSc4FMMcUino1NDQcgFLmp9UPhgPobYLUJQCOj9LfFRCR0Tahg7t0dxHa6HrP13O6m835348qPHNSqtDclmpsjnQBg5OqA7DKlIyvMpH2BgDvoVT4iFrxhgCYhVIpd5MJMO7yixNBkPw2ylS7ANwXtRKb1W4mgOVmrLUk/yoi12mtv2SN8WBUccIaJ43SWdwWAJtYKqcXReSyYIoNQN6sxuvMQ7UYpkRtHoB9w0cppcdMhbWGpfTiYuu+PgIg8qQYgNsBLC43j64AgIJF2K3BymE3E/rWMLfjsInFfeubiu+OaipW9nCb1TasPJ2ghwDgSRG55PMcw8Q6G6yA8N6gTHcS2vbnAWyy21JNi0aps+b/X548SlFC6D0IxlXZorXev5p+psQ93XabomCyKX8LuBtHBeW6k9BG37JdAaoberQiFgmh9yyQvCMuLRoGa8veZty38wEcr7XeX2vdz8REYwFMZalYY6frQkvW3U1olkrzJZt4etX3QCmVEHpPgO+7m8LP5rDAOQ4mHgg7VbeVpYrq9rB2BE4ZBuw61ZL7NO74aGcJ7bruMGu8dR1SkhC654HSwagtJP8F4PSO6NBanwbg6QhSh12vRGRZdtMZ6LNbCd7kytssQo/viO02ALy5y+1gWfui0Ls73jZJEIvKgp4YaK1HAPgRyftReivkDZJvAXgNwFMicnOlb1obf34igKsBXBmsejqO019ErjAyE9EF/9wGwMVmV9nGzzkPnyBBggQJugP/A94x91x//ZrKAAAAAElFTkSuQmCC"}).setProps({alt:s})))},i}()),viewerFilters:[],getNodeWithSirvClassName:function(t){var e=null;return t&&(e=(t=c(t)).hasClass("Sirv")?t.node:n.getNodeWithSirvClassName(t.node.parentNode)),e},iconsHash:{nodes:[],elements:[[{classes:["smv-arrow-control"]},{classes:["smv-arrow"]},{classes:["smv-icon"]}],[{classes:["smv-button-fullscreen-open"]},{classes:["smv-icon"]}],[{classes:["smv-button-fullscreen-close"]},{classes:["smv-icon"]}],[{classes:["smv-thumbnails"]},{classes:["smv-selector"],attrs:[{name:"data-type",value:"spin"}]}]],waitBody:function(){return new l(function(t,e){var i=document.body;i?t(i):setTimeout(function(){n.iconsHash.waitBody().then(t)},16)})},make:function(){n.iconsHash.elements.forEach(function(t){var i=[];t.reverse().forEach(function(t){var e=a.$new("div");t.classes&&t.classes.forEach(function(t){e.addClass(t)}),t.attrs&&t.attrs.forEach(function(t){e.attr(t.name,t.value)}),i.push(e)});for(var e=1,s=i.length;e|<)/gi,"").split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/))[2]&&(t=t[2].split(/[^0-9a-z_\-]/i)).length&&t[0]&&(e=t[0]),e}function N(t){var e=null;return(t=t.match(/(?:https?:\/\/)?(?:www.)?(?:player.)?vimeo.com\/(?:[a-z]*\/)*([0-9]{6,11})[?]?.*/)[1])&&(e=t),e}function O(t){var e,i,s=null;if("string"===w.typeOf(t))s=t;else if((t=u(t))&&"element"===w.typeOf(t.node))if(w.contains(["iframe","div"],t.getTagName()))s=t.attr("src")||t.attr("data-src");else if(z(t)&&!(s=t.attr("src")||t.attr("data-src")))for(s=null,e=w.$A(t.node.children);(i=u(e.shift()))&&"element"===w.typeOf(i.node)&&"source"===i.getTagName()&&(s=i.attr("src")||i.attr("data-src")),!s&&i;);return s}return c.debounce=function(s,o,t){var r,a,i,h,l,c,e,d=0,u=!1,p=!1,n=!0,m=!o&&0!==o&&w.browser.features.requestAnimationFrame;if("function"!=typeof s)throw new TypeError("Expected a function");o=+o||0,(e=t)&&"object"==typeof e&&e.constructor===Object&&(u=!!t.leading,p="maxWait"in t,i=p?Math.max(+t.maxWait||0,o):i,n="trailing"in t?!!t.trailing:n);function f(t){var e=r,i=a;return r=w.U,a=r,d=t,h=s.apply(i,e)}function g(t,e){return m?(w.browser.cancelAnimationFrame(l),w.browser.requestAnimationFrame(t)):setTimeout(t,e)}function v(t){var e=t-c,t=t-d;return c===w.U||o<=e||e<0||p&&i<=t}function S(t){return l=w.U,n&&r?f(t):(r=w.U,a=r,h)}var y=function(){var t,e=Date.now();return v(e)?S(e):(l=g(y,(e=(t=e)-d,t=o-(t-c),p?Math.min(t,i-e):t)),w.U)},t=function(){for(var t=Date.now(),e=v(t),i=arguments.length,s=new Array(i),n=0;n=w.DPPX||i?w.DPPX:(t*=100,Math.ceil(t)/100)},c.getMatrix=function(t){function e(t,i){var s={},n=["x","y","z"];return t.forEach(function(t,e){s[n[e]]=(t=i[t],parseFloat(t.trim()))}),s}var i=null,s=u(t).getCss("transform")+"";return"none"!==s&&(i={},t=6<(s=(s=(s=s.split("(")[1]).split(")")[0]).split(",")).length,i.transform=e(t?[12,13,14]:[4,5],s),i.scale=e(t?[0,5,10]:[0,3],s)),i},c.getRemoteData=(r=window.fetch?function(t,e){return fetch(t,{referrerPolicy:e||"no-referrer-when-downgrade"}).then(function(t){if(200===t.status)return t.json();throw{status:t.status,data:t}})}:function(t){return new d(function(i,s){var n=null;w.browser.features.xhr2?n=new XMLHttpRequest:window.XDomainRequest&&(n=new XDomainRequest),n?(n.onerror=function(t){s(t||!0)},n.onload=function(t){try{if(200!==n.status)throw{status:n.status,data:t};var e=JSON.parse(n.responseText);i(e)}catch(t){s(t)}},n.open("GET",t),void 0!==n.responseType&&(n.responseType="text"),n.send(null)):s(!0)})},function(s,n,t){return new d(function(e,i){r(s,t).then(e).catch(function(t){var o,r;t&&t.status&&w.contains([404,200],t.status)?i(t):(console.log("XHR error. Switching to JSONP."),n=n||"sirv_data_"+c.generateUUID(),o=s,r=n,new d(function(t,e){var i=!1,s=document.createElement("script");window[r]||(window[r]=function(){i=!0,delete window[r],document.body.removeChild(s),t(arguments.length<=0?void 0:arguments[0])});function n(){i||(delete window[r],document.body.removeChild(s),e(o))}s.onreadystatechange=function(){"complete"!==_this.readyState&&"loaded"!==_this.readyState||(_this.onreadystatechange=null,setTimeout(n,0))},s.onerror=n,s.onload=n,s.src=o+"&callback="+r,document.body.appendChild(s)}).then(e).catch(i))})})}),c.getSirvType=function(t){var e,i,s=(t=u(t)).attr("data-type")||t.attr("data-effect"),n=t.fetch("view-content"),o=null;return I(s)&&"static"!==s?(i=0<=(i=h.SLIDE.NAMES.indexOf(s))?i:h.SLIDE.TYPES.ZOOM,s=t.attr("data-src"),I(s)?e=s:(s=u(t.node.getElementsByTagName("img")[0])).attr&&(e=s.attr("src")||s.attr("data-src"))):(s=t.attr("data-src"),I(s)?c.isSpin(s)&&"img"!==t.getTagName()||n===h.SLIDE.TYPES.SPIN?(i=h.SLIDE.TYPES.SPIN,e=s):c.isVideo(s)?(i=h.SLIDE.TYPES.VIDEO,e=s):(e=s,i=h.SLIDE.TYPES.IMAGE,n&&(i=n)):(s=t.attr("src"),I(s)&&"img"===t.getTagName()&&(e=s,i=h.SLIDE.TYPES.IMAGE))),i&&(o={type:i,imgSrc:e}),o},w.hashKeys||(Object.keys?w.hashKeys=Object.keys:function(){"use strict";Object.prototype.hasOwnProperty,{toString:null}.propertyIsEnumerable("toString")}()),c.imageLib={isNumber:function(t){return/(px|%)$/.test(t)},getSize:function(s,n){return new d(function(t,e){var i=u(s).getInnerSize();n=n||100,--n,!i.width&&!i.height&&0t.width&&(i.width=t.width,i.height=t.width*e.height/e.width),t.height&&e.height>t.height&&(i.height=t.height,i.width=t.height*e.width/e.height),i},getBackgroundPositionValue:function(t){var e;switch(t){case"top":case"left":e=0;break;case"center":e=50;break;case"right":case"bottom":e=100;break;default:e=c.imageLib.isNumber(t)?parseInt(t,10):0}return e},getBackgroundPosition:function(t){var e={side:"left",position:0,sign:"%"},i={side:"top",position:0,sign:"%"},s=0,n=1,t=u(t).getCss("background-position");return t&&(2<(t=(t=(t=(t=(t=t.replace(/important/,"")).replace(/!/g,"")).trim()).replace(/\s+/g," ")).split(" ")).length&&(s=1,n=3,w.contains(["left","right"],t[0])&&(e.side=t[0]),w.contains(["top","bottom"],t[2])&&(i.side=t[2])),e.position=c.imageLib.getBackgroundPositionValue(t[s]),i.position=c.imageLib.getBackgroundPositionValue(t[n]),/px$/.test(t[s])&&(e.sign="px"),/px$/.test(t[n])&&(i.sign="px")),{x:e,y:i}},getPartSize:function(t,e){var i=0,e=(w.browser.ieMode?t.currentStyle[e]||"0":t.getCss(e)||"0").replace(/px$/,"");return isFinite(e)&&(i=Math.round(parseFloat(e))-parseFloat(t.getCss("border-top-width")||0)-parseFloat(t.getCss("border-bottom-width")||0)-parseFloat(t.getCss("padding-top")||0)-parseFloat(t.getCss("padding-bottom")||0)),i},checkMaxSize:function(t,e,i){var s;return(t.width>e.width*i||t.height>e.height*i)&&(i=t.width>e.width?(s="width","height"):(s="height","width"),t[s]=e[s],t[i]&&(t[i]=e[i]),t.round=!1),t},calcImageProportion:function(t,e,i,s){var n=i[e]/i[t],i={};return i[t]=s,i[e]=parseInt(n*i[t],10),i},contain:function(t,e){t={width:t.width,height:t.height};return e.width&&t.width>e.width&&(t=c.imageLib.calcImageProportion("width","height",t,e.width)),e.height&&t.height>e.height&&(t=c.imageLib.calcImageProportion("height","width",t,e.height)),t},cover:function(t,e){t={width:t.width,height:t.height};return e.width&&t.widthr||t.height>a)&&(t.width>r?(t.width=r,t.height&&(t.height>a?t.height=a:s())):(t.height=a,t.width&&(t.width>r?t.width=r:n()))),(t.width||t.height)&&(t.width&&t.height?t.width/t.height-h<=t.height/t.width-l?n:s:t.width?n:s)(),i&&(c.imageLib.isNumber(i.width)&&c.imageLib.isNumber(i.height)?(r=parseInt(i.width,10),/%$/.test(i.width)&&(r=r/100*t.width),a=parseInt(i.height,10),/%$/.test(i.height)&&(a=a/100*t.height),o=rt[s]&&t[s]>=i){n=!0;break}return n}(this.options.threshold,t.intersectionRatio,n)&&(t.intersectionRatio=n,r={target:t.node.node,intersectionRatio:t.intersectionRatio,isIntersecting:0t.width&&(n=r/o,o=t.width,r=parseInt(o*n,10)),r>t.height&&(n=o/r,r=t.height,o=parseInt(r*n,10)),s||e.width=e.x&&i.top<=e.y&&i.bottom>=e.y&&this.show(t))))},e.setCanShow=function(t){this.canShow=t},e.setFullScreenBox=function(t){this.setFullScreenBox=t},e.destroy=function(){this.target.removeEvent("contextmenu",this.showBind),o.W.removeEvent("keydown",this.hideBind).removeEvent("scroll",this.hideOnScrollBind);try{this.context.kill()}catch(t){}try{this.overlay.kill()}catch(t){}},t}()}),Sirv.define("BaseInstance",["bHelpers","magicJS","EventEmitter","helper"],function(o,t,e,i){var s=t,r=s.$;return function(n){"use strict";function t(t,e,i){var s=n.call(this)||this;return s.defaultSchema=i,s.options=e,s.instanceNode=r(t),s.instanceUrl=s.instanceNode.attr("data-src")||s.instanceNode.attr("src")||s.instanceNode.attr("data-bg-src"),s.option=null,s._isReady=!1,s.id=null,s.isCustomId=!1,s.isStartedFullInit=!1,s.isStarted=!1,s.destroyed=!1,s.referrerPolicy=s.instanceNode.attr("data-referrerpolicy")||s.instanceNode.attr("referrerpolicy")||"no-referrer-when-downgrade",s.instanceOptions=s.makeOptions(),s.createOptionFunction(),s.api={isReady:s.isReady.bind(o.assertThisInitialized(s)),resize:s.resize.bind(o.assertThisInitialized(s)),getOptions:s.getOptions.bind(o.assertThisInitialized(s))},s}o.inheritsLoose(t,n);var e=t.prototype;return e.setOptions=function(t,e,i,s){return t.fromJSON(e),t.fromString(i),t.fromString(s),t},e.makeGlobalOptions=function(t){var e=this.options.options;return this.setOptions(t,e.common.common,e.local.common,this.instanceNode.attr("data-options")||"")},e.makeMobileOptions=function(t){var e=this.options.options;return this.setOptions(t,e.common.mobile,e.local.mobile,this.instanceNode.attr("data-mobile-options")||"")},e.makeOptions=function(){var t=new s.Options(this.defaultSchema),t=this.makeGlobalOptions(t);return s.browser.touchScreen&&s.browser.mobile&&(t=this.makeMobileOptions(t)),t},e.getOptionsForStartFullInit=function(t){t&&(this.options.options=t,this.instanceOptions=this.makeOptions(),this.createOptionFunction())},e.isReady=function(){return this._isReady},e.getOptions=function(){return this.instanceOptions.getJSON()},e.resize=function(){return!!this._isReady&&this.onResize()},e.onResize=function(){return!0},e.getImageClassContainer=function(){return{}},e.checkImage=function(t,e){var i=this.getImageClassContainer(),t=e?i.isExist(t):i.isLoaded(t);return t},e.getId=function(t,e){this.id=this.instanceNode.attr("id"),this.id||(this.isCustomId=!0,t=t||"component-",e=e||"smv-",this.id=e+t+i.generateUUID(),this.id=this.id.trim(),this.instanceNode.attr("id",this.id))},e.createOptionFunction=function(){var t=this;this.option=function(){return 1e.width?this.box.addClass(l):t.left+this.baseBoxSize.width>e.width&&(t.left=e.width-this.baseBoxSize.width),this.baseBoxSize.height>e.height?this.box.addClass(c):t.top+this.baseBoxSize.height>e.height&&(t.top=e.height-this.baseBoxSize.height)),t},e.setBoxPosition=function(){var t=this.correctBoxPosition(this.getBoxPosition(this.hotspotSettings));this.box.setCssProp("position",""),this.box.setCss(t).getSize()},e.showBox=function(){this.isActive||this.isDisabled||(this.tooltip&&this.tooltipState===u.AUTO&&this.tooltip.removeClass(h+"-visible"),this.box.setCss({opacity:0}),this.box.appendTo(this.boxContainer),this.setBaseBoxSize(this.box.getSize()),this.setBoxPosition(),this.box.setCss({opacity:1}),this.isActive=!0,this.emit("hotspotActivate",{data:{hotspot:this}}))},e.hideBox=function(t){var e=this;if(this.isActive){if(t)return this.box&&this.box.setCssProp("opacity",0),setTimeout(function(){e.hideBox()},300),this.id;this.box&&this.box.remove(),this.isActive=!1,this.emit("hotspotDeactivate",{data:{hotspot:this}})}return this.id},e.changeBoxContainer=function(t){this.boxContainer=null!=t?t:r.D.node.body},e.setBaseBoxSize=function(t,e){(t&&e||!this.baseBoxSize)&&(this.baseBoxSize={width:t.width,height:t.height})},e.setHotspotSettings=function(t){for(var e in t)!{}.hasOwnProperty.call(t,e)||(this.hotspotSettings[e]=t[e])},e.getHotspotSettings=function(){return this.hotspotSettings},e.setAspectRatio=function(t,e){this.dX=t,this.dY=e},e.setPointerPosition=function(){var t=this.hotspotSettings;t&&this.pointer.setCss({top:t.pointerPositionPercentage.top?t.pointer.y:Math.ceil(t.pointer.y*this.dY),left:t.pointerPositionPercentage.left?t.pointer.x:Math.ceil(t.pointer.x*this.dX)})},e.showPointer=function(){var t;this.hotspotSettings&&!this.isDisabled?(this.pointer.addClass("pulsating-point"),this.setPointerPosition(),(this.hotspotSettings.style||this.hotspotSettings.pointer.style)&&(t=(t=this.hotspotSettings.style)||this.hotspotSettings.pointer.style,this.pointer.addClass(t)),this.isPointerInDoc||(this.isPointerInDoc=!0,this.pointer.appendTo(this.container))):this.hidePointer()},e.hidePointer=function(){this.isPointerInDoc&&(this.isPointerInDoc=!1,this.pointer.remove())},e.isHotspotShown=function(){return this.isShown},e.show=function(){this.isDisabled||this.isShown||(this.isShown=!0,this.showPointer(),this.boxState===u.SHOW&&this.showBox(),this.tooltipState===u.SHOW&&this.showTooltip())},e.hide=function(){this.isShown&&(this.isShown=!1,this.hideBox(),this.hideTooltip(),this.hidePointer())},e.isEnabled=function(){return!this.isDisabled},e.enable=function(){this.isDisabled&&(this.isDisabled=!1)},e.disable=function(){this.isDisabled||(this.isDisabled=!0,this.hide())},e.hideTooltip=function(){this.isHovered&&(this.isHovered=!1,this.tooltip&&this.tooltip.removeClass(h+"-visible"))},e.overridePointerEvent=function(){this.isBoxAlwaysVisible()||this.isTooltipAlwaysVisible()||this.container.addClass(d)},e.removeOverridePointerEvent=function(){this.container.removeClass(d)},e.getId=function(){return this.id},e.setId=function(t){this.id=t},e.setState=function(t,e){this.boxState!==t.popup&&(this.boxState=t.popup,t.popup===u.VISIBLE?e||this.showBox():this.hideBox()),this.tooltipState!==t.tooltip&&(this.tooltipState=t.tooltip,t.tooltip===u.VISIBLE?e||this.showTooltip():this.hideTooltip())},e.rewriteAttrPointer=function(t){t=t||this.id;this.pointer.attr("data-spot-id",t)},e.getHotspotPointer=function(){return this.pointer},e.destroy=function(){this.hideBox(),this.hideTooltip(),this.hotspotData=null,this.container=null,this.id=null,this.pointer.clearEvents(),this.tooltip&&this.tooltip.clearEvents(),this.pointer.remove(),this.box=null,this.boxContainer=null,this.baseBoxSize=null,this.tooltip=null,this.version=null,this.pointer=null,this.hotspotSettings=null,this.isActive=!1,this.isDisabled=!1,this.isPointerInDoc=!1,this.isHovered=!1,n.prototype.destroy.call(this)},t}(s)}),Sirv.define("Hint",["bHelpers","magicJS","globalVariables","globalFunctions","helper"],function(t,e,i,s,n){var o=e,r=o.$;return function(){"use strict";function t(t,e){this.parent=r(t),this.options=o.extend({html:"hint",showClass:"show",additionalClass:null,autohide:3500},e||{}),this.instanceNode=o.$new("div").addClass("sirv-hint"),this.hintContainer=o.$new("span").addClass("sirv-hint-message"),this.inDoc=!1,this.isShown=!1,this.timer=null,this.instanceNode.addClass(this.options.additionalClass),this.hintContainer.node.innerHTML=this.options.html,this.instanceNode.append(this.hintContainer)}var e=t.prototype;return e.getAutoHideTime=function(){return this.options.autohide},e.getActionTime=function(){var t=0,e=this.instanceNode.getCss("transition");try{e=e.split(" ")[1]}catch(t){e=0}return e&&(e=e.trim(),/m?s$/.test(e)&&(/s$/.test(e)?(t=parseFloat(e),t*=1e3):t=parseInt(e,10))),t},e.getMovingTime=function(){return this.getAutoHideTime()+this.getActionTime()},e.append=function(){this.inDoc||(this.inDoc=!0,this.parent.append(this.instanceNode))},e.removeEvent=function(){this.instanceNode.removeEvent("transitionend")},e.show=function(){var t=this;this.append(),clearTimeout(this.timer),this.timer=null,this.instanceNode.getSize(),this.removeEvent(),this.instanceNode.addClass(this.options.showClass),this.isShown=!0,this.options.autohide&&(this.timer=setTimeout(function(){t.hide()},this.options.autohide))},e.hide=function(){var e=this;this.inDoc&&(this.removeEvent(),clearTimeout(this.timer),this.timer=null,this.instanceNode.addEvent("transitionend",function(t){t.stop(),e.removeEvent(),e.inDoc=!1,e.instanceNode.remove()}),this.instanceNode.removeClass(this.options.showClass),this.isShown=!1)},e.destroy=function(){this.instanceNode.setCssProp("transitionend","none"),this.hide(),this.removeEvent(),this.hintContainer.remove(),this.hintContainer.node.innerHTML="",this.instanceNode.remove(),this.inDoc=!1},t}()}),Sirv.define("ResponsiveImage",["bHelpers","magicJS","globalVariables","globalFunctions","Promise!","helper","EventEmitter"],function(e,t,i,s,r,l,n){function a(t,e){return e=t+("?"+l.paramsToQueryString(e)),e=l.cleanQueryString(e)}function c(t,e){var i,s=d.extend({},t);return delete s.src,delete s.srcset,s.imageSettings=d.extend({},(null==t?void 0:t.imageSettings)||{}),1s.srcSettings.scale.width+5&&(t=!0):s.size.height>s.srcSettings.scale.height+5&&(t=!0),t&&(s.size.width/=s.dppx,s.size.height/=s.dppx)),e(s)}),s.imageNode.addEvent("error",function(t){t.stop(),s.state=3,s.imageNode=null,i(s)}),s.setSrc(),s.setSrcset())})},e.setSrc=function(){this.imageNode.node.src=this.src},e.setSrcset=function(){this.srcset&&(this.imageNode.node.srcset=this.srcset+" "+this.dppx+"x")},e.isLoading=function(){return 1===this.state},e.destroy=function(){1===this.state&&this.imageNode&&this.imageNode.attr("src","data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="),this.state=0},t}(),m=function(a){"use strict";function t(t,e,i,s,n,o,r){o=a.call(this,t,e,i,s,n,o)||this;return o.tileName=r,o}return e.inheritsLoose(t,a),t.prototype.setSrc=function(){1===this.dppx&&a.prototype.setSrc.call(this)},t}(p),f={};return function(s){"use strict";function n(t,e){var i=s.call(this)||this;return"string"!==d.typeOf(t)&&(t=u(t).attr("src")),i.o=d.extend({type:"main",infoId:"sirv-image-"+l.generateUUID(),imageSettings:{},round:!0,dontLoad:!1,convertSmallerSideToZero:!0,referrerPolicy:"no-referrer-when-downgrade",loadNewImage:!1},e),i.imageInfoPromise=null,i.images={},i.originUrl=d.getAbsoluteURL(t).split("?")[0],i.infoUrl=i.originUrl+"?nometa&info",i.imageSettings=d.extend({},i.o.imageSettings),i}e.inheritsLoose(n,s),n.roundImageSize=function(t,e){var i;return e=e||{width:Number.MAX_VALUE,height:Number.MAX_VALUE},t.width&&t.height?t.width>=t.height?(i=l.roundSize(t.width))<=e.width&&(t.height=Math.floor(t.height/t.width*i),t.width=i):(i=l.roundSize(t.height))<=e.height&&(t.width=Math.floor(t.width/t.height*i),t.height=i):t.width?(i=l.roundSize(t.width))<=e.width&&(t.width=i):t.height&&(i=l.roundSize(t.height))<=e.height&&(t.height=i),t};var t=n.prototype;return t._convertImageSettings=function(t){function e(t,e){e.width&&(t.width=e.width),e.height&&(t.height=e.height)}t=t||{},t=d.extend({},t);var i=this.getClearSizeWithoutProcessingSettings({width:t.width,height:t.height});e(t,i);var s=c(t,t.dppx);return(t.round||!t.hasOwnProperty("round")&&this.o.round)&&(t=this.getOriginSize(),e(s,i=n.roundImageSize(s.src,t)),s.srcset&&e(s,i=n.roundImageSize(s.srcset,t))),s},t._mixSettings=function(t){return function(t,e,i){e=l.deepExtend({},e);return t&&t.imageSettings.processingSettings&&(e.crop||(e.crop={}),e.crop=l.deepExtend(e.crop,t.cropSettings),e.canvas||(e.canvas={}),e.canvas=l.deepExtend(e.canvas,t.canvasSettings),e.frame||(e.frame={}),e.frame=l.deepExtend(e.frame,t.frameSettings),e.scale||(e.scale={}),e.scale.option||(e.scale.option="fill")),i.width&&"auto"!==i.width&&(e.scale.width=i.width),i.height&&"auto"!==i.height&&(e.scale.height=i.height),i.imageSettings&&(e=l.deepExtend(e,i.imageSettings)),e}(f[this.o.infoId],this.imageSettings,t)},t._calcProcessingSettings=function(){var t=f[this.o.infoId],e={},i={},s={};t.imageSettings.viewer||(t.imageSettings.viewer={});var n=t.imageSettings.viewer,o={width:t.imageSettings.original.width,height:t.imageSettings.original.height,widthScale:1,heightScale:1};n.scale&&(n.scale.width&&(o.width*=n.scale.width),n.scale.height&&(o.height*=n.scale.height)),o.widthScale=o.width/t.imageSettings.width,o.heightScale=o.height/t.imageSettings.height,n.crop&&(n.crop.width&&(e.width=h(n.crop.width)),n.crop.height&&(e.height=h(n.crop.height)),n.crop.x&&(e.x=h(n.crop.x)),n.crop.y&&(e.y=h(n.crop.y))),n.canvas&&(n.canvas.width&&(i.width=h(n.canvas.width)),n.canvas.height&&(i.height=h(n.canvas.height)),n.canvas.border&&(i.border={},n.canvas.border.width&&(i.border.width=h(n.canvas.border.width)),n.canvas.border.height&&(i.border.height=h(n.canvas.border.height)))),n.frame&&n.frame.width&&(s.width=h(n.frame.width)),t=d.extend(t,{cropSettings:e,canvasSettings:i,frameSettings:s,originSize:o})},t._addImage=function(t,e){var i=this,s=(d.defined(e.src.dontLoad)?e.src:this.o).dontLoad,n=function(t){t=i._mixSettings(t);return t.scale&&t.scale.width&&t.scale.height&&"ignore"!==t.scale.option&&(t.scale.width>=t.scale.height?i.o.convertSmallerSideToZero&&(t.scale.height=0):i.o.convertSmallerSideToZero&&(t.scale.width=0)),t},o=n(e.src),r=null,a=null;e.src.imageSettings&&e.src.imageSettings.tile&&(a=e.src.imageSettings.tile.number+""),e.srcset&&(r={dppx:e.srcset.dppx,settings:n(e.srcset)});n=null,n=null===a?new p(t,this.originUrl,o,r,s,this.o.referrerPolicy):new m(t,this.originUrl,o,r,s,this.o.referrerPolicy,a);return this.images[t]={serverWidth:e.src.width,serverHeight:e.src.height,image:n},this.images[t]},t._load=function(t,e){var i,s,n=this;this._addImage(t,e).image.load().then(function(t){i="imageOnload",(s=t)instanceof p&&(n.someImageIsLoaded=!0)}).catch(function(t){s=t,i="imageOnerror"}).finally(function(){s instanceof p&&(n.someImageIsComplete=!0);var t=n.images[s.name];t&&n.emit(i,{data:n._createImageData(t,e.src.callbackData)})})},t._createImageData=function(t,e){var i=t.image;return{callbackData:e,name:i.name,tileName:i.tileName,tile:i instanceof m,node:i.imageNode,serverWidth:t.serverWidth,serverHeight:t.serverHeight,width:i.size.width,height:i.size.height,src:i.src,srcset:i.srcset,state:i.state,dppx:i.dppx||1}},t._filter=function(i){var s=[];return l.objEach(this.images,function(t,e){e.image instanceof m==!!i&&s.push(e)}),s},t.getCropPosition=function(){var t=f[this.o.infoId],e=o(this.imageSettings,"x");e&&!/%$/.test(e)&&(e=h(e/t.originSize.width));var i=o(this.imageSettings,"y");return i&&!/%$/.test(i)&&(i=h(i/t.originSize.height)),{x:e||t.cropSettings.x,y:i||t.cropSettings.y,type:o(this.imageSettings,"type")||o(t.imageSettings.processingSettings,"type")}},t.isExist=function(t){t=this._convertImageSettings(t);var e=this.getImageName(t.src),i=Object.prototype.hasOwnProperty.call(this.images,e);return i||t.src.imageSettings&&t.src.imageSettings.tile||!t.src.width||(e=this._filter(!1),i=this._getBiggerImage(t.src.width,e)),!!i},t.isLoaded=function(t){t=this._convertImageSettings(t);t=this.images[this.getImageName(t.src)];return!!(t=t&&2===t.image.state)},t.isReady=function(){return this.someImageIsLoaded},t.isComplete=function(){return this.someImageIsComplete},t.getOriginSize=function(){var t,e=null,i=null;return f[this.o.infoId]&&(i=f[this.o.infoId].imageSettings),i&&(i=i.processingSettings?(t=i.width,i.height):(t=i.original.width,i.original.height),e={width:t,height:i}),e},t.getImageInfo=function(){var o=this;return this.imageInfoPromise||(this.imageInfoPromise=new r(function(e,i){var t=o.originUrl,s=d.getHashCode(o.infoUrl.replace(/^http(s)?:\/\//,"")),n=l.paramsToQueryString(o.imageSettings);""!==n?(t+="?"+n,t+="&"):t+="?",t+="nometa&info=sirv_image_info_"+s+"_"+o.o.type,t=l.cleanQueryString(t),l.getRemoteData(t,"image_info_"+l.generateUUID(),o.o.referrerPolicy).then(function(t){!t.width||t._isplaceholder?i(t):(f[o.o.infoId]={imageSettings:t},o._calcProcessingSettings(),e(f[o.o.infoId]))}).catch(i)})),this.imageInfoPromise},t._getBiggerImage=function(i,t,s){var n=null;return i=i||0,t=t||this.images,s===d.U&&(s=this.o.dontLoad),l.objEach(t,function(t,e){ie.serverWidth)||(n=e))}),n},t.sendLoad=function(t){var e;t=this._convertImageSettings(t),e=(e=this.images[this.getImageName(t.src)])||this._getBiggerImage(t.src.width),this.emit("imageOnload",{data:this._createImageData(e,t.src.callbackData)})},t.cancelLoadingImage=function(t){t=this._convertImageSettings(t);var e=this.getImageName(t.src),t=this.images[e];t&&t.image.isLoading()&&(t.image.destroy(),delete this.images[e])},t.getImageName=function(t){var e;return e=l.cleanQueryString(this.originUrl+("?"+l.paramsToQueryString(this._mixSettings(t)))),t=(e=(e=(e=e.replace("?+","?")).replace("&+","&")).split("?"))[1],e=e[0],t=(t=t.split("&")).sort(),""+d.getHashCode(e+"?"+t.join("&"))},t.getClearSizeWithoutProcessingSettings=function(t){var e={},i=f[this.o.infoId];return t.width&&(e.width=Math.round(t.width*i.originSize.widthScale)),t.height&&(e.height=Math.round(t.height*i.originSize.heightScale)),e},t.getImage=function(t){var e=this._convertImageSettings(t),i=(d.defined(e.src.dontLoad)?e.src:this.o).dontLoad,s=this.getImageName(e.src),t=this.images[s];return t||this._load(s,d.extend({},e)),t&&t.image.state<2&&!i&&(t=null),t||!e.src.maxSize&&this.o.loadNewImage||(e.src.exactSize?i&&(t=this.images[s]):t=this._getBiggerImage(null,null,i)),t=t&&this._createImageData(t,e.src.callbackData)},t.getOriginImageUrl=function(){var t=null;return this.originUrl&&(t=this.originUrl),t},t.getProcessingSettings=function(){var t=f[this.o.infoId];return{crop:t.cropSettings,cropClear:t.cropSettingsClear,canvas:t.canvasSettings,canvasClear:t.canvasSettingsClear}},t.getDescription=function(){var t=null,e=f[this.o.infoId];return e&&(t=e.imageSettings.original.description||null),t},t.getThumbnail=function(n){var t,e,o,i,s,r,a=this,h={imageSettings:null,size:null,src:null,srcset:null};return f[this.o.infoId]&&(t=c(n,d.DPPX),e=null,o=this.o.convertSmallerSideToZero,i=n.originUrl||this.originUrl,s=function(t,e){var i,s={scale:{option:"fill"}};(t.width||t.height)&&(t.width&&t.height?(s.scale.width=t.width,s.scale.height=t.height):(i=t.width||t.height,s.scale.width=i,s.scale.height=i)),t.width===t.height&&(n.crop?s.crop={x:"center",y:"center",width:t.width,height:t.height}:(s.scale.option="fit",s.canvas||(s.canvas={}),s.canvas.width=t.width,s.canvas.height=t.height)),s.scale&&(n.width&&n.height?f[a.o.infoId].imageSettings.original.width>=f[a.o.infoId].imageSettings.original.height?o&&(s.scale.height=0):o&&(s.scale.width=0):n.width?o&&(s.scale.height=0):n.height&&o&&(s.scale.width=0)),e&&(s=d.extend(s,e));e=s;return(s={}).imageSettings=e,(s=a._mixSettings(s)).text&&delete s.text,!n.watermark&&s.watermark&&delete s.watermark,l.paramsToQueryString(s)},r=function(t){var e={};return t.width&&(e.width=t.width),t.height&&(e.height=t.height),e},(t.src.crop||t.src.width&&t.src.height)&&(o=!1),h={callbackData:n.callbackData,size:r(t.src.imageSettings),src:l.cleanQueryString(i+"?"+s(r(t.src),t.src.imageSettings))},1%',this.loaderElement.addClass("smv-pl-wrapper"),this.circleWrapper=a.$new("div").addClass("smv-pl-circle-wrapper");var t=this.size.width,e=t/2;this.circles.push(r("circle",{class:"smv-pl-pie",r:e-2,cx:e,cy:e})),this.circles.push(r("circle",{class:"smv-pl-slice",r:e-2,cx:e,cy:e})),this.svg=r("svg",{class:"smv-pl-indicator",viewBox:"0 0 "+t+" "+t}),this.circles[1].node.style.strokeDasharray=this.lineSize,this.circles[1].node.style.strokeDashoffset=this.lineSize,h(this.circles[1]).addEvent("transitionend",function(t){t.stop()}).setCssProp("transition","stroke-dashoffset .1s linear"),h(this.svg).append(this.circles[0]),h(this.svg).append(this.circles[1]),this.textWrapper=a.$new("div").addClass("smv-pl-text-wrapper"),this.text=a.$new("span").addClass("smv-pl-text"),this.text.changeContent(this.currentPersent+this.p),this.textWrapper.append(this.text),this.circleWrapper.append(this.svg),this.loaderElement.append(this.circleWrapper),this.loaderElement.append(this.textWrapper)},e.append=function(){this.progressState!==d&&s.prototype.append.call(this)},e.progress=function(){var t,e;this.progressState!==d&&(this.progressState=c,this.currentValue+=1,this.currentPersent=(t=this.options.max,e=this.currentValue,Math.round(100/(t/e))),this.currentLineSize=(t=this.lineSize,e=this.currentPersent,t-t/100*e),this.circles[1].node.style.strokeDashoffset=this.currentLineSize,this.text.node.innerHTML=this.currentPersent+this.p,this.currentValue===this.options.max&&(this.progressState=d,this.hide()))},e.setMaxOpacity=function(t){!this.maxOpacityFlag&&this.loaderElement&&(this.maxOpacity=t,this.maxOpacityFlag=!0,this.loaderElement.setCssProp("opacity",t))},e.isEnded=function(){return this.currentValue===this.options.max},e.isStarted=function(){return 0t&&i.startY+i.countY>e},t.calcCount=function(){this.count={x:Math.ceil(this.size.width/this.tileS.width)+1,y:Math.ceil(this.size.height/this.tileS.height)+1}},t.findShownTiles=function(){var t=this.position,e=this.tileS,i=0,s=0,n=this.count.x,o=this.count.y;t.x<0&&(i=r.getTileIndex(Math.abs(t.x),e.width)),t.y<0&&(s=r.getTileIndex(Math.abs(t.y),e.height)),i+n>this.cols&&(n=this.cols-i),s+o>this.rows&&(o=this.rows-s),this.shownTiles={startX:i,countX:n,startY:s,countY:o}},t.calcTileSize=function(){this.tileS.width=r.getTileSize(this.bTileS.width,this.scale.x),this.tileS.height=r.getTileSize(this.bTileS.height,this.scale.y),this.lastTileSize.width=r.getTileSize(this.baseLastTileSize.width,this.scale.x),this.lastTileSize.height=r.getTileSize(this.baseLastTileSize.height,this.scale.y)},t.calcData=function(t){this.lastScale!==this.scale.x&&(this.calcTileSize(),this.calcCount(),this.mapS.width=this.tileS.width*(this.cols-1)+this.lastTileSize.width,this.mapS.height=this.tileS.height*(this.rows-1)+this.lastTileSize.height,this.lastCorrectionPosition.x=(this.bMapS.width*this.bScale.x-this.mapS.width)/2,this.lastCorrectionPosition.y=(this.bMapS.height*this.bScale.y-this.mapS.height)/2,this.lastScale=this.scale.x),this.position.x=t.x+this.lastCorrectionPosition.x,this.position.y=t.y+this.lastCorrectionPosition.y},t.setScale=function(t){this.lastScale=this.scale.x,this.scale.x=t.x*this.bScale.x,this.scale.y=t.y*this.bScale.y},t.action=function(t,e){this.lastGlobaslScale!==e.x&&(this.setScale(e),this.lastGlobaslScale=e.x),this.calcData(t),this.findShownTiles()},t.resize=function(t){this.size.width=t.width,this.size.height=t.height,this.calcCount(),this.findShownTiles()},t.setMapS=function(t,e){null!=t&&(this.mapS.width=t),null!=e&&(this.mapS.height=e)},t.getShownTiles=function(){return this.shownTiles},t.getMapS=function(){return this.mapS},t.destroy=function(){this.shownTiles=h([])},r}(),S=0,y=1,w=2,b=function(i){"use strict";function t(t){var e=i.call(this)||this;return e.id=t.id,e.index={x:t.indexX,y:t.indexY},e.position={x:t.x,y:t.y},e.size={width:t.width,height:t.height},e.storage=t.storage,e.state=S,e.node=null,e.storage.has(e.id)&&(e.node=e.storage.get(e.id),e.state=w),e}n.inheritsLoose(t,i);var e=t.prototype;return e.isLoaded=function(){return this.state===w},e.addImageToStorage=function(){this.storage.has(this.id)||this.storage.set(this.id,this.node)},e.load=function(){this.state===S&&(this.state=y,this.emit("getTile",{data:{indexX:this.index.x,indexY:this.index.y,number:this.id}}))},e.cancelLoading=function(){this.state===y&&(this.state=S,this.emit("zoomCancelLoadingOfTiles",{data:{indexX:this.index.x,indexY:this.index.y,number:this.id}}))},e.setImage=function(t){this.state!==w&&(this.state=w,this.node=h(t),this.addImageToStorage())},e.destroy=function(){this.cancelLoading(),this.storage=null,i.prototype.destroy.call(this)},t}(i),E=function(){"use strict";function t(t,e){this.p=h(t),this.dppx=e,this.w=u.$new("div"),this.cvs=u.$new("canvas"),this.ctx=this.cvs.node.getContext("2d"),this.w.append(this.cvs)}var e=t.prototype;return e.setIndex=function(t){this.w.addClass("deepzoom-level-"+t),this.w.attr("z-index"+(t+1))},e.append=function(){this.p.append(this.w)},e.show=function(){this.w.setCssProp("display","")},e.hide=function(){this.w.setCssProp("display","none")},e.clear=function(){this.ctx.clearRect(0,0,this.cvs.node.width,this.cvs.node.height)},e.draw=function(t,e,i){this.ctx.setTransform(1,0,0,1,0,0),this.clear(),this.ctx.setTransform(t.x,0,0,t.y,e,i)},e.drawTile=function(t,e,i){"edge"!==u.browser.uaName&&"ie"!==u.browser.uaName||1this.minDisplayedSize.width,e=e.height>this.minDisplayedSize.height;this.isShown=i&&s&&n&&e,t!==this.isShown&&(this.isShown?this.view.show():this.view.hide(),this.isShown||this.cancelLoadingOfTiles())},e.action=function(t,e){this.globalPosition.x=t.x,this.globalPosition.y=t.y,this.globalScale.x=e.x,this.globalScale.y=e.y,this.camera.action(this.globalPosition,this.globalScale),(this.camera.getMapS().width>this.mSize.width||this.camera.getMapS().height>this.mSize.height)&&this.camera.setMapS(this.mSize.width,this.mSize.height),this.checkSize(),this.append(),this.draw()},e.loadImages=function(){this.isShown&&this.loadedTiles!==this.countOfTiles&&this.eachTile(function(t){t.load()})},e.setLensSize=function(t,e){this.view.setCanvasSize(t,e)},e.resize=function(t){this.setLensSize(t.width,t.height),this.camera.resize(t),this.action(this.globalPosition,this.globalScale)},e.destroy=function(){this.off("getTile"),this.off("zoomCancelLoadingOfTiles"),this.isShown=!1,this.camera.destroy(),this.tiles.forEach(function(t){t.forEach(function(t){t.destroy()})}),s.prototype.destroy.call(this)},t}(i),x=function(){"use strict";function t(t,e){this.p=h(t),this.c=u.$new("div"),this.c.addClass(e+"-deepzoom")}var e=t.prototype;return e.getContainer=function(){return this.c},e.show=function(){this.p.append(this.c)},e.hide=function(){this.c.remove()},e.destroy=function(){this.c.remove(),this.c=null},t}(),z=function(s){"use strict";function t(t,e){var i=s.call(this)||this;return i.view=t,i.options=u.extend({tiles:!0,inner:!0,tileSize:{width:256,height:256},minZoomFactor:100,upscale:!1},e),i.hash=null,i.setDefaultVars(),i}n.inheritsLoose(t,s),t.convertScaleToSize=function(t,e){return{width:d.round(t.width*e.x,2),height:d.round(t.height*e.y,2)}};var e=t.prototype;return e.setHash=function(t){this.hash=""+u.getHashCode(t)},e.setDefaultVars=function(){var e=this;this.isShown=!1,this.originSize={width:0,height:0},this.maxSize={width:0,height:0},this.minSize={width:0,height:0},this.lensSize={width:0,height:0},this.currentSize={width:0,height:0},this.levels=h([]),this.on("getTile",function(t){e.options.tiles||(delete t.data.imageSettings.tile,delete t.data.number)})},e.createLevels=function(){function t(t,e){return e<1.5?t:t*u.DPPX}var e=this.maxSize,i=this.minSize;if(!this.levels.length&&e.width-i.width>this.options.minZoomFactor){var s=[];this.options.inner?s=function(t,e){for(var i=Math.max(1,Math.round(Math.log(Math.max(e.width/t.width,e.height/t.height))/Math.LN2)),s=e.width,n=e.height,o=[];0i.size.width?r(this.maxSize.width,i.size.width):1s.width-i.width&&(t=s.width-i.width),e>s.height-i.height&&(e=s.height-i.height),this.pos.x=t,this.pos.y=e,null===this.dPos.x&&(this.dPos.x=t,this.dPos.y=e),this.inDoc&&(this.isPlaying||this.animate())},e.setContainerSize=function(){var t=this.view.getContainerSize();this.pSize=t,this.view.setContainerSize(t),this.view.setInsideContainerFontSize(t)},e.show=function(t){this.inDoc||(this.inDoc=!0,this.setContainerSize(),this.view.show(t,this.pSize))},e.hide=function(){this.inDoc&&(this.inDoc=!1,this.view.hide(),this.pos={x:null,y:null},this.dPos={x:null,y:null},this.size={width:0,height:0},this.dSize={width:0,height:0})},e.resize=function(){this.inDoc&&(this.setContainerSize(),this.view.setContainerPosition())},e.destroy=function(){this.stopAnimation(),this.inDoc=!1},t}(),function(){"use strict";function t(t,e){this.view=new P(t,e),this.controller=new N(this.view)}var e=t.prototype;return e.setEventToMainContainer=function(t,e){this.view.c.addEvent(t,e)},e.removeEventToMainContainer=function(t,e){e?this.view.c.removeEvent(t,e):this.view.c.removeEvent(t)},e.clearEvents=function(){this.view.c.clearEvents()},e.getBoundaries=function(){return this.view.c.node.getBoundingClientRect()},e.show=function(t){this.controller.show(t)},e.hide=function(){this.controller.hide()},e.setSize=function(t){this.controller.setSize(t)},e.setPosition=function(t,e){this.controller.setPosition(t,e)},e.destroy=function(){this.controller.destroy(),this.view.destroy()},t}());function T(t,e){return Math.abs(t-e)}var D,L,R=(D=function(){"use strict";function t(t){this.p=h(t);t="sirv-zoom-map";this.c=u.$new("div"),this.c.addClass(t),this.lens=u.$new("div"),this.lens.addClass(t+"-lens"),this.img=null,this.b=h(u.D.node.body),this.c.append(this.lens)}var e=t.prototype;return e.getRightPosition=function(t,e){var i=this.c.getRect();return{x:t-i.left,y:e-i.top}},e.addDomEventToDocBody=function(t,e){this.b.addEvent(t,e)},e.removeDomEventToDocBody=function(t,e){this.b.removeEvent(t,e)},e.addDomEventToLens=function(t,e){this.lens.addEvent(t,e)},e.addDomEvent=function(t,e){this.c.addEvent(t,e)},e.changeCursor=function(t){this.c.setCssProp("cursor",t)},e.removeEvents=function(){this.c.removeEvent("btnclick tap"),this.c.removeEvent("mousedown touchstart"),this.lens.removeEvent("mousedown touchstart"),this.c.removeEvent("mousemove touchmove")},e.setContainerCss=function(t){this.c.setCss({width:t.width+"px",height:t.height+"px"})},e.setLensCss=function(t,e,i){this.lens.setCss({top:t.top-1+"px",left:t.left-1+"px",width:e.width+"px",height:e.height+"px","font-size":i+"px"})},e.setImg=function(t,e){this.img=u.$new("img",{src:t}),e&&this.img.attr("srcset",e+" 2x"),this.c.append(this.img)},e.removeEventTransitionEvent=function(){this.c.removeEvent("transitionend")},e.show=function(e){var i=this;this.c.setCss({opacity:0,transition:"opacity .3s linear"}),this.p.append(this.c),this.c.getSize(),this.removeEventTransitionEvent(),this.c.addEvent("transitionend",function(t){t.stop(),i.removeEventTransitionEvent(),i.c.setCssProp("transition",""),i.addDomEvent("mousedown touchstart",function(t){t.stop()}),e()}),this.c.setCssProp("opacity",1)},e.hide=function(t,e){var i=this;this.removeEventTransitionEvent(),t?(this.c.remove(),this.removeEvents(),e()):this.c.addEvent("transitionend",function(t){t.stop(),i._removeEventTransitionEvent(),i.c.setCssProp("transition",""),i.c.remove(),i.removeEvents(),e()}),this.c.setCssProp("opacity",0)},e.destroy=function(){this.c=null,this.lens=null},t}(),L=function(s){"use strict";function t(t,e){var i=s.call(this)||this;return i.view=t,i.o=e,i.state=c.APPEARANCE.HIDDEN,i.scale={x:1,y:1},i.viewPortSize={width:0,height:0},i.bISize={width:0,height:0},i.cBISize={width:0,height:0},i.cBIPosition={top:0,left:0},i.mapSize={width:0,height:0},i.ls={width:0,height:0},i.lp={top:0,left:0},i.clp={x:0,y:0},i.isDragMoved=!1,i}n.inheritsLoose(t,s),t.setInTheCenter=function(t){return t<50?t=Math.max(t-(50-t),0):50e.x&&s.tope.y&&(i=!0),i},e.setEvents=function(){var s=this,n=1,o=!1;this.dragEndHandler=function(t){o&&(t.stop(),o=!1,s.clp={x:0,y:0},s.view.changeCursor(""),s.view.removeDomEventToDocBody(t.type,s.dragEndHandler),s.view.removeDomEventToDocBody("mouseout",s.mouseOutHandler))},this.mouseOutHandler=function(t){t.stop(),t.oe.relatedTarget&&"HTML"!==t.oe.relatedTarget.tagName||!o||(s.dragEndHandler(t),s.view.removeDomEventToDocBody("mouseup touchend",s.dragEndHandler))},this.view.addDomEvent("btnclick tap",function(t){t.stop(),s.emit("zoomMapNewPosition",{data:s.getPercentPosition(t.x,t.y)})}),this.view.addDomEventToLens("mousedown touchstart",function(t){var e,i=t.getPageXY();s.isInside(i.x,i.y)&&(t.stop(),n=1,e={x:0,y:0},t=(i=t).getOriginEvent(),u.defined(t.offsetX)?(e.x=t.offsetX,e.y=t.offsetY):(i=h(i.getTarget()).getPosition(),e.x=t.targetTouches[0].pageX-i.left,e.y=t.targetTouches[0].pageY-i.top),e=e,s.clp.y=e.y,s.clp.x=e.x,o=!0,s.view.addDomEventToDocBody("mouseup touchend",s.dragEndHandler),s.view.addDomEventToDocBody("mouseout",s.mouseOutHandler))}),this.view.addDomEvent("mousemove touchmove",function(t){o&&(n<=0&&(t.stop(),t=t.getPageXY(),s.view.changeCursor("move"),s.emit("zoomMapNewPosition",{data:s.getPercentPosition(t.x,t.y)})),n--)})},e.calcMap=function(t,e,i,s){var n=this.o.maxwidth,o=this.o.maxheight;i<=n&&(o=(n=i/2)*(e/t)),s<=o&&(n=(o=s/2)*(t/e)),t/es.height&&(n=s.height-e.height),i+e.width>s.width&&(i=s.width-e.width),this.lp.top=n,this.lp.left=i},e.setLensSize=function(t,e){this.cBISize.width=t,this.cBISize.height=e;var i=this.mapSize,s=this.viewPortSize;this.ls.width=s.width>=t?i.width:s.width/t*i.width,this.ls.height=s.height>=e?i.height:s.height/e*i.height},e.move=function(t,e){var i=this.bISize,s=i.width*e.x,n=i.height*e.y,o=Math.abs(t.y+(i.height-n)/2),i=Math.abs(t.x+(i.width-s)/2);this.scale.x=e.x,this.scale.y=e.y,this.setLensSize(s,n),this.setLensPosition(o,i),this.view.setLensCss(this.lp,this.ls,Math.max(this.mapSize.width,this.mapSize.height))},e.show=function(){var t=this;u.contains([c.APPEARANCE.SHOWING,c.APPEARANCE.SHOWN],this.state)||(this.state=c.APPEARANCE.SHOWING,this.view.show(function(){t.setEvents(),t.state=c.APPEARANCE.SHOWN}))},e.hide=function(t){var e=this;u.contains([c.APPEARANCE.HIDDEN,c.APPEARANCE.HIDING],this.state)&&!t||(this.state=c.APPEARANCE.HIDING,this.view.hide(t,function(){e.view.removeDomEventToDocBody("mouseup touchend",e.dragEndHandler),e.state=c.APPEARANCE.HIDDEN}))},e.resize=function(t,e,i,s,n,o){this.o.maxwidth=t,this.o.maxheight=e,this.calcMap(i,s,n,o),this.view.setContainerCss(this.mapSize)},e.destroy=function(){this.hide(!0),s.prototype.destroy.call(this)},t}(i),function(s){"use strict";function t(t,e){var i=s.call(this)||this;return i.options=u.extend({maxwidth:200,maxheight:200},e||{}),i.view=new D(t),i.controller=new L(i.view,i.options),i.controller.setParent(n.assertThisInitialized(i)),i}n.inheritsLoose(t,s);var e=t.prototype;return e.prepare=function(t,e,i,s){this.controller.prepare(t,e,i,s)},e.move=function(t,e){this.controller.move(t,e)},e.setImg=function(t,e){this.view.setImg(t,e)},e.show=function(){this.controller.show()},e.hide=function(t){this.controller.hide(t)},e.resize=function(t,e,i,s,n,o){this.controller.resize(t,e,i,s,n,o)},e.destroy=function(){this.controller.destroy(),this.view.destroy(),s.prototype.destroy.call(this)},t}(i));function M(t,e,i){return u.defined(e)||(e=0),u.defined(i)||(i=100),Math.min(Math.max(t,e),i)}var F,k,t=function(){"use strict";function t(t){this.pn=h(t);t="sirv-zoom";this.cnv=u.$new("div"),this.cnv.addClass(t),this.node=u.$new("div").setCss({opacity:0}),this.node.addClass(t+"-wrapper"),this.zoomWrapper=u.$new("div").addClass("sirv-zoom-image-wrapper"),this.zoom=(t=this.pn,h(h(t).node.getElementsByTagName("img")[0]||h(t).node.getElementsByTagName("canvas")[0]||t)),this.lens=u.D.node.body,this.isBody=!0,this.image=null,this.perspective="",u.browser.mobile&&"ios"===u.browser.platform&&(this.perspective="perspective(1000px) ")}var e=t.prototype;return e.getHash=function(){return this.image?this.image.$J_UUID+""||this.image.attr("src"):null},e.getParentSize=function(){return this.pn.getSize()},e.getParentPostion=function(){return this.pn.getPosition()},e.getZoomSize=function(){return this.zoom.getSize()},e.getParentBoundaries=function(){return this.cnv.node.parentNode?this.cnv.node.getBoundingClientRect():null},e.addScrollEvent=function(t){u.W.addEvent("scroll",t)},e.removeScrollEvent=function(t){t?u.W.removeEvent("scroll",t):u.W.removeEvent("scroll")},e.addClassToWrapper=function(t){this.node.addClass("sirv-"+t+"-zoom")},e.setEventToMainContainer=function(t,e){this.cnv.addEvent(t,e)},e.removeEventFromMainContainer=function(){for(var t=arguments.length,e=new Array(t),i=0;ithis.iSize.width||this.zoomNodeSize.height>this.iSize.height?this.hide(!0):(this.getBaseScale(),this.scale.x=v(this.scale.x,this.baseScale.x,1),this.scale.y=v(this.scale.y,this.baseScale.y,1),this.calcSizeOfLens(),this.calcPositionOfLens(),this.setLensStyleOnResize(),this.deepZoom.setLensSize(this.pSize.width,this.pSize.height).setMinSize(this.zoomNodeSize.width,this.zoomNodeSize.height).resize(),this.view.setEventNodePositionSize(this.pPos,this.pSize),this.o.smoothing||(this.sendZoomingAction(),this.setCursorState(),this.deepZoomAction(),this.view.setImagePosition(this.iPos,this.scale)))))},e.destroy=function(){this.hide(!0),clearTimeout(this.zoomingTimer),this.view.removeScrollEvent(this.scrollHandler),this.setCursorState("canZoom"),clearTimeout(this.deepZoomTimer),this.deepZoom.destroy(),this.deepZoom=null,this.off("getTile"),this.off("zoomCancelLoadingOfTiles"),this.zoomingTimer=null,s.prototype.destroy.call(this)},t}(i),V=function(a){"use strict";function t(t,e){e=a.call(this,t,u.extend({map:!1,mapSize:50},e))||this;return e.basePercentOfScale={x:0,y:0},e.clonedImage=null,e.hideTimer=null,e.showTimer=null,e.map=null,e.zoomingTimer=null,e.currentCursorState=0,e.innerImagePosition={x:0,y:0},e.setUpEvent=!1,u.browser.mobile&&(e.o.pan=!0,"hover"===e.o.trigger&&(e.o.trigger="click")),e.view.setLensCss(e.lensPosition,e.lensSize),e.ANIM_STEP=.3,e}n.inheritsLoose(t,a);var e=t.prototype;return e.init=function(){a.prototype.init.call(this),this.createZoomMap()},e.createZoomMap=function(){var t,e,i=this;this.o.map&&(t=parseInt(this.pSize.width/2/100*this.o.mapSize,10),e=parseInt(this.pSize.height/2/100*this.o.mapSize,10),this.map=new R(this.view.getContainerForMap(),{maxwidth:t,maxheight:e}),this.map.setParent(this),this.on("zoomGetImage",function(t){t.stopEmptyEvent(),t.data.map=!0,t.data.exactSize=!0}),this.on("zoomMapNewPosition",function(t){t.stopAll(),i.setXY(i.pPos.left+i.lensSize.width/100*t.data.x,i.pPos.top+i.lensSize.height/100*t.data.y),i.calcPositionOfImageInCenter(i.scale),i.o.smoothing||(i.deepZoomAction(),i.view.setImagePosition(i.iPos,i.scale),i.map&&i.map.move(i.iPos,i.scale))}))},e.move=function(t,e){this.setXY(t,e),this.calcPositionOfImage(this.scale),this.afterMove()},e.render=function(t,e){a.prototype.render.call(this,t,e),this.map&&this.map.move(t||this.iDPos,e||this.dScale)},e.calcPositionOfImageForPinch=function(t){t=t||this.dScale;var e=this.iSize.width*t.x,i=this.iSize.height*t.y,s=(this.iSize.width-e)/2,t=(this.iSize.height-i)/2,n=e>this.lensSize.width?(n=this.x-(e/100*this.basePercentOfScale.x+s),f(n,0-s,s+e,this.lensSize.width)):this.lensSize.width/2-(e/2+s),o=i>this.lensSize.height?(o=this.y-(i/100*this.basePercentOfScale.y+t),f(o,0-t,t+i,this.lensSize.height)):this.lensSize.height/2-(i/2+t);this.iPos={x:n,y:o}},e.setScale=function(t,e,i){this.state===c.APPEARANCE.SHOWN&&(u.defined(e)&&this.setXY(e,i),this.scale.x=t,this.scale.y=t,this.scale.x=v(this.scale.x,this.baseScale.x,1),this.scale.y=v(this.scale.y,this.baseScale.y,1),this.calcPositionOfImageForPinch(this.scale),this.sendZoomingAction(),this.setCursorState(),this.o.smoothing||(this.dScale.x=this.scale.x,this.dScale.y=this.scale.y,this.imageDPosition.x=this.imagePosition.x,this.imageDPosition.y=this.imagePosition.y,this.deepZoomAction(),this.view.setImagePosition(this.imagePosition,this.scale),this.map&&this.map.move(this.imagePosition,this.scale)))},e.afterZoom=function(t){this.calcPositionOfImageForPinch(this.scale),a.prototype.afterZoom.call(this,t)},e.calcPositionOfImage=function(t,e,i,s){var n=i||this.x,o=s||this.y;t=t||this.dScale;var r=this.iSize.width*t.x,i=this.iSize.height*t.y,s=(this.iSize.width-r)/2,t=(this.iSize.height-i)/2,a=r>this.lensSize.width?(a=n-m(r,n/this.pSize.width*100)-s,f(a,0-s,s+r,this.lensSize.width)):this.lensSize.width/2-(r/2+s),h=i>this.lensSize.height?(h=o-m(i,o/this.pSize.height*100)-t,f(h,0-t,t+i,this.lensSize.height)):this.lensSize.height/2-(i/2+t);this.iPos={x:a,y:h}},e.calcPositionOfImageInCenter=function(t){t=t||this.dScale;var e=this.iSize.width*t.x,i=this.iSize.height*t.y,s=(this.iSize.width-e)/2,n=(this.iSize.height-i)/2,o=this.x/(this.lensSize.width/e),t=this.y/(this.lensSize.height/i),o=this.lensSize.width/2-o-s,t=this.lensSize.height/2-t-n;o=f(o,0-s,s+e,this.lensSize.width),t=f(t,0-n,n+i,this.lensSize.height),this.iPos={x:o,y:t}},e.setBasePercent=function(t){var e,i,s,n;u.contains([c.APPEARANCE.SHOWN,c.APPEARANCE.SHOWING],this.state)&&(e=(n=this.iSize).width*this.scale.x,i=n.height*this.scale.y,s=(n.width-e)/2,n=(n.height-i)/2,this.basePercentOfScale={x:g(Math.abs(this.iPos.x)+this.correctX(t.x)-s,e),y:g(Math.abs(this.iPos.y)+this.correctY(t.y)-n,i)})},e.setImage=function(t){(this.isShown()||this.isShowing())&&(t.callbackData.map?this.map&&this.map.setImg(t.src,t.srcset):a.prototype.setImage.call(this,t))},e.endOfShowing=function(t){a.prototype.endOfShowing.call(this,t)&&this.map&&this.map.show()},e.getImagePosition=function(){this.innerImagePosition={x:(this.lensSize.width-this.zoomNodeSize.width)/2,y:(this.lensSize.height-this.zoomNodeSize.height)/2}},e.show=function(t,e,i,s,n,o){var r=this;return!!a.prototype.show.call(this)&&(this.setUpEvent=n,this.iSize={width:e.width,height:e.height},this.view.addStartCss(),this.view.appendNodes(t,this.iSize),this.getSizes(),this.setXY(i,s),this.calcSizeOfLens(),this.getImagePosition(),this.getBaseScale(),this.showDeepZoom(e.originWidth,e.originHeight),this.showTimer=setTimeout(function(){var t;r.showTimer=null,r.emit("zoomBeforeShow",{data:{}}),o&&"max"!==o&&("zero"===o?(r.scale.x=r.baseScale.x,r.scale.y=r.baseScale.y):(t=r.deepZoom.getScale("zoomin"),r.scale.x=t,r.scale.y=t)),r.calcPositionOfImage(r.scale,!0),r.view.setEventNodePositionSize(r.pPos,r.pSize),r.dScale.x=r.baseScale.x,r.dScale.y=r.baseScale.y,r.iDPos={x:(r.iSize.width-r.iSize.width*r.dScale.x)/2*-1+r.innerImagePosition.x,y:(r.iSize.height-r.iSize.height*r.dScale.y)/2*-1+r.innerImagePosition.y},r.view.setLensCss(r.lensPosition,r.lensSize),r.view.setImageSize(r.iDPos,r.iSize,r.dScale),r.boundaries=r.view.getBoundaries(),r.map&&r.map.prepare(r.iSize.width,r.iSize.height,r.pSize.width,r.pSize.height),r.o.smoothing&&"zero"!==o?(r.setEvents(),r.animStep=.3,r.animCb=function(){r.deepZoomAction(),r.endOfShowing(!0)}):r.endOfShowing(),r.o.smoothing&&r.anim.start(),r.sendZoomShownEvent()},0),!0)},e.hide=function(t){var e=this,i=a.prototype.hide.call(this,t);return i&&(clearTimeout(this.showTimer),t||(this.scale.x!==this.baseScale.x||this.scale.y!==this.baseScale.y?(this.animStep=.4,this.scale.x=this.baseScale.x,this.scale.y=this.baseScale.y,this.iPos={x:(this.iSize.width-this.iSize.width*this.scale.x)/2*-1+this.innerImagePosition.x,y:(this.iSize.height-this.iSize.height*this.scale.y)/2*-1+this.innerImagePosition.y},this.animCb=function(){e.endOfHiding()}):this.endOfHiding())),i},e.addMouseScrollEvent=function(){var r=this;this.view.setEventToWrapper("mousescroll",function(t){var e,i,s;t.stop(),r.o.pan&&(e=(s=r.iSize).width*r.scale.x,o=s.height*r.scale.y,i=(s.width-e)/2,s=(s.height-o)/2,r.basePercentOfScale={x:g(Math.abs(r.iPos.x)+r.correctX(t.x)-i,e),y:g(Math.abs(r.iPos.y)+r.correctY(t.y)-s,o)});var n,o=r.scale.x;t.isMouse?(n=t.delta/(t.deltaFactor/100*37),r.scale.x+=n,r.scale.y+=n):(n=t.delta,15a.lensSize.width?(a.iPos.x+=t.x-e,a.iPos.x=f(a.iPos.x,0-o,o+s,a.lensSize.width)):a.iPos.x=a.lensSize.width/2-(s/2+o),n>a.lensSize.height?(a.iPos.y+=t.y-i,a.iPos.y=f(a.iPos.y,0-r,r+n,a.lensSize.height)):a.iPos.y=a.lensSize.height/2-(n/2+r),a.o.smoothing&&a.o.pan?a.animStep=.3:(a.iDPos.x=a.iPos.x,a.iDPos.y=a.iPos.y,a.deepZoomAction(),a.view.setImagePosition(a.iPos,a.scale),a.map&&a.map.move(a.iPos,a.scale)),e=t.x,i=t.y)})},e.addInnerPinch=function(){var e,i,s,n,o,r,a,h=this,l=1-this.baseScale.x;this.o.customZooming&&this.view.setEventToWrapper("pinch",function(t){t.stop(),"pinchstart"===t.state?(clearTimeout(e),h.stopMovingAndZooming(),h.view.node.removeEvent(p),h.scale.x=h.dScale.x,h.scale.y=h.dScale.y,i=h.scale.x,r=o=n=1,a=h.baseScale.x,h.setBasePercent(t.centerPoint)):"pinchresize"===t.state?h.setBasePercent(t.centerPoint):"pinchmove"===t.state?(h.setXY(t.centerPoint.x,t.centerPoint.y),s=t.scale,r<(s*=i)&&(r=s,a=h.baseScale.x,o=1,n=l/(r-h.baseScale.x)),s=t+s.width||e.y>=n+s.height)&&(o=!0),o&&(r.view.removeGlobalEvent(),r.hide())})},e.setEvents=function(){var e=this;this.setUpEvent&&u.browser.mobile&&this.view.setEventToWrapper(s,function(t){t.stop(),e.hide(!0)}),this.o.customZooming&&this.addMouseScrollEvent(),this.addInnerTouchDrag(),this.view.removeDragstart(),this.setUpEvent||this.addInnerPinch(),"hover"!==this.o.trigger?this.addClickEvent():this.hideZoomByMouseOut(),this.o.pan||u.browser.mobile||this.view.setEventToMainContainer(o,function(t){t.pointerType&&"touch"===t.pointerType||(t.stop(),t=t.getPageXY(),e.move(t.x,t.y))})},e.keepOldPosition=function(t){var e=this.iPos.x,i=this.iPos.y,s=this.iSize.width*this.scale.x,n=this.iSize.height*this.scale.y,o=(this.iSize.width-s)/2,r=(this.iSize.height-n)/2;e-=(t.width-this.lensSize.width)/2,i-=(t.height-this.lensSize.height)/2,e=s>this.lensSize.width?f(e,0-o,o+s,this.lensSize.width):this.lensSize.width/2-(s/2+o),i=n>this.lensSize.height?f(i,0-r,r+n,this.lensSize.height):this.lensSize.height/2-(n/2+r),this.iPos={x:e,y:i}},e.onResize=function(){var t,e=this.lensSize;a.prototype.onResize.call(this),this.state!==c.APPEARANCE.HIDDEN&&this.state!==c.APPEARANCE.HIDING&&(this.keepOldPosition(e),this.getImagePosition(),this.map&&(t=parseInt(this.pSize.width/2/100*this.o.mapSize,10),e=parseInt(this.pSize.height/2/100*this.o.mapSize,10),this.map.resize(t,e,this.iSize.width,this.iSize.height,this.pSize.width,this.pSize.height),this.o.smoothing||this.map.move(this.iPos,this.scale)))},e.destroy=function(){clearTimeout(this.showTimer),this.map&&(this.map.destroy(),this.map=null,this.off("zoomGetImage"),this.off("zoomMapNewPosition")),a.prototype.destroy.call(this)},t}(t),W=function(r){"use strict";function t(t,e){return u.browser.mobile&&9===e.margin&&delete e.margin,(e=r.call(this,t,u.extend({width:70,height:70,margin:65},e))||this).setUpEvent=!1,e.isSquare=!0,e.ANIM_STEP=.4,e}n.inheritsLoose(t,r);var e=t.prototype;return e.init=function(){r.prototype.init.call(this),this.setLensSize()},e.setLensSize=function(){var t={width:this.o.width,height:this.o.height};t.width===t.height&&(this.isSquare=!0),u.contains([t.width,t.height],"auto")?(this.isSquare=!0,"auto"===t.width?("auto"!==t.height?t.height=this.getPercentSize(t.height,"height"):t.height=70,t.width=t.height):"auto"!==t.width?(t.width=this.getPercentSize(t.width,"width"),t.height=t.width):(t.height=70,t.width=t.height)):(t.width=this.getPercentSize(t.width,"width"),t.height=this.getPercentSize(t.height,"height")),this.currentLensSize=(t={width:t.width,height:t.height},9<(t.width>=t.height?t.width/t.height:t.height/t.width)?{width:50,height:50}:(t.width<10&&(t.height=t.height/t.width*10,t.width=10),t.height<10&&(t.width=t.width/t.height*10,t.height=10),90s.width&&(this.x=s.width),this.y>s.height&&(this.y=s.height),t=this.y-this.lensHalfSize.height,e=this.x-this.lensHalfSize.width;var o=this.pPos;u.browser.mobile&&(t-=n,i=h(u.W).getScroll(),s=h(u.W).getSize(),o.top+ti.x?(t=this.y-this.lensHalfSize.height,e=this.x-this.lensSize.width-n):o.left+this.x+this.lensSize.width+no.top+this.y+n+this.lensSize.height&&(t=this.y+n))),this.lensPosition={top:t,left:e}},e.calcPositionOfImage=function(t,e,i,s){i=i||this.x,s=s||this.y,i=this.lensHalfSize.width-m(this.iSize.width,i/this.pSize.width*100),s=this.lensHalfSize.height-m(this.iSize.height,s/this.pSize.height*100);this.iPos={x:i,y:s}},e.getPercentSize=function(t,e){return/%$/.test(t)?t=parseInt(t,10):(t=parseInt(t,10),t/=this.pSize[e]/100),t},e.setEvents=function(){var e=this;this.setUpEvent&&!this.o.pan&&this.view.setEventToMainContainer(s,function(t){t.stop(),e.hide(!0)}),this.o.customZooming&&this.addMouseScroollEvent(),this.addMouseOverEvent(),"hover"===this.o.trigger&&this.addMouseOutEvent(),this.o.pan&&this.addDragEvent(),u.browser.mobile&&this.addTapEvent(),"hover"!==this.o.trigger&&this.addClickEvent(),this.o.pan||u.browser.mobile||this.view.setEventToMainContainer(o,function(t){t.pointerType&&"touch"===t.pointerType||(t.stop(),t=t.getPageXY(),e.move(t.x,t.y),(e.x<=0||e.y<=0||e.x>=e.pSize.width||e.y>=e.pSize.height)&&e.hide())})},e.afterMove=function(){this.calcPositionOfLens(),this.calcPositionOfImage(this.scale),this.view.setLensPosition(this.lensPosition),r.prototype.afterMove.call(this)},e.changeLensSize=function(t){t.width=v(t.width,10,90),t.height=v(t.height,10,90),t.width!==this.currentLensSize.width&&(this.currentLensSize.width=t.width,this.currentLensSize.height=t.height,this.calcSizeOfLens(),this.calcPositionOfLens(),this.calcPositionOfImage(),this.iDPos.x=this.iPos.x,this.iDPos.y=this.iPos.y,this.deepZoomAction(!1,this.lensSize),this.view.setImagePosition(this.iPos,this.scale),this.view.setLensPosition(this.lensPosition),this.view.setLensSize(this.lensSize))},e.addMouseScroollEvent=function(){var n=this;this.view.setEventToWrapper("mousescroll",function(t){t.stop();var e=t.delta,i={width:0,height:0};if(n.isSquare)for(var s in i)!{}.hasOwnProperty.call(i,s)||(i[s]=n.currentLensSize[s]+e);else s=n.currentLensSize.height/n.currentLensSize.width,i.width=n.currentLensSize.width+e,i.height=n.currentLensSize.height+e*s;n.changeLensSize(i)})},e.addMouseOverEvent=function(){var e=this;this.view.setEventToMainContainer("mouseover",function(t){t.stop();t=t.getPageXY();e.setXY(t.x,t.y),e.calcPositionOfLens(),e.calcPositionOfImage(),e.view.setLensPosition({top:e.lensPosition.top,left:e.lensPosition.left}),e.view.setImagePosition(e.iPos,e.scale)})},e.addMouseOutEvent=function(){var s=this;this.view.setEventToWrapper("mouseout",function(t){for(var e,i=t.getRelated();i&&i!==s.node&&i!==s.lensContainer&&i!==s.eventsCanvasNode;)i=i.parentNode;s.node===i||s.eventsCanvasNode===i||((e=t.getClientXY()).xs.boundaries.right||e.ys.boundaries.bottom)&&(t.stop(),s.o.smoothing?s.hide():s.hide(!0))})},e.addDragEvent=function(){var e=this,i=!1;this.view.setEventToMainContainer(p,function(t){t.stop(),"dragstart"===t.state?i=!0:"dragend"===t.state?i=!1:i&&e.move(t.x,t.y)})},e.addTapEvent=function(){var e=this;this.view.setEventToMainContainer("dblclick"===this.o.trigger?"dbltap":"tap",function(t){t.stop(),e.o.smoothing?e.hide():e.hide(!0)})},e.hide=function(t){var e=this,i=r.prototype.hide.call(this,t);return i&&(t||(this.view.setEventToWrapper("transitionend",function(t){t.stop(),e.view.removeEventFromWrapper("transitionend"),e.endOfHiding()}),this.view.setLensStyle({transition:"opacity .2s linear, transform .2s linear",opacity:0,transform:"scale(0)"}))),i},e.show=function(t,e,i,s,n){var o=this;return!!r.prototype.show.call(this)&&(this.emit("zoomBeforeShow",{data:{}}),this.setUpEvent=n,this.iSize={width:e.width,height:e.height},this.view.addStartCss(),this.view.appendNodes(t,this.iSize),this.getSizes(),this.setXY(i,s),this.calcSizeOfLens(),this.calcPositionOfLens(),this.getBaseScale(),this.showDeepZoom(e.originWidth,e.originHeight),this.calcPositionOfImage(this.scale,!0),this.view.setEventNodePositionSize(this.pPos,this.pSize),this.dScale.x=this.baseScale.x,this.dScale.y=this.baseScale.y,this.iDPos={x:(this.iSize.width-this.iSize.width*this.dScale.x)/2*-1-this.lensPosition.left,y:(this.iSize.height-this.iSize.height*this.dScale.y)/2*-1-this.lensPosition.top},this.view.setLensCss(this.lensPosition,this.lensSize,"opacity .15s linear, transform .15s linear"),this.view.setImageSize(this.iDPos,this.iSize,this.dScale),this.boundaries=this.view.getBoundaries(),this.o.smoothing?(this.view.setEventToWrapper("transitionend",function(t){t.stop(),o.view.removeEventFromWrapper("transitionend"),o.view.setLensStyle({transition:""}),o.sendZoomShownEvent()}),this.endOfShowing(),this.anim.start()):(this.endOfShowing(),this.sendZoomShownEvent()),!0)},t}(t),q=function(r){"use strict";function t(t,e){e=r.call(this,t,u.extend({margin:9,outsidePosition:"right",width:100,height:100},e))||this;return e.showingParams=null,e.eye=new A(e.view.getNodeForEye(),"hover"===e.o.trigger),e.ANIM_STEP=.18,e.mouseOutHandler=e.mouseOut.bind(n.assertThisInitialized(e)),e}n.inheritsLoose(t,r);var e=t.prototype;return e.getBoundaries=function(){this.boundaries=this.eye.getBoundaries()},e.init=function(){r.prototype.init.call(this),this.setLensSize()},e.setEyesParams=function(){var t=this.currentLensSize.width/(this.iSize.width*this.scale.x),e=this.currentLensSize.height/(this.iSize.height*this.scale.y);this.eye.setSize({width:t*this.zoomNodeSize.width,height:e*this.zoomNodeSize.height}),this.eye.setPosition(this.x,this.y)},e.calcPositionOfLens=function(){var t=this.o.margin,e=this.pSize,i=this.pPos;t<0&&(t=0);var s=i.top,i=i.left;switch(this.o.outsidePosition){case"top":s+=-1*(this.lensSize.height+t);break;case"left":i+=-1*(this.lensSize.width+t);break;case"right":i+=e.width+t;break;case"bottom":s+=e.height+t}this.lensPosition={top:s,left:i}},e.calcPositionOfImage=function(t){t=t||this.dScale;var e=this.iSize.width*t.x,i=this.iSize.height*t.y,s=(this.iSize.width-e)/2,n=(this.iSize.height-i)/2,o=this.x/(this.zoomNodeSize.width/e),t=this.y/(this.zoomNodeSize.height/i),o=this.lensSize.width/2-o-s,t=this.lensSize.height/2-t-n;o=f(o,0-s,s+e,this.lensSize.width),t=f(t,0-n,n+i,this.lensSize.height),this.iPos={x:o,y:t}},e.afterMove=function(){this.calcPositionOfLens(),this.calcPositionOfImage(this.scale),this.setEyesParams(),this.view.setLensPosition(this.lensPosition),r.prototype.afterMove.call(this)},e.hide=function(t){var e=r.prototype.hide.call(this,t);return e&&(u.browser.mobile||this.view.removeMouseMoveEvent(this.mouseOutHandler),this.eye.clearEvents(),this.eye.hide(),t||(this.view.removeEvents(),this.endOfHiding())),e},e.getShowingPropertiesToOutsideMode=function(){var t={start:{x:0,y:0},end:{x:0,y:0}};switch(this.o.outsidePosition){case"top":t.start.y=10,t.end.y=0;break;case"left":t.start.x=10,t.end.x=0;break;case"right":t.start.x=-10,t.end.x=0;break;case"bottom":t.start.y=-10,t.end.y=0}return t},e.endOfShowing=function(){r.prototype.endOfShowing.call(this),this.getBoundaries()},e.show=function(t,e,i,s,n,o){return!!r.prototype.show.call(this)&&(this.emit("zoomBeforeShow",{data:{}}),this.iSize={width:e.width,height:e.height},this.showingParams=this.getShowingPropertiesToOutsideMode(),this.view.addStartCss(this.showingParams),this.view.appendNodes(t,this.iSize),this.getSizes(),this.setXY(i,s),this.calcSizeOfLens(),this.calcPositionOfLens(),this.getBaseScale(),this.showDeepZoom(e.originWidth,e.originHeight),this.calcPositionOfImage(this.scale,!0),this.view.setEventNodePositionSize(this.pPos,this.pSize),this.dScale.x=this.baseScale.x,this.dScale.y=this.baseScale.y,this.iDPos={x:(this.iSize.width-this.iSize.width*this.dScale.x)/2*-1,y:(this.iSize.height-this.iSize.height*this.dScale.y)/2*-1},this.view.setLensCss(this.lensPosition,this.lensSize,this.o.smoothing?"opacity .4s linear, transform .15s ease-in":"none"),this.view.setImageSize(this.iDPos,this.iSize,this.dScale),!this.o.smoothing&&"zero"!==o||this.endOfShowing(),this.eye.show(this.view.getImageForEye()),this.getBoundaries(),this.setEyesParams(),this.animStep=.3,this.o.smoothing?this.anim.start():this.endOfShowing(),this.sendZoomShownEvent(),!0)},e.setLensSize=function(){var t={width:this.o.width,height:this.o.height};"auto"===t.width?t.width=this.pSize.width:/%$/.test(this.o.width)?t.width=this.pSize.width/100*parseInt(this.o.width,10):t.width=parseInt(t.width,10),"auto"===t.height?t.height=this.pSize.height:/%$/.test(this.o.height)?t.height=this.pSize.height/100*parseInt(this.o.height,10):t.height=parseInt(t.height,10),this.currentLensSize={width:t.width,height:t.height}},e.calcSizeOfLens=function(){var t=this.currentLensSize;this.lensSize={width:t.width,height:t.height},this.lensHalfSize={width:this.lensSize.width/2,height:this.lensSize.height/2}},e.setEvents=function(){var t,e=this;u.browser.mobile&&this.o.pan&&this.addOutsideTouchDrag(),!u.browser.mobile&&u.browser.touchScreen&&d.isIe()&&(this.o.pan||this.eye.setEventToMainContainer("pointerup",function(t){e.hide()})),this.eye.setEventToMainContainer("mousemove",function(t){t.stop();t=t.getPageXY();e.move(t.x,t.y)}),"hover"===this.o.trigger?(u.browser.mobile||this.view.addMouseMoveEvent(this.mouseOutHandler),this.eye.setEventToMainContainer("mouseout",this.mouseOutHandler)):(t="btnclick tap","dblclick"===this.o.trigger&&(t="dblbtnclick dbltap"),this.eye.setEventToMainContainer(t,function(t){e.hide()})),this.o.customZooming&&this.setMouseScrollEvent()},e.mouseOut=function(t){t=t.getClientXY();(t.xthis.boundaries.right||t.ythis.boundaries.bottom)&&this.hide(!this.getZoomData())},e.addOutsideTouchDrag=function(){var e=this,i=!1;this.eye.setEventToMainContainer(p,function(t){t.stop(),"dragstart"===t.state?i=!0:"dragend"===t.state?i=!1:i&&e.move(t.x,t.y)})},e.setMouseScrollEvent=function(){var s=this;this.eye.setEventToMainContainer("mousescroll",function(t){var e,i=s.scale.x;t.stop(),t.isMouse?(e=t.delta/(t.deltaFactor/100*37),s.scale.x+=e,s.scale.y+=e):(e=t.delta,15e||t.height>i)&&(t.width=e,t.height&&(t.height=i),t.round=!1),t},e.done=function(){n.prototype.done.call(this),this.option("onReady")(this.id),this.sendEvent("ready")},e.inViewCallback=function(t){t&&!this.isStaticImage&&(this._isReady||this.isInView||this.isStarted&&(this.isInView=!0,this.isNotSirv?this.srcWasSetted||this.getImage():this.isInfoLoaded&&this.getImage())),this.isInView=t},e.sendEvent=function(t,e){(e=e||{}).image||(e.image={}),e.image.event||(e.image.event={}),"ready"===t&&(t="onLoad"),e.type=t,e.image.id=this.id,e.image.url=this.instanceUrl,d.extend(e.image,this.api),e.node=this.instanceNode,e.image.node=this.instanceNode.node,e.image.event.timestamp=+new Date,e.image.event.type="lazyimage:"+t,this.emit("imagePublicEvent",{data:e})},e.getOriginImageUrl=function(){return this.src},e.onResize=function(){return!(!this.isStarted||this.isStaticImage||!this.option("resize")||this.isNotSirv)&&(d.contains(["crop","cover"],this.option("fit"))?t=u(this.instanceNode.node.parentNode).getSize():(t=this.instanceNode.getSize()).height=this.fixHeight(t.height),t=r.imageLib.calcProportionSize(t,this.infoSize,this.fitSize),this.size.width=t.width,this.size.height&&(this.size.height=t.height),this._isReady&&!this.isNotSirv&&("crop"===this.option("fit")?(50e.x?i(e.x,e.y,t.x,t.y):i(t.x,t.y,e.x,e.y):t.y>e.y?s(e.x,e.y,t.x,t.y):s(t.x,t.y,e.x,e.y),c}function v(t,e,i,s,n){for(var o=[],r=!1,a=t;a!==e||!r&&n;)r=!0,i?a+=1:--a,a=N.getArrayIndex(a,s),o.push(a);return o}function S(t,i){var s="col";null===i.row&&(s="row");var n=[];return t.forEach(function(t){var e={col:i.column,row:i.row};e[s]=t,n.push(e)}),n}function y(t,e,i,s){var n=[t],o=!0;return[t+e,t-e,t].forEach(function(t){var e;t=t,s?e=N.getArrayIndex(t,i):((e=t)<0&&(e=0),i-1e[t].length-1&&(e[t].current=0)}),e.swapSides&&(e.secondSide=e.firstSide,e.firstSide="row"),e}var I,C={_:I={getStep:function(t){var e=1;return 24this.images.length-1&&(this.currentRow=0),this.currentColumn>this.images[0].length-1&&(this.currentColumn=0),this.startColumn=this.futureColumn=this.nextColumn=this.currentColumn,this.startRow=this.futureRow=this.nextRow=this.currentRow},e.loadImage=function(t,e,i){i=this.getImage(e,i);t=this.setImageSettings(t),i.getImage(t)},e.loadFirstImage=function(t){var e;this.loadingMap.queue.length&&(e=this.loadingMap.queue[0].shift(),this.loadImage(t,e[0],e[1]))},e.loadFirstPartOfImages=function(e){var i=this;this.loadingMap.queue.length&&this.loadingMap.queue[0].forEach(function(t){i.loadImage(e,t[0],t[1])})},e.loadOtherImages=function(e){var i=this;this.isAvailableOfLoading&&this.loadingMap.queue.length&&(e=this.setImageSettings(e),this.loadingMap.queue[1].forEach(function(t){i.loadImage(e,t[0],t[1])}))},e.loadImages=function(e){var i=this.currentColumn;this.isAvailableOfLoading&&(e=this.setImageSettings(e),this.o.swapSides?this.images.forEach(function(t){t=t[i];t.isExist(e)?t.sendLoad(e):t.getImage(e)}):this.images.forEach(function(t){t.forEach(function(t){t.isExist(e)?t.sendLoad(e):t.getImage(e)})}))},e.isImagesExist=function(t){var e;t=this.setImageSettings(t);for(var i=0,s=this.images.length;it.width?"height":"width",i={};i[e]=t[e],this.dppx=N.getDPPX(n.roundImageSize(i)[e],this.infoSize[e],this.upscale)},e.showHint=function(){var t=!1;return this.hint&&(this.always&&!O.contains([P.FULLSCREEN.OPENING,P.FULLSCREEN.OPENED],this.fullscreenState)||this.option("autospin.enable")&&this.firstUserInteraction||(t=!0,this.hint.show())),t},e.onStartActions=function(){this._isReady?this.animate("slideIn"):this.isStarted&&(this.isInited&&!this.initNameEvent?this.loadFirstPartOfImages():this.isInView&&this.loadFirstImage())},e.onStopActions=function(){this.zoomOut(),this.stopSmoothing(),this.stopAnimation(),this.deactivateSpin(),this.setUserFrame(),this.customActionWas=!1,this.hint&&this.hint.hide(),u.prototype.onStopActions.call(this)},e.onInView=function(t){t?this.isInView||(this._isReady?(this.isInView=!0,this.animate("inView")):(this.preload||this.isSlideShown)&&(this.isInView=!0,this.isInited?this.isSlideShown&&!this.initNameEvent&&this.loadFirstPartOfImages():this.loadFirstImage())):this.isInView&&this._isReady&&(this.option("autospin.enable")?this.animationCloud.pause():(this.stopAnimation(),this.setUserFrame()),this.deactivateSpin())},e.startFullInit=function(t){var e=this;this.isStartedFullInit||(u.prototype.startFullInit.call(this,t),this.getInfo().then(function(){e.normalizeOptions(),e.getId("spin-");var t=e.option;e.imagesMap.startFullInit({swapSides:t("swapSides"),startColumn:t("column.start"),startRow:t("row.start"),reverseColumn:t("column.reverse"),reverseRow:t("row.reverse"),loopColumn:t("column.loop"),loopRow:t("row.loop"),rowSpeed:t("row.sensitivity"),columnSpeed:t("column.sensitivity"),columnIncrement:t("column.increment"),rowIncrement:t("row.increment")}),e.loadedImages=e.imagesMap.getMap(),e.loader=new s(e.coreNode,{max:e.imagesMap.getCountOfImages(),class:"spin-loader"}),e.loader.setParent(e),e.coreNode.addEvent("btnclick tap",function(t){t.stop()}),e.on("isSingleSlide",function(t){t.stop(),e.activatedCurtain&&(t.data.isSingle?e.activatedCurtain.deactivateCurtain():e.activatedCurtain.activateCurtain())}),e.hotspots&&e.hotspots.setOptions({columnsRevers:e.option("column.reverse"),rowsRevers:e.option("row.reverse"),rows:e.imagesMap.getCountOfRows(),columns:e.imagesMap.getCountOfFrames()}),e.initAnimation()}).catch(function(){}),O.browser.touchScreen&&this.on("dragEvent",function(t){"dragstart"===t.data.type?(e.slideDragEventStart=!0,e.touchDragCloud&&e.touchDragCloud.removeEvent()):"dragend"===t.data.type&&(e.slideDragEventStart=!1,e.touchDragCloud&&e.touchDragCloud.addEvent())}))},e.getThumbnailData=function(t){return this.imagesMap.getThumbnail(t)},e.setUserFrame=function(){this.jumpTo(this.userRow,"row"),this.jumpTo(this.userColumn,"col")},e.getSocialButtonData=function(t,e){return e?this.instanceNode.attr("data-src"):u.prototype.getSocialButtonData.call(this,t)},e.turnOnOff=function(){var e=this;O.browser.mobile&&this.activatedCurtain&&this.activatedCurtain.addTapEvents(function(t){"activate"===t.action?(e.isSpinActivated||(t.stop(),e.activateSpin()),e.hotspots&&e.hotspots.hideActiveHotspotBox(!0)):e.isSpinActivated&&(t.stop(),e.stopSmoothing(),e.stopAnimation(),e.hotspots&&e.hotspots.isHotspotActivated()?e.hotspots.hideActiveHotspotBox(!0):e.deactivateSpin())})},e.activateSpin=function(){this.isSpinActivated||(this.isSpinActivated=!0,O.browser.mobile&&(this.stopAnimation(),this.customActionWas=!0,this.hint&&this.hint.hide(),this.activatedCurtain&&this.activatedCurtain.hide()))},e.deactivateSpin=function(){this.isSpinActivated&&(this.isSpinActivated=!1,O.browser.mobile&&(this.customActionWas||this.showHint(),this.activatedCurtain&&this.activatedCurtain.show()))},e.createPinchEvent=function(){function e(){a=r=1,n=d.zoom.getBaseScale().x,i=(h=1)-(l=n)}var i,s,n,o,r,a,h,l,c,d=this;u.prototype.createPinchEvent.call(this,this.coreNode),this.pinchCloud.onPinchStart=function(t){O.contains([P.FULLSCREEN.OPENING,P.FULLSCREEN.CLOSING],d.fullscreenState)||(d.pinchCloud.pinch=!0,clearTimeout(d.longTapTimer),d.stopSmoothing(),d.stopAnimation(),d.touchDragCloud&&d.touchDragCloud.removeEvent(),d.hotspots&&d.hotspots.hideActiveHotspotBox(!0),d.customActionWas=!0,c=!1,d.pinchCloud.scale=t.scale,o=1,d.openedImg&&(o=d.zoom.scale.x,n===O.U&&e(),o/=n),d.sendEvent("pinchStart"))},this.pinchCloud.onPinchResize=function(t){d.pinchCloud.pinch&&!d.pinchCloud.block&&d.zoom&&d.fullscreenState===P.FULLSCREEN.OPENED&&d.openedImg&&(d.pinchCloud.scale=t.scale,d.zoom.setBasePercent(t.centerPoint))},this.pinchCloud.onPinchMove=function(t){d.pinchCloud.pinch&&!d.pinchCloud.block&&(d.fullscreenState!==P.FULLSCREEN.OPENED&&d.isFullscreenEnabled?2<=t.scale&&(d.pinchCloud.block=!0,d.sendEvent("fullscreenIn")):d.openedImg?d.zoom&&(c?(s=t.scale,h<(s*=n)&&(a=1,r=i/((h=s)-(l=n))),s",this.imagesMap.getHintType()){case"multi-row":s=e+" "+i;break;case"row":s=e;break;case"col":s=i}var s={html:t,additionalClass:s};(O.browser.mobile||this.option("autospin.enable"))&&(s.autohide=0),this.hint=new h(this.coreNode,s),this.isSlideShown&&this.isInView&&"infinite"===this.option("autospin.type")&&this.showHint()}},e.getImageClassContainer=function(){return this.imagesMap},e.createZoom=function(){var e=this,t=null;return!this.destroyed&&this.option("zoom.enable")&&(t=u.prototype.createZoom.call(this,this.coreNode,{}),this.zoomContainer&&this.zoom.setLensContainer(this.zoomContainer),this.coreNode.addEvent("btnclick dbltap",function(t){e.isFullscreenActionEnded()&&(e.firstUserInteraction=!0,e.openLens(t.x,t.y))}),O.browser.mobile),t},e.onZoomGetImage=function(t){u.prototype.onZoomGetImage.call(this,t),this.checkImage(t.data,t.data.dontLoad)?this.zoom.setImage(this.imagesMap.getCurrentImage(t.data)):this.imagesMap.loadImage(t.data)},e.onZoomCancelLoadingOfTiles=function(t){u.prototype.onZoomGetImage.call(this,t),t.data.round=!1,this.imagesMap.cancelLoadingImage(t.data)},e.onZoomBeforeShow=function(){this.canvas.addClass(this.zoomClassName),this.hotspots&&this.hotspots.hideAll()},e.onZoomShown=function(t){this.isSlideShown?(this.startTimeForZommEvent=O.now(),this.openedImg&&this.sendStats("zoomIn",O.now()-this.sessionStartTime,{frame:{row:this.openedImg.row,column:this.openedImg.col},clientX:t.data.clientPosition.x,clientY:t.data.clientPosition.y,pageX:t.data.pagePosition.x,pageY:t.data.pagePosition.y}),this.sendEvent("zoomIn")):this.zoom.hide(!0)},e.onZoomHidden=function(t){var e;this.openedImg&&(this.canvas.removeClass(this.zoomClassName),e=O.now(),this.sendStats("zoomOut",e-this.sessionStartTime,{duration:e-this.startTimeForZommEvent,frame:{row:this.openedImg.row,column:this.openedImg.col},clientX:t.data.clientPosition.x,clientY:t.data.clientPosition.y,pageX:t.data.pagePosition.x,pageY:t.data.pagePosition.y}),this.hotspots&&(this.hotspots.showAll(),this.isInView&&this.isSlideShown&&this.hotspots.showNeededElements())),this.sendEvent("zoomOut"),this.isSlideShown&&this.animateWithDelay(),this.startTimeForZommEvent=null,this.openedImg=null,this.pinchCloud&&this.pinchCloud.addEvent()},e.setLongTapEvents=function(){var i=this,t=O.W.node.navigator.pointerEnabled,s=!1,n=!1;this.coreNode.addEvent("touchstart "+(t?"pointerdown":"MSPointerDown"),function(e){i.isDragMove||i.pinchCloud.pinch||!i.isFullscreenActionEnded()||(clearTimeout(i.longTapTimer),i.longTapTimer=setTimeout(function(){e.stop(),s=!0,i.customActionWas=!0;var t=e.getPageXY();i.touchDragCloud&&i.touchDragCloud.removeEvent(),i.firstUserInteraction=!0,i.openLens(t.x,t.y,!0)},500),n=!0)}),this.coreNode.addEvent("touchmove "+(t?"pointermove":"MSPointerMove"),function(t){s&&i.isFullscreenActionEnded()&&(t.stop(),t=t.getPageXY(),i.zoom.customMove(t.x,t.y))},1),this.coreNode.addEvent("touchend "+(t?"pointerup":"MSPointerUp"),function(t){n&&(t.stop(),n=!1,clearTimeout(i.longTapTimer)),s&&i.isFullscreenActionEnded()&&(t.stop(),s=!1,i.zoom.hide(!0),i.touchDragCloud&&i.touchDragCloud.addEvent())})},e.getZoomSize=function(){var t=this.option("zoom.ratio"),e=this.infoSize.width,i=this.infoSize.height,s={width:e,height:i};return"max"!==t&&(s.width=this.currentImageSize.width*t,s.height=this.currentImageSize.height*t,s=n.roundImageSize(s)),s.width=Math.min(e,s.width),s.height=Math.min(i,s.height),{width:s.width,height:s.height,originWidth:e,originHeight:i}},e.openLens=function(t,e,i,s){var n,o,r,a,h=!1;return this.isZoomSizeExist()&&(n=this.getZoomSize(),h=!0,this.stopSmoothing(),this.stopAnimation(),this.hint&&this.hint.hide(),this.hotspots&&this.hotspots.hideActiveHotspotBox(!0),a=!1,this.isFullscreenActionEnded()&&this.imagesMap.isLoaded({width:this.currentImageSize.width,height:this.currentImageSize.height})?(o=this.currentImageSize.width,r=this.currentImageSize.height,a=!0):(o=this.lastImg.serverWidth,r=this.lastImg.serverHeight),a=this.imagesMap.getCurrentImage({width:o,height:r,round:a}),this.openedImg=a,h=void 0===t?this.zoom.showCenter(a.node,n):this.zoom.show(a.node,n,t,e,i,s)),h},e.done=function(){var t=this.imagesMap.getCountOfRows(),e=this.imagesMap.getCountOfFrames();this.loader&&this.loader.setMaxOpacity(.5),this.setBrowserEvents(),this.createHint(),this.createZoom(),this.setZoomEvents(),1e[t[1]]?{distance:e[t[0]],direction:t[0]}:{distance:e[t[1]],direction:t[1]}}function E(t,e,i,s,n){return t=e*Math.pow(i/s,2)/(2*t),t=Math.floor(t/n)}function I(t,e,i,s){return e*(i/s)/t}function C(t,e){return i[e][0<=t?0:1]}e.dragstart=function(t){r.firstUserInteraction=!0,r.isDragMove=!0,r.stopSmoothing(),r.stopAnimation(),r.hint&&r.hint.hide(),r.hotspots&&r.hotspots.hideNeededElements(!0),r.userColumn=r.imagesMap.getStartColumn(),r.userRow=r.imagesMap.getStartRow(),r.fullscreenState===P.FULLSCREEN.OPENED&&t.stop(),d.x=t.x,d.y=t.y,t.timeStamp,g=O.now();var e=O.now()-r.sessionStartTime;r.sendStats("dragStart",e,{clientX:t.x-r.boxBoundaries.left,clientY:t.y-r.boxBoundaries.top,pageX:t.x,pageY:t.y}),r.sendEvent("spinStart"),r.sendEvent("rotate"),r.sendStats("rotate",e,{}),r.pinchCloud.removeEvent()},e.dragend=function(t){var e,i,s,n,o=[];r.isDragMove&&(t.stop(),r.isDragMove=!1,y.cancel(),S&&p===m||S&&(h||c)?(n=+new Date-g,e=b(m),i=E(w[m],a,e.distance,n,l[m].minSize),s=I(w[m],a,e.distance,n),o.push({items:i,direction:e.direction}),h&&(e=b(f),i=E(w[f],a,e.distance,n,l[f].minSize),s<(n=I(w[f],a,e.distance,n))&&(s=n),o.push({items:i,direction:e.direction})),r.animateTo(s,o),r.pinchCloud.addEvent()):(r.hotspots&&r.isInView&&r.isSlideShown&&r.hotspots.showNeededElements(),r.animateWithDelay()),r.sendEvent("spinEnd"),o=O.now(),r.sendStats("dragEnd",o-r.sessionStartTime,{duration:o-g,clientX:t.x-r.boxBoundaries.left,clientY:t.y-r.boxBoundaries.top,pageX:t.x,pageY:t.y}),d={x:0,y:0},u={x:0,y:0},S=!(v={x:{next:0,prev:0},y:{up:0,down:0}}))};function x(t,e){var i,s=!1;return u[t]>l[t].minSize&&(s=!0,i=Math.floor(u[t]/l[t].minSize),u[t]=u[t]%l[t].minSize,r.imagesMap.prepareFutureImage(e,i),r.imagesMap.setPreparedFutureImage()),s}var z={eventAdded:!(e.dragmove=function(t){var e={},i={x:0,y:0},s={x:0,y:0};r.isDragMove&&(S=!0,r.customActionWas=!0,i.x=t.x-d.x,i.y=t.y-d.y,s.x=Math.abs(i.x),s.y=Math.abs(i.y),t.timeStamp,t.timeStamp,m=s.x>=s.y?"x":"y",f="x"===m?"y":"x",(r.fullscreenState===P.FULLSCREEN.OPENED||h||c||"x"===m&&1"+t+""}),this.hint.append())},e.clearZoom=function(){this.zoom&&(this.off("zooming"),this.off("zoomUp"),this.off("zoomDown"),this.imageNode&&this.imageNode.removeClass(this.zoomClassName)),u.prototype.clearZoom.call(this)},e.replaceZoom=function(){var t,e,i,s=!1,n=this.option("trigger"),o={clickBehavior:"both"};this._isReady&&("hover"===n&&"magnifier"!==this.option("mode")&&(m.contains([p.FULLSCREEN.OPENING,p.FULLSCREEN.OPENED],this.fullscreenState)?(s="click",o.trigger=s):s=n),t=!1,s&&this.insideOptions.trigger!==s&&(t=!0),"outside"===this.insideOptions.type&&(((e=this.canIUseOutsideZoom())&&this.insideOptions.outsideModeWasChanged||!e&&!this.insideOptions.outsideModeWasChanged)&&(this.insideOptions.outsideModeWasChanged=!this.insideOptions.outsideModeWasChanged,t=!0),i=this.imageNode.getSize(),!t&&e&&this.lastImageSize.width!==i.width&&(this.lastImageSize=i,t=!0)),t&&(this.clearZoom(),"outside"===this.insideOptions.type&&(e?o.type="outside":(o.type="inner",m.browser.mobile&&(o.pan=!0,"hover"===n&&(s="dblclick",o.trigger=s)))),s&&(this.insideOptions.trigger=s),this.setTriggerAction(s),this.createZoom(o),this.setZoomEvents()))},e.canIUseOutsideZoom=function(){var t=!1;if("outside"===this.insideOptions.type){if(m.contains([p.FULLSCREEN.OPENING,p.FULLSCREEN.OPENED],this.fullscreenState))return t;var e,i=this.option("margin"),s=this.imageNode.getSize(),n=m.W.getScroll(),o=this.imageNode.getPosition(),r=this.option("width"),a=this.option("height"),h=s.width,l=s.height;switch("auto"!==r&&(/%$/.test(r)?s.width=s.width/100*parseInt(r,10):s.width=parseInt(r,10)),"auto"!==a&&(/%$/.test(a)?s.height=s.height/100*parseInt(a,10):s.height=parseInt(a,10)),this.insideOptions.position){case"top":(e=o.top-n.y-i)>s.height&&(t=!0);break;case"left":(e=o.left-n.x-i)>=s.width&&(t=!0);break;case"right":e=o.left-n.x,e+=h+i,m.W.node.innerWidth-e>=s.width&&(t=!0);break;case"bottom":e=o.top-n.y,e+=l+i,m.W.node.innerHeight-e>=s.height&&(t=!0)}}return t},e.createHotspotsClass=function(){"magnifier"!==this.option("mode")&&(m.browser.mobile||"hover"!==this.option("trigger")||(this.hotspotsTurnedOn=!1),u.prototype.createHotspotsClass.call(this,l))},e.run=function(t,e,i){var s=this,i=u.prototype.run.call(this,t,e,i);return i&&(this.getInfo().finally(function(){s.calcContainerSize(),s.isInView&&(s.preload||s.isSlideShown)&&s.postInit()}),this.startGettingInfo()),i},e.done=function(){var t;this._isReady||this.destroyed||(u.prototype.done.call(this),this.hotspots&&(this.hotspots.getHotspots().length||this.hotspots.setInstanceComponentNode(this.imageNode),this.hotspots.setContainerSize(this.imageNode.node.getBoundingClientRect())),this.createZoom(),this.replaceZoom(),this.createControls(),t=this.isZoomSizeExist(),this.controls&&(this.controls.disable("out"),t&&this.controls.show()),this.imageNode&&t&&this.imageNode.addClass(p.CSS_CURSOR_ZOOM_IN),this.setZoomEvents(),this.isSlideShown&&this.isInView&&t&&this.showHint(),this.accountInfo.branded&&(t=n.getNodeWithSirvClassName(this.instanceNode)||m.D.node.head||m.D.node.body,n.rootDOM.showSirvAd(t,this.instanceNode,"https://sirv.com/about-zoom/?utm_source=client&utm_medium=sirvembed&utm_content=typeofembed(zoom)&utm_campaign=branding","Deep zoom image viewer by Sirv")))},e.normalizeOptions=function(){switch("deep"!==this.option("mode")&&this.option("map.enable",!1),"deep"!==this.option("mode")&&!m.browser.mobile||this.option("pan",!0),"magnifier"!==this.option("mode")||m.browser.mobile||this.option("pan",!1),this.isOutsideZoom()||"auto"===this.option("width")&&"auto"===this.option("height")&&this.option("width","70%"),this.option("trigger")){case"hover":"deep"===this.option("mode")&&this.option("trigger","click");break;case"click":case"dblclick":break;default:this.option("trigger",!1)}switch(this.option("mode")){case"top":case"left":case"right":case"bottom":this.insideOptions.type="outside",this.insideOptions.position=this.option("mode");break;case"magnifier":this.insideOptions.type="circle";break;case"inner":this.insideOptions.type="inner";break;case"deep":this.insideOptions.type="deep",this.insideOptions.controls=!0}"deep"===this.insideOptions.type&&this.option("map.enable")&&(this.insideOptions.map=0!==this.option("map.size"),this.insideOptions.map&&(this.insideOptions.mapSize=2*this.option("map.size"))),this.insideOptions.trigger=this.option("trigger"),m.browser.mobile&&(this.insideOptions.hideZoomForClickTrigger=!1),"max"!==this.option("ratio")&&this.option("ratio")=i.height?(e=Math.min(i.height,s.height),(t=s.width/s.height*e)>i.width&&(t=Math.min(i.width,s.width),e=s.height/s.width*t)):(t=Math.min(i.width,s.width),(e=s.height/s.width*t)>i.height&&(e=Math.min(i.height,s.height),t=s.width/s.height*e)),m.extend({realWidth:t,realHeight:e},this.image.getClearSizeWithoutProcessingSettings({width:t,height:e}))},e.setTriggerAction=function(t){var i=this,e=this.option("trigger");if(this.isNotMouse=!1,!("max"!==this.option("ratio")&&this.option("ratio")=this.currentSize.width/this.currentSize.height?this.imageNode.setCss({width:"100%",height:""}):this.imageNode.setCss({width:"",height:"100%"}))},e.createImage=function(t,e,i,s){var n=this;this.imageNode||(this.imageNode=t?f(t):m.$new("img"),this.imageNode.attr("referrerpolicy",this.referrerPolicy),t=this.image.getOriginSize(),this.imageNode.setCss({maxWidth:t.width,maxHeight:t.height}),this.setImageWidthHeight(),this.setTriggerAction(),this.option("wheel")&&"deep"===this.option("mode")&&this.imageNode.addEvent("mousescroll",function(t){!n.zoomIsOpened&&0=this.differenceBetweenSizes||this.fullscreenState===p.FULLSCREEN.OPENED?this._isReady||o.width||o.height?((e>=this.differenceBetweenSizes||this.fullscreenState===p.FULLSCREEN.OPENED||!this.currentImageSize.width)&&(this.currentImageSize=o),o=this.imageSettings({width:this.currentImageSize.realWidth,height:this.currentImageSize.realHeight,round:!0,dontLoad:!0}),1o.width?d.getDPPX((o.round?a.roundImageSize({height:o.height}):o).height,s.height,this.upscale):d.getDPPX((o.round?a.roundImageSize({width:o.width}):o).width,s.width,this.upscale),o.dppx=i),o=this.setHDQuality(o),this.checkImage(o,!0)&&this._isReady?(s=this.image.getImage(o),this.setImageSrc(s.src,s.srcset,i)):this.image.getImage(o)):setTimeout(function(){n.calcContainerSize(),n.getImage()},16):e=p.MIN_RATIO)&&(e=!0)),e},e.onResize=function(){var t=!1;if(!this.destroyed)return this.isStarted&&2===this.postInitState&&(this.calcContainerSize(),this.getImage(),this.hotspots&&(this.hotspotsTurnedOn&&m.contains([p.FULLSCREEN.CLOSED,p.FULLSCREEN.OPENING],this.fullscreenState)||"hover"!==this.insideOptions.trigger&&m.contains([p.FULLSCREEN.OPENED,p.FULLSCREEN.CLOSING],this.fullscreenState))&&(this.hotspots.setContainerSize(this.imageNode.node.getBoundingClientRect()),this.isInView&&this.isSlideShown&&this.hotspots.showNeededElements()),this.imageNode&&(this.setImageWidthHeight(),this.isZoomSizeExist()?this.imageNode.addClass(p.CSS_CURSOR_ZOOM_IN):(this.hint&&this.hint.hide(),this.imageNode.removeClass(p.CSS_CURSOR_ZOOM_IN))),t=!0),this.controls&&(this.isZoomSizeExist()?this.controls.show():this.controls.hide()),this.replaceZoom(),this.zoom&&this.zoom.onResize(),t},e.onScroll=function(t){this.zoomIsOpened&&t.stop(),clearTimeout(this.longTapTimer),this.scrollDebounce()},e.getType=function(){return this.type},e.destroy=function(){return this.destroyed=!0,this.loader&&(this.loader.destroy(),this.loader=null),f(m.W).removeEvent("scroll",this.onScrollHandler),this.onScrollHandler=null,this.lastTriggerAction&&(this.lastTriggerAction(),this.lastTriggerAction=null),this.hint&&(this.hint.destroy(),this.hint=null),this.image&&(this.off("imageOnload"),this.off("imageOnerror"),this.image.destroy(),this.image=null),this.controls&&(this.controls.destroy(),this.controls=null,this.off("zoomControlsAction")),this.hotspots&&(this.hotspotsTurnedOn=!1,this.instanceNode.removeEvent("tap")),this.zoom&&(this.off("zooming"),this.off("zoomUp"),this.off("zoomDown")),this.instanceNode.clearEvents(),this.instanceNode.removeClass(g+"-zoom-view"),this.imageNode&&(this.imageNode.remove(),this.imageNode=null),this.clonedImage&&(this.clonedImage=null),this.zoomDebounce.cancel(),this.zoomDebounce=null,this.scrollDebounce.cancel(),this.scrollDebounce=null,clearTimeout(this.longTapTimer),this.longTapTimer=null,this.hotspotsData=null,u.prototype.destroy.call(this),!0},t}(i)}),Sirv.define("defaultsVideoOptions",{autoplay:{type:"boolean",defaults:!1},loop:{type:"boolean",defaults:!1},volume:{type:"number",minimum:0,maximum:100,defaults:100},preload:{type:"boolean",defaults:!0},thumbnail:{oneOf:[{type:"url"},{type:"boolean",enum:[!1]},{type:"number",minimum:0}],defaults:!1},motionFactor:{type:"number",minimum:1,maximum:4,defaults:3},dynamicAdaptiveStreaming:{type:"boolean",defaults:!0},quality:{min:{type:"number",enum:[360,480,720,1080],defaults:360},max:{type:"number",enum:[360,480,720,1080],defaults:1080}},controls:{enable:{type:"boolean",defaults:!0},volume:{type:"boolean",defaults:!0},speed:{type:"boolean",defaults:!1},quality:{type:"boolean",defaults:!1},fullscreen:{type:"boolean",defaults:!0}}}),Sirv.define("Video",["require","module","bHelpers","magicJS","globalVariables","globalFunctions","helper","Promise!","EventEmitter","Instance","defaultsVideoOptions"],function(i,s,n,t,c,o,d,a,e,r,h){var u,p,m,f,g,v,S,y,w,b,E,I,C,x=t;x.$;function z(t){return o.rootDOM.addStyle(t,s.config().libcss,"sirv-stylesheet-vjs")}return u=c.smv,p=[.5,1,1.5,2],m=u+"-disabled-action",f="https://video.sirv.com",g=u+"-q-last",v=u+"-s-last",S=50*x.DPPX,y=0,w=1,b=2,E=4,I=5,C=6,function(l){"use strict";function t(t,e){var i=l.call(this,t,e,h)||this;i.type=c.SLIDE.TYPES.VIDEO,i.url=i.instanceNode.attr("data-src"),i.info=null,i.HLS=[],i.currentSize={width:0,height:0},i.videoNode=null,i.areSourcesAdded=!1,i.indexOfCurrentHls=0,i.player=null,i.thumbnail=i.option("thumbnail"),i.currentTime=0,i.isVideoPaused=!1,i.fps=30,i.pluginResizeDebounce=null,i.playPromise=null,i.posterSize=null,i.lastAction=y,i.isPlayed=!1,i.isEnded=!1,i.playingState=c.VIDEO.NONE,i.nativeFullscreen=e.nativeFullscreen;t=o.normalizeURL(i.url.replace(c.REG_URL_QUERY_STRING,"$1")),e=i.url.replace(c.REG_URL_QUERY_STRING,"$2");return i.url=t,e&&(i.url+="?"+e),i.disableAction(),i.isLoadeddata=!1,i.controlsFullscreen=i.option("controls.fullscreen"),i.getInfo(),i}n.inheritsLoose(t,l);var e=t.prototype;return e.normalizeOptions=function(){var t=this.option("quality.min");this.option("quality.max")e.width?i=1:t.heighte.height&&(i=1),i}),n.infoSize={width:n.info.original.width,height:n.info.original.height},i(n.infoSize))}).catch(function(t){n.destroyed||s(t)})})})),this.gettingInfoPromise},e.getInfoSize=function(){var i=this;return new a(function(t,e){i.getInfo().then(function(){t({size:i.infoSize})}).catch(function(t){e({error:t})})})},e.addSources=function(){var t=this,e=o.getNodeWithSirvClassName(this.instanceNode)||x.D.node.head||x.D.node.body;a.all([z(x.D.node.head||x.D.node.body),z(e),new a(function(t){i([s.config().libjs],t)}),(e=e,o.rootDOM.addStyle(e,s.config().qualitySelectorcss,"sirv-stylesheet-vjs-quality-selector","#"+o.rootDOM.mainCSSID)),new a(function(t){i([s.config().qualitySelectorjs],t)})]).finally(function(){t.areSourcesAdded=!0,t.isStarted&&t.isInView&&(t.preload||t.isSlideShown)&&t.createVideoNode()})},e.onStartActions=function(t){this._isReady?this.player&&this.isInView&&(this.fullscreenState===c.FULLSCREEN.OPENED&&this.always&&this.option("controls.enable")&&(this.player.controlBar.show(),this.player.bigPlayButton.show()),!this.option("autoplay")||!this.player.paused()||this.fullscreenState!==c.FULLSCREEN.OPENED&&this.always||(this.player.muted(!0),this.isPlayed?this.lastAction=E:t===c.SLIDE_SHOWN_BY.USER&&(this.lastAction=w),this.play())):this.isStarted&&this.isInView&&this.isSlideShown&&!this.preload&&this.areSourcesAdded&&this.createVideoNode()},e.onStopActions=function(){this.player&&(this.player.paused()||this.playingState!==c.VIDEO.PLAYING||(this.lastAction=C,this.pause()))},e.onInView=function(t){t?this._isReady?this.player&&this.isSlideShown&&t&&(this.option("autoplay")||this.playingState!==c.VIDEO.NONE&&!this.isVideoPaused)&&(this.lastAction=b,this.play()):this.isStarted&&!this.isInView&&(this.preload||this.isSlideShown)&&this.areSourcesAdded&&(this.isInView=!0,this.createVideoNode()):this.player&&(this.isVideoPaused=this.playingState===c.VIDEO.PAUSE,this.player.paused()||this.playingState!==c.VIDEO.PLAYING||(this.lastAction=I,this.pause()))},e.startFullInit=function(t){this.isStartedFullInit||(l.prototype.startFullInit.call(this,t),this.normalizeOptions(),this.thumbnail=this.option("thumbnail"),this.getId("video-"),this.instanceNode.addClass("sirv-video"),this.instanceNode.addEvent("mousedown",function(t){t.stop()}))},e.onBeforeFullscreenIn=function(){this.controlsFullscreen=!1,this.player&&(this.isVideoPaused=this.playingState===c.VIDEO.PAUSE,this.toggleFullscreenButton())},e.onAfterFullscreenIn=function(){this.enableAction(),this.isSlideShown&&this.isInView&&this.player&&this.player.paused()&&(this.always&&this.option("controls.enable")&&(this.player.controlBar.show(),this.player.bigPlayButton.show()),this.option("autoplay")&&!this.isVideoPaused&&(this.player.currentTime(this.currentTime),this.playingState=c.VIDEO.PLAY,this.player.play_()))},e.onBeforeFullscreenOut=function(){this.disableAction(),this.option("controls.fullscreen")&&(this.controlsFullscreen=!0),this.player&&(this.isVideoPaused=this.playingState===c.VIDEO.PAUSE,this.toggleFullscreenButton())},e.onAfterFullscreenOut=function(){this.isSlideShown&&this.isInView&&this.player&&(this.always&&this.option("controls.enable")&&(this.player.controlBar.hide(),this.player.bigPlayButton.hide()),this.option("autoplay")&&!this.isVideoPaused&&(this.lastAction=w,this.play()))},e.onSecondSelectorClick=function(){this.player&&this.isSlideShown&&this.isInView&&(this.fullscreenState!==c.FULLSCREEN.OPENED&&this.always||(this.player.paused()?(this.lastAction=w,this.play()):this.playingState===c.VIDEO.PLAYING&&this.isLoadeddata&&this.pause()))},e.createVideoNode=function(){this.videoNode||(this.videoNode=x.$new("video",{class:u+"-sirv-video",preload:"none"}),this.videoNode.addClass("video-js"),this.instanceNode.append(this.videoNode),this.waitToStart.start(),this.done())},e.play=function(){this.player&&!this.playPromise&&(this.playingState=c.VIDEO.PLAY,this.playPromise=this.player.play())},e.pause=function(){var t=this;this.player&&(this.playPromise||new a(function(t){return t(null)})).then(function(){t.player.pause(),t.playPromise=null}).catch(function(){t.player.pause(),t.playPromise=null})},e.loadContent=function(){this.createVideoNode()},e.run=function(t,e,i){i=l.prototype.run.call(this,t,e,i);return i&&(this.calcContainerSize(),this.isInView&&(this.preload||this.isSlideShown)&&this.areSourcesAdded&&this.createVideoNode(),this.startGettingInfo()),i},e.createMasterManifest=function(){var o=this,r=["#EXTM3U"],a=this.option("motionFactor"),h=this.option("dynamicAdaptiveStreaming");return this.HLS.forEach(function(t){var e,i,s,n="#EXT-X-STREAM-INF:PROGRAM-ID=1,";h&&(n+="BANDWIDTH="+(e=t,i=o.fps,s=a,parseInt(e.width*e.height*i*s*.07,10))+","),n+="RESOLUTION="+t.width+"x"+t.height,r.push(n),r.push(f+t.index)}),r.join("\n")},e.toggleFullscreenButton=function(){var t=this.player.controlBar.getChild("FullscreenToggle"),e=this.player.options_.userActions;this.controlsFullscreen?(e.doubleClick=!0,t.show()):(e.doubleClick=!1,t.hide())},e.isHLS=function(){return 0this.posterSize&&t-this.posterSize>=S&&(this.posterSize=t,this.player.poster(this.getPosterUrl()))),!0)},e.getType=function(){return this.type},e.destroy=function(){return this.player&&(this.player.off(),this.player.dispose(),this.player=null),this.videoNode&&(this.videoNode.remove(),this.videoNode=null),this.pluginResizeDebounce&&(this.pluginResizeDebounce.cancel(),this.pluginResizeDebounce=null),this.instanceNode.clearEvents(),this.instanceNode.removeClass("sirv-video"),this.instanceNode.removeClass(m),this.instanceNode.removeClass(g),this.instanceNode.removeClass(v),this.playPromise=null,this.HLS=[],l.prototype.destroy.call(this),!0},t}(r)}),Sirv.define("Slider",["require","module","bHelpers","magicJS","globalVariables","globalFunctions","ResponsiveImage","helper","Promise!","EventEmitter","ContextMenu","ComponentLoader","defaultsVideoOptions","ViewerImage","SliderBuilder"],function(s,t,l,e,O,h,n,d,A,i,o,r,a,c,u){var p,T=e,g=T.$,m=O.smv,f=m+"-thumbnail",v=m+"-selector",S=(T.W.node.devicePixelRatio,{orientation:{type:"string",enum:["horizontal","vertical"],defaults:"horizontal"},arrows:{type:"boolean",defaults:!0},loop:{type:"boolean",defaults:!0},quality:{type:"number",minimum:0,maximum:100,defaults:80},hdQuality:{type:"number",minimum:0,maximum:100,defaults:60},itemsOrder:{type:"array",defaults:[]},autostart:{oneOf:[{type:"string",enum:["created","visible","off"]},{type:"boolean",enum:[!1]}],defaults:"visible"},threshold:{type:"number",minimum:0,defaults:0},slide:{first:{type:"number",minimum:0,defaults:0},delay:{type:"number",minimum:9,defaults:3e3},preload:{type:"boolean",defaults:!0},autoplay:{type:"boolean",defaults:!1},animation:{type:{oneOf:[{type:"string",enum:["off","slide","fade"]},{type:"boolean",enum:[!1]}],defaults:"fade"},duration:{type:"number",minimum:9,defaults:200}},socialbuttons:{enable:{type:"boolean",defaults:!1},types:{facebook:{type:"boolean",defaults:!0},twitter:{type:"boolean",defaults:!0},linkedin:{type:"boolean",defaults:!0},reddit:{type:"boolean",defaults:!0},tumblr:{type:"boolean",defaults:!0},pinterest:{type:"boolean",defaults:!0},telegram:{type:"boolean",defaults:!0}}}},thumbnails:{enable:{type:"boolean",defaults:!0},size:{type:"number",minimum:5,defaults:70},position:{type:"string",enum:["top","left","right","bottom"],defaults:"bottom"},type:{type:"string",enum:["square","auto","bullets","grid","crop"],defaults:"square"},always:{type:"boolean",defaults:!1},target:{oneOf:[{type:"string"},{type:"boolean",enum:[!1]}],defaults:!1},watermark:{type:"boolean",defaults:!0}},fullscreen:{enable:{type:"boolean",defaults:!0},always:{type:"boolean",defaults:!1},native:{type:"boolean",defaults:!1},thumbnails:{enable:{type:"boolean",defaults:!0},size:{oneOf:[{type:"string",enum:["auto"]},{type:"number",minimum:5}],defaults:"auto"},position:{type:"string",enum:["top","left","right","bottom"],defaults:"bottom"},type:{type:"string",enum:["square","auto","bullets","grid","crop"],defaults:"square"},always:{type:"boolean",defaults:!1},autohide:{type:"boolean",defaults:!1},watermark:{type:"boolean",defaults:!0}}},contextmenu:{enable:{type:"boolean",defaults:!1},text:{zoom:{in:{oneOf:[{type:"string"},{type:"boolean",enum:[!1]}],defaults:"Zoom In"},out:{oneOf:[{type:"string"},{type:"boolean",enum:[!1]}],defaults:"Zoom Out"}},fullscreen:{enter:{oneOf:[{type:"string"},{type:"boolean",enum:[!1]}],defaults:"Enter Full Screen"},exit:{oneOf:[{type:"string"},{type:"boolean",enum:[!1]}],defaults:"Exit Full Screen"}},download:{oneOf:[{type:"string"},{type:"boolean",enum:[!1]}],defaults:"Download Image"}}},productdetail:{enable:{type:"boolean",defaults:!1},position:{type:"string",enum:["top","right","bottom","left"],defaults:"top"}}}),y=null,w=null,b=null,E=null,I=null,C=(t=t.config(),p={},d.objEach(t,function(i,t){"description"!==i&&(p[i]=new A(function(e){s([t],function(t){switch(i){case"spin":y=t;break;case"zoom":w=t;break;case"video":b=t;break;case"productDetail":E=t;break;case"socialButtons":I=t}e()})}))}),{load:function(t){var e=[];return(t=t||[]).forEach(function(t){p[t]&&e.push(p[t])}),e.length?A.all(e):A.resolve()}}),x=function(n){"use strict";function t(t,e,i){var s=n.call(this)||this;return s.node=g(t),s.options=e,s.type=O.SLIDE.TYPES.NONE,s.imgSrc=null,s.effect=null,s.additionalEffects=[],s.isStarted=!1,s.isPrepared=!1,s.toolOptions={},s.api={},s.isActive=!1,s.additionalOptions=i,s.parse(),s.setEvents(),s}l.inheritsLoose(t,n),t.isExist=function(t){var e=!1,t=d.getSirvType(t);return t&&{Image:c,Spin:y,Zoom:w,Video:b}[T.camelize("-"+O.SLIDE.NAMES[t.type])]&&(e=!0),e};var e=t.prototype;return e.createAPI=function(){var r=this;if(this.effect){this.api=this.effect.api;var t=[],e=O.SLIDE.TYPES;switch(this.type){case e.SPIN:t=["play","rotate","rotateX","rotateY","zoomIn","zoomOut"];break;case e.ZOOM:this.api.zoomIn&&(t=["zoomIn","zoomOut"])}t.forEach(function(t){var o=r.api[t];r.api[t]=function(){var t=!1,e=o;if(r.isActive){for(var i=arguments.length,s=new Array(i),n=0;n=this.imageSize.height?"horizontal":"vertical"},e.loadImage=function(){var s=this;return this.loadImagePromise||(this.loadImagePromise=new A(function(e,i){s.node?d.loadImage(s.isSirv?s.node.node:s.node.node.src).then(function(t){s.loaded=!0,s.setImageData(t.size),s.setCssSize(),e(s)}).catch(function(t){(s.destroyed?e:i)(s)}):e(s)})),this.loadImagePromise},e.customSquare=function(){var t;"div"!==this.node.getTagName()&&(t=T.$new("div").setCss({overflow:"hidden",position:"relative"}),this.node.attr("data-image-orientation",this.imageOrientation),t.append(this.node),this.node.setCss({width:"",height:"","max-width":"none"}),"crop"===this.type?"horizontal"===this.imageOrientation?this.node.setCssProp("height",this.size):this.node.setCssProp("width",this.size):"vertical"===this.imageOrientation?this.node.setCssProp("height",this.size):this.node.setCssProp("width",this.size),this.node=t)},e.removeCustomSquare=function(){this.node&&"div"===this.node.getTagName()&&(this.node.removeEvent("touchstart selectstart contextmenu"),this.node.remove(),this.node=g(this.node.node.firstChild),this.node.setCss({width:"",height:"",maxWidth:""}),this.node.removeAttr("data-image-orientation"))},e.complete=function(){var t=this;return this.getUrl().then(function(){return t.loadImage()})},e.destroy=function(){this.node&&this.node.removeEvent("mousedown"),this.getProportionPromise=null,this.getUrlPromise=null,this.loadImagePromise=null,o.prototype.destroy.call(this)},t}(F=function(o){"use strict";function t(t,e,i,s){var n=o.call(this)||this;return n.node=g(t),n.type=e,n.size=i,n.orientation=s,n.getPlaceholderSizePromise=null,n.destroyed=!1,n.loaded=!1,n.content=null,n.node.getTagName()===f&&(n.content=T.$A(n.node.node.childNodes)),n}l.inheritsLoose(t,o);var e=t.prototype;return e.isLoaded=function(){return this.loaded},e.setCssSize=function(){var t=this.getSelectorSize();this.node.setCss(t)},e.getSelectorSize=function(){var t={};return T.contains(["square","crop"],this.type)?(t.width=this.size,t.height=this.size):"horizontal"===this.orientation?t.height=this.size:t.width=this.size,t},e.getPlaceholderSize=function(){var s=this;return this.getPlaceholderSizePromise||(this.getPlaceholderSizePromise=new A(function(t){var e,i=s.getSelectorSize();i.width&&i.height?t(i):s.destroyed?t({width:0,height:0}):s.getProportion().then(function(t){e=t}).finally(function(){i.width?i.height=e.height/e.width*i.width:i.width=e.width/e.height*i.height,t(i)})})),this.getPlaceholderSizePromise},e.getProportion=function(){return A.resolve(D)},e.complete=function(){return this.node.setCss({width:"",height:""}),this.setCssSize(),A.resolve()},e.getNode=function(){return this.node},e.appendTo=function(e){this.content?this.content.forEach(function(t){e.append(t)}):e.append(this.getNode())},e.destroy=function(){this.destroyed=!0,this.node=null,this.getPlaceholderSizePromise=null,o.prototype.destroy.call(this)},t}(i)),_=function(a){"use strict";function t(t,e,i,s,n,o){var r=a.call(this)||this;return r.UUID=s,r.options=d.deepExtend({standard:{type:"square",size:70,orientation:"horizontal",watermark:!0},fullscreen:{type:"square",size:70,orientation:"horizontal",watermark:!0},activeClass:m+"-active",placeholderClass:m+"-thumbnail-placeholder",selectorContent:null,disabled:!1},n||{}),r.parentContainer=g(t),r.index=e,r.selector=g(i)||T.$new("div"),r.container=T.$new("div").addClass(m+"-item").setCss({display:"inline-block"}),r.placeholder=T.$new("div").addClass(r.options.placeholderClass),r.size={width:0,height:0},r.currentObject=null,r.isActive=!1,r.disabled=!1,r.destroyed=!1,r.container.append(r.selector),r.parentContainer.append(r.container),r.options.disabled&&r.disable(),r.infoPromise=o||A.resolve(!1),r.state=L,r.initPromise=null,r.init(),r}l.inheritsLoose(t,a);var e=t.prototype;return e.init=function(){var n=this;return this.initPromise||(this.initPromise=new A(function(e){n.infoPromise.then(function(){var t,i,s;n.standard=n.createContent(n.options.standard),n.standard&&n.standard instanceof k&&(t=n.options.standard,i=n.options.fullscreen,s=!0,d.objEach(t,function(t,e){s&&e!==i[t]&&(s=!1)}),s)?n.fullscreen=n.standard:n.fullscreen=n.createContent(n.options.fullscreen,!0),n.selector.append(n.placeholder),n.selector.attr("data-type")||n.selector.setCssProp("font-size",0),n.setEvents(),n.setCustomEvent(),e()})})),this.initPromise},e.createContent=function(t){var e;return"bullets"!==t.type&&(e=this.options.selectorContent?new F(this.options.selectorContent,t.type,t.size,t.orientation):(e=g(new Image),new k(e,t.type,t.size,t.orientation,t.watermark))).setParent(this),e},e.getProportion=function(){var i=this,s=A.resolve();return this.disabled||(this.state===M&&this.fullscreen?s=this.fullscreen.getProportion():this.standard&&(s=this.standard.getProportion())),new A(function(t,e){i.init().then(function(){s.then(t).catch(e)})})},e.activatedSelector=function(){return this.options.activated},e.setEvents=function(){var e=this;this.on("getSelectorProportion",function(t){t.data.UUID=e.UUID}),this.on("getSelectorImgUrl",function(t){t.data.UUID=e.UUID})},e.addPlaceholder=function(t,e){this.container.attr("data-selector-type",t),this.selector.append(this.placeholder),this.placeholder.setCss(e)},e.toggle=function(o){var r=this;return new A(function(e,n){r.init().then(function(){var i,s,t=A.resolve(),t=r.state!==o?(r.state=o,r.disabled?t:(i=r.standard,s=r.options.standard.type,2===o&&(i=r.fullscreen,s=r.options.fullscreen.type),"bullets"===s?(r.selector.node.innerHTML="",r.currentObject=s,r.container.attr("data-selector-type",s),r.emit("resize"),t):(i instanceof k||r.container.attr("data-selector-type",s),new A(function(e,t){i?i.getPlaceholderSize().then(function(t){if(r.state!==o||r.destroyed)e();else{if(!i.isLoaded()&&!r.options.selectorContent){for(;r.selector.node.firstChild;)r.selector.node.removeChild(r.selector.node.firstChild);r.addPlaceholder(s,t)}e(),i.complete().then(function(){if(r.state===o&&!r.destroyed){for(r.container.attr("data-selector-type",s),r.placeholder.remove();r.selector.node.firstChild;)r.selector.node.removeChild(r.selector.node.firstChild);i.appendTo(r.selector),r.currentObject=i,r.emit("resize")}}).catch(function(){})}}):e()})))):t;t.then(e).catch(n)})})},e.setEvent=function(){var e=this;this.container.addEvent("btnclick tap",function(t){t.stop(),e.emit("selectorAction",{data:e.UUID})})},e.setCustomEvent=function(){var t;this.options.selectorContent&&T.$(this.options.selectorContent).getTagName()===f&&(t=g(this.options.selectorContent).node.querySelectorAll("a"),T.$A(t).forEach(function(e){T.$(e).addEvent("btnclick tap",function(t){t.stop(),"#"===T.$(e).attr("href")[0]?(T.W.node.location.hash="",T.W.node.location.hash=T.$(e).attr("href")):T.W.node.open(T.$(e).attr("href"))})}))},e.activate=function(){this.isActive||(this.isActive=!0,this.container.addClass(this.options.activeClass))},e.isActivate=function(){return this.isActive},e.deactivate=function(){this.isActive&&(this.isActive=!1,this.container.removeClass(this.options.activeClass))},e.getSize=function(){return this.size=this.container.getSize(),this.size},e.disable=function(){this.disabled||(this.disabled=!0,this.container.attr("disabled","true"),this.container.setCssProp("display","none"),this.deactivate(),this.emit("resize"))},e._toggleForEnable=function(){var t;return this.state!==L&&(t=this.state===R?this.standard||"bullets":this.fullscreen||"bullets"),t!==this.currentObject?(t=this.state,this.state=L,this.toggle(t)):A.resolve()},e.enable=function(){var t=this;this.disabled&&(this.disabled=!1,this._toggleForEnable().then(function(){t.disabled||(t.container.removeAttr("disabled"),t.container.setCssProp("display",""),t.emit("resize"))}))},e.setIndex=function(t){this.index=t},e.getContainer=function(){return this.container},e.getOptions=function(){return this.options},e.isDestroyed=function(){return this.destroyed},e.isDisabled=function(){return this.disabled},e.destroy=function(){this.destroyed=!0,this.placeholder.remove(),this.off("getSelectorProportion"),this.off("getSelectorImgUrl"),this.standard&&(this.standard.destroy(),this.standard=null),this.fullscreen&&(this.fullscreen.destroy(),this.fullscreen=null),this.container.removeEvent("btnclick tap"),this.container.remove(),this.container=null,this.parentContainer=null,this.selector=null,a.prototype.destroy.call(this)},t}(i),function(s){"use strict";function t(t,e){var i=s.call(this)||this;return i.options=T.extend({isStandardGrid:!1,standardStyle:"square",standardSize:70,standardPosition:"bottom",standardWatermark:!0,isFullscreenGrid:!1,fullscreenStyle:"square",fullscreenSize:70,fullscreenPosition:"bottom",fullscreenAutohide:!1,fullscreenWatermark:!0,arrows:!0,activeClass:m+"-active"},e||{}),i.instanceNode=T.$new("div").addClass(m+"-selectors").setCss({opacity:0,visibility:"hidden",transition:""}),i.selectorsContainer=T.$new("div").addClass(m+"-ss"),i.selectorsScroll=T.$new("div").addClass(m+"-scroll").setCss({transform:"translate3d(0, 0, 0)"}),i.controlButton=T.$new("div").addClass(m+"-selectors-toggle-switch"),i.selectorsScrollContainer=T.$new("div").addClass(m+"-selectors-scroll-container"),i.pinnedNodeAtStart=null,i.pinnedNodeAtEnd=null,i.hasPinnedSelector=!1,i.baseSelectorsList=null,i.blocksPinnedInited=!1,i.pinnedStartList=[],i.pinnedEndList=[],i.isMove=!1,i.currentPosition=0,i.containerSize={width:0,height:0},i.halfContainerSize=0,i.scrollSize={width:0,height:0},i.halfScrollSize=0,i.currentActiveItem=null,i.isShown=!1,i.isControlShown=!0,i.isControlInDoc=!1,i.controlDebounce=null,i.isReady=!1,i.resizeTimeout=null,i.isActionsEnabled=!0,i.isDone=!1,i.isInView=!1,i.state=R,i.arrows=null,i.currentStylePosition=i.options.standardPosition,i.longSide=null,i.shortSide=null,i.currentAxis="x",i.isStarted=!1,i.isDestroyed=!1,i.setHasPinnedSelector(t),i.initPinnedBlocks(),i.selectors=[],t.forEach(function(t,e){i.selectors.push(i.createSelector(t,e))}),i.sortByBaseSelectors(i.selectors),i.orderPinnedSelectorByType(i.selectors),i.identifyVariables(),i.setContainerCss(),i}l.inheritsLoose(t,s);var e=t.prototype;return e.getSelectorsIndexByUUID=function(t){for(var e=null,i=0,s=this.selectors.length;iMath.abs(u[h]-t[h])?1:2),p&&1===m&&((e=n(t.x,t.y))[a]>e[h]&&(t.stop(),i=o-e[a],c.currentPosition-=i,s=o,s=e[a]t-1&&(this.index=0),0Math.abs(z[p]-t[p])?1:2))&&n(t),z={x:t.x,y:t.y}):"dragend"===t.state&&(o(t),x=0,z={x:null,y:null}))})},e.appendSelectors=function(t){var e=this.movingContainer;this.externalContainer&&(this.isFullscreenState()?this.selectorsWrapper.removeClass(m+"-external"):(e=this.externalContainer,this.selectorsWrapper.addClass(m+"-external"))),(t||this.externalContainer)&&e.append(this.selectorsWrapper)},e.createClasses=function(){var r=this,a=this.option;["standard","fullscreen"].forEach(function(t){var e="standard"===t,i=a(e?"thumbnails.enable":"fullscreen.thumbnails.enable"),s=a(e?"thumbnails.position":"fullscreen.thumbnails.position"),n="bullets"===(o=a(e?"thumbnails.type":"fullscreen.thumbnails.type"))?o:"thumbnails",o=e?r.isStandardGrid:r.isFullscreenGrid;i&&(e&&r.externalContainer||r.classes[t].movingContainerClasses.push(m+"-selectors-"+s),r.classes[t].selectorsWrapperClasses.push(m+"-"+n),r.classes[t].selectorsWrapperClasses.push(m+"-"+(s=s,T.contains(["left","right"],s)?"v":"h")),o&&r.classes[t].selectorsWrapperClasses.push(m+"-grid"),a("fullscreen.thumbnails.autohide")&&!e&&(r.classes[t].movingContainerClasses.push(m+"-autohide"),r.classes[t].movingContainerClasses.push(m+"-selectors-closed")))})},e.changeClasses=function(t,e){var i=this,s=e?"removeClass":"addClass";t.movingContainerClasses.forEach(function(t){i.movingContainer[s](t)}),t.selectorsWrapperClasses.forEach(function(t){i.selectorsWrapper[s](t)})},e.setClasses=function(){this.isFullscreenState()?(this.changeClasses(this.classes.standard,!0),this.changeClasses(this.classes.fullscreen)):(this.changeClasses(this.classes.fullscreen,!0),this.changeClasses(this.classes.standard))},e.setInViewAction=function(){var i=this;"visible"===this.option("autostart")?(this.inViewModule=new d.InViewModule(function(t){t.forEach(function(t){var e=i.isInView,t=t.isIntersecting||0this.heightProportion.height&&(i=this.heightProportion.height),(!n||T.contains(["left","right"],s)&&!this.isStandardGrid?this.movingContainer:this.slideWrapper).setCssProp("height",i+"px"))),t},e.findSlideIndex=function(t){for(var e=-1,i=0,s=this.slides.length;ithis.index?"next":"prev"),this.checkLoop(h),o&&!i||(o="blank"),this.selectors&&(this.selectors.setActiveItem(h),this.selectors.jump(h)),this.effect.make({index:this.index,node:this.slides[this.index].getNode()},{index:h,node:this.slides[h].getNode()},{effect:o,direction:t},{whoUse:e}),n=!0}else this.slides[h].secondSelectorClick();return this.index=h,n},e.checkLoop=function(t){var e,i=this;this.arrows&&((e=this.enabledIndexesOfSlides.filter(function(t){return!i.slides[t].isSelectorPinned()&&i.slides[t].isSlideAvailable()}).length)<2?(this.arrows.disable("backward"),this.arrows.disable("forward")):this.option("loop")?this.arrows.disable():(t=this.enabledIndexesOfSlides.indexOf(t),this.arrows.disable(),0!==t&&1!==e||this.arrows.disable("backward"),t!==e-1&&1!==e||this.arrows.disable("forward")))},e.createFullscreenButton=function(){var e=this;this.option(J+".enable")&&!this.fullscreenButton&&(this.fullscreenButton=T.$new("div").addClass(m+"-button").addClass(m+"-button-"+J).addClass(tt),this.fullscreenButton.append(T.$new("div").addClass(m+"-icon")),this.disableFullscreenButton(),this.hideFullscreenButton(),this.fullscreenButton.addEvent("btnclick tap",function(t){t.stop(),e.isFullscreen!==O.FULLSCREEN.CLOSED&&e.isFullscreen!==O.FULLSCREEN.OPENED||(e.disableFullscreenButton(),e.hideFullscreenButton(),e.isFullscreen===O.FULLSCREEN.CLOSED?e.enterFullScreen():e.exitFullScreen())}),this.controlsWrapper.append(this.fullscreenButton),this.slides[this.index].isSlideReady()&&setTimeout(function(){e.slides[e.index].isVideoSlide()&&!e.isFullscreenState()||(e.enableFullscreenButton(),e.visibleFullscreenButton())},0))},e.visibleFullscreenButton=function(){this.fullscreenButton&&this.fullscreenButton.removeClass(it)},e.hideFullscreenButton=function(){this.fullscreenButton&&this.fullscreenButton.addClass(it)},e.enableFullscreenButton=function(){this.fullscreenButton&&this.fullscreenButton.removeAttr("disabled")},e.disableFullscreenButton=function(){this.fullscreenButton&&this.fullscreenButton.attr("disabled","disabled")},e.createEffect=function(){var e=this;this.effect=new P({time:this.option("slide.animation.duration"),orientation:this.option("orientation")}),this.effect.setParent(this),this.on("effectStart",function(t){t.stopAll(),e.isMoving=!0,e.disableFullscreenButton(),e.slides[t.indexes[1]].isVideoSlide()&&e.isFullscreen!==O.FULLSCREEN.OPENED&&e.hideFullscreenButton(),e.slides[t.indexes[0]].beforeHide(),e.slides[t.indexes[1]].beforeShow(),4!==t.data.callbackData.whoUse&&(e.sendEvent("beforeSlideIn",{slide:e.slides[t.indexes[1]].getData()}),e.sendEvent("beforeSlideOut",{slide:e.slides[t.indexes[0]].getData()}))}),this.on("effectEnd",function(t){t.stopAll(),e.slides[t.indexes[1]].isVideoSlide()&&e.isFullscreen!==O.FULLSCREEN.OPENED||(e.enableFullscreenButton(),e.visibleFullscreenButton()),e.slides[t.indexes[0]].afterHide(),e.slides[t.indexes[1]].afterShow(t.data.callbackData.whoUse),4!==t.data.callbackData.whoUse&&(e.sendEvent("afterSlideIn",{slide:e.slides[t.indexes[1]].getData()}),e.sendEvent("afterSlideOut",{slide:e.slides[t.indexes[0]].getData()})),e.autoplay(),e.isMoving=!1,e.residualAutoplayTime=e.autoplayDelay})},e.createArrows=function(){var e=this,t=this.option;t("arrows")&&(this.arrows=new B({orientation:t("orientation")}),this.arrows.hide(),this.arrows.setParent(this),this.on("arrowAction",function(t){t.stopAll();t=e.getNextIndex(t.data.type,e.index,e.slides.length,e.option("loop"));e.jump(t,2)}),this.arrows.getNodes().forEach(function(t){e.controlsWrapper.append(t)}))},e.getNextIndex=function(t,e,i,s){var n=d.sliderLib.findIndex(t,e,i,s),e=n;return null===n||n===this.index||!this.slides[n].isSelectorPinned()&&this.slides[n].isSlideAvailable()&&this.slides[n].isEnabled()||(e=this.getNextIndex(t,n,i,s)),e},e.isHiddenSlides=function(){return!this.slides.some(function(t){return!t.isCustomSelector()||t.isCustomSelector()&&t.isSlideAvailable()})},e.createSelectors=function(){var n=this,t=this.option;t("thumbnails.enable")||t("fullscreen.thumbnails.enable")?(this.selectors=new U(this.slides.map(function(t){return t.getSelector()}),{isStandardGrid:this.isStandardGrid,standardStyle:t("thumbnails.type"),standardSize:t("thumbnails.size"),standardPosition:!!t("thumbnails.enable")&&t("thumbnails.position"),standardWatermark:t("thumbnails.watermark"),isFullscreenGrid:this.isFullscreenGrid,fullscreenStyle:t("fullscreen.thumbnails.type"),fullscreenSize:t("fullscreen.thumbnails.size"),fullscreenPosition:!!t("fullscreen.thumbnails.enable")&&t("fullscreen.thumbnails.position"),fullscreenAutohide:t("fullscreen.thumbnails.autohide"),fullscreenWatermark:t("fullscreen.thumbnails.watermark"),arrows:t("arrows")}),this.selectors.setParent(this),this.on("selectorsReady",function(t){t.stopAll(),n.isSelectorsReady=!0,n.postInitialization()}),this.on("getSelectorProportion",function(e){e.stopAll();var i,s,t=n.getSlideByUUID(e.data.UUID);null!==t&&(i=n.slides[t])?(s={size:null,isSirv:!0},i.getSelectorProportion().then(function(t){s.isSirv=i.isSirvSelector(),s.size=t.size,e.data.resultingCallback(s)}).catch(function(t){s.isSirv=i.isSirvSelector(),n.pickOut(t.UUID),e.data.resultingCallback(s)})):e.data.resultingCallback(null)}),this.on("getSelectorImgUrl",function(e){e.stopAll();var t,i=n.getSlideByUUID(e.data.UUID);null!==i&&(t=n.slides[i])?t.getSelectorImgUrl(e.data.type,e.data.size,e.data.crop,e.data.watermark).then(function(t){e.data.resultingCallback({src:t.src,srcset:t.srcset,size:t.size,alt:t.alt,referrerpolicy:t.referrerpolicy})}).catch(function(t){e.data.resultingCallback(null)}):e.data.resultingCallback(null)}),this.on("changeSlide",function(t){t.stopAll();var e=n.getSlideByUUID(t.data.UUID);null!==e&&(t=n.option(J+".enable")&&n.option(J+".always"),n.slides[e].isCustomSelector()&&n.sendEvent("thumbnailClick",{slide:n.slides[e].getData()}),n.jump(e,2,t),t&&n.enterFullScreen())}),this.on("visibility",function(t){switch(t.stop(),t.action){case"show":n.movingContainer.removeClass(m+"-selectors-closed");break;case"hide":n.movingContainer.addClass(m+"-selectors-closed")}}),this.on("selectorsDone",function(t){t.stopAll(),T.contains(["left","right"],n.selectors.getCurrentStylePosition())&&n.onResize()}),this.selectorsWrapper.append(this.selectors.getNode()),this.slides.forEach(function(t,e){t.isEnabled()||n.selectors.disableSelector(t.getUUID())}),this.showHideSelectors(!0)):this.isSelectorsReady=!0},e.findSlide=function(){var t,e,i=this.instanceNode.attr("data-src");if(i){try{t=this.viewerFileContent||(t=(t=i.split("?")[0]).split("."))[t.length-1]}catch(t){}"spin"===t||d.isVideo(i)?(e=T.$new("div",{"data-src":i}),t=O.SLIDE.TYPES.SPIN):e=T.contains([this.instanceNode.attr("data-type"),this.instanceNode.attr("data-effect")],"zoom")?(t=O.SLIDE.TYPES.ZOOM,T.$new("div",{"data-type":"zoom","data-src":i})):(t=O.SLIDE.TYPES.IMAGE,T.$new("img",{"data-src":i})),this.viewerFileContent&&e.store("view-content",t),this.instanceNode.append(e)}else(i=this.instanceNode.attr("data-bg-src"))&&this.instanceNode.append(T.$new("img",{"data-src":i}));return this.getSlides(!0)},e.canPinSlide=function(t){var e=X.findPinnedSelectorSide(t);return this.slides.filter(function(t){return t.getPinnedSelectorSide()===e}).length<3},e.getSlideByUUID=function(t){for(var e=null,i=0,s=this.slides.length;ithis.slides.length-1&&(this.index=0),this.postInitialization()},e.checkSingleSlide=function(){var e=this,i=1===this.enabledIndexesOfSlides.length;this.enabledIndexesOfSlides.forEach(function(t){e.slides[t].single(i)})},e.showHideArrows=function(){var t;this.arrows&&((t=this.visibleSlides())<2||this.option(J+".always")&&!this.isFullscreenState()?this.arrows.hide():1this.slides.length&&(t=this.slides.length),clearTimeout(this.timerRemove);s=new X(e,t,this.slideOptions,!0);s.setParent(this),this.slides.splice(t,0,s);e=null===this.index;return null===this.index?s.isEnabled()&&s.isSlideAvailable()?this.index=t:e=!1:t<=this.index&&(this.index+=1),this.enabledIndexesOfSlides=[],this.slides.forEach(function(t,e){t.setNewIndex(e),t.isEnabled()&&i.controlEnabledSlides(e)}),this.addAvailableSlideNode(s,t),this.addComponentsCSS(),s.appendToDOM(),s.initVideoPlayer(),s.startGettingInfo(),s.loadThumbnail(),s.startFullInit(null),s.startTool(this.index===t,!this.firstSlideAhead&&this.option("slide.preload"),this.firstSlideAhead),s.broadcast("inView",{data:this.isInView}),this.index===t&&(s.loadContent(),s.beforeShow(),s.afterShow(O.SLIDE_SHOWN_BY.INIT)),this.isFullscreen!==O.FULLSCREEN.OPENED||s.isSirv()||(s.broadcast("before"+K+"In",{data:{pseudo:this.isPseudo}}),s.broadcast("after"+K+"In",{data:{pseudo:this.isPseudo}})),this.checkLoop(this.index),this.selectors&&(this.selectors.insertSelector(t,s.getSelector()),e&&this.selectors.setActiveItem(this.index)),this.checkSingleSlide(),this.showHideSelectors(),this.showHideArrows(),!0}return!1},e.removeSlide=function(t){var i=this,e=!1;if("string"===T.typeOf(t)&&(t=this.findSlideIndex(t)),"number"===T.typeOf(t)&&0<=t&&t=this.slides.length)&&(t=this.index),"string"===T.typeOf(t)&&(t=this.findSlideIndex(t)),null==(t=this.slides[t])?void 0:t.getData()},e.onResizeWithoutSelectors=function(){this.destroyed||(at&&this.isFullscreen===O.FULLSCREEN.OPENED&&this.fullScreenBox.setCss({height:T.W.node.innerHeight,top:Math.abs(at.node.getBoundingClientRect().top)}),this.setRootMargin(),this.setContainerSize(),this.slides.forEach(function(t){t.resize()}))},e.onResize=function(){this.destroyed||(this.selectors&&this.selectors.onResize(),this.onResizeDebounce())},e.play=function(t){var e=!1,i=this.option("slide.delay");return T.defined(t)&&"number"===T.typeOf(t)&&9